twimage 0.0.8 → 0.0.9

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.
Files changed (3) hide show
  1. data/lib/twimage/version.rb +1 -1
  2. data/lib/twimage.rb +3 -6
  3. metadata +1 -1
@@ -1,3 +1,3 @@
1
1
  module Twimage
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/twimage.rb CHANGED
@@ -3,13 +3,10 @@ require 'open-uri'
3
3
  require 'httparty'
4
4
  require 'tempfile'
5
5
 
6
- $:.unshift(File.dirname(__FILE__)) unless
7
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
6
+ $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
8
7
 
9
8
  require 'twimage/base'
10
- require 'twimage/twitpic'
11
- require 'twimage/yfrog'
12
- require 'twimage/version'
9
+ Dir.glob('./twimage/*').each { |r| require r }
13
10
 
14
11
  module Twimage
15
12
 
@@ -19,4 +16,4 @@ module Twimage
19
16
 
20
17
  end
21
18
 
22
- # puts Twimage::Twitpic.new('http://twitpic.com/4w30yx').image.inspect
19
+ puts Twimage::Yfrog.new('http://yfrog.com/hsjdhxqj').inspect
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: twimage
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.8
5
+ version: 0.0.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rob Cameron