seri 2.0.2 → 2.0.7

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: 2db241b65f4763c608dd98ca458ce4563fba0657207b983db687b70b3ed17b23
4
- data.tar.gz: e478ae294f897daf1518ec9cb45f1ef00dbc98f4c8fc60b012a94352d057c078
3
+ metadata.gz: 487570da2b4d214f0e9727a87e5a27f71aed464e711c52e25003617144e3458e
4
+ data.tar.gz: dce9897f91d6631b7a4b2765e68c6a52fcf01732e374fb672aa6d6c5f5bd893f
5
5
  SHA512:
6
- metadata.gz: d1248e83e33d45d803dffe284c4a89baa7d3755c76d5083b58140dfa635db2735a1728f39f06ce7bc0945240cb33f0396a6f52e9f48e2b48fd486e52036626b0
7
- data.tar.gz: 240e560a38d9c51dfa904a908417ac59393aca4ba7f3db6f5509dfcd6070a37c0d888f5dd6c58e2b2ed08bd370c7b2f949c100315344ad60bdf86c6afd1e9b78
6
+ metadata.gz: c86361069cd30ea998121aa0ff72301699d29c2b85d0307350555315adedd7c4db174308b513d22d6e9bc9f11027641a6623997770fbf0d6b1cd33c0c89e1c5a
7
+ data.tar.gz: bc8e9717704a0283c11a435247e9125e2707c89673cba0703517c7be0d5ca2580607ebdff0fdfc0d496643926c91dd7638fab99dd348cd1b82f097918dbbe2b0
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.1)
4
+ seri (2.0.6)
5
5
  oj (~> 3.7)
6
6
 
7
7
  GEM
@@ -11,17 +11,17 @@ GEM
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)
14
+ oj (3.13.6)
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.3)
22
+ rake (13.0.6)
23
23
  regexp_parser (1.8.2)
24
- rexml (3.2.4)
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)
@@ -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.2'.freeze
3
+ VERSION = '2.0.7'.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.2
4
+ version: 2.0.7
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-04 00:00:00.000000000 Z
11
+ date: 2021-09-13 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