allure-ruby-commons 2.24.5 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bd0a875b7447cbf72c8f9f11a45638837438093bf5319ad13ce134686f26d5a
|
4
|
+
data.tar.gz: 197821119563103fee8862fb3969cde9b2fbc2f9ea24dcd31fefc9168910f869
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fda74a57c167a6d6c3cbb2e0070dded7f731d93445bc79620233fd4ad554e3c1e2e14a7b86d8cf084aa02b809adfa8727c4938c425ae1fd8b4424088e2fcced
|
7
|
+
data.tar.gz: 7623da32b3fe945f36a605f59b070a896b2e66bed12facba351af53f8df295f23281ac918dbc3062919babe02de70433e7bb897b0a484f30d0c7fd7386832afe
|
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.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-10 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
|
@@ -125,7 +105,7 @@ metadata:
|
|
125
105
|
source_code_uri: https://github.com/allure-framework/allure-ruby/tree/master/allure-ruby-commons
|
126
106
|
wiki_uri: https://github.com/allure-framework/allure-ruby/wiki
|
127
107
|
rubygems_mfa_required: 'false'
|
128
|
-
post_install_message:
|
108
|
+
post_install_message:
|
129
109
|
rdoc_options: []
|
130
110
|
require_paths:
|
131
111
|
- lib
|
@@ -133,15 +113,15 @@ 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.
|
144
|
-
signing_key:
|
123
|
+
rubygems_version: 3.5.22
|
124
|
+
signing_key:
|
145
125
|
specification_version: 4
|
146
126
|
summary: Common library for allure results generation
|
147
127
|
test_files: []
|