robocall 0.0.1 → 0.0.2

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.
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'robocall' do
4
+
5
+
6
+
7
+ it 'should create a record' do
8
+
9
+ Robocall.sid = 'x'
10
+ Robocall.auth_token = 'x'
11
+ Robocall.from_phone_number = '555 555 5555'
12
+ Robocall.base_path = "http://localhost:3000"
13
+ # Needs mocking
14
+ # Robocall.send_robocall(to: "555 555 5555", text: "Hello you there")
15
+
16
+ end
17
+
18
+ end
19
+
20
+
@@ -5,9 +5,8 @@ module Robocall
5
5
  describe 'routing' do
6
6
 
7
7
  it 'routes to #post' do
8
- post('/robocalls/1/123a').should route_to('robocalls#update', :id => '1', :token => '123a')
8
+ post('/robocall/1/123a').should route_to('robocall/robocalls#connected_to_caller', :id => '1', :token => '123a', :format=> 'xml')
9
9
  end
10
-
11
10
  end
12
11
  end
13
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robocall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reto Stamm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-08 00:00:00.000000000 Z
11
+ date: 2013-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: haml-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: sqlite3
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +106,8 @@ files:
92
106
  - app/helpers/robocall/application_helper.rb
93
107
  - app/models/robocall/robocall.rb
94
108
  - app/views/layouts/robocall/application.html.erb
95
- - app/views/robocall/robocalls/render.xml.erb
109
+ - app/views/robocall/robocalls/connected_to_caller.xml.haml
110
+ - app/views/robocall/robocalls/error.xml.haml
96
111
  - config/routes.rb
97
112
  - db/migrate/20130807225623_create_robocall_robocalls.rb
98
113
  - lib/robocall/engine.rb
@@ -141,12 +156,13 @@ files:
141
156
  - spec/dummy/README.rdoc
142
157
  - spec/dummy/script/rails
143
158
  - spec/factories/robocall_robocalls.rb
144
- - spec/lib/robocall.spec
159
+ - spec/lib/robocall_spec.rb
145
160
  - spec/models/robocall/robocall_spec.rb
146
161
  - spec/routing/robocall/robocalls_routing_spec.rb
147
162
  - spec/spec_helper.rb
148
163
  homepage: https://github.com/Originate/robocall
149
- licenses: []
164
+ licenses:
165
+ - MIT
150
166
  metadata: {}
151
167
  post_install_message:
152
168
  rdoc_options: []
@@ -208,7 +224,7 @@ test_files:
208
224
  - spec/dummy/README.rdoc
209
225
  - spec/dummy/script/rails
210
226
  - spec/factories/robocall_robocalls.rb
211
- - spec/lib/robocall.spec
227
+ - spec/lib/robocall_spec.rb
212
228
  - spec/models/robocall/robocall_spec.rb
213
229
  - spec/routing/robocall/robocalls_routing_spec.rb
214
230
  - spec/spec_helper.rb
@@ -1,10 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'robocall' do
4
-
5
- it 'should be cool' do
6
- end
7
-
8
- end
9
-
10
-