pact_broker 2.16.0 → 2.16.1

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: '08afc57ea5d32509b4533f1667506bf2225d1d68'
4
- data.tar.gz: e1a451ae25b6e50d1f5839aa4ff25990f3d9e112
3
+ metadata.gz: c6d42dce83b4aaa14296c6a4121ca30a2490601d
4
+ data.tar.gz: 2ba4c1581817b500fd971a3828582e97a4957542
5
5
  SHA512:
6
- metadata.gz: 02b6ebf75e3840706d78a435a241da778d4155fe469431c9f670c55780ca7c338c0ec7c937c353d65359aa477ebeb589690d300cb3f1c235055584c80b7abe05
7
- data.tar.gz: 7810448e6235d088de9c4646b74b895de50f23d8b87ad8841e7e22e098d4745d006ed01d85c6e574ccaa0d496e6ea2fa6bb83c7f38643285c3e419524d512c09
6
+ metadata.gz: c2ea3e29cdcdbbc7c9317550824ecb8a908476888b591d299269414d4a6286fb8e52585ad21f2893a88a5e49f40b6b8c150c578d40a92fbf8519c2743afa710d
7
+ data.tar.gz: af24759022fc72eee95eef7840cfb123af22d37f7c3a183af985391b0b0c2632f310eafe92f881b8a59517ee0b0b358b22512455078898e82c879ad951ee8e72
data/CHANGELOG.md CHANGED
@@ -1,7 +1,16 @@
1
+ <a name="v2.16.1"></a>
2
+ ### v2.16.1 (2018-03-08)
3
+
4
+
5
+ #### Features
6
+
7
+ * turn off sinatra show_exceptions when rack_env is production ([e961afe](/../../commit/e961afe))
8
+ * add error testing endpoints ([4e01407](/../../commit/4e01407))
9
+
10
+
1
11
  <a name="v2.16.0"></a>
2
12
  ### v2.16.0 (2018-03-05)
3
13
 
4
-
5
14
  #### Features
6
15
 
7
16
  * upgrade haml to 5.0 ([4415686](/../../commit/4415686))
@@ -9,8 +18,6 @@
9
18
  * abbreviate git shas in index and matrix UIs ([9a21e10](/../../commit/9a21e10))
10
19
  * add latest provider version tag names to dashboard UI ([de179d7](/../../commit/de179d7))
11
20
  * created dashboard API ([044bab7](/../../commit/044bab7))
12
- * allow database to have missing migration files so that we can deploy branches with different migrations to the same database ([c9fe988](/../../commit/c9fe988))
13
- * add dius logo to new index view with tags ([8a4e727](/../../commit/8a4e727))
14
21
 
15
22
  * **matrix**
16
23
  * make index refresh happen synchronously to prevent data corruption ([acd64e6](/../../commit/acd64e6))
@@ -40,7 +47,6 @@
40
47
  * include verification tags ([e8d0fae](/../../commit/e8d0fae))
41
48
  * add pact tags ([0c79440](/../../commit/0c79440))
42
49
 
43
-
44
50
  #### Bug Fixes
45
51
 
46
52
  * **matrix**
@@ -50,11 +56,9 @@
50
56
  * **matrix ui**
51
57
  * fix provider version sorting ([611ab7e](/../../commit/611ab7e))
52
58
 
53
-
54
59
  <a name="v2.15.0"></a>
55
60
  ### v2.15.0 (2018-02-26)
56
61
 
57
-
58
62
  #### Features
59
63
 
60
64
  * upgrade to latest versions of padrino-core and sinatra to fix CVE-2018-7212 ([08ba1cb](/../../commit/08ba1cb))
@@ -65,11 +69,9 @@
65
69
  * **ssl**
66
70
  * allow single certificates to be uploaded ([9417f10](/../../commit/9417f10))
67
71
 
68
-
69
72
  <a name="v2.14.0"></a>
70
73
  ### v2.14.0 (2018-02-15)
71
74
 
72
-
73
75
  #### Features
74
76
 
75
77
  * **matrix ui**
@@ -82,7 +84,6 @@
82
84
  * add endpoints to get latest pacticipant version and latest tagged version ([aa60a85](/../../commit/aa60a85))
83
85
  * elegantly handle long service names in index. ([ad8da50](/../../commit/ad8da50))
84
86
 
85
-
86
87
  #### Bug Fixes
87
88
 
88
89
  * return overwritten pact publication as latest if non exists as a latest version when rendering verification ([8217209](/../../commit/8217209))
@@ -93,20 +94,16 @@
93
94
  * **matrix badge**
94
95
  * correct status of pact when consumer and provider version tags are specified ([0eb7429](/../../commit/0eb7429))
95
96
 
96
-
97
97
  <a name="v2.13.1"></a>
98
98
  ### v2.13.1 (2018-01-12)
99
99
 
100
-
101
100
  #### Features
102
101
 
103
102
  * remove runtime dependency on webrick ([1ae7a6e](/../../commit/1ae7a6e))
104
103
 
105
-
106
104
  <a name="v2.13.0"></a>
107
105
  ### v2.13.0 (2018-01-11)
108
106
 
109
-
110
107
  #### Features
111
108
 
112
109
  * ensure latest pact version is returned when searching by pact version sha ([1d2adc6](/../../commit/1d2adc6))
@@ -134,12 +131,10 @@
134
131
  * **publish test result**
135
132
  * allow json test results to be published with the verification result ([528034c](/../../commit/528034c))
136
133
 
137
-
138
134
  #### Bug Fixes
139
135
 
140
136
  * create selector objects when viewing matrix URL with consumer and provider ([e733bae](/../../commit/e733bae))
141
137
 
142
-
143
138
  <a name="v2.12.0"></a>
144
139
  ### v2.12.0 (2017-11-29)
145
140
 
@@ -153,7 +148,6 @@
153
148
  <a name="v2.10.0"></a>
154
149
  ### v2.10.0 (2017-11-11)
155
150
 
156
-
157
151
  #### Features
158
152
 
159
153
  * **prod pacts in index**
@@ -164,7 +158,6 @@
164
158
  * **index page**
165
159
  * truncate git shas in table ([94da4c7](/../../commit/94da4c7))
166
160
 
167
-
168
161
  <a name="v2.9.0"></a>
169
162
  ### v2.9.0 (2017-11-09)
170
163
 
@@ -277,13 +270,11 @@
277
270
  <a name="v2.5.1"></a>
278
271
  ### v2.5.1 (2017-09-26)
279
272
 
280
-
281
273
  #### Bug Fixes
282
274
 
283
275
  * **badges**
284
276
  * do not allow caching ([d7e73c3](/../../commit/d7e73c3))
285
277
 
286
-
287
278
  <a name="v2.5.0"></a>
288
279
  ### v2.5.0 (2017-09-25)
289
280
 
@@ -707,7 +698,6 @@
707
698
  * 8001792 - Added HAL browser (Beth, Wed Apr 23 13:31:25 2014 +1000)
708
699
  * 8c94d1f - Creating example app (Beth, Wed Apr 23 13:06:40 2014 +1000)
709
700
 
710
-
711
701
  #### 0.0.10 (2014-06-06)
712
702
 
713
703
  * 24daeea - Added task to delete pacticipant (bethesque Tue May 20 11:59:10 2014 +1000)
@@ -761,7 +751,6 @@
761
751
  * 5621e41 - Beginning change from Roar Representor to Decoractor. Updating to new 'latest pact' URL (bethesque 2 days ago)
762
752
  * d1bd995 - Adding missing PactBroker::Logging require (bethesque 2 days ago)
763
753
 
764
-
765
754
  #### 0.0.5 (2013-11-13)
766
755
 
767
756
  * 2cf987c - Added data migration to script which adds order column (bethesque 56 minutes ago)
@@ -67,6 +67,7 @@ module PactBroker
67
67
  add ['matrix'], Api::Resources::Matrix, {resource_name: "matrix"}
68
68
 
69
69
  add ['dashboard'], Api::Resources::Dashboard, {resource_name: "dashboard"}
70
+ add ['test','error'], Api::Resources::ErrorTest, {resource_name: "error_test"}
70
71
  add [], Api::Resources::Index, {resource_name: "index"}
71
72
  end
72
73
  end
@@ -0,0 +1,36 @@
1
+ require 'pact_broker/api/resources/base_resource'
2
+ require 'pact_broker/error'
3
+
4
+ module PactBroker
5
+ module Api
6
+ module Resources
7
+
8
+ class ErrorTest < BaseResource
9
+
10
+ def content_types_provided
11
+ [
12
+ ["application/hal+json", :to_json]
13
+ ]
14
+ end
15
+
16
+ def content_types_accepted
17
+ [
18
+ ["application/hal+json", :from_json]
19
+ ]
20
+ end
21
+
22
+ def allowed_methods
23
+ ["GET", "POST"]
24
+ end
25
+
26
+ def to_json
27
+ raise PactBroker::Error.new("Don't panic. This is a test API error.")
28
+ end
29
+
30
+ def from_json
31
+ raise PactBroker::Error.new("Don't panic. This is a test API error.")
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -1,9 +1,9 @@
1
1
  require 'pact_broker/ui/controllers/index'
2
2
  require 'pact_broker/ui/controllers/groups'
3
3
  require 'pact_broker/ui/controllers/matrix'
4
+ require 'pact_broker/ui/controllers/error_test'
4
5
  require 'pact_broker/doc/controllers/app'
5
6
 
6
-
7
7
  module PactBroker
8
8
  module UI
9
9
  class PathInfoFixer
@@ -41,6 +41,11 @@ module PactBroker
41
41
  run PactBroker::UI::Controllers::Matrix
42
42
  end
43
43
 
44
+ map "/test/error" do
45
+ use PathInfoFixer
46
+ run PactBroker::UI::Controllers::ErrorTest
47
+ end
48
+
44
49
  map "/" do
45
50
  run PactBroker::UI::Controllers::Index
46
51
  end
@@ -8,7 +8,7 @@ module PactBroker
8
8
  class Base < Padrino::Application
9
9
 
10
10
  set :root, File.join(File.dirname(__FILE__), '..')
11
- set :show_exceptions, true
11
+ set :show_exceptions, ENV['RACK_ENV'] != 'production'
12
12
 
13
13
  end
14
14
  end
@@ -0,0 +1,18 @@
1
+ require 'pact_broker/ui/controllers/base_controller'
2
+ require 'pact_broker/logging'
3
+ require 'pact_broker/error'
4
+
5
+ module PactBroker
6
+ module UI
7
+ module Controllers
8
+ class ErrorTest < Base
9
+ include PactBroker::Services
10
+ include PactBroker::Logging
11
+
12
+ get "/" do
13
+ raise PactBroker::Error.new("Don't panic. This is a test UI error.")
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = '2.16.0'
2
+ VERSION = '2.16.1'
3
3
  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: 2.16.0
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bethany Skurrie
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-03-07 00:00:00.000000000 Z
13
+ date: 2018-03-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -714,6 +714,7 @@ files:
714
714
  - lib/pact_broker/api/resources/badge.rb
715
715
  - lib/pact_broker/api/resources/base_resource.rb
716
716
  - lib/pact_broker/api/resources/dashboard.rb
717
+ - lib/pact_broker/api/resources/error_test.rb
717
718
  - lib/pact_broker/api/resources/group.rb
718
719
  - lib/pact_broker/api/resources/index.rb
719
720
  - lib/pact_broker/api/resources/label.rb
@@ -840,6 +841,7 @@ files:
840
841
  - lib/pact_broker/ui/app.rb
841
842
  - lib/pact_broker/ui/controllers/base_controller.rb
842
843
  - lib/pact_broker/ui/controllers/clusters.rb
844
+ - lib/pact_broker/ui/controllers/error_test.rb
843
845
  - lib/pact_broker/ui/controllers/groups.rb
844
846
  - lib/pact_broker/ui/controllers/index.rb
845
847
  - lib/pact_broker/ui/controllers/matrix.rb