pact_broker 0.0.2 → 0.0.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.
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
pact_broker (0.0.
|
|
4
|
+
pact_broker (0.0.3)
|
|
5
5
|
httparty
|
|
6
6
|
json
|
|
7
7
|
roar
|
|
@@ -50,7 +50,7 @@ GEM
|
|
|
50
50
|
multi_xml (>= 0.5.2)
|
|
51
51
|
json (1.8.1)
|
|
52
52
|
method_source (0.8.2)
|
|
53
|
-
mini_portile (0.5.
|
|
53
|
+
mini_portile (0.5.2)
|
|
54
54
|
multi_json (1.8.2)
|
|
55
55
|
multi_xml (0.5.5)
|
|
56
56
|
nokogiri (1.6.0)
|
|
@@ -81,7 +81,7 @@ GEM
|
|
|
81
81
|
rspec-fire (1.2.0)
|
|
82
82
|
rspec (~> 2.11)
|
|
83
83
|
rspec-mocks (2.14.4)
|
|
84
|
-
sequel (4.
|
|
84
|
+
sequel (4.4.0)
|
|
85
85
|
shotgun (0.9)
|
|
86
86
|
rack (>= 1.0)
|
|
87
87
|
simplecov (0.7.1)
|
|
@@ -99,7 +99,7 @@ GEM
|
|
|
99
99
|
rack-test
|
|
100
100
|
sinatra (~> 1.4.0)
|
|
101
101
|
tilt (~> 1.3)
|
|
102
|
-
sinatra-param (0.
|
|
102
|
+
sinatra-param (1.0.0)
|
|
103
103
|
sinatra (~> 1.3)
|
|
104
104
|
slop (3.4.6)
|
|
105
105
|
sqlite3 (1.3.8)
|
|
@@ -17,7 +17,7 @@ module PactBroker
|
|
|
17
17
|
join(:pacticipants, {:id => :provider_id}, {:table_alias => :providers, implicit_qualifier: :pacts}).
|
|
18
18
|
where('providers.name = ?', provider_name).
|
|
19
19
|
where('consumers.name = ?', consumer_name).
|
|
20
|
-
order(
|
|
20
|
+
order(:versions_id).
|
|
21
21
|
last
|
|
22
22
|
end
|
|
23
23
|
|
data/lib/pact_broker/version.rb
CHANGED
|
@@ -3,6 +3,7 @@ require 'pact/provider/rspec'
|
|
|
3
3
|
require 'sequel'
|
|
4
4
|
require 'pact_broker/db'
|
|
5
5
|
require 'pact_broker/api'
|
|
6
|
+
require 'uri'
|
|
6
7
|
require_relative 'provider_states_for_pact_broker_client'
|
|
7
8
|
|
|
8
9
|
Sequel.extension :migration
|
|
@@ -31,8 +32,16 @@ end
|
|
|
31
32
|
Pact.service_provider "Pact Broker" do
|
|
32
33
|
app { PactBroker::API.new }
|
|
33
34
|
|
|
34
|
-
honours_pact_with "Pact Broker Client" do
|
|
35
|
-
|
|
35
|
+
# honours_pact_with "Pact Broker Client" do
|
|
36
|
+
# pact_uri "../pact_broker-client/spec/pacts/pact_broker_client-pact_broker.json"
|
|
37
|
+
# end
|
|
38
|
+
|
|
39
|
+
honours_pact_with "Pact Broker Client", :ref => :head do
|
|
40
|
+
pact_uri URI.encode("http://rea-pact-broker.biq.vpc.realestate.com.au/pacticipants/Pact Broker Client/versions/last/pacts/Pact Broker")
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
honours_pact_with "Pact Broker Client", :ref => :prod do
|
|
44
|
+
pact_uri URI.encode("http://rea-pact-broker.biq.vpc.realestate.com.au/pacticipants/Pact Broker Client/versions/last/pacts/Pact Broker?tag=prod")
|
|
36
45
|
end
|
|
37
46
|
|
|
38
47
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pact_broker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2013-11-
|
|
14
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: httparty
|
|
@@ -346,7 +346,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
346
346
|
version: '0'
|
|
347
347
|
segments:
|
|
348
348
|
- 0
|
|
349
|
-
hash:
|
|
349
|
+
hash: 2721319471256420459
|
|
350
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
351
|
none: false
|
|
352
352
|
requirements:
|
|
@@ -355,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
355
355
|
version: '0'
|
|
356
356
|
segments:
|
|
357
357
|
- 0
|
|
358
|
-
hash:
|
|
358
|
+
hash: 2721319471256420459
|
|
359
359
|
requirements: []
|
|
360
360
|
rubyforge_project:
|
|
361
361
|
rubygems_version: 1.8.23
|