allure-ruby-adaptor-api 0.6.1 → 0.6.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/allure-ruby-adaptor-api/builder.rb +2 -0
- data/lib/allure-ruby-adaptor-api/dsl.rb +2 -1
- data/lib/allure-ruby-adaptor-api/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e2835e1b90c7dcb8cd3f6834a60527d54684e804
|
|
4
|
+
data.tar.gz: 1ee288b5b0d2e8af87286206bc2350f9dc2f4431
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a1078f965281a9da9e788bf2b4a6d8bdaf0a1d041bacad624bc9d1cf2619f4146ab6fa303309b6549c832f10405eb8f8f35b6789dbfe94655dd7c60a6d62550
|
|
7
|
+
data.tar.gz: c5544c8cc09bb893c5d02bfa80965373e82418dfe551698b86781afa3dfdada5eeceae324d0cc8585b2ac49224c67f3525cb12f8c665c6b3c0d9dc6cb92114ab
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Allure Ruby API
|
|
1
|
+
# Allure Ruby Adaptor API
|
|
2
2
|
|
|
3
3
|
This is a helper library containing the basics for any ruby-based Allure adaptor.
|
|
4
4
|
Using it you can easily implement the adaptor for your favourite ruby testing library or
|
|
@@ -9,7 +9,7 @@ you can just create the report of any other kind using the basic Allure terms.
|
|
|
9
9
|
Add the dependency to your Gemfile
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem 'allure-ruby-api'
|
|
12
|
+
gem 'allure-ruby-adaptor-api'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Advanced options
|
|
@@ -80,6 +80,7 @@ module AllureRubyAdaptorApi
|
|
|
80
80
|
file_extname = File.extname(file.path.downcase)
|
|
81
81
|
mime_type = opts[:mime_type] || MimeMagic.by_path(file.path) || "text/plain"
|
|
82
82
|
attachment = dir.join("#{Digest::SHA256.file(file.path).hexdigest}-attachment#{(file_extname.empty?) ? '' : file_extname}")
|
|
83
|
+
puts "Copying attachment to '#{attachment}'..."
|
|
83
84
|
FileUtils.cp(file.path, attachment)
|
|
84
85
|
attach = {
|
|
85
86
|
:type => mime_type,
|
|
@@ -153,6 +154,7 @@ module AllureRubyAdaptorApi
|
|
|
153
154
|
dir = Pathname.new(config.output_dir)
|
|
154
155
|
FileUtils.mkdir_p(dir)
|
|
155
156
|
out_file = dir.join("#{UUID.new.generate}-testsuite.xml")
|
|
157
|
+
puts "Writing file '#{out_file}'..."
|
|
156
158
|
File.open(out_file, 'w+') do |file|
|
|
157
159
|
file.write(validate_xml(xml))
|
|
158
160
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: allure-ruby-adaptor-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilya Sadykov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -137,5 +137,5 @@ rubyforge_project:
|
|
|
137
137
|
rubygems_version: 2.0.3
|
|
138
138
|
signing_key:
|
|
139
139
|
specification_version: 4
|
|
140
|
-
summary: allure-ruby-adaptor-api-0.6.
|
|
140
|
+
summary: allure-ruby-adaptor-api-0.6.2
|
|
141
141
|
test_files: []
|