jsonapi-object-mapper 0.7.5 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi-object-mapper/version.rb +1 -1
- metadata +4 -20
- data/.gitignore +0 -13
- data/.rspec +0 -3
- data/.rubocop.yml +0 -88
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -11
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -14
- data/Gemfile.lock +0 -67
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -8
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/jsonapi-object-mapper.gemspec +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5157d67f308d9f6417ffa2e89ef11065eecfbd3ac46f16ff39cff8847a28f9a1
|
4
|
+
data.tar.gz: f16f510476d9871b8b64f14f36c92c800b947cb5c9c19f9128348b65dac70d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ede8aaaf9c04823da0f4b6c82394cb31bd97026456d3d5ba89a170e555b28cccf08ddd7ac127ca3925c466659a3bb9a974737236ce4b5eda3488e8373bd0b2a0
|
7
|
+
data.tar.gz: 6059101e8152b7fb0096ad3f786c1679feaf0fa73e9fdee6781bb2b326694d4b9758da81c8384e2ea3d940e22cf5aa1c4e37405ff44c89f102aba4ddb2227f8c
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi-object-mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Protacio-Karaszi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -69,27 +69,11 @@ dependencies:
|
|
69
69
|
description: Digests JSON-API responses to plain old ruby objects
|
70
70
|
email:
|
71
71
|
- georgekaraszi@gmail.com
|
72
|
-
executables:
|
73
|
-
- console
|
74
|
-
- setup
|
72
|
+
executables: []
|
75
73
|
extensions: []
|
76
74
|
extra_rdoc_files: []
|
77
75
|
files:
|
78
|
-
- ".gitignore"
|
79
|
-
- ".rspec"
|
80
|
-
- ".rubocop.yml"
|
81
|
-
- ".ruby-gemset"
|
82
|
-
- ".ruby-version"
|
83
|
-
- ".travis.yml"
|
84
|
-
- CODE_OF_CONDUCT.md
|
85
|
-
- Gemfile
|
86
|
-
- Gemfile.lock
|
87
|
-
- LICENSE.txt
|
88
76
|
- README.md
|
89
|
-
- Rakefile
|
90
|
-
- bin/console
|
91
|
-
- bin/setup
|
92
|
-
- jsonapi-object-mapper.gemspec
|
93
77
|
- lib/jsonapi-object-mapper.rb
|
94
78
|
- lib/jsonapi-object-mapper/deserialize/collection.rb
|
95
79
|
- lib/jsonapi-object-mapper/deserialize/dsl.rb
|
@@ -123,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
107
|
version: '0'
|
124
108
|
requirements: []
|
125
109
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.7.
|
110
|
+
rubygems_version: 2.7.7
|
127
111
|
signing_key:
|
128
112
|
specification_version: 4
|
129
113
|
summary: Digests JSON-API responses to plain old ruby objects
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.4
|
3
|
-
DisplayStyleGuide: true
|
4
|
-
DisplayCopNames: true
|
5
|
-
|
6
|
-
#################
|
7
|
-
# [i] Overrides #
|
8
|
-
#################
|
9
|
-
|
10
|
-
CollectionMethods:
|
11
|
-
# Mapping from undesired method to desired_method
|
12
|
-
# e.g. to use `detect` over `find`:
|
13
|
-
#
|
14
|
-
# CollectionMethods:
|
15
|
-
# PreferredMethods:
|
16
|
-
# find: detect
|
17
|
-
PreferredMethods:
|
18
|
-
reduce: 'inject'
|
19
|
-
find: 'detect'
|
20
|
-
each_with_index: 'each.with_index'
|
21
|
-
|
22
|
-
# Align ends correctly.
|
23
|
-
EndAlignment:
|
24
|
-
EnforcedStyleAlignWith: variable
|
25
|
-
|
26
|
-
LineLength:
|
27
|
-
Max: 120
|
28
|
-
Exclude:
|
29
|
-
- examples/**/*
|
30
|
-
|
31
|
-
BracesAroundHashParameters:
|
32
|
-
EnforcedStyle: context_dependent
|
33
|
-
|
34
|
-
StringLiterals:
|
35
|
-
EnforcedStyle: double_quotes
|
36
|
-
|
37
|
-
Metrics/AbcSize:
|
38
|
-
Max: 18
|
39
|
-
|
40
|
-
#################
|
41
|
-
# Disabled cops #
|
42
|
-
#################
|
43
|
-
Metrics/ClassLength:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
Metrics/CyclomaticComplexity:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Metrics/MethodLength:
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Metrics/BlockLength:
|
53
|
-
Exclude:
|
54
|
-
- spec/**/*
|
55
|
-
|
56
|
-
Style/ClassAndModuleChildren:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
Style/Documentation:
|
60
|
-
Enabled: false
|
61
|
-
|
62
|
-
Naming/PredicateName:
|
63
|
-
Enabled: false
|
64
|
-
|
65
|
-
Style/Lambda:
|
66
|
-
Enabled: false
|
67
|
-
|
68
|
-
Style/IfUnlessModifier:
|
69
|
-
Enabled: false
|
70
|
-
|
71
|
-
Style/TrailingCommaInArrayLiteral:
|
72
|
-
Enabled: true
|
73
|
-
EnforcedStyleForMultiline: comma
|
74
|
-
|
75
|
-
Style/TrailingCommaInHashLiteral:
|
76
|
-
Enabled: true
|
77
|
-
EnforcedStyleForMultiline: comma
|
78
|
-
|
79
|
-
Style/TrailingCommaInArguments:
|
80
|
-
Enabled: true
|
81
|
-
EnforcedStyleForMultiline: comma
|
82
|
-
|
83
|
-
Style/GuardClause:
|
84
|
-
Enabled: false
|
85
|
-
|
86
|
-
Lint/AmbiguousBlockAssociation:
|
87
|
-
Exclude:
|
88
|
-
- spec/**/*
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
jsonapi_object_mapper
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.5.1
|
data/.travis.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at georgekaraszi@gmail.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
6
|
-
|
7
|
-
group :development, :test do
|
8
|
-
gem "byebug"
|
9
|
-
gem "pry", "~> 0.11.3"
|
10
|
-
gem "pry-byebug", "~> 3.5", ">= 3.5.1"
|
11
|
-
gem "rubocop", "~> 0.52", require: false
|
12
|
-
end
|
13
|
-
|
14
|
-
gemspec
|
data/Gemfile.lock
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
jsonapi-object-mapper (0.7.5)
|
5
|
-
oj (~> 3.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
ast (2.4.0)
|
11
|
-
byebug (10.0.2)
|
12
|
-
coderay (1.1.2)
|
13
|
-
diff-lcs (1.3)
|
14
|
-
jaro_winkler (1.5.1)
|
15
|
-
method_source (0.9.0)
|
16
|
-
oj (3.6.4)
|
17
|
-
parallel (1.12.1)
|
18
|
-
parser (2.5.1.2)
|
19
|
-
ast (~> 2.4.0)
|
20
|
-
powerpack (0.1.2)
|
21
|
-
pry (0.11.3)
|
22
|
-
coderay (~> 1.1.0)
|
23
|
-
method_source (~> 0.9.0)
|
24
|
-
pry-byebug (3.6.0)
|
25
|
-
byebug (~> 10.0)
|
26
|
-
pry (~> 0.10)
|
27
|
-
rainbow (3.0.0)
|
28
|
-
rake (10.5.0)
|
29
|
-
rspec (3.7.0)
|
30
|
-
rspec-core (~> 3.7.0)
|
31
|
-
rspec-expectations (~> 3.7.0)
|
32
|
-
rspec-mocks (~> 3.7.0)
|
33
|
-
rspec-core (3.7.1)
|
34
|
-
rspec-support (~> 3.7.0)
|
35
|
-
rspec-expectations (3.7.0)
|
36
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
-
rspec-support (~> 3.7.0)
|
38
|
-
rspec-mocks (3.7.0)
|
39
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
-
rspec-support (~> 3.7.0)
|
41
|
-
rspec-support (3.7.1)
|
42
|
-
rubocop (0.58.1)
|
43
|
-
jaro_winkler (~> 1.5.1)
|
44
|
-
parallel (~> 1.10)
|
45
|
-
parser (>= 2.5, != 2.5.1.1)
|
46
|
-
powerpack (~> 0.1)
|
47
|
-
rainbow (>= 2.2.2, < 4.0)
|
48
|
-
ruby-progressbar (~> 1.7)
|
49
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
50
|
-
ruby-progressbar (1.9.0)
|
51
|
-
unicode-display_width (1.4.0)
|
52
|
-
|
53
|
-
PLATFORMS
|
54
|
-
ruby
|
55
|
-
|
56
|
-
DEPENDENCIES
|
57
|
-
bundler (~> 1.16)
|
58
|
-
byebug
|
59
|
-
jsonapi-object-mapper!
|
60
|
-
pry (~> 0.11.3)
|
61
|
-
pry-byebug (~> 3.5, >= 3.5.1)
|
62
|
-
rake (~> 10.0)
|
63
|
-
rspec (~> 3.0)
|
64
|
-
rubocop (~> 0.52)
|
65
|
-
|
66
|
-
BUNDLED WITH
|
67
|
-
1.16.2
|
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2018 George Karaszi
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require "bundler/setup"
|
5
|
-
require "jsonapi_object_mapper"
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require "irb"
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
|
4
|
-
require "jsonapi-object-mapper/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "jsonapi-object-mapper"
|
8
|
-
spec.version = JsonAPIObjectMapper::VERSION
|
9
|
-
spec.authors = ["George Protacio-Karaszi"]
|
10
|
-
spec.email = ["georgekaraszi@gmail.com"]
|
11
|
-
|
12
|
-
spec.summary = "Digests JSON-API responses to plain old ruby objects"
|
13
|
-
spec.description = "Digests JSON-API responses to plain old ruby objects"
|
14
|
-
spec.homepage = "https://github.com/GeorgeKaraszi/jsonapi-object-mapper"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
spec.files = `git ls-files`.split("\n").reject { |file| file.start_with?("bin/") }
|
18
|
-
spec.test_files = `git ls-files -- spec/*`.split("\n")
|
19
|
-
spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_dependency "oj", "~> 3.0"
|
23
|
-
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.16"
|
25
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
-
end
|