url2png-dc 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +11 -2
  2. data/VERSION +1 -1
  3. data/url2png-dc.gemspec +1 -1
  4. metadata +2 -2
data/README.md CHANGED
@@ -26,7 +26,7 @@ You may always require later, as you see fit.
26
26
 
27
27
  ##Configure
28
28
 
29
- Maybe in an initalizer file or something.
29
+ Maybe in an initalizer file or something. These will be the become the standard defaults, if you do not provide additional options.
30
30
 
31
31
  Url2PngDc.configure do |config|
32
32
  config.url2png_apikey = ENV['URL2PNG_APIKEY']
@@ -45,7 +45,6 @@ Maybe in an initalizer file or something.
45
45
 
46
46
  You will have to `require` (maybe, depending on how you set this up) and `include Url2PngDc::UrlHelpers`. That will give you access to 3 methods.
47
47
 
48
-
49
48
  Generate the basic URL2PNG url
50
49
 
51
50
  url_2png "http://twitter.com"
@@ -65,6 +64,16 @@ The cache url (to my knowledge) is removed on a 30 day basis.
65
64
  If anytime the request or the parsing of the payload fails, it defers to the `url_2png` method and returns the basic API url instead.
66
65
 
67
66
 
67
+ __Each method can take a 2nd Hash `{}` option to override some of the default options for URL generation__
68
+
69
+
70
+ url_2png "http://twitter.com", {:fullpage => false, ...}
71
+
72
+
73
+ You can reference [URL2PNG's documentation](http://url2png.com/docs/) for the available options.
74
+
75
+
76
+
68
77
  *\*Standard Rails hooks, so you can just plug and play, will be added shortly. But, if you want to get a jump on things, you can view the `quick_start` branch, that does a basic include into the view helpers. __At this point, I've only tested this on Rails 3.__ But there will be a larger range of support once the Rails hooks are written.*
69
78
 
70
79
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
data/url2png-dc.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "url2png-dc"
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yung Hwa Kwon"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url2png-dc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -2426482288326668947
118
+ hash: -2296787311656803596
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements: