where_chain 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e84a8f49bbe5b115ccd2944d65165a2bf95b39fdb8a3baf94ac6b253aa8a9ae5
4
- data.tar.gz: 141aeac397e0de882c50c613aed825f180bf7972551f3996ba222848c2e39c09
3
+ metadata.gz: bd39311e12bdfa313174e8b959a7d49b1b859826f62e9fc863182e9b708e9f43
4
+ data.tar.gz: e4d754808fe88755535d0ab3757bc42b894412e5c779514149c5b836dbae3882
5
5
  SHA512:
6
- metadata.gz: 73545882586797fd9e2866e6b3dd2dead9519f84fe87214a01d3b842ad85f142cc24cdea1db97782e2f3e3089907911ac47ebb0b000c54b16688bae380a218b2
7
- data.tar.gz: 47416bde15fb80e7c0cb92bf3e711175aa6b886db8356a33261daf38d8ade9a4a5ff8fdd2d6b11e21b7a89899221f3e267481be108195f8d16fe6c8b074da093
6
+ metadata.gz: 6609b78eb90f918ea3950ada6d6798bc3c9e16f09cfbbe59055907df71f418aa39f621ccd685d8147db7b201efaba815663fbb47c06936d8a59292274a94eea7
7
+ data.tar.gz: 34e86eb4d8720df5b4a3bd06419441c197b6bb04c67968de76c9a75dbbeda848794befdaf4c59903baad561718c10900650c351c498707d69d5e7ebc0c51a46f
data/README.md CHANGED
@@ -84,6 +84,12 @@ $ gem install where_chain
84
84
 
85
85
  ## Testing the code
86
86
 
87
+ Before running any test, you should finish installing the appraised gems:
88
+
89
+ ```bash
90
+ $ bundle exec appraisal install
91
+ ```
92
+
87
93
  Running all the tests for all Rails version targets:
88
94
 
89
95
  ```bash
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
@@ -7,7 +7,7 @@ module ActiveRecord
7
7
  included do
8
8
  # Initialize the chain with a scope and a toggle to invert the generated
9
9
  # where statement
10
- def initialize(scope, invert=false)
10
+ def initialize(scope, invert = false)
11
11
  @scope = scope
12
12
  @invert = invert
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhereChain
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: where_chain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Ruszkiewicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -25,21 +25,21 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: sqlite3
28
+ name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.0
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: pry-rails
42
+ name: database_cleaner
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec-rails
56
+ name: factory_bot_rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: factory_bot_rails
70
+ name: pry-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: appraisal
84
+ name: rspec-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: database_cleaner
98
+ name: rspec_junit_formatter
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: rspec_junit_formatter
112
+ name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -122,9 +122,24 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description: 'This is a Rails plugin that extends Active Record with additional methods:
126
- .like, .unlike, .gt, .gte, .lt and .lte, so that you can replace the SQL strings
127
- like Post.where(''comments > 5'') with Post.where.gt(comments: 5)'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sqlite3
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.3.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.3.0
139
+ description: |
140
+ This is a Rails plugin that extends Active Record with additional methods: .like, .unlike,
141
+ .gt, .gte, .lt and .lte, so that you can replace the SQL strings like
142
+ Post.where('comments > 5') with Post.where.gt(comments: 5)
128
143
  email:
129
144
  - marcin.ruszkiewicz@polcode.net
130
145
  executables: []
@@ -158,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
173
  - !ruby/object:Gem::Version
159
174
  version: '0'
160
175
  requirements: []
161
- rubygems_version: 3.0.1
176
+ rubygems_version: 3.0.3
162
177
  signing_key:
163
178
  specification_version: 4
164
179
  summary: 'WhereChain extensions - Model.where.lt(created_at: Date.today)'