artemis 0.8.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +21 -6
  3. data/Appraisals +21 -3
  4. data/CHANGELOG.md +35 -4
  5. data/artemis.gemspec +1 -1
  6. data/bin/console +3 -3
  7. data/gemfiles/graphql_2_0.gemfile +15 -0
  8. data/gemfiles/rails_60.gemfile +3 -3
  9. data/gemfiles/rails_71.gemfile +14 -0
  10. data/gemfiles/rails_edge.gemfile +1 -0
  11. data/lib/artemis/adapters/net_http_persistent_adapter.rb +6 -0
  12. data/lib/artemis/railtie.rb +1 -1
  13. data/lib/artemis/version.rb +1 -1
  14. data/spec/adapters_spec.rb +9 -2
  15. data/spec/autoloading_spec.rb +55 -49
  16. data/spec/callbacks_spec.rb +6 -6
  17. data/spec/client_spec.rb +84 -78
  18. data/spec/endpoint_spec.rb +11 -7
  19. data/spec/fixtures/github/_repository_fields.graphql +12 -0
  20. data/spec/fixtures/github/repository.graphql +6 -0
  21. data/spec/fixtures/github/schema.json +165225 -0
  22. data/spec/fixtures/github/user.graphql +6 -0
  23. data/spec/fixtures/github/user_repositories.graphql +13 -0
  24. data/spec/fixtures/github.rb +2 -0
  25. data/spec/fixtures/responses/github/repository.yml +17 -0
  26. data/spec/fixtures/responses/github/user.json +10 -0
  27. data/spec/spec_helper.rb +3 -3
  28. data/spec/test_helper_spec.rb +32 -32
  29. metadata +15 -13
  30. data/spec/fixtures/metaphysics/_artist_fields.graphql +0 -4
  31. data/spec/fixtures/metaphysics/artist.graphql +0 -7
  32. data/spec/fixtures/metaphysics/artists.graphql +0 -8
  33. data/spec/fixtures/metaphysics/artwork.graphql +0 -8
  34. data/spec/fixtures/metaphysics/schema.json +0 -49811
  35. data/spec/fixtures/metaphysics.rb +0 -2
  36. data/spec/fixtures/responses/metaphysics/artist.yml +0 -24
  37. data/spec/fixtures/responses/metaphysics/artwork.json +0 -12
@@ -1,2 +0,0 @@
1
- class Metaphysics < Artemis::Client
2
- end
@@ -1,24 +0,0 @@
1
- yayoi_kusama:
2
- data:
3
- artist:
4
- name: Yayoi Kusama
5
- birthday: 1929/03/22
6
-
7
- leonardo_da_vinci:
8
- data:
9
- artist:
10
- name: Leonardo da Vinci
11
- birthday: 1452/04/15
12
-
13
- yuki:
14
- data:
15
- artist:
16
- name: Yuki Nishijima
17
- birthday: <%= Date.today.year %>/01/01
18
-
19
- yoshiki:
20
- data:
21
- artist:
22
- id: artist-yoshiki
23
- name: Artist Yoshiki
24
- birthday: null
@@ -1,12 +0,0 @@
1
- {
2
- "the_last_supper": {
3
- "data": {
4
- "artwork": {
5
- "title": "The Last Supper",
6
- "artist": {
7
- "name": "Leonardo da Vinci"
8
- }
9
- }
10
- }
11
- }
12
- }