cucumber-ci-environment 12.0.0 → 14.0.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: 28cf4237e62bab193f9dd02c04ccbac0170536db8709d79545d4a79b23f96447
4
- data.tar.gz: c2c84999d1a4b6c2699fcfdcb0d9c60ea4c4a4ce119cc02e4438482a4b6e28c9
3
+ metadata.gz: 3853f19ac2560a4560d4c9789a25a10beed26152d0db9a8ff2a72ed0d47685f1
4
+ data.tar.gz: 4aa29a90f8b6ad5663c1217a1a8bf1778900903ad880bbe040fb60eb25b294f7
5
5
  SHA512:
6
- metadata.gz: 4ecb94d929d09642aa90983e3e7368bbab91faecda039f3898f20a615282ad1f449a7245e13780e30449d4c977eb92a6e284a75588472e3b743a0c07f0090771
7
- data.tar.gz: ad45b5d985598d9eb75e0074962274fbda1a034d352129abd59006eb39b878aac0ec9e065877e439b86432092af35c9d81ecfa1d617d9acffdef25ef77fce814
6
+ metadata.gz: 39f8334495dc227521bf6b2801b0ed83c3d539549dfb272c56c915949294db3297b23ff54b14cf6b4f1ec41308000883d2e745311eb19b070d9b8be2fa6ff3c6
7
+ data.tar.gz: 74d87c0c07b1aa9b72133267d95e66aa542399257516f4c5ef5a1cd4a82103d1ecd384ef86e2b537937528b98043feb633bc91f48dc3fd514eec7b0ed9eb2fe0
@@ -35,8 +35,11 @@ module Cucumber
35
35
 
36
36
  def get_value(variable, env)
37
37
  if variable.index('*')
38
+ regexp = Regexp.new(variable.gsub('*', '.*'))
39
+ # GoCD env var with dynamic "material" name
40
+ # https://github.com/ashwanthkumar/gocd-build-github-pull-requests#github
38
41
  env.each do |name, value|
39
- return value if Regexp.new(variable.gsub('*', '.*')).match?(name)
42
+ return value if regexp.match?(name)
40
43
  end
41
44
  end
42
45
  env[variable]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-ci-environment
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0
4
+ version: 14.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Prêtre
@@ -101,7 +101,6 @@ extra_rdoc_files: []
101
101
  files:
102
102
  - LICENSE
103
103
  - lib/cucumber/ci_environment.rb
104
- - lib/cucumber/ci_environment/CiEnvironments.json
105
104
  - lib/cucumber/ci_environment/variable_expression.rb
106
105
  homepage: https://github.com/cucumber/ci-environment
107
106
  licenses:
@@ -125,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
124
  - !ruby/object:Gem::Version
126
125
  version: 3.2.8
127
126
  requirements: []
128
- rubygems_version: 3.6.9
127
+ rubygems_version: 4.0.10
129
128
  specification_version: 4
130
- summary: cucumber-ci-environment-12.0.0
129
+ summary: cucumber-ci-environment-14.0.0
131
130
  test_files: []
@@ -1,160 +0,0 @@
1
- [
2
- {
3
- "name": "Azure Pipelines",
4
- "url": "${BUILD_BUILDURI}",
5
- "buildNumber": "${BUILD_BUILDNUMBER}",
6
- "git": {
7
- "remote": "${BUILD_REPOSITORY_URI}",
8
- "revision": "${BUILD_SOURCEVERSION}",
9
- "branch": "${BUILD_SOURCEBRANCH/refs\/heads\/(.*)/\\1}",
10
- "tag": "${BUILD_SOURCEBRANCH/refs\/tags\/(.*)/\\1}"
11
- }
12
- },
13
- {
14
- "name": "Bamboo",
15
- "url": "${bamboo_buildResultsUrl}",
16
- "buildNumber": "${bamboo_buildNumber}",
17
- "git": {
18
- "remote": "${bamboo_planRepository_repositoryUrl}",
19
- "revision": "${bamboo_planRepository_revision}",
20
- "branch": "${bamboo_planRepository_branch}"
21
- }
22
- },
23
- {
24
- "name": "Buddy",
25
- "url": "${BUDDY_EXECUTION_URL}",
26
- "buildNumber": "${BUDDY_EXECUTION_ID}",
27
- "git": {
28
- "remote": "${BUDDY_SCM_URL}",
29
- "revision": "${BUDDY_EXECUTION_REVISION}",
30
- "branch": "${BUDDY_EXECUTION_BRANCH}",
31
- "tag": "${BUDDY_EXECUTION_TAG}"
32
- }
33
- },
34
- {
35
- "name": "Bitrise",
36
- "url": "${BITRISE_BUILD_URL}",
37
- "buildNumber": "${BITRISE_BUILD_NUMBER}",
38
- "git": {
39
- "remote": "${GIT_REPOSITORY_URL}",
40
- "revision": "${BITRISE_GIT_COMMIT}",
41
- "branch": "${BITRISE_GIT_BRANCH}",
42
- "tag": "${BITRISE_GIT_TAG}"
43
- }
44
- },
45
- {
46
- "name": "CircleCI",
47
- "url": "${CIRCLE_BUILD_URL}",
48
- "buildNumber": "${CIRCLE_BUILD_NUM}",
49
- "git": {
50
- "remote": "${CIRCLE_REPOSITORY_URL}",
51
- "revision": "${CIRCLE_SHA1}",
52
- "branch": "${CIRCLE_BRANCH}",
53
- "tag": "${CIRCLE_TAG}"
54
- }
55
- },
56
- {
57
- "name": "CodeFresh",
58
- "url": "${CF_BUILD_URL}",
59
- "buildNumber": "${CF_BUILD_ID}",
60
- "git": {
61
- "remote": "${CF_COMMIT_URL/(.*)\\/commit.+$/\\1}.git",
62
- "revision": "${CF_REVISION}",
63
- "branch": "${CF_BRANCH}"
64
- }
65
- },
66
- {
67
- "name": "CodeShip",
68
- "url": "${CI_BUILD_URL}",
69
- "buildNumber": "${CI_BUILD_NUMBER}",
70
- "git": {
71
- "remote": "${CI_PULL_REQUEST/(.*)\\/pull\\/\\d+/\\1.git}",
72
- "revision": "${CI_COMMIT_ID}",
73
- "branch": "${CI_BRANCH}"
74
- }
75
- },
76
- {
77
- "name": "GitHub Actions",
78
- "url": "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}",
79
- "buildNumber": "${GITHUB_RUN_ID}",
80
- "git": {
81
- "remote": "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git",
82
- "revision": "${GITHUB_SHA}",
83
- "branch": "${GITHUB_HEAD_REF}",
84
- "tag": "${GITHUB_REF/refs\/tags\/(.*)/\\1}"
85
- }
86
- },
87
- {
88
- "name": "GitLab",
89
- "url": "${CI_JOB_URL}",
90
- "buildNumber": "${CI_JOB_ID}",
91
- "git": {
92
- "remote": "${CI_REPOSITORY_URL}",
93
- "revision": "${CI_COMMIT_SHA}",
94
- "branch": "${CI_COMMIT_BRANCH}",
95
- "tag": "${CI_COMMIT_TAG}"
96
- }
97
- },
98
- {
99
- "name": "GoCD",
100
- "url": "${GO_SERVER_URL}/pipelines/${GO_PIPELINE_NAME}/${GO_PIPELINE_COUNTER}/${GO_STAGE_NAME}/${GO_STAGE_COUNTER}",
101
- "buildNumber": "${GO_PIPELINE_NAME}/${GO_PIPELINE_COUNTER}/${GO_STAGE_NAME}/${GO_STAGE_COUNTER}",
102
- "git": {
103
- "remote": "${GO_SCM_*_PR_URL/(.*)\\/pull\\/\\d+/\\1.git}",
104
- "revision": "${GO_REVISION}",
105
- "branch": "${GO_SCM_*_PR_BRANCH/.*:(.*)/\\1}"
106
- }
107
- },
108
- {
109
- "name": "Jenkins",
110
- "url": "${BUILD_URL}",
111
- "buildNumber": "${BUILD_NUMBER}",
112
- "git": {
113
- "remote": "${GIT_URL}",
114
- "revision": "${GIT_COMMIT}",
115
- "branch": "${GIT_LOCAL_BRANCH}"
116
- }
117
- },
118
- {
119
- "name": "JetBrains Space",
120
- "url": "${JB_SPACE_EXECUTION_URL}",
121
- "buildNumber": "${JB_SPACE_EXECUTION_NUMBER}",
122
- "git": {
123
- "remote": "https://${JB_SPACE_API_URL}/p/${JB_SPACE_PROJECT_KEY}/repositories/${JB_SPACE_GIT_REPOSITORY_NAME}",
124
- "revision": "${JB_SPACE_GIT_REVISION}",
125
- "branch": "${JB_SPACE_GIT_BRANCH}"
126
- }
127
- },
128
- {
129
- "name": "Semaphore",
130
- "url": "${SEMAPHORE_ORGANIZATION_URL}/jobs/${SEMAPHORE_JOB_ID}",
131
- "buildNumber": "${SEMAPHORE_JOB_ID}",
132
- "git": {
133
- "remote": "${SEMAPHORE_GIT_URL}",
134
- "revision": "${SEMAPHORE_GIT_SHA}",
135
- "branch": "${SEMAPHORE_GIT_BRANCH}",
136
- "tag": "${SEMAPHORE_GIT_TAG_NAME}"
137
- }
138
- },
139
- {
140
- "name": "Travis CI",
141
- "url": "${TRAVIS_BUILD_WEB_URL}",
142
- "buildNumber": "${TRAVIS_JOB_NUMBER}",
143
- "git": {
144
- "remote": "https://github.com/${TRAVIS_REPO_SLUG}.git",
145
- "revision": "${TRAVIS_COMMIT}",
146
- "branch": "${TRAVIS_BRANCH}",
147
- "tag": "${TRAVIS_TAG}"
148
- }
149
- },
150
- {
151
- "name": "Wercker",
152
- "url": "${WERCKER_RUN_URL}",
153
- "buildNumber": "${WERCKER_RUN_URL/.*\\/([^\\/]+)$/\\1}",
154
- "git": {
155
- "remote": "https://${WERCKER_GIT_DOMAIN}/${WERCKER_GIT_OWNER}/${WERCKER_GIT_REPOSITORY}.git",
156
- "revision": "${WERCKER_GIT_COMMIT}",
157
- "branch": "${WERCKER_GIT_BRANCH}"
158
- }
159
- }
160
- ]