cucumber-create-meta 6.0.3 → 6.0.4

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: 683fb4b95e55fbb4f6ff2416f93caf823c8c1ceb64c00025c875ea8b6b935cd7
4
- data.tar.gz: 7ee13b6e2bfbd50f40abbb8d2507f042cd2d0bad82653eb7309e8d56f469da01
3
+ metadata.gz: 63127f1e5e91ab72c44f0bb1bd04fd3c6e135f3d663e527dc5cb9e83333b64bc
4
+ data.tar.gz: fe39fb543eaeb57b6f11e461a669da01348571d8bff54ab88a0cb1ed70afa910
5
5
  SHA512:
6
- metadata.gz: 9c05e86d15d9b4e46e791044b64cb8a0f76c4fd7fea563e4448b35b2d9d842e4764e47f15d8c396aa4e9d19c3e77a5ab4515d4b3df0fe552edae34593cb69d3b
7
- data.tar.gz: 463c982c9731b39cf1ea15e20d29bcbfbf14187e09505b8f7b6bbb440adca1e47c20401686f2e301d4868a632094f0640d9b316f83e8eda9e1dbb87f808a393a
6
+ metadata.gz: 70de8133e0320a1ecd8a340e69fa5c469c874676b4c65aa7f7ef268c298b875720c9152068366b628183e4cc13d29387adee865defef9da23159465cf42b34ab
7
+ data.tar.gz: 40298073a226c0fd14ed6d3e2342fe01e5b3ef6c60cd3abcfcdcc54c760a572fcb55ccf76ca13e4ebf6a6a47263421977d47efb400e0cbb3b98f4042fcf78cc3
@@ -0,0 +1,142 @@
1
+ {
2
+ "Azure Pipelines": {
3
+ "url": "${BUILD_BUILDURI}",
4
+ "buildNumber": "${BUILD_BUILDNUMBER}",
5
+ "git": {
6
+ "remote": "${BUILD_REPOSITORY_URI}",
7
+ "revision": "${BUILD_SOURCEVERSION}",
8
+ "branch": "${BUILD_SOURCEBRANCH/refs\/heads\/(.*)/\\1}",
9
+ "tag": "${BUILD_SOURCEBRANCH/refs\/tags\/(.*)/\\1}"
10
+ }
11
+ },
12
+ "Bamboo": {
13
+ "url": "${bamboo_buildResultsUrl}",
14
+ "buildNumber": "${bamboo_buildNumber}",
15
+ "git": {
16
+ "remote": "${bamboo_planRepository_repositoryUrl}",
17
+ "revision": "${bamboo_planRepository_revision}",
18
+ "branch": "${bamboo_planRepository_branch}",
19
+ "tag": null
20
+ }
21
+ },
22
+ "Buddy": {
23
+ "url": "${BUDDY_EXECUTION_URL}",
24
+ "buildNumber": "${BUDDY_EXECUTION_ID}",
25
+ "git": {
26
+ "remote": "${BUDDY_SCM_URL}",
27
+ "revision": "${BUDDY_EXECUTION_REVISION}",
28
+ "branch": "${BUDDY_EXECUTION_BRANCH}",
29
+ "tag": "${BUDDY_EXECUTION_TAG}"
30
+ }
31
+ },
32
+ "Bitrise": {
33
+ "url": "${BITRISE_BUILD_URL}",
34
+ "buildNumber": "${BITRISE_BUILD_NUMBER}",
35
+ "git": {
36
+ "remote": "${GIT_REPOSITORY_URL}",
37
+ "revision": "${BITRISE_GIT_COMMIT}",
38
+ "branch": "${BITRISE_GIT_BRANCH}",
39
+ "tag": "${BITRISE_GIT_TAG}"
40
+ }
41
+ },
42
+ "CircleCI": {
43
+ "url": "${CIRCLE_BUILD_URL}",
44
+ "buildNumber": "${CIRCLE_BUILD_NUM}",
45
+ "git": {
46
+ "remote": "${CIRCLE_REPOSITORY_URL}",
47
+ "revision": "${CIRCLE_SHA1}",
48
+ "branch": "${CIRCLE_BRANCH}",
49
+ "tag": "${CIRCLE_TAG}"
50
+ }
51
+ },
52
+ "CodeFresh": {
53
+ "url": "${CF_BUILD_URL}",
54
+ "buildNumber": "${CF_BUILD_ID}",
55
+ "git": {
56
+ "remote": "${CF_COMMIT_URL/(.*)\\/commit.+$/\\1}.git",
57
+ "revision": "${CF_REVISION}",
58
+ "branch": "${CF_BRANCH}",
59
+ "tag": null
60
+ }
61
+ },
62
+ "CodeShip": {
63
+ "url": "${CI_BUILD_URL}",
64
+ "buildNumber": "${CI_BUILD_NUMBER}",
65
+ "git": {
66
+ "remote": "${CI_PULL_REQUEST/(.*)\\/pull\\/\\d+/\\1.git}",
67
+ "revision": "${CI_COMMIT_ID}",
68
+ "branch": "${CI_BRANCH}",
69
+ "tag": null
70
+ }
71
+ },
72
+ "GitHub Actions": {
73
+ "url": "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}",
74
+ "buildNumber": "${GITHUB_RUN_ID}",
75
+ "git": {
76
+ "remote": "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git",
77
+ "revision": "${GITHUB_SHA}",
78
+ "branch": "${GITHUB_REF/refs\/heads\/(.*)/\\1}",
79
+ "tag": "${GITHUB_REF/refs\/tags\/(.*)/\\1}"
80
+ }
81
+ },
82
+ "GitLab": {
83
+ "url": "${CI_JOB_URL}",
84
+ "buildNumber": "${CI_JOB_ID}",
85
+ "git": {
86
+ "remote": "${CI_REPOSITORY_URL}",
87
+ "revision": "${CI_COMMIT_SHA}",
88
+ "branch": "${CI_COMMIT_BRANCH}",
89
+ "tag": "${CI_COMMIT_TAG}"
90
+ }
91
+ },
92
+ "GoCD": {
93
+ "url": "${GO_SERVER_URL}/pipelines/${GO_PIPELINE_NAME}/${GO_PIPELINE_COUNTER}/${GO_STAGE_NAME}/${GO_STAGE_COUNTER}",
94
+ "buildNumber": "${GO_PIPELINE_NAME}/${GO_PIPELINE_COUNTER}/${GO_STAGE_NAME}/${GO_STAGE_COUNTER}",
95
+ "git": {
96
+ "remote": "${GO_SCM_*_PR_URL/(.*)\\/pull\\/\\d+/\\1.git}",
97
+ "revision": "${GO_REVISION}",
98
+ "branch": "${GO_SCM_*_PR_BRANCH/.*:(.*)/\\1}",
99
+ "tag": null
100
+ }
101
+ },
102
+ "Jenkins": {
103
+ "url": "${BUILD_URL}",
104
+ "buildNumber": "${BUILD_NUMBER}",
105
+ "git": {
106
+ "remote": "${GIT_URL}",
107
+ "revision": "${GIT_COMMIT}",
108
+ "branch": "${GIT_LOCAL_BRANCH}",
109
+ "tag": null
110
+ }
111
+ },
112
+ "Semaphore": {
113
+ "url": "${SEMAPHORE_ORGANIZATION_URL}/jobs/${SEMAPHORE_JOB_ID}",
114
+ "buildNumber": "${SEMAPHORE_JOB_ID}",
115
+ "git": {
116
+ "remote": "${SEMAPHORE_GIT_URL}",
117
+ "revision": "${SEMAPHORE_GIT_SHA}",
118
+ "branch": "${SEMAPHORE_GIT_BRANCH}",
119
+ "tag": "${SEMAPHORE_GIT_TAG_NAME}"
120
+ }
121
+ },
122
+ "Travis CI": {
123
+ "url": "${TRAVIS_BUILD_WEB_URL}",
124
+ "buildNumber": "${TRAVIS_JOB_NUMBER}",
125
+ "git": {
126
+ "remote": "https://github.com/${TRAVIS_REPO_SLUG}.git",
127
+ "revision": "${TRAVIS_COMMIT}",
128
+ "branch": "${TRAVIS_BRANCH}",
129
+ "tag": "${TRAVIS_TAG}"
130
+ }
131
+ },
132
+ "Wercker": {
133
+ "url": "${WERCKER_RUN_URL}",
134
+ "buildNumber": "${WERCKER_RUN_URL/.*\\/([^\\/]+)$/\\1}",
135
+ "git": {
136
+ "remote": "https://${WERCKER_GIT_DOMAIN}/${WERCKER_GIT_OWNER}/${WERCKER_GIT_REPOSITORY}.git",
137
+ "revision": "${WERCKER_GIT_COMMIT}",
138
+ "branch": "${WERCKER_GIT_BRANCH}",
139
+ "tag": null
140
+ }
141
+ }
142
+ }
@@ -7,25 +7,25 @@ require 'cucumber/create_meta/variable_expression'
7
7
  module Cucumber
8
8
  module CreateMeta
9
9
  extend Cucumber::CreateMeta::VariableExpression
10
- CI_DICT = JSON.parse(IO.read(File.join(File.dirname(__FILE__), '..', '..', '..', 'ciDict.json')))
10
+ CI_DICT = JSON.parse(IO.read(File.join(File.dirname(__FILE__), 'ciDict.json')))
11
11
 
12
12
  def create_meta(tool_name, tool_version, env = ENV)
13
13
  Cucumber::Messages::Meta.new(
14
14
  protocol_version: Cucumber::Messages::VERSION,
15
15
  implementation: Cucumber::Messages::Product.new(
16
- name: tool_name,
17
- version: tool_version
16
+ name: tool_name,
17
+ version: tool_version
18
18
  ),
19
19
  runtime: Cucumber::Messages::Product.new(
20
- name: RUBY_ENGINE,
21
- version: RUBY_VERSION
20
+ name: RUBY_ENGINE,
21
+ version: RUBY_VERSION
22
22
  ),
23
23
  os: Cucumber::Messages::Product.new(
24
- name: RbConfig::CONFIG['target_os'],
25
- version: Sys::Uname.uname.version
24
+ name: RbConfig::CONFIG['target_os'],
25
+ version: Sys::Uname.uname.version
26
26
  ),
27
27
  cpu: Cucumber::Messages::Product.new(
28
- name: RbConfig::CONFIG['target_cpu']
28
+ name: RbConfig::CONFIG['target_cpu']
29
29
  ),
30
30
  ci: detect_ci(env)
31
31
  )
@@ -51,18 +51,19 @@ module Cucumber
51
51
  remote: remove_userinfo_from_url(evaluate(ci_system['git']['remote'], env)),
52
52
  revision: evaluate(ci_system['git']['revision'], env),
53
53
  branch: evaluate(ci_system['git']['branch'], env),
54
- tag: evaluate(ci_system['git']['tag'], env),
54
+ tag: evaluate(ci_system['git']['tag'], env)
55
55
  )
56
56
  )
57
57
  end
58
58
 
59
59
  def remove_userinfo_from_url(value)
60
60
  return nil if value.nil?
61
+
61
62
  begin
62
63
  uri = URI(value)
63
64
  uri.userinfo = ''
64
65
  uri.to_s
65
- rescue
66
+ rescue StandardError
66
67
  value
67
68
  end
68
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-create-meta
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Prêtre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber-messages
@@ -97,6 +97,7 @@ extensions: []
97
97
  extra_rdoc_files: []
98
98
  files:
99
99
  - LICENSE
100
+ - lib/cucumber/ciDict.json
100
101
  - lib/cucumber/create_meta.rb
101
102
  - lib/cucumber/create_meta/variable_expression.rb
102
103
  - spec/acceptance/create_meta_spec.rb
@@ -104,15 +105,15 @@ files:
104
105
  - spec/cucumber/create_meta_spec.rb
105
106
  - spec/cucumber/evaluate_variable_expression_spec.rb
106
107
  - spec/cucumber/remove_userinfo_from_url_spec.rb
107
- homepage: https://github.com/cucumber/create-meta-ruby
108
+ homepage: https://github.com/cucumber/create-meta
108
109
  licenses:
109
110
  - MIT
110
111
  metadata:
111
- bug_tracker_uri: https://github.com/cucumber/common/issues
112
- changelog_uri: https://github.com/cucumber/common/blob/main/create-meta/CHANGELOG.md
112
+ bug_tracker_uri: https://github.com/cucumber/create-meta/issues
113
+ changelog_uri: https://github.com/cucumber/create-meta/blob/main/CHANGELOG.md
113
114
  documentation_uri: https://cucumber.io/docs/gherkin/
114
115
  mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
115
- source_code_uri: https://github.com/cucumber/common/tree/main/create-meta/ruby
116
+ source_code_uri: https://github.com/cucumber/create-meta/tree/main/ruby
116
117
  post_install_message:
117
118
  rdoc_options:
118
119
  - "--charset=UTF-8"
@@ -132,7 +133,7 @@ requirements: []
132
133
  rubygems_version: 3.1.2
133
134
  signing_key:
134
135
  specification_version: 4
135
- summary: cucumber-create-meta-6.0.3
136
+ summary: cucumber-create-meta-6.0.4
136
137
  test_files:
137
138
  - spec/acceptance/create_meta_spec.rb
138
139
  - spec/cucumber/remove_userinfo_from_url_spec.rb