sitemap2png 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -0
- data/lib/sitemap2png/cli.rb +3 -1
- data/lib/sitemap2png/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmM5ZjIxZmUwYmJhYjRkZWU0YTdkMmY1NmVkMWRiMjJmOTgyOGM0MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjcyMjIwZGU1ZTM4N2RhYmYyNzljYjBkY2Y2OWE3MGYwMGU3ZjdjZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjBmNzRjNTIyZmM0MGZkYjQ3NjM2MDlmNzM0NjM3YWJhZDBjNDE2OWFjY2Qx
|
10
|
+
MDJlNGRiNDg2YmQ0OTMyNmI1MWJjMGVjOWZkNmI3YmQ2NmE5MmYxM2EwMGVi
|
11
|
+
YmMzZTI4NDc3MDE0NzAwMjEyZTk2YjU0NjcxNTMwOWI3MWU5Yjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGZmMTJhOWVmN2NhNjRhYzFkNDg3NTdiNmY0NWNlYTQyNzBlZTc2ZWE5NmFh
|
14
|
+
ZTcyMGU3YmRlMGNiMjgwYzExMmI0ZjAyZjRjY2YwNWU5ZWYwMDk2ZTM1MGEy
|
15
|
+
ZWUwYzNiMDczODM0MWE3YmZiZDU4OWNjYjQzMzEzOGQxMDNhNGU=
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# sitemap2png
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/sitemap2png.png)](http://badge.fury.io/rb/sitemap2png)
|
4
|
+
|
3
5
|
> Commandline tool to take screenshots of all pages defined through a sitemap.xml in different resolutions.
|
4
6
|
|
5
7
|
*Note: This tool uses [webkit2png](http://www.paulhammond.org/webkit2png/).*
|
data/lib/sitemap2png/cli.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "thor"
|
2
2
|
require "nokogiri"
|
3
3
|
require "net/http"
|
4
|
+
require 'fileutils'
|
4
5
|
|
5
6
|
module Sitemap2png
|
6
7
|
class Cli < Thor
|
@@ -12,7 +13,8 @@ module Sitemap2png
|
|
12
13
|
webkit2png = "#{basedir}/vendor/webkit2png"
|
13
14
|
|
14
15
|
# validate target
|
15
|
-
|
16
|
+
FileUtils.mkdir_p(target) unless Dir.exists?(target)
|
17
|
+
|
16
18
|
|
17
19
|
begin
|
18
20
|
puts "Loading sitemap..."
|
data/lib/sitemap2png/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitemap2png
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- franklin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|