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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54983b1f6ea3fdc5fb7cb534bf750e2381fa9a87
4
- data.tar.gz: bc121c626bf518240da02ad3313cb630b57f9b51
3
+ metadata.gz: 695862664d795056872fef834d3e69dde898a03a
4
+ data.tar.gz: 91cb43c3352266b7351e58d143edef9a49412e57
5
5
  SHA512:
6
- metadata.gz: 4474634f6b3576642113f52300c5443c6b75cad2b36dc2da7775d258343ad34dc9ee091bdbc6d5f4be0ff99f18b7fbf281060d589398dc96ae6d13ae83586927
7
- data.tar.gz: 5fd780f1e5ebc56f3252bf59c0615af7010532fcb6a66c26f6780eac20eb21ee1712bbec73577771e98b291c2c26ec287c8a507c973a995dbf42d053d1d65003
6
+ metadata.gz: 313dab5d7a8c2b77590a4ae89ec1e9b674d3ac6c8afe41b6c49681d561b5541e7d8d6e56a1280b26068e4901edab896bae562d97006c013ea910c514dfd68193
7
+ data.tar.gz: f3279f4254314bafb41eb02fa0a8b6a216c68bdc91bc9c87d6aa2079bfe732c2f08d210fb612c42d46d9d60c3c03298e66d4355117c46fcf78e7f6d75dddafee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allure-ruby-api (0.5)
4
+ allure-ruby-api (0.6)
5
5
  mimemagic
6
6
  nokogiri (~> 1.6.0)
7
7
  rspec (~> 2.14.0)
@@ -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 = {:empty_dir => true}, &block)
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|
@@ -1,6 +1,6 @@
1
1
  module AllureRubyApi # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.5'
3
+ STRING = '0.6'
4
4
  ALLURE = '1.4.0'
5
5
  end
6
6
  end
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.5'
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.5
140
+ summary: allure-ruby-api-0.6
141
141
  test_files: []