graphlient 0.3.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +9 -0
- data/.travis.yml +3 -3
- data/CHANGELOG.md +30 -2
- data/Gemfile +5 -1
- data/README.md +74 -2
- data/RELEASING.md +2 -0
- data/UPGRADING.md +23 -0
- data/graphlient.gemspec +1 -1
- data/lib/graphlient/adapters/http/adapter.rb +18 -0
- data/lib/graphlient/adapters/http/faraday_adapter.rb +10 -1
- data/lib/graphlient/adapters/http/http_adapter.rb +3 -1
- data/lib/graphlient/client.rb +11 -5
- data/lib/graphlient/errors.rb +3 -0
- data/lib/graphlient/errors/connection_failed_error.rb +6 -0
- data/lib/graphlient/errors/graphql_error.rb +1 -1
- data/lib/graphlient/errors/http_options_error.rb +6 -0
- data/lib/graphlient/errors/timeout_error.rb +6 -0
- data/lib/graphlient/version.rb +1 -1
- data/spec/graphlient/adapters/http/faraday_adapter_spec.rb +57 -5
- data/spec/graphlient/adapters/http/http_adapter_spec.rb +21 -2
- data/spec/graphlient/client_query_spec.rb +11 -3
- data/spec/graphlient/client_schema_spec.rb +1 -1
- data/spec/graphlient/static_client_query_spec.rb +36 -7
- 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 +15 -11
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
|
@@ -72,6 +71,7 @@ files:
|
|
72
71
|
- README.md
|
73
72
|
- RELEASING.md
|
74
73
|
- Rakefile
|
74
|
+
- UPGRADING.md
|
75
75
|
- graphlient.gemspec
|
76
76
|
- lib/graphlient.rb
|
77
77
|
- lib/graphlient/adapters.rb
|
@@ -82,12 +82,15 @@ files:
|
|
82
82
|
- lib/graphlient/client.rb
|
83
83
|
- lib/graphlient/errors.rb
|
84
84
|
- lib/graphlient/errors/client_error.rb
|
85
|
+
- lib/graphlient/errors/connection_failed_error.rb
|
85
86
|
- lib/graphlient/errors/error.rb
|
86
87
|
- lib/graphlient/errors/execution_error.rb
|
87
88
|
- lib/graphlient/errors/faraday_server_error.rb
|
88
89
|
- lib/graphlient/errors/graphql_error.rb
|
90
|
+
- lib/graphlient/errors/http_options_error.rb
|
89
91
|
- lib/graphlient/errors/http_server_error.rb
|
90
92
|
- lib/graphlient/errors/server_error.rb
|
93
|
+
- lib/graphlient/errors/timeout_error.rb
|
91
94
|
- lib/graphlient/extensions.rb
|
92
95
|
- lib/graphlient/extensions/query.rb
|
93
96
|
- lib/graphlient/query.rb
|
@@ -102,6 +105,7 @@ files:
|
|
102
105
|
- spec/graphlient/query_spec.rb
|
103
106
|
- spec/graphlient/schema_spec.rb
|
104
107
|
- spec/graphlient/static_client_query_spec.rb
|
108
|
+
- spec/graphlient/webmock_client_query_spec.rb
|
105
109
|
- spec/spec_helper.rb
|
106
110
|
- spec/support/context/dummy_client.rb
|
107
111
|
- spec/support/context/github_client.rb
|
@@ -110,6 +114,7 @@ files:
|
|
110
114
|
- spec/support/fixtures/github/schema.yml
|
111
115
|
- spec/support/fixtures/github/user.yml
|
112
116
|
- spec/support/fixtures/github/viewer.yml
|
117
|
+
- spec/support/fixtures/invoice_api.json
|
113
118
|
- spec/support/mutations/create_invoice.rb
|
114
119
|
- spec/support/queries/query.rb
|
115
120
|
- spec/support/schema/github.json
|
@@ -120,7 +125,7 @@ homepage: http://github.com/ashkan18/graphlient
|
|
120
125
|
licenses:
|
121
126
|
- MIT
|
122
127
|
metadata: {}
|
123
|
-
post_install_message:
|
128
|
+
post_install_message:
|
124
129
|
rdoc_options: []
|
125
130
|
require_paths:
|
126
131
|
- lib
|
@@ -135,9 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
140
|
- !ruby/object:Gem::Version
|
136
141
|
version: 1.3.6
|
137
142
|
requirements: []
|
138
|
-
|
139
|
-
|
140
|
-
signing_key:
|
143
|
+
rubygems_version: 3.0.8
|
144
|
+
signing_key:
|
141
145
|
specification_version: 4
|
142
146
|
summary: A friendlier Ruby client for consuming GraphQL-based APIs.
|
143
147
|
test_files: []
|