Skip to content

Commit

Permalink
Add frozen_string_literal: true
Browse files Browse the repository at this point in the history
  • Loading branch information
kanety committed Jun 20, 2024
1 parent b4d8bf6 commit ae37ea5
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails60.gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source 'https://rubygems.org'

gem "activerecord", "~> 6.0.0"
gem "sqlite3", "~> 1.4.0"
gem "psych", "~> 3.3.0"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/rails61.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'https://rubygems.org'

gem "rails", "~> 6.1.0"
gem "sqlite3", "~> 1.4.0"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/rails70.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'https://rubygems.org'

gem "rails", "~> 7.0.1"
gem "sqlite3", "~> 1.4.0"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/rails71.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'https://rubygems.org'

gem "rails", "~> 7.1.0"
gem "sqlite3", "~> 1.6.6"

gemspec path: "../"
2 changes: 2 additions & 0 deletions lib/logical_query_parser.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'treetop'
Treetop.load File.expand_path("../logical_query_parser.treetop", __FILE__)

Expand Down
2 changes: 2 additions & 0 deletions lib/logical_query_parser/assoc.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module LogicalQueryParser
class Assoc
attr_accessor :column_mapping, :structure
Expand Down
2 changes: 2 additions & 0 deletions lib/logical_query_parser/assoc_resolver.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'assoc'

module LogicalQueryParser
Expand Down
4 changes: 3 additions & 1 deletion lib/logical_query_parser/nodes/active_record.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# frozen_string_literal: true

module LogicalQueryParser
module ExpNode
def to_sql(params = {})
params[:sql] ||= ''
params[:sql] ||= ''.dup
exp.to_sql(params)
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/logical_query_parser/nodes/base.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module LogicalQueryParser
module ExpNode
end
Expand Down
2 changes: 2 additions & 0 deletions lib/logical_query_parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module LogicalQueryParser
VERSION = "0.3.4"
end

0 comments on commit ae37ea5

Please sign in to comment.