iso-deserializer 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.travis.yml +32 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +55 -0
- data/MIT-LICENSE +20 -0
- data/README.md +641 -0
- data/Rakefile +11 -0
- data/deserializer.gemspec +25 -0
- data/gemfiles/4.0.gemfile +8 -0
- data/gemfiles/5.0.gemfile +8 -0
- data/gemfiles/6.0.gemfile +8 -0
- data/lib/deserializer/attributable.rb +54 -0
- data/lib/deserializer/attribute/association.rb +12 -0
- data/lib/deserializer/attribute/attribute.rb +20 -0
- data/lib/deserializer/attribute/base.rb +49 -0
- data/lib/deserializer/attribute/has_many_association.rb +14 -0
- data/lib/deserializer/attribute/has_one_association.rb +35 -0
- data/lib/deserializer/attribute/nested_association.rb +10 -0
- data/lib/deserializer/attribute/value_attribute.rb +24 -0
- data/lib/deserializer/attribute.rb +11 -0
- data/lib/deserializer/base.rb +56 -0
- data/lib/deserializer/deserializer_error.rb +12 -0
- data/lib/deserializer/version.rb +3 -0
- data/lib/deserializer.rb +12 -0
- data/test/lib/deserializers.rb +148 -0
- data/test/minitest_helper.rb +14 -0
- data/test/unit/deserializer_error_test.rb +12 -0
- data/test/unit/deserializer_test.rb +200 -0
- metadata +118 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 313ed8a7a1a0c8b420a9f213b652110bae0e76fe3603ed46a6b20f4eba42caa4
|
4
|
+
data.tar.gz: '09d3d148fa5ac7423ed55330e925005f5b5618b9ceda987c34dbbb81d9d550bc'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dab35c48779cdbbb473c0b3f0cf73a58eb41f31d4118e4a516bcbb820ccd06644d59677c8924c403689acd42dab959bf469080138b759e1bd49c15f1cdbc5627
|
7
|
+
data.tar.gz: 1043eeab5329a5ebee511ecb944173873066a7b4777d97138fd63c774079781fb04cc61bd906b04f63ec5eae8e169455b550ab573b19d8d99d6ec5c279dc859e
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.3
|
4
|
+
- 2.4
|
5
|
+
- 2.5
|
6
|
+
- 2.6
|
7
|
+
- 2.7
|
8
|
+
gemfile:
|
9
|
+
- gemfiles/4.0.gemfile
|
10
|
+
- gemfiles/5.0.gemfile
|
11
|
+
- gemfiles/6.0.gemfile
|
12
|
+
matrix:
|
13
|
+
fast_finish: true
|
14
|
+
exclude:
|
15
|
+
- rvm: 2.2
|
16
|
+
gemfile: gemfiles/6.0.gemfile
|
17
|
+
- rvm: 2.3
|
18
|
+
gemfile: gemfiles/6.0.gemfile
|
19
|
+
- rvm: 2.4
|
20
|
+
gemfile: gemfiles/4.0.gemfile
|
21
|
+
- rvm: 2.4
|
22
|
+
gemfile: gemfiles/6.0.gemfile
|
23
|
+
- rvm: 2.5
|
24
|
+
gemfile: gemfiles/4.0.gemfile
|
25
|
+
- rvm: 2.6
|
26
|
+
gemfile: gemfiles/4.0.gemfile
|
27
|
+
- rvm: 2.7
|
28
|
+
gemfile: gemfiles/4.0.gemfile
|
29
|
+
- rvm: 2.7
|
30
|
+
gemfile: gemfiles/5.0.gemfile
|
31
|
+
before_install:
|
32
|
+
- gem install bundler -v 1.17.3
|
data/Gemfile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Declare your gem's dependencies in deserializer.gemspec.
|
4
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
5
|
+
# development dependencies will be added by default to the :development group.
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'rake'
|
9
|
+
gem 'simplecov', :group => :test
|
10
|
+
gem 'minitest', :group => :test
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
iso-deserializer (0.8.0)
|
5
|
+
activesupport (>= 5.0.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activesupport (7.1.3.2)
|
11
|
+
base64
|
12
|
+
bigdecimal
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
connection_pool (>= 2.2.5)
|
15
|
+
drb
|
16
|
+
i18n (>= 1.6, < 2)
|
17
|
+
minitest (>= 5.1)
|
18
|
+
mutex_m
|
19
|
+
tzinfo (~> 2.0)
|
20
|
+
base64 (0.2.0)
|
21
|
+
bigdecimal (3.1.7)
|
22
|
+
concurrent-ruby (1.2.3)
|
23
|
+
connection_pool (2.4.1)
|
24
|
+
docile (1.1.5)
|
25
|
+
drb (2.2.1)
|
26
|
+
i18n (1.14.4)
|
27
|
+
concurrent-ruby (~> 1.0)
|
28
|
+
m (1.3.4)
|
29
|
+
method_source (>= 0.6.7)
|
30
|
+
rake (>= 0.9.2.2)
|
31
|
+
method_source (0.8.2)
|
32
|
+
minitest (5.7.0)
|
33
|
+
multi_json (1.11.1)
|
34
|
+
mutex_m (0.2.0)
|
35
|
+
rake (10.4.2)
|
36
|
+
simplecov (0.9.2)
|
37
|
+
docile (~> 1.1.0)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
simplecov-html (~> 0.9.0)
|
40
|
+
simplecov-html (0.9.0)
|
41
|
+
tzinfo (2.0.6)
|
42
|
+
concurrent-ruby (~> 1.0)
|
43
|
+
|
44
|
+
PLATFORMS
|
45
|
+
ruby
|
46
|
+
|
47
|
+
DEPENDENCIES
|
48
|
+
iso-deserializer!
|
49
|
+
m (~> 1.3.1)
|
50
|
+
minitest
|
51
|
+
rake
|
52
|
+
simplecov
|
53
|
+
|
54
|
+
BUNDLED WITH
|
55
|
+
1.17.3
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 Greg Orlov
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|