activeset 0.4.1 → 0.4.2

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: a66cb29e20215e5a3b557c42f4e26d8fc11ac1d5
4
- data.tar.gz: fc753c66b3a0048cbba2fbe324b4fecdf56b71dd
3
+ metadata.gz: 43b8c14be0e499a84f414dd4f1b4d101cb0c8ae9
4
+ data.tar.gz: 63d2f2f54be44b6d37e8da72eaba0cef2aec3552
5
5
  SHA512:
6
- metadata.gz: f67cd1eb42f427464986815030f36674a5fdafb9462fa3eb39cda9c1528e1e429c641046c5f68710d4d347f4856ed535f0794fd04031102bcac0fee0bb301fd3
7
- data.tar.gz: 0ef3afc45bbf31d8237e1b01c12b65b186448e01fa40cdaf1a403e1eef3c006346a5f21f5a5c1dcfc7a7552ad9f33fde9af555ba97f4f86d7f1596cc4fdc8aad
6
+ metadata.gz: 10fff65c6a1936633c374f6e07a5c81d679d7991940f8b2a2bc7c50807f418c2a9760fd30d246ad2417e19b348db9a58ca3df7d12ec03e1a53538c5bd28348a4
7
+ data.tar.gz: d0b5327b6a08e168ffdedb6b65be5095f00081a01fa18f40d79a34fe1a7673517c61fd36ee4e00ca52befd8aa32cdda489ca64d35d3ed00cb2ce8e15eb86f865
@@ -0,0 +1 @@
1
+ 2.4.1
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v 0.4.2
2
+ - Ensure that the `transform_keys` method is available for Hashes by bringing in the ActiveSupport module
3
+ - Fix bug in handling string keypaths passed in from Processors
4
+ - Set the Ruby version for this project
1
5
  v 0.4.1
2
6
  - Soften the constraint on the ActiveSupport dependency
3
7
  - Don't require ActiveSupport methods that are no longer used in the processors
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'active_support/core_ext/hash/keys'
4
+
3
5
  require_relative './entry'
4
6
 
5
7
  class ActiveSet
@@ -12,7 +12,7 @@ class ActiveSet
12
12
  def initialize(path)
13
13
  # `path` can be an Array (e.g. [:parent, :child, :grandchild])
14
14
  # or a String (e.g. 'parent.child.grandchild')
15
- @path = path.is_a?(String) ? path.split('.') : Array.wrap(path).map(&:to_s)
15
+ @path = Array.wrap(path).map(&:to_s).flat_map { |x| x.split('.') }
16
16
  end
17
17
 
18
18
  def attribute
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ActiveSet
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim
@@ -160,6 +160,7 @@ files:
160
160
  - ".gitignore"
161
161
  - ".rspec"
162
162
  - ".rubocop.yml"
163
+ - ".ruby-version"
163
164
  - ".travis.yml"
164
165
  - CHANGELOG
165
166
  - Gemfile
@@ -207,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
208
  version: '0'
208
209
  requirements: []
209
210
  rubyforge_project:
210
- rubygems_version: 2.5.1
211
+ rubygems_version: 2.6.11
211
212
  signing_key:
212
213
  specification_version: 4
213
214
  summary: A toolkit for working with enumerable sets.