geminabox 0.2.0 → 0.2.1

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.
@@ -72,8 +72,6 @@ class Gem::Commands::InaboxCommand < Gem::Command
72
72
  end
73
73
 
74
74
  module Multipart
75
- require 'rubygems'
76
- require 'mime/types'
77
75
  require 'net/http'
78
76
  require 'cgi'
79
77
 
@@ -98,7 +96,7 @@ class Gem::Commands::InaboxCommand < Gem::Command
98
96
  end
99
97
 
100
98
  def to_multipart
101
- return "Content-Disposition: form-data; name=\"#{k}\"; filename=\"#{filename}\"\r\n" + "Content-Transfer-Encoding: binary\r\n" + "Content-Type: #{MIME::Types.type_for(@filename)}\r\n\r\n" + content + "\r\n"
99
+ return "Content-Disposition: form-data; name=\"#{k}\"; filename=\"#{filename}\"\r\n" + "Content-Transfer-Encoding: binary\r\n" + "Content-Type: application/octet-stream\r\n\r\n" + content + "\r\n"
102
100
  end
103
101
  end
104
102
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-27 00:00:00 +00:00
12
+ date: 2010-02-12 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -51,7 +51,7 @@ files:
51
51
  - views/layout.erb
52
52
  - views/upload.erb
53
53
  has_rdoc: true
54
- homepage: http://tomlea.co.uk
54
+ homepage: http://tomlea.co.uk/p/gem-in-a-box
55
55
  licenses: []
56
56
 
57
57
  post_install_message: