anjlab-ruby-smpp 0.6.0 → 0.6.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/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
8
- gem.name = "ruby-smpp"
8
+ gem.name = "anjlab-ruby-smpp"
9
9
  gem.summary = %Q{Ruby implementation of the SMPP protocol, based on EventMachine.}
10
10
  gem.description = gem.summary + " SMPP is a protocol that allows ordinary people outside the mobile network to exchange SMS messages directly with mobile operators."
11
11
  gem.email = "raykrueger@gmail.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
data/lib/smpp/pdu/base.rb CHANGED
@@ -88,7 +88,7 @@ module Smpp::Pdu
88
88
  @command_status = command_status
89
89
  @body = body
90
90
  @sequence_number = seq
91
- @data = fixed_int(length) + fixed_int(command_id) + fixed_int(command_status) + fixed_int(seq) + body
91
+ @data = fixed_int(length) + fixed_int(command_id) + fixed_int(command_status) + fixed_int(seq) + body.force_encoding('binary')
92
92
  end
93
93
 
94
94
  def logger
@@ -119,7 +119,7 @@ module Smpp::Pdu
119
119
  buffer = []
120
120
  buffer += [tag >> 8, tag & 0xff]
121
121
  buffer += [length >> 8, length & 0xff]
122
- output << buffer.pack('cccc') << optional_param.value
122
+ output << buffer.pack('cccc') << optional_param.value.force_encoding('binary')
123
123
  end
124
124
  output
125
125
  end
@@ -38,7 +38,7 @@ class Smpp::Pdu::SubmitSm < Smpp::Pdu::Base
38
38
  # craft the string/byte buffer
39
39
  pdu_body = sprintf("%s\0%c%c%s\0%c%c%s\0%c%c%c%s\0%s\0%c%c%c%c%c%s", @service_type, @source_addr_ton, @source_addr_npi, @source_addr,
40
40
  @dest_addr_ton, @dest_addr_npi, @destination_addr, @esm_class, @protocol_id, @priority_flag, @schedule_delivery_time, @validity_period,
41
- @registered_delivery, @replace_if_present_flag, @data_coding, @sm_default_msg_id, @sm_length, payload)
41
+ @registered_delivery, @replace_if_present_flag, @data_coding, @sm_default_msg_id, @sm_length, payload.force_encoding('US-ASCII')).force_encoding('binary')
42
42
 
43
43
  if @optional_parameters
44
44
  pdu_body << optional_parameters_to_buffer(@optional_parameters)
data/ruby-smpp.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{anjlab-ruby-smpp}
8
- s.version = "0.6.0"
7
+ s.name = "ruby-smpp"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ray Krueger", "August Z. Flatby"]
12
- s.date = %q{2011-10-14}
13
- s.description = %q{Ruby implementation of the SMPP protocol, based on EventMachine. SMPP is a protocol that allows ordinary people outside the mobile network to exchange SMS messages directly with mobile operators.}
14
- s.email = %q{raykrueger@gmail.com}
12
+ s.date = "2012-04-18"
13
+ s.description = "Ruby implementation of the SMPP protocol, based on EventMachine. SMPP is a protocol that allows ordinary people outside the mobile network to exchange SMS messages directly with mobile operators."
14
+ s.email = "raykrueger@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "CHANGELOG",
17
17
  "CONTRIBUTORS.txt",
@@ -69,11 +69,11 @@ Gem::Specification.new do |s|
69
69
  "test/submit_sm_test.rb",
70
70
  "test/transceiver_test.rb"
71
71
  ]
72
- s.homepage = %q{http://github.com/raykrueger/ruby-smpp}
72
+ s.homepage = "http://github.com/raykrueger/ruby-smpp"
73
73
  s.require_paths = ["lib"]
74
- s.rubyforge_project = %q{ruby-smpp}
75
- s.rubygems_version = %q{1.4.2}
76
- s.summary = %q{Ruby implementation of the SMPP protocol, based on EventMachine.}
74
+ s.rubyforge_project = "ruby-smpp"
75
+ s.rubygems_version = "1.8.22"
76
+ s.summary = "Ruby implementation of the SMPP protocol, based on EventMachine."
77
77
 
78
78
  if s.respond_to? :specification_version then
79
79
  s.specification_version = 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anjlab-ruby-smpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
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-10-14 00:00:00.000000000 Z
13
+ date: 2012-04-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: eventmachine
17
- requirement: &70199001242340 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: 0.10.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70199001242340
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 0.10.0
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: jeweler
28
- requirement: &70199001240440 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,10 +38,15 @@ dependencies:
33
38
  version: '0'
34
39
  type: :development
35
40
  prerelease: false
36
- version_requirements: *70199001240440
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: rake
39
- requirement: &70199001238800 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,7 +54,12 @@ dependencies:
44
54
  version: '0'
45
55
  type: :development
46
56
  prerelease: false
47
- version_requirements: *70199001238800
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
48
63
  description: Ruby implementation of the SMPP protocol, based on EventMachine. SMPP
49
64
  is a protocol that allows ordinary people outside the mobile network to exchange
50
65
  SMS messages directly with mobile operators.
@@ -125,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
140
  - !ruby/object:Gem::Version
126
141
  version: '0'
127
142
  requirements: []
128
- rubyforge_project: ruby-smpp
129
- rubygems_version: 1.8.17
143
+ rubyforge_project: anjlab-ruby-smpp
144
+ rubygems_version: 1.8.22
130
145
  signing_key:
131
146
  specification_version: 3
132
147
  summary: Ruby implementation of the SMPP protocol, based on EventMachine.