actionset 0.3.5 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -0
- data/actionset.gemspec +1 -1
- data/lib/action_set.rb +1 -1
- data/lib/action_set/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a682e0da229e04c37aca7d4da4181a8725c837dd
|
4
|
+
data.tar.gz: 98c6cd09dedad0b048cf11551f7290c388fef9c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6eeaedd38735cd6d63de62db3fc53cee81c3bf3350be60a91841a1c846a096ceee710a975a730192531ee7da2972b694de0933f0964b25ddaf4c91644426d4f
|
7
|
+
data.tar.gz: 3ac5879e34de2d2a3b3d4b91e5ec62f78ccbc63cd34a969843589b1f6d152e11f55aec84013f509dccfdfbd470e75a40950e9d38734ab52ba2de74a55907c874
|
data/CHANGELOG
CHANGED
data/actionset.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_dependency 'activeset', '>= 0.
|
25
|
+
spec.add_dependency 'activeset', '>= 0.6.0'
|
26
26
|
spec.add_dependency 'activesupport', '>= 4.0.2'
|
27
27
|
spec.add_dependency 'railties'
|
28
28
|
|
data/lib/action_set.rb
CHANGED
@@ -65,7 +65,7 @@ module ActionSet
|
|
65
65
|
|
66
66
|
def filter_structure(set)
|
67
67
|
filter_params.flatten_keys.reject { |_, v| v.blank? }.each_with_object({}) do |(keypath, value), memo|
|
68
|
-
instruction = ActiveSet::
|
68
|
+
instruction = ActiveSet::Instruction.new(keypath, value)
|
69
69
|
item_with_value = set.find { |i| !instruction.value_for(item: i).nil? }
|
70
70
|
item_value = instruction.value_for(item: item_with_value)
|
71
71
|
typecast_value = ActionSet::Instructions::EntryValue.new(value)
|
data/lib/action_set/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Margheim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeset
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.6.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.6.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.
|
255
|
+
rubygems_version: 2.6.11
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: A toolkit to wire-up ActiveSet collections with a Rails controller.
|