her-webmock 0.1.1 → 0.1.3

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
  SHA1:
3
- metadata.gz: 99be1cb35146e5876a026f891fdd5dce984877ed
4
- data.tar.gz: 3af30122077a500a2f6cd157215ff728c0068cf1
3
+ metadata.gz: 160fdd14095d45d1c124437931d4804f05de8caf
4
+ data.tar.gz: 9f66f0ddee251d1cdcabe8e88ea2749f5fb20843
5
5
  SHA512:
6
- metadata.gz: 511961e112fa0a37d007100174c69a997560616fa37de3ebcf99f09718759afaa275b7585337809fcb46833026c5ef7af5e0243c9093eb08ba83d41d1bd29a41
7
- data.tar.gz: 7f6ec4890ce33dced99aa97011c973da6387fa1f73290aa19e2f2472d2ff7250278ae43490a81a32e6e8170b4a76e9cb88899fff62a77637cfde72eb69d2e743
6
+ metadata.gz: 828b5b3679f646a672b25584775479787786b5aa1113b8b09303e2aa9f3f57445457a2547809d4415ad56d180ca37c57f27ca7865f8bde3e28ec42bf6130716c
7
+ data.tar.gz: 64807fbfb184b7aadc5f8c266dca7dfc6c1f393702d42742b4c7e81a2f27aff868037dbcf740a72ba63d8917e8db54e19be42b7a66f650bf6021253ac98be40d
data/her-webmock.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_runtime_dependency "her"
29
+ spec.add_runtime_dependency "her", "~> 0.8.1"
30
30
  spec.add_runtime_dependency "webmock"
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 1.9"
@@ -74,7 +74,7 @@ module Her
74
74
 
75
75
  attributes_without_id = attributes.except(:id)
76
76
 
77
- request_stub = stub_request(:post, model_class.use_api.base_uri + model_class.build_request_path(attributes_without_id)).
77
+ request_stub = stub_request(:post, model_class.use_api.options[:url] + model_class.build_request_path(attributes_without_id)).
78
78
  to_return(body: JSON.generate(response), status: 200)
79
79
 
80
80
  request_params = Helper.request_params(options)
@@ -102,7 +102,7 @@ module Her
102
102
  response = attributes
103
103
  end
104
104
 
105
- request_stub = stub_request(:get, model_class.use_api.base_uri + model_class.build_request_path(attributes)).
105
+ request_stub = stub_request(:get, model_class.use_api.options[:url] + model_class.build_request_path(attributes)).
106
106
  to_return(body: JSON.generate(response), status: 200)
107
107
 
108
108
  request_params = Helper.request_params(options)
@@ -121,9 +121,9 @@ module Her
121
121
  model_class.pluralized_parsed_root_element => collection_attributes
122
122
  }
123
123
 
124
- response = options[:metadata].merge(response) if options[:metadata]
124
+ response = options[:response_body].merge(response) if options[:response_body]
125
125
 
126
- request_stub = stub_request(:get, model_class.use_api.base_uri + model_class.collection_path).
126
+ request_stub = stub_request(:get, model_class.use_api.options[:url] + model_class.collection_path).
127
127
  to_return(body: JSON.generate(response), status: 200)
128
128
 
129
129
  request_params = Helper.request_params(options)
@@ -1,5 +1,5 @@
1
1
  module Her
2
2
  module WebMock
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: her-webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Octavian Neamtu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: her
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.8.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.8.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: webmock
29
29
  requirement: !ruby/object:Gem::Requirement