reqres_rspec 0.0.11 → 0.0.12
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/lib/reqres_rspec/generators/pdf.rb +7 -3
- data/lib/reqres_rspec/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: cc616b701a128d060e9b11274aa5fbc4ab20cfef
|
|
4
|
+
data.tar.gz: 0c16a1c17d596154717d13c9844cd0434928eda9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ceb21af28c54dcf38567616b0a0e6e9849147c45a07133e190bcc1bc5a90cf6c27aa9ecb67df38e3784fc9209d50ab48fb82537155c271b559e70cc7c4dbf508
|
|
7
|
+
data.tar.gz: 170e11e94d13b881044284e79292b992a594aa9f79d367f31453ee6d8cd4a8fa175d0965dce36acd1a326389ec475e66ff8cd3903d08d204039a72f7a4c12b3e
|
|
@@ -10,11 +10,15 @@ module ReqresRspec
|
|
|
10
10
|
|
|
11
11
|
if File.exists?(wkhtmltopdf_path)
|
|
12
12
|
files = Dir["#{html_docs_root}/rspec_docs_*.html"]
|
|
13
|
-
|
|
13
|
+
if files.size > 0
|
|
14
|
+
files_arg = files.map { |f| f if f =~ /\/rspec_docs_\d+\.html/ }.compact.sort.join('" "')
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
`#{wkhtmltopdf_path} "#{files_arg}" "#{pdf_doc_path}"`
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
puts "saved to #{pdf_doc_path}" if File.exists? pdf_doc_path
|
|
19
|
+
else
|
|
20
|
+
puts 'No HTML files found'
|
|
21
|
+
end
|
|
18
22
|
else
|
|
19
23
|
puts 'ERROR: wkhtmltopdf app not installed! Please check http://code.google.com/p/wkhtmltopdf/ for more info'
|
|
20
24
|
end
|
data/lib/reqres_rspec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reqres_rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rilian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|