artemis 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +53 -0
  3. data/Appraisals +22 -16
  4. data/CHANGELOG.md +63 -6
  5. data/Gemfile +2 -1
  6. data/README.md +62 -32
  7. data/artemis.gemspec +7 -8
  8. data/banner.png +0 -0
  9. data/gemfiles/rails_50.gemfile +6 -3
  10. data/gemfiles/rails_51.gemfile +5 -3
  11. data/gemfiles/rails_52.gemfile +5 -3
  12. data/gemfiles/rails_60.gemfile +13 -0
  13. data/gemfiles/{rails_42.gemfile → rails_61.gemfile} +5 -4
  14. data/gemfiles/rails_edge.gemfile +2 -1
  15. data/lib/artemis/adapters/abstract_adapter.rb +6 -1
  16. data/lib/artemis/adapters/curb_adapter.rb +2 -2
  17. data/lib/artemis/adapters/multi_domain_adapter.rb +43 -0
  18. data/lib/artemis/adapters/net_http_adapter.rb +1 -3
  19. data/lib/artemis/adapters/net_http_persistent_adapter.rb +1 -1
  20. data/lib/artemis/adapters/test_adapter.rb +1 -1
  21. data/lib/artemis/adapters.rb +1 -0
  22. data/lib/artemis/client.rb +45 -19
  23. data/lib/artemis/graphql_endpoint.rb +24 -6
  24. data/lib/artemis/railtie.rb +15 -13
  25. data/lib/artemis/test_helper.rb +41 -14
  26. data/lib/artemis/version.rb +1 -1
  27. data/lib/artemis.rb +32 -1
  28. data/lib/generators/artemis/install/install_generator.rb +2 -2
  29. data/lib/generators/artemis/mutation/templates/mutation.graphql +1 -1
  30. data/lib/generators/artemis/query/query_generator.rb +13 -1
  31. data/lib/generators/artemis/query/templates/fixture.yml +19 -0
  32. data/lib/generators/artemis/query/templates/query.graphql +1 -1
  33. data/lib/tasks/artemis.rake +3 -3
  34. data/spec/adapters_spec.rb +56 -10
  35. data/spec/callbacks_spec.rb +14 -0
  36. data/spec/client_spec.rb +26 -1
  37. data/spec/fixtures/responses/{artist.yml → metaphysics/artist.yml} +7 -0
  38. data/spec/fixtures/responses/{artwork.json → metaphysics/artwork.json} +0 -0
  39. data/spec/fixtures/responses/spotify_client/artist.yml +5 -0
  40. data/spec/spec_helper.rb +1 -0
  41. data/spec/test_helper_spec.rb +34 -4
  42. metadata +36 -46
  43. data/.travis.yml +0 -34
data/.travis.yml DELETED
@@ -1,34 +0,0 @@
1
- nguage: ruby
2
- script: bundle exec rake
3
- cache: bundler
4
- sudo: false
5
-
6
- before_install: gem install bundler -v 1.16.1
7
-
8
- rvm:
9
- - 2.6.0
10
- - 2.5.3
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_52.gemfile
19
- - gemfiles/rails_51.gemfile
20
- - gemfiles/rails_50.gemfile
21
- - gemfiles/rails_42.gemfile
22
- - gemfiles/rails_edge.gemfile
23
-
24
- matrix:
25
- allow_failures:
26
- - rvm: ruby-head
27
- # - rvm: jruby-9.2.3.0
28
- # - rvm: jruby-head
29
- - gemfile: gemfiles/rails_edge.gemfile
30
- exclude:
31
- - rvm: 2.4.5
32
- gemfile: gemfiles/rails_edge.gemfile
33
- - rvm: 2.3.8
34
- gemfile: gemfiles/rails_edge.gemfile