instedd-pigeon 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -198,3 +198,30 @@ xmpp:
198
198
  type: boolean
199
199
  label: Send if user is offline
200
200
 
201
+ shujaa:
202
+ humanized_name: 'Shujaa channel'
203
+ attributes:
204
+ - name: protocol
205
+ value: sms
206
+ user: false
207
+ - name: configuration
208
+ attributes:
209
+ - name: shujaa_url
210
+ default_value: http://sms.shujaa.mobi
211
+ label: Shujaa URL
212
+ - name: username
213
+ label: Username (your account's username or email)
214
+ - name: password
215
+ type: password
216
+ label: Password (your account's password)
217
+ - name: shujaa_account
218
+ type: enum
219
+ label: Account
220
+ options:
221
+ - value: live
222
+ display: Live
223
+ - value: developer
224
+ display: Developer
225
+ - name: address
226
+ label: Source (the short code or mask which will be used as the origin of this SMS)
227
+
@@ -1,3 +1,3 @@
1
1
  module Pigeon
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -0,0 +1,16 @@
1
+ Pigeon.setup do |config|
2
+ config.application_name = 'Test application'
3
+
4
+ config.nuntium_host = 'http://nuntium.instedd.org'
5
+ config.nuntium_account = 'ACCOUNT'
6
+ config.nuntium_app = 'APP'
7
+ config.nuntium_app_password = 'PASSWORD'
8
+
9
+ config.verboice_host = 'http://verboice.instedd.org'
10
+ config.verboice_account = 'ACCOUNT'
11
+ config.verboice_password = 'PASSWORD'
12
+ config.verboice_default_call_flow = 'Default Call Flow'
13
+
14
+ #config.twitter_consumer_key = ''
15
+ #config.twitter_consumer_secret = ''
16
+ end
File without changes
File without changes
@@ -130,78 +130,78 @@ module Pigeon
130
130
  end
131
131
 
132
132
  def should_receive_http_get(path, body = nil)
133
- resource = mock 'resource'
133
+ resource = double 'resource'
134
134
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
135
135
 
136
- resource2 = mock 'resource2'
136
+ resource2 = double 'resource2'
137
137
  resource.should_receive(:[]).with(path).and_return(resource2)
138
138
 
139
- resource3 = mock 'resource3'
139
+ resource3 = double 'resource3'
140
140
  resource2.should_receive(:get).and_return(resource3)
141
141
 
142
142
  resource3.should_receive(:body).and_return(body) if body
143
143
  end
144
144
 
145
145
  def should_receive_http_get_with_headers(path, headers)
146
- resource = mock 'resource'
146
+ resource = double 'resource'
147
147
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
148
148
 
149
- resource2 = mock 'resource2'
149
+ resource2 = double 'resource2'
150
150
  resource.should_receive(:[]).with(path).and_return(resource2)
151
151
 
152
- resource3 = mock 'resource3'
152
+ resource3 = double 'resource3'
153
153
  resource2.should_receive(:get).and_return(resource3)
154
154
 
155
155
  resource3.stub(:headers) { headers }
156
156
  end
157
157
 
158
158
  def should_receive_http_post(path, data, body)
159
- resource = mock 'resource'
159
+ resource = double 'resource'
160
160
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
161
161
 
162
- resource2 = mock 'resource2'
162
+ resource2 = double 'resource2'
163
163
  resource.should_receive(:[]).with(path).and_return(resource2)
164
164
 
165
- resource3 = mock 'resource3'
165
+ resource3 = double 'resource3'
166
166
  resource2.should_receive(:post).with(data).and_return(resource3)
167
167
 
168
168
  resource3.stub(:body) { body }
169
169
  end
170
170
 
171
171
  def should_receive_http_post_with_headers(path, data, headers)
172
- resource = mock 'resource'
172
+ resource = double 'resource'
173
173
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
174
174
 
175
- resource2 = mock 'resource2'
175
+ resource2 = double 'resource2'
176
176
  resource.should_receive(:[]).with(path).and_return(resource2)
177
177
 
178
- resource3 = mock 'resource3'
178
+ resource3 = double 'resource3'
179
179
  resource2.should_receive(:post).with(data).and_return(resource3)
180
180
 
181
181
  resource3.stub(:headers) { headers }
182
182
  end
183
183
 
184
184
  def should_receive_http_put(path, data, body)
185
- resource = mock 'resource'
185
+ resource = double 'resource'
186
186
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
187
187
 
188
- resource2 = mock 'resource2'
188
+ resource2 = double 'resource2'
189
189
  resource.should_receive(:[]).with(path).and_return(resource2)
190
190
 
191
- resource3 = mock 'resource3'
191
+ resource3 = double 'resource3'
192
192
  resource2.should_receive(:put).with(data).and_return(resource3)
193
193
 
194
194
  resource3.should_receive(:body).and_return(body)
195
195
  end
196
196
 
197
197
  def should_receive_http_delete(path)
198
- resource = mock 'resource'
198
+ resource = double 'resource'
199
199
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
200
200
 
201
- resource2 = mock 'resource2'
201
+ resource2 = double 'resource2'
202
202
  resource.should_receive(:[]).with(path).and_return(resource2)
203
203
 
204
- resource3 = mock 'resource3'
204
+ resource3 = double 'resource3'
205
205
  resource2.should_receive(:delete)
206
206
  end
207
207
  end
@@ -128,52 +128,52 @@ module Pigeon
128
128
  end
129
129
 
130
130
  def should_receive_http_get(path, body = nil)
131
- resource = mock 'resource'
131
+ resource = double 'resource'
132
132
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
133
133
 
134
- resource2 = mock 'resource2'
134
+ resource2 = double 'resource2'
135
135
  resource.should_receive(:[]).with(path).and_return(resource2)
136
136
 
137
- resource3 = mock 'resource3'
137
+ resource3 = double 'resource3'
138
138
  resource2.should_receive(:get).and_return(resource3)
139
139
 
140
140
  resource3.should_receive(:body).and_return(body) if body
141
141
  end
142
142
 
143
143
  def should_receive_http_post(path, data, body)
144
- resource = mock 'resource'
144
+ resource = double 'resource'
145
145
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
146
146
 
147
- resource2 = mock 'resource2'
147
+ resource2 = double 'resource2'
148
148
  resource.should_receive(:[]).with(path).and_return(resource2)
149
149
 
150
- resource3 = mock 'resource3'
150
+ resource3 = double 'resource3'
151
151
  resource2.should_receive(:post).with(data).and_return(resource3)
152
152
 
153
153
  resource3.stub(:body) { body }
154
154
  end
155
155
 
156
156
  def should_receive_http_put(path, data, body)
157
- resource = mock 'resource'
157
+ resource = double 'resource'
158
158
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
159
159
 
160
- resource2 = mock 'resource2'
160
+ resource2 = double 'resource2'
161
161
  resource.should_receive(:[]).with(path).and_return(resource2)
162
162
 
163
- resource3 = mock 'resource3'
163
+ resource3 = double 'resource3'
164
164
  resource2.should_receive(:put).with(data).and_return(resource3)
165
165
 
166
166
  resource3.stub(:body) { body }
167
167
  end
168
168
 
169
169
  def should_receive_http_delete(path)
170
- resource = mock 'resource'
170
+ resource = double 'resource'
171
171
  RestClient::Resource.should_receive(:new).with(url, options).and_return(resource)
172
172
 
173
- resource2 = mock 'resource2'
173
+ resource2 = double 'resource2'
174
174
  resource.should_receive(:[]).with(path).and_return(resource2)
175
175
 
176
- resource3 = mock 'resource3'
176
+ resource3 = double 'resource3'
177
177
  resource2.should_receive(:delete)
178
178
  end
179
179
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instedd-pigeon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-11 00:00:00.000000000 Z
13
+ date: 2013-07-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -155,11 +155,14 @@ files:
155
155
  - spec/dummy/config/initializers/backtrace_silencers.rb
156
156
  - spec/dummy/config/initializers/inflections.rb
157
157
  - spec/dummy/config/initializers/mime_types.rb
158
+ - spec/dummy/config/initializers/pigeon.rb
158
159
  - spec/dummy/config/initializers/secret_token.rb
159
160
  - spec/dummy/config/initializers/session_store.rb
160
161
  - spec/dummy/config/initializers/wrap_parameters.rb
161
162
  - spec/dummy/config/locales/en.yml
162
163
  - spec/dummy/config/routes.rb
164
+ - spec/dummy/db/development.sqlite3
165
+ - spec/dummy/db/test.sqlite3
163
166
  - spec/dummy/lib/assets/.gitkeep
164
167
  - spec/dummy/log/.gitkeep
165
168
  - spec/dummy/public/404.html
@@ -195,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
198
  version: '0'
196
199
  segments:
197
200
  - 0
198
- hash: 266118477
201
+ hash: 4020436503618818902
199
202
  required_rubygems_version: !ruby/object:Gem::Requirement
200
203
  none: false
201
204
  requirements:
@@ -204,10 +207,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
207
  version: '0'
205
208
  segments:
206
209
  - 0
207
- hash: 266118477
210
+ hash: 4020436503618818902
208
211
  requirements: []
209
212
  rubyforge_project:
210
- rubygems_version: 1.8.25
213
+ rubygems_version: 1.8.23
211
214
  signing_key:
212
215
  specification_version: 3
213
216
  summary: This gem handles creating, updating and destroying channels in Nuntium and
@@ -234,11 +237,14 @@ test_files:
234
237
  - spec/dummy/config/initializers/backtrace_silencers.rb
235
238
  - spec/dummy/config/initializers/inflections.rb
236
239
  - spec/dummy/config/initializers/mime_types.rb
240
+ - spec/dummy/config/initializers/pigeon.rb
237
241
  - spec/dummy/config/initializers/secret_token.rb
238
242
  - spec/dummy/config/initializers/session_store.rb
239
243
  - spec/dummy/config/initializers/wrap_parameters.rb
240
244
  - spec/dummy/config/locales/en.yml
241
245
  - spec/dummy/config/routes.rb
246
+ - spec/dummy/db/development.sqlite3
247
+ - spec/dummy/db/test.sqlite3
242
248
  - spec/dummy/lib/assets/.gitkeep
243
249
  - spec/dummy/log/.gitkeep
244
250
  - spec/dummy/public/404.html