fedux_org-stdlib 0.10.8 → 0.10.9

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: 02d85b8d2701c92a7193843b05410e085d0cb353
4
- data.tar.gz: e9a338e329ea1dfde4f5bf35111afec1bbd92f15
3
+ metadata.gz: c44cab08056c229bf8535d4994846ca07d7a0362
4
+ data.tar.gz: ab0ec728021b15f9618ab70d536626699e0fe75e
5
5
  SHA512:
6
- metadata.gz: b54f3924f8eb0e713d7a33c59ed3174426afddd904d3ba71b433a538c6dea089f3ebfa101409a846c948f5256d1d687918f7168f4902ed94ed381fd1e51496d7
7
- data.tar.gz: 15f9282347bf69285e7e8e07c007608fd89f9e09043d79f102496a07943737d44c3fb1bdd82e3cd584d9a1bc67121965995e63f11ee2e95ababf341f8dc371d5
6
+ metadata.gz: c4af40e686018d96dae9d10b4bb05a3d83faed1a69246d517c06a82d752977b363fb8b191221bb2540f03d5a3defbf881cc9875853425034e5f1ae1b718199af
7
+ data.tar.gz: b6a748aa6768e39770996a2f1843add05cab929a48f0f4db2628df1c22bbaeefdef5d8bb6bdcfb27a9ae34bd6591e09a46003187d39574602cb878615781530c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fedux_org-stdlib (0.10.7)
4
+ fedux_org-stdlib (0.10.9)
5
5
  activesupport
6
6
 
7
7
  PATH
@@ -277,9 +277,13 @@ module FeduxOrgStdlib
277
277
  end
278
278
 
279
279
  def to_h(keys: [], remove_blank: false)
280
- options_to_check = known_options.delete_if { |o| !keys.blank? && !keys.map(&:to_sym).include?(o) }.sort
280
+ options_to_return = if keys.blank?
281
+ known_options.to_a
282
+ else
283
+ known_options.to_a & keys.map(&:to_sym)
284
+ end
281
285
 
282
- options_to_check.each_with_object({}) do |e, a|
286
+ options_to_return.sort.each_with_object({}) do |e, a|
283
287
  next if remove_blank && public_send(e).blank?
284
288
  a[e] = public_send(e)
285
289
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.10.8'
4
+ VERSION = '0.10.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.8
4
+ version: 0.10.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubyforge_project:
256
- rubygems_version: 2.4.1
256
+ rubygems_version: 2.2.2
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: Collection of useful libraries. It maybe depend on external libraries.