artemis 0.5.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +64 -0
- data/.gitignore +1 -0
- data/Appraisals +12 -20
- data/CHANGELOG.md +45 -0
- data/Gemfile +2 -0
- data/README.md +71 -6
- data/artemis.gemspec +0 -1
- data/gemfiles/rails_50.gemfile +3 -1
- data/gemfiles/rails_51.gemfile +3 -1
- data/gemfiles/rails_52.gemfile +3 -1
- data/gemfiles/rails_60.gemfile +3 -1
- data/gemfiles/{rails_40.gemfile → rails_61.gemfile} +5 -3
- data/gemfiles/{rails_41.gemfile → rails_70.gemfile} +5 -4
- data/gemfiles/rails_edge.gemfile +2 -0
- data/lib/artemis/adapters/abstract_adapter.rb +1 -1
- data/lib/artemis/adapters/curb_adapter.rb +17 -7
- data/lib/artemis/adapters/multi_domain_adapter.rb +58 -0
- data/lib/artemis/adapters/net_http_adapter.rb +25 -16
- data/lib/artemis/adapters/net_http_persistent_adapter.rb +7 -1
- data/lib/artemis/adapters/test_adapter.rb +22 -3
- data/lib/artemis/adapters.rb +1 -0
- data/lib/artemis/client.rb +42 -8
- data/lib/artemis/graphql_endpoint.rb +11 -5
- data/lib/artemis/railtie.rb +16 -8
- data/lib/artemis/test_helper.rb +2 -1
- data/lib/artemis/version.rb +1 -1
- data/lib/generators/artemis/mutation/templates/mutation.graphql +1 -1
- data/lib/generators/artemis/query/query_generator.rb +14 -2
- data/lib/generators/artemis/query/templates/fixture.yml +19 -0
- data/lib/generators/artemis/query/templates/query.graphql +2 -2
- data/spec/adapters_spec.rb +165 -10
- data/spec/autoloading_spec.rb +4 -4
- data/spec/client_spec.rb +38 -2
- data/spec/fixtures/metaphysics/{_artist_fragment.graphql → _artist_fields.graphql} +0 -0
- data/spec/fixtures/metaphysics/artists.graphql +1 -1
- data/spec/fixtures/responses/{spotify → spotify_client}/artist.yml +0 -0
- data/spec/test_helper_spec.rb +10 -1
- metadata +13 -26
- data/.travis.yml +0 -69
- data/gemfiles/rails_42.gemfile +0 -12
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artemis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Allured
|
8
8
|
- Yuki Nishijima
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -95,20 +95,6 @@ dependencies:
|
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '1.16'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: curb
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 0.9.6
|
105
|
-
type: :development
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: 0.9.6
|
112
98
|
- !ruby/object:Gem::Dependency
|
113
99
|
name: net-http-persistent
|
114
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,9 +145,9 @@ executables: []
|
|
159
145
|
extensions: []
|
160
146
|
extra_rdoc_files: []
|
161
147
|
files:
|
148
|
+
- ".github/workflows/ruby.yml"
|
162
149
|
- ".gitignore"
|
163
150
|
- ".rspec"
|
164
|
-
- ".travis.yml"
|
165
151
|
- Appraisals
|
166
152
|
- CHANGELOG.md
|
167
153
|
- CODE_OF_CONDUCT.md
|
@@ -176,18 +162,18 @@ files:
|
|
176
162
|
- doc/CHANGELOG.md.erb
|
177
163
|
- doc/changelog_generator.rb
|
178
164
|
- gemfiles/.bundle/config
|
179
|
-
- gemfiles/rails_40.gemfile
|
180
|
-
- gemfiles/rails_41.gemfile
|
181
|
-
- gemfiles/rails_42.gemfile
|
182
165
|
- gemfiles/rails_50.gemfile
|
183
166
|
- gemfiles/rails_51.gemfile
|
184
167
|
- gemfiles/rails_52.gemfile
|
185
168
|
- gemfiles/rails_60.gemfile
|
169
|
+
- gemfiles/rails_61.gemfile
|
170
|
+
- gemfiles/rails_70.gemfile
|
186
171
|
- gemfiles/rails_edge.gemfile
|
187
172
|
- lib/artemis.rb
|
188
173
|
- lib/artemis/adapters.rb
|
189
174
|
- lib/artemis/adapters/abstract_adapter.rb
|
190
175
|
- lib/artemis/adapters/curb_adapter.rb
|
176
|
+
- lib/artemis/adapters/multi_domain_adapter.rb
|
191
177
|
- lib/artemis/adapters/net_http_adapter.rb
|
192
178
|
- lib/artemis/adapters/net_http_persistent_adapter.rb
|
193
179
|
- lib/artemis/adapters/test_adapter.rb
|
@@ -207,6 +193,7 @@ files:
|
|
207
193
|
- lib/generators/artemis/mutation/templates/mutation.graphql
|
208
194
|
- lib/generators/artemis/query/USAGE
|
209
195
|
- lib/generators/artemis/query/query_generator.rb
|
196
|
+
- lib/generators/artemis/query/templates/fixture.yml
|
210
197
|
- lib/generators/artemis/query/templates/query.graphql
|
211
198
|
- lib/tasks/artemis.rake
|
212
199
|
- spec/adapters_spec.rb
|
@@ -215,14 +202,14 @@ files:
|
|
215
202
|
- spec/client_spec.rb
|
216
203
|
- spec/endpoint_spec.rb
|
217
204
|
- spec/fixtures/metaphysics.rb
|
218
|
-
- spec/fixtures/metaphysics/
|
205
|
+
- spec/fixtures/metaphysics/_artist_fields.graphql
|
219
206
|
- spec/fixtures/metaphysics/artist.graphql
|
220
207
|
- spec/fixtures/metaphysics/artists.graphql
|
221
208
|
- spec/fixtures/metaphysics/artwork.graphql
|
222
209
|
- spec/fixtures/metaphysics/schema.json
|
223
210
|
- spec/fixtures/responses/metaphysics/artist.yml
|
224
211
|
- spec/fixtures/responses/metaphysics/artwork.json
|
225
|
-
- spec/fixtures/responses/
|
212
|
+
- spec/fixtures/responses/spotify_client/artist.yml
|
226
213
|
- spec/spec_helper.rb
|
227
214
|
- spec/test_helper_spec.rb
|
228
215
|
- tmp/.gitkeep
|
@@ -230,7 +217,7 @@ homepage: https://github.com/yuki24/artemis
|
|
230
217
|
licenses:
|
231
218
|
- MIT
|
232
219
|
metadata: {}
|
233
|
-
post_install_message:
|
220
|
+
post_install_message:
|
234
221
|
rdoc_options: []
|
235
222
|
require_paths:
|
236
223
|
- lib
|
@@ -245,8 +232,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
232
|
- !ruby/object:Gem::Version
|
246
233
|
version: '0'
|
247
234
|
requirements: []
|
248
|
-
rubygems_version: 3.
|
249
|
-
signing_key:
|
235
|
+
rubygems_version: 3.3.7
|
236
|
+
signing_key:
|
250
237
|
specification_version: 4
|
251
238
|
summary: GraphQL on Rails
|
252
239
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
script: bundle exec rake
|
3
|
-
cache: bundler
|
4
|
-
sudo: false
|
5
|
-
|
6
|
-
before_install: gem install bundler -v 1.17.3
|
7
|
-
|
8
|
-
rvm:
|
9
|
-
- 2.6.2
|
10
|
-
- 2.5.5
|
11
|
-
- 2.4.5
|
12
|
-
- 2.3.8
|
13
|
-
- ruby-head
|
14
|
-
# - jruby-9.2.3.0
|
15
|
-
# - jruby-head
|
16
|
-
|
17
|
-
gemfile:
|
18
|
-
- gemfiles/rails_60.gemfile
|
19
|
-
- gemfiles/rails_52.gemfile
|
20
|
-
- gemfiles/rails_51.gemfile
|
21
|
-
- gemfiles/rails_50.gemfile
|
22
|
-
- gemfiles/rails_42.gemfile
|
23
|
-
- gemfiles/rails_41.gemfile
|
24
|
-
- gemfiles/rails_40.gemfile
|
25
|
-
- gemfiles/rails_edge.gemfile
|
26
|
-
|
27
|
-
matrix:
|
28
|
-
allow_failures:
|
29
|
-
- rvm: ruby-head
|
30
|
-
# - rvm: jruby-9.2.3.0
|
31
|
-
# - rvm: jruby-head
|
32
|
-
- gemfile: gemfiles/rails_edge.gemfile
|
33
|
-
- gemfile: gemfiles/rails_41.gemfile
|
34
|
-
- gemfile: gemfiles/rails_40.gemfile
|
35
|
-
exclude:
|
36
|
-
- rvm: ruby-head
|
37
|
-
gemfile: gemfiles/rails_40.gemfile
|
38
|
-
- rvm: ruby-head
|
39
|
-
gemfile: gemfiles/rails_41.gemfile
|
40
|
-
- rvm: ruby-head
|
41
|
-
gemfile: gemfiles/rails_42.gemfile
|
42
|
-
- rvm: 2.6.2
|
43
|
-
gemfile: gemfiles/rails_50.gemfile
|
44
|
-
- rvm: 2.6.2
|
45
|
-
gemfile: gemfiles/rails_42.gemfile
|
46
|
-
- rvm: 2.6.2
|
47
|
-
gemfile: gemfiles/rails_41.gemfile
|
48
|
-
- rvm: 2.6.2
|
49
|
-
gemfile: gemfiles/rails_40.gemfile
|
50
|
-
- rvm: 2.5.5
|
51
|
-
gemfile: gemfiles/rails_50.gemfile
|
52
|
-
- rvm: 2.5.5
|
53
|
-
gemfile: gemfiles/rails_42.gemfile
|
54
|
-
- rvm: 2.5.5
|
55
|
-
gemfile: gemfiles/rails_41.gemfile
|
56
|
-
- rvm: 2.5.5
|
57
|
-
gemfile: gemfiles/rails_40.gemfile
|
58
|
-
- rvm: 2.4.5
|
59
|
-
gemfile: gemfiles/rails_edge.gemfile
|
60
|
-
- rvm: 2.4.5
|
61
|
-
gemfile: gemfiles/rails_60.gemfile
|
62
|
-
- rvm: 2.4.5
|
63
|
-
gemfile: gemfiles/rails_41.gemfile
|
64
|
-
- rvm: 2.4.5
|
65
|
-
gemfile: gemfiles/rails_40.gemfile
|
66
|
-
- rvm: 2.3.8
|
67
|
-
gemfile: gemfiles/rails_edge.gemfile
|
68
|
-
- rvm: 2.3.8
|
69
|
-
gemfile: gemfiles/rails_60.gemfile
|
data/gemfiles/rails_42.gemfile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rails", "~> 4.2.0"
|
6
|
-
gem "pry"
|
7
|
-
gem "pry-byebug", platforms: :mri
|
8
|
-
gem "railties", "~> 4.2.0"
|
9
|
-
gem "activesupport", "~> 4.2.0"
|
10
|
-
gem "minitest", "5.10.3"
|
11
|
-
|
12
|
-
gemspec path: "../"
|