lite-ruby 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +15 -13
- data/lib/.DS_Store +0 -0
- data/lib/lite/.DS_Store +0 -0
- data/lib/lite/ruby/hash.rb +8 -10
- data/lib/lite/ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4c106fb56b079e4cbec739ab066194d9bd9ad04efd4f937d1e1dc517a99c0f7
|
4
|
+
data.tar.gz: 256b601530f417a689026780dd0d70b6a75663fa7793733ee06ac0dbbc229ce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ba4210ce3f80451a59958ab7420f714104fffe6ca8af39199842dc34d696247b065380466a82e4d0c0ca3e441cdc3bb4065ba0ccc54b6a474bf9f0fd5cc5cf
|
7
|
+
data.tar.gz: cfd656670786c5b0f98ffbe92c484e4dd4f9fa10760e250a442bd6095a1c433641a47cebcd89dd8738b4c52916c0cd37bd12aecaa711db9ed42c536aa01d838c
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.0.13] - 2019-08-17
|
10
|
+
### Changed
|
11
|
+
- Changed how hash deep_merge works
|
12
|
+
|
9
13
|
## [1.0.13] - 2019-08-16
|
10
14
|
### Changed
|
11
15
|
- Revert constantize function
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-ruby (1.0.
|
4
|
+
lite-ruby (1.0.14)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionpack (
|
10
|
-
actionview (=
|
11
|
-
activesupport (=
|
9
|
+
actionpack (6.0.0)
|
10
|
+
actionview (= 6.0.0)
|
11
|
+
activesupport (= 6.0.0)
|
12
12
|
rack (~> 2.0)
|
13
13
|
rack-test (>= 0.6.3)
|
14
14
|
rails-dom-testing (~> 2.0)
|
15
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
16
|
-
actionview (
|
17
|
-
activesupport (=
|
15
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
16
|
+
actionview (6.0.0)
|
17
|
+
activesupport (= 6.0.0)
|
18
18
|
builder (~> 3.1)
|
19
19
|
erubi (~> 1.4)
|
20
20
|
rails-dom-testing (~> 2.0)
|
21
|
-
rails-html-sanitizer (~> 1.
|
22
|
-
activesupport (
|
21
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
22
|
+
activesupport (6.0.0)
|
23
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
24
|
i18n (>= 0.7, < 2)
|
25
25
|
minitest (~> 5.1)
|
26
26
|
tzinfo (~> 1.1)
|
27
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
27
28
|
ast (2.4.0)
|
28
29
|
builder (3.2.3)
|
29
30
|
colorize (0.8.1)
|
@@ -59,12 +60,12 @@ GEM
|
|
59
60
|
nokogiri (>= 1.6)
|
60
61
|
rails-html-sanitizer (1.2.0)
|
61
62
|
loofah (~> 2.2, >= 2.2.2)
|
62
|
-
railties (
|
63
|
-
actionpack (=
|
64
|
-
activesupport (=
|
63
|
+
railties (6.0.0)
|
64
|
+
actionpack (= 6.0.0)
|
65
|
+
activesupport (= 6.0.0)
|
65
66
|
method_source
|
66
67
|
rake (>= 0.8.7)
|
67
|
-
thor (>= 0.
|
68
|
+
thor (>= 0.20.3, < 2.0)
|
68
69
|
rainbow (3.0.0)
|
69
70
|
rake (12.3.3)
|
70
71
|
rspec (3.8.0)
|
@@ -100,6 +101,7 @@ GEM
|
|
100
101
|
tzinfo (1.2.5)
|
101
102
|
thread_safe (~> 0.1)
|
102
103
|
unicode-display_width (1.6.0)
|
104
|
+
zeitwerk (2.1.9)
|
103
105
|
|
104
106
|
PLATFORMS
|
105
107
|
ruby
|
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/lite/.DS_Store
CHANGED
Binary file
|
data/lib/lite/ruby/hash.rb
CHANGED
@@ -127,16 +127,14 @@ class Hash
|
|
127
127
|
end
|
128
128
|
|
129
129
|
def deep_merge!(other_hash, &block)
|
130
|
-
other_hash
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
other_value
|
139
|
-
end
|
130
|
+
merge!(other_hash) do |key, this_val, other_val|
|
131
|
+
if this_val.is_a?(Hash) && other_val.is_a?(Hash)
|
132
|
+
this_val.deep_merge(other_val, &block)
|
133
|
+
elsif block_given?
|
134
|
+
yield(key, this_val, other_val)
|
135
|
+
else
|
136
|
+
other_val
|
137
|
+
end
|
140
138
|
end
|
141
139
|
end
|
142
140
|
|
data/lib/lite/ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|