phantomjs.rb 1.0.0 → 1.0.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzhkY2U5YjQ1ZDM0YWE1NGY3NDIzMTczMjBmNTQzMTdlZTYyZmRkZg==
4
+ YzdiZTc3OWFlMWE3MDc2N2NkMWZiMzczMjEwY2FiOGUzN2Q2OTYyOA==
5
5
  data.tar.gz: !binary |-
6
- YWZiY2JjYWFiNzRkMTZiMjQzYmU3YWM3ODQ3YzZlMzdkMzNjYzU3MA==
6
+ MjI4ODIyNTY3ZGFjYmIzOTMxMWJkZGQzNmNiNGZlNGE4ZDczOWUwMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODhjMDQ4ZDVlNWViMDViMWViODQ2ZDdhYmNhMjM3ZTZmODE5Nzg4MzVlNzc5
10
- MmJhODU3OTQzOGE4NTk3NTY2NzFhZWU4YzQ3ZDkwNzNlMDJmYmZjMmM2OTk1
11
- YjQ3Y2MzYTUyY2VlNjY4M2NiZTVlYmMyOTJmZGZjMjVmN2JlY2Y=
9
+ M2UwYjQzOThmNGI2MTM1YTlhNzk4NDVmZTU1OTkyMDRjYjdmOGE4MTlmNTU5
10
+ OTg3ZDU0MGE3MmRlMzE3NDdkZTVkYzEwYWZjZDI3MTE0Njc3YTQ5Zjk0ZjE0
11
+ N2I4NjU3OTk1YjYyZGE4YjI4OTdhMmM1MzUwNWRhNDczZTdkZmY=
12
12
  data.tar.gz: !binary |-
13
- YTlmMDFmZjlhYTcwMTAyODRjODczODBlYzhmOGIzOGI1NWQ1YjFhMTBiNjc1
14
- ZWE5MmNiZTdiNzcwNGU5NTQzYTIyNDg0ZTI3MmEzMmEyZmJjYWQ5MjFjMDU0
15
- N2E0NDNkYjVlZjk1ZTAxMTU1MmIzNGE4Y2FhOGFmZTczYzczNDM=
13
+ Mjk5YmVmZTg5YWE1MzVkMzE4ZjA1NzJkMzAwNWU4OTI3YjMxOWFjYmI0MjQw
14
+ OGM0YThkZWI4NmM3NTliNDg5NGNjOGZkMWJlYThmMjI3MzdhNmZkY2E1ZDI5
15
+ ZTUzZmZhZThiMDUwY2Y5ZGY3NzAzNjE5ZTBiOWViYTA3NmZkYTg=
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 2013.05.16, Version 1.0.1
2
+
3
+ * Added better error messaging when script doesn't exist
4
+
1
5
  2013.05.16, Version 1.0.0
2
6
 
3
7
  * Removed inclusion of phantomjs binaries in vendor.
@@ -11,7 +11,9 @@ class Phantomjs
11
11
  #
12
12
  # Returns the stdout output of phantomjs
13
13
  def self.run(script, *args)
14
- raise NoSuchPathError unless File.exist?(File.expand_path(script))
14
+ epath = File.expand_path(script)
15
+
16
+ raise NoSuchPathError.new(epath) unless File.exist?(epath)
15
17
 
16
18
  string_args = args.join(" ")
17
19
 
@@ -1,3 +1,3 @@
1
1
  class Phantomjs
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantomjs.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Estoque