groupme-trails 1.1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/History.txt +49 -0
  2. data/Manifest.txt +55 -0
  3. data/README.txt +46 -0
  4. data/Rakefile +11 -0
  5. data/assets/layouts/default_layout.twiml.builder +4 -0
  6. data/bin/trails +0 -0
  7. data/lib/trails.rb +13 -0
  8. data/lib/trails/exception.rb +6 -0
  9. data/lib/trails/test_helper.rb +147 -0
  10. data/lib/trails/twilio/account.rb +203 -0
  11. data/lib/trails/twilio/call_handling.rb +52 -0
  12. data/lib/trails/twilio/incoming.rb +67 -0
  13. data/lib/twiliorest.rb +115 -0
  14. data/test/example/README +243 -0
  15. data/test/example/Rakefile +10 -0
  16. data/test/example/app/controllers/application_controller.rb +11 -0
  17. data/test/example/app/controllers/calls_controller.rb +8 -0
  18. data/test/example/app/helpers/application_helper.rb +3 -0
  19. data/test/example/app/helpers/calls_helper.rb +2 -0
  20. data/test/example/app/views/calls/index.html.erb +1 -0
  21. data/test/example/app/views/calls/index.twiml.builder +2 -0
  22. data/test/example/config/boot.rb +110 -0
  23. data/test/example/config/database.yml +22 -0
  24. data/test/example/config/environment.rb +43 -0
  25. data/test/example/config/environments/development.rb +17 -0
  26. data/test/example/config/environments/production.rb +28 -0
  27. data/test/example/config/environments/test.rb +28 -0
  28. data/test/example/config/initializers/backtrace_silencers.rb +7 -0
  29. data/test/example/config/initializers/inflections.rb +10 -0
  30. data/test/example/config/initializers/mime_types.rb +5 -0
  31. data/test/example/config/initializers/new_rails_defaults.rb +21 -0
  32. data/test/example/config/initializers/session_store.rb +15 -0
  33. data/test/example/config/locales/en.yml +5 -0
  34. data/test/example/config/routes.rb +43 -0
  35. data/test/example/config/twilio.yml +3 -0
  36. data/test/example/db/development.sqlite3 +0 -0
  37. data/test/example/db/schema.rb +14 -0
  38. data/test/example/db/seeds.rb +7 -0
  39. data/test/example/db/test.sqlite3 +0 -0
  40. data/test/example/doc/README_FOR_APP +2 -0
  41. data/test/example/script/about +4 -0
  42. data/test/example/script/console +3 -0
  43. data/test/example/script/dbconsole +3 -0
  44. data/test/example/script/destroy +3 -0
  45. data/test/example/script/generate +3 -0
  46. data/test/example/script/performance/benchmarker +3 -0
  47. data/test/example/script/performance/profiler +3 -0
  48. data/test/example/script/plugin +3 -0
  49. data/test/example/script/runner +3 -0
  50. data/test/example/script/server +3 -0
  51. data/test/example/test/functional/calls_controller_test.rb +15 -0
  52. data/test/example/test/performance/browsing_test.rb +9 -0
  53. data/test/example/test/test_helper.rb +38 -0
  54. data/test/example/test/unit/helpers/calls_helper_test.rb +4 -0
  55. data/test/test_trails.rb +11 -0
  56. metadata +160 -0
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
7
+ # Major.create(:name => 'Daley', :city => cities.first)
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
4
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/server'
@@ -0,0 +1,15 @@
1
+ require File.join( File.dirname( __FILE__ ), '../test_helper' )
2
+ require 'trails/test_helper'
3
+
4
+ class CallsControllerTest < ActionController::TestCase
5
+ include Trails::TestHelper
6
+
7
+ test "the index action" do
8
+ get :index
9
+ assert_response :success
10
+ assert_match( /Click to /, @response.body )
11
+ as_twilio{ get :index }
12
+ assert_response :success
13
+ # assert_tag( :tag => 'Say' ) # WIP
14
+ end
15
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionController::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,38 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class CallsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,11 @@
1
+ require "test/unit"
2
+ require "trails"
3
+
4
+ class TestTrails < Test::Unit::TestCase
5
+ def test_truth
6
+ assert( true )
7
+ end
8
+
9
+
10
+
11
+ end
metadata ADDED
@@ -0,0 +1,160 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: groupme-trails
3
+ version: !ruby/object:Gem::Version
4
+ hash: 65
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 5
10
+ - 1
11
+ version: 1.1.5.1
12
+ platform: ruby
13
+ authors:
14
+ - Hemant Bhanoo
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-07-15 00:00:00 -04:00
20
+ default_executable: trails
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: rubyforge
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 7
31
+ segments:
32
+ - 2
33
+ - 0
34
+ - 4
35
+ version: 2.0.4
36
+ type: :development
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: hoe
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 21
47
+ segments:
48
+ - 2
49
+ - 6
50
+ - 1
51
+ version: 2.6.1
52
+ type: :development
53
+ version_requirements: *id002
54
+ description: |-
55
+ Makes developing twilio applications (even) easier in rails.
56
+ Support for SMS, twiml MimeType alias, functional test helpers.
57
+ email:
58
+ - hemant@bhanoo.com
59
+ executables:
60
+ - trails
61
+ extensions: []
62
+
63
+ extra_rdoc_files:
64
+ - History.txt
65
+ - Manifest.txt
66
+ - README.txt
67
+ files:
68
+ - History.txt
69
+ - Manifest.txt
70
+ - README.txt
71
+ - Rakefile
72
+ - assets/layouts/default_layout.twiml.builder
73
+ - bin/trails
74
+ - lib/trails.rb
75
+ - lib/trails/exception.rb
76
+ - lib/trails/test_helper.rb
77
+ - lib/trails/twilio/account.rb
78
+ - lib/trails/twilio/call_handling.rb
79
+ - lib/trails/twilio/incoming.rb
80
+ - lib/twiliorest.rb
81
+ - test/example/README
82
+ - test/example/Rakefile
83
+ - test/example/app/controllers/application_controller.rb
84
+ - test/example/app/controllers/calls_controller.rb
85
+ - test/example/app/helpers/application_helper.rb
86
+ - test/example/app/helpers/calls_helper.rb
87
+ - test/example/app/views/calls/index.html.erb
88
+ - test/example/app/views/calls/index.twiml.builder
89
+ - test/example/config/boot.rb
90
+ - test/example/config/database.yml
91
+ - test/example/config/environment.rb
92
+ - test/example/config/environments/development.rb
93
+ - test/example/config/environments/production.rb
94
+ - test/example/config/environments/test.rb
95
+ - test/example/config/initializers/backtrace_silencers.rb
96
+ - test/example/config/initializers/inflections.rb
97
+ - test/example/config/initializers/mime_types.rb
98
+ - test/example/config/initializers/new_rails_defaults.rb
99
+ - test/example/config/initializers/session_store.rb
100
+ - test/example/config/locales/en.yml
101
+ - test/example/config/routes.rb
102
+ - test/example/config/twilio.yml
103
+ - test/example/db/development.sqlite3
104
+ - test/example/db/schema.rb
105
+ - test/example/db/seeds.rb
106
+ - test/example/db/test.sqlite3
107
+ - test/example/doc/README_FOR_APP
108
+ - test/example/script/about
109
+ - test/example/script/console
110
+ - test/example/script/dbconsole
111
+ - test/example/script/destroy
112
+ - test/example/script/generate
113
+ - test/example/script/performance/benchmarker
114
+ - test/example/script/performance/profiler
115
+ - test/example/script/plugin
116
+ - test/example/script/runner
117
+ - test/example/script/server
118
+ - test/example/test/functional/calls_controller_test.rb
119
+ - test/example/test/performance/browsing_test.rb
120
+ - test/example/test/test_helper.rb
121
+ - test/example/test/unit/helpers/calls_helper_test.rb
122
+ - test/test_trails.rb
123
+ has_rdoc: true
124
+ homepage: http://code.google.com/p/twilio-on-rails/
125
+ licenses: []
126
+
127
+ post_install_message:
128
+ rdoc_options:
129
+ - --main
130
+ - README.txt
131
+ require_paths:
132
+ - lib
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ hash: 3
139
+ segments:
140
+ - 0
141
+ version: "0"
142
+ required_rubygems_version: !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ hash: 3
148
+ segments:
149
+ - 0
150
+ version: "0"
151
+ requirements: []
152
+
153
+ rubyforge_project: trails
154
+ rubygems_version: 1.3.7
155
+ signing_key:
156
+ specification_version: 3
157
+ summary: Makes developing twilio applications (even) easier in rails
158
+ test_files:
159
+ - test/example/test/test_helper.rb
160
+ - test/test_trails.rb