graphiti 1.0.beta.4 → 1.0.beta.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/README.md +2 -0
- data/graphiti.gemspec +1 -0
- data/lib/graphiti/resource/links.rb +5 -4
- data/lib/graphiti/util/hash.rb +1 -1
- data/lib/graphiti/version.rb +1 -1
- metadata +5 -6
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fc7ed80afd6a4d3805e1243f5dcf1ab6c39cec1
|
4
|
+
data.tar.gz: 5f9d051ad124fc3e452cbf51bb6f31e70ea9b36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523c8d39c68fcdaca2a52e49fb34161e7dcb08b94a524fa2eca22a3a85a679eb1312e2f2603e14ee6534a2a1ab4a856cdce6c9a50a8aacd7a7262b5e843ec25e
|
7
|
+
data.tar.gz: ee10e629146235de49f01d8c86e7700a2afce5e64baf6fb85ed07b05d01d5e103c061072acba09963c66acf648f9773e21019c4c62ee485d2396834db40f424e
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/graphiti.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.bindir = "exe"
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
|
+
spec.required_ruby_version = '~> 2.3'
|
19
20
|
|
20
21
|
# Pinning this version until backwards-incompatibility is addressed
|
21
22
|
spec.add_dependency 'jsonapi-serializable', '~> 0.3.0'
|
@@ -73,12 +73,13 @@ module Graphiti
|
|
73
73
|
|
74
74
|
endpoints.any? do |e|
|
75
75
|
has_id = params[:id] || params[:data].try(:[], :id)
|
76
|
+
_path = path
|
76
77
|
if [:update, :show, :destroy].include?(context_namespace) && has_id
|
77
|
-
|
78
|
-
|
79
|
-
|
78
|
+
_path = path.split('/')
|
79
|
+
_path.pop
|
80
|
+
_path = _path.join('/')
|
80
81
|
end
|
81
|
-
e[:full_path].to_s ==
|
82
|
+
e[:full_path].to_s == _path && e[:actions].include?(context_namespace)
|
82
83
|
end
|
83
84
|
end
|
84
85
|
|
data/lib/graphiti/util/hash.rb
CHANGED
@@ -56,7 +56,7 @@ module Graphiti
|
|
56
56
|
{}.tap do |duped|
|
57
57
|
hash.each_pair do |key, value|
|
58
58
|
value = deep_dup(value) if value.is_a?(Hash)
|
59
|
-
value = value.dup if value && value.respond_to?(:dup) && ![Symbol,
|
59
|
+
value = value.dup if value && value.respond_to?(:dup) && ![Symbol, Integer].include?(value.class)
|
60
60
|
duped[key] = value
|
61
61
|
end
|
62
62
|
end
|
data/lib/graphiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.beta.
|
4
|
+
version: 1.0.beta.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|
@@ -220,7 +220,6 @@ extra_rdoc_files: []
|
|
220
220
|
files:
|
221
221
|
- ".gitignore"
|
222
222
|
- ".rspec"
|
223
|
-
- ".ruby-version"
|
224
223
|
- ".travis.yml"
|
225
224
|
- ".yardopts"
|
226
225
|
- Appraisals
|
@@ -332,9 +331,9 @@ require_paths:
|
|
332
331
|
- lib
|
333
332
|
required_ruby_version: !ruby/object:Gem::Requirement
|
334
333
|
requirements:
|
335
|
-
- - "
|
334
|
+
- - "~>"
|
336
335
|
- !ruby/object:Gem::Version
|
337
|
-
version: '
|
336
|
+
version: '2.3'
|
338
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
338
|
requirements:
|
340
339
|
- - ">"
|
@@ -342,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
342
341
|
version: 1.3.1
|
343
342
|
requirements: []
|
344
343
|
rubyforge_project:
|
345
|
-
rubygems_version: 2.6.
|
344
|
+
rubygems_version: 2.6.13
|
346
345
|
signing_key:
|
347
346
|
specification_version: 4
|
348
347
|
summary: Easily build jsonapi.org-compatible APIs
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.0
|