deep_dirty 1.0.1 → 1.0.2
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 +4 -4
- data/deep_dirty.gemspec +5 -5
- data/lib/deep_dirty/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a46fcd90c2dde2fccf3a6a50f5de4dd1b044a3
|
4
|
+
data.tar.gz: d9c142e4e086d5fbbffadea19577ba6e88507c89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c25cbdc7aa90e5724b6a0392d9816aab4a7bd7a6865e44b8cc112d31b92159f01f5f36072d93bcece35da03fc3cc914bb89d1135e785d94a2d2a518e434198b
|
7
|
+
data.tar.gz: 4b80d19f260686d0f0e3993dc46405270e5a91d074e0bae1c7e1f54972be492eff7cbd334359dc278d1956f939133ad1e3a5fd6d395f96fefb782b41d5a9bd0c
|
data/deep_dirty.gemspec
CHANGED
@@ -8,12 +8,12 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = DeepDirty::VERSION
|
9
9
|
spec.authors = ["Laas Toom"]
|
10
10
|
spec.email = ["laas.toom@gmail.com"]
|
11
|
-
spec.summary = %q{Dirty tracking that supports implicit changes (e.g. upcase! etc)}
|
12
|
-
spec.description = %q{
|
13
|
-
and marks all changes detected as changed attributes. This makes possible
|
14
|
-
and similar implicit changes.
|
11
|
+
spec.summary = %q{ActiveRecord Dirty tracking that supports implicit changes (e.g. upcase! etc)}
|
12
|
+
spec.description = %q{ActiveRecord dirty tracking that compares every attribute to it's value before type cast
|
13
|
+
and marks all changes detected as changed attributes. This makes it possible to detect `user.name.upcase!`
|
14
|
+
`user.roles << 'some_role'` and similar implicit changes.
|
15
15
|
|
16
|
-
To make it automatic on `save`,
|
16
|
+
To make it automatic on `save`, this module sets up a `before_validation` callback when included into a model.
|
17
17
|
}
|
18
18
|
spec.homepage = "https://github.com/borgand/deep_dirty"
|
19
19
|
spec.license = "MIT"
|
data/lib/deep_dirty/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deep_dirty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laas Toom
|
@@ -66,11 +66,11 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 3.0.0
|
69
|
-
description: "
|
70
|
-
type cast\n and marks all changes detected as changed attributes. This
|
71
|
-
possible
|
72
|
-
make it automatic on `save`,
|
73
|
-
callback.\n "
|
69
|
+
description: "ActiveRecord dirty tracking that compares every attribute to it's value
|
70
|
+
before type cast\n and marks all changes detected as changed attributes. This
|
71
|
+
makes it possible to detect `user.name.upcase!`\n `user.roles << 'some_role'`
|
72
|
+
and similar implicit changes.\n\n To make it automatic on `save`, this module
|
73
|
+
sets up a `before_validation` callback when included into a model.\n "
|
74
74
|
email:
|
75
75
|
- laas.toom@gmail.com
|
76
76
|
executables: []
|
@@ -111,7 +111,8 @@ rubyforge_project:
|
|
111
111
|
rubygems_version: 2.2.2
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
|
-
summary: Dirty tracking that supports implicit changes (e.g. upcase!
|
114
|
+
summary: ActiveRecord Dirty tracking that supports implicit changes (e.g. upcase!
|
115
|
+
etc)
|
115
116
|
test_files:
|
116
117
|
- spec/deep_dirty_spec.rb
|
117
118
|
- spec/spec_helper.rb
|