url2png 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -2
- data/VERSION +1 -1
- data/lib/url2png.rb +1 -4
- data/lib/url2png/rails.rb +3 -0
- data/url2png.gemspec +71 -0
- metadata +5 -3
data/README.markdown
CHANGED
@@ -20,7 +20,7 @@ First define your public key and shared secret:
|
|
20
20
|
Url2png::Config.public_key = 'PXXXXXXXXXXXXX'
|
21
21
|
Url2png::Config.shared_secret = 'SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
22
22
|
|
23
|
-
In Rails you probably want to do that in your application file.
|
23
|
+
In Rails you probably want to do that in your application.rb file.
|
24
24
|
|
25
25
|
|
26
26
|
### Helpers
|
@@ -32,7 +32,7 @@ Generate an image tag:
|
|
32
32
|
Options are the same as the image_tag in Rails.
|
33
33
|
|
34
34
|
By default the size is set to 400 x 400 px.
|
35
|
-
To generate an image with a specific
|
35
|
+
To generate an image with a specific size:
|
36
36
|
|
37
37
|
site_image_tag url, :size => '300x200'
|
38
38
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/url2png.rb
CHANGED
data/url2png.gemspec
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{url2png}
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["wout fierens"]
|
12
|
+
s.date = %q{2011-05-24}
|
13
|
+
s.description = %q{A ruby gem wrapping the url2png screenshot service API}
|
14
|
+
s.email = %q{wout@boysabroad.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.markdown"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.markdown",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/url2png.rb",
|
28
|
+
"lib/url2png/config.rb",
|
29
|
+
"lib/url2png/dimensions.rb",
|
30
|
+
"lib/url2png/helpers/common.rb",
|
31
|
+
"lib/url2png/rails.rb",
|
32
|
+
"test/helper.rb",
|
33
|
+
"test/test_url2png.rb",
|
34
|
+
"url2png.gemspec"
|
35
|
+
]
|
36
|
+
s.homepage = %q{http://github.com/wout/url2png}
|
37
|
+
s.licenses = ["MIT"]
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
s.rubygems_version = %q{1.3.7}
|
40
|
+
s.summary = %q{A ruby gem for the url2png screenshot service API}
|
41
|
+
s.test_files = [
|
42
|
+
"test/helper.rb",
|
43
|
+
"test/test_url2png.rb"
|
44
|
+
]
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
52
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
53
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
54
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<rspec>, ["> 2.6.0"])
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
58
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
59
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
60
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
61
|
+
s.add_dependency(%q<rspec>, ["> 2.6.0"])
|
62
|
+
end
|
63
|
+
else
|
64
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
67
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
68
|
+
s.add_dependency(%q<rspec>, ["> 2.6.0"])
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- wout fierens
|
@@ -109,8 +109,10 @@ files:
|
|
109
109
|
- lib/url2png/config.rb
|
110
110
|
- lib/url2png/dimensions.rb
|
111
111
|
- lib/url2png/helpers/common.rb
|
112
|
+
- lib/url2png/rails.rb
|
112
113
|
- test/helper.rb
|
113
114
|
- test/test_url2png.rb
|
115
|
+
- url2png.gemspec
|
114
116
|
has_rdoc: true
|
115
117
|
homepage: http://github.com/wout/url2png
|
116
118
|
licenses:
|
@@ -125,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
127
|
requirements:
|
126
128
|
- - ">="
|
127
129
|
- !ruby/object:Gem::Version
|
128
|
-
hash:
|
130
|
+
hash: -3360905776763674092
|
129
131
|
segments:
|
130
132
|
- 0
|
131
133
|
version: "0"
|