ializer 0.1.0 → 0.2.0

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: b39a084832bc15cc9d722c7269b3200b9e4a6af8c4318ea06390f91acf6a27d5
4
- data.tar.gz: '0355388f6e02ac9f8c156706230e172d36b3698d0f22df9f5a90ebf0f121a0b4'
3
+ metadata.gz: ec12881a7736268012824062951ad8a0d0897687798d1215ef3cf100d1022ab4
4
+ data.tar.gz: c0793bd033a02cb2cf675c483e1e265bc80e3745290989c1bb652f006058be82
5
5
  SHA512:
6
- metadata.gz: 0b4123ae5e65828108879cf191062ef3f05e980bd1fab81b1b51c262d576ea69664cc2d2a2e75d902049fdf52b33d9c25d26021a90d1c0fda7ae228b65315a25
7
- data.tar.gz: ceab7b40078424c4bb23634e059a99ce7fd157bee574e1e7fa6e9202a64d9482a0458acf29d978349ca38f38e71ac58a316acf9e9a3e10a19b48a4ef70998b6a
6
+ metadata.gz: a314f2d7ee625d7aa92d4756c21a185aa50b152112fc24ea38bba4e56c49de8bdcb032f66bf089f781f0a580bae30078879c6ffaa02fbc869c3c942bb07ef8fd
7
+ data.tar.gz: cb08168fb231f03ee45ad1ae429a9a0d79438b546bc4ed71f9132606f522a02af09c70a192a6e61fa8a4c130ac50fd0ded6719ad3857ec147f8fbcd6bad5a93e
@@ -22,7 +22,7 @@ jobs:
22
22
  mkdir -p $HOME/.gem
23
23
  touch $HOME/.gem/credentials
24
24
  chmod 0600 $HOME/.gem/credentials
25
- printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n:rubygems: Bearer ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
25
+ printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n:rubygems_api_key: Bearer ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
26
26
  env:
27
27
  GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28
28
  RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
@@ -36,4 +36,4 @@ jobs:
36
36
  - name: Publish to RubyGems
37
37
  run: |
38
38
  gem build *.gemspec
39
- gem push --KEY rubygems *.gem
39
+ gem push --KEY rubygems_api_key *.gem
data/.rubocop.yml CHANGED
@@ -4,6 +4,9 @@ AllCops:
4
4
  TargetRubyVersion:
5
5
  2.6
6
6
 
7
+ Gemspec/RequiredRubyVersion:
8
+ Enabled: false
9
+
7
10
  Layout/LineLength:
8
11
  Max: 120
9
12
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build](https://github.com/jsteinberg/ializer/workflows/Ruby/badge.svg)](https://github.com/jsteinberg/ializer/actions)
1
+ [![Build](https://github.com/jsteinberg/ializer/workflows/Ruby/badge.svg)](https://github.com/jsteinberg/ializer/actions) [![Gem Version](https://badge.fury.io/rb/ializer.svg)](https://badge.fury.io/rb/ializer)
2
2
 
3
3
  # {De | Ser} Ializer
4
4
 
@@ -306,9 +306,10 @@ The following types are included with `ializer`
306
306
  | String | `string()` | String, :millis |
307
307
  | Symbol | `symbol()` | Symbol, :symbol, :sym |
308
308
  | Time | `timestamp()`| Time, DateTime, :timestamp |
309
+ | JSON | `json()` | :json |
309
310
  | Default | `default()` | :default |
310
311
 
311
- **Note: Default just uses the current value of the field and will only properly deserialize if it is a standard json value type(number, string, boolean).**
312
+ **Note: JSON/Default just uses the current value of the field and will only properly deserialize if it is a standard json value type(number, string, boolean).**
312
313
 
313
314
  #### Default Attribute Configuration Options
314
315
 
data/ializer.gemspec CHANGED
@@ -19,8 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ['lib']
22
+ spec.required_ruby_version = '>= 2.4.0'
22
23
 
23
- spec.add_dependency 'activesupport'
24
+ spec.add_dependency 'activesupport', '>= 4.0'
24
25
  spec.add_dependency 'multi_json', '~> 1.0'
25
26
 
26
27
  spec.add_development_dependency 'bundler'
@@ -13,3 +13,4 @@ module Ializer
13
13
  end
14
14
 
15
15
  Ser::Ializer.register_default(Ializer::DefaultDeSer)
16
+ Ser::Ializer.register('json', Ializer::DefaultDeSer, :json)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ializer
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Steinberg
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - ">="
188
188
  - !ruby/object:Gem::Version
189
- version: '0'
189
+ version: 2.4.0
190
190
  required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ">="