backport_dig 0.0.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -23
  3. metadata +9 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c2cd469be19656c64c432426b10cf53186b0ac7
4
- data.tar.gz: 461f848d23b43ebb5c168f6867e18d9c54ed5ee9
3
+ metadata.gz: bfcc7be2e181c464c7d9dd7aa6bd38b2e04e4df5
4
+ data.tar.gz: 178eb45e8e04433baae545609fa66de7d3cf5ae4
5
5
  SHA512:
6
- metadata.gz: 9ff5fbecba2247d21c94581ec6122b93d2bc775628ef794d0b1779687e27a07cf0910ca783faaef3c90ca7f1b2a7a0d7eb310a7bdd80a10782a914815516ea95
7
- data.tar.gz: 7d329c028973e27a8c942ae7fcdc0095529f20a6d355fc1d0c53b6bb7ee6c2fcacd59ff629933d6680e5bcacf7d3e4dd57e57341cd1e787614b007fcecb2a802
6
+ metadata.gz: c1abcb1e5fea29440f2942e007b6dfd37fddaf75d07499a06296eb647378a6c87dca3cffcfae74e6325ff727abcd52052a33feec6bf6b0e56f146d75b5daf520
7
+ data.tar.gz: caaf1cda461660a59b17158ae53ce6edd07763b19fb6593fbfe487986cb865b754e8295724f83e80d43a4767a18d1e9aca9e33aa2504ef591bdb3570fd77d92e
data/README.md CHANGED
@@ -1,30 +1,10 @@
1
1
  # backport_dig [![Build Status](https://travis-ci.org/koic/backport_dig.svg)](https://travis-ci.org/koic/backport_dig) [![Gem Version](https://badge.fury.io/rb/backport_dig.svg)](http://badge.fury.io/rb/backport_dig)
2
2
 
3
- backport_dig is the backport of Hash#dig and Array#dig in Ruby 2.3.0 to older Ruby versions.
3
+ backport_dig is the backport of Hash#dig, Array#dig and OpenStruct#dig in Ruby 2.3 to older Ruby versions.
4
4
 
5
- The best way is to use Ruby 2.3.0 or later. Because you can use original dig methods and so on.
5
+ The best way is to use Ruby 2.3 or later. Because you can use original dig methods and so on.
6
6
 
7
- ## Ruby 2.3 incompatible
8
-
9
- * Struct#dig is not supported
10
-
11
- ## Synopsis
12
-
13
- ```ruby
14
- h = {foo: {bar: {baz: 1}}}
15
- h.dig(:foo, :bar, :baz) #=> 1
16
-
17
- a = [[1, [2, 3]]]
18
- a.dig(0, 1, 1) #=> 3
19
- ```
20
-
21
- ## Supported Versions
22
-
23
- * Ruby 2.0
24
- * Ruby 2.1
25
- * Ruby 2.2
26
-
27
- ## INSTALL
7
+ ## Installation
28
8
 
29
9
  Add these lines to your application's Gemfile:
30
10
 
@@ -50,6 +30,26 @@ And require it as:
50
30
  require 'backport_dig'
51
31
  ```
52
32
 
33
+ ## Synopsis
34
+
35
+ ```ruby
36
+ h = {foo: {bar: {baz: 1}}}
37
+ h.dig(:foo, :bar, :baz) #=> 1
38
+
39
+ a = [[1, [2, 3]]]
40
+ a.dig(0, 1, 1) #=> 3
41
+ ```
42
+
43
+ ## Supported Versions
44
+
45
+ * Ruby 2.0
46
+ * Ruby 2.1
47
+ * Ruby 2.2
48
+
49
+ ## Ruby 2.3 incompatible
50
+
51
+ * Struct#dig is not supported
52
+
53
53
  ## Contributing
54
54
 
55
55
  1. Fork it
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backport_dig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi ITO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2017-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hoe
@@ -52,8 +52,8 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.0.0
55
- description: backport_dig is the backport of Hash#dig and Array#dig in Ruby 2.3.0
56
- to older Ruby versions.
55
+ description: backport_dig is the backport of Hash#dig, Array#dig and OpenStruct#dig
56
+ in Ruby 2.3 to older Ruby versions.
57
57
  email: koic.ito@gmail.com
58
58
  executables: []
59
59
  extensions:
@@ -72,8 +72,8 @@ licenses:
72
72
  - MIT
73
73
  metadata: {}
74
74
  post_install_message: |
75
- backport_dig is the backport of Hash#dig and Array#dig in Ruby 2.3.0 to older Ruby versions.
76
- The best way is to use Ruby 2.3.0 or later.
75
+ backport_dig is the backport of Hash#dig, Array#dig and OpenStruct#dig in Ruby 2.3 to older Ruby versions.
76
+ The best way is to use Ruby 2.3 or later.
77
77
  Thanks.
78
78
  rdoc_options: []
79
79
  require_paths:
@@ -93,10 +93,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.4.5.1
96
+ rubygems_version: 2.4.5.2
97
97
  signing_key:
98
98
  specification_version: 4
99
- summary: backport_dig is the backport of Hash#dig and Array#dig in Ruby 2.3.0 to older
100
- Ruby versions.
99
+ summary: backport_dig is the backport of Hash#dig, Array#dig and OpenStruct#dig in
100
+ Ruby 2.3 to older Ruby versions.
101
101
  test_files: []
102
- has_rdoc: