pact_broker-client 1.76.1 → 1.77.0

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: 3ba8a36ef12a731a17e237202de9fa3dc360f61799b395450f0ba02ecc1189ef
4
- data.tar.gz: d2885db7e9aff85730cf0756bb53529f6f4643b0ae4ea818ad1b6226262227ff
3
+ metadata.gz: c967e70badf0e2634f5ca4013fa85fb4f079a14b8862c79186c7ec2785c3ca64
4
+ data.tar.gz: 37caa5d0ec3b19a0a6cf26c9fc6bef0b5a220c2484353fd71ad9320c17e65281
5
5
  SHA512:
6
- metadata.gz: 95f96215e9736915c0f8eff7444612d9ae8172dfcbb8eff3c567b91837153590376506357bc29d7d78d6c235bb40f21b5643ea08de87dfd6a2227ecc2b4601a2
7
- data.tar.gz: 2131968ab5b1f6efe8e3940457b353b023d5f817627f757b6ecbc3e67bbc3fbee45c7bef08cba9dc08bde25c147d416269c5eb1626f81caf2e566094170fd21e
6
+ metadata.gz: 8790b48db58649026ea18338a0b7e09965199ddfddb66c1f57ae5069d575d905972458710035c5419af265b0652905e7fba89ccdeb7a65f75cab9bc444e27541
7
+ data.tar.gz: a6d2bd3713df1b097e82befffa4b2e13e7cc9c3a13170aec55e339734187b7b2bf9157521eb426c2530a6dffdc19b164552dfc9dcbbccd4d34310b304a68180f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ <a name="v1.77.0"></a>
2
+ ### v1.77.0 (2024-10-08)
3
+
4
+ #### Features
5
+
6
+ * support --ignore flag in can-i-merge command ([1349bd0](/../../commit/1349bd0))
7
+
8
+ <a name="v1.76.2"></a>
9
+ ### v1.76.2 (2024-10-13)
10
+
11
+ #### Bug Fixes
12
+
13
+ * Add dependency of ostruct to gem, to fix warning ostruct was loaded ([eb61c27](/../../commit/eb61c27))
14
+ * Dockerfile to reduce vulnerabilities (#172) ([79482c2](/../../commit/79482c2))
15
+
1
16
  <a name="v1.76.1"></a>
2
17
  ### v1.76.1 (2024-08-21)
3
18
 
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:3.2-alpine
1
+ FROM ruby:3.3.5-alpine
2
2
 
3
3
  RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing hub
4
4
  RUN apk add --update --no-cache git openssh bash
data/README.md CHANGED
@@ -66,7 +66,7 @@ Options:
66
66
  # The consumer application version
67
67
  -h, [--branch=BRANCH]
68
68
  # Repository branch of the consumer version
69
- -r, [--auto-detect-version-properties], [--no-auto-detect-version-properties]
69
+ -r, [--auto-detect-version-properties], [--no-auto-detect-version-properties], [--skip-auto-detect-version-properties]
70
70
  # Automatically detect the repository commit, branch and build
71
71
  URL from known CI environment variables or git CLI. Supports
72
72
  Buildkite, Circle CI, Travis CI, GitHub Actions, Jenkins,
@@ -75,7 +75,7 @@ Options:
75
75
  -t, [--tag=TAG]
76
76
  # Tag name for consumer version. Can be specified multiple
77
77
  times.
78
- -g, [--tag-with-git-branch], [--no-tag-with-git-branch]
78
+ -g, [--tag-with-git-branch], [--no-tag-with-git-branch], [--skip-tag-with-git-branch]
79
79
  # Tag consumer version with the name of the current git branch.
80
80
  Supports Buildkite, Circle CI, Travis CI, GitHub Actions,
81
81
  Jenkins, Hudson, AppVeyor, GitLab, CodeShip, Bitbucket and
@@ -83,7 +83,7 @@ Options:
83
83
  # Default: false
84
84
  [--build-url=BUILD_URL]
85
85
  # The build URL that created the pact
86
- [--merge], [--no-merge]
86
+ [--merge], [--no-merge], [--skip-merge]
87
87
  # If a pact already exists for this consumer version and
88
88
  provider, merge the contents. Useful when running Pact tests
89
89
  concurrently on different build nodes.
@@ -99,7 +99,7 @@ Options:
99
99
  # Pact Broker basic auth password
100
100
  -k, [--broker-token=BROKER_TOKEN]
101
101
  # Pact Broker bearer token
102
- -v, [--verbose], [--no-verbose]
102
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
103
103
  # Verbose output.
104
104
  # Default: false
105
105
  ```
@@ -121,7 +121,7 @@ Options:
121
121
  # Pact Broker basic auth password
122
122
  -k, [--broker-token=BROKER_TOKEN]
123
123
  # Pact Broker bearer token
124
- -v, [--verbose], [--no-verbose]
124
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
125
125
  # Verbose output.
126
126
  # Default: false
127
127
  -o, [--output=OUTPUT]
@@ -145,7 +145,7 @@ Options:
145
145
  deployment code
146
146
  [--display-name=DISPLAY_NAME]
147
147
  # The display name of the environment
148
- [--production], [--no-production]
148
+ [--production], [--no-production], [--skip-production]
149
149
  # Whether or not this environment is a production environment.
150
150
  This is currently informational only.
151
151
  # Default: false
@@ -165,7 +165,7 @@ Options:
165
165
  # Pact Broker basic auth password
166
166
  -k, [--broker-token=BROKER_TOKEN]
167
167
  # Pact Broker bearer token
168
- -v, [--verbose], [--no-verbose]
168
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
169
169
  # Verbose output.
170
170
  # Default: false
171
171
  ```
@@ -186,7 +186,7 @@ Options:
186
186
  deployment code
187
187
  [--display-name=DISPLAY_NAME]
188
188
  # The display name of the environment
189
- [--production], [--no-production]
189
+ [--production], [--no-production], [--skip-production]
190
190
  # Whether or not this environment is a production environment.
191
191
  This is currently informational only.
192
192
  # Default: false
@@ -206,7 +206,7 @@ Options:
206
206
  # Pact Broker basic auth password
207
207
  -k, [--broker-token=BROKER_TOKEN]
208
208
  # Pact Broker bearer token
209
- -v, [--verbose], [--no-verbose]
209
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
210
210
  # Verbose output.
211
211
  # Default: false
212
212
  ```
@@ -233,7 +233,7 @@ Options:
233
233
  # Pact Broker basic auth password
234
234
  -k, [--broker-token=BROKER_TOKEN]
235
235
  # Pact Broker bearer token
236
- -v, [--verbose], [--no-verbose]
236
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
237
237
  # Verbose output.
238
238
  # Default: false
239
239
  ```
@@ -260,7 +260,7 @@ Options:
260
260
  # Pact Broker basic auth password
261
261
  -k, [--broker-token=BROKER_TOKEN]
262
262
  # Pact Broker bearer token
263
- -v, [--verbose], [--no-verbose]
263
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
264
264
  # Verbose output.
265
265
  # Default: false
266
266
  ```
@@ -285,7 +285,7 @@ Options:
285
285
  # Pact Broker basic auth password
286
286
  -k, [--broker-token=BROKER_TOKEN]
287
287
  # Pact Broker bearer token
288
- -v, [--verbose], [--no-verbose]
288
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
289
289
  # Verbose output.
290
290
  # Default: false
291
291
  ```
@@ -327,7 +327,7 @@ Options:
327
327
  # Pact Broker basic auth password
328
328
  -k, [--broker-token=BROKER_TOKEN]
329
329
  # Pact Broker bearer token
330
- -v, [--verbose], [--no-verbose]
330
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
331
331
  # Verbose output.
332
332
  # Default: false
333
333
  ```
@@ -368,7 +368,7 @@ Options:
368
368
  # Pact Broker basic auth password
369
369
  -k, [--broker-token=BROKER_TOKEN]
370
370
  # Pact Broker bearer token
371
- -v, [--verbose], [--no-verbose]
371
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
372
372
  # Verbose output.
373
373
  # Default: false
374
374
  ```
@@ -405,7 +405,7 @@ Options:
405
405
  # Pact Broker basic auth password
406
406
  -k, [--broker-token=BROKER_TOKEN]
407
407
  # Pact Broker bearer token
408
- -v, [--verbose], [--no-verbose]
408
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
409
409
  # Verbose output.
410
410
  # Default: false
411
411
  ```
@@ -436,7 +436,7 @@ Options:
436
436
  # Pact Broker basic auth password
437
437
  -k, [--broker-token=BROKER_TOKEN]
438
438
  # Pact Broker bearer token
439
- -v, [--verbose], [--no-verbose]
439
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
440
440
  # Verbose output.
441
441
  # Default: false
442
442
  ```
@@ -471,7 +471,7 @@ Options:
471
471
  [--branch=BRANCH]
472
472
  # The branch of the version for which you want to check the
473
473
  verification results.
474
- [--main-branch], [--no-main-branch]
474
+ [--main-branch], [--no-main-branch], [--skip-main-branch]
475
475
  # Use the latest version of the configured main branch of the
476
476
  pacticipant as the version for which you want to check the
477
477
  verification results
@@ -495,7 +495,7 @@ Options:
495
495
  # The time between retries in seconds. Use in conjuction with
496
496
  --retry-while-unknown
497
497
  # Default: 10
498
- [--dry-run], [--no-dry-run]
498
+ [--dry-run], [--no-dry-run], [--skip-dry-run]
499
499
  # When dry-run is enabled, always exit process with a success
500
500
  code. Can also be enabled by setting the environment variable
501
501
  PACT_BROKER_CAN_I_DEPLOY_DRY_RUN=true. This mode is useful when
@@ -514,7 +514,7 @@ Options:
514
514
  # Pact Broker basic auth password
515
515
  -k, [--broker-token=BROKER_TOKEN]
516
516
  # Pact Broker bearer token
517
- -v, [--verbose], [--no-verbose]
517
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
518
518
  # Verbose output.
519
519
  # Default: false
520
520
  ```
@@ -572,6 +572,13 @@ Options:
572
572
  -e, [--version=VERSION]
573
573
  # The pacticipant version. Must be entered after the
574
574
  --pacticipant that it relates to.
575
+ [--ignore=PACTICIPANT]
576
+ # The pacticipant name to ignore. Use once for each pacticipant
577
+ being ignored. A specific version can be ignored by also
578
+ specifying a --version after the pacticipant name option. The
579
+ environment variable PACT_BROKER_CAN_I_MERGE_IGNORE may also be
580
+ used to specify a pacticipant name to ignore, with commas to
581
+ separate multiple pacticipant names if necessary.
575
582
  -o, [--output=OUTPUT]
576
583
  # json or table
577
584
  # Default: table
@@ -584,7 +591,7 @@ Options:
584
591
  # The time between retries in seconds. Use in conjuction with
585
592
  --retry-while-unknown
586
593
  # Default: 10
587
- [--dry-run], [--no-dry-run]
594
+ [--dry-run], [--no-dry-run], [--skip-dry-run]
588
595
  # When dry-run is enabled, always exit process with a success
589
596
  code. Can also be enabled by setting the environment variable
590
597
  PACT_BROKER_CAN_I_MERGE_DRY_RUN=true. This mode is useful when
@@ -603,7 +610,7 @@ Options:
603
610
  # Pact Broker basic auth password
604
611
  -k, [--broker-token=BROKER_TOKEN]
605
612
  # Pact Broker bearer token
606
- -v, [--verbose], [--no-verbose]
613
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
607
614
  # Verbose output.
608
615
  # Default: false
609
616
  ```
@@ -639,7 +646,7 @@ Options:
639
646
  # Pact Broker basic auth password
640
647
  -k, [--broker-token=BROKER_TOKEN]
641
648
  # Pact Broker bearer token
642
- -v, [--verbose], [--no-verbose]
649
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
643
650
  # Verbose output.
644
651
  # Default: false
645
652
  ```
@@ -666,7 +673,7 @@ Options:
666
673
  # Pact Broker basic auth password
667
674
  -k, [--broker-token=BROKER_TOKEN]
668
675
  # Pact Broker bearer token
669
- -v, [--verbose], [--no-verbose]
676
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
670
677
  # Verbose output.
671
678
  # Default: false
672
679
  ```
@@ -691,7 +698,7 @@ Options:
691
698
  # Pact Broker basic auth password
692
699
  -k, [--broker-token=BROKER_TOKEN]
693
700
  # Pact Broker bearer token
694
- -v, [--verbose], [--no-verbose]
701
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
695
702
  # Verbose output.
696
703
  # Default: false
697
704
  ```
@@ -727,20 +734,20 @@ Options:
727
734
  # Provider label, mutually exclusive with provider name
728
735
  [--description=DESCRIPTION]
729
736
  # Webhook description
730
- [--contract-content-changed], [--no-contract-content-changed]
737
+ [--contract-content-changed], [--no-contract-content-changed], [--skip-contract-content-changed]
731
738
  # Trigger this webhook when the pact content changes
732
- [--contract-published], [--no-contract-published]
739
+ [--contract-published], [--no-contract-published], [--skip-contract-published]
733
740
  # Trigger this webhook when a pact is published
734
- [--provider-verification-published], [--no-provider-verification-published]
741
+ [--provider-verification-published], [--no-provider-verification-published], [--skip-provider-verification-published]
735
742
  # Trigger this webhook when a provider verification result is
736
743
  published
737
- [--provider-verification-failed], [--no-provider-verification-failed]
744
+ [--provider-verification-failed], [--no-provider-verification-failed], [--skip-provider-verification-failed]
738
745
  # Trigger this webhook when a failed provider verification
739
746
  result is published
740
- [--provider-verification-succeeded], [--no-provider-verification-succeeded]
747
+ [--provider-verification-succeeded], [--no-provider-verification-succeeded], [--skip-provider-verification-succeeded]
741
748
  # Trigger this webhook when a successful provider verification
742
749
  result is published
743
- [--contract-requiring-verification-published], [--no-contract-requiring-verification-published]
750
+ [--contract-requiring-verification-published], [--no-contract-requiring-verification-published], [--skip-contract-requiring-verification-published]
744
751
  # Trigger this webhook when a contract is published that
745
752
  requires verification
746
753
  [--team-uuid=UUID]
@@ -754,7 +761,7 @@ Options:
754
761
  # Pact Broker basic auth password
755
762
  -k, [--broker-token=BROKER_TOKEN]
756
763
  # Pact Broker bearer token
757
- -v, [--verbose], [--no-verbose]
764
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
758
765
  # Verbose output.
759
766
  # Default: false
760
767
  ```
@@ -793,20 +800,20 @@ Options:
793
800
  # Provider label, mutually exclusive with provider name
794
801
  [--description=DESCRIPTION]
795
802
  # Webhook description
796
- [--contract-content-changed], [--no-contract-content-changed]
803
+ [--contract-content-changed], [--no-contract-content-changed], [--skip-contract-content-changed]
797
804
  # Trigger this webhook when the pact content changes
798
- [--contract-published], [--no-contract-published]
805
+ [--contract-published], [--no-contract-published], [--skip-contract-published]
799
806
  # Trigger this webhook when a pact is published
800
- [--provider-verification-published], [--no-provider-verification-published]
807
+ [--provider-verification-published], [--no-provider-verification-published], [--skip-provider-verification-published]
801
808
  # Trigger this webhook when a provider verification result is
802
809
  published
803
- [--provider-verification-failed], [--no-provider-verification-failed]
810
+ [--provider-verification-failed], [--no-provider-verification-failed], [--skip-provider-verification-failed]
804
811
  # Trigger this webhook when a failed provider verification
805
812
  result is published
806
- [--provider-verification-succeeded], [--no-provider-verification-succeeded]
813
+ [--provider-verification-succeeded], [--no-provider-verification-succeeded], [--skip-provider-verification-succeeded]
807
814
  # Trigger this webhook when a successful provider verification
808
815
  result is published
809
- [--contract-requiring-verification-published], [--no-contract-requiring-verification-published]
816
+ [--contract-requiring-verification-published], [--no-contract-requiring-verification-published], [--skip-contract-requiring-verification-published]
810
817
  # Trigger this webhook when a contract is published that
811
818
  requires verification
812
819
  [--team-uuid=UUID]
@@ -820,7 +827,7 @@ Options:
820
827
  # Pact Broker basic auth password
821
828
  -k, [--broker-token=BROKER_TOKEN]
822
829
  # Pact Broker bearer token
823
- -v, [--verbose], [--no-verbose]
830
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
824
831
  # Verbose output.
825
832
  # Default: false
826
833
  --uuid=UUID
@@ -852,7 +859,7 @@ Options:
852
859
  # Pact Broker basic auth password
853
860
  -k, [--broker-token=BROKER_TOKEN]
854
861
  # Pact Broker bearer token
855
- -v, [--verbose], [--no-verbose]
862
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
856
863
  # Verbose output.
857
864
  # Default: false
858
865
  ```
@@ -872,7 +879,7 @@ Options:
872
879
  # The name of the pacticipant that the branch belongs to.
873
880
  --branch=BRANCH
874
881
  # The pacticipant branch name.
875
- [--error-when-not-found], [--no-error-when-not-found]
882
+ [--error-when-not-found], [--no-error-when-not-found], [--skip-error-when-not-found]
876
883
  # Raise an error if the branch that is to be deleted is not
877
884
  found.
878
885
  # Default: true
@@ -884,7 +891,7 @@ Options:
884
891
  # Pact Broker basic auth password
885
892
  -k, [--broker-token=BROKER_TOKEN]
886
893
  # Pact Broker bearer token
887
- -v, [--verbose], [--no-verbose]
894
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
888
895
  # Verbose output.
889
896
  # Default: false
890
897
  ```
@@ -907,11 +914,11 @@ Options:
907
914
  -t, [--tag=TAG]
908
915
  # Tag name for pacticipant version. Can be specified multiple
909
916
  times.
910
- [--auto-create-version], [--no-auto-create-version]
917
+ [--auto-create-version], [--no-auto-create-version], [--skip-auto-create-version]
911
918
  # Automatically create the pacticipant version if it does not
912
919
  exist.
913
920
  # Default: false
914
- -g, [--tag-with-git-branch], [--no-tag-with-git-branch]
921
+ -g, [--tag-with-git-branch], [--no-tag-with-git-branch], [--skip-tag-with-git-branch]
915
922
  # Tag pacticipant version with the name of the current git
916
923
  branch.
917
924
  # Default: false
@@ -923,7 +930,7 @@ Options:
923
930
  # Pact Broker basic auth password
924
931
  -k, [--broker-token=BROKER_TOKEN]
925
932
  # Pact Broker bearer token
926
- -v, [--verbose], [--no-verbose]
933
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
927
934
  # Verbose output.
928
935
  # Default: false
929
936
  ```
@@ -957,7 +964,7 @@ Options:
957
964
  # Pact Broker basic auth password
958
965
  -k, [--broker-token=BROKER_TOKEN]
959
966
  # Pact Broker bearer token
960
- -v, [--verbose], [--no-verbose]
967
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
961
968
  # Verbose output.
962
969
  # Default: false
963
970
  ```
@@ -988,7 +995,7 @@ Options:
988
995
  # Pact Broker basic auth password
989
996
  -k, [--broker-token=BROKER_TOKEN]
990
997
  # Pact Broker bearer token
991
- -v, [--verbose], [--no-verbose]
998
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
992
999
  # Verbose output.
993
1000
  # Default: false
994
1001
  -o, [--output=OUTPUT]
@@ -1034,7 +1041,7 @@ Options:
1034
1041
  # Default: oas
1035
1042
  [--content-type=CONTENT_TYPE]
1036
1043
  # The content type. eg. application/yml
1037
- [--verification-success], [--no-verification-success]
1044
+ [--verification-success], [--no-verification-success], [--skip-verification-success]
1038
1045
  # Whether or not the self verification passed successfully.
1039
1046
  [--verification-exit-code=N]
1040
1047
  # The exit code of the verification process. Can be used instead
@@ -1065,7 +1072,7 @@ Options:
1065
1072
  # Pact Broker basic auth password
1066
1073
  -k, [--broker-token=BROKER_TOKEN]
1067
1074
  # Pact Broker bearer token
1068
- -v, [--verbose], [--no-verbose]
1075
+ -v, [--verbose], [--no-verbose], [--skip-verbose]
1069
1076
  # Verbose output.
1070
1077
  # Default: false
1071
1078
  ```
@@ -48,6 +48,7 @@ module PactBroker
48
48
  long_desc "Checks if the specified pacticipant version is compatible with the configured main branch of each of the pacticipants with which it is integrated."
49
49
  method_option :pacticipant, required: true, aliases: "-a", desc: "The pacticipant name. Use once for each pacticipant being checked."
50
50
  method_option :version, required: false, aliases: "-e", desc: "The pacticipant version. Must be entered after the --pacticipant that it relates to."
51
+ method_option :ignore, required: false, banner: "PACTICIPANT", desc: "The pacticipant name to ignore. Use once for each pacticipant being ignored. A specific version can be ignored by also specifying a --version after the pacticipant name option. The environment variable PACT_BROKER_CAN_I_MERGE_IGNORE may also be used to specify a pacticipant name to ignore, with commas to separate multiple pacticipant names if necessary."
51
52
  method_option :output, aliases: "-o", desc: "json or table", default: "table"
52
53
  method_option :retry_while_unknown, banner: "TIMES", type: :numeric, default: 0, required: false, desc: "The number of times to retry while there is an unknown verification result (ie. the provider verification is likely still running)"
53
54
  method_option :retry_interval, banner: "SECONDS", type: :numeric, default: 10, required: false, desc: "The time between retries in seconds. Use in conjuction with --retry-while-unknown"
@@ -59,11 +60,12 @@ module PactBroker
59
60
  require "pact_broker/client/can_i_deploy"
60
61
 
61
62
  validate_credentials
62
- selectors = VersionSelectorOptionsParser.call(ARGV)
63
+ selectors = VersionSelectorOptionsParser.call(ARGV).select { |s| !s[:ignore] }
64
+ ignore_selectors = VersionSelectorOptionsParser.call(ARGV).select { |s| s[:ignore] } + ignore_merge_selectors_from_environment_variable
63
65
  validate_can_i_deploy_selectors(selectors)
64
66
  dry_run = options.dry_run || ENV["PACT_BROKER_CAN_I_MERGE_DRY_RUN"] == "true"
65
67
  can_i_merge_options = { output: options.output, retry_while_unknown: options.retry_while_unknown, retry_interval: options.retry_interval, dry_run: dry_run, verbose: options.verbose }
66
- result = CanIDeploy.call(selectors, { with_main_branches: true }, can_i_merge_options, pact_broker_client_options)
68
+ result = CanIDeploy.call(selectors, { with_main_branches: true, ignore_selectors: ignore_selectors}, can_i_merge_options, pact_broker_client_options)
67
69
  $stdout.puts result.message
68
70
  $stdout.flush
69
71
  exit(1) unless result.success
@@ -121,6 +123,9 @@ module PactBroker
121
123
  def ignore_selectors_from_environment_variable
122
124
  ENV.fetch("PACT_BROKER_CAN_I_DEPLOY_IGNORE", "").split(",").collect(&:strip).collect{ |i| { pacticipant: i } }
123
125
  end
126
+ def ignore_merge_selectors_from_environment_variable
127
+ ENV.fetch("PACT_BROKER_CAN_I_MERGE_IGNORE", "").split(",").collect(&:strip).collect{ |i| { pacticipant: i } }
128
+ end
124
129
  end
125
130
  end
126
131
  end
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.76.1'
3
+ VERSION = '1.77.0'
4
4
  end
5
5
  end
@@ -25,4 +25,5 @@ Gem::Specification.new do |gem|
25
25
  gem.add_runtime_dependency 'rake', '~> 13.0' #For FileList
26
26
  gem.add_runtime_dependency 'dig_rb', '~> 1.0'
27
27
  gem.add_runtime_dependency 'base64', '~> 0.2'
28
+ gem.add_runtime_dependency 'ostruct'
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.76.1
4
+ version: 1.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-21 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -120,6 +120,20 @@ dependencies:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0.2'
123
+ - !ruby/object:Gem::Dependency
124
+ name: ostruct
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ type: :runtime
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
123
137
  description: Client for the Pact Broker. Publish, retrieve and query pacts and verification
124
138
  results. Manage webhooks and environments.
125
139
  email:
@@ -147,7 +161,7 @@ files:
147
161
  - ci.sh
148
162
  - doc/CAN_I_DEPLOY_USAGE_WITH_TAGS.md
149
163
  - doc/pacts/markdown/Pact Broker Client - Pact Broker.md
150
- - doc/pacts/markdown/Pact Broker Client - Pactflow.md
164
+ - doc/pacts/markdown/Pact Broker Client - PactFlow.md
151
165
  - doc/pacts/markdown/README.md
152
166
  - example/scripts/README.md
153
167
  - example/scripts/deploy-consumer.sh
@@ -287,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
301
  - !ruby/object:Gem::Version
288
302
  version: '0'
289
303
  requirements: []
290
- rubygems_version: 3.5.17
304
+ rubygems_version: 3.5.22
291
305
  signing_key:
292
306
  specification_version: 4
293
307
  summary: See description