graphiti 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti/adapters/graphiti_api.rb +2 -0
- data/lib/graphiti/errors.rb +0 -13
- data/lib/graphiti/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4afe1b88c18d728d9a2fc0a3f80cb425c08ee5effa28f1e5237bde5b08d944ce
|
4
|
+
data.tar.gz: 1a2545e6c20612bf12b0684c0a4e92d95fb618ca210b8b3db80a7822ffd9821c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efbc08d434992a6d797e0c0b29b97d6a6f074094c09e2248faac1b9a4f109f743d40591b2d6bb8fd0d39bda89755c510273aaaceb51bac57b9fcf451fcd9f7e6
|
7
|
+
data.tar.gz: 13b954fe3312e9b6652a20c85b86e0fd28b42cd572062e83665251305242a056f060986b0e4e122738f92ccdff8d9d33e6b65092c8948c591524394ef1b6dc8f
|
@@ -35,6 +35,8 @@ module Graphiti
|
|
35
35
|
def build_url(scope)
|
36
36
|
url = resource.remote_url
|
37
37
|
params = scope[:params].merge(scope.except(:params))
|
38
|
+
params[:page] ||= {}
|
39
|
+
params[:page][:size] ||= 999
|
38
40
|
params = CGI.unescape(params.to_query)
|
39
41
|
url = "#{url}?#{params}" unless params.blank?
|
40
42
|
url
|
data/lib/graphiti/errors.rb
CHANGED
@@ -86,19 +86,6 @@ module Graphiti
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
class UnwritableRelationship < Base
|
90
|
-
def initialize(resource, sideload)
|
91
|
-
@resource = resource
|
92
|
-
@sideload = sideload
|
93
|
-
end
|
94
|
-
|
95
|
-
def message
|
96
|
-
<<-MSG
|
97
|
-
#{@resource.class}: Tried to persist association #{@sideload.name.inspect} but marked writable: false
|
98
|
-
MSG
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
89
|
class SingularSideload < Base
|
103
90
|
def initialize(sideload, parent_length)
|
104
91
|
@sideload = sideload
|
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|
@@ -335,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
335
335
|
version: '0'
|
336
336
|
requirements: []
|
337
337
|
rubyforge_project:
|
338
|
-
rubygems_version: 2.7.
|
338
|
+
rubygems_version: 2.7.6
|
339
339
|
signing_key:
|
340
340
|
specification_version: 4
|
341
341
|
summary: Easily build jsonapi.org-compatible APIs
|