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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15735fb1accbb4317333e83ac608d2bfad56f66d
4
- data.tar.gz: 3a8fdbb5cf598ed40777044cb9534cd2a090c412
3
+ metadata.gz: 2c31d73314e5756f24029458d3393b224d3b2dc9
4
+ data.tar.gz: 733328151866ab81c14461274aa5dbb3eab5609f
5
5
  SHA512:
6
- metadata.gz: c922f8aee875aea5c36ea64d608c6c8ed7bee3ca03f734fda18f87384dbc32f32437a57bcdf5592ea8b4384b8967b5eba7cbf898a5fb493a5ca7c83f0999a70f
7
- data.tar.gz: 1fd75a0fd4951b8a5bf42f4854c6bb35761117ec3fab2d0132624fd6e7b99c1b59c68ae8625cb2cdaf8d443422864994d3dfe156f811162d0d129097d5d97e08
6
+ metadata.gz: d44a6e2b4a26d0bbfc1d79a6ddfc46f9f88b1485f98d731105856e0e625dc8bf974bc704fc54f513675a08fdbdd945129fb8eaedad5f9e726762e3ecdaf33402
7
+ data.tar.gz: 6e5148ebf79e2dcff0c0bec8c67be5968e758b1b8aa059792e87fbaa39bdbd81063ab1698b09788142d7ae67a76d648738a6583732c4e38e065fe2c7e5b6d5dd
@@ -1,12 +1,15 @@
1
1
  var webpage = require('webpage'),
2
2
  system = require('system');
3
3
 
4
- var url = system.args[1];
4
+ var url = system.args[1],
5
+ output = system.args[2];
5
6
 
6
- webpage.open(url)
7
+ var page = webpage.create();
8
+
9
+ page.open(url)
7
10
  .then(function() {
8
- webpage.viewportSize = { width: 650, height: 320 };
9
- webpage.render('page.png', { onlyViewport: true });
11
+ page.viewportSize = { width: 650, height: 320 };
12
+ page.render(output, { onlyViewport: true });
10
13
 
11
14
  slimer.exit();
12
15
  });
@@ -1,3 +1,3 @@
1
1
  module Yabbie
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabbie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Bernardeli