allure-ruby-api 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/allure-ruby-api/builder.rb +4 -3
- data/lib/allure-ruby-api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 695862664d795056872fef834d3e69dde898a03a
|
4
|
+
data.tar.gz: 91cb43c3352266b7351e58d143edef9a49412e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 313dab5d7a8c2b77590a4ae89ec1e9b674d3ac6c8afe41b6c49681d561b5541e7d8d6e56a1280b26068e4901edab896bae562d97006c013ea910c514dfd68193
|
7
|
+
data.tar.gz: f3279f4254314bafb41eb02fa0a8b6a216c68bdc91bc9c87d6aa2079bfe732c2f08d210fb612c42d46d9d60c3c03298e66d4355117c46fcf78e7f6d75dddafee
|
data/Gemfile.lock
CHANGED
@@ -75,7 +75,7 @@ module AllureRubyApi
|
|
75
75
|
file = opts[:file]
|
76
76
|
title = opts[:title] || file.basename
|
77
77
|
puts "Adding attachment #{opts[:title]} to #{suite}.#{test}#{step.nil? ? "" : ".#{step}"}"
|
78
|
-
dir = Pathname.new(config.output_dir)
|
78
|
+
dir = Pathname.new(Dir.pwd).join(config.output_dir)
|
79
79
|
FileUtils.mkdir_p(dir)
|
80
80
|
file_extname = File.extname(file.path.downcase)
|
81
81
|
mime_type = opts[:mime_type] || MimeMagic.by_path(file.path) || "text/plain"
|
@@ -85,6 +85,8 @@ module AllureRubyApi
|
|
85
85
|
:type => mime_type,
|
86
86
|
:title => title,
|
87
87
|
:source => attachment.basename,
|
88
|
+
:file => attachment.basename,
|
89
|
+
:target => attachment.basename,
|
88
90
|
:size => File.stat(attachment).size
|
89
91
|
}
|
90
92
|
if step.nil?
|
@@ -110,8 +112,7 @@ module AllureRubyApi
|
|
110
112
|
end
|
111
113
|
end
|
112
114
|
|
113
|
-
def build!(opts = {
|
114
|
-
FileUtils.rm_rf config.output_dir if opts[:empty_dir]
|
115
|
+
def build!(opts = {}, &block)
|
115
116
|
suites_xml = []
|
116
117
|
self.suites.each do |suite_title, suite|
|
117
118
|
builder = Nokogiri::XML::Builder.new do |xml|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-ruby-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Sadykov
|
@@ -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-api-0.
|
140
|
+
summary: allure-ruby-api-0.6
|
141
141
|
test_files: []
|