filebin 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -0
  2. data/VERSION +1 -1
  3. data/lib/filebin.rb +2 -1
  4. metadata +4 -4
data/Rakefile CHANGED
@@ -18,6 +18,7 @@ begin
18
18
  gem.add_dependency "urlshort"
19
19
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
20
20
  end
21
+ Jeweler::GemcutterTasks.new
21
22
  rescue LoadError
22
23
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
23
24
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.5.0
@@ -10,6 +10,7 @@ require 'hpricot'
10
10
  require 'urlshort'
11
11
 
12
12
  class Filebin
13
+ include UrlShort
13
14
  # This method takes a hash containing the variables in the POST
14
15
  # request.
15
16
  #
@@ -44,7 +45,7 @@ class Filebin
44
45
 
45
46
  # Returns a shortened link to the uploaded file.
46
47
  def short_link
47
- Isgd.new.short @link
48
+ UrlShort::IsGd.shorten @link
48
49
  end
49
50
 
50
51
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
8
- - 2
9
- version: 0.4.2
7
+ - 5
8
+ - 0
9
+ version: 0.5.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - dougsko
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-19 00:00:00 -04:00
17
+ date: 2010-05-22 00:00:00 -04:00
18
18
  default_executable: filebin
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency