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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a9e31bc96fba8e032b7420e7b82b4086c3c240e
4
- data.tar.gz: c31c119f8dcce46c9e21822ec7b5214af29b2c2b
3
+ metadata.gz: 3fc7ed80afd6a4d3805e1243f5dcf1ab6c39cec1
4
+ data.tar.gz: 5f9d051ad124fc3e452cbf51bb6f31e70ea9b36f
5
5
  SHA512:
6
- metadata.gz: 132831e66a4d1ad626c6b2a1f12947cd6d6f8df125d522eaeefb8ec3b5b1a178bbef4342d84f768d05ed63f633fc152bcdb965b4e3222e78443c7081e7dd4678
7
- data.tar.gz: faa9294d0b29267c092c54ae2ebc61943047f45f54a5ec95dabb64bbe703384a18f0aaf51a92cf112bb3ac0c7625be56a023cab89c1229e40f1a555dba79b94d
6
+ metadata.gz: 523c8d39c68fcdaca2a52e49fb34161e7dcb08b94a524fa2eca22a3a85a679eb1312e2f2603e14ee6534a2a1ab4a856cdce6c9a50a8aacd7a7262b5e843ec25e
7
+ data.tar.gz: ee10e629146235de49f01d8c86e7700a2afce5e64baf6fb85ed07b05d01d5e103c061072acba09963c66acf648f9773e21019c4c62ee485d2396834db40f424e
data/.travis.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.3
4
+ - 2.3
5
+ - 2.4
6
+ - 2.5
5
7
 
6
8
  script: "bundle exec rake"
7
9
 
data/README.md CHANGED
@@ -3,3 +3,5 @@
3
3
  ![Build Status](https://travis-ci.org/graphiti-api/graphiti.svg?branch=master)
4
4
 
5
5
  A stylish alternative to GraphQL.
6
+
7
+ [View Official Documentation](https://graphiti-api.github.io/graphiti/guides)
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
- path = path.split('/')
78
- path.pop
79
- path = path.join('/')
78
+ _path = path.split('/')
79
+ _path.pop
80
+ _path = _path.join('/')
80
81
  end
81
- e[:full_path].to_s == path && e[:actions].include?(context_namespace)
82
+ e[:full_path].to_s == _path && e[:actions].include?(context_namespace)
82
83
  end
83
84
  end
84
85
 
@@ -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, Fixnum].include?(value.class)
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
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.0.beta.4"
2
+ VERSION = "1.0.beta.5"
3
3
  end
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
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-19 00:00:00.000000000 Z
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: '0'
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.11
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