active_record_change_matchers 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c714cb4f97519ce206cbf2c83a26735547dbbe864fda1223c6d3e0d0fd61aab
|
4
|
+
data.tar.gz: c1c45ce45d0260877ab650bf59728d55326895087ab796ccb5ac56e7d25a8424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02573bbdb0dfbb5fb6b37f0ce4f0191d37dc4592152ee60bbac65be684dfb004991ce3cec25af176b96ca56b3d85551d420faf2c917aa13c62371ff4a7f52d91
|
7
|
+
data.tar.gz: 6ce7c005553187e5faee384c5e266396b85440a27327231402aa7ebb7a93101f32b9c8c419a71c2e7e6e536b5b3fe9ed3e6cc6187fc04e2df00aeb9db2c106a5
|
data/CHANGELOG.md
CHANGED
@@ -15,7 +15,7 @@ module ActiveRecordChangeMatchers
|
|
15
15
|
block.call
|
16
16
|
|
17
17
|
classes.each_with_object({}) do |klass, new_records|
|
18
|
-
new_records[klass] = klass.where("#{column_name} > ?", time_before).to_a
|
18
|
+
new_records[klass] = klass.where("#{column_name} > ?", time_before).to_a
|
19
19
|
new_records[klass] += klass.where("#{column_name} = ?", time_before).where.not(klass.primary_key => existing_records[klass]).to_a
|
20
20
|
end
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_change_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Krizhanovski
|
@@ -161,7 +161,6 @@ files:
|
|
161
161
|
- db/migrate/20150225014908_create_people.rb
|
162
162
|
- db/migrate/20151017231107_create_dogs.rb
|
163
163
|
- db/schema.rb
|
164
|
-
- lib/active_record_block_matchers.rb
|
165
164
|
- lib/active_record_change_matchers.rb
|
166
165
|
- lib/active_record_change_matchers/config.rb
|
167
166
|
- lib/active_record_change_matchers/create_a_new_matcher.rb
|