webshooter 0.0.2a → 0.0.3a

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webshooter (0.0.2a)
4
+ webshooter (0.0.3a)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.txt CHANGED
@@ -1,5 +1,12 @@
1
1
  This library uses the Webkit Ruby Cocoa library to take headless webshots
2
2
 
3
+ # Ruby cocoa working
4
+ - This means it will only work on the system ruby on mac
5
+ - rvm use system (to activate it)
6
+
7
+ # Installation
8
+ gem install webshooter --pre
9
+
3
10
  # Usage
4
11
 
5
12
  ## From within ruby
data/bin/webshooter.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
 
4
+ require 'rubygems'
4
5
  require 'webshooter'
5
6
 
6
7
  module Webshooter
@@ -1,3 +1,3 @@
1
1
  module Webshooter
2
- VERSION = "0.0.2a"
2
+ VERSION = "0.0.3a"
3
3
  end
@@ -73,6 +73,8 @@ class WebShotProcessor
73
73
  #puts "Getting ready for the loadRequest"+uri
74
74
  @webView.mainFrame.loadRequest(NewNSURLRequest.requestWithURL(OSX::NSURL.URLWithString(final_link)))
75
75
 
76
+ #Wait for some pages to terminate
77
+ sleep 2
76
78
  #
77
79
  # Run the main event loop until the frame loads
78
80
  @timeout=false
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2a
9
- version: 0.0.2a
8
+ - 3a
9
+ version: 0.0.3a
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Debois
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-19 00:00:00 +01:00
17
+ date: 2011-02-20 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency