url2png 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.DS_Store ADDED
Binary file
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 wout fierens
1
+ Copyright (c) 2011 Wout Fierens & Robin Houdmeyers
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -15,20 +15,22 @@ Any Ruby on Rails developer who wants/needs to generate screenshots from sites u
15
15
 
16
16
  ### Configuration
17
17
 
18
- First define your public key and shared secret:
18
+ You must define your public key and shared secret, they are required:
19
19
 
20
- Url2png.api_key = 'PXXXXXXXXXXXXX'
21
- Url2png.privat_key = 'SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
20
+ Url2png.config({
21
+ :api_key => 'PXXXXXXXXXXXXX',
22
+ :private_key => 'SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
23
+ })
22
24
 
23
25
  ##### version
24
- You can define the api version if you want to use an older version of the url2png api.
26
+ You can define the api version if you want to use an different version of the url2png api.
25
27
 
26
28
  Url2png.api_version = "v4"
27
29
 
28
30
  Available versions:
29
31
 
30
- * v6 (default)
31
- * v4
32
+ * v4 (default)
33
+ * v6 (in beta, only for enabled users)
32
34
 
33
35
 
34
36
  ##### mode
@@ -177,17 +179,9 @@ Original API docs:
177
179
 
178
180
  ## Copyright
179
181
 
180
- Copyright (c) 2011 Wout Fierens. See LICENSE.txt for
182
+ Copyright (c) 2011 Wout Fierens & Robin Houdmeyers. See LICENSE.txt for
181
183
  further details.
182
184
 
183
185
 
184
186
 
185
187
 
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
data/Rakefile CHANGED
@@ -13,12 +13,12 @@ require 'jeweler'
13
13
  Jeweler::Tasks.new do |gem|
14
14
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
15
  gem.name = "url2png"
16
- gem.homepage = "http://github.com/wout/url2png-gem"
16
+ gem.homepage = "http://github.com/robinhoudmeyers/url2png-gem"
17
17
  gem.license = "MIT"
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
- gem.email = "wout@impinc.co.uk"
21
- gem.authors = ["wout fierens", "fuzzyalej", "ceritium", "lukemelia", "robinhoudmeyers"]
20
+ gem.email = "houdmeyers@gmail.com"
21
+ gem.authors = ["robinhoudmeyers", "wout fierens", "fuzzyalej", "ceritium", "lukemelia"]
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'
@@ -40,7 +40,7 @@ end
40
40
 
41
41
  task :default => :spec
42
42
 
43
- require 'rake/rdoctask'
43
+ require 'rdoc/task'
44
44
  Rake::RDocTask.new do |rdoc|
45
45
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
46
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -44,7 +44,7 @@ module Url2png
44
44
  end
45
45
 
46
46
  def api_version
47
- @api_version ||= 'v6' #default: v6
47
+ @api_version ||= 'v4' #default: v4
48
48
  end
49
49
 
50
50
  def default_size
data/url2png.gemspec CHANGED
@@ -5,18 +5,19 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "url2png"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
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", "robinhoudmeyers"]
12
- s.date = "2012-05-25"
11
+ s.authors = ["robinhoudmeyers", "wout fierens", "fuzzyalej", "ceritium", "lukemelia"]
12
+ s.date = "2012-06-13"
13
13
  s.description = "Generate screenshots from websites almost instantly at any preferred size using ruby and the url2png.com API"
14
- s.email = "wout@impinc.co.uk"
14
+ s.email = "houdmeyers@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.markdown"
18
18
  ]
19
19
  s.files = [
20
+ ".DS_Store",
20
21
  ".document",
21
22
  ".rspec",
22
23
  "Gemfile",
@@ -35,7 +36,7 @@ Gem::Specification.new do |s|
35
36
  "spec/url2png_spec.rb",
36
37
  "url2png.gemspec"
37
38
  ]
38
- s.homepage = "http://github.com/wout/url2png-gem"
39
+ s.homepage = "http://github.com/robinhoudmeyers/url2png-gem"
39
40
  s.licenses = ["MIT"]
40
41
  s.require_paths = ["lib"]
41
42
  s.rubygems_version = "1.8.17"
metadata CHANGED
@@ -1,23 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url2png
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
+ - robinhoudmeyers
8
9
  - wout fierens
9
10
  - fuzzyalej
10
11
  - ceritium
11
12
  - lukemelia
12
- - robinhoudmeyers
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2012-05-25 00:00:00.000000000 Z
16
+ date: 2012-06-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rspec
20
- requirement: &70159176153680 !ruby/object:Gem::Requirement
20
+ requirement: &70331926041900 !ruby/object:Gem::Requirement
21
21
  none: false
22
22
  requirements:
23
23
  - - ~>
@@ -25,10 +25,10 @@ dependencies:
25
25
  version: 2.6.0
26
26
  type: :development
27
27
  prerelease: false
28
- version_requirements: *70159176153680
28
+ version_requirements: *70331926041900
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: bundler
31
- requirement: &70159176152600 !ruby/object:Gem::Requirement
31
+ requirement: &70331926041380 !ruby/object:Gem::Requirement
32
32
  none: false
33
33
  requirements:
34
34
  - - ~>
@@ -36,10 +36,10 @@ dependencies:
36
36
  version: 1.1.3
37
37
  type: :development
38
38
  prerelease: false
39
- version_requirements: *70159176152600
39
+ version_requirements: *70331926041380
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: jeweler
42
- requirement: &70159176166560 !ruby/object:Gem::Requirement
42
+ requirement: &70331926040900 !ruby/object:Gem::Requirement
43
43
  none: false
44
44
  requirements:
45
45
  - - ~>
@@ -47,10 +47,10 @@ dependencies:
47
47
  version: 1.8.3
48
48
  type: :development
49
49
  prerelease: false
50
- version_requirements: *70159176166560
50
+ version_requirements: *70331926040900
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: rcov
53
- requirement: &70159176163480 !ruby/object:Gem::Requirement
53
+ requirement: &70331926040420 !ruby/object:Gem::Requirement
54
54
  none: false
55
55
  requirements:
56
56
  - - ! '>='
@@ -58,10 +58,10 @@ dependencies:
58
58
  version: '0'
59
59
  type: :development
60
60
  prerelease: false
61
- version_requirements: *70159176163480
61
+ version_requirements: *70331926040420
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rspec
64
- requirement: &70159176201400 !ruby/object:Gem::Requirement
64
+ requirement: &70331926039940 !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
67
  - - ! '>'
@@ -69,16 +69,17 @@ dependencies:
69
69
  version: 2.6.0
70
70
  type: :development
71
71
  prerelease: false
72
- version_requirements: *70159176201400
72
+ version_requirements: *70331926039940
73
73
  description: Generate screenshots from websites almost instantly at any preferred
74
74
  size using ruby and the url2png.com API
75
- email: wout@impinc.co.uk
75
+ email: houdmeyers@gmail.com
76
76
  executables: []
77
77
  extensions: []
78
78
  extra_rdoc_files:
79
79
  - LICENSE.txt
80
80
  - README.markdown
81
81
  files:
82
+ - .DS_Store
82
83
  - .document
83
84
  - .rspec
84
85
  - Gemfile
@@ -96,7 +97,7 @@ files:
96
97
  - spec/spec_helper.rb
97
98
  - spec/url2png_spec.rb
98
99
  - url2png.gemspec
99
- homepage: http://github.com/wout/url2png-gem
100
+ homepage: http://github.com/robinhoudmeyers/url2png-gem
100
101
  licenses:
101
102
  - MIT
102
103
  post_install_message:
@@ -111,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
112
  version: '0'
112
113
  segments:
113
114
  - 0
114
- hash: 3789530823502758367
115
+ hash: 3943409547938200852
115
116
  required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  none: false
117
118
  requirements: