commitshots 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/phantomjs/screenshot.js +14 -0
  2. metadata +2 -1
@@ -0,0 +1,14 @@
1
+ var system = require('system');
2
+ var url = system.args[1];
3
+ var filename = system.args[2];
4
+ var width = system.args[3];
5
+ var height = system.args[4];
6
+
7
+ var page = new WebPage();
8
+ page.viewportSize = { width: width, height: height };
9
+ page.open(url, function (status) {
10
+ window.setTimeout(function () {
11
+ page.render(filename);
12
+ phantom.exit();
13
+ }, 100);
14
+ });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commitshots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,6 +20,7 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - lib/commitshots.rb
22
22
  - lib/commitshots/commits.rb
23
+ - lib/phantomjs/screenshot.js
23
24
  - bin/commitshots
24
25
  homepage: http://rubygems.org/gems/commitshots
25
26
  licenses: []