onebox 1.8.96 → 1.8.97

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
  SHA256:
3
- metadata.gz: 3f16554d39128fb96f768eb076e102f93a3a3a5b25225470babdc73b595cc039
4
- data.tar.gz: e940f9efc136221d4343871fe9ed7032879866358d9c06cba4224d0a6b9d1e9e
3
+ metadata.gz: 60b1794fe68c0a1767ea3180aca752e6df28432f76410a3b898880924c6f8d7f
4
+ data.tar.gz: 8793e5853e271e4886913edb5367cfdd7053ccce6bc1cfdb1995e73810edd492
5
5
  SHA512:
6
- metadata.gz: d2331514eb4a99ccb813fd8f61522d326d42209a7bb184b24cc8484fa85b7894b8fcfb78806a5a6bbe9012a645c141f5bec30c34d9a900c8d0616671df2bd994
7
- data.tar.gz: 484b176b361a4afb29d334a8491a9e3dcc51686594c96b23162a2c634b58d357d3e851bf8ecaf952aa847ac86546b34938057eabbf8bfaf9ee6fe20bcb3b6a7a
6
+ metadata.gz: 71064404491d930228882773c64b77639615e523307f35b1401202884d58e4b4b757abe93cbfa2d73a89417c85f9fbba7be217317578e89ace0380608f585d02
7
+ data.tar.gz: e68cfc2d03f14267d68cb8b30f196d7bb89726efb382eadcae245abbdfd0095ac27bc6ea1039ce26e396911fb271e340f1b9be527fc119b232979f6b204f1622
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- onebox (1.8.95)
4
+ onebox (1.8.97)
5
5
  htmlentities (~> 4.3)
6
6
  moneta (~> 1.0)
7
7
  multi_json (~> 1.11)
@@ -51,7 +51,10 @@ module Onebox
51
51
  end
52
52
 
53
53
  def access(*keys)
54
- raw.dig *keys
54
+ keys.reduce(raw) do |memo, key|
55
+ next unless memo
56
+ memo[key] || memo[key.to_s]
57
+ end
55
58
  end
56
59
 
57
60
  def tweet
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.8.96"
4
+ VERSION = "1.8.97"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.96
4
+ version: 1.8.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta