finest-builder 1.0.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/finest-builder.gemspec +1 -1
- data/lib/finest/builder/version.rb +1 -1
- data/lib/finest/builder.rb +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8d3cea35e0970444a21955f7eb8ac6c01e898e3983e898ca90e7ddc975639c7
|
4
|
+
data.tar.gz: 6037b6ebead0b302224d33679773df44f87376bf79716a9479ea3502d08f6b30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d526311e33271542eb2ee6c14afc25fc59885c6d8aeb6d5ae754177ac11573ae843f6aa647c235078900ff6b14575aeb741cf5502a6c7190677523666469e9
|
7
|
+
data.tar.gz: 0e8b70132694761f164b0ef1701dd69da4ccd3fbc2aa32b3410032ca5215d3da8c664559e919ee8bdb4cf31525d2c50342141d6bbbc6ab387bbcab08e00242af
|
data/.gitignore
CHANGED
data/finest-builder.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
#spec.description = %q{TODO: Write a longer description or delete this line.}
|
13
13
|
spec.homepage = 'https://github.com/eddygarcas/finest-builder'
|
14
14
|
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.4')
|
16
16
|
|
17
17
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
|
18
18
|
|
data/lib/finest/builder.rb
CHANGED
@@ -33,12 +33,10 @@ module Finest
|
|
33
33
|
keys = keys.empty? ? json.keys : keys
|
34
34
|
raise ArgumentError unless keys&.respond_to?(:each)
|
35
35
|
|
36
|
-
accessor_builder('to_h', {}) unless self.class.method_defined?(:as_json)
|
37
36
|
json.transform_keys!(&:to_s)
|
38
37
|
keys&.reject! { |key| key.end_with?('=') }
|
39
38
|
keys&.each do |key|
|
40
39
|
send("#{key.to_s.snake_case}=", nested_hash_value(json, key.to_s))
|
41
|
-
@to_h&.merge!({ key.to_s.snake_case.to_sym => send(key.to_s.snake_case.to_s) })
|
42
40
|
end
|
43
41
|
yield self if block_given?
|
44
42
|
self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finest-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduard Garcia Castello
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -46,7 +46,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.
|
49
|
+
version: 2.7.4
|
50
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|