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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0af65dd478cbb0858b84206d732cca843766b8a904ee9e6b429fcf90cb519a14
4
- data.tar.gz: 64da89a7032bee0a4210cfdcff433194c63418829481a63c65212198e418bf33
3
+ metadata.gz: e8d3cea35e0970444a21955f7eb8ac6c01e898e3983e898ca90e7ddc975639c7
4
+ data.tar.gz: 6037b6ebead0b302224d33679773df44f87376bf79716a9479ea3502d08f6b30
5
5
  SHA512:
6
- metadata.gz: a1c02d4e3848ce69b88ead6515f774fc3595b7e6a7787c1bbee719987e946ae95bb373b38e56ffdad890981b80a69336ef589087b0c0a8fd4d6334d3c02fe8d6
7
- data.tar.gz: 2927353a289ac0cb2208990eb4957dceab8106ef3b46654e6d3b515eecd65f617216640824d14c0a301305d75e42db13a7554077e0d0ed263ead25161e489582
6
+ metadata.gz: a5d526311e33271542eb2ee6c14afc25fc59885c6d8aeb6d5ae754177ac11573ae843f6aa647c235078900ff6b14575aeb741cf5502a6c7190677523666469e9
7
+ data.tar.gz: 0e8b70132694761f164b0ef1701dd69da4ccd3fbc2aa32b3410032ca5215d3da8c664559e919ee8bdb4cf31525d2c50342141d6bbbc6ab387bbcab08e00242af
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
  /.idea/*
10
10
  Gemfile.lock
11
11
  /.idea/
12
+ *.gem
13
+ /vendor/
@@ -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.3.0')
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
 
@@ -1,5 +1,5 @@
1
1
  module Finest
2
2
  module Builder
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -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.0.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-17 00:00:00.000000000 Z
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.3.0
49
+ version: 2.7.4
50
50
  required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="