graphlient 0.3.7 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/.travis.yml +3 -3
- data/CHANGELOG.md +15 -2
- data/Gemfile +1 -1
- data/README.md +56 -2
- data/UPGRADING.md +11 -0
- data/graphlient.gemspec +1 -1
- data/lib/graphlient/adapters/http/adapter.rb +18 -0
- data/lib/graphlient/adapters/http/faraday_adapter.rb +8 -1
- data/lib/graphlient/adapters/http/http_adapter.rb +2 -0
- data/lib/graphlient/client.rb +4 -2
- data/lib/graphlient/errors/http_options_error.rb +6 -0
- data/lib/graphlient/errors/timeout_error.rb +6 -0
- data/lib/graphlient/errors.rb +2 -0
- data/lib/graphlient/version.rb +1 -1
- data/spec/graphlient/adapters/http/faraday_adapter_spec.rb +36 -5
- data/spec/graphlient/adapters/http/http_adapter_spec.rb +21 -2
- data/spec/graphlient/client_query_spec.rb +3 -3
- data/spec/graphlient/client_schema_spec.rb +1 -1
- data/spec/graphlient/static_client_query_spec.rb +1 -1
- data/spec/graphlient/webmock_client_query_spec.rb +40 -0
- data/spec/support/context/dummy_client.rb +1 -1
- data/spec/support/fixtures/invoice_api.json +1289 -0
- metadata +13 -10
- data/.ruby-version +0 -1
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashkan Nasseri
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email: ashkan.nasseri@gmail.com
|
57
57
|
executables: []
|
58
58
|
extensions: []
|
@@ -62,7 +62,6 @@ files:
|
|
62
62
|
- ".rspec"
|
63
63
|
- ".rubocop.yml"
|
64
64
|
- ".rubocop_todo.yml"
|
65
|
-
- ".ruby-version"
|
66
65
|
- ".travis.yml"
|
67
66
|
- CHANGELOG.md
|
68
67
|
- CONTRIBUTING.md
|
@@ -88,8 +87,10 @@ files:
|
|
88
87
|
- lib/graphlient/errors/execution_error.rb
|
89
88
|
- lib/graphlient/errors/faraday_server_error.rb
|
90
89
|
- lib/graphlient/errors/graphql_error.rb
|
90
|
+
- lib/graphlient/errors/http_options_error.rb
|
91
91
|
- lib/graphlient/errors/http_server_error.rb
|
92
92
|
- lib/graphlient/errors/server_error.rb
|
93
|
+
- lib/graphlient/errors/timeout_error.rb
|
93
94
|
- lib/graphlient/extensions.rb
|
94
95
|
- lib/graphlient/extensions/query.rb
|
95
96
|
- lib/graphlient/query.rb
|
@@ -104,6 +105,7 @@ files:
|
|
104
105
|
- spec/graphlient/query_spec.rb
|
105
106
|
- spec/graphlient/schema_spec.rb
|
106
107
|
- spec/graphlient/static_client_query_spec.rb
|
108
|
+
- spec/graphlient/webmock_client_query_spec.rb
|
107
109
|
- spec/spec_helper.rb
|
108
110
|
- spec/support/context/dummy_client.rb
|
109
111
|
- spec/support/context/github_client.rb
|
@@ -112,6 +114,7 @@ files:
|
|
112
114
|
- spec/support/fixtures/github/schema.yml
|
113
115
|
- spec/support/fixtures/github/user.yml
|
114
116
|
- spec/support/fixtures/github/viewer.yml
|
117
|
+
- spec/support/fixtures/invoice_api.json
|
115
118
|
- spec/support/mutations/create_invoice.rb
|
116
119
|
- spec/support/queries/query.rb
|
117
120
|
- spec/support/schema/github.json
|
@@ -122,7 +125,7 @@ homepage: http://github.com/ashkan18/graphlient
|
|
122
125
|
licenses:
|
123
126
|
- MIT
|
124
127
|
metadata: {}
|
125
|
-
post_install_message:
|
128
|
+
post_install_message:
|
126
129
|
rdoc_options: []
|
127
130
|
require_paths:
|
128
131
|
- lib
|
@@ -137,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
140
|
- !ruby/object:Gem::Version
|
138
141
|
version: 1.3.6
|
139
142
|
requirements: []
|
140
|
-
rubygems_version: 3.0.
|
141
|
-
signing_key:
|
143
|
+
rubygems_version: 3.0.8
|
144
|
+
signing_key:
|
142
145
|
specification_version: 4
|
143
146
|
summary: A friendlier Ruby client for consuming GraphQL-based APIs.
|
144
147
|
test_files: []
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.0
|