mms2r 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ ### 3.5.1 / 2011-12-11 (Mashed Potato Johnson - oldest living blues guitarist in the world)
2
+
3
+ * 1 bug fix
4
+ * A fix for the utf-8 encoding issue with ruby 1.9.2 - James McGrath
5
+
1
6
  ### 3.5.0 / 2011-12-01 (Dr. Milminiman Lamilim Swimwambli - Marriage expert)
2
7
 
3
8
  * 1 major bug fix
data/Rakefile CHANGED
@@ -7,11 +7,6 @@ rescue LoadError
7
7
  require 'hoe'
8
8
  end
9
9
 
10
- begin
11
- require 'rcov/rcovtask'
12
- rescue LoadError
13
- end
14
-
15
10
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "lib")
16
11
  require 'mms2r'
17
12
  require 'rake'
data/lib/mms2r.rb CHANGED
@@ -39,7 +39,7 @@ module MMS2R
39
39
  ##
40
40
  # MMS2R library version
41
41
 
42
- VERSION = '3.5.0'
42
+ VERSION = '3.5.1'
43
43
 
44
44
  ##
45
45
  # Spoof User-Agent, primarily for the Sprint CDN
@@ -185,6 +185,8 @@ module MMS2R
185
185
  def sprint_write_file(type, content, file = nil)
186
186
  file = sprint_temp_file(type) if file.nil?
187
187
  log("#{self.class} writing file #{file}", :info)
188
+ # force the encoding to be utf-8
189
+ content = content.force_encoding("UTF-8") if content.respond_to?(:force_encoding)
188
190
  File.open(file,'w'){ |f| f.write(content) }
189
191
  return type, file
190
192
  end
data/test/test_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # do it like rake http://ozmm.org/posts/do_it_like_rake.html
2
2
 
3
- %W{ test/unit set net/http net/https pp tempfile mocha }.each do |g|
3
+ %W{ test/unit set net/http net/https pp tempfile mocha rcov/rcovtask }.each do |g|
4
4
  begin
5
5
  require g
6
6
  rescue LoadError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mms2r
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
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: 2011-12-02 00:00:00.000000000Z
12
+ date: 2011-12-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &20713980 !ruby/object:Gem::Requirement
16
+ requirement: &24888520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.4.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20713980
24
+ version_requirements: *24888520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mail
27
- requirement: &20712840 !ruby/object:Gem::Requirement
27
+ requirement: &24887600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.2.10
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *20712840
35
+ version_requirements: *24887600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: uuidtools
38
- requirement: &20711600 !ruby/object:Gem::Requirement
38
+ requirement: &24886540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.1.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *20711600
46
+ version_requirements: *24886540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: exifr
49
- requirement: &20710280 !ruby/object:Gem::Requirement
49
+ requirement: &24885680 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.3
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *20710280
57
+ version_requirements: *24885680
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: hoe
60
- requirement: &20708940 !ruby/object:Gem::Requirement
60
+ requirement: &24884840 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '2.12'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *20708940
68
+ version_requirements: *24884840
69
69
  description: ! '== DESCRIPTION
70
70
 
71
71