hash_digger 0.0.2 → 0.1.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
  SHA256:
3
- metadata.gz: 520637fc5cf1e79dc8a9362c15a90906df2d9cce6e493ca3c3da8704a3cfed0d
4
- data.tar.gz: a9270b9064d2cf3a015f0b1173bd4cdc70b4bbe05ae1585e554be4b888beadfd
3
+ metadata.gz: 7258d9cb133da6a115949e723ab79d6eb6a12cae0323ab933b5a86b615f3f974
4
+ data.tar.gz: 1d442dfc112d560bb472bf822f195b29fc718256698f410f172e62ca016a038e
5
5
  SHA512:
6
- metadata.gz: 88fd1fb61415566dc8a27500fae1794bad1e661b70cb12945a4db3d11ccc5fbffae05c5dc80aee00772e8dcc53a1d2a896ebf9c1d3b599e45ec1da0ec285a1b9
7
- data.tar.gz: e332cd0e6bbb8b2acd2656a3e0fcbf296468bbc02b9d67b7b7d69463e78fec5d46ec2d783e69381584b1275eb60fb6907b19c881af1fb62d352aaa75555aab9f
6
+ metadata.gz: 179b3d39e8c18309cbbfac937ffaa1ed2b67bc36c06ae242f4065d433784875b704dfd2e4ba731a429fa70faa8bd5371cd7dcd6febab1472b415dfdce0108a29
7
+ data.tar.gz: 5565e2c1fd688084810b438b98cdd7f5e7045cc5aa0325067679bb487742e461137371db6bf5964fe967224361cf7fc453b808682dbd1e1a05a1641cf033932b
data/.gitignore CHANGED
@@ -8,4 +8,6 @@
8
8
  /tmp/
9
9
  .byebug_history
10
10
  *.gem
11
- .vscode
11
+ .vscode
12
+ Gemfile.lock
13
+ tags
@@ -3,5 +3,6 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.4.1
7
- before_install: gem install bundler -v 1.17.1
6
+ - 2.5
7
+ - 2.6
8
+ before_install: gem install bundler -v '~> 2.1'
data/README.md CHANGED
@@ -77,6 +77,17 @@ Or install it yourself as:
77
77
  end) # ["OK", "OK", "test"]
78
78
  ````
79
79
 
80
+ ## Existing solutions
81
+
82
+ There are many existing solutions out there implemented as snippets of code, libraries & answers on StackOverflow, here's just a short list of some:
83
+
84
+ * [xkeys](https://rubygems.org/gems/xkeys)
85
+ * [vine](https://github.com/chengguangnan/vine)
86
+ * [hashie](https://github.com/hashie/hashie)
87
+ * [Accessing elements of nested hashes in Ruby](https://stackoverflow.com/questions/5544858/accessing-elements-of-nested-hashes-in-ruby)
88
+ * [Ruby Style: How to check whether a nested hash element exists](https://stackoverflow.com/questions/1820451/ruby-style-how-to-check-whether-a-nested-hash-element-exists)
89
+ * [How to avoid NoMethodError for nil elements when accessing nested hashes?](https://stackoverflow.com/questions/20126592/how-to-avoid-nomethoderror-for-nil-elements-when-accessing-nested-hashes)
90
+
80
91
  ## Development
81
92
 
82
93
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
File without changes
@@ -34,15 +34,15 @@ Gem::Specification.new do |spec|
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ['lib']
36
36
 
37
- spec.add_development_dependency 'bundler', '~> 1.17'
38
- spec.add_development_dependency 'minitest', '~> 5.11'
37
+ spec.add_development_dependency 'amazing_print', '~> 1.2'
38
+ spec.add_development_dependency 'bundler', '~> 2.1'
39
+ spec.add_development_dependency 'byebug', '~> 11.1'
39
40
  spec.add_development_dependency 'm', '~> 1.5'
40
- spec.add_development_dependency 'minitest-reporters', '~> 1.3'
41
- spec.add_development_dependency 'rake', '~> 10.0'
42
- spec.add_development_dependency 'byebug', '~> 10.0'
43
- spec.add_development_dependency 'letters', '~> 0.4'
44
- spec.add_development_dependency 'awesome_print', '~> 1.8'
41
+ spec.add_development_dependency 'minitest-reporters', '~> 1.4'
42
+ spec.add_development_dependency 'minitest', '~> 5.14'
43
+ spec.add_development_dependency 'rake', '~> 13.0'
44
+ spec.add_development_dependency 'tapp', '~> 1.5'
45
45
 
46
- spec.add_runtime_dependency 'activesupport', '~> 3.0'
46
+ spec.add_runtime_dependency 'activesupport', '~> 6.0'
47
47
  spec.add_runtime_dependency 'ruby-try', '~> 1.1'
48
48
  end
@@ -1,12 +1,10 @@
1
- require_relative './hash_digger/version'
2
-
3
1
  require 'ruby-try'
4
- require 'awesome_print'
2
+ require 'stringio'
3
+ require 'amazing_print'
5
4
  require 'active_support/core_ext/object/blank'
6
5
  require 'active_support/core_ext/hash/indifferent_access'
7
6
 
8
7
  require 'byebug' if ENV['DEBUG']
9
- require 'letters' if ENV['DEBUG']
10
8
 
11
9
  module HashDigger
12
10
  class DigError < Exception; end
@@ -1,3 +1,3 @@
1
1
  module HashDigger
2
- VERSION = '0.0.2'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,141 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_digger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serge Bedzhyk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2020-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: amazing_print
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
19
+ version: '1.2'
20
20
  type: :development
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: '1.17'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: minitest
28
+ name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.11'
33
+ version: '2.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.11'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: m
42
+ name: byebug
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.5'
47
+ version: '11.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.5'
54
+ version: '11.1'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest-reporters
56
+ name: m
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.3'
61
+ version: '1.5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.3'
68
+ version: '1.5'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: minitest-reporters
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: '1.4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: '1.4'
83
83
  - !ruby/object:Gem::Dependency
84
- name: byebug
84
+ name: minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '5.14'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '5.14'
97
97
  - !ruby/object:Gem::Dependency
98
- name: letters
98
+ name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.4'
103
+ version: '13.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.4'
110
+ version: '13.0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: awesome_print
112
+ name: tapp
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.8'
117
+ version: '1.5'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.8'
124
+ version: '1.5'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: activesupport
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '3.0'
131
+ version: '6.0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '3.0'
138
+ version: '6.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: ruby-try
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +162,6 @@ files:
162
162
  - ".travis.yml"
163
163
  - CODE_OF_CONDUCT.md
164
164
  - Gemfile
165
- - Gemfile.lock
166
165
  - LICENSE.txt
167
166
  - README.md
168
167
  - Rakefile
@@ -193,8 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
192
  - !ruby/object:Gem::Version
194
193
  version: '0'
195
194
  requirements: []
196
- rubyforge_project:
197
- rubygems_version: 2.7.8
195
+ rubygems_version: 3.1.2
198
196
  signing_key:
199
197
  specification_version: 4
200
198
  summary: Hash Digger (improved)
@@ -1,63 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- hash_digger (0.0.2)
5
- activesupport (> 3.0.1)
6
- ruby-try (~> 1.1)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activesupport (5.2.2)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- ansi (1.5.0)
17
- awesome_print (1.8.0)
18
- builder (3.2.3)
19
- byebug (10.0.2)
20
- colorize (0.8.1)
21
- concurrent-ruby (1.1.4)
22
- i18n (1.2.0)
23
- concurrent-ruby (~> 1.0)
24
- letters (0.4.1)
25
- activesupport
26
- awesome_print
27
- colorize
28
- xml-simple
29
- m (1.5.1)
30
- method_source (>= 0.6.7)
31
- rake (>= 0.9.2.2)
32
- method_source (0.9.2)
33
- minitest (5.11.3)
34
- minitest-reporters (1.3.5)
35
- ansi
36
- builder
37
- minitest (>= 5.0)
38
- ruby-progressbar
39
- rake (10.5.0)
40
- ruby-progressbar (1.10.0)
41
- ruby-try (1.1.1)
42
- thread_safe (0.3.6)
43
- tzinfo (1.2.5)
44
- thread_safe (~> 0.1)
45
- xml-simple (1.1.5)
46
-
47
- PLATFORMS
48
- ruby
49
- x86_64-darwin-17
50
-
51
- DEPENDENCIES
52
- awesome_print (~> 1.8)
53
- bundler (~> 1.17)
54
- byebug (~> 10.0)
55
- hash_digger!
56
- letters (~> 0.4)
57
- m (~> 1.5)
58
- minitest (~> 5.11)
59
- minitest-reporters (~> 1.3)
60
- rake (~> 10.0)
61
-
62
- BUNDLED WITH
63
- 1.17.1