lite-ruby 1.0.13 → 1.0.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8475c37b89cebc23a2b6c8d45c05a9faaa05cd707559d3e1c9dbc671b5b9eb6
4
- data.tar.gz: 543306b15474788c1ddefbc45ee6038d4bfea80fd04cb897fa5d4db41d812bce
3
+ metadata.gz: e4c106fb56b079e4cbec739ab066194d9bd9ad04efd4f937d1e1dc517a99c0f7
4
+ data.tar.gz: 256b601530f417a689026780dd0d70b6a75663fa7793733ee06ac0dbbc229ce5
5
5
  SHA512:
6
- metadata.gz: 5742b8fdd4dea13ee9b760c2e1bb79a45557bfad5797732bf9f68c23e66c2a6145ec89a1a53804cc352974f4f51b1df1c62ea2a78d35a3ab4b17a9304b5ea6e0
7
- data.tar.gz: 6892d76587eab981d031b1f3bb59421878b9e2fa44a2e74537462bad5748f17a77298e42d4b504c3282f2b4bc92d289585beb4bb7ea9049ffcccd3559155cb9b
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.13)
4
+ lite-ruby (1.0.14)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionpack (5.2.3)
10
- actionview (= 5.2.3)
11
- activesupport (= 5.2.3)
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.2)
16
- actionview (5.2.3)
17
- activesupport (= 5.2.3)
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.0, >= 1.0.3)
22
- activesupport (5.2.3)
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 (5.2.3)
63
- actionpack (= 5.2.3)
64
- activesupport (= 5.2.3)
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.19.0, < 2.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
@@ -127,16 +127,14 @@ class Hash
127
127
  end
128
128
 
129
129
  def deep_merge!(other_hash, &block)
130
- other_hash.each_pair.with_object(self) do |(current_key, other_value), hash|
131
- this_value = hash[current_key]
132
-
133
- hash[current_key] = if this_value.is_a?(Hash) && other_value.is_a?(Hash)
134
- this_value.deep_merge(other_value, yield(block))
135
- elsif block_given? && key?(current_key)
136
- yield(current_key, this_value, other_value)
137
- else
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
 
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION ||= '1.0.13'
6
+ VERSION ||= '1.0.14'
7
7
 
8
8
  end
9
9
  end
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.13
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-16 00:00:00.000000000 Z
11
+ date: 2019-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler