activemodel-attribute_changed_specification 0.1.2 → 0.1.3
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 +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +9 -1
- data/Appraisals +7 -0
- data/Gemfile +3 -6
- data/README.md +5 -1
- data/Rakefile +4 -0
- data/activemodel-attribute_changed_specification.gemspec +6 -4
- data/gemfiles/rails3.2.gemfile +8 -0
- data/gemfiles/rails4.0.gemfile +8 -0
- data/lib/active_model/attribute_changed_specification/version.rb +1 -1
- metadata +26 -31
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 97865d210be869133d7eec38b23f17b83f5a5b54
|
|
4
|
+
data.tar.gz: 66160aa7a8f254aecdd4eaa74227db90bb277497
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 503253aa71bc577e7991b9bbb8096298a25d8a530b5d119f3310dde06d3e60704f75872e4defc75afa2d8a3f5b6ff3ac79e2a7bd667bd1371374f3bf3036ef95
|
|
7
|
+
data.tar.gz: fbb692834138687b13208efa1203f21bc64f2c389974d03e40dc1b5b454262686adbdbd749983786de62fc1a5ad4e41335711aaf67419c8486ae14abbf9fa0b7
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Appraisals
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# activemodel-attribute_changed_specification
|
|
2
|
-
[](https://travis-ci.org/yasuoza/activemodel-attribute_changed_specification)
|
|
3
3
|
|
|
4
4
|
Expand `_changed?` method defined in ActiveModel::Dirty. You can specify changed attribute value.
|
|
5
5
|
|
|
@@ -43,3 +43,7 @@ user = User.new
|
|
|
43
43
|
user.name = 'Bob'
|
|
44
44
|
user.name_changed? # => true
|
|
45
45
|
```
|
|
46
|
+
|
|
47
|
+
## Supports
|
|
48
|
+
|
|
49
|
+
* rails >= 3.2
|
data/Rakefile
CHANGED
|
@@ -6,14 +6,16 @@ Gem::Specification.new do |gem|
|
|
|
6
6
|
gem.authors = 'Yasuharu Ozaki'
|
|
7
7
|
gem.email = 'yasuharu.ozaki@gmail.com'
|
|
8
8
|
gem.description = %q{Expand _changed? method. Enable to specify changed attribute value}
|
|
9
|
-
gem.summary = %q{Expand _changed? method
|
|
9
|
+
gem.summary = %q{Expand _changed? method}
|
|
10
10
|
gem.homepage = 'https://github.com/YasuOza/activemodel-attribute_changed_specification'
|
|
11
|
+
gem.license = 'MIT'
|
|
11
12
|
|
|
12
13
|
gem.files = `git ls-files`.split("\n")
|
|
13
14
|
gem.test_files = `git ls-files -- test/*`.split("\n")
|
|
14
15
|
gem.require_paths = ['lib']
|
|
15
16
|
|
|
16
|
-
gem.
|
|
17
|
-
gem.
|
|
18
|
-
|
|
17
|
+
gem.add_runtime_dependency 'activemodel', '>= 3.2'
|
|
18
|
+
gem.add_runtime_dependency 'activerecord', '>= 3.2'
|
|
19
|
+
|
|
20
|
+
gem.add_development_dependency 'bundler'
|
|
19
21
|
end
|
metadata
CHANGED
|
@@ -1,64 +1,57 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activemodel-attribute_changed_specification
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.1.3
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Yasuharu Ozaki
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: activemodel
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - '>='
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: '
|
|
19
|
+
version: '3.2'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - '>='
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
26
|
+
version: '3.2'
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: activerecord
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
|
-
- -
|
|
31
|
+
- - '>='
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
37
|
-
version: '
|
|
33
|
+
version: '3.2'
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
|
-
- -
|
|
38
|
+
- - '>='
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: '
|
|
40
|
+
version: '3.2'
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
|
47
|
-
name:
|
|
42
|
+
name: bundler
|
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
44
|
requirements:
|
|
51
|
-
- -
|
|
45
|
+
- - '>='
|
|
52
46
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
47
|
+
version: '0'
|
|
54
48
|
type: :development
|
|
55
49
|
prerelease: false
|
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
51
|
requirements:
|
|
59
|
-
- -
|
|
52
|
+
- - '>='
|
|
60
53
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
54
|
+
version: '0'
|
|
62
55
|
description: Expand _changed? method. Enable to specify changed attribute value
|
|
63
56
|
email: yasuharu.ozaki@gmail.com
|
|
64
57
|
executables: []
|
|
@@ -67,39 +60,41 @@ extra_rdoc_files: []
|
|
|
67
60
|
files:
|
|
68
61
|
- .gitignore
|
|
69
62
|
- .travis.yml
|
|
63
|
+
- Appraisals
|
|
70
64
|
- Gemfile
|
|
71
65
|
- LICENSE
|
|
72
66
|
- README.md
|
|
73
67
|
- Rakefile
|
|
74
68
|
- activemodel-attribute_changed_specification.gemspec
|
|
69
|
+
- gemfiles/rails3.2.gemfile
|
|
70
|
+
- gemfiles/rails4.0.gemfile
|
|
75
71
|
- lib/active_model/attribute_changed_specification/specification.rb
|
|
76
72
|
- lib/active_model/attribute_changed_specification/version.rb
|
|
77
73
|
- lib/activemodel-attribute_changed_specification.rb
|
|
78
74
|
- test/specification_test.rb
|
|
79
75
|
homepage: https://github.com/YasuOza/activemodel-attribute_changed_specification
|
|
80
|
-
licenses:
|
|
76
|
+
licenses:
|
|
77
|
+
- MIT
|
|
78
|
+
metadata: {}
|
|
81
79
|
post_install_message:
|
|
82
80
|
rdoc_options: []
|
|
83
81
|
require_paths:
|
|
84
82
|
- lib
|
|
85
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
|
-
none: false
|
|
87
84
|
requirements:
|
|
88
|
-
- -
|
|
85
|
+
- - '>='
|
|
89
86
|
- !ruby/object:Gem::Version
|
|
90
87
|
version: '0'
|
|
91
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
|
-
none: false
|
|
93
89
|
requirements:
|
|
94
|
-
- -
|
|
90
|
+
- - '>='
|
|
95
91
|
- !ruby/object:Gem::Version
|
|
96
92
|
version: '0'
|
|
97
93
|
requirements: []
|
|
98
94
|
rubyforge_project:
|
|
99
|
-
rubygems_version:
|
|
95
|
+
rubygems_version: 2.0.14
|
|
100
96
|
signing_key:
|
|
101
|
-
specification_version:
|
|
102
|
-
summary: Expand _changed? method
|
|
97
|
+
specification_version: 4
|
|
98
|
+
summary: Expand _changed? method
|
|
103
99
|
test_files:
|
|
104
100
|
- test/specification_test.rb
|
|
105
|
-
has_rdoc:
|