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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee006ba3f359c5588913d6bf49277ef3913d59c1
4
- data.tar.gz: 19a54224f3b646f58fe914798a4320022e07c9a8
3
+ metadata.gz: 67f9ab57e395e8e11bf14d3f17c347d1f67190c5
4
+ data.tar.gz: 9d6642730695c89e77cac92835ef37912235df72
5
5
  SHA512:
6
- metadata.gz: 245b9e4aca0b273d3af5232bc39c18ede02de41b26f762d8aa648fc0c8b7e02058a07d8ebc5caa22e483c9eac17e6d3287b11e5d92bc81cbd7c3f04f82e33846
7
- data.tar.gz: b81e7d6227be74345231ec7e3b93f2053817f3a04054ed30483958370fb42678563b07d55694f9d929604a0e27ed6dd3e8badc55d95ceb313761583c3a3b35a7
6
+ metadata.gz: ac7545ac958e602b1ce498ef3f1c014fd95c59f7cb16bb1f836ff950ea11e10430c2e16b72724a95ad9f59d0678ef617410b5518925e622b6d8237022659b7ea
7
+ data.tar.gz: 6104f6ee44167bb19abf4e5e2149588ba76c9c905e625a8b2f04cab0dcbd3622542e2befadc6e51c96cded3bbccc4b5b7385f92e148154acf0b47b3966f7da00
@@ -1,3 +1,3 @@
1
1
  module Wego
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".freeze
3
3
  end
@@ -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(response_with(filename: filename, status: status))
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 response_with(filename:, status:)
38
- { body: fixture_file(filename), status: status }
37
+ def wego_api_response_with(filename:, status:)
38
+ { body: wego_fixture_file(filename), status: status }
39
39
  end
40
40
 
41
- def fixture_file(filename)
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.2
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-16 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client