Add frozen string literal comment to files.

This commit is contained in:
Guo Xiang Tan 2019-05-13 10:42:48 +08:00
parent b83eefd9b8
commit 817a233cef
5 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
group :development do
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
end

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# Usage:
# bundle install

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Queries
def self.default
# WARNING: Edit the query hash carefully
@ -421,8 +423,8 @@ class Queries
WHERE CASE WHEN :include_pms THEN true ELSE t.archetype = 'regular' END
AND t.deleted_at IS NULL
AND p.deleted_at IS NULL
AND p.created_at::date >= :start_date
AND p.created_at::date <= :end_date
AND p.created_at::date >= :start_date
AND p.created_at::date <= :end_date
AND p.post_number > 1
)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# name: discourse-data-explorer
# about: Interface for running analysis SQL queries on the live database
# version: 0.2

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper'
describe DataExplorer::QueryController do