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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcf22ea0b6bf2bc8736afb56c36e8223d1aa70df
4
- data.tar.gz: 56fec8d7cc74be2aaa9a5b54504b16fadb78a154
3
+ metadata.gz: a682e0da229e04c37aca7d4da4181a8725c837dd
4
+ data.tar.gz: 98c6cd09dedad0b048cf11551f7290c388fef9c8
5
5
  SHA512:
6
- metadata.gz: fe390e2de9dcaec0cc4f0d9b293acc70cb6019c56362a14ba1062947ed04fa32562e9adaa3eff6e2f7a670ce7086b7c411214e9cb388f8527365eba726e25791
7
- data.tar.gz: e81f275a7a8f82efad37b7c9ac741523f8fca6e0d8b8f8ab5b0b63e7d4a171d0f24332ea169386658e18bce83e360d1ba5e7101b1e03a40516c167dce4c784a2
6
+ metadata.gz: b6eeaedd38735cd6d63de62db3fc53cee81c3bf3350be60a91841a1c846a096ceee710a975a730192531ee7da2972b694de0933f0964b25ddaf4c91644426d4f
7
+ data.tar.gz: 3ac5879e34de2d2a3b3d4b91e5ec62f78ccbc63cd34a969843589b1f6d152e11f55aec84013f509dccfdfbd470e75a40950e9d38734ab52ba2de74a55907c874
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v 0.4.0
2
+ - Update to work with the new version of ActiveSet
1
3
  v 0.3.5
2
4
  - Don't rely on an instance variable for the `filter_structure`
3
5
  - Use the `ensure_active_set` method inside of `process_set`
@@ -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.5.1'
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
 
@@ -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::Instructions::Entry.new(keypath, value)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionSet
4
- VERSION = '0.3.5'
4
+ VERSION = '0.4.0'
5
5
  end
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.3.5
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-01-29 00:00:00.000000000 Z
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.5.1
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.5.1
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.5.1
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.