umanni-multipart-post 0.0.0.3 → 0.0.0.4
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.
- data/lib/multi_part/file_upload_io.rb +1 -1
- data/lib/multi_part/version.rb +1 -1
- metadata +2 -2
@@ -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
|
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
|
data/lib/multi_part/version.rb
CHANGED
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.
|
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-
|
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
|