ballou_sms_gateway 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d414a9799699b925c72eccb31eafbe5f6b5d83f0
4
- data.tar.gz: 388ab71a6bc78c338e3ff40370be2d56a78e32c7
3
+ metadata.gz: 3fe1118753c53e1447355cc77dccb8a188c5de58
4
+ data.tar.gz: 3901917b8ad1107c5ab4f158f5929a4569507c8f
5
5
  SHA512:
6
- metadata.gz: 894e6688d2ef871ed6801dd5a1d8f5141af15e8f3bbf5b44482a1e56fb5a937e000db3f0bfade14942e731fd3f2286979edad6d492fa6b33be94c0bd5b0aa155
7
- data.tar.gz: cd846e9c463dfd605121788a39ea0d396a7337c66dde2fa5c11bc03838be75123263c6d93dab0b52988f283d736f44d6ce43a5fa5873f68891d75ab12c8ee71b
6
+ metadata.gz: 71d2379a5f9f2e72cceab20bb689d782a97fe5ffe90057538f69c8e1816336d9c34691f7315aa2b2b33eb5bb58460cd4c8058f2c7561498280cc42a7ba850dfc
7
+ data.tar.gz: a4884762d464c67c92344963689018a9ecc31b9ff8f65468002ef77e2faa383461116981f617c7e104c414bff686534077862962ed087f10957437855394eadf
@@ -10,11 +10,11 @@ Gem::Specification.new do |gem|
10
10
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
11
11
  gem.name = "ballou_sms_gateway"
12
12
  gem.require_paths = ["lib"]
13
- gem.version = "2.0.1"
13
+ gem.version = "2.0.2"
14
14
 
15
- gem.add_dependency("rest-client", "~> 1.6.7")
16
- gem.add_dependency("uuid", "~> 2.3.4")
17
- gem.add_dependency("nokogiri", "~> 1.5.0")
15
+ gem.add_dependency("rest-client")
16
+ gem.add_dependency("uuid")
17
+ gem.add_dependency("nokogiri")
18
18
  gem.add_dependency("acts_as_chain", "~> 1.0.1")
19
19
 
20
20
  gem.add_development_dependency("vcr")
@@ -4,7 +4,6 @@ require "uri"
4
4
  require "cgi"
5
5
  require "acts_as_chain"
6
6
  require "nokogiri"
7
- require "iconv"
8
7
  require "ballou_sms_gateway/request"
9
8
 
10
9
  class BallouSmsGateway
@@ -136,7 +135,7 @@ class BallouSmsGateway
136
135
  @to,
137
136
  @long,
138
137
  @message
139
- ].map{|v| URI::escape(to_latin_1(v))}
138
+ ].map{ |v| URI::escape(v.to_s) }
140
139
  end
141
140
 
142
141
  def do_request!
@@ -145,9 +144,5 @@ class BallouSmsGateway
145
144
  @error_message = $!.message
146
145
  ensure
147
146
  data || ""
148
- end
149
-
150
- def to_latin_1(string)
151
- Iconv.conv("ISO-8859-1", "UTF-8", string.to_s)
152
- end
147
+ end
153
148
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ballou_sms_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander
@@ -14,44 +14,44 @@ dependencies:
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.7
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.7
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: uuid
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.4
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.3.4
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.5.0
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: acts_as_chain
57
57
  requirement: !ruby/object:Gem::Requirement