smshelper 0.2.0 → 0.2.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -13,7 +13,7 @@ module Smshelper
13
13
  @log.level = DEBUG #ERROR
14
14
 
15
15
  @sent_message_ids, @sent_message_statuses = Array.new, Hash.new
16
- @response_code = ResponseCodes.instance
16
+ @response_code = ResponseCodes.new
17
17
  @extra_options = args.shift
18
18
  end
19
19
  end
@@ -2,8 +2,6 @@
2
2
  module Smshelper
3
3
  module Api
4
4
  class ResponseCodes
5
- include Singleton
6
-
7
5
  BULKSMS = {
8
6
  '0' => 'In progress',
9
7
  '1' => 'Scheduled',
@@ -31,7 +31,6 @@ module Smshelper
31
31
  end
32
32
 
33
33
  class Charset
34
- include Singleton
35
34
  GSM_CHARSET = "@£$¥èéùìòÇ\nØø\rÅåΔ_ΦΓΛΩΠΨΣΘΞ\e\f^{}\\[~]|€ÆæßÉ !\"#¤%&'()*+,-./0123456789:;<=>?¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà".scan(/./u)
36
35
  ESCAPED_CHARS = "{}\\~[]|€"
37
36
  # Returns +true+ if the supplied text contains only characters from
@@ -11,7 +11,7 @@ module Smshelper
11
11
  end
12
12
 
13
13
  def is_gsm(text)
14
- dl = Smshelper::Languagetools::Charset.instance
14
+ dl = Smshelper::Languagetools::Charset.new
15
15
  lang = dl.is_gsm(text)
16
16
  end
17
17
 
data/smshelper.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "smshelper"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Voip Scout"]
12
- s.date = "2012-03-20"
12
+ s.date = "2012-03-21"
13
13
  s.description = "works with esendex, textmagic, smstrade, bulksms, routomessaging, smswarehouse, mediaburst, clickatell, webtext"
14
14
  s.email = "voipscout@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: smshelper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Voip Scout
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-20 00:00:00.000000000Z
12
+ date: 2012-03-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: api_smith