active_interaction 1.2.3 → 1.3.0
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/CHANGELOG.md +277 -72
- data/README.md +4 -4
- data/lib/active_interaction/backports.rb +6 -1
- data/lib/active_interaction/base.rb +15 -7
- data/lib/active_interaction/concerns/transactable.rb +7 -0
- data/lib/active_interaction/errors.rb +3 -3
- data/lib/active_interaction/filters/abstract_filter.rb +1 -1
- data/lib/active_interaction/filters/array_filter.rb +2 -0
- data/lib/active_interaction/filters/decimal_filter.rb +3 -1
- data/lib/active_interaction/filters/interface_filter.rb +44 -0
- data/lib/active_interaction/filters/model_filter.rb +2 -2
- data/lib/active_interaction/filters/time_filter.rb +8 -0
- data/lib/active_interaction/locale/en.yml +1 -0
- data/lib/active_interaction/version.rb +1 -1
- data/lib/active_interaction.rb +2 -2
- data/spec/active_interaction/base_spec.rb +91 -30
- data/spec/active_interaction/concerns/missable_spec.rb +2 -2
- data/spec/active_interaction/concerns/runnable_spec.rb +5 -2
- data/spec/active_interaction/concerns/transactable_spec.rb +24 -3
- data/spec/active_interaction/errors_spec.rb +1 -1
- data/spec/active_interaction/filter_column_spec.rb +5 -5
- data/spec/active_interaction/filters/boolean_filter_spec.rb +2 -2
- data/spec/active_interaction/filters/interface_filter_spec.rb +46 -0
- data/spec/active_interaction/filters/model_filter_spec.rb +11 -0
- data/spec/active_interaction/filters/time_filter_spec.rb +20 -0
- data/spec/active_interaction/i18n_spec.rb +6 -0
- data/spec/active_interaction/integration/interface_interaction_spec.rb +12 -0
- data/spec/active_interaction/integration/model_interaction_spec.rb +1 -1
- data/spec/active_interaction/modules/input_processor_spec.rb +2 -2
- data/spec/active_interaction/modules/validation_spec.rb +2 -2
- data/spec/spec_helper.rb +6 -3
- metadata +51 -32
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_interaction
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aaron Lasseigne
|
|
@@ -9,110 +9,110 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-
|
|
12
|
+
date: 2014-08-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activemodel
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- -
|
|
18
|
+
- - '>='
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '3'
|
|
21
|
-
- -
|
|
20
|
+
version: '3.2'
|
|
21
|
+
- - <
|
|
22
22
|
- !ruby/object:Gem::Version
|
|
23
23
|
version: '5'
|
|
24
24
|
type: :runtime
|
|
25
25
|
prerelease: false
|
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
|
27
27
|
requirements:
|
|
28
|
-
- -
|
|
28
|
+
- - '>='
|
|
29
29
|
- !ruby/object:Gem::Version
|
|
30
|
-
version: '3'
|
|
31
|
-
- -
|
|
30
|
+
version: '3.2'
|
|
31
|
+
- - <
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '5'
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: bundler
|
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ~>
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '1.6'
|
|
41
41
|
type: :development
|
|
42
42
|
prerelease: false
|
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ~>
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '1.6'
|
|
48
48
|
- !ruby/object:Gem::Dependency
|
|
49
49
|
name: coveralls
|
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ~>
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0.7'
|
|
55
55
|
type: :development
|
|
56
56
|
prerelease: false
|
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ~>
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0.7'
|
|
62
62
|
- !ruby/object:Gem::Dependency
|
|
63
63
|
name: guard-rspec
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ~>
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '4.2'
|
|
69
69
|
type: :development
|
|
70
70
|
prerelease: false
|
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - ~>
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '4.2'
|
|
76
76
|
- !ruby/object:Gem::Dependency
|
|
77
77
|
name: guard-rubocop
|
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - ~>
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '1.1'
|
|
83
83
|
type: :development
|
|
84
84
|
prerelease: false
|
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- -
|
|
87
|
+
- - ~>
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '1.1'
|
|
90
90
|
- !ruby/object:Gem::Dependency
|
|
91
91
|
name: rake
|
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- -
|
|
94
|
+
- - ~>
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '10.3'
|
|
97
97
|
type: :development
|
|
98
98
|
prerelease: false
|
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- -
|
|
101
|
+
- - ~>
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '10.3'
|
|
104
104
|
- !ruby/object:Gem::Dependency
|
|
105
105
|
name: rdoc
|
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- -
|
|
108
|
+
- - ~>
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '4.1'
|
|
111
111
|
type: :development
|
|
112
112
|
prerelease: false
|
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
|
-
- -
|
|
115
|
+
- - ~>
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '4.1'
|
|
118
118
|
- !ruby/object:Gem::Dependency
|
|
@@ -121,28 +121,42 @@ dependencies:
|
|
|
121
121
|
requirements:
|
|
122
122
|
- - '='
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 0.
|
|
124
|
+
version: 0.24.1
|
|
125
125
|
type: :development
|
|
126
126
|
prerelease: false
|
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
|
129
129
|
- - '='
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 0.
|
|
131
|
+
version: 0.24.1
|
|
132
132
|
- !ruby/object:Gem::Dependency
|
|
133
133
|
name: yard
|
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
|
-
- -
|
|
136
|
+
- - ~>
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0.8'
|
|
139
139
|
type: :development
|
|
140
140
|
prerelease: false
|
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
|
-
- -
|
|
143
|
+
- - ~>
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
145
|
version: '0.8'
|
|
146
|
+
- !ruby/object:Gem::Dependency
|
|
147
|
+
name: rspec
|
|
148
|
+
requirement: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - '='
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: 3.0.0
|
|
153
|
+
type: :development
|
|
154
|
+
prerelease: false
|
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - '='
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: 3.0.0
|
|
146
160
|
description: Manage application specific business logic.
|
|
147
161
|
email:
|
|
148
162
|
- aaron.lasseigne@gmail.com
|
|
@@ -151,10 +165,6 @@ executables: []
|
|
|
151
165
|
extensions: []
|
|
152
166
|
extra_rdoc_files: []
|
|
153
167
|
files:
|
|
154
|
-
- CHANGELOG.md
|
|
155
|
-
- LICENSE.txt
|
|
156
|
-
- README.md
|
|
157
|
-
- lib/active_interaction.rb
|
|
158
168
|
- lib/active_interaction/backports.rb
|
|
159
169
|
- lib/active_interaction/base.rb
|
|
160
170
|
- lib/active_interaction/concerns/active_modelable.rb
|
|
@@ -177,15 +187,16 @@ files:
|
|
|
177
187
|
- lib/active_interaction/filters/float_filter.rb
|
|
178
188
|
- lib/active_interaction/filters/hash_filter.rb
|
|
179
189
|
- lib/active_interaction/filters/integer_filter.rb
|
|
190
|
+
- lib/active_interaction/filters/interface_filter.rb
|
|
180
191
|
- lib/active_interaction/filters/model_filter.rb
|
|
181
192
|
- lib/active_interaction/filters/string_filter.rb
|
|
182
193
|
- lib/active_interaction/filters/symbol_filter.rb
|
|
183
194
|
- lib/active_interaction/filters/time_filter.rb
|
|
184
195
|
- lib/active_interaction/grouped_input.rb
|
|
185
|
-
- lib/active_interaction/locale/en.yml
|
|
186
196
|
- lib/active_interaction/modules/input_processor.rb
|
|
187
197
|
- lib/active_interaction/modules/validation.rb
|
|
188
198
|
- lib/active_interaction/version.rb
|
|
199
|
+
- lib/active_interaction.rb
|
|
189
200
|
- spec/active_interaction/base_spec.rb
|
|
190
201
|
- spec/active_interaction/concerns/active_modelable_spec.rb
|
|
191
202
|
- spec/active_interaction/concerns/hashable_spec.rb
|
|
@@ -207,6 +218,7 @@ files:
|
|
|
207
218
|
- spec/active_interaction/filters/float_filter_spec.rb
|
|
208
219
|
- spec/active_interaction/filters/hash_filter_spec.rb
|
|
209
220
|
- spec/active_interaction/filters/integer_filter_spec.rb
|
|
221
|
+
- spec/active_interaction/filters/interface_filter_spec.rb
|
|
210
222
|
- spec/active_interaction/filters/model_filter_spec.rb
|
|
211
223
|
- spec/active_interaction/filters/string_filter_spec.rb
|
|
212
224
|
- spec/active_interaction/filters/symbol_filter_spec.rb
|
|
@@ -221,6 +233,7 @@ files:
|
|
|
221
233
|
- spec/active_interaction/integration/float_interaction_spec.rb
|
|
222
234
|
- spec/active_interaction/integration/hash_interaction_spec.rb
|
|
223
235
|
- spec/active_interaction/integration/integer_interaction_spec.rb
|
|
236
|
+
- spec/active_interaction/integration/interface_interaction_spec.rb
|
|
224
237
|
- spec/active_interaction/integration/model_interaction_spec.rb
|
|
225
238
|
- spec/active_interaction/integration/string_interaction_spec.rb
|
|
226
239
|
- spec/active_interaction/integration/symbol_interaction_spec.rb
|
|
@@ -231,6 +244,10 @@ files:
|
|
|
231
244
|
- spec/support/concerns.rb
|
|
232
245
|
- spec/support/filters.rb
|
|
233
246
|
- spec/support/interactions.rb
|
|
247
|
+
- CHANGELOG.md
|
|
248
|
+
- LICENSE.txt
|
|
249
|
+
- README.md
|
|
250
|
+
- lib/active_interaction/locale/en.yml
|
|
234
251
|
homepage: http://orgsync.github.io/active_interaction/
|
|
235
252
|
licenses:
|
|
236
253
|
- MIT
|
|
@@ -241,17 +258,17 @@ require_paths:
|
|
|
241
258
|
- lib
|
|
242
259
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
260
|
requirements:
|
|
244
|
-
- -
|
|
261
|
+
- - '>='
|
|
245
262
|
- !ruby/object:Gem::Version
|
|
246
263
|
version: 1.9.3
|
|
247
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
265
|
requirements:
|
|
249
|
-
- -
|
|
266
|
+
- - '>='
|
|
250
267
|
- !ruby/object:Gem::Version
|
|
251
268
|
version: '0'
|
|
252
269
|
requirements: []
|
|
253
270
|
rubyforge_project:
|
|
254
|
-
rubygems_version: 2.
|
|
271
|
+
rubygems_version: 2.0.14
|
|
255
272
|
signing_key:
|
|
256
273
|
specification_version: 4
|
|
257
274
|
summary: Manage application specific business logic.
|
|
@@ -277,6 +294,7 @@ test_files:
|
|
|
277
294
|
- spec/active_interaction/filters/float_filter_spec.rb
|
|
278
295
|
- spec/active_interaction/filters/hash_filter_spec.rb
|
|
279
296
|
- spec/active_interaction/filters/integer_filter_spec.rb
|
|
297
|
+
- spec/active_interaction/filters/interface_filter_spec.rb
|
|
280
298
|
- spec/active_interaction/filters/model_filter_spec.rb
|
|
281
299
|
- spec/active_interaction/filters/string_filter_spec.rb
|
|
282
300
|
- spec/active_interaction/filters/symbol_filter_spec.rb
|
|
@@ -291,6 +309,7 @@ test_files:
|
|
|
291
309
|
- spec/active_interaction/integration/float_interaction_spec.rb
|
|
292
310
|
- spec/active_interaction/integration/hash_interaction_spec.rb
|
|
293
311
|
- spec/active_interaction/integration/integer_interaction_spec.rb
|
|
312
|
+
- spec/active_interaction/integration/interface_interaction_spec.rb
|
|
294
313
|
- spec/active_interaction/integration/model_interaction_spec.rb
|
|
295
314
|
- spec/active_interaction/integration/string_interaction_spec.rb
|
|
296
315
|
- spec/active_interaction/integration/symbol_interaction_spec.rb
|