webshooter 0.0.2a → 0.0.3a
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.
- data/Gemfile.lock +1 -1
- data/README.txt +7 -0
- data/bin/webshooter.rb +1 -0
- data/lib/webshooter/version.rb +1 -1
- data/lib/webshooter/webshotprocessor.rb +2 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
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
data/lib/webshooter/version.rb
CHANGED
|
@@ -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
|
-
-
|
|
9
|
-
version: 0.0.
|
|
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-
|
|
17
|
+
date: 2011-02-20 00:00:00 +01:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|