collapsium 0.8.2 → 0.9.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.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.rubocop.yml +27 -8
- data/.travis.yml +2 -0
- data/Gemfile.lock +32 -29
- data/collapsium.gemspec +5 -5
- data/lib/collapsium.rb +1 -1
- data/lib/collapsium/environment_override.rb +2 -2
- data/lib/collapsium/indifferent_access.rb +1 -1
- data/lib/collapsium/pathed_access.rb +1 -1
- data/lib/collapsium/prototype_match.rb +1 -1
- data/lib/collapsium/recursive_dup.rb +1 -1
- data/lib/collapsium/recursive_fetch.rb +1 -1
- data/lib/collapsium/recursive_merge.rb +1 -1
- data/lib/collapsium/recursive_sort.rb +1 -1
- data/lib/collapsium/support/array_methods.rb +9 -9
- data/lib/collapsium/support/hash_methods.rb +9 -9
- data/lib/collapsium/support/methods.rb +1 -1
- data/lib/collapsium/support/path_components.rb +1 -1
- data/lib/collapsium/uber_hash.rb +1 -1
- data/lib/collapsium/version.rb +2 -2
- data/lib/collapsium/viral_capabilities.rb +1 -1
- data/spec/indifferent_access_spec.rb +1 -1
- data/spec/pathed_access_spec.rb +1 -1
- data/spec/recursive_sort_spec.rb +10 -10
- data/spec/support_path_components_spec.rb +5 -5
- data/spec/viral_capabilities_spec.rb +4 -8
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: deac18315792dbdc2e175b87bad0fcfce11bce10
|
|
4
|
+
data.tar.gz: ef4d05110632ddc47fedb1fcdb39b6f8a7379b96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36e5ad4663e3c5d1091824857f2d2cc347e19dae1433cc796e0eb58bcd6043636aa343114d51f3d52ca4f71a361be06f0d7a3dddc64a8d9d5e390f4d018f418b
|
|
7
|
+
data.tar.gz: d704ceffee1732c7f9a8157ddc9ee1f10e8699c8796d771ee85516626ae2d54f83057339bab9d0c9526ce05cb0d9c8860bdf3b050461ce8fd4981318741d5b8a
|
data/.gitignore
CHANGED
|
@@ -29,7 +29,7 @@ build/
|
|
|
29
29
|
# for a library or gem, you might want to ignore these files since the code is
|
|
30
30
|
# intended to run in multiple environments; otherwise, check them in:
|
|
31
31
|
# Gemfile.lock
|
|
32
|
-
|
|
32
|
+
.ruby-version
|
|
33
33
|
# .ruby-gemset
|
|
34
34
|
|
|
35
35
|
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
data/.rubocop.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
AllCops:
|
|
2
|
-
TargetRubyVersion: 2.
|
|
2
|
+
TargetRubyVersion: 2.3
|
|
3
3
|
|
|
4
4
|
# Metrics
|
|
5
5
|
|
|
@@ -30,6 +30,9 @@ Metrics/ClassLength:
|
|
|
30
30
|
Metrics/ModuleLength:
|
|
31
31
|
Max: 300
|
|
32
32
|
|
|
33
|
+
Metrics/BlockLength:
|
|
34
|
+
Max: 300
|
|
35
|
+
|
|
33
36
|
# Style
|
|
34
37
|
|
|
35
38
|
Style/StringLiterals:
|
|
@@ -38,9 +41,6 @@ Style/StringLiterals:
|
|
|
38
41
|
Style/ConditionalAssignment:
|
|
39
42
|
Enabled: false
|
|
40
43
|
|
|
41
|
-
Style/EmptyLinesAroundModuleBody:
|
|
42
|
-
Enabled: false
|
|
43
|
-
|
|
44
44
|
Style/AndOr:
|
|
45
45
|
Enabled: false
|
|
46
46
|
|
|
@@ -59,9 +59,6 @@ Style/IfUnlessModifier:
|
|
|
59
59
|
Style/TrailingCommaInLiteral:
|
|
60
60
|
Enabled: false
|
|
61
61
|
|
|
62
|
-
Style/FirstParameterIndentation:
|
|
63
|
-
Enabled: false
|
|
64
|
-
|
|
65
62
|
Style/TrailingUnderscoreVariable:
|
|
66
63
|
Enabled: false
|
|
67
64
|
|
|
@@ -71,5 +68,27 @@ Style/NumericLiterals:
|
|
|
71
68
|
Style/FileName:
|
|
72
69
|
Enabled: false
|
|
73
70
|
|
|
74
|
-
Style/
|
|
71
|
+
Style/FrozenStringLiteralComment:
|
|
72
|
+
Enabled: false
|
|
73
|
+
|
|
74
|
+
Style/PreferredHashMethods:
|
|
75
|
+
Enabled: false
|
|
76
|
+
|
|
77
|
+
Style/NumericPredicate:
|
|
78
|
+
Enabled: false # Not compatible with <= 2.2
|
|
79
|
+
|
|
80
|
+
# Layout
|
|
81
|
+
|
|
82
|
+
Layout/EmptyLineAfterMagicComment:
|
|
83
|
+
Enabled: false
|
|
84
|
+
|
|
85
|
+
Layout/SpaceAfterNot:
|
|
86
|
+
Enabled: false
|
|
87
|
+
|
|
88
|
+
Layout/FirstParameterIndentation:
|
|
89
|
+
Enabled: false
|
|
90
|
+
|
|
91
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
75
92
|
Enabled: false
|
|
93
|
+
|
|
94
|
+
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,62 +1,65 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
collapsium (0.
|
|
4
|
+
collapsium (0.9.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
9
|
ast (2.3.0)
|
|
10
|
-
codeclimate-test-reporter (1.0.
|
|
11
|
-
simplecov
|
|
12
|
-
diff-lcs (1.
|
|
10
|
+
codeclimate-test-reporter (1.0.8)
|
|
11
|
+
simplecov (<= 0.13)
|
|
12
|
+
diff-lcs (1.3)
|
|
13
13
|
docile (1.1.5)
|
|
14
|
-
json (2.0
|
|
15
|
-
|
|
14
|
+
json (2.1.0)
|
|
15
|
+
parallel (1.12.0)
|
|
16
|
+
parser (2.4.0.0)
|
|
16
17
|
ast (~> 2.2)
|
|
17
18
|
powerpack (0.1.1)
|
|
18
|
-
rainbow (2.
|
|
19
|
+
rainbow (2.2.2)
|
|
20
|
+
rake
|
|
19
21
|
rake (11.3.0)
|
|
20
|
-
rspec (3.
|
|
21
|
-
rspec-core (~> 3.
|
|
22
|
-
rspec-expectations (~> 3.
|
|
23
|
-
rspec-mocks (~> 3.
|
|
24
|
-
rspec-core (3.
|
|
25
|
-
rspec-support (~> 3.
|
|
26
|
-
rspec-expectations (3.
|
|
22
|
+
rspec (3.6.0)
|
|
23
|
+
rspec-core (~> 3.6.0)
|
|
24
|
+
rspec-expectations (~> 3.6.0)
|
|
25
|
+
rspec-mocks (~> 3.6.0)
|
|
26
|
+
rspec-core (3.6.0)
|
|
27
|
+
rspec-support (~> 3.6.0)
|
|
28
|
+
rspec-expectations (3.6.0)
|
|
27
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
28
|
-
rspec-support (~> 3.
|
|
29
|
-
rspec-mocks (3.
|
|
30
|
+
rspec-support (~> 3.6.0)
|
|
31
|
+
rspec-mocks (3.6.0)
|
|
30
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
31
|
-
rspec-support (~> 3.
|
|
32
|
-
rspec-support (3.
|
|
33
|
-
rubocop (0.
|
|
34
|
-
|
|
33
|
+
rspec-support (~> 3.6.0)
|
|
34
|
+
rspec-support (3.6.0)
|
|
35
|
+
rubocop (0.49.1)
|
|
36
|
+
parallel (~> 1.10)
|
|
37
|
+
parser (>= 2.3.3.1, < 3.0)
|
|
35
38
|
powerpack (~> 0.1)
|
|
36
39
|
rainbow (>= 1.99.1, < 3.0)
|
|
37
40
|
ruby-progressbar (~> 1.7)
|
|
38
41
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
39
42
|
ruby-progressbar (1.8.1)
|
|
40
|
-
simplecov (0.
|
|
43
|
+
simplecov (0.13.0)
|
|
41
44
|
docile (~> 1.1.0)
|
|
42
45
|
json (>= 1.8, < 3)
|
|
43
46
|
simplecov-html (~> 0.10.0)
|
|
44
|
-
simplecov-html (0.10.
|
|
45
|
-
unicode-display_width (1.
|
|
46
|
-
yard (0.9.
|
|
47
|
+
simplecov-html (0.10.2)
|
|
48
|
+
unicode-display_width (1.3.0)
|
|
49
|
+
yard (0.9.9)
|
|
47
50
|
|
|
48
51
|
PLATFORMS
|
|
49
52
|
ruby
|
|
50
53
|
|
|
51
54
|
DEPENDENCIES
|
|
52
|
-
bundler (~> 1.
|
|
55
|
+
bundler (~> 1.15)
|
|
53
56
|
codeclimate-test-reporter
|
|
54
57
|
collapsium!
|
|
55
58
|
rake (~> 11.3)
|
|
56
|
-
rspec (~> 3.
|
|
57
|
-
rubocop (~> 0.
|
|
58
|
-
simplecov (~> 0.
|
|
59
|
+
rspec (~> 3.6)
|
|
60
|
+
rubocop (~> 0.49)
|
|
61
|
+
simplecov (~> 0.13)
|
|
59
62
|
yard (~> 0.9)
|
|
60
63
|
|
|
61
64
|
BUNDLED WITH
|
|
62
|
-
1.
|
|
65
|
+
1.15.4
|
data/collapsium.gemspec
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# collapsium
|
|
4
4
|
# https://github.com/jfinkhaeuser/collapsium
|
|
5
5
|
#
|
|
6
|
-
# Copyright (c) 2016 Jens Finkhaeuser and other collapsium contributors.
|
|
6
|
+
# Copyright (c) 2016-2017 Jens Finkhaeuser and other collapsium contributors.
|
|
7
7
|
# All rights reserved.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -34,11 +34,11 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
|
|
35
35
|
spec.required_ruby_version = '>= 2.0'
|
|
36
36
|
|
|
37
|
-
spec.add_development_dependency "bundler", "~> 1.
|
|
38
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
|
37
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
|
38
|
+
spec.add_development_dependency "rubocop", "~> 0.49"
|
|
39
39
|
spec.add_development_dependency "rake", "~> 11.3"
|
|
40
|
-
spec.add_development_dependency "rspec", "~> 3.
|
|
41
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
|
40
|
+
spec.add_development_dependency "rspec", "~> 3.6"
|
|
41
|
+
spec.add_development_dependency "simplecov", "~> 0.13"
|
|
42
42
|
spec.add_development_dependency "yard", "~> 0.9"
|
|
43
43
|
end
|
|
44
44
|
# rubocop:enable Style/SpaceAroundOperators
|
data/lib/collapsium.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# collapsium
|
|
4
4
|
# https://github.com/jfinkhaeuser/collapsium
|
|
5
5
|
#
|
|
6
|
-
# Copyright (c) 2016 Jens Finkhaeuser and other collapsium contributors.
|
|
6
|
+
# Copyright (c) 2016-2017 Jens Finkhaeuser and other collapsium contributors.
|
|
7
7
|
# All rights reserved.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -142,7 +142,7 @@ module Collapsium
|
|
|
142
142
|
env_keys = [key.to_s]
|
|
143
143
|
end
|
|
144
144
|
env_keys.map! { |k| key_to_env(k) }
|
|
145
|
-
env_keys.
|
|
145
|
+
env_keys.reject!(&:empty?)
|
|
146
146
|
env_keys.uniq!
|
|
147
147
|
|
|
148
148
|
return env_keys
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# collapsium
|
|
4
4
|
# https://github.com/jfinkhaeuser/collapsium
|
|
5
5
|
#
|
|
6
|
-
# Copyright (c) 2016 Jens Finkhaeuser and other collapsium contributors.
|
|
6
|
+
# Copyright (c) 2016-2017 Jens Finkhaeuser and other collapsium contributors.
|
|
7
7
|
# All rights reserved.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -20,25 +20,25 @@ module Collapsium
|
|
|
20
20
|
|
|
21
21
|
# @api private
|
|
22
22
|
# Read access methods with index parameter
|
|
23
|
-
INDEXED_READ_METHODS = [
|
|
24
|
-
|
|
23
|
+
INDEXED_READ_METHODS = %i[
|
|
24
|
+
[] at fetch include?
|
|
25
25
|
].freeze
|
|
26
26
|
|
|
27
27
|
# @api private
|
|
28
28
|
# All read access methods
|
|
29
|
-
READ_METHODS = INDEXED_READ_METHODS + [
|
|
30
|
-
|
|
29
|
+
READ_METHODS = INDEXED_READ_METHODS + %i[
|
|
30
|
+
dup first last take drop
|
|
31
31
|
].freeze
|
|
32
32
|
|
|
33
33
|
# @api private
|
|
34
34
|
# Write access methods with index parameter
|
|
35
|
-
INDEXED_WRITE_METHODS = [
|
|
36
|
-
|
|
35
|
+
INDEXED_WRITE_METHODS = %i[
|
|
36
|
+
[]= insert compact
|
|
37
37
|
].freeze
|
|
38
38
|
|
|
39
39
|
# All write access methods
|
|
40
|
-
WRITE_METHODS = INDEXED_WRITE_METHODS + [
|
|
41
|
-
|
|
40
|
+
WRITE_METHODS = INDEXED_WRITE_METHODS + %i[
|
|
41
|
+
unshift pop shift
|
|
42
42
|
].freeze
|
|
43
43
|
|
|
44
44
|
end # module ArrayMethods
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# collapsium
|
|
4
4
|
# https://github.com/jfinkhaeuser/collapsium
|
|
5
5
|
#
|
|
6
|
-
# Copyright (c) 2016 Jens Finkhaeuser and other collapsium contributors.
|
|
6
|
+
# Copyright (c) 2016-2017 Jens Finkhaeuser and other collapsium contributors.
|
|
7
7
|
# All rights reserved.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -20,25 +20,25 @@ module Collapsium
|
|
|
20
20
|
|
|
21
21
|
# @api private
|
|
22
22
|
# Read access methods with key parameter
|
|
23
|
-
KEYED_READ_METHODS = [
|
|
24
|
-
|
|
23
|
+
KEYED_READ_METHODS = %i[
|
|
24
|
+
[] default fetch has_key? include? key?
|
|
25
25
|
].freeze
|
|
26
26
|
|
|
27
27
|
# @api private
|
|
28
28
|
# All read access methods
|
|
29
|
-
READ_METHODS = KEYED_READ_METHODS + [
|
|
30
|
-
|
|
29
|
+
READ_METHODS = KEYED_READ_METHODS + %i[
|
|
30
|
+
dup
|
|
31
31
|
].freeze
|
|
32
32
|
|
|
33
33
|
# @api private
|
|
34
34
|
# Write access methods with key parameter
|
|
35
|
-
KEYED_WRITE_METHODS = [
|
|
36
|
-
|
|
35
|
+
KEYED_WRITE_METHODS = %i[
|
|
36
|
+
[]= delete store
|
|
37
37
|
].freeze
|
|
38
38
|
|
|
39
39
|
# All write access methods
|
|
40
|
-
WRITE_METHODS = KEYED_WRITE_METHODS + [
|
|
41
|
-
|
|
40
|
+
WRITE_METHODS = KEYED_WRITE_METHODS + %i[
|
|
41
|
+
merge merge!
|
|
42
42
|
].freeze
|
|
43
43
|
|
|
44
44
|
end # module HashMethods
|
data/lib/collapsium/uber_hash.rb
CHANGED
data/lib/collapsium/version.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
# collapsium
|
|
4
4
|
# https://github.com/jfinkhaeuser/collapsium
|
|
5
5
|
#
|
|
6
|
-
# Copyright (c) 2016 Jens Finkhaeuser and other collapsium contributors.
|
|
6
|
+
# Copyright (c) 2016-2017 Jens Finkhaeuser and other collapsium contributors.
|
|
7
7
|
# All rights reserved.
|
|
8
8
|
#
|
|
9
9
|
module Collapsium
|
|
10
10
|
# The current release version
|
|
11
|
-
VERSION = "0.
|
|
11
|
+
VERSION = "0.9.0".freeze
|
|
12
12
|
end
|
|
@@ -66,7 +66,7 @@ describe ::Collapsium::IndifferentAccess do
|
|
|
66
66
|
"foo", :foo,
|
|
67
67
|
"42", :"42", 42,
|
|
68
68
|
]
|
|
69
|
-
expect(::Collapsium::IndifferentAccess.unique_keys(test)).to eql %w
|
|
69
|
+
expect(::Collapsium::IndifferentAccess.unique_keys(test)).to eql %w[foo 42]
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
it "can sort keys" do
|
data/spec/pathed_access_spec.rb
CHANGED
data/spec/recursive_sort_spec.rb
CHANGED
|
@@ -16,8 +16,8 @@ describe ::Collapsium::RecursiveSort do
|
|
|
16
16
|
|
|
17
17
|
h.recursive_sort!
|
|
18
18
|
|
|
19
|
-
expect(h.keys).to eql %w
|
|
20
|
-
expect(h['c'].keys).to eql %w
|
|
19
|
+
expect(h.keys).to eql %w[a b c]
|
|
20
|
+
expect(h['c'].keys).to eql %w[d e f]
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
it "duplicates and sorts an outer hash (not deep)" do
|
|
@@ -35,12 +35,12 @@ describe ::Collapsium::RecursiveSort do
|
|
|
35
35
|
h2 = h.recursive_sort
|
|
36
36
|
|
|
37
37
|
# Only the new outer hash's keys are sorted
|
|
38
|
-
expect(h.keys).to eql %w
|
|
39
|
-
expect(h2.keys).to eql %w
|
|
38
|
+
expect(h.keys).to eql %w[a c b]
|
|
39
|
+
expect(h2.keys).to eql %w[a b c]
|
|
40
40
|
|
|
41
41
|
# Both inner hashes are sorted because dup isn't deep
|
|
42
|
-
expect(h['c'].keys).to eql %w
|
|
43
|
-
expect(h2['c'].keys).to eql %w
|
|
42
|
+
expect(h['c'].keys).to eql %w[d e f]
|
|
43
|
+
expect(h2['c'].keys).to eql %w[d e f]
|
|
44
44
|
|
|
45
45
|
# Similar with object IDs
|
|
46
46
|
expect(h.object_id).not_to eql h2.object_id
|
|
@@ -64,12 +64,12 @@ describe ::Collapsium::RecursiveSort do
|
|
|
64
64
|
h2 = h.recursive_sort
|
|
65
65
|
|
|
66
66
|
# Only the new outer hash's keys are sorted
|
|
67
|
-
expect(h.keys).to eql %w
|
|
68
|
-
expect(h2.keys).to eql %w
|
|
67
|
+
expect(h.keys).to eql %w[a c b]
|
|
68
|
+
expect(h2.keys).to eql %w[a b c]
|
|
69
69
|
|
|
70
70
|
# Only the new inner hash's keys are sorted
|
|
71
|
-
expect(h['c'].keys).to eql %w
|
|
72
|
-
expect(h2['c'].keys).to eql %w
|
|
71
|
+
expect(h['c'].keys).to eql %w[d f e]
|
|
72
|
+
expect(h2['c'].keys).to eql %w[d e f]
|
|
73
73
|
|
|
74
74
|
# Similar with object IDs
|
|
75
75
|
expect(h.object_id).not_to eql h2.object_id
|
|
@@ -33,25 +33,25 @@ describe ::Collapsium::Support::PathComponents do
|
|
|
33
33
|
|
|
34
34
|
context "#path_components" do
|
|
35
35
|
it "splits a path into components" do
|
|
36
|
-
expect(tester.path_components("foo.bar")).to eql %w
|
|
36
|
+
expect(tester.path_components("foo.bar")).to eql %w[foo bar]
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
it "strips empty components at the beginning" do
|
|
40
|
-
expect(tester.path_components("..foo.bar")).to eql %w
|
|
40
|
+
expect(tester.path_components("..foo.bar")).to eql %w[foo bar]
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
it "strips empty components at the end" do
|
|
44
|
-
expect(tester.path_components("foo.bar..")).to eql %w
|
|
44
|
+
expect(tester.path_components("foo.bar..")).to eql %w[foo bar]
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
it "strips empty components in the middle" do
|
|
48
|
-
expect(tester.path_components("foo...bar")).to eql %w
|
|
48
|
+
expect(tester.path_components("foo...bar")).to eql %w[foo bar]
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
context "#join_path" do
|
|
53
53
|
it "joins path components" do
|
|
54
|
-
expect(tester.join_path(%w
|
|
54
|
+
expect(tester.join_path(%w[foo bar])).to eql "foo.bar"
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
it "joins empty components to an empty string" do
|
|
@@ -4,8 +4,7 @@ require_relative '../lib/collapsium/viral_capabilities'
|
|
|
4
4
|
module TestModule
|
|
5
5
|
extend ::Collapsium::ViralCapabilities
|
|
6
6
|
|
|
7
|
-
def find_me
|
|
8
|
-
end
|
|
7
|
+
def find_me; end
|
|
9
8
|
end # TestModule
|
|
10
9
|
|
|
11
10
|
class PrependedHash < Hash
|
|
@@ -27,22 +26,19 @@ end
|
|
|
27
26
|
class DirectPrependedHash < Hash
|
|
28
27
|
prepend ::Collapsium::ViralCapabilities
|
|
29
28
|
|
|
30
|
-
def find_me
|
|
31
|
-
end
|
|
29
|
+
def find_me; end
|
|
32
30
|
end
|
|
33
31
|
|
|
34
32
|
class DirectIncludedHash < Hash
|
|
35
33
|
include ::Collapsium::ViralCapabilities
|
|
36
34
|
|
|
37
|
-
def find_me
|
|
38
|
-
end
|
|
35
|
+
def find_me; end
|
|
39
36
|
end
|
|
40
37
|
|
|
41
38
|
class DirectExtendedHash < Hash
|
|
42
39
|
extend ::Collapsium::ViralCapabilities
|
|
43
40
|
|
|
44
|
-
def find_me
|
|
45
|
-
end
|
|
41
|
+
def find_me; end
|
|
46
42
|
end
|
|
47
43
|
|
|
48
44
|
class LoggingHash < Hash
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: collapsium
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jens Finkhaeuser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-08-31 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: '1.
|
|
19
|
+
version: '1.15'
|
|
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.
|
|
26
|
+
version: '1.15'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0.
|
|
33
|
+
version: '0.49'
|
|
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: '0.
|
|
40
|
+
version: '0.49'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,28 +58,28 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.
|
|
61
|
+
version: '3.6'
|
|
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: '3.
|
|
68
|
+
version: '3.6'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: simplecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0.
|
|
75
|
+
version: '0.13'
|
|
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: '0.
|
|
82
|
+
version: '0.13'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: yard
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
version: '0'
|
|
163
163
|
requirements: []
|
|
164
164
|
rubyforge_project:
|
|
165
|
-
rubygems_version: 2.
|
|
165
|
+
rubygems_version: 2.6.11
|
|
166
166
|
signing_key:
|
|
167
167
|
specification_version: 4
|
|
168
168
|
summary: Provides various Hash extensions, and an UberHash class that uses them all.
|