command_model 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +8 -0
- data/README.md +6 -6
- data/Rakefile +8 -0
- data/command_model.gemspec +6 -5
- data/gemfiles/3.2.gemfile +5 -0
- data/gemfiles/4.0.gemfile +5 -0
- data/gemfiles/4.1.gemfile +5 -0
- data/lib/command_model/version.rb +1 -1
- metadata +37 -31
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9c234ff1d2187845e8ddfb8519dea6b8720ba3f1
|
4
|
+
data.tar.gz: f4cedf7d82ad147e6fbb03c78dd726adad00e60a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 290dee4afb160dedcc680b854089fb9ffc287a78253716c28b748e643f32a672fc88efa2e4a5e368e72eb5e6c30e10dd9ed28c3871f06671fd64e7906760d630
|
7
|
+
data.tar.gz: 71a368f028369951e5df902ee599dd5df37f17c14bcbc412496040a043b8a47c9073dd0f8b38cf71024f9e41dbd384f5af624f06ae762ad256dc4edd8f0ef2f7
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -129,13 +129,13 @@ integration of Rails form helpers and validations with CommandModel.
|
|
129
129
|
## Version History
|
130
130
|
|
131
131
|
* 1.1 - November 13, 2012
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
132
|
+
* Updated documentation and example application
|
133
|
+
* Refactored Model to support internal domain logic easier with #call and #execute.
|
134
|
+
* Model#initialize can now copy another model
|
135
|
+
* Added Model#set_parameters
|
136
|
+
* Added Model.parameters
|
137
137
|
* 1.0 - April 14, 2012
|
138
|
-
|
138
|
+
* Initial public release
|
139
139
|
|
140
140
|
## Contributing
|
141
141
|
|
data/Rakefile
CHANGED
data/command_model.gemspec
CHANGED
@@ -14,12 +14,13 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = "command_model"
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = CommandModel::VERSION
|
17
|
-
|
18
|
-
gem.add_dependency 'activemodel', "
|
19
|
-
|
17
|
+
|
18
|
+
gem.add_dependency 'activemodel', "> 3.2"
|
19
|
+
|
20
|
+
gem.add_development_dependency 'rake', "~> 10.1.0"
|
20
21
|
gem.add_development_dependency 'rspec', "~> 2.11.0"
|
21
22
|
gem.add_development_dependency 'guard', "~> 1.5.3"
|
22
23
|
gem.add_development_dependency 'guard-rspec', "~> 2.1.1"
|
23
|
-
gem.add_development_dependency 'rb-fsevent', '~> 0.9.1'
|
24
|
-
|
24
|
+
gem.add_development_dependency 'rb-fsevent', '~> 0.9.1'
|
25
|
+
|
25
26
|
end
|
metadata
CHANGED
@@ -1,94 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jack Christensen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-10-24 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
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
26
|
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 10.1.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 10.1.0
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
42
|
name: rspec
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- - ~>
|
45
|
+
- - "~>"
|
36
46
|
- !ruby/object:Gem::Version
|
37
47
|
version: 2.11.0
|
38
48
|
type: :development
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
|
-
- - ~>
|
52
|
+
- - "~>"
|
44
53
|
- !ruby/object:Gem::Version
|
45
54
|
version: 2.11.0
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: guard
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- - ~>
|
59
|
+
- - "~>"
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: 1.5.3
|
54
62
|
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- - ~>
|
66
|
+
- - "~>"
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: 1.5.3
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: guard-rspec
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- - ~>
|
73
|
+
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: 2.1.1
|
70
76
|
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- - ~>
|
80
|
+
- - "~>"
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: 2.1.1
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: rb-fsevent
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- - ~>
|
87
|
+
- - "~>"
|
84
88
|
- !ruby/object:Gem::Version
|
85
89
|
version: 0.9.1
|
86
90
|
type: :development
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- - ~>
|
94
|
+
- - "~>"
|
92
95
|
- !ruby/object:Gem::Version
|
93
96
|
version: 0.9.1
|
94
97
|
description: CommandModel - when update_attributes isn't enough.
|
@@ -98,8 +101,9 @@ executables: []
|
|
98
101
|
extensions: []
|
99
102
|
extra_rdoc_files: []
|
100
103
|
files:
|
101
|
-
- .gitignore
|
102
|
-
- .rspec
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".travis.yml"
|
103
107
|
- Gemfile
|
104
108
|
- Guardfile
|
105
109
|
- LICENSE
|
@@ -166,6 +170,9 @@ files:
|
|
166
170
|
- examples/bank/vendor/assets/javascripts/.gitkeep
|
167
171
|
- examples/bank/vendor/assets/stylesheets/.gitkeep
|
168
172
|
- examples/bank/vendor/plugins/.gitkeep
|
173
|
+
- gemfiles/3.2.gemfile
|
174
|
+
- gemfiles/4.0.gemfile
|
175
|
+
- gemfiles/4.1.gemfile
|
169
176
|
- lib/command_model.rb
|
170
177
|
- lib/command_model/model.rb
|
171
178
|
- lib/command_model/version.rb
|
@@ -173,27 +180,26 @@ files:
|
|
173
180
|
- spec/spec_helper.rb
|
174
181
|
homepage: https://github.com/JackC/command_model
|
175
182
|
licenses: []
|
183
|
+
metadata: {}
|
176
184
|
post_install_message:
|
177
185
|
rdoc_options: []
|
178
186
|
require_paths:
|
179
187
|
- lib
|
180
188
|
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
-
none: false
|
182
189
|
requirements:
|
183
|
-
- -
|
190
|
+
- - ">="
|
184
191
|
- !ruby/object:Gem::Version
|
185
192
|
version: '0'
|
186
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
-
none: false
|
188
194
|
requirements:
|
189
|
-
- -
|
195
|
+
- - ">="
|
190
196
|
- !ruby/object:Gem::Version
|
191
197
|
version: '0'
|
192
198
|
requirements: []
|
193
199
|
rubyforge_project:
|
194
|
-
rubygems_version:
|
200
|
+
rubygems_version: 2.2.2
|
195
201
|
signing_key:
|
196
|
-
specification_version:
|
202
|
+
specification_version: 4
|
197
203
|
summary: CommandModel integrates Rails validations with command objects. This allows
|
198
204
|
errors from command execution to easily be handled with the familiar Rails validation
|
199
205
|
system.
|