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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGY5MzhiOWFlOWIxYTA0NzhlZjU5YzdiN2Q1YjNmYTYwOGMyZTkyOQ==
4
+ ZmM5ZjIxZmUwYmJhYjRkZWU0YTdkMmY1NmVkMWRiMjJmOTgyOGM0MA==
5
5
  data.tar.gz: !binary |-
6
- NzBjZDI2NTczMGZmZDViZmM4MzRmNTJhODZiZWU5YWMwZjMxZjVhZQ==
6
+ YjcyMjIwZGU1ZTM4N2RhYmYyNzljYjBkY2Y2OWE3MGYwMGU3ZjdjZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzU0ZTYxMGFiNWJjNzMyNDI4NjJiMTI0ZmYwYzA3OGIyMjg0YWRlODhjMWRk
10
- MTc0ODY2OTYxMTUxZjlhOTJlMDFhYmQyZDFiOWZjMTFiMzg3MWFlNjAyYjQx
11
- OWRhMmUxMGJkYzE3ZWE2Y2FjM2EyOTZkYzEzNzc4NzRhM2M5NmY=
9
+ MjBmNzRjNTIyZmM0MGZkYjQ3NjM2MDlmNzM0NjM3YWJhZDBjNDE2OWFjY2Qx
10
+ MDJlNGRiNDg2YmQ0OTMyNmI1MWJjMGVjOWZkNmI3YmQ2NmE5MmYxM2EwMGVi
11
+ YmMzZTI4NDc3MDE0NzAwMjEyZTk2YjU0NjcxNTMwOWI3MWU5Yjg=
12
12
  data.tar.gz: !binary |-
13
- ZDI0ZTFjNDNlODIwNjczNDJiMjcyNDJhOTlhNmM0MDFkMWI5MmEwY2FkMzk1
14
- YmQ3NDIzNTY1NTkxNjA5NzQzYTViYmQzMTNkNWMwMTUyOWQxMWY2N2RkNWJj
15
- ZjI4ZmJhOGQ1YjQ4M2FjNGQ4NzA1ZjI2YWY2ZDg1MDYwNWYxMDc=
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/).*
@@ -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
- raise Thor::Error, "Target directory does not exist!" unless Dir.exists?(target)
16
+ FileUtils.mkdir_p(target) unless Dir.exists?(target)
17
+
16
18
 
17
19
  begin
18
20
  puts "Loading sitemap..."
@@ -1,3 +1,3 @@
1
1
  module Sitemap2png
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2013-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor