allure-ruby-commons 2.24.5 → 2.25.0

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: c1e1476f3a5024513b913f81e1cb01d0ebd2475a017a65a3cd550860ded704ef
4
- data.tar.gz: cc7c27bace18777aaa46f022b5d3c2c0b5875fcd3e707a40dc43f1130e30cdc3
3
+ metadata.gz: b03207c11ba7f5f8b5ce319f4cc20010f763a0bec17bebe1664047e4fcdf085d
4
+ data.tar.gz: 9c18b3380acf80bb1c11ee82d97b459542015fb7f576b9c557a29680910a303c
5
5
  SHA512:
6
- metadata.gz: 3f47c4f25fa9fdbaeabc106ae06fb9dd78f336f04f1bf37332e712764dfef7389096bd8ccb30dbb95f8d082e9d82e6dee0118cc37066491262154f3c91198bd6
7
- data.tar.gz: 3ceea43184d4b38c3811afc742e438453e71c19ab10bb56fb69cf41c940b0990a57087f5061f7c6e07ceee96c7eb09ceaa72d032b45ba6a20814d1c9f594449c
6
+ metadata.gz: 71778849d3fb912d6cf78f3b22655fd5473d19b435a1e7ef1a591328ef075c64ea0a6a611b86c1dbbed52342f1a3175538860c2b76e0fac335408acd9053414a
7
+ data.tar.gz: 29ba64935476206e2225649915698bb0a2e0775475b15a72206a4aa31888db71f683e81034c96605b1c33353c10c21003a56d3f60d1da68ecc67a8fb35e8d1c1
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "require_all"
5
- require "uuid"
5
+ require "securerandom"
6
6
 
7
7
  require_rel "allure_ruby_commons/**/*rb"
8
8
 
@@ -19,7 +19,7 @@ module Allure
19
19
  # @option options [Array<Allure::Link>] :links ([])
20
20
  # @option options [Array<Allure::Attachment>] :attachments ([])
21
21
  # @option options [Array<Allure::Parameter>] :parameters ([])
22
- def initialize(uuid: UUID.generate, history_id: UUID.generate, environment: nil, **options)
22
+ def initialize(uuid: SecureRandom.uuid, history_id: SecureRandom.uuid, environment: nil, **options)
23
23
  super
24
24
 
25
25
  @name = options[:name]
@@ -3,7 +3,7 @@
3
3
  module Allure
4
4
  # Allure model step result container
5
5
  class TestResultContainer < JSONable
6
- def initialize(uuid: UUID.generate, name: "Unnamed")
6
+ def initialize(uuid: SecureRandom.uuid, name: "Unnamed")
7
7
  super()
8
8
 
9
9
  @uuid = uuid
@@ -168,7 +168,7 @@ module Allure
168
168
  # @return [Allure::Attachment]
169
169
  def prepare_attachment(name, type)
170
170
  extension = ContentType.to_extension(type) || return
171
- file_name = "#{UUID.generate}-attachment.#{extension}"
171
+ file_name = "#{SecureRandom.uuid}-attachment.#{extension}"
172
172
  Attachment.new(name: name, source: file_name, type: type)
173
173
  end
174
174
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allure-ruby-commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.24.5
4
+ version: 2.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrejs Cunskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-06 00:00:00.000000000 Z
11
+ date: 2024-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -64,26 +64,6 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '3.12'
67
- - !ruby/object:Gem::Dependency
68
- name: uuid
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '2.3'
74
- - - "<"
75
- - !ruby/object:Gem::Version
76
- version: '3'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '2.3'
84
- - - "<"
85
- - !ruby/object:Gem::Version
86
- version: '3'
87
67
  description: Utilities allowing to implement allure result generation by other test
88
68
  frameworks
89
69
  email: andrejs.cunskis@gmail.com
@@ -133,14 +113,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
113
  requirements:
134
114
  - - ">="
135
115
  - !ruby/object:Gem::Version
136
- version: 3.0.0
116
+ version: '3.1'
137
117
  required_rubygems_version: !ruby/object:Gem::Requirement
138
118
  requirements:
139
119
  - - ">="
140
120
  - !ruby/object:Gem::Version
141
121
  version: '0'
142
122
  requirements: []
143
- rubygems_version: 3.5.9
123
+ rubygems_version: 3.5.11
144
124
  signing_key:
145
125
  specification_version: 4
146
126
  summary: Common library for allure results generation