parallel_report_portal 3.0.0 → 3.0.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: bdb8752fe04d7457a3333f818ee74af105d17f1cb32ae0c6ecd8daa897d11f7f
4
- data.tar.gz: ef6b77445231d20740f515f046c35fd39266361fd6637b524958907c974b8014
3
+ metadata.gz: aa816eee089ddc4b187164a08791c5d2f1d6a1558b85574313bdd080c7caec25
4
+ data.tar.gz: 4e2b2123fe5a51e3e583975a19847e02c2c088b171952a93ab6a8a2566733d2d
5
5
  SHA512:
6
- metadata.gz: 19864c308420494e6dd7c0cd6321fc53aaafba70b1fe6d0ea0caf9957c69b308aaf9034e1c48551d4a06ae2580c827975489dcf6d22f5523d13c251bb966dce6
7
- data.tar.gz: c70a9b840d9d9cb2e2b1ecb071d6b2ff65e5479faacdea9bcf2307cc4edde7d8f768e4cbde5d18fadd7e4d637ed2a50fe6ba0483031cb68bb869a4d34b521532
6
+ metadata.gz: 4dce56b66318bdcd43d41e0f8c7a14062f22022438d2c8b4e64a539af3c39b6f56fc8ba5d5af91f65dbcca7407633aea5f5ba19392fa999c04c81dbda57e4eb6
7
+ data.tar.gz: 807457edccdbf26c310ce41d667ecfc313bd58f85aa502daad3d06b5585f354c6820a144df7307e5bc2227d3d945b1fdbc0eba2eeaf3e200026b75ebe2543c0c
@@ -0,0 +1,44 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ ruby-version: [ 3.1, 3.2, 3.3 ]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby-version }}
21
+ bundler-cache: true
22
+
23
+ - name: Run tests
24
+ run: bundle exec rake
25
+
26
+ deploy:
27
+ needs: test
28
+ runs-on: ubuntu-latest
29
+
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+
33
+ - name: Set up Ruby
34
+ uses: ruby/setup-ruby@v1
35
+ with:
36
+ ruby-version: 3.3
37
+ bundler-cache: true
38
+
39
+ - name: Publish to RubyGems
40
+ run: |
41
+ gem build *.gemspec
42
+ gem push *.gem
43
+ env:
44
+ GEM_HOST_API_KEY: ${{ secrets.PARALLEL_RP_RUBYGEMS_AUTH_TOKEN }}
@@ -7,7 +7,9 @@
7
7
 
8
8
  name: Ruby
9
9
 
10
- on: [push]
10
+ on:
11
+ push:
12
+ branches-ignore: [ master ]
11
13
 
12
14
  jobs:
13
15
  test:
@@ -15,14 +17,16 @@ jobs:
15
17
  runs-on: ubuntu-latest
16
18
  strategy:
17
19
  matrix:
18
- ruby-version: ['2.6', '2.7', '3.0']
20
+ ruby-version: [ 3.1, 3.2, 3.3 ]
19
21
 
20
22
  steps:
21
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v4
24
+
22
25
  - name: Set up Ruby
23
26
  uses: ruby/setup-ruby@v1
24
27
  with:
25
28
  ruby-version: ${{ matrix.ruby-version }}
26
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
29
+ bundler-cache: true
30
+
27
31
  - name: Run tests
28
32
  run: bundle exec rake
data/README.md CHANGED
@@ -46,7 +46,7 @@ read_timeout: 60
46
46
 
47
47
  It will search for the following environment variables which may be in upper or lowercase (the official client defers to lower case, this is available here for compatibility).
48
48
 
49
- - `REPORT_PORTAL_API_KEY` - the API Key for this Report Portal instance which must be created in advance
49
+ - `RP_API_KEY` - the API Key for this Report Portal instance which must be created in advance
50
50
  - `RP_ENDPOINT` - the endpoint for this Report Portal instance
51
51
  - `RP_PROJECT` - the Report Portal project name which must be created in advance and this user added as a member
52
52
  - `RP_LAUNCH` - the name of this 'launch'
@@ -14,7 +14,7 @@ module ParallelReportPortal
14
14
  #
15
15
  # == Environment variables
16
16
  #
17
- # REPORT_PORTAL_API_KEY:: The API key required for authentication
17
+ # RP_API_KEY:: The API key required for authentication
18
18
  # RP_ENDPOINT:: the URL of the Report Portal API endpoint
19
19
  # RP_PROJECT:: the Report Portal project name -- this must already exist within Report Port and this user must be a member of the project
20
20
  # RP_LAUNCH:: The name of this launch
@@ -61,7 +61,7 @@ module ParallelReportPortal
61
61
  def initialize
62
62
  load_configuration_file
63
63
  ATTRIBUTES.each do |attr|
64
- env_value = get_env("rp_#{attr.to_s}") || get_env("report_portal_#{attr.to_s}")
64
+ env_value = get_env("rp_#{attr.to_s}")
65
65
  send(:"#{attr}=", env_value) if env_value
66
66
  end
67
67
 
@@ -153,8 +153,6 @@ module ParallelReportPortal
153
153
  ATTRIBUTES.each do |attr|
154
154
  yaml_key = if yaml.has_key?("rp_#{attr}".to_sym)
155
155
  "rp_#{attr}".to_sym
156
- elsif yaml.has_key?("report_portal_#{attr}".to_sym)
157
- "report_portal_#{attr}".to_sym
158
156
  else
159
157
  attr
160
158
  end
@@ -1,6 +1,5 @@
1
1
  require 'logger'
2
2
  require 'tempfile'
3
- require 'pry'
4
3
 
5
4
  module ParallelReportPortal
6
5
  # A collection of methods for communicating with the ReportPortal
@@ -84,9 +83,6 @@ module ParallelReportPortal
84
83
  }.to_json
85
84
  end
86
85
 
87
- pp "#########################"
88
- pp resp
89
-
90
86
  if resp.success?
91
87
  JSON.parse(resp.body)['id']
92
88
  else
@@ -1,3 +1,3 @@
1
1
  module ParallelReportPortal
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "appraisal", '~> 2.4'
33
33
  spec.add_development_dependency "bump", "~> 0.8"
34
34
  spec.add_development_dependency "bundler", "~> 2.0"
35
- spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rake", "~> 13.0"
36
36
  spec.add_development_dependency "rspec", "~> 3.0"
37
37
  spec.add_development_dependency "pry", "~> 0.12"
38
38
  spec.add_development_dependency "webmock", "~> 3.12"
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_report_portal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Brookes-Thomas
8
8
  - Thomas Feathers
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-12-21 00:00:00.000000000 Z
12
+ date: 2024-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appraisal
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '10.0'
62
+ version: '13.0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '10.0'
69
+ version: '13.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -207,6 +207,7 @@ executables: []
207
207
  extensions: []
208
208
  extra_rdoc_files: []
209
209
  files:
210
+ - ".github/workflows/deploy.yml"
210
211
  - ".github/workflows/tests.yml"
211
212
  - ".gitignore"
212
213
  - ".rspec"
@@ -240,7 +241,7 @@ licenses:
240
241
  metadata:
241
242
  homepage_uri: https://github.com/dvla/dvla-reportportal-ruby
242
243
  source_code_uri: https://github.com/dvla/dvla-reportportal-ruby
243
- post_install_message:
244
+ post_install_message:
244
245
  rdoc_options: []
245
246
  require_paths:
246
247
  - lib
@@ -255,8 +256,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
256
  - !ruby/object:Gem::Version
256
257
  version: '0'
257
258
  requirements: []
258
- rubygems_version: 3.2.3
259
- signing_key:
259
+ rubygems_version: 3.5.3
260
+ signing_key:
260
261
  specification_version: 4
261
262
  summary: Run Cucumber Tests in parallel and with Cucumber 3 and 4+
262
263
  test_files: []