stub_requests 0.1.6 → 0.1.7

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: d4dcfcb95fc0084e09f59ae295b6244b9f08fe11a284b7ee3e7df9d988d4c832
4
- data.tar.gz: 38716732dc7d96ccab33752e7e097f324ce1c3c4d2d588bce7397bdec996a24d
3
+ metadata.gz: 5e7d62b2edc2b420340c364cd8f6a8e1c46c5d2c659ed58593a58f5c115bdec9
4
+ data.tar.gz: 3a6d7f55774423c44c803ff400ea2c283fef345374df7975bcdf7074f1823b67
5
5
  SHA512:
6
- metadata.gz: 3c07523bea4f8fe8ed44df67862e29c46030aca348ea3f1c962a2040f02ce519292c468a4b753d76656afa08c839b4bfb936835bfa350cc15a5302cf6121036c
7
- data.tar.gz: 926410d4326bf53974c8074bd2072d465a1f5fabb052794477a16e39440527ad0fcc55cf4a8d602bd1afa4a2a1b3bd56b6accf3030267198b7aa414b8207ba40
6
+ metadata.gz: 66e9acdd10df02305136dc8d9e6eb7e1d686027c161912dc8b1cb0ca1fad0742b522fd1ad77c228ba9c2d8266f87ee35b67650683370076ecd70fef0f49d633f
7
+ data.tar.gz: e3c35f1c1c4a6e60217566b3c4d8759796d3089d057717a904ebfc4a4b4a8fa961d48bd133ce6fd6426b1cc2371afbb3a38dfc926104bf1d7c90de335132962d
@@ -1,5 +1,20 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.1.6](https://github.com/mhenrixon/stub_requests/tree/v0.1.6) (2019-02-06)
4
+ [Full Changelog](https://github.com/mhenrixon/stub_requests/compare/v0.1.5...v0.1.6)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - Remove the need for manual release steps \[ci-skip\] [\#23](https://github.com/mhenrixon/stub_requests/pull/23) ([mhenrixon](https://github.com/mhenrixon))
9
+
10
+ **Fixed bugs:**
11
+
12
+ - Load methods unless defined [\#22](https://github.com/mhenrixon/stub_requests/pull/22) ([mhenrixon](https://github.com/mhenrixon))
13
+
14
+ **Merged pull requests:**
15
+
16
+ - Update Changelog [\#21](https://github.com/mhenrixon/stub_requests/pull/21) ([mhenrixon](https://github.com/mhenrixon))
17
+
3
18
  ## [v0.1.5](https://github.com/mhenrixon/stub_requests/tree/v0.1.5) (2019-02-06)
4
19
  [Full Changelog](https://github.com/mhenrixon/stub_requests/compare/v0.1.4...v0.1.5)
5
20
 
@@ -120,7 +120,7 @@ module StubRequests
120
120
  def register(service_id, service_uri)
121
121
  if (service = find(service_id))
122
122
  StubRequests.logger.warn("Service already registered #{service}")
123
- raise ServiceHaveEndpoints, service if service.endpoints?
123
+ return service
124
124
  end
125
125
  services[service_id] = Service.new(service_id, service_uri)
126
126
  end
@@ -100,11 +100,11 @@ module StubRequests
100
100
  # @return [Service] the service that was just registered
101
101
  #
102
102
  def record(service, endpoint, webmock_stub)
103
- endpoint = find_or_initialize_endpoint_stub(service, endpoint)
104
- endpoint.record(webmock_stub)
103
+ endpoint_stub = find_or_initialize_endpoint_stub(service, endpoint)
104
+ endpoint_stub.record(webmock_stub)
105
105
 
106
- endpoints.push(endpoint)
107
- endpoint
106
+ endpoints.push(endpoint_stub)
107
+ endpoint_stub
108
108
  end
109
109
 
110
110
  #
@@ -9,5 +9,5 @@
9
9
  module StubRequests
10
10
  #
11
11
  # @return [String] a version string
12
- VERSION = "0.1.6"
12
+ VERSION = "0.1.7"
13
13
  end
@@ -25,4 +25,5 @@ task :changelog do
25
25
  sh(COMMIT_CHANGELOG_CMD)
26
26
  sh(GIT_PUSH_CMD)
27
27
  sh(OPEN_PR_CMD)
28
+ sh("git checkout master")
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stub_requests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-06 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docile