seri 2.0.3 → 2.0.8

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: 97c393ef117d1729bbd8459bdd47c1726e8a6a1436e39cb73bb2108bd0817bec
4
- data.tar.gz: 519552ef6a2ce6de01293fcbfce32a7afdbc4535d56233bda5d8c4687b45e3db
3
+ metadata.gz: 862768106324d4c7174c6a1178775d4debf8e6b6e611c82406515210b16b07d5
4
+ data.tar.gz: 843403ca37d16307bcf89594787676d367551bfdf93e07ddb815ca34f232fa01
5
5
  SHA512:
6
- metadata.gz: a8df6fab6b789c59070760a40c5a95251933bda9eaaace98b2eed8275e75b35e967877640195fd4a04f3592c7b62c4adb51aeaf3bd0f00a2169b50ab6d2af755
7
- data.tar.gz: 6fee2110d91fd341a46d234a4203059e95623f721d31b12637c2369302e22d00541616b24b3e35eb55eba6450d0e3c6755642a9ce84408f02d517f6230a0f596
6
+ metadata.gz: 8629f6a3bc42b6c5d24211198c0c841a00603a081187984f7961150c067417f12261c8d66f2961d788af3b2dbb105b668adc1dab3652e8ad06a399fcb44c8aa0
7
+ data.tar.gz: 4c097e812250f085937d30adf51baed9eb6b8521b3694b6437d8f51c2aacd1f7b17ed5845c75c0eb55cee0a3c1cabac33cab2f5cb664a3c8225b1bb5e6473816
data/.circleci/config.yml CHANGED
@@ -21,7 +21,7 @@ jobs:
21
21
  - run:
22
22
  name: install dependencies
23
23
  command: |
24
- gem install bundler:2.2.5
24
+ gem install bundler:2.2.10
25
25
  bundle install --jobs=4 --retry=3 --path vendor/bundle
26
26
 
27
27
  - save_cache:
data/Gemfile.lock CHANGED
@@ -1,40 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seri (2.0.3)
4
+ seri (2.0.7)
5
5
  oj (~> 3.7)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.1)
10
+ ast (2.4.2)
11
11
  coderay (1.1.3)
12
12
  diff-lcs (1.4.4)
13
13
  method_source (1.0.0)
14
- oj (3.10.18)
15
- parallel (1.19.2)
16
- parser (2.7.2.0)
14
+ oj (3.13.10)
15
+ parallel (1.20.1)
16
+ parser (3.0.3.2)
17
17
  ast (~> 2.4.1)
18
- pry (0.13.1)
18
+ pry (0.14.1)
19
19
  coderay (~> 1.1)
20
20
  method_source (~> 1.0)
21
21
  rainbow (3.0.0)
22
- rake (13.0.3)
23
- regexp_parser (1.8.2)
24
- rexml (3.2.4)
22
+ rake (13.0.6)
23
+ regexp_parser (2.2.0)
24
+ rexml (3.2.5)
25
25
  rspec (3.10.0)
26
26
  rspec-core (~> 3.10.0)
27
27
  rspec-expectations (~> 3.10.0)
28
28
  rspec-mocks (~> 3.10.0)
29
- rspec-core (3.10.0)
29
+ rspec-core (3.10.1)
30
30
  rspec-support (~> 3.10.0)
31
- rspec-expectations (3.10.0)
31
+ rspec-expectations (3.10.1)
32
32
  diff-lcs (>= 1.2.0, < 2.0)
33
33
  rspec-support (~> 3.10.0)
34
- rspec-mocks (3.10.0)
34
+ rspec-mocks (3.10.2)
35
35
  diff-lcs (>= 1.2.0, < 2.0)
36
36
  rspec-support (~> 3.10.0)
37
- rspec-support (3.10.0)
37
+ rspec-support (3.10.3)
38
38
  rubocop (0.93.1)
39
39
  parallel (~> 1.10)
40
40
  parser (>= 2.7.1.5)
@@ -44,16 +44,16 @@ GEM
44
44
  rubocop-ast (>= 0.6.0)
45
45
  ruby-progressbar (~> 1.7)
46
46
  unicode-display_width (>= 1.4.0, < 2.0)
47
- rubocop-ast (0.8.0)
47
+ rubocop-ast (1.4.1)
48
48
  parser (>= 2.7.1.5)
49
- ruby-progressbar (1.10.1)
50
- unicode-display_width (1.7.0)
49
+ ruby-progressbar (1.11.0)
50
+ unicode-display_width (1.8.0)
51
51
 
52
52
  PLATFORMS
53
53
  ruby
54
54
 
55
55
  DEPENDENCIES
56
- bundler (~> 1.16)
56
+ bundler (>= 2.2.10)
57
57
  pry (~> 0.13)
58
58
  rake (~> 13.0)
59
59
  rspec (~> 3.0)
@@ -61,4 +61,4 @@ DEPENDENCIES
61
61
  seri!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.5
64
+ 2.2.26
@@ -48,15 +48,5 @@ module Seri
48
48
  @scope[extraction_key]
49
49
  end
50
50
  end
51
-
52
- class ObjectValue < Value
53
- def precondition?
54
- @scope.respond_to?(extraction_key)
55
- end
56
-
57
- def value
58
- @scope.public_send(extraction_key)
59
- end
60
- end
61
51
  end
62
52
  end
@@ -15,7 +15,7 @@ module Seri
15
15
  StaticValue.new(attribute),
16
16
  SerializedValue.new(attribute, serializer),
17
17
  HashValue.new(attribute, object),
18
- ObjectValue.new(attribute, object)
18
+ SerializedValue.new(attribute, object)
19
19
  ]
20
20
  end
21
21
 
@@ -1,5 +1,5 @@
1
1
  module Seri
2
2
  class Serializer
3
- VERSION = '2.0.3'.freeze
3
+ VERSION = '2.0.8'.freeze
4
4
  end
5
5
  end
data/seri.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_dependency 'oj', '~> 3.7'
28
28
 
29
- spec.add_development_dependency 'bundler', '~> 1.16'
29
+ spec.add_development_dependency 'bundler', '>= 2.2.10'
30
30
  spec.add_development_dependency 'pry', '~> 0.13'
31
31
  spec.add_development_dependency 'rake', '~> 13.0'
32
32
  spec.add_development_dependency 'rspec', '~> 3.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seri
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - grdw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2021-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.16'
33
+ version: 2.2.10
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: '1.16'
40
+ version: 2.2.10
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement