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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b03207c11ba7f5f8b5ce319f4cc20010f763a0bec17bebe1664047e4fcdf085d
|
4
|
+
data.tar.gz: 9c18b3380acf80bb1c11ee82d97b459542015fb7f576b9c557a29680910a303c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71778849d3fb912d6cf78f3b22655fd5473d19b435a1e7ef1a591328ef075c64ea0a6a611b86c1dbbed52342f1a3175538860c2b76e0fac335408acd9053414a
|
7
|
+
data.tar.gz: 29ba64935476206e2225649915698bb0a2e0775475b15a72206a4aa31888db71f683e81034c96605b1c33353c10c21003a56d3f60d1da68ecc67a8fb35e8d1c1
|
data/lib/allure-ruby-commons.rb
CHANGED
@@ -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:
|
22
|
+
def initialize(uuid: SecureRandom.uuid, history_id: SecureRandom.uuid, environment: nil, **options)
|
23
23
|
super
|
24
24
|
|
25
25
|
@name = options[:name]
|
@@ -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 = "#{
|
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.
|
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-
|
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.
|
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.
|
123
|
+
rubygems_version: 3.5.11
|
144
124
|
signing_key:
|
145
125
|
specification_version: 4
|
146
126
|
summary: Common library for allure results generation
|