fake_shopify 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/fake_shopify/stub_app.rb +1 -3
- data/lib/fake_shopify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a1a18db366d617fade4254f13596bea4fdf8a10cf22ea0db7767e1861fa8e1f
|
4
|
+
data.tar.gz: a3b213ae4b90e7ffa1f2e4dbbc432521066dec7d38182b91d84e8ed85f19bed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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[
|
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
|
data/lib/fake_shopify/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|