kooaba 0.0.4 → 0.0.5

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.
@@ -42,14 +42,14 @@ module Kooaba
42
42
  end
43
43
 
44
44
  def body
45
- boundary_marker = "--#{boundary_token}\r\n"
45
+ boundary_marker = "--#{boundary_token}\r\n".force_encoding("UTF-8")
46
46
  body = @text_parts.map { |param|
47
47
  (name, value) = param
48
48
  boundary_marker + text_to_multipart(name, value)
49
- }.join('') + @file_parts.map { |param|
49
+ }.map{|p| p.force_encoding("UTF-8")}.join('') + @file_parts.map { |param|
50
50
  (name, value) = param
51
51
  boundary_marker + data_to_multipart(name, value)
52
- }.join('') + "--#{boundary_token}--\r\n"
52
+ }.map{|p| p.force_encoding("UTF-8")}.join('') + "--#{boundary_token}--\r\n".force_encoding("UTF-8")
53
53
  end
54
54
 
55
55
  protected
@@ -1,3 +1,3 @@
1
1
  module Kooaba
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kooaba
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cristi Prodan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-16 00:00:00 Z
18
+ date: 2013-04-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json