url2png 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f59fc29ade699fcf1554b293370db03b0b4d9228
4
+ data.tar.gz: 63cefd2bb066d82a9db7ef6ac91efd2f8224f647
5
+ SHA512:
6
+ metadata.gz: a1a757d71f35a271d6e30ba2e6c37c77126069e7c3fb74d1efef72fb584f58f61044693ec86e30d3d873a92972dcc3751e091cae1e88f66ce221fdb3978b2167
7
+ data.tar.gz: 512544eb0cd53c1e17c1cdd2bb9b322b32e9adbcb89f9635996f42a1de5436bd117fd43aaad0de67065783f41356d728b02c6779a9564a437ded7a8d7c0cfb70
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ source "http://rubygems.org"
4
4
  # Include everything needed to run rake, tests, features, etc.
5
5
  group :development do
6
6
  gem "rspec", "~> 2.11.0"
7
- gem "jeweler", "~> 1.8.3"
8
- gem "rcov", ">= 0"
7
+ gem "jeweler", "~> 2.2.1"
8
+ gem "rake", "~> 10.0"
9
+ gem "simplecov"
9
10
  end
@@ -1,14 +1,58 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ addressable (2.7.0)
5
+ public_suffix (>= 2.0.2, < 5.0)
6
+ builder (3.2.4)
7
+ descendants_tracker (0.0.4)
8
+ thread_safe (~> 0.3, >= 0.3.1)
4
9
  diff-lcs (1.1.3)
5
- git (1.2.5)
6
- jeweler (1.8.3)
7
- bundler (~> 1.0)
10
+ docile (1.1.5)
11
+ faraday (0.9.2)
12
+ multipart-post (>= 1.2, < 3)
13
+ git (1.7.0)
14
+ rchardet (~> 1.8)
15
+ github_api (0.11.3)
16
+ addressable (~> 2.3)
17
+ descendants_tracker (~> 0.0.1)
18
+ faraday (~> 0.8, < 0.10)
19
+ hashie (>= 1.2)
20
+ multi_json (>= 1.7.5, < 2.0)
21
+ nokogiri (~> 1.6.0)
22
+ oauth2
23
+ hashie (4.1.0)
24
+ highline (2.0.3)
25
+ jeweler (2.2.1)
26
+ builder
27
+ bundler (>= 1.0)
8
28
  git (>= 1.2.5)
29
+ github_api (~> 0.11.0)
30
+ highline (>= 1.6.15)
31
+ nokogiri (>= 1.5.10)
32
+ psych (~> 2.2)
9
33
  rake
10
- rake (0.9.2.2)
11
- rcov (0.9.9)
34
+ rdoc
35
+ semver
36
+ json (2.0.3)
37
+ jwt (2.2.2)
38
+ mini_portile2 (2.1.0)
39
+ multi_json (1.15.0)
40
+ multi_xml (0.6.0)
41
+ multipart-post (2.1.1)
42
+ nokogiri (1.6.8.1)
43
+ mini_portile2 (~> 2.1.0)
44
+ oauth2 (1.4.4)
45
+ faraday (>= 0.8, < 2.0)
46
+ jwt (>= 1.0, < 3.0)
47
+ multi_json (~> 1.3)
48
+ multi_xml (~> 0.5)
49
+ rack (>= 1.2, < 3)
50
+ psych (2.2.4)
51
+ public_suffix (4.0.6)
52
+ rack (2.2.3)
53
+ rake (10.5.0)
54
+ rchardet (1.8.0)
55
+ rdoc (6.2.1)
12
56
  rspec (2.11.0)
13
57
  rspec-core (~> 2.11.0)
14
58
  rspec-expectations (~> 2.11.0)
@@ -17,11 +61,22 @@ GEM
17
61
  rspec-expectations (2.11.3)
18
62
  diff-lcs (~> 1.1.3)
19
63
  rspec-mocks (2.11.3)
64
+ semver (1.0.1)
65
+ simplecov (0.12.0)
66
+ docile (~> 1.1.0)
67
+ json (>= 1.8, < 3)
68
+ simplecov-html (~> 0.10.0)
69
+ simplecov-html (0.10.0)
70
+ thread_safe (0.3.6)
20
71
 
21
72
  PLATFORMS
22
73
  ruby
23
74
 
24
75
  DEPENDENCIES
25
- jeweler (~> 1.8.3)
26
- rcov
76
+ jeweler (~> 2.2.1)
77
+ rake (~> 10.0)
27
78
  rspec (~> 2.11.0)
79
+ simplecov
80
+
81
+ BUNDLED WITH
82
+ 1.17.3
@@ -17,20 +17,35 @@ Any Ruby on Rails developer who wants/needs to generate screenshots from sites u
17
17
  You must define your public key and shared secret, they are required:
18
18
 
19
19
  Url2png.config({
20
- :api_key => 'PXXXXXXXXXXXXX',
21
- :private_key => 'SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
20
+
21
+ # required
22
+ :api_key => 'PXXXXXXXXXXXXX',
23
+ :private_key => 'SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
24
+
25
+ # optional
26
+ :api_version => 'v4',
27
+ :api_url => 'http://beta.url2png.com',
28
+ :mode => 'production',
29
+ :default_size => '500x500'
30
+
22
31
  })
23
32
 
24
- ##### version
25
- You can define the api version if you want to use an different version of the url2png api.
26
-
33
+ ##### api_version
34
+ You can define the api version if you want to use an different version of the url2png api.
35
+
27
36
  Url2png.api_version = 'v4'
28
- g
29
37
  Available versions:
30
38
 
31
- * v3
32
- * v4
33
39
  * v6 (default)
40
+ * v4
41
+ * v3
42
+
43
+
44
+ ##### api_url
45
+
46
+ Define an option api_url. By default 'http://beta.url2png.com'.
47
+
48
+ Url2png.api_url = 'http://beta.url2png.com'
34
49
 
35
50
 
36
51
  ##### mode
@@ -60,14 +75,14 @@ In Rails you probably want to do configuration in an initializer.
60
75
  Generate an image tag:
61
76
 
62
77
  url2png_image_tag url, [options]
63
-
78
+
64
79
  # alias (older version)
65
80
  site_image_tag url, [options]
66
81
 
67
82
  To only get the image url:
68
83
 
69
84
  url2png_image_url url, [options]
70
-
85
+
71
86
  # alias (older version)
72
87
  site_image_url url, [options]
73
88
 
@@ -80,11 +95,11 @@ Options differ by version!
80
95
  ##### Thumbnail
81
96
  Constrain screenshot based on width or height or both.<br>
82
97
  default: no resizing
83
-
84
- url2png_image_tag 'http://www.zwartopwit.com',
85
- :thumbnail_max_width => 500,
98
+
99
+ url2png_image_tag 'http://www.zwartopwit.com',
100
+ :thumbnail_max_width => 500,
86
101
  :thumbnail_max_height => 500
87
-
102
+
88
103
  # alias for :thumbnail_...
89
104
  :max_width => 500
90
105
  :max_height => 500
@@ -93,7 +108,7 @@ default: no resizing
93
108
  ##### Viewport
94
109
  Set viewport dimensions, adjust to your hearts content.<br>
95
110
  default: 1480x1037
96
-
111
+
97
112
  url2png_image_tag 'http://www.zwartopwit.com',
98
113
  :viewport => '1024x900'
99
114
 
@@ -101,10 +116,10 @@ default: 1480x1037
101
116
  ##### Fullpage
102
117
  Will attempt to capture entire document canvas.<br>
103
118
  default: false
104
-
105
- url2png_image_tag 'http://www.zwartopwit.com',
119
+
120
+ url2png_image_tag 'http://www.zwartopwit.com',
106
121
  :fullpage => true
107
-
122
+
108
123
 
109
124
  ##### Delay
110
125
  Extra delay (in seconds) forced between page load and screenshot.<br>
@@ -114,27 +129,27 @@ default: 1<br>
114
129
  * max: 5<br>
115
130
 
116
131
  example:
117
-
132
+
118
133
  url2png_image_tag 'http://www.zwartopwit.com',
119
- :size => '300x200',
134
+ :size => '300x200',
120
135
  :delay => 2
121
-
122
-
136
+
137
+
123
138
  ##### Force
124
139
  Forces a fresh screenshot with each request, overwriting the previous copy.<br>
125
140
  **You will be charged for every request made using the force option.**
126
-
127
- url2png_image_tag 'http://www.zwartopwit.com',
141
+
142
+ url2png_image_tag 'http://www.zwartopwit.com',
128
143
  :force => true
129
-
130
-
144
+
145
+
131
146
  ##### Size
132
147
  Sets width and height attributes from the html \<img> tag.
133
-
148
+
134
149
  url2png_image_tag 'http://www.zwartopwit.com',
135
150
  :size => "800x600"
136
151
 
137
-
152
+
138
153
  ### Version 4
139
154
 
140
155
  ##### Thumbnail
@@ -144,10 +159,10 @@ Proportions are constrained.
144
159
 
145
160
  examples:
146
161
 
147
- url2png_image_tag 'http://www.zwartopwit.com',
162
+ url2png_image_tag 'http://www.zwartopwit.com',
148
163
  :size => '500x500'
149
164
 
150
- url2png_image_tag 'http://www.zwartopwit.com',
165
+ url2png_image_tag 'http://www.zwartopwit.com',
151
166
  :size => 'ORIGINAL'
152
167
  ##### Size
153
168
 
@@ -162,8 +177,8 @@ Set the initial browser screen size.<br>
162
177
  * max: '4000x4000'<br>
163
178
 
164
179
  example:
165
-
166
- url2png_image_tag 'http://www.zwartopwit.com',
180
+
181
+ url2png_image_tag 'http://www.zwartopwit.com',
167
182
  :browser_size => '1024x2500'
168
183
 
169
184
  ##### Delay
@@ -175,8 +190,8 @@ Extra delay (in seconds) forced between page load and screenshot.<br>
175
190
 
176
191
  example:
177
192
 
178
- url2png_image_tag 'http://www.zwartopwit.com',
179
- :size => '300x200',
193
+ url2png_image_tag 'http://www.zwartopwit.com',
194
+ :size => '300x200',
180
195
  :delay => 2
181
196
 
182
197
  ##### Fullscreen
@@ -186,8 +201,8 @@ default: false<br>
186
201
 
187
202
  example:
188
203
 
189
- url2png_image_tag 'http://www.zwartopwit.com',
190
- :size => '300x200',
204
+ url2png_image_tag 'http://www.zwartopwit.com',
205
+ :size => '300x200',
191
206
  :fullscreen => true
192
207
 
193
208
 
@@ -198,9 +213,9 @@ example:
198
213
  By default the size is set to 400 x 400 px.
199
214
  To generate an image with a specific size:
200
215
 
201
- url2png_image_tag 'http://www.zwartopwit.com',
216
+ url2png_image_tag 'http://www.zwartopwit.com',
202
217
  :size => '300x200'
203
-
218
+
204
219
 
205
220
  ##### Fullscreen
206
221
  When true, Will attempt to capture entire document canvas.<br>
@@ -209,10 +224,10 @@ default: false<br>
209
224
 
210
225
  example:
211
226
 
212
- url2png_image_tag 'http://www.zwartopwit.com',
227
+ url2png_image_tag 'http://www.zwartopwit.com',
213
228
  :fullscreen => true
214
-
215
-
229
+
230
+
216
231
  ## Important
217
232
 
218
233
  This gem is written for Rails 3.
@@ -222,7 +237,7 @@ Note that this gem is still under development.
222
237
 
223
238
 
224
239
  ## Contributing to url2png
225
-
240
+
226
241
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
227
242
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
228
243
  * Fork the project
@@ -231,7 +246,7 @@ Note that this gem is still under development.
231
246
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
232
247
  * 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.
233
248
 
234
- Original API docs:
249
+ Original API docs:
235
250
 
236
251
  * v4: https://url2png.com/doc/
237
252
  * v6: http://staging.url2png.com/docs/v6.php
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
+
3
4
  begin
4
5
  Bundler.setup(:default, :development)
5
6
  rescue Bundler::BundlerError => e
@@ -7,9 +8,11 @@ rescue Bundler::BundlerError => e
7
8
  $stderr.puts "Run `bundle install` to install missing gems"
8
9
  exit e.status_code
9
10
  end
11
+
10
12
  require 'rake'
11
13
 
12
14
  require 'jeweler'
15
+
13
16
  Jeweler::Tasks.new do |gem|
14
17
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
18
  gem.name = "url2png"
@@ -21,23 +24,16 @@ Jeweler::Tasks.new do |gem|
21
24
  gem.authors = ["robinhoudmeyers", "wout fierens", "fuzzyalej", "ceritium", "lukemelia"]
22
25
  # Include your dependencies below. Runtime dependencies are required when using your gem,
23
26
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
-
26
- gem.add_development_dependency 'rspec', '> 2.6.0'
27
27
  end
28
28
  Jeweler::RubygemsDotOrgTasks.new
29
29
 
30
30
  require 'rspec/core'
31
31
  require 'rspec/core/rake_task'
32
+
32
33
  RSpec::Core::RakeTask.new(:spec) do |spec|
33
34
  spec.pattern = FileList['spec/**/*_spec.rb']
34
35
  end
35
36
 
36
- RSpec::Core::RakeTask.new(:rcov) do |spec|
37
- spec.pattern = 'spec/**/*_spec.rb'
38
- spec.rcov = true
39
- end
40
-
41
37
  task :default => :spec
42
38
 
43
39
  require 'rdoc/task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.7
@@ -3,6 +3,7 @@ module Url2png
3
3
 
4
4
  # modes
5
5
  MODES = %w{production placehold dummy}
6
+ API_URL = 'http://beta.url2png.com'
6
7
 
7
8
  def config c = {}
8
9
  # mandatory
@@ -12,6 +13,7 @@ module Url2png
12
13
  # optional
13
14
  self.mode = c[:mode] if c[:mode]
14
15
  self.api_version = c[:api_version] if c[:api_version]
16
+ self.api_url = c[:api_url] if c[:api_url]
15
17
  end
16
18
 
17
19
  def api_key=api_key
@@ -49,6 +51,16 @@ module Url2png
49
51
  @api_version || 'v6' #default: v6
50
52
  end
51
53
 
54
+ def api_url=api_url
55
+ @api_url = api_url || API_URL
56
+ end
57
+
58
+ def api_url
59
+ # reference => http://url2png.com/docs/
60
+ # currently all versions suggest 'beta'
61
+ @api_url || API_URL
62
+ end
63
+
52
64
  def default_size=default_size
53
65
  @default_size = default_size || "400x400"
54
66
  end
@@ -75,7 +75,7 @@ module Url2png
75
75
 
76
76
  # check for unavailable options
77
77
  options_alias = [:max_width, :max_height]
78
- options_available = [:delay, :force, :fullpage, :thumbnail_max_width, :thumbnail_max_height, :viewport, :format]
78
+ options_available = [:accept_languages, :custom_css_url, :delay, :force, :format, :fullpage, :say_cheese, :thumbnail_max_height, :thumbnail_max_width, :ttl, :unique, :user_agent, :viewport]
79
79
 
80
80
  # assign alias to valid option
81
81
  options_alias.each do |key|
@@ -111,8 +111,7 @@ module Url2png
111
111
 
112
112
  # set the format of the asset requested
113
113
  format = options[:format] || "png"
114
-
115
- "http://api.url2png.com/v6/#{Url2png.api_key}/#{token}/#{format}/?#{query_string}"
114
+ "#{ Url2png.api_url }/v6/#{Url2png.api_key}/#{token}/#{format}/?#{query_string}"
116
115
 
117
116
  when 'v4'
118
117
  ######
@@ -144,7 +143,7 @@ module Url2png
144
143
 
145
144
  # build image url
146
145
  File.join(
147
- "http://beta.url2png.com",
146
+ "#{Url2png.api_url}",
148
147
  Url2png.api_version,
149
148
  Url2png.api_key,
150
149
  token,
@@ -180,7 +179,7 @@ module Url2png
180
179
 
181
180
  # build image url
182
181
  File.join(
183
- "http://api.url2png.com",
182
+ "#{Url2png.api_url}",
184
183
  Url2png.api_version,
185
184
  Url2png.api_key,
186
185
  token,
@@ -17,6 +17,30 @@ describe Url2png do
17
17
  end
18
18
 
19
19
  describe "site_image_url" do
20
+ it "should allow unique" do
21
+ site_image_url('http://www.nytimes.com/', unique: 'unique').should =~ %r{unique=unique}
22
+ end
23
+
24
+ it "should allow unique" do
25
+ site_image_url('http://www.nytimes.com/', accept_languages: 'de').should =~ %r{accept_languages=de}
26
+ end
27
+
28
+ it "should allow custom_css_url" do
29
+ site_image_url('http://www.nytimes.com/', custom_css_url: 'http://random.com/random.css').should =~ %r{custom_css_url}
30
+ end
31
+
32
+ it "should allow user_agent" do
33
+ site_image_url('http://www.nytimes.com/', user_agent: 'ua').should =~ %r{user_agent=ua}
34
+ end
35
+
36
+ it "should allow say_cheese" do
37
+ site_image_url('http://www.nytimes.com/', say_cheese: 'true').should =~ %r{say_cheese=true}
38
+ end
39
+
40
+ it "should allow ttl" do
41
+ site_image_url('http://www.nytimes.com/', ttl: 'ttl').should =~ %r{ttl=ttl}
42
+ end
43
+
20
44
  it "should encode the thumbnail max width when provided" do
21
45
  site_image_url('http://www.nytimes.com/', :thumbnail_max_width => '200').should =~ %r{thumbnail_max_width=200}
22
46
  end
@@ -1,8 +1,9 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
1
3
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
5
  require 'rspec'
4
6
  require 'url2png'
5
-
6
7
  # Requires supporting files with custom matchers and macros, etc,
7
8
  # in ./support/ and its subdirectories.
8
9
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
@@ -12,3 +13,4 @@ RSpec.configure do |config|
12
13
  config.run_all_when_everything_filtered = true
13
14
  config.alias_example_to :fit, :focused => true
14
15
  end
16
+
@@ -2,19 +2,21 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: url2png 0.3.7 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = "url2png"
8
- s.version = "0.3.6"
8
+ s.name = "url2png".freeze
9
+ s.version = "0.3.7"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["robinhoudmeyers", "wout fierens", "fuzzyalej", "ceritium", "lukemelia"]
12
- s.date = "2013-01-07"
13
- s.description = "Generate screenshots from websites almost instantly at any preferred size using ruby and the url2png.com API"
14
- s.email = "houdmeyers@gmail.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["robinhoudmeyers".freeze, "wout fierens".freeze, "fuzzyalej".freeze, "ceritium".freeze, "lukemelia".freeze]
14
+ s.date = "2020-10-19"
15
+ s.description = "Generate screenshots from websites almost instantly at any preferred size using ruby and the url2png.com API".freeze
16
+ s.email = "houdmeyers@gmail.com".freeze
15
17
  s.extra_rdoc_files = [
16
18
  "LICENSE.txt",
17
- "README.markdown"
19
+ "README.md"
18
20
  ]
19
21
  s.files = [
20
22
  ".DS_Store",
@@ -23,7 +25,7 @@ Gem::Specification.new do |s|
23
25
  "Gemfile",
24
26
  "Gemfile.lock",
25
27
  "LICENSE.txt",
26
- "README.markdown",
28
+ "README.md",
27
29
  "Rakefile",
28
30
  "VERSION",
29
31
  "lib/url2png.rb",
@@ -36,31 +38,30 @@ Gem::Specification.new do |s|
36
38
  "spec/url2png_spec.rb",
37
39
  "url2png.gemspec"
38
40
  ]
39
- s.homepage = "http://github.com/robinhoudmeyers/url2png-gem"
40
- s.licenses = ["MIT"]
41
- s.require_paths = ["lib"]
42
- s.rubygems_version = "1.8.24"
43
- s.summary = "A ruby gem wrapping the url2png.com screenshot service API"
41
+ s.homepage = "http://github.com/robinhoudmeyers/url2png-gem".freeze
42
+ s.licenses = ["MIT".freeze]
43
+ s.rubygems_version = "2.6.14.4".freeze
44
+ s.summary = "A ruby gem wrapping the url2png.com screenshot service API".freeze
44
45
 
45
46
  if s.respond_to? :specification_version then
46
- s.specification_version = 3
47
+ s.specification_version = 4
47
48
 
48
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
- s.add_development_dependency(%q<rspec>, ["~> 2.11.0"])
50
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
51
- s.add_development_dependency(%q<rcov>, [">= 0"])
52
- s.add_development_dependency(%q<rspec>, ["> 2.6.0"])
50
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 2.11.0"])
51
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.2.1"])
52
+ s.add_development_dependency(%q<rake>.freeze, ["~> 10.0"])
53
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
53
54
  else
54
- s.add_dependency(%q<rspec>, ["~> 2.11.0"])
55
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
56
- s.add_dependency(%q<rcov>, [">= 0"])
57
- s.add_dependency(%q<rspec>, ["> 2.6.0"])
55
+ s.add_dependency(%q<rspec>.freeze, ["~> 2.11.0"])
56
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.2.1"])
57
+ s.add_dependency(%q<rake>.freeze, ["~> 10.0"])
58
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
58
59
  end
59
60
  else
60
- s.add_dependency(%q<rspec>, ["~> 2.11.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
62
- s.add_dependency(%q<rcov>, [">= 0"])
63
- s.add_dependency(%q<rspec>, ["> 2.6.0"])
61
+ s.add_dependency(%q<rspec>.freeze, ["~> 2.11.0"])
62
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.2.1"])
63
+ s.add_dependency(%q<rake>.freeze, ["~> 10.0"])
64
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
64
65
  end
65
66
  end
66
67
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url2png
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
5
- prerelease:
4
+ version: 0.3.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - robinhoudmeyers
@@ -10,75 +9,67 @@ authors:
10
9
  - fuzzyalej
11
10
  - ceritium
12
11
  - lukemelia
13
- autorequire:
12
+ autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
- date: 2013-01-07 00:00:00.000000000 Z
15
+ date: 2020-10-19 00:00:00.000000000 Z
17
16
  dependencies:
18
17
  - !ruby/object:Gem::Dependency
19
18
  name: rspec
20
19
  requirement: !ruby/object:Gem::Requirement
21
- none: false
22
20
  requirements:
23
- - - ~>
21
+ - - "~>"
24
22
  - !ruby/object:Gem::Version
25
23
  version: 2.11.0
26
24
  type: :development
27
25
  prerelease: false
28
26
  version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
27
  requirements:
31
- - - ~>
28
+ - - "~>"
32
29
  - !ruby/object:Gem::Version
33
30
  version: 2.11.0
34
31
  - !ruby/object:Gem::Dependency
35
32
  name: jeweler
36
33
  requirement: !ruby/object:Gem::Requirement
37
- none: false
38
34
  requirements:
39
- - - ~>
35
+ - - "~>"
40
36
  - !ruby/object:Gem::Version
41
- version: 1.8.3
37
+ version: 2.2.1
42
38
  type: :development
43
39
  prerelease: false
44
40
  version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
41
  requirements:
47
- - - ~>
42
+ - - "~>"
48
43
  - !ruby/object:Gem::Version
49
- version: 1.8.3
44
+ version: 2.2.1
50
45
  - !ruby/object:Gem::Dependency
51
- name: rcov
46
+ name: rake
52
47
  requirement: !ruby/object:Gem::Requirement
53
- none: false
54
48
  requirements:
55
- - - ! '>='
49
+ - - "~>"
56
50
  - !ruby/object:Gem::Version
57
- version: '0'
51
+ version: '10.0'
58
52
  type: :development
59
53
  prerelease: false
60
54
  version_requirements: !ruby/object:Gem::Requirement
61
- none: false
62
55
  requirements:
63
- - - ! '>='
56
+ - - "~>"
64
57
  - !ruby/object:Gem::Version
65
- version: '0'
58
+ version: '10.0'
66
59
  - !ruby/object:Gem::Dependency
67
- name: rspec
60
+ name: simplecov
68
61
  requirement: !ruby/object:Gem::Requirement
69
- none: false
70
62
  requirements:
71
- - - ! '>'
63
+ - - ">="
72
64
  - !ruby/object:Gem::Version
73
- version: 2.6.0
65
+ version: '0'
74
66
  type: :development
75
67
  prerelease: false
76
68
  version_requirements: !ruby/object:Gem::Requirement
77
- none: false
78
69
  requirements:
79
- - - ! '>'
70
+ - - ">="
80
71
  - !ruby/object:Gem::Version
81
- version: 2.6.0
72
+ version: '0'
82
73
  description: Generate screenshots from websites almost instantly at any preferred
83
74
  size using ruby and the url2png.com API
84
75
  email: houdmeyers@gmail.com
@@ -86,15 +77,15 @@ executables: []
86
77
  extensions: []
87
78
  extra_rdoc_files:
88
79
  - LICENSE.txt
89
- - README.markdown
80
+ - README.md
90
81
  files:
91
- - .DS_Store
92
- - .document
93
- - .rspec
82
+ - ".DS_Store"
83
+ - ".document"
84
+ - ".rspec"
94
85
  - Gemfile
95
86
  - Gemfile.lock
96
87
  - LICENSE.txt
97
- - README.markdown
88
+ - README.md
98
89
  - Rakefile
99
90
  - VERSION
100
91
  - lib/url2png.rb
@@ -109,29 +100,25 @@ files:
109
100
  homepage: http://github.com/robinhoudmeyers/url2png-gem
110
101
  licenses:
111
102
  - MIT
112
- post_install_message:
103
+ metadata: {}
104
+ post_install_message:
113
105
  rdoc_options: []
114
106
  require_paths:
115
107
  - lib
116
108
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
109
  requirements:
119
- - - ! '>='
110
+ - - ">="
120
111
  - !ruby/object:Gem::Version
121
112
  version: '0'
122
- segments:
123
- - 0
124
- hash: -2451072579334792260
125
113
  required_rubygems_version: !ruby/object:Gem::Requirement
126
- none: false
127
114
  requirements:
128
- - - ! '>='
115
+ - - ">="
129
116
  - !ruby/object:Gem::Version
130
117
  version: '0'
131
118
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 1.8.24
134
- signing_key:
135
- specification_version: 3
119
+ rubyforge_project:
120
+ rubygems_version: 2.6.14.4
121
+ signing_key:
122
+ specification_version: 4
136
123
  summary: A ruby gem wrapping the url2png.com screenshot service API
137
124
  test_files: []