seri 2.0.1 → 2.0.6

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: b195c3ae8c5ec78fa54317184b782970fe1d22d1b19f446d6297b5959a90b06b
4
- data.tar.gz: df3042fb5c2f291fec12b63ece1036a5e75549503ea6896ac8ac167da0cb2e91
3
+ metadata.gz: 8a775adddd637ad613ad798bbaa73de144254bf46ab1fe9aa12c761b92283423
4
+ data.tar.gz: '089b766c83754fa0c4d2f11c739ad965abd453a70b3b5ed2a21ea0a0eba9ae6e'
5
5
  SHA512:
6
- metadata.gz: 030be24706b3a319c34cf167e4a9f833314235e61fcdb45f41974db8819d4de5d31cd3215d4c3bc5c0bca718bbeb81cf3ce666b0e068347c9ce89db3ed1e07bf
7
- data.tar.gz: 3d563d73ab5fc270b27ef032a0b2ab8bf2e2fe5069088f541236e04c0150044bb039214dcc0418e81171de19fc43551ac5e7cbae5a788edcd34f7ec76a1edd0a
6
+ metadata.gz: 12daf63364847c273a782f99f9ea8f41538936613067b873880c966a03c02fe7e2d8fe68b0a2f5b8438d4c329ae2c49b805d85be8163b640a432589fe08a52ed
7
+ data.tar.gz: 2d84cbf2e45a4b0126ba8de4902e8e940e3cbb94c0ccd3f818e3e1d9e21872ae08dfe891051804233a23774097e71f781c6c7c99c6e5fd696c36e36210875adc
data/.circleci/config.yml CHANGED
@@ -4,7 +4,7 @@ jobs:
4
4
  build:
5
5
  docker:
6
6
  # specify the version you desire here
7
- - image: circleci/ruby:2.7.1
7
+ - image: circleci/ruby:3.0.0
8
8
 
9
9
  working_directory: ~/repo
10
10
 
@@ -21,7 +21,7 @@ jobs:
21
21
  - run:
22
22
  name: install dependencies
23
23
  command: |
24
- gem install bundler:1.17.3
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,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seri (2.0.0)
4
+ seri (2.0.6)
5
5
  oj (~> 3.7)
6
6
 
7
7
  GEM
@@ -9,32 +9,32 @@ GEM
9
9
  specs:
10
10
  ast (2.4.1)
11
11
  coderay (1.1.3)
12
- diff-lcs (1.3)
12
+ diff-lcs (1.4.4)
13
13
  method_source (1.0.0)
14
- oj (3.10.14)
14
+ oj (3.13.2)
15
15
  parallel (1.19.2)
16
16
  parser (2.7.2.0)
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.1)
22
+ rake (13.0.6)
23
23
  regexp_parser (1.8.2)
24
- rexml (3.2.4)
25
- rspec (3.9.0)
26
- rspec-core (~> 3.9.0)
27
- rspec-expectations (~> 3.9.0)
28
- rspec-mocks (~> 3.9.0)
29
- rspec-core (3.9.1)
30
- rspec-support (~> 3.9.1)
31
- rspec-expectations (3.9.1)
24
+ rexml (3.2.5)
25
+ rspec (3.10.0)
26
+ rspec-core (~> 3.10.0)
27
+ rspec-expectations (~> 3.10.0)
28
+ rspec-mocks (~> 3.10.0)
29
+ rspec-core (3.10.0)
30
+ rspec-support (~> 3.10.0)
31
+ rspec-expectations (3.10.0)
32
32
  diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.9.0)
34
- rspec-mocks (3.9.1)
33
+ rspec-support (~> 3.10.0)
34
+ rspec-mocks (3.10.0)
35
35
  diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.9.0)
37
- rspec-support (3.9.2)
36
+ rspec-support (~> 3.10.0)
37
+ rspec-support (3.10.0)
38
38
  rubocop (0.93.1)
39
39
  parallel (~> 1.10)
40
40
  parser (>= 2.7.1.5)
@@ -53,7 +53,7 @@ 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
- 1.17.3
64
+ 2.2.21
@@ -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.1'.freeze
3
+ VERSION = '2.0.6'.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.1
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - grdw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-15 00:00:00.000000000 Z
11
+ date: 2021-08-26 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
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.1.2
141
+ rubygems_version: 3.2.3
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: A basic serializer