parallel_report_portal 2.5.1 → 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: 0ebfbbf1153557d31ea6ebc2fceb53c6aebc1561202e6af4a4ca83bd8ad0c449
4
- data.tar.gz: 94e856fee4ce2614e8ee2c323eedbb2da50752b380d0904bda22b169d93e8a2a
3
+ metadata.gz: aa816eee089ddc4b187164a08791c5d2f1d6a1558b85574313bdd080c7caec25
4
+ data.tar.gz: 4e2b2123fe5a51e3e583975a19847e02c2c088b171952a93ab6a8a2566733d2d
5
5
  SHA512:
6
- metadata.gz: fbbcd51350a431315f30d8d145e9df261302717beeb1340c23d940dedd376af76d8c103e53dc75e8956bdcb70eddde110f1d87596d93c7ad187d9b650b80221b
7
- data.tar.gz: 144c437942302d95feec99bedab1f3ac938bfbc20452ea7035a940c9f05473989bbb3951930be1f19435f884d19eaa349c1c6176a30f26adf80ae75a4318f3d6
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
- - `RP_UUID` - the user's UUID 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
- # RP_UUID:: The UUID of the user associated with this launch
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
@@ -22,10 +22,10 @@ module ParallelReportPortal
22
22
  # RP_TAGS:: A set of tags to pass to Report Portal for this launch. If these are set via an environment variable, provide a comma-separated string of tags
23
23
  # RP_ATTRIBUTES:: A set of attribute tags to pass to Report Portal for this launch. If these are set via an environment variable, provide a comma-separated string of attributes
24
24
  class Configuration
25
- ATTRIBUTES = [:uuid, :endpoint, :project, :launch, :debug, :description, :tags, :attributes, :open_timeout, :idle_timeout, :read_timeout]
25
+ ATTRIBUTES = [:api_key, :endpoint, :project, :launch, :debug, :description, :tags, :attributes, :open_timeout, :idle_timeout, :read_timeout]
26
26
 
27
- # @return [String] the Report Portal user UUID
28
- attr_accessor :uuid
27
+ # @return [String] the Report Portal API key required for authorization
28
+ attr_accessor :api_key
29
29
  # @return [String] the Report Portal URI - this should include the scheme
30
30
  # e.g. +https://reportportal.local/api/v1+
31
31
  attr_accessor :endpoint
@@ -22,7 +22,7 @@ module ParallelReportPortal
22
22
  #
23
23
  # @return [String] header the bearer header value
24
24
  def authorization_header
25
- "Bearer #{ParallelReportPortal.configuration.uuid}"
25
+ "Bearer #{ParallelReportPortal.configuration.api_key}"
26
26
  end
27
27
 
28
28
  # Get a preconstructed Faraday HTTP connection
@@ -81,7 +81,8 @@ module ParallelReportPortal
81
81
  mode: (ParallelReportPortal.configuration.debug ? 'DEBUG' : 'DEFAULT' ),
82
82
  attributes: ParallelReportPortal.configuration.attributes
83
83
  }.to_json
84
- end
84
+ end
85
+
85
86
  if resp.success?
86
87
  JSON.parse(resp.body)['id']
87
88
  else
@@ -1,3 +1,3 @@
1
1
  module ParallelReportPortal
2
- VERSION = "2.5.1"
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: 2.5.1
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-08-10 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.4.10
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: []