Skip to content

Commit

Permalink
Fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dim committed Aug 27, 2019
1 parent beeb173 commit 80324e3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 48 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
rvm:
- 1.9.3
- 2.1.2
- 2.2.3
- 2.5
- 2.6
gemfile:
- Gemfile
68 changes: 34 additions & 34 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
PATH
remote: .
specs:
filterable-by (0.4.7)
filterable-by (0.5.0)
activerecord
activesupport

GEM
remote: http://rubygems.org/
specs:
activemodel (5.2.0)
activesupport (= 5.2.0)
activerecord (5.2.0)
activemodel (= 5.2.0)
activesupport (= 5.2.0)
arel (>= 9.0)
activesupport (5.2.0)
activemodel (6.0.0)
activesupport (= 6.0.0)
activerecord (6.0.0)
activemodel (= 6.0.0)
activesupport (= 6.0.0)
activesupport (6.0.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (9.0.0)
zeitwerk (~> 2.1, >= 2.1.8)
ast (2.4.0)
concurrent-ruby (1.0.5)
concurrent-ruby (1.1.5)
diff-lcs (1.3)
i18n (1.0.1)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.3)
minitest (5.11.3)
parallel (1.12.1)
parser (2.5.1.0)
parallel (1.17.0)
parser (2.6.3.0)
ast (~> 2.4.0)
powerpack (0.1.1)
rainbow (3.0.0)
rake (12.3.1)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
rake (12.3.3)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.2)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
rubocop (0.55.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)
rubocop (0.74.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5)
powerpack (~> 0.1)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.9.0)
sqlite3 (1.3.13)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
sqlite3 (1.4.1)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unicode-display_width (1.3.2)
unicode-display_width (1.6.0)
zeitwerk (2.1.9)

PLATFORMS
ruby
Expand All @@ -71,4 +71,4 @@ DEPENDENCIES
sqlite3

BUNDLED WITH
1.16.1
2.0.2
7 changes: 3 additions & 4 deletions filterable-by.gemspec
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@

Gem::Specification.new do |s|
s.name = 'filterable-by'
s.version = '0.4.7'
s.version = '0.5.0'
s.authors = ['Dimitrij Denissenko']
s.email = ['[email protected]']
s.summary = 'Generate white-listed filter scopes from URL parameter values'
s.description = 'ActiveRecord plugin'
s.homepage = 'https://github.com/bsm/filterable-by'
s.license = 'MIT'

s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
s.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^spec/}) }
s.test_files = `git ls-files -z -- spec/*`.split("\x0")
s.require_paths = ['lib']
s.required_ruby_version = '>= 2.2'
s.required_ruby_version = '>= 2.5'

s.add_dependency 'activerecord'
s.add_dependency 'activesupport'
Expand Down
2 changes: 1 addition & 1 deletion lib/filterable_by.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.normalize(value)
when String, Numeric
value
when Array
value.select { |v| normalize(v) }
value.select {|v| normalize(v) }
end
end

Expand Down
12 changes: 6 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ class Rating < Feedback

AUTHORS = {
alice: Author.create!,
bob: Author.create!,
bob: Author.create!,
}.freeze

POSTS = {
alices: Post.create!(author_id: AUTHORS[:alice].id),
bobs: Post.create!(author_id: AUTHORS[:bob].id),
bobs: Post.create!(author_id: AUTHORS[:bob].id),
}.freeze

COMMENTS = {
alice_on_alice: Comment.create!(title: 'AA', post_id: POSTS[:alices].id, author_id: AUTHORS[:alice].id),
bob_on_alice: Comment.create!(title: 'BA', post_id: POSTS[:alices].id, author_id: AUTHORS[:bob].id),
alice_on_bob: Comment.create!(title: 'AB', post_id: POSTS[:bobs].id, author_id: AUTHORS[:alice].id),
bob_on_bob: Comment.create!(title: 'BB', post_id: POSTS[:bobs].id, author_id: AUTHORS[:bob].id),
boa_rating: Rating.create!(stars: 5, post_id: POSTS[:alices].id, author_id: AUTHORS[:bob].id),
bob_on_alice: Comment.create!(title: 'BA', post_id: POSTS[:alices].id, author_id: AUTHORS[:bob].id),
alice_on_bob: Comment.create!(title: 'AB', post_id: POSTS[:bobs].id, author_id: AUTHORS[:alice].id),
bob_on_bob: Comment.create!(title: 'BB', post_id: POSTS[:bobs].id, author_id: AUTHORS[:bob].id),
boa_rating: Rating.create!(stars: 5, post_id: POSTS[:alices].id, author_id: AUTHORS[:bob].id),
}.freeze

0 comments on commit 80324e3

Please sign in to comment.