artemis 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d63a9c3c0a9082fd9b93c55499fae9865425d01178c4ec637fb96a16acc9a3f
4
- data.tar.gz: c0892fe01fe9b5d9c6c4e8b19c13d313e8efc75c1b3235db141cacd472f0dff6
3
+ metadata.gz: 165436feafc8c76f46453a3c25d9dbd4029c2ce7d77a6920ce1795e05cc1637d
4
+ data.tar.gz: bee99e318ec86563b2a30e368d6ef085cab8cfb284584e94f4e0f2a1ebb2d4c3
5
5
  SHA512:
6
- metadata.gz: efced6e7780065414b95d47248f6f2b71055ed1512a5a19b2f86c82dcb42e9ef205894935ec8a0f3a106dfd109cb8bf12f978ceeb3357e6caac61a6a7818cce7
7
- data.tar.gz: a45b2cb975cb8399a3a9e26e6dc4abdbf8afeaeead80ace29a2f6fd9c31966d7ede04724a53d23cb7abfa1e1611ea9d30839be4eb2677e71e9fce846cd5d27d4
6
+ metadata.gz: c4040a5a7074baec1939cb163838409c573a70ea21a23fc327f2781951c59cdbfe720c3d91d538e9b0fdc26a780edde0c1b1cfec82a321f8a1d2277ca6983926
7
+ data.tar.gz: 61126510087da4bdb782aa5a86cc0404839326915fc9c3e44c8fec7a91290de0a4a806c64612d6d4a248269d49131552f190c1b274c3b73a4bedf351ab1c2b46
@@ -1,3 +1,12 @@
1
+ ## [v0.5.1](https://github.com/yuki24/artemis/tree/v0.5.1)
2
+
3
+ _<sup>released at 2019-07-01 14:25:35 UTC</sup>_
4
+
5
+ #### Fixes
6
+
7
+ - Fixes an issue where callbacks are shared across all clients ([@JanStevens](https://github.com/JanStevens), issue: [#69](https://github.com/yuki24/artemis/issues/69), PR: [#70](https://github.com/yuki24/artemis/pull/70))
8
+ - Fixes an issue where fixtures with the same name cause a conflict ([@JanStevens](https://github.com/JanStevens), Issue: [#68](https://github.com/yuki24/artemis/issues/68), commit: [<tt>e1f57f4</tt>](https://github.com/yuki24/artemis/commit/e1f57f49ebb032553d7a6f70e48422fc9825c119))
9
+
1
10
  ## [v0.5.0](https://github.com/yuki24/artemis/tree/v0.5.0)
2
11
 
3
12
  _<sup>released at 2019-06-02 22:01:57 UTC</sup>_
@@ -4,6 +4,7 @@ require 'erb'
4
4
  require 'yaml'
5
5
 
6
6
  require 'active_support/core_ext/module/attribute_accessors'
7
+ require 'active_support/core_ext/string/inflections'
7
8
 
8
9
  require 'artemis/exceptions'
9
10
 
@@ -110,7 +111,7 @@ module Artemis
110
111
 
111
112
  def find_fixture_set
112
113
  fixture_set = fixture_sets
113
- .detect { |fixture| %r{#{service_name.downcase}/#{query_name}\.(yml|json)\z} =~ fixture.path }
114
+ .detect { |fixture| %r{#{service_name.underscore}/#{query_name}\.(yml|json)\z} =~ fixture.path }
114
115
  fixture_set ||= fixture_sets.detect { |fixture| fixture.name == query_name.to_s }
115
116
 
116
117
  if fixture_set.nil?
@@ -1,3 +1,3 @@
1
1
  module Artemis
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -71,7 +71,7 @@ describe Artemis::TestHelper do
71
71
  end
72
72
 
73
73
  it "allows to get raw fixture data as a Hash" do
74
- data = stub_graphql("Spotify", :artist).get(:yoshiki)
74
+ data = stub_graphql("SpotifyClient", :artist).get(:yoshiki)
75
75
 
76
76
  expect(data).to eq({
77
77
  "data" => {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artemis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Allured
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-01 00:00:00.000000000 Z
12
+ date: 2019-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -222,7 +222,7 @@ files:
222
222
  - spec/fixtures/metaphysics/schema.json
223
223
  - spec/fixtures/responses/metaphysics/artist.yml
224
224
  - spec/fixtures/responses/metaphysics/artwork.json
225
- - spec/fixtures/responses/spotify/artist.yml
225
+ - spec/fixtures/responses/spotify_client/artist.yml
226
226
  - spec/spec_helper.rb
227
227
  - spec/test_helper_spec.rb
228
228
  - tmp/.gitkeep