reqres_rspec 0.0.11 → 0.0.12

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: f048651cd93282fe5ea4a8179ed53cb40eb55b57
4
- data.tar.gz: 6e5d66c69bf9b52bfc08abff9d3d48bbe56bd74c
3
+ metadata.gz: cc616b701a128d060e9b11274aa5fbc4ab20cfef
4
+ data.tar.gz: 0c16a1c17d596154717d13c9844cd0434928eda9
5
5
  SHA512:
6
- metadata.gz: e6ca818157a65ba6f8c3fede3e208282d3a0edd8c9bbcea41b5f408ddeaae3b5f88d42838bba400f702fea7af8b5a0e4c097ac10d6d46ad1995603b23c080763
7
- data.tar.gz: de3f84254c7b1b8c8037c8e018c8c7dba4dfc4a93acab62cb2c8692d2403b0bb71e9120b35c149474d16934e406e991010e227cf64d77cbe2b8e078e3976a237
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
- files_arg = files.map { |f| f if f =~ /\/rspec_docs_\d+\.html/ }.compact.sort.join(' ')
13
+ if files.size > 0
14
+ files_arg = files.map { |f| f if f =~ /\/rspec_docs_\d+\.html/ }.compact.sort.join('" "')
14
15
 
15
- `#{wkhtmltopdf_path} #{files_arg} #{pdf_doc_path}`
16
+ `#{wkhtmltopdf_path} "#{files_arg}" "#{pdf_doc_path}"`
16
17
 
17
- puts "saved to #{pdf_doc_path}" if File.exists? pdf_doc_path
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
@@ -1,3 +1,3 @@
1
1
  module ReqresRspec
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
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.11
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-16 00:00:00.000000000 Z
11
+ date: 2013-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler