esendex4soap 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/esendex4soap.gemspec +2 -2
  3. data/lib/esendex4soap.rb +12 -2
  4. metadata +132 -137
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
data/esendex4soap.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "esendex4soap"
8
- s.version = "0.6.0"
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 = ["Voip Scout"]
12
- s.date = "2012-02-26"
12
+ s.date = "2012-03-09"
13
13
  s.description = "thanks to savon library"
14
14
  s.email = "voipscout@gmail.com"
15
15
  s.extra_rdoc_files = [
data/lib/esendex4soap.rb CHANGED
@@ -52,6 +52,16 @@ module Esendex
52
52
  end
53
53
  end
54
54
 
55
+ def get_inbox_messages
56
+ client = Savon::Client.new(INBOX_SERVICE_WSDL)
57
+ #http://jira.codehaus.org/browse/JRUBY-5529 - jruby-openssl in --1.9 jruby mode
58
+ client.http.auth.ssl.verify_mode=(:none)
59
+ resp = client.request :com, :get_messages do |soap|
60
+ soap.header["com:MessengerHeader"] = {"com:Username" => @username, "com:Password" => @password, "com:Account" => @account_reference}
61
+ end
62
+ resp[:get_messages_response][:get_messages_result][:message]
63
+ end
64
+
55
65
  def get_credit
56
66
  client = Savon::Client.new(ACCOUNT_SERVICE_WSDL)
57
67
  #http://jira.codehaus.org/browse/JRUBY-5529 - jruby-openssl in --1.9 jruby mode
@@ -59,7 +69,7 @@ module Esendex
59
69
  resp = client.request :com, :get_message_limit do |soap|
60
70
  soap.header["com:MessengerHeader"] = {"com:Username" => @username, "com:Password" => @password, "com:Account" => @account_reference}
61
71
  end
62
- resp.to_hash[:get_message_limit_response][:get_message_limit_result].to_i
72
+ resp.to_hash[:get_message_limit_response][:get_message_limit_result].to_s
63
73
  end
64
74
 
65
75
  def get_status(*message_id)
@@ -71,7 +81,7 @@ module Esendex
71
81
  soap.header["com:MessengerHeader"] = {"com:Username" => @username, "com:Password" => @password, "com:Account" => @account_reference}
72
82
  soap.body = {"com:id" => id.to_s}
73
83
  end
74
- @sent_message_statuses << resp.to_hash[:get_message_status_response][:get_message_status_result]
84
+ @sent_message_statuses[id] = resp.to_hash[:get_message_status_response][:get_message_status_result]
75
85
  end
76
86
  else
77
87
  resp = @client.request :com, :get_message_status do |soap|
metadata CHANGED
@@ -1,154 +1,149 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: esendex4soap
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.6.0
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.6.1
6
6
  platform: ruby
7
- authors:
8
- - Voip Scout
9
- autorequire:
7
+ authors:
8
+ - Voip Scout
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-02-26 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: jruby-openssl
17
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
23
- requirement: *id001
24
- prerelease: false
25
- type: :runtime
26
- - !ruby/object:Gem::Dependency
27
- name: savon
28
- version_requirements: &id002 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: 0.9.7
34
- requirement: *id002
35
- prerelease: false
36
- type: :runtime
37
- - !ruby/object:Gem::Dependency
38
- name: log4r
39
- version_requirements: &id003 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
45
- requirement: *id003
46
- prerelease: false
47
- type: :runtime
48
- - !ruby/object:Gem::Dependency
49
- name: wtf_lang
50
- version_requirements: &id004 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ~>
54
- - !ruby/object:Gem::Version
55
- version: 0.3.1
56
- requirement: *id004
57
- prerelease: false
58
- type: :runtime
59
- - !ruby/object:Gem::Dependency
60
- name: shoulda
61
- version_requirements: &id005 !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
67
- requirement: *id005
68
- prerelease: false
69
- type: :development
70
- - !ruby/object:Gem::Dependency
71
- name: bundler
72
- version_requirements: &id006 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: "0"
78
- requirement: *id006
79
- prerelease: false
80
- type: :development
81
- - !ruby/object:Gem::Dependency
82
- name: jeweler
83
- version_requirements: &id007 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: "0"
89
- requirement: *id007
90
- prerelease: false
91
- type: :development
92
- - !ruby/object:Gem::Dependency
93
- name: rcov
94
- version_requirements: &id008 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: "0"
100
- requirement: *id008
101
- prerelease: false
102
- type: :development
12
+ date: 2012-03-09 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jruby-openssl
16
+ version_requirements: &4022 !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ none: false
22
+ requirement: *4022
23
+ prerelease: false
24
+ type: :runtime
25
+ - !ruby/object:Gem::Dependency
26
+ name: savon
27
+ version_requirements: &4040 !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ version: 0.9.7
32
+ none: false
33
+ requirement: *4040
34
+ prerelease: false
35
+ type: :runtime
36
+ - !ruby/object:Gem::Dependency
37
+ name: log4r
38
+ version_requirements: &4056 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ none: false
44
+ requirement: *4056
45
+ prerelease: false
46
+ type: :runtime
47
+ - !ruby/object:Gem::Dependency
48
+ name: wtf_lang
49
+ version_requirements: &4072 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.3.1
54
+ none: false
55
+ requirement: *4072
56
+ prerelease: false
57
+ type: :runtime
58
+ - !ruby/object:Gem::Dependency
59
+ name: shoulda
60
+ version_requirements: &4088 !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ none: false
66
+ requirement: *4088
67
+ prerelease: false
68
+ type: :development
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ version_requirements: &4106 !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ none: false
77
+ requirement: *4106
78
+ prerelease: false
79
+ type: :development
80
+ - !ruby/object:Gem::Dependency
81
+ name: jeweler
82
+ version_requirements: &4122 !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ none: false
88
+ requirement: *4122
89
+ prerelease: false
90
+ type: :development
91
+ - !ruby/object:Gem::Dependency
92
+ name: rcov
93
+ version_requirements: &4138 !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ none: false
99
+ requirement: *4138
100
+ prerelease: false
101
+ type: :development
103
102
  description: thanks to savon library
104
103
  email: voipscout@gmail.com
105
104
  executables: []
106
-
107
105
  extensions: []
108
-
109
- extra_rdoc_files:
110
- - LICENSE.txt
111
- - README.rdoc
112
- files:
113
- - .document
114
- - Gemfile
115
- - LICENSE.txt
116
- - README.rdoc
117
- - Rakefile
118
- - VERSION
119
- - esendex4soap.gemspec
120
- - lib/esendex4soap.rb
121
- - test/helper.rb
122
- - test/test_esendex4soap.rb
106
+ extra_rdoc_files:
107
+ - LICENSE.txt
108
+ - README.rdoc
109
+ files:
110
+ - .document
111
+ - Gemfile
112
+ - LICENSE.txt
113
+ - README.rdoc
114
+ - Rakefile
115
+ - VERSION
116
+ - esendex4soap.gemspec
117
+ - lib/esendex4soap.rb
118
+ - test/helper.rb
119
+ - test/test_esendex4soap.rb
123
120
  homepage: http://github.com/voipscout/esendex4soap
124
- licenses:
125
- - MIT
126
- post_install_message:
121
+ licenses:
122
+ - MIT
123
+ post_install_message:
127
124
  rdoc_options: []
128
-
129
- require_paths:
130
- - lib
131
- required_ruby_version: !ruby/object:Gem::Requirement
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ segments:
132
+ - 0
133
+ hash: 2
134
+ version: '0'
132
135
  none: false
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- hash: 2
137
- segments:
138
- - 0
139
- version: "0"
140
- required_rubygems_version: !ruby/object:Gem::Requirement
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
141
  none: false
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: "0"
146
142
  requirements: []
147
-
148
- rubyforge_project:
143
+ rubyforge_project:
149
144
  rubygems_version: 1.8.15
150
- signing_key:
145
+ signing_key:
151
146
  specification_version: 3
152
147
  summary: esendex SOAP-XML-API for ruby
153
148
  test_files: []
154
-
149
+ ...