gisikw-tumblr 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 3
4
+ :patch: 4
@@ -2,8 +2,10 @@ class Tumblr
2
2
  class Request
3
3
 
4
4
  # a GET request to http://[YOURUSERNAME].tumblr.com/api/read
5
+ # override this behavior by setting Tumblr.blog_url,
6
+ # GET request will then direct to http://[YOURURL]/api/read
5
7
  def self.read(options = {})
6
- response = HTTParty.get("http://#{Tumblr::blog_url ||= (Tumblr::blog ||= 'staff')+'tumblr.com'}/api/read", options)
8
+ response = HTTParty.get("http://#{Tumblr::blog_url ||= (Tumblr::blog ||= 'staff')+'.tumblr.com'}/api/read", options)
7
9
  return response unless raise_errors(response)
8
10
  end
9
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tumblr}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jeff Kreeftmeijer"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gisikw-tumblr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Kreeftmeijer