instapi 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/instapi.rb +2 -1
  2. data/lib/instapi/version.rb +1 -1
  3. metadata +1 -1
data/lib/instapi.rb CHANGED
@@ -42,7 +42,8 @@ class Instapi
42
42
  end
43
43
 
44
44
  def self.text(url)
45
- doc = Nokogiri::HTML(get("/text?u=#{url}"))
45
+ @_client ||= HTTPClient.new
46
+ doc = Nokogiri::HTML(@_client.get_content("#{BASE_URL}/text?u=#{url}"))
46
47
  {
47
48
  :title => doc.css('title').first.text,
48
49
  :text => doc.css('#story').first.inner_html
@@ -1,3 +1,3 @@
1
1
  class Instapi
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: instapi
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.0
5
+ version: 1.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo