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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 292ab84397ae7ce761553abe89c12027aa9df8eaf42e19c746b3e15b483b129f
4
- data.tar.gz: f0ed1abbace00c61d43821d8b8a8a59365e62f5fd2065d356391a8e391bd483b
3
+ metadata.gz: 4afe1b88c18d728d9a2fc0a3f80cb425c08ee5effa28f1e5237bde5b08d944ce
4
+ data.tar.gz: 1a2545e6c20612bf12b0684c0a4e92d95fb618ca210b8b3db80a7822ffd9821c
5
5
  SHA512:
6
- metadata.gz: 707372b30ade3c299f8569de0e53351cbca316f93e0b04aa4a0fbcac165c164c12cf3ec6ca57e06e212f616765031cdb4643a33cd941871ae5fd5e590bf5a00d
7
- data.tar.gz: 29b33d2e5667cc0ec0a48883e1138312756fd0b1bafa22007bb1dd3a0fafe1567a3c6f7b0709e60d4f09cd8bdb4c8abd8578cd987d50c3128295971be94035b1
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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.1.0
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-08 00:00:00.000000000 Z
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.9
338
+ rubygems_version: 2.7.6
339
339
  signing_key:
340
340
  specification_version: 4
341
341
  summary: Easily build jsonapi.org-compatible APIs