ializer 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rubygems-publish.yml +2 -2
- data/.rubocop.yml +3 -0
- data/README.md +3 -2
- data/ializer.gemspec +2 -1
- data/lib/ializer/default_de_ser.rb +1 -0
- data/lib/ializer/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec12881a7736268012824062951ad8a0d0897687798d1215ef3cf100d1022ab4
|
4
|
+
data.tar.gz: c0793bd033a02cb2cf675c483e1e265bc80e3745290989c1bb652f006058be82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
39
|
+
gem push --KEY rubygems_api_key *.gem
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://github.com/jsteinberg/ializer/actions)
|
1
|
+
[](https://github.com/jsteinberg/ializer/actions) [](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'
|
data/lib/ializer/version.rb
CHANGED
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.
|
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:
|
189
|
+
version: 2.4.0
|
190
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - ">="
|