pact_broker 2.102.0 → 2.102.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
  SHA256:
3
- metadata.gz: 398f65fe7258fe0826026394bf3066bce3bfcda2662d460a0aa971e642310b16
4
- data.tar.gz: f0e2c8c038763a814075d8a1090b3dc6886ccc8cef823a75acfa1e372378f770
3
+ metadata.gz: 0ca0c487490557098ca1314f79ebe8736b1d7b72d29f5a3f48f04ad1204e81c0
4
+ data.tar.gz: f34e76335daffdff234eaad0f72c51b61080b47e4d0972be4893db97b094e80f
5
5
  SHA512:
6
- metadata.gz: 0d24a6f1cd9d2b82f237e3bd56412e73da07cd6e37b9a229fb36996a2994dafae9f8a7ec45fbd158f512e244df0403a5fa80f0edf8aae59e1b4fbf4423f9cef6
7
- data.tar.gz: b2f0bd7cdae4c7551ab6b3e28ec339d809ea98907c3dc0d1a824f054cfefef8592379d758ac3e679b0e509fffdd774cab104d882647b89fe0762e998873eb3a0
6
+ metadata.gz: d2688f72d68f644707b443bb695c8899f028a5ea4ad4ac76b8680e0409b283c7d760f4229eae4c611f3878c5f609097ffd95ed79ec55f64b6239402ffc060c98
7
+ data.tar.gz: ecf36e225ebc07860c368bbbc94a805d6ae1cacb587b36dd4344ed6b8a0038014fffc115c054f1785a7d134e940a5cab1bf6d2c36773718a581e66ab6d973b47
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v2.102.1"></a>
2
+ ### v2.102.1 (2022-07-08)
3
+
4
+ #### Bug Fixes
5
+
6
+ * ensure blank? method is defined where used ([b81b5e9b](/../../commit/b81b5e9b))
7
+
1
8
  <a name="v2.102.0"></a>
2
9
  ### v2.102.0 (2022-07-07)
3
10
 
@@ -1,11 +1,13 @@
1
1
  require "rack"
2
2
  require "pact_broker/hash_refinements"
3
+ require "pact_broker/string_refinements"
3
4
 
4
5
  module PactBroker
5
6
  module Api
6
7
  module Middleware
7
8
  class BasicAuth
8
9
  using PactBroker::HashRefinements
10
+ using PactBroker::StringRefinements
9
11
 
10
12
  def initialize(app, write_credentials, read_credentials, policy)
11
13
  @app = app
@@ -4,6 +4,7 @@ require "pact_broker/domain/index_item"
4
4
  require "pact_broker/repositories/helpers"
5
5
  require "pact_broker/index/page"
6
6
  require "pact_broker/verifications/latest_verification_for_consumer_version_tag"
7
+ require "pact_broker/string_refinements"
7
8
 
8
9
  module PactBroker
9
10
  module Index
@@ -11,6 +12,7 @@ module PactBroker
11
12
  extend PactBroker::Repositories
12
13
  extend PactBroker::Services
13
14
  extend PactBroker::Logging
15
+ using PactBroker::StringRefinements
14
16
 
15
17
  DEFAULT_PAGE_SIZE = 30
16
18
  DEFAULT_PAGE_NUMBER = 1
@@ -182,7 +184,7 @@ module PactBroker
182
184
  ))
183
185
 
184
186
  # Return early if there is no pacticipant matches the input name
185
- return base.paginate(options[:page_number] || DEFAULT_PAGE_NUMBER, options[:page_size] || DEFAULT_PAGE_SIZE) if pacticipant_ids.blank?
187
+ return base.paginate(options[:page_number] || DEFAULT_PAGE_NUMBER, options[:page_size] || DEFAULT_PAGE_SIZE) if pacticipant_ids.empty?
186
188
  end
187
189
 
188
190
  ids_query = if options[:view]
@@ -5,6 +5,7 @@ require "pact_broker/ui/controllers/matrix"
5
5
  require "pact_broker/ui/controllers/can_i_deploy"
6
6
  require "pact_broker/ui/controllers/error_test"
7
7
  require "pact_broker/ui/controllers/dashboard"
8
+ require "pact_broker/ui/helpers/haml_helpers"
8
9
  require "pact_broker/doc/controllers/app"
9
10
 
10
11
  module PactBroker
@@ -0,0 +1,10 @@
1
+ require "haml"
2
+ require "pact_broker/string_refinements"
3
+
4
+ module Haml::Helpers
5
+ using PactBroker::StringRefinements
6
+
7
+ def blank?(thing)
8
+ thing.blank?
9
+ end
10
+ end
@@ -23,10 +23,9 @@
23
23
  = provider_name
24
24
 
25
25
 
26
- - unless errors.blank?
27
- - errors.each do | error |
28
- %div.alert.alert-danger
29
- = error
26
+ - errors.each do | error |
27
+ %div.alert.alert-danger
28
+ = error
30
29
 
31
30
  - if consumer && provider
32
31
  %form
@@ -2,15 +2,14 @@
2
2
  != render :haml, :'index/_css_and_js', :layout => false
3
3
  .container
4
4
  != render :haml, :'index/_navbar', :layout => false, locals: {tag_toggle: false, base_url: base_url}
5
- - if index_items.empty? && search.blank?
5
+ - if index_items.empty? && blank?(search)
6
6
  != render :haml, :'index/_getting-started', :layout => false
7
7
  %h1.page-header
8
8
  Pacts
9
9
 
10
- - unless errors.blank?
11
- - errors.each do | error |
12
- %div.alert.alert-danger
13
- = error
10
+ - errors.each do | error |
11
+ %div.alert.alert-danger
12
+ = error
14
13
 
15
14
  %form{action: "#{base_url}"}
16
15
  .field
@@ -2,7 +2,7 @@
2
2
  != render :haml, :'index/_css_and_js', :layout => false
3
3
  .container
4
4
  != render :haml, :'index/_navbar', :layout => false, locals: {tag_toggle: true, base_url: base_url}
5
- - if index_items.empty? && search.blank?
5
+ - if index_items.empty? && blank?(search)
6
6
  != render :haml, :'index/_getting-started', :layout => false
7
7
  %h1.page-header
8
8
  Pacts
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = "2.102.0"
2
+ VERSION = "2.102.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.102.0
4
+ version: 2.102.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: 2022-07-07 00:00:00.000000000 Z
13
+ date: 2022-07-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -1002,6 +1002,7 @@ files:
1002
1002
  - lib/pact_broker/ui/controllers/index.rb
1003
1003
  - lib/pact_broker/ui/controllers/matrix.rb
1004
1004
  - lib/pact_broker/ui/controllers/pacts.rb
1005
+ - lib/pact_broker/ui/helpers/haml_helpers.rb
1005
1006
  - lib/pact_broker/ui/helpers/matrix_helper.rb
1006
1007
  - lib/pact_broker/ui/helpers/url_helper.rb
1007
1008
  - lib/pact_broker/ui/view_models/clusters.rb