url2png 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ source "http://rubygems.org"
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
9
  gem "rspec", "~> 2.6.0"
10
- gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.5.2"
10
+ gem "bundler", "~> 1.1.3"
11
+ gem "jeweler", "~> 1.8.3"
12
12
  gem "rcov", ">= 0"
13
13
  end
data/Gemfile.lock CHANGED
@@ -3,11 +3,11 @@ GEM
3
3
  specs:
4
4
  diff-lcs (1.1.2)
5
5
  git (1.2.5)
6
- jeweler (1.5.2)
7
- bundler (~> 1.0.0)
6
+ jeweler (1.8.3)
7
+ bundler (~> 1.0)
8
8
  git (>= 1.2.5)
9
9
  rake
10
- rake (0.8.7)
10
+ rake (0.9.2.2)
11
11
  rcov (0.9.9)
12
12
  rspec (2.6.0)
13
13
  rspec-core (~> 2.6.0)
@@ -22,7 +22,7 @@ PLATFORMS
22
22
  ruby
23
23
 
24
24
  DEPENDENCIES
25
- bundler (~> 1.0.0)
26
- jeweler (~> 1.5.2)
25
+ bundler (~> 1.1.3)
26
+ jeweler (~> 1.8.3)
27
27
  rcov
28
28
  rspec (~> 2.6.0)
data/README.markdown CHANGED
@@ -17,13 +17,25 @@ Any Ruby on Rails developer who wants/needs to generate screenshots from sites u
17
17
 
18
18
  First define your public key and shared secret:
19
19
 
20
- Url2png::Config.public_key = 'PXXXXXXXXXXXXX'
21
- Url2png::Config.shared_secret = 'SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
20
+ Url2png.api_key = 'PXXXXXXXXXXXXX'
21
+ Url2png.privat_key = 'SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
22
22
 
23
+ ##### version
24
+ You can define the api version if you want to use an older version of the url2png api.
25
+
26
+ Url2png.api_version = "v4"
27
+
28
+ Available versions:
29
+
30
+ * v6 (default)
31
+ * v4
32
+
33
+
34
+ ##### mode
23
35
  If you are generating local urls in development you can use a placeholder or dummy image.
24
36
  This is done by setting the mode:
25
37
 
26
- Url2png::Config.mode = :placehold if Rails.env.development?
38
+ Url2png.mode = :placehold if Rails.env.development?
27
39
 
28
40
  Options are:
29
41
 
@@ -40,7 +52,52 @@ Generate an image tag:
40
52
 
41
53
  site_image_tag url, [options]
42
54
 
43
- Options are the same as the image_tag in Rails.
55
+
56
+ Options differ by version!
57
+
58
+
59
+ ### Version 6
60
+
61
+ ##### Thumbnail
62
+ Constrain screenshot based on width or height or both.<br>
63
+ default: no resizing
64
+
65
+ = site_image_tag 'http://www.zwartopwit.com', :thumbnail_max_width => 500, :thumbnail_max_height => 500
66
+
67
+
68
+ ##### Viewport
69
+ Set viewport dimensions, adjust to your hearts content.<br>
70
+ default: 1480x1037
71
+
72
+ = site_image_tag 'http://www.zwartopwit.com', :viewport => "1024x900"
73
+
74
+
75
+ ##### Fullpage
76
+ Will attempt to capture entire document canvas.<br>
77
+ default: false
78
+
79
+ = site_image_tag 'http://www.zwartopwit.com', :fullpage => true
80
+
81
+
82
+ ##### Delay
83
+ Extra delay (in seconds) forced between page load and screenshot.<br>
84
+ default: 1<br>
85
+ min: 1<br>
86
+ max: 5<br>
87
+
88
+ example:
89
+
90
+ site_image_tag url, :size => '300x200', :delay => 2
91
+
92
+
93
+ ##### Force
94
+ Forces a fresh screenshot with each request, overwriting the previous copy.<br>
95
+ **You will be charged for every request made using the force option.**
96
+
97
+ = site_image_tag 'http://www.zwartopwit.com', :force => true
98
+
99
+
100
+ ### Version 4
44
101
 
45
102
  By default the size is set to 400 x 400 px.
46
103
  To generate an image with a specific size:
@@ -53,52 +110,45 @@ To only get the image url:
53
110
 
54
111
  Options are:
55
112
 
56
- **:size**<br>
57
- This is a proportion bounding box.<br>
58
- Thumbnails will be resized to fit within this box.<br>
59
- default: 'ORIGINAL'<br>
60
- examples:
113
+ ##### Size
114
+ This is a proportion bounding box.<br>
115
+ Thumbnails will be resized to fit within this box.<br>
116
+ default: 'ORIGINAL'<br>
117
+ examples:
61
118
 
62
119
  site_image_tag url, :size => '500x500'
63
120
 
64
121
  site_image_tag url, :size => 'ORIGINAL'
65
122
 
66
- **:thumbnail** (alias for :size)
123
+ ##### Thumbnail (alias for :size)
67
124
 
68
- **:browser_size**<br>
69
- Set the initial browser screen size.<br>
70
- default: '1024x768'<br>
71
- min: '200x200'<br>
72
- max: '4000x4000'<br>
73
- example:
125
+ ##### Browser size
126
+ Set the initial browser screen size.<br>
127
+ default: '1024x768'<br>
128
+ min: '200x200'<br>
129
+ max: '4000x4000'<br>
130
+ example:
74
131
 
75
132
  site_image_tag url, :size => '300x200', :browser_size => '1024x2500'
76
133
 
77
- **:delay**<br>
78
- Extra delay (in seconds) forced between page load and screenshot.<br>
79
- default: 1<br>
80
- min: 1<br>
81
- max: 5<br>
82
- example:
134
+ ##### Delay
135
+ Extra delay (in seconds) forced between page load and screenshot.<br>
136
+ default: 1<br>
137
+ min: 1<br>
138
+ max: 5<br>
139
+ example:
83
140
 
84
- site_image_tag url, :size => '300x200', :delay => 2
85
-
86
- **:fullscreen**<br>
87
- When true, Will attempt to capture entire document canvas.<br>
88
- Will never return screenshot smaller than "Initial Screen Size".<br>
89
- default: false<br>
90
- example:
91
-
92
- site_image_tag url, :size => '300x200', :fullscreen => true
141
+ site_image_tag url, :size => '300x200', :delay => 2
93
142
 
143
+ ##### Fullscreen
144
+ When true, Will attempt to capture entire document canvas.<br>
145
+ Will never return screenshot smaller than "Initial Screen Size".<br>
146
+ default: false<br>
94
147
 
95
- Original API docs: https://url2png.com/doc/
96
-
148
+ example:
97
149
 
150
+ site_image_tag url, :size => '300x200', :fullscreen => true
98
151
 
99
- ### API Version
100
- From version 0.1.0 and up this gem is using version 4 of the url2png API.<br>
101
- Version 0.0.7 is the last one using version 3 of the API.
102
152
 
103
153
 
104
154
  ## Important
@@ -119,6 +169,12 @@ Note that this gem is still under development.
119
169
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
120
170
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
121
171
 
172
+ Original API docs:
173
+
174
+ * v4: https://url2png.com/doc/
175
+ * v6: http://staging.url2png.com/docs/v6.php
176
+
177
+
122
178
  ## Copyright
123
179
 
124
180
  Copyright (c) 2011 Wout Fierens. See LICENSE.txt for
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
18
18
  gem.summary = %Q{A ruby gem wrapping the url2png.com screenshot service API}
19
19
  gem.description = %Q{Generate screenshots from websites almost instantly at any preferred size using ruby and the url2png.com API}
20
20
  gem.email = "wout@impinc.co.uk"
21
- gem.authors = ["wout fierens", "fuzzyalej", "ceritium", "lukemelia"]
21
+ gem.authors = ["wout fierens", "fuzzyalej", "ceritium", "lukemelia", "robinhoudmeyers"]
22
22
  # Include your dependencies below. Runtime dependencies are required when using your gem,
23
23
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
24
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.0
data/lib/url2png.rb CHANGED
@@ -1,5 +1,5 @@
1
- require 'uri'
2
1
  require 'digest'
2
+ require 'cgi' unless defined?(CGI)
3
3
 
4
4
  require 'url2png/config'
5
5
  require 'url2png/rails'
@@ -1,59 +1,53 @@
1
1
  module Url2png
2
+ extend self
2
3
 
3
- module Config
4
-
5
- # modes
6
- MODES = %w{production placehold dummy}
7
-
8
- def self.mode= mode
9
- raise "Url2png error: Invalid mode, only #{ MODES.join(', ') } are allowed" unless MODES.include?(mode.to_s)
10
- @url2png_mode ||= mode.to_s
11
- end
12
-
13
- def self.mode
14
- @url2png_mode ||= 'production'
15
- end
4
+ # modes
5
+ MODES = %w{production placehold dummy}
6
+
7
+ def config c = {}
8
+ # SET
9
+ # api_key
10
+ # private_key
11
+ # mode (production[default] placehold dummy)
12
+ # version (v6[default])
16
13
 
17
- # api settings
18
- def self.api_url protocol
19
- @url2png_url ||= "#{ protocol }api.url2png.com"
20
- end
21
-
22
- def self.api_version
23
- @url2png_version ||= 'v4'
24
- end
25
-
26
- # public key setter and getter
27
- def self.public_key= key
28
- raise 'Url2png error: Invalid public key!' unless key.match(/^P/)
29
- @url2png_key ||= key
30
- end
31
-
32
- def self.public_key
33
- raise 'Url2png error: No public key defined!' if @url2png_key.nil?
34
- @url2png_key
35
- end
36
-
37
- # shared secret setter and getter
38
- def self.shared_secret= secret
39
- raise 'Url2png error: Invalid shared secret!' unless secret.match(/^S/)
40
- @url2png_secret ||= secret
14
+ c.each do |key, value|
15
+ case key
16
+
17
+ when :api_key
18
+ @api_key = value
19
+ when :private_key
20
+ @private_key = value
21
+ when :mode
22
+ raise "Url2png error: Invalid mode, only #{ MODES.join(', ') } are allowed" unless MODES.include?(value.to_s)
23
+ @mode = value
24
+ when :api_version
25
+ @api_version = value
26
+ end
41
27
  end
28
+ end
29
+
42
30
 
43
- def self.shared_secret
44
- raise 'Url2png error: No shared secret defined!' if @url2png_secret.nil?
45
- @url2png_secret
46
- end
31
+ # GETTERS
32
+ def api_key
33
+ raise 'Url2png error: No public key defined!' if @api_key.nil?
34
+ @api_key
35
+ end
47
36
 
48
- # size
49
- def self.default_size= size
50
- @url2png_size ||= size
51
- end
37
+ def private_key
38
+ raise 'Url2png error: No private key defined!' if @private_key.nil?
39
+ @private_key
40
+ end
52
41
 
53
- def self.default_size
54
- @url2png_size ||= '400x400'
55
- end
56
-
42
+ def mode
43
+ @mode ||= 'production' # default: production
57
44
  end
58
45
 
46
+ def api_version
47
+ @api_version ||= 'v6' #default: v6
48
+ end
49
+
50
+ def default_size
51
+ @default_size ||= "400x400"
52
+ end
59
53
  end
@@ -2,11 +2,10 @@ module Url2png
2
2
  module Dimensions
3
3
 
4
4
  def self.parse options
5
- # convert tumbnail to size to ensure compatibility with older gem versions
6
- options[:size] ||= options[:thumbnail]
5
+ options[:size] ||= "#{options[:thumbnail_max_width]}x#{options[:thumbnail_max_height]}"
7
6
 
8
7
  # distill image size
9
- size = (options[:size] || Url2png::Config.default_size).split('x')
8
+ size = (options[:size] || Url2png.default_size).split('x')
10
9
  width = options[:width] || size[0]
11
10
  height = options[:height] || size[1]
12
11
 
@@ -7,24 +7,18 @@ module Url2png
7
7
  def site_image_tag url, options = {}
8
8
  # parse size
9
9
  dim = Url2png::Dimensions.parse(options)
10
-
10
+
11
11
  # ensure image alt
12
12
  alt = options.key?(:alt) ? options.delete(:alt) : url
13
13
 
14
- # filter options
15
- url2png_options = {}
16
- [:size, :thumbnail, :browser_size, :delay, :fullscreen].each do |key|
17
- url2png_options[key] = options.delete(key) if options.key?(key)
18
- end
19
-
20
14
  # build image tag
21
15
  img = '<img'
22
- img << " src='#{ site_image_url(url, url2png_options) }'"
16
+ img << " src='#{ site_image_url(url, options) }'"
23
17
  img << " alt='#{ alt }'"
24
- img << " width='#{ dim[:width] }'"
25
- img << " height='#{ dim[:height] }'"
18
+ img << " width='#{ dim[:width] }'" if options[:size]
19
+ img << " height='#{ dim[:height] }'" if options[:size]
26
20
  options.each_pair do |k, v|
27
- img << " #{ k }='#{ v }'" unless v.nil? || v == ''
21
+ img << " #{ k }=#{ v }" unless v.nil? || v == ''
28
22
  end
29
23
  img << ' />'
30
24
  img.html_safe
@@ -35,7 +29,7 @@ module Url2png
35
29
  # parse size
36
30
  dim = Url2png::Dimensions.parse(options)
37
31
 
38
- case Url2png::Config.mode
32
+ case Url2png.mode
39
33
  when 'dummy'
40
34
  'data:image/png;base64,
41
35
  iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAADHmlDQ1BJQ0MgUHJvZmlsZQAAeAGF
@@ -65,36 +59,71 @@ module Url2png
65
59
  when 'placehold'
66
60
  "http://placehold.it/#{ dim[:size] }"
67
61
 
68
- else
69
- options[:protocol] ||= 'http://'
62
+ else
63
+ # build parameters portion of URL
64
+ case Url2png.api_version
65
+
66
+ when 'v6'
67
+ ######
68
+ # v6 #
69
+ ######
70
+
71
+ # http://beta.url2png.com/v6/<APIKEY>/<TOKEN>/png/?url=google.com
72
+
73
+ query = {
74
+ :url => url,
75
+ :force => options[:force], # [false,always,timestamp] Default: false
76
+ :fullpage => options[:fullpage], # [true,false] Default: false
77
+ :thumbnail_max_width => options[:thumbnail_max_width], # scaled img width px; Default no-scaling
78
+ :thumbnail_max_height => options[:thumbnail_max_height],
79
+ :viewport => options[:viewport], # Max 5000x5000; Default 1280x1024
80
+ }
70
81
 
71
- # escape the url
72
- safe_url = URI.escape(url)
82
+ query_string = query.
83
+ sort_by {|s| s[0].to_s }. # sort query by keys for uniformity
84
+ select {|s| s[1] }. # skip empty options
85
+ map {|s| s.map {|v| CGI::escape(v.to_s) }.join('=') }. # escape keys & vals
86
+ join('&')
73
87
 
74
- # generate token
75
- token = Digest::MD5.hexdigest("#{ Url2png::Config.shared_secret }+#{ safe_url }")
88
+ # generate token
89
+ token = Digest::MD5.hexdigest(query_string + Url2png.private_key)
76
90
 
77
- # build options portion of URL
78
- url_options = []
79
- url_options << "t#{ dim[:size] }" if dim[:size]
80
- url_options << "s#{ options[:browser_size] }" if options[:browser_size]
81
- url_options << "d#{ options[:delay] }" if options[:delay]
82
- url_options << "FULL" if options[:fullscreen]
83
- url_options_string = url_options.join('-')
84
91
 
85
- # build image url
86
- File.join(
87
- Url2png::Config.api_url(options[:protocol]),
88
- Url2png::Config.api_version,
89
- Url2png::Config.public_key,
90
- token,
91
- url_options_string,
92
- safe_url
93
- )
92
+ "http://beta.url2png.com/v6/#{Url2png.api_key}/#{token}/png/?#{query_string}"
93
+
94
+ when 'v4'
95
+ ######
96
+ # v4 #
97
+ ######
98
+
99
+ # http://beta.url2png.com/v4/<APIKEY>/<TOKEN>/<VIEWPORT>-<THUMBNAIL>-<FULL>/<TARGET>
100
+
101
+ # escape the url
102
+ safe_url= CGI::escape(url)
103
+
104
+ # generate token
105
+ token = Digest::MD5.hexdigest("#{ Url2png.private_key }+#{ safe_url }")
106
+
107
+ # build options portion of URL
108
+ url_options = []
109
+ url_options << "t#{ dim[:size] }" if dim[:size]
110
+ url_options << "s#{ options[:browser_size] }" if options[:browser_size]
111
+ url_options << "d#{ options[:delay] }" if options[:delay]
112
+ url_options << "FULL" if options[:fullscreen]
113
+ url_options_string = url_options.join('-')
114
+
115
+ # build image url
116
+ File.join(
117
+ "http://beta.url2png.com",
118
+ Url2png.api_version,
119
+ Url2png.api_key,
120
+ token,
121
+ url_options_string,
122
+ safe_url
123
+ )
124
+ end
94
125
  end
95
-
96
126
  end
97
-
98
127
  end
99
128
  end
100
129
  end
data/url2png.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "url2png"
8
- s.version = "0.1.2"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["wout fierens", "fuzzyalej", "ceritium", "lukemelia"]
12
- s.date = "2011-12-07"
11
+ s.authors = ["wout fierens", "fuzzyalej", "ceritium", "lukemelia", "robinhoudmeyers"]
12
+ s.date = "2012-05-25"
13
13
  s.description = "Generate screenshots from websites almost instantly at any preferred size using ruby and the url2png.com API"
14
14
  s.email = "wout@impinc.co.uk"
15
15
  s.extra_rdoc_files = [
@@ -38,34 +38,29 @@ Gem::Specification.new do |s|
38
38
  s.homepage = "http://github.com/wout/url2png-gem"
39
39
  s.licenses = ["MIT"]
40
40
  s.require_paths = ["lib"]
41
- s.rubygems_version = "1.8.11"
41
+ s.rubygems_version = "1.8.17"
42
42
  s.summary = "A ruby gem wrapping the url2png.com screenshot service API"
43
- s.test_files = [
44
- "spec/helpers/common_rspec.rb",
45
- "spec/spec_helper.rb",
46
- "spec/url2png_spec.rb"
47
- ]
48
43
 
49
44
  if s.respond_to? :specification_version then
50
45
  s.specification_version = 3
51
46
 
52
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
48
  s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
54
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
55
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
49
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
50
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
56
51
  s.add_development_dependency(%q<rcov>, [">= 0"])
57
52
  s.add_development_dependency(%q<rspec>, ["> 2.6.0"])
58
53
  else
59
54
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
60
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.1.3"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
62
57
  s.add_dependency(%q<rcov>, [">= 0"])
63
58
  s.add_dependency(%q<rspec>, ["> 2.6.0"])
64
59
  end
65
60
  else
66
61
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
67
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
68
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
62
+ s.add_dependency(%q<bundler>, ["~> 1.1.3"])
63
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
69
64
  s.add_dependency(%q<rcov>, [">= 0"])
70
65
  s.add_dependency(%q<rspec>, ["> 2.6.0"])
71
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url2png
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,14 +9,15 @@ authors:
9
9
  - fuzzyalej
10
10
  - ceritium
11
11
  - lukemelia
12
+ - robinhoudmeyers
12
13
  autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
- date: 2011-12-07 00:00:00.000000000Z
16
+ date: 2012-05-25 00:00:00.000000000 Z
16
17
  dependencies:
17
18
  - !ruby/object:Gem::Dependency
18
19
  name: rspec
19
- requirement: &2154802540 !ruby/object:Gem::Requirement
20
+ requirement: &70159176153680 !ruby/object:Gem::Requirement
20
21
  none: false
21
22
  requirements:
22
23
  - - ~>
@@ -24,32 +25,32 @@ dependencies:
24
25
  version: 2.6.0
25
26
  type: :development
26
27
  prerelease: false
27
- version_requirements: *2154802540
28
+ version_requirements: *70159176153680
28
29
  - !ruby/object:Gem::Dependency
29
30
  name: bundler
30
- requirement: &2154801920 !ruby/object:Gem::Requirement
31
+ requirement: &70159176152600 !ruby/object:Gem::Requirement
31
32
  none: false
32
33
  requirements:
33
34
  - - ~>
34
35
  - !ruby/object:Gem::Version
35
- version: 1.0.0
36
+ version: 1.1.3
36
37
  type: :development
37
38
  prerelease: false
38
- version_requirements: *2154801920
39
+ version_requirements: *70159176152600
39
40
  - !ruby/object:Gem::Dependency
40
41
  name: jeweler
41
- requirement: &2154801320 !ruby/object:Gem::Requirement
42
+ requirement: &70159176166560 !ruby/object:Gem::Requirement
42
43
  none: false
43
44
  requirements:
44
45
  - - ~>
45
46
  - !ruby/object:Gem::Version
46
- version: 1.5.2
47
+ version: 1.8.3
47
48
  type: :development
48
49
  prerelease: false
49
- version_requirements: *2154801320
50
+ version_requirements: *70159176166560
50
51
  - !ruby/object:Gem::Dependency
51
52
  name: rcov
52
- requirement: &2154800700 !ruby/object:Gem::Requirement
53
+ requirement: &70159176163480 !ruby/object:Gem::Requirement
53
54
  none: false
54
55
  requirements:
55
56
  - - ! '>='
@@ -57,10 +58,10 @@ dependencies:
57
58
  version: '0'
58
59
  type: :development
59
60
  prerelease: false
60
- version_requirements: *2154800700
61
+ version_requirements: *70159176163480
61
62
  - !ruby/object:Gem::Dependency
62
63
  name: rspec
63
- requirement: &2154800080 !ruby/object:Gem::Requirement
64
+ requirement: &70159176201400 !ruby/object:Gem::Requirement
64
65
  none: false
65
66
  requirements:
66
67
  - - ! '>'
@@ -68,7 +69,7 @@ dependencies:
68
69
  version: 2.6.0
69
70
  type: :development
70
71
  prerelease: false
71
- version_requirements: *2154800080
72
+ version_requirements: *70159176201400
72
73
  description: Generate screenshots from websites almost instantly at any preferred
73
74
  size using ruby and the url2png.com API
74
75
  email: wout@impinc.co.uk
@@ -110,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
111
  version: '0'
111
112
  segments:
112
113
  - 0
113
- hash: -1197006310147786361
114
+ hash: 3789530823502758367
114
115
  required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  none: false
116
117
  requirements:
@@ -119,11 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
120
  version: '0'
120
121
  requirements: []
121
122
  rubyforge_project:
122
- rubygems_version: 1.8.11
123
+ rubygems_version: 1.8.17
123
124
  signing_key:
124
125
  specification_version: 3
125
126
  summary: A ruby gem wrapping the url2png.com screenshot service API
126
- test_files:
127
- - spec/helpers/common_rspec.rb
128
- - spec/spec_helper.rb
129
- - spec/url2png_spec.rb
127
+ test_files: []