mobilove 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,7 @@ module Mobilove
53
53
  def string_to_hexadecimal_code_points(message)
54
54
  if message.class.to_s == 'String' && message.encoding.to_s == 'UTF-8'
55
55
  hex_code = ''
56
- Iconv.iconv("UCS-2", "utf-8", message).first.each_char {|unicode_char| hex_code += unicode_char.unpack('H*').first}
56
+ Iconv.iconv("UCS-2BE", "UTF-8", message).first.each_char {|unicode_char| hex_code += unicode_char.unpack('H*').first}
57
57
  hex_code
58
58
  else
59
59
  raise MessageIsNoUtf8String.new("The message is either not a string or not UTF-8 encoded. MESSAGE: #{message}")
@@ -1,3 +1,3 @@
1
1
  module Mobilove
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilove
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-21 00:00:00.000000000Z
13
+ date: 2011-12-12 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
17
- requirement: &70092596794260 !ruby/object:Gem::Requirement
17
+ requirement: &70328433106860 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70092596794260
25
+ version_requirements: *70328433106860
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
- requirement: &70092596793840 !ruby/object:Gem::Requirement
28
+ requirement: &70328433106440 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70092596793840
36
+ version_requirements: *70328433106440
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &70092596793420 !ruby/object:Gem::Requirement
39
+ requirement: &70328433106020 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70092596793420
47
+ version_requirements: *70328433106020
48
48
  description: Use mobilove to send text messages with Ruby. Account on mobilant.de
49
49
  required.
50
50
  email: tim@railslove.com