yabbie 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yabbie/default.js +7 -4
- data/lib/yabbie/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c31d73314e5756f24029458d3393b224d3b2dc9
|
4
|
+
data.tar.gz: 733328151866ab81c14461274aa5dbb3eab5609f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d44a6e2b4a26d0bbfc1d79a6ddfc46f9f88b1485f98d731105856e0e625dc8bf974bc704fc54f513675a08fdbdd945129fb8eaedad5f9e726762e3ecdaf33402
|
7
|
+
data.tar.gz: 6e5148ebf79e2dcff0c0bec8c67be5968e758b1b8aa059792e87fbaa39bdbd81063ab1698b09788142d7ae67a76d648738a6583732c4e38e065fe2c7e5b6d5dd
|
data/lib/yabbie/default.js
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
var webpage = require('webpage'),
|
2
2
|
system = require('system');
|
3
3
|
|
4
|
-
var url
|
4
|
+
var url = system.args[1],
|
5
|
+
output = system.args[2];
|
5
6
|
|
6
|
-
webpage.
|
7
|
+
var page = webpage.create();
|
8
|
+
|
9
|
+
page.open(url)
|
7
10
|
.then(function() {
|
8
|
-
|
9
|
-
|
11
|
+
page.viewportSize = { width: 650, height: 320 };
|
12
|
+
page.render(output, { onlyViewport: true });
|
10
13
|
|
11
14
|
slimer.exit();
|
12
15
|
});
|
data/lib/yabbie/version.rb
CHANGED