mobilove 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
2
  require 'uri'
3
- require 'iconv'
4
3
 
5
4
  module Mobilove
6
5
 
@@ -53,7 +52,7 @@ module Mobilove
53
52
  def string_to_hexadecimal_code_points(message)
54
53
  if message.class.to_s == 'String' && message.encoding.to_s == 'UTF-8'
55
54
  hex_code = ''
56
- Iconv.iconv("UCS-2BE", "UTF-8", message).first.each_char {|unicode_char| hex_code += unicode_char.unpack('H*').first}
55
+ message.encode(Encoding::UTF_16BE).each_char {|unicode_char| hex_code += unicode_char.unpack('H*').first}
57
56
  hex_code
58
57
  else
59
58
  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.6"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,83 +1,101 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mobilove
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Red Davis
9
13
  - Tim Schneider
10
14
  autorequire:
11
15
  bindir: bin
12
16
  cert_chain: []
13
- date: 2011-12-12 00:00:00.000000000Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-03-19 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: rest-client
17
- requirement: &70328433106860 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
24
23
  prerelease: false
25
- version_requirements: *70328433106860
26
- - !ruby/object:Gem::Dependency
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :runtime
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
27
34
  name: rake
28
- requirement: &70328433106440 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
35
  prerelease: false
36
- version_requirements: *70328433106440
37
- - !ruby/object:Gem::Dependency
38
- name: rspec
39
- requirement: &70328433106020 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
42
+ version: "0"
45
43
  type: :development
44
+ version_requirements: *id002
45
+ - !ruby/object:Gem::Dependency
46
+ name: rspec
46
47
  prerelease: false
47
- version_requirements: *70328433106020
48
- description: Use mobilove to send text messages with Ruby. Account on mobilant.de
49
- required.
48
+ requirement: &id003 !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ segments:
53
+ - 0
54
+ version: "0"
55
+ type: :development
56
+ version_requirements: *id003
57
+ description: Use mobilove to send text messages with Ruby. Account on mobilant.de required.
50
58
  email: tim@railslove.com
51
59
  executables: []
60
+
52
61
  extensions: []
62
+
53
63
  extra_rdoc_files: []
54
- files:
64
+
65
+ files:
55
66
  - lib/mobilove.rb
56
67
  - lib/mobilove/exceptions.rb
57
68
  - lib/mobilove/text.rb
58
69
  - lib/mobilove/version.rb
70
+ has_rdoc: true
59
71
  homepage: http://github.com/railslove/mobilove
60
72
  licenses: []
73
+
61
74
  post_install_message:
62
75
  rdoc_options: []
63
- require_paths:
76
+
77
+ require_paths:
64
78
  - lib
65
- required_ruby_version: !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ! '>='
69
- - !ruby/object:Gem::Version
70
- version: '0'
71
- required_rubygems_version: !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ segments:
91
+ - 0
92
+ version: "0"
77
93
  requirements: []
78
- rubyforge_project: ! '[none]'
79
- rubygems_version: 1.8.6
94
+
95
+ rubyforge_project: "[none]"
96
+ rubygems_version: 1.3.6
80
97
  signing_key:
81
98
  specification_version: 3
82
99
  summary: Small wrapper for sending text messages with mobilant.de
83
100
  test_files: []
101
+