graphlient 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -2
- data/Gemfile +1 -1
- data/lib/graphlient/errors/graphql_error.rb +1 -1
- data/lib/graphlient/version.rb +1 -1
- data/spec/graphlient/client_query_spec.rb +11 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 360f0f96c897fae58c76624fa317385c14270444a827aa802efd95f71e46ac19
|
4
|
+
data.tar.gz: fd335527ff368f734cdd906ec31a7f985fffd19b51709bdfb04c33c31e75e457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77896f951d3bfad43bf77f9ce54885070ac69a6418d6d64617a7034e45d89b0e1e1399b0b4dec7f1abec43e0ee044a271e6cf68c48b0c7e8047c974ee0e3298d
|
7
|
+
data.tar.gz: a4755beb10938c1e779bade046eea42ecd4035c032376dc7c0d492d8a7a35919b4fef018a0250df7f3793be4a343d20038ddf3aeca91a8e273a78c985811a726
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
### 0.3.
|
2
|
-
|
1
|
+
### 0.3.7 (Next)
|
3
2
|
* Your contribution here.
|
4
3
|
|
4
|
+
### 0.3.6 (07/23/2019)
|
5
|
+
|
6
|
+
* [#63](https://github.com/ashkan18/graphlient/pull/63): Remove unused method for attribute with typo - [@ashkan18](https://github.com/ashkan18).
|
7
|
+
* [#62](https://github.com/ashkan18/graphlient/pull/62): Fix typo preventing access to response object on error - [@jmondo](https://github.com/jmondo).
|
8
|
+
|
5
9
|
### 0.3.4 (01/31/2019)
|
6
10
|
|
7
11
|
* [#56](https://github.com/ashkan18/graphlient/pull/56): Remove safe navigation usage to retain support for Ruby 2.2 - [@avinoth](https://github.com/avinoth).
|
data/Gemfile
CHANGED
data/lib/graphlient/version.rb
CHANGED
@@ -91,7 +91,7 @@ describe Graphlient::Client do
|
|
91
91
|
expect do
|
92
92
|
client.execute(query, id: '42')
|
93
93
|
end.to raise_error Graphlient::Errors::GraphQLError do |e|
|
94
|
-
expect(e.to_s).to eq
|
94
|
+
expect(e.to_s).to eq 'Variable id of type Int was provided invalid value'
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
@@ -111,6 +111,14 @@ describe Graphlient::Client do
|
|
111
111
|
expect(e.to_s).to eq 'Cannot return null for non-nullable field Query.notNullInvoice'
|
112
112
|
end
|
113
113
|
end
|
114
|
+
|
115
|
+
it 'fails with access to the response' do
|
116
|
+
expect do
|
117
|
+
client.execute(not_null_query, id: 42)
|
118
|
+
end.to raise_error Graphlient::Errors::GraphQLError do |e|
|
119
|
+
expect(e.response).to be_a GraphQL::Client::Response
|
120
|
+
end
|
121
|
+
end
|
114
122
|
end
|
115
123
|
|
116
124
|
context 'non-parameterized query' do
|
@@ -215,7 +223,7 @@ describe Graphlient::Client do
|
|
215
223
|
end
|
216
224
|
end
|
217
225
|
end.to raise_error Graphlient::Errors::GraphQLError,
|
218
|
-
|
226
|
+
'Variable input of type CreateInvoiceInput! was provided invalid value'
|
219
227
|
end
|
220
228
|
|
221
229
|
it 'returns a response from a query' do
|
@@ -264,7 +272,7 @@ describe Graphlient::Client do
|
|
264
272
|
end
|
265
273
|
end
|
266
274
|
end.to raise_error Graphlient::Errors::GraphQLError,
|
267
|
-
|
275
|
+
'Variable input of type CreateInvoiceInput! was provided invalid value for feeInCents (Expected value to not be null)'
|
268
276
|
end
|
269
277
|
end
|
270
278
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphlient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashkan Nasseri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: 1.3.6
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.7.8
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: A friendlier Ruby client for consuming GraphQL-based APIs.
|