cellular 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
+ <soap:Body>
4
+ <SendResponse xmlns="http://smsc.sendega.com/Content">
5
+ <SendResult>
6
+ <MessageID>d3d2d61e-XXXX-XXXX-XXXX-e258e3a2c7f0</MessageID>
7
+ <ErrorMessage/>
8
+ <ErrorNumber>0</ErrorNumber>
9
+ <Success>true</Success>
10
+ </SendResult>
11
+ </SendResponse>
12
+ </soap:Body>
13
+ </soap:Envelope>
@@ -0,0 +1,25 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+
4
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
+ SimpleCov::Formatter::HTMLFormatter,
6
+ Coveralls::SimpleCov::Formatter
7
+ ]
8
+ SimpleCov.start
9
+
10
+ require 'webmock/rspec'
11
+
12
+ require 'cellular'
13
+
14
+ Dir['./spec/support/**/*.rb'].sort.each { |file| require file }
15
+
16
+ RSpec.configure do |config|
17
+
18
+ # Allow focussing on individual specs
19
+ config.filter_run focus: true
20
+ config.run_all_when_everything_filtered = true
21
+
22
+ # Run specs in random order to surface order dependencies
23
+ config.order = 'random'
24
+
25
+ end
@@ -0,0 +1,4 @@
1
+ # Convenience method to retrieve a fixture
2
+ def fixture(file)
3
+ File.read "spec/fixtures/#{file}"
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cellular
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sindre Moen
@@ -9,34 +9,132 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-03 00:00:00.000000000 Z
12
+ date: 2014-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.13.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.13.0
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: savon
16
30
  requirement: !ruby/object:Gem::Requirement
17
31
  requirements:
18
- - - '>='
32
+ - - "~>"
19
33
  - !ruby/object:Gem::Version
20
- version: '0'
34
+ version: '2.0'
21
35
  type: :runtime
22
36
  prerelease: false
23
37
  version_requirements: !ruby/object:Gem::Requirement
24
38
  requirements:
25
- - - '>='
39
+ - - "~>"
26
40
  - !ruby/object:Gem::Version
27
- version: '0'
41
+ version: '2.0'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: pry
30
44
  requirement: !ruby/object:Gem::Requirement
31
45
  requirements:
32
- - - '>='
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: guard
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: guard-rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rake
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: webmock
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: coveralls
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: simplecov
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
33
131
  - !ruby/object:Gem::Version
34
132
  version: '0'
35
133
  type: :development
36
134
  prerelease: false
37
135
  version_requirements: !ruby/object:Gem::Requirement
38
136
  requirements:
39
- - - '>='
137
+ - - ">="
40
138
  - !ruby/object:Gem::Version
41
139
  version: '0'
42
140
  description: Sending and receiving SMSs through pluggable backends
@@ -46,18 +144,34 @@ executables: []
46
144
  extensions: []
47
145
  extra_rdoc_files: []
48
146
  files:
49
- - .gitignore
147
+ - ".gitignore"
148
+ - ".rspec"
149
+ - ".travis.yml"
50
150
  - Gemfile
151
+ - Guardfile
51
152
  - LICENSE.md
52
153
  - README.md
53
154
  - Rakefile
54
155
  - cellular.gemspec
55
156
  - lib/cellular.rb
56
157
  - lib/cellular/backends.rb
158
+ - lib/cellular/backends/cool_sms.rb
57
159
  - lib/cellular/backends/sendega.rb
58
160
  - lib/cellular/configuration.rb
59
161
  - lib/cellular/models/sms.rb
60
162
  - lib/cellular/version.rb
163
+ - spec/cellular/backends/cool_sms_spec.rb
164
+ - spec/cellular/backends/sendega_spec.rb
165
+ - spec/cellular/configuration_spec.rb
166
+ - spec/cellular/models/sms_spec.rb
167
+ - spec/cellular_spec.rb
168
+ - spec/fixtures/backends/cool_sms/failure.xml
169
+ - spec/fixtures/backends/cool_sms/success.xml
170
+ - spec/fixtures/backends/sendega/failure.xml
171
+ - spec/fixtures/backends/sendega/service.wsdl
172
+ - spec/fixtures/backends/sendega/success.xml
173
+ - spec/spec_helper.rb
174
+ - spec/support/fixture.rb
61
175
  homepage: ''
62
176
  licenses: []
63
177
  metadata: {}
@@ -67,18 +181,30 @@ require_paths:
67
181
  - lib
68
182
  required_ruby_version: !ruby/object:Gem::Requirement
69
183
  requirements:
70
- - - '>='
184
+ - - ">="
71
185
  - !ruby/object:Gem::Version
72
186
  version: '0'
73
187
  required_rubygems_version: !ruby/object:Gem::Requirement
74
188
  requirements:
75
- - - '>='
189
+ - - ">="
76
190
  - !ruby/object:Gem::Version
77
191
  version: '0'
78
192
  requirements: []
79
193
  rubyforge_project:
80
- rubygems_version: 2.2.1
194
+ rubygems_version: 2.2.0
81
195
  signing_key:
82
196
  specification_version: 4
83
197
  summary: Sending and receiving SMSs through pluggable backends
84
- test_files: []
198
+ test_files:
199
+ - spec/cellular/backends/cool_sms_spec.rb
200
+ - spec/cellular/backends/sendega_spec.rb
201
+ - spec/cellular/configuration_spec.rb
202
+ - spec/cellular/models/sms_spec.rb
203
+ - spec/cellular_spec.rb
204
+ - spec/fixtures/backends/cool_sms/failure.xml
205
+ - spec/fixtures/backends/cool_sms/success.xml
206
+ - spec/fixtures/backends/sendega/failure.xml
207
+ - spec/fixtures/backends/sendega/service.wsdl
208
+ - spec/fixtures/backends/sendega/success.xml
209
+ - spec/spec_helper.rb
210
+ - spec/support/fixture.rb