hash_digger 0.0.3 → 0.1.3

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: d0d6740d7d10a172e410f0eea4933149fc4872d443b1c2275e435ea12c6300a3
4
- data.tar.gz: f4d594afbf9cde96503ce775fca7deaa18c7ad44ceda7bfbb22f832b7c2211e3
3
+ metadata.gz: 615d77a5daebed8b5d61f076d62cd0fa09227678c19f3c362fad8ae5f14dd724
4
+ data.tar.gz: 9957ff246f030d86e480bd071b193b17e1c7a6e9437d72b3c2ed3b396d2af3b9
5
5
  SHA512:
6
- metadata.gz: e8d13021a76c7fad6c9fdc50dc8bb96eb6f88de26ed12cdf89c9e0e86f5ef9883eae04a46a26f360d50af8581f106b3c78809deb958054590cb4be844301857a
7
- data.tar.gz: bc00ca8f23e7b8eb50728067d4bbf990d5d92b85818a35b73517e3c0f2a051c1bad3cdd3fcd23a159c16705fa0b2f248a3668a093221e307f9f2ee52ceec315e
6
+ metadata.gz: 030c784fdb612501679933529616a39e01b2962abab34401017507e039971e4d5bea20307c96d031488ec0167c12a714958e415bbb8eda7960333fee93c16a28
7
+ data.tar.gz: 5a976e38dec8500d6eb736689e26a283fcbb8331871eb9f241f1414bf8f67b68c0349911055b6a22fec8cc62b9f00953bfbec0700ce614cb754bdeb3dd8975c9
data/.gitignore CHANGED
@@ -9,4 +9,5 @@
9
9
  .byebug_history
10
10
  *.gem
11
11
  .vscode
12
- Gemfile.lock
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', '~> 2.0'
38
- spec.add_development_dependency 'minitest', '~> 5.11'
37
+ spec.add_development_dependency 'bundler', '~> 2.1'
38
+ spec.add_development_dependency 'byebug', '~> 11.1'
39
39
  spec.add_development_dependency 'm', '~> 1.5'
40
- spec.add_development_dependency 'minitest-reporters', '~> 1.3'
41
- spec.add_development_dependency 'rake', '~> 12.3'
42
- spec.add_development_dependency 'byebug', '~> 11.0'
43
- spec.add_development_dependency 'letters', '~> 0.4'
44
- spec.add_development_dependency 'awesome_print', '~> 1.8'
40
+ spec.add_development_dependency 'minitest-reporters', '~> 1.4'
41
+ spec.add_development_dependency 'minitest', '~> 5.14'
42
+ spec.add_development_dependency 'rake', '~> 13.0'
43
+ spec.add_development_dependency 'tapp', '~> 1.5'
45
44
 
46
- spec.add_runtime_dependency 'activesupport', '~> 5.2'
45
+ spec.add_runtime_dependency 'activesupport', '~> 6.0'
46
+ spec.add_runtime_dependency 'amazing_print', '~> 1.2'
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.3'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_digger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.3
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-04 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
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.1'
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: '2.0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: minitest
28
+ name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.11'
33
+ version: '11.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: '11.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: m
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,84 +58,84 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.3'
61
+ version: '1.4'
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.4'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '12.3'
75
+ version: '5.14'
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: '12.3'
82
+ version: '5.14'
83
83
  - !ruby/object:Gem::Dependency
84
- name: byebug
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '11.0'
89
+ version: '13.0'
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: '11.0'
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: letters
98
+ name: tapp
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.4'
103
+ version: '1.5'
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: '1.5'
111
111
  - !ruby/object:Gem::Dependency
112
- name: awesome_print
112
+ name: activesupport
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.8'
118
- type: :development
117
+ version: '6.0'
118
+ type: :runtime
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: '6.0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: activesupport
126
+ name: amazing_print
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '5.2'
131
+ version: '1.2'
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: '5.2'
138
+ version: '1.2'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: ruby-try
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubygems_version: 3.0.3
195
+ rubygems_version: 3.1.2
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Hash Digger (improved)