graphlient 0.3.2 → 0.3.3
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_todo.yml +3 -27
- data/CHANGELOG.md +5 -1
- data/Gemfile +1 -0
- data/README.md +4 -1
- data/lib/graphlient/adapters/http/faraday_adapter.rb +1 -1
- data/lib/graphlient/adapters/http/http_adapter.rb +1 -1
- data/lib/graphlient/client.rb +2 -2
- data/lib/graphlient/errors.rb +2 -0
- data/lib/graphlient/errors/error.rb +0 -1
- data/lib/graphlient/errors/execution_error.rb +1 -1
- data/lib/graphlient/errors/faraday_server_error.rb +12 -0
- data/lib/graphlient/errors/graphql_error.rb +3 -4
- data/lib/graphlient/errors/http_server_error.rb +13 -0
- data/lib/graphlient/errors/server_error.rb +1 -0
- data/lib/graphlient/version.rb +1 -1
- data/spec/graphlient/client_query_spec.rb +20 -0
- data/spec/graphlient/client_schema_spec.rb +4 -1
- data/spec/graphlient/github_query_spec.rb +32 -0
- data/spec/graphlient/schema_spec.rb +9 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/support/context/github_client.rb +18 -0
- data/spec/support/fixtures/github/schema.yml +14282 -0
- data/spec/support/fixtures/github/user.yml +76 -0
- data/spec/support/fixtures/github/viewer.yml +76 -0
- data/spec/support/schema/github.json +44480 -0
- data/spec/support/vcr.rb +9 -0
- metadata +12 -3
data/spec/support/vcr.rb
ADDED
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashkan Nasseri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -84,7 +84,9 @@ files:
|
|
84
84
|
- lib/graphlient/errors/client_error.rb
|
85
85
|
- lib/graphlient/errors/error.rb
|
86
86
|
- lib/graphlient/errors/execution_error.rb
|
87
|
+
- lib/graphlient/errors/faraday_server_error.rb
|
87
88
|
- lib/graphlient/errors/graphql_error.rb
|
89
|
+
- lib/graphlient/errors/http_server_error.rb
|
88
90
|
- lib/graphlient/errors/server_error.rb
|
89
91
|
- lib/graphlient/extensions.rb
|
90
92
|
- lib/graphlient/extensions/query.rb
|
@@ -96,17 +98,24 @@ files:
|
|
96
98
|
- spec/graphlient/client_query_spec.rb
|
97
99
|
- spec/graphlient/client_schema_spec.rb
|
98
100
|
- spec/graphlient/extensions/query_spec.rb
|
101
|
+
- spec/graphlient/github_query_spec.rb
|
99
102
|
- spec/graphlient/query_spec.rb
|
100
103
|
- spec/graphlient/schema_spec.rb
|
101
104
|
- spec/graphlient/static_client_query_spec.rb
|
102
105
|
- spec/spec_helper.rb
|
103
106
|
- spec/support/context/dummy_client.rb
|
107
|
+
- spec/support/context/github_client.rb
|
104
108
|
- spec/support/dummy_app.rb
|
105
109
|
- spec/support/dummy_schema.rb
|
110
|
+
- spec/support/fixtures/github/schema.yml
|
111
|
+
- spec/support/fixtures/github/user.yml
|
112
|
+
- spec/support/fixtures/github/viewer.yml
|
106
113
|
- spec/support/mutations/create_invoice.rb
|
107
114
|
- spec/support/queries/query.rb
|
115
|
+
- spec/support/schema/github.json
|
108
116
|
- spec/support/types/invoice_type.rb
|
109
117
|
- spec/support/types/mutation_type.rb
|
118
|
+
- spec/support/vcr.rb
|
110
119
|
homepage: http://github.com/ashkan18/graphlient
|
111
120
|
licenses:
|
112
121
|
- MIT
|
@@ -127,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
136
|
version: 1.3.6
|
128
137
|
requirements: []
|
129
138
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.6.14
|
131
140
|
signing_key:
|
132
141
|
specification_version: 4
|
133
142
|
summary: A friendlier Ruby client for consuming GraphQL-based APIs.
|