umanni-multipart-post 0.0.0.3 → 0.0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module FileUploadIO
2
2
  def self.new(file_path, content_type, file_content = nil)
3
3
  raise ArgumentError, "File content type required" unless content_type
4
- File.open(file_path, "w") {|f| f << file_content} unless file_content.blank?
4
+ File.open(file_path, "w+b", 0644) { |f| f.write file_content } unless file_content.blank?
5
5
  file_io = File.open(file_path, "rb")
6
6
  file_io.instance_eval(<<-EOS, __FILE__, __LINE__)
7
7
  def content_type
@@ -14,7 +14,7 @@ module MultiPart
14
14
  end
15
15
 
16
16
  def self.pre
17
- 3 #nil
17
+ 4 #nil
18
18
  end
19
19
 
20
20
  def self.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umanni-multipart-post
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.3
4
+ version: 0.0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-24 00:00:00.000000000Z
13
+ date: 2011-11-25 00:00:00.000000000Z
14
14
  dependencies: []
15
15
  description: Multipart form post thru Ruby script, headers content-type and content-length
16
16
  properly set