fake_shopify 0.1.1 → 0.2.0

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: 269db357e22cce5ee0415963d2fbc05f8541c57f67e396c2c711c8c83247eef4
4
- data.tar.gz: 935d5e2277e2f9cdcaeca8b33173cbccd944aae8a4f7de419a17b94afe131835
3
+ metadata.gz: 1a1a18db366d617fade4254f13596bea4fdf8a10cf22ea0db7767e1861fa8e1f
4
+ data.tar.gz: a3b213ae4b90e7ffa1f2e4dbbc432521066dec7d38182b91d84e8ed85f19bed4
5
5
  SHA512:
6
- metadata.gz: 8b7656ca249f6e477c62e506ccba83c38d4a3942716abdc73c5edaa84a036f4ec91590da61b567d1dace5743dffcf67d153c5a4708e8c74351bdb39574ad16c1
7
- data.tar.gz: eec8a883b796c0f461c99ea4a3075fb7ad2d7b1fcb09c50da599b699ac9e3afeab0fe6c1b15b4074b4b158080e8e69098cb70891e133e366ec335823d25c2282
6
+ metadata.gz: d7163eec98f3760dc8327a1e5f44b0e0466d24d76f80094c3a24eaaff6a673b4626e231b9f8ca3088139af5d7e4aa4ee5e0051ca8e214da3e754c298f36a4206
7
+ data.tar.gz: bb614680039ac53091b22cf8f5017b38e505af57e07ed6c350df1ebdaebeae066ac9e1474a16a4da7991ebff5eb301ed8bdf698f1540b875745a32752efe03f8
data/README.md CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
  Require the library in your spec support:
24
24
 
25
25
  ```ruby
26
- # spec/support/fake_stripe.rb
26
+ # spec/support/fake_shopify.rb
27
27
  require 'fake_shopify'
28
28
 
29
29
  RSpec.configure do |config|
@@ -48,7 +48,6 @@ For now, these exact values for `domain` and `api_version` are required.
48
48
 
49
49
  ## Development Roadmap
50
50
 
51
- - Add more detailed usage instructions
52
51
  - Add fixtures for all other Shopify API versions
53
52
  - Allow users to set custom shop domain for testing
54
53
 
@@ -1,10 +1,8 @@
1
1
  require "sinatra/base"
2
- Dir["./lib/fake_shopify/routes/*.rb"].each { |file| require file }
2
+ Dir[File.join(__dir__, '/routes', '*.rb')].each { |file| require file }
3
3
 
4
4
  module FakeShopify
5
5
  class StubApp < Sinatra::Base
6
- private
7
-
8
6
  def fixture(api_version, file_name)
9
7
  file_path = File.join(FakeShopify.fixture_path, api_version.to_s, "#{file_name}.json")
10
8
  File.open(file_path, "rb").read
@@ -1,3 +1,3 @@
1
1
  module FakeShopify
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - colinsoleim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-01 00:00:00.000000000 Z
11
+ date: 2020-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara