bayuploader 1.0.0 → 1.0.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/bin/bayuploader +2 -2
  2. data/lib/bayuploader.rb +2 -2
  3. metadata +2 -2
data/bin/bayuploader CHANGED
@@ -80,7 +80,7 @@ module Multipart
80
80
  end
81
81
 
82
82
  class BayUploader
83
- VERSION = '1.0.0'
83
+ VERSION = '1.0.1'
84
84
  BayImgUrl = 'bayimg.com'
85
85
  Usage = 'Usage: bay_uploader filename [options]'
86
86
 
@@ -133,7 +133,7 @@ class BayUploader
133
133
  end
134
134
 
135
135
  def self.encode(file_name)
136
- Base64.b64encode(file_name.split(File::Separator).last.gsub(/\s/,'-')).gsub(/[^\w\d]/,'')
136
+ Base64.encode64(file_name.split(File::Separator).last.gsub(/\s/,'-')).gsub(/[^\w\d]/,'')
137
137
  end
138
138
 
139
139
  private
data/lib/bayuploader.rb CHANGED
@@ -19,7 +19,7 @@ require File.dirname(__FILE__) + '/multipart.rb'
19
19
  # <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0 License</a>.
20
20
 
21
21
  class BayUploader
22
- VERSION = '1.0.0'
22
+ VERSION = '1.0.1'
23
23
  BayImgUrl = 'bayimg.com'
24
24
  Usage = 'Usage: bay_uploader filename [options]'
25
25
 
@@ -72,7 +72,7 @@ class BayUploader
72
72
  end
73
73
 
74
74
  def self.encode(file_name)
75
- Base64.b64encode(file_name.split(File::Separator).last.gsub(/\s/,'-')).gsub(/[^\w\d]/,'')
75
+ Base64.encode64(file_name.split(File::Separator).last.gsub(/\s/,'-')).gsub(/[^\w\d]/,'')
76
76
  end
77
77
 
78
78
  private
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: bayuploader
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
7
- date: 2007-07-30 00:00:00 -07:00
6
+ version: 1.0.1
7
+ date: 2007-07-31 00:00:00 -07:00
8
8
  summary: A simple command line uploader for BayImg.com, the Piratebay's image hosting site.
9
9
  require_paths:
10
10
  - lib