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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c36d33cd9e67daea76968933c33b97e647971470
4
- data.tar.gz: 1be5d5c73d591282e08af3eeee25caef6f8341d8
3
+ metadata.gz: e2835e1b90c7dcb8cd3f6834a60527d54684e804
4
+ data.tar.gz: 1ee288b5b0d2e8af87286206bc2350f9dc2f4431
5
5
  SHA512:
6
- metadata.gz: a8a529ca1dfe5631a996e6b4ed4b9baeb3430e1e25911992247a85cf1ce402b8b885628e169b2e9f6238eec46704070ec8f0ebb2f09f2996b8dc01a0d4aea38b
7
- data.tar.gz: 5f33469200b1a6d2a12a5cc521c49aa172f1fdca74cba720d556231e291237f59defbc77856ceefb4ed598911920f6ae0bf839984361221c18bb1dafb012fbaf
6
+ metadata.gz: 6a1078f965281a9da9e788bf2b4a6d8bdaf0a1d041bacad624bc9d1cf2619f4146ab6fa303309b6549c832f10405eb8f8f35b6789dbfe94655dd7c60a6d62550
7
+ data.tar.gz: c5544c8cc09bb893c5d02bfa80965373e82418dfe551698b86781afa3dfdada5eeceae324d0cc8585b2ac49224c67f3525cb12f8c665c6b3c0d9dc6cb92114ab
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allure-ruby-adaptor-api (0.6.1)
4
+ allure-ruby-adaptor-api (0.6.2)
5
5
  mimemagic
6
6
  nokogiri (~> 1.6.0)
7
7
  rspec (~> 2.14.0)
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
@@ -26,7 +26,8 @@ module AllureRubyAdaptorApi
26
26
  :type => type,
27
27
  :title => title,
28
28
  :source => attachment.basename,
29
- :size => File.stat(attachment).size
29
+ :size => File.stat(attachment).size,
30
+ :mime_type => mime_type
30
31
  }, step)
31
32
  end
32
33
  end
@@ -1,6 +1,6 @@
1
1
  module AllureRubyAdaptorApi # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.6.1'
3
+ STRING = '0.6.2'
4
4
  ALLURE = '1.4.0'
5
5
  end
6
6
  end
@@ -3,4 +3,4 @@ require 'allure-ruby-adaptor-api'
3
3
 
4
4
  AllureRubyAdaptorApi.configure do |c|
5
5
  c.output_dir = "allure"
6
- end
6
+ end
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.1
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-05 00:00:00.000000000 Z
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.1
140
+ summary: allure-ruby-adaptor-api-0.6.2
141
141
  test_files: []