wego 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wego/version.rb +1 -1
- data/spec/support/fake_wego_api.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67f9ab57e395e8e11bf14d3f17c347d1f67190c5
|
4
|
+
data.tar.gz: 9d6642730695c89e77cac92835ef37912235df72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac7545ac958e602b1ce498ef3f1c014fd95c59f7cb16bb1f836ff950ea11e10430c2e16b72724a95ad9f59d0678ef617410b5518925e622b6d8237022659b7ea
|
7
|
+
data.tar.gz: 6104f6ee44167bb19abf4e5e2149588ba76c9c905e625a8b2f04cab0dcbd3622542e2befadc6e51c96cded3bbccc4b5b7385f92e148154acf0b47b3966f7da00
|
data/lib/wego/version.rb
CHANGED
@@ -27,18 +27,18 @@ module FakeWegoApi
|
|
27
27
|
|
28
28
|
def stub_api_response(end_point, options, filename:, status: 200)
|
29
29
|
stub_request(:get, api_path(end_point, options)).
|
30
|
-
to_return(
|
30
|
+
to_return(wego_api_response_with(filename: filename, status: status))
|
31
31
|
end
|
32
32
|
|
33
33
|
def api_path(end_point, attributes = {})
|
34
34
|
Wego::Client.new(end_point, attributes).url
|
35
35
|
end
|
36
36
|
|
37
|
-
def
|
38
|
-
{ body:
|
37
|
+
def wego_api_response_with(filename:, status:)
|
38
|
+
{ body: wego_fixture_file(filename), status: status }
|
39
39
|
end
|
40
40
|
|
41
|
-
def
|
41
|
+
def wego_fixture_file(filename)
|
42
42
|
file_name = [filename, "json"].join(".")
|
43
43
|
file_path = ["../../fixtures", file_name].join("/")
|
44
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wego
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abu Nashir
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|