sendgrid-parse 0.1.7 → 0.1.8

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.
@@ -45,9 +45,6 @@ module Sendgrid
45
45
  component[key] = transcoded_value
46
46
  charsets[key] = to_encoding
47
47
  end
48
- else
49
- # If we weren't told, set it to the target encoding type.
50
- component[key] = _encode(component[key], to_encoding, to_encoding)
51
48
  end
52
49
  end
53
50
 
@@ -1,5 +1,5 @@
1
1
  module Sendgrid
2
2
  module Parse
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
@@ -149,22 +149,6 @@ describe Sendgrid::Parse::EncodableHash do
149
149
  new_params = Sendgrid::Parse::EncodableHash.new(params).encode("UTF-8")
150
150
  new_params[:text].encoding.should eql(Encoding::UTF_8)
151
151
  end
152
-
153
- it "should correctly force encoding types of non-specified fields" do
154
- params = {
155
- :charsets => '{"text":"WINDOWS-1252"}',
156
- :text => test_string_1_windows1252_encoded,
157
- :subject => "Test subject"
158
- }
159
-
160
- new_params = Sendgrid::Parse::EncodableHash.new(params).encode("WINDOWS-1252")
161
- new_params[:text].encoding.should eql(Encoding::Windows_1252)
162
- new_params[:subject].encoding.should eql(Encoding::Windows_1252)
163
-
164
- new_params = Sendgrid::Parse::EncodableHash.new(params).encode("UTF-8")
165
- new_params[:text].encoding.should eql(Encoding::UTF_8)
166
- new_params[:subject].encoding.should eql(Encoding::UTF_8)
167
- end
168
152
  else
169
153
  it "should blow up on unknown target encoding type" do
170
154
  params = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendgrid-parse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000Z
12
+ date: 2012-06-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &70112196603160 !ruby/object:Gem::Requirement
16
+ requirement: &70110342598600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.7.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70112196603160
24
+ version_requirements: *70110342598600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70112196602620 !ruby/object:Gem::Requirement
27
+ requirement: &70110342598060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.10.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70112196602620
35
+ version_requirements: *70110342598060
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: active_support
38
- requirement: &70112196602160 !ruby/object:Gem::Requirement
38
+ requirement: &70110342597580 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 3.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70112196602160
46
+ version_requirements: *70110342597580
47
47
  description: Library to dynamically set or change the encoding type for fields, ie
48
48
  params from SendGrid Parse API.
49
49
  email: