소스 검색

First commit, rails app exists with gems.

Setup to use haml, sass, bootstrap, and angular with rspec and webmock
for twilio
Lily Carpenter 10 년 전
부모
커밋
55c0d81780
60개의 변경된 파일1576개의 추가작업 그리고 2개의 파일을 삭제
  1. 51 2
      .gitignore
  2. 60 0
      twilio/Gemfile
  3. 191 0
      twilio/Gemfile.lock
  4. 28 0
      twilio/README.rdoc
  5. 6 0
      twilio/Rakefile
  6. 0 0
      twilio/app/assets/images/.keep
  7. 19 0
      twilio/app/assets/javascripts/application.js
  8. 3 0
      twilio/app/assets/javascripts/bootstrap.js.coffee
  9. 15 0
      twilio/app/assets/stylesheets/application.css
  10. 29 0
      twilio/app/assets/stylesheets/bootstrap_and_overrides.css.less
  11. 5 0
      twilio/app/controllers/application_controller.rb
  12. 0 0
      twilio/app/controllers/concerns/.keep
  13. 2 0
      twilio/app/helpers/application_helper.rb
  14. 0 0
      twilio/app/mailers/.keep
  15. 0 0
      twilio/app/models/.keep
  16. 0 0
      twilio/app/models/concerns/.keep
  17. 14 0
      twilio/app/views/layouts/application.html.erb
  18. 3 0
      twilio/bin/bundle
  19. 4 0
      twilio/bin/rails
  20. 4 0
      twilio/bin/rake
  21. 4 0
      twilio/config.ru
  22. 23 0
      twilio/config/application.rb
  23. 4 0
      twilio/config/boot.rb
  24. 5 0
      twilio/config/environment.rb
  25. 37 0
      twilio/config/environments/development.rb
  26. 82 0
      twilio/config/environments/production.rb
  27. 39 0
      twilio/config/environments/test.rb
  28. 8 0
      twilio/config/initializers/assets.rb
  29. 7 0
      twilio/config/initializers/backtrace_silencers.rb
  30. 3 0
      twilio/config/initializers/cookies_serializer.rb
  31. 4 0
      twilio/config/initializers/filter_parameter_logging.rb
  32. 16 0
      twilio/config/initializers/inflections.rb
  33. 4 0
      twilio/config/initializers/mime_types.rb
  34. 3 0
      twilio/config/initializers/session_store.rb
  35. 14 0
      twilio/config/initializers/wrap_parameters.rb
  36. 23 0
      twilio/config/locales/en.bootstrap.yml
  37. 23 0
      twilio/config/locales/en.yml
  38. 56 0
      twilio/config/routes.rb
  39. 7 0
      twilio/db/seeds.rb
  40. 0 0
      twilio/lib/assets/.keep
  41. 0 0
      twilio/lib/tasks/.keep
  42. 0 0
      twilio/log/.keep
  43. 443 0
      twilio/log/development.log
  44. 67 0
      twilio/public/404.html
  45. 67 0
      twilio/public/422.html
  46. 66 0
      twilio/public/500.html
  47. 0 0
      twilio/public/favicon.ico
  48. 5 0
      twilio/public/robots.txt
  49. 43 0
      twilio/spec/rails_helper.rb
  50. 78 0
      twilio/spec/spec_helper.rb
  51. 0 0
      twilio/test/controllers/.keep
  52. 0 0
      twilio/test/fixtures/.keep
  53. 0 0
      twilio/test/helpers/.keep
  54. 0 0
      twilio/test/integration/.keep
  55. 0 0
      twilio/test/mailers/.keep
  56. 0 0
      twilio/test/models/.keep
  57. 10 0
      twilio/test/test_helper.rb
  58. 1 0
      twilio/tmp/pids/server.pid
  59. 0 0
      twilio/vendor/assets/javascripts/.keep
  60. 0 0
      twilio/vendor/assets/stylesheets/.keep

+ 51 - 2
.gitignore

@@ -1,3 +1,40 @@
1
+database.yml
2
+
3
+# Created by http://www.gitignore.io
4
+
5
+### Emacs ###
6
+# -*- mode: gitignore; -*-
7
+*~
8
+\#*\#
9
+/.emacs.desktop
10
+/.emacs.desktop.lock
11
+*.elc
12
+auto-save-list
13
+tramp
14
+.\#*
15
+
16
+# Org-mode
17
+.org-id-locations
18
+*_archive
19
+
20
+# flymake-mode
21
+*_flymake.*
22
+
23
+# eshell files
24
+/eshell/history
25
+/eshell/lastdir
26
+
27
+# elpa packages
28
+/elpa/
29
+
30
+# reftex files
31
+*.rel
32
+
33
+# AUCTeX auto folder
34
+/auto/
35
+
36
+
37
+### Rails ###
1 38
 *.rbc
2 39
 capybara-*.html
3 40
 .rspec
@@ -10,8 +47,10 @@ capybara-*.html
10 47
 **.orig
11 48
 rerun.txt
12 49
 pickle-email-*.html
13
-config/initializers/secret_token.rb
14
-config/secrets.yml
50
+
51
+# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
52
+twilio/config/initializers/secret_token.rb
53
+twilio/config/secrets.yml
15 54
 
16 55
 ## Environment normalisation:
17 56
 /.bundle
@@ -22,3 +61,13 @@ config/secrets.yml
22 61
 
23 62
 # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
24 63
 .rvmrc
64
+
65
+# if using bower-rails ignore default bower_components path bower.json files
66
+/vendor/assets/bower_components
67
+*.bowerrc
68
+bower.json
69
+
70
+
71
+### Sass ###
72
+.sass-cache
73
+/twilio/Gemfile~

+ 60 - 0
twilio/Gemfile

@@ -0,0 +1,60 @@
1
+source 'https://rubygems.org'
2
+
3
+
4
+# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
+gem 'rails', '4.1.5'
6
+# Use sqlite3 as the database for Active Record
7
+gem 'pg'
8
+
9
+#use haml
10
+gem 'haml-rails'
11
+
12
+# Use SCSS for stylesheets
13
+gem 'sass-rails', '~> 4.0.3'
14
+# Use Uglifier as compressor for JavaScript assets
15
+gem 'uglifier', '>= 1.3.0'
16
+# Use CoffeeScript for .js.coffee assets and views
17
+gem 'coffee-rails', '~> 4.0.0'
18
+# See https://github.com/sstephenson/execjs#readme for more supported runtimes
19
+# gem 'therubyracer',  platforms: :ruby
20
+
21
+# Use jquery as the JavaScript library
22
+gem 'jquery-rails'
23
+# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
24
+gem 'turbolinks'
25
+# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
26
+gem 'jbuilder', '~> 2.0'
27
+# bundle exec rake doc:rails generates the API under doc/api.
28
+gem 'sdoc', '~> 0.4.0',          group: :doc
29
+
30
+# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
31
+gem 'spring',        group: :development
32
+
33
+# Use ActiveModel has_secure_password
34
+gem 'bcrypt', '~> 3.1.7'
35
+
36
+# Use unicorn as the app server
37
+# gem 'unicorn'
38
+
39
+# Use Capistrano for deployment
40
+# gem 'capistrano-rails', group: :development
41
+
42
+# Use debugger
43
+# gem 'debugger', group: [:development, :test]
44
+
45
+# bootstrap
46
+gem 'therubyracer'
47
+gem 'less-rails'
48
+gem 'twitter-bootstrap-rails'
49
+
50
+
51
+# angular
52
+gem 'angular-rails-templates'
53
+
54
+#twilio
55
+gem 'twilio-ruby'
56
+
57
+group :development, :test do
58
+  gem 'rspec-rails', '~> 3.0.0'
59
+  gem 'webmock'
60
+end

+ 191 - 0
twilio/Gemfile.lock

@@ -0,0 +1,191 @@
1
+GEM
2
+  remote: https://rubygems.org/
3
+  specs:
4
+    actionmailer (4.1.5)
5
+      actionpack (= 4.1.5)
6
+      actionview (= 4.1.5)
7
+      mail (~> 2.5.4)
8
+    actionpack (4.1.5)
9
+      actionview (= 4.1.5)
10
+      activesupport (= 4.1.5)
11
+      rack (~> 1.5.2)
12
+      rack-test (~> 0.6.2)
13
+    actionview (4.1.5)
14
+      activesupport (= 4.1.5)
15
+      builder (~> 3.1)
16
+      erubis (~> 2.7.0)
17
+    activemodel (4.1.5)
18
+      activesupport (= 4.1.5)
19
+      builder (~> 3.1)
20
+    activerecord (4.1.5)
21
+      activemodel (= 4.1.5)
22
+      activesupport (= 4.1.5)
23
+      arel (~> 5.0.0)
24
+    activesupport (4.1.5)
25
+      i18n (~> 0.6, >= 0.6.9)
26
+      json (~> 1.7, >= 1.7.7)
27
+      minitest (~> 5.1)
28
+      thread_safe (~> 0.1)
29
+      tzinfo (~> 1.1)
30
+    addressable (2.3.6)
31
+    angular-rails-templates (0.1.3)
32
+      railties (>= 3.1)
33
+      sprockets
34
+      tilt
35
+    arel (5.0.1.20140414130214)
36
+    bcrypt (3.1.7)
37
+    builder (3.2.2)
38
+    coffee-rails (4.0.1)
39
+      coffee-script (>= 2.2.0)
40
+      railties (>= 4.0.0, < 5.0)
41
+    coffee-script (2.3.0)
42
+      coffee-script-source
43
+      execjs
44
+    coffee-script-source (1.8.0)
45
+    commonjs (0.2.7)
46
+    crack (0.4.2)
47
+      safe_yaml (~> 1.0.0)
48
+    diff-lcs (1.2.5)
49
+    erubis (2.7.0)
50
+    execjs (2.2.1)
51
+    haml (4.0.5)
52
+      tilt
53
+    haml-rails (0.5.3)
54
+      actionpack (>= 4.0.1)
55
+      activesupport (>= 4.0.1)
56
+      haml (>= 3.1, < 5.0)
57
+      railties (>= 4.0.1)
58
+    hike (1.2.3)
59
+    i18n (0.6.11)
60
+    jbuilder (2.1.3)
61
+      activesupport (>= 3.0.0, < 5)
62
+      multi_json (~> 1.2)
63
+    jquery-rails (3.1.1)
64
+      railties (>= 3.0, < 5.0)
65
+      thor (>= 0.14, < 2.0)
66
+    json (1.8.1)
67
+    jwt (1.0.0)
68
+    less (2.5.1)
69
+      commonjs (~> 0.2.7)
70
+    less-rails (2.5.0)
71
+      actionpack (>= 3.1)
72
+      less (~> 2.5.0)
73
+    libv8 (3.16.14.3)
74
+    mail (2.5.4)
75
+      mime-types (~> 1.16)
76
+      treetop (~> 1.4.8)
77
+    mime-types (1.25.1)
78
+    minitest (5.4.1)
79
+    multi_json (1.10.1)
80
+    pg (0.17.1)
81
+    polyglot (0.3.5)
82
+    rack (1.5.2)
83
+    rack-test (0.6.2)
84
+      rack (>= 1.0)
85
+    rails (4.1.5)
86
+      actionmailer (= 4.1.5)
87
+      actionpack (= 4.1.5)
88
+      actionview (= 4.1.5)
89
+      activemodel (= 4.1.5)
90
+      activerecord (= 4.1.5)
91
+      activesupport (= 4.1.5)
92
+      bundler (>= 1.3.0, < 2.0)
93
+      railties (= 4.1.5)
94
+      sprockets-rails (~> 2.0)
95
+    railties (4.1.5)
96
+      actionpack (= 4.1.5)
97
+      activesupport (= 4.1.5)
98
+      rake (>= 0.8.7)
99
+      thor (>= 0.18.1, < 2.0)
100
+    rake (10.3.2)
101
+    rdoc (4.1.1)
102
+      json (~> 1.4)
103
+    ref (1.0.5)
104
+    rspec-core (3.0.4)
105
+      rspec-support (~> 3.0.0)
106
+    rspec-expectations (3.0.4)
107
+      diff-lcs (>= 1.2.0, < 2.0)
108
+      rspec-support (~> 3.0.0)
109
+    rspec-mocks (3.0.4)
110
+      rspec-support (~> 3.0.0)
111
+    rspec-rails (3.0.2)
112
+      actionpack (>= 3.0)
113
+      activesupport (>= 3.0)
114
+      railties (>= 3.0)
115
+      rspec-core (~> 3.0.0)
116
+      rspec-expectations (~> 3.0.0)
117
+      rspec-mocks (~> 3.0.0)
118
+      rspec-support (~> 3.0.0)
119
+    rspec-support (3.0.4)
120
+    safe_yaml (1.0.3)
121
+    sass (3.2.19)
122
+    sass-rails (4.0.3)
123
+      railties (>= 4.0.0, < 5.0)
124
+      sass (~> 3.2.0)
125
+      sprockets (~> 2.8, <= 2.11.0)
126
+      sprockets-rails (~> 2.0)
127
+    sdoc (0.4.1)
128
+      json (~> 1.7, >= 1.7.7)
129
+      rdoc (~> 4.0)
130
+    spring (1.1.3)
131
+    sprockets (2.11.0)
132
+      hike (~> 1.2)
133
+      multi_json (~> 1.0)
134
+      rack (~> 1.0)
135
+      tilt (~> 1.1, != 1.3.0)
136
+    sprockets-rails (2.1.3)
137
+      actionpack (>= 3.0)
138
+      activesupport (>= 3.0)
139
+      sprockets (~> 2.8)
140
+    therubyracer (0.12.1)
141
+      libv8 (~> 3.16.14.0)
142
+      ref
143
+    thor (0.19.1)
144
+    thread_safe (0.3.4)
145
+    tilt (1.4.1)
146
+    treetop (1.4.15)
147
+      polyglot
148
+      polyglot (>= 0.3.1)
149
+    turbolinks (2.3.0)
150
+      coffee-rails
151
+    twilio-ruby (3.12.2)
152
+      builder (>= 2.1.2)
153
+      jwt (~> 1.0.0)
154
+      multi_json (>= 1.3.0)
155
+    twitter-bootstrap-rails (3.2.0)
156
+      actionpack (~> 4.1)
157
+      execjs (~> 2.2)
158
+      rails (~> 4.1)
159
+      railties (~> 4.1)
160
+    tzinfo (1.2.2)
161
+      thread_safe (~> 0.1)
162
+    uglifier (2.5.3)
163
+      execjs (>= 0.3.0)
164
+      json (>= 1.8.0)
165
+    webmock (1.18.0)
166
+      addressable (>= 2.3.6)
167
+      crack (>= 0.3.2)
168
+
169
+PLATFORMS
170
+  ruby
171
+
172
+DEPENDENCIES
173
+  angular-rails-templates
174
+  bcrypt (~> 3.1.7)
175
+  coffee-rails (~> 4.0.0)
176
+  haml-rails
177
+  jbuilder (~> 2.0)
178
+  jquery-rails
179
+  less-rails
180
+  pg
181
+  rails (= 4.1.5)
182
+  rspec-rails (~> 3.0.0)
183
+  sass-rails (~> 4.0.3)
184
+  sdoc (~> 0.4.0)
185
+  spring
186
+  therubyracer
187
+  turbolinks
188
+  twilio-ruby
189
+  twitter-bootstrap-rails
190
+  uglifier (>= 1.3.0)
191
+  webmock

+ 28 - 0
twilio/README.rdoc

@@ -0,0 +1,28 @@
1
+== README
2
+
3
+This README would normally document whatever steps are necessary to get the
4
+application up and running.
5
+
6
+Things you may want to cover:
7
+
8
+* Ruby version
9
+
10
+* System dependencies
11
+
12
+* Configuration
13
+
14
+* Database creation
15
+
16
+* Database initialization
17
+
18
+* How to run the test suite
19
+
20
+* Services (job queues, cache servers, search engines, etc.)
21
+
22
+* Deployment instructions
23
+
24
+* ...
25
+
26
+
27
+Please feel free to use a different markup language if you do not plan to run
28
+<tt>rake doc:app</tt>.

+ 6 - 0
twilio/Rakefile

@@ -0,0 +1,6 @@
1
+# Add your own tasks in files placed in lib/tasks ending in .rake,
2
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+require File.expand_path('../config/application', __FILE__)
5
+
6
+Rails.application.load_tasks

+ 0 - 0
twilio/app/assets/images/.keep


+ 19 - 0
twilio/app/assets/javascripts/application.js

@@ -0,0 +1,19 @@
1
+// This is a manifest file that'll be compiled into application.js, which will include all the files
2
+// listed below.
3
+//
4
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+//
7
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+// compiled file.
9
+//
10
+// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+// about supported directives.
12
+//
13
+//= require jquery
14
+//= require jquery_ujs
15
+//= require twitter/bootstrap
16
+//= require turbolinks
17
+//= require angular-rails-templates
18
+//= require_tree .
19
+//= require_tree ./templates

+ 3 - 0
twilio/app/assets/javascripts/bootstrap.js.coffee

@@ -0,0 +1,3 @@
1
+jQuery ->
2
+  $("a[rel~=popover], .has-popover").popover()
3
+  $("a[rel~=tooltip], .has-tooltip").tooltip()

+ 15 - 0
twilio/app/assets/stylesheets/application.css

@@ -0,0 +1,15 @@
1
+/*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */

+ 29 - 0
twilio/app/assets/stylesheets/bootstrap_and_overrides.css.less

@@ -0,0 +1,29 @@
1
+@import "twitter/bootstrap/bootstrap";
2
+
3
+// Set the correct sprite paths
4
+@iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png");
5
+@iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png");
6
+
7
+// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
8
+@fontAwesomeEotPath: font-url("fontawesome-webfont.eot");
9
+@fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix");
10
+@fontAwesomeWoffPath: font-url("fontawesome-webfont.woff");
11
+@fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf");
12
+@fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular");
13
+
14
+// Font Awesome
15
+@import "fontawesome/font-awesome";
16
+
17
+// Glyphicons
18
+//@import "twitter/bootstrap/glyphicons.less";
19
+
20
+// Your custom LESS stylesheets goes here
21
+//
22
+// Since bootstrap was imported above you have access to its mixins which
23
+// you may use and inherit here
24
+//
25
+// If you'd like to override bootstrap's own variables, you can do so here as well
26
+// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
27
+//
28
+// Example:
29
+// @link-color: #ff0000;

+ 5 - 0
twilio/app/controllers/application_controller.rb

@@ -0,0 +1,5 @@
1
+class ApplicationController < ActionController::Base
2
+  # Prevent CSRF attacks by raising an exception.
3
+  # For APIs, you may want to use :null_session instead.
4
+  protect_from_forgery with: :exception
5
+end

+ 0 - 0
twilio/app/controllers/concerns/.keep


+ 2 - 0
twilio/app/helpers/application_helper.rb

@@ -0,0 +1,2 @@
1
+module ApplicationHelper
2
+end

+ 0 - 0
twilio/app/mailers/.keep


+ 0 - 0
twilio/app/models/.keep


+ 0 - 0
twilio/app/models/concerns/.keep


+ 14 - 0
twilio/app/views/layouts/application.html.erb

@@ -0,0 +1,14 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+  <title>Twilio</title>
5
+  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
6
+  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+  <%= csrf_meta_tags %>
8
+</head>
9
+<body>
10
+
11
+<%= yield %>
12
+
13
+</body>
14
+</html>

+ 3 - 0
twilio/bin/bundle

@@ -0,0 +1,3 @@
1
+#!/usr/bin/env ruby
2
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+load Gem.bin_path('bundler', 'bundle')

+ 4 - 0
twilio/bin/rails

@@ -0,0 +1,4 @@
1
+#!/usr/bin/env ruby
2
+APP_PATH = File.expand_path('../../config/application',  __FILE__)
3
+require_relative '../config/boot'
4
+require 'rails/commands'

+ 4 - 0
twilio/bin/rake

@@ -0,0 +1,4 @@
1
+#!/usr/bin/env ruby
2
+require_relative '../config/boot'
3
+require 'rake'
4
+Rake.application.run

+ 4 - 0
twilio/config.ru

@@ -0,0 +1,4 @@
1
+# This file is used by Rack-based servers to start the application.
2
+
3
+require ::File.expand_path('../config/environment',  __FILE__)
4
+run Rails.application

+ 23 - 0
twilio/config/application.rb

@@ -0,0 +1,23 @@
1
+require File.expand_path('../boot', __FILE__)
2
+
3
+require 'rails/all'
4
+
5
+# Require the gems listed in Gemfile, including any gems
6
+# you've limited to :test, :development, or :production.
7
+Bundler.require(*Rails.groups)
8
+
9
+module Twilio
10
+  class Application < Rails::Application
11
+    # Settings in config/environments/* take precedence over those specified here.
12
+    # Application configuration should go into files in config/initializers
13
+    # -- all .rb files in that directory are automatically loaded.
14
+
15
+    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
16
+    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
17
+    # config.time_zone = 'Central Time (US & Canada)'
18
+
19
+    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20
+    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21
+    # config.i18n.default_locale = :de
22
+  end
23
+end

+ 4 - 0
twilio/config/boot.rb

@@ -0,0 +1,4 @@
1
+# Set up gems listed in the Gemfile.
2
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+
4
+require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

+ 5 - 0
twilio/config/environment.rb

@@ -0,0 +1,5 @@
1
+# Load the Rails application.
2
+require File.expand_path('../application', __FILE__)
3
+
4
+# Initialize the Rails application.
5
+Rails.application.initialize!

+ 37 - 0
twilio/config/environments/development.rb

@@ -0,0 +1,37 @@
1
+Rails.application.configure do
2
+  # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+  # In the development environment your application's code is reloaded on
5
+  # every request. This slows down response time but is perfect for development
6
+  # since you don't have to restart the web server when you make code changes.
7
+  config.cache_classes = false
8
+
9
+  # Do not eager load code on boot.
10
+  config.eager_load = false
11
+
12
+  # Show full error reports and disable caching.
13
+  config.consider_all_requests_local       = true
14
+  config.action_controller.perform_caching = false
15
+
16
+  # Don't care if the mailer can't send.
17
+  config.action_mailer.raise_delivery_errors = false
18
+
19
+  # Print deprecation notices to the Rails logger.
20
+  config.active_support.deprecation = :log
21
+
22
+  # Raise an error on page load if there are pending migrations.
23
+  config.active_record.migration_error = :page_load
24
+
25
+  # Debug mode disables concatenation and preprocessing of assets.
26
+  # This option may cause significant delays in view rendering with a large
27
+  # number of complex assets.
28
+  config.assets.debug = true
29
+
30
+  # Adds additional error checking when serving assets at runtime.
31
+  # Checks for improperly declared sprockets dependencies.
32
+  # Raises helpful error messages.
33
+  config.assets.raise_runtime_errors = true
34
+
35
+  # Raises error for missing translations
36
+  # config.action_view.raise_on_missing_translations = true
37
+end

+ 82 - 0
twilio/config/environments/production.rb

@@ -0,0 +1,82 @@
1
+Rails.application.configure do
2
+  # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+  # Code is not reloaded between requests.
5
+  config.cache_classes = true
6
+
7
+  # Eager load code on boot. This eager loads most of Rails and
8
+  # your application in memory, allowing both threaded web servers
9
+  # and those relying on copy on write to perform better.
10
+  # Rake tasks automatically ignore this option for performance.
11
+  config.eager_load = true
12
+
13
+  # Full error reports are disabled and caching is turned on.
14
+  config.consider_all_requests_local       = false
15
+  config.action_controller.perform_caching = true
16
+
17
+  # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+  # Add `rack-cache` to your Gemfile before enabling this.
19
+  # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+  # config.action_dispatch.rack_cache = true
21
+
22
+  # Disable Rails's static asset server (Apache or nginx will already do this).
23
+  config.serve_static_assets = false
24
+
25
+  # Compress JavaScripts and CSS.
26
+  config.assets.js_compressor = :uglifier
27
+  # config.assets.css_compressor = :sass
28
+
29
+  # Do not fallback to assets pipeline if a precompiled asset is missed.
30
+  config.assets.compile = false
31
+
32
+  # Generate digests for assets URLs.
33
+  config.assets.digest = true
34
+
35
+  # `config.assets.precompile` has moved to config/initializers/assets.rb
36
+
37
+  # Specifies the header that your server uses for sending files.
38
+  # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
39
+  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
40
+
41
+  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
42
+  # config.force_ssl = true
43
+
44
+  # Set to :debug to see everything in the log.
45
+  config.log_level = :info
46
+
47
+  # Prepend all log lines with the following tags.
48
+  # config.log_tags = [ :subdomain, :uuid ]
49
+
50
+  # Use a different logger for distributed setups.
51
+  # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
52
+
53
+  # Use a different cache store in production.
54
+  # config.cache_store = :mem_cache_store
55
+
56
+  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
57
+  # config.action_controller.asset_host = "http://assets.example.com"
58
+
59
+  # Precompile additional assets.
60
+  # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
61
+  # config.assets.precompile += %w( search.js )
62
+
63
+  # Ignore bad email addresses and do not raise email delivery errors.
64
+  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
+  # config.action_mailer.raise_delivery_errors = false
66
+
67
+  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
+  # the I18n.default_locale when a translation cannot be found).
69
+  config.i18n.fallbacks = true
70
+
71
+  # Send deprecation notices to registered listeners.
72
+  config.active_support.deprecation = :notify
73
+
74
+  # Disable automatic flushing of the log to improve performance.
75
+  # config.autoflush_log = false
76
+
77
+  # Use default logging formatter so that PID and timestamp are not suppressed.
78
+  config.log_formatter = ::Logger::Formatter.new
79
+
80
+  # Do not dump schema after migrations.
81
+  config.active_record.dump_schema_after_migration = false
82
+end

+ 39 - 0
twilio/config/environments/test.rb

@@ -0,0 +1,39 @@
1
+Rails.application.configure do
2
+  # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+  # The test environment is used exclusively to run your application's
5
+  # test suite. You never need to work with it otherwise. Remember that
6
+  # your test database is "scratch space" for the test suite and is wiped
7
+  # and recreated between test runs. Don't rely on the data there!
8
+  config.cache_classes = true
9
+
10
+  # Do not eager load code on boot. This avoids loading your whole application
11
+  # just for the purpose of running a single test. If you are using a tool that
12
+  # preloads Rails for running tests, you may have to set it to true.
13
+  config.eager_load = false
14
+
15
+  # Configure static asset server for tests with Cache-Control for performance.
16
+  config.serve_static_assets  = true
17
+  config.static_cache_control = 'public, max-age=3600'
18
+
19
+  # Show full error reports and disable caching.
20
+  config.consider_all_requests_local       = true
21
+  config.action_controller.perform_caching = false
22
+
23
+  # Raise exceptions instead of rendering exception templates.
24
+  config.action_dispatch.show_exceptions = false
25
+
26
+  # Disable request forgery protection in test environment.
27
+  config.action_controller.allow_forgery_protection = false
28
+
29
+  # Tell Action Mailer not to deliver emails to the real world.
30
+  # The :test delivery method accumulates sent emails in the
31
+  # ActionMailer::Base.deliveries array.
32
+  config.action_mailer.delivery_method = :test
33
+
34
+  # Print deprecation notices to the stderr.
35
+  config.active_support.deprecation = :stderr
36
+
37
+  # Raises error for missing translations
38
+  # config.action_view.raise_on_missing_translations = true
39
+end

+ 8 - 0
twilio/config/initializers/assets.rb

@@ -0,0 +1,8 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+# Version of your assets, change this if you want to expire all your assets.
4
+Rails.application.config.assets.version = '1.0'
5
+
6
+# Precompile additional assets.
7
+# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
8
+# Rails.application.config.assets.precompile += %w( search.js )

+ 7 - 0
twilio/config/initializers/backtrace_silencers.rb

@@ -0,0 +1,7 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+# Rails.backtrace_cleaner.remove_silencers!

+ 3 - 0
twilio/config/initializers/cookies_serializer.rb

@@ -0,0 +1,3 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+Rails.application.config.action_dispatch.cookies_serializer = :json

+ 4 - 0
twilio/config/initializers/filter_parameter_logging.rb

@@ -0,0 +1,4 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+# Configure sensitive parameters which will be filtered from the log file.
4
+Rails.application.config.filter_parameters += [:password]

+ 16 - 0
twilio/config/initializers/inflections.rb

@@ -0,0 +1,16 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+# Add new inflection rules using the following format. Inflections
4
+# are locale specific, and you may define rules for as many different
5
+# locales as you wish. All of these examples are active by default:
6
+# ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+#   inflect.plural /^(ox)$/i, '\1en'
8
+#   inflect.singular /^(ox)en/i, '\1'
9
+#   inflect.irregular 'person', 'people'
10
+#   inflect.uncountable %w( fish sheep )
11
+# end
12
+
13
+# These inflection rules are supported but not enabled by default:
14
+# ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+#   inflect.acronym 'RESTful'
16
+# end

+ 4 - 0
twilio/config/initializers/mime_types.rb

@@ -0,0 +1,4 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+# Add new mime types for use in respond_to blocks:
4
+# Mime::Type.register "text/richtext", :rtf

+ 3 - 0
twilio/config/initializers/session_store.rb

@@ -0,0 +1,3 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+Rails.application.config.session_store :cookie_store, key: '_twilio_session'

+ 14 - 0
twilio/config/initializers/wrap_parameters.rb

@@ -0,0 +1,14 @@
1
+# Be sure to restart your server when you modify this file.
2
+
3
+# This file contains settings for ActionController::ParamsWrapper which
4
+# is enabled by default.
5
+
6
+# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ActiveSupport.on_load(:action_controller) do
8
+  wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+end
10
+
11
+# To enable root element in JSON for ActiveRecord objects.
12
+# ActiveSupport.on_load(:active_record) do
13
+#  self.include_root_in_json = true
14
+# end

+ 23 - 0
twilio/config/locales/en.bootstrap.yml

@@ -0,0 +1,23 @@
1
+# Sample localization file for English. Add more files in this directory for other locales.
2
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+en:
5
+  breadcrumbs:
6
+    application:
7
+      root: "Index"
8
+    pages:
9
+      pages: "Pages"
10
+  helpers:
11
+    actions: "Actions"
12
+    links:
13
+      back: "Back"
14
+      cancel: "Cancel"
15
+      confirm: "Are you sure?"
16
+      destroy: "Delete"
17
+      new: "New"
18
+      edit: "Edit"
19
+    titles:
20
+      edit: "Edit %{model}"
21
+      save: "Save %{model}"
22
+      new: "New %{model}"
23
+      delete: "Delete %{model}"

+ 23 - 0
twilio/config/locales/en.yml

@@ -0,0 +1,23 @@
1
+# Files in the config/locales directory are used for internationalization
2
+# and are automatically loaded by Rails. If you want to use locales other
3
+# than English, add the necessary files in this directory.
4
+#
5
+# To use the locales, use `I18n.t`:
6
+#
7
+#     I18n.t 'hello'
8
+#
9
+# In views, this is aliased to just `t`:
10
+#
11
+#     <%= t('hello') %>
12
+#
13
+# To use a different locale, set it with `I18n.locale`:
14
+#
15
+#     I18n.locale = :es
16
+#
17
+# This would use the information in config/locales/es.yml.
18
+#
19
+# To learn more, please read the Rails Internationalization guide
20
+# available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+en:
23
+  hello: "Hello world"

+ 56 - 0
twilio/config/routes.rb

@@ -0,0 +1,56 @@
1
+Rails.application.routes.draw do
2
+  # The priority is based upon order of creation: first created -> highest priority.
3
+  # See how all your routes lay out with "rake routes".
4
+
5
+  # You can have the root of your site routed with "root"
6
+  # root 'welcome#index'
7
+
8
+  # Example of regular route:
9
+  #   get 'products/:id' => 'catalog#view'
10
+
11
+  # Example of named route that can be invoked with purchase_url(id: product.id)
12
+  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+  # Example resource route (maps HTTP verbs to controller actions automatically):
15
+  #   resources :products
16
+
17
+  # Example resource route with options:
18
+  #   resources :products do
19
+  #     member do
20
+  #       get 'short'
21
+  #       post 'toggle'
22
+  #     end
23
+  #
24
+  #     collection do
25
+  #       get 'sold'
26
+  #     end
27
+  #   end
28
+
29
+  # Example resource route with sub-resources:
30
+  #   resources :products do
31
+  #     resources :comments, :sales
32
+  #     resource :seller
33
+  #   end
34
+
35
+  # Example resource route with more complex sub-resources:
36
+  #   resources :products do
37
+  #     resources :comments
38
+  #     resources :sales do
39
+  #       get 'recent', on: :collection
40
+  #     end
41
+  #   end
42
+
43
+  # Example resource route with concerns:
44
+  #   concern :toggleable do
45
+  #     post 'toggle'
46
+  #   end
47
+  #   resources :posts, concerns: :toggleable
48
+  #   resources :photos, concerns: :toggleable
49
+
50
+  # Example resource route within a namespace:
51
+  #   namespace :admin do
52
+  #     # Directs /admin/products/* to Admin::ProductsController
53
+  #     # (app/controllers/admin/products_controller.rb)
54
+  #     resources :products
55
+  #   end
56
+end

+ 7 - 0
twilio/db/seeds.rb

@@ -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
+#   Mayor.create(name: 'Emanuel', city: cities.first)

+ 0 - 0
twilio/lib/assets/.keep


+ 0 - 0
twilio/lib/tasks/.keep


+ 0 - 0
twilio/log/.keep


+ 443 - 0
twilio/log/development.log

@@ -0,0 +1,443 @@
1
+
2
+
3
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:07:38 -0500
4
+
5
+Gem::LoadError (Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).):
6
+  activerecord (4.1.5) lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
7
+  activerecord (4.1.5) lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
8
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:50:in `establish_connection'
9
+  activerecord (4.1.5) lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
10
+  activesupport (4.1.5) lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
11
+  activesupport (4.1.5) lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
12
+  activesupport (4.1.5) lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
13
+  activesupport (4.1.5) lib/active_support/lazy_load_hooks.rb:44:in `each'
14
+  activesupport (4.1.5) lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
15
+  activerecord (4.1.5) lib/active_record/base.rb:326:in `<module:ActiveRecord>'
16
+  activerecord (4.1.5) lib/active_record/base.rb:23:in `<top (required)>'
17
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:628:in `rescue in call'
18
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:619:in `call'
19
+  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
20
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
21
+  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
22
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
23
+  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
24
+  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
25
+  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
26
+  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
27
+  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
28
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
29
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
30
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
31
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
32
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
33
+  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
34
+  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
35
+  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
36
+  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
37
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
38
+  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
39
+  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
40
+  railties (4.1.5) lib/rails/engine.rb:514:in `call'
41
+  railties (4.1.5) lib/rails/application.rb:144:in `call'
42
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
43
+  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
44
+  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
45
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
46
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
47
+  /usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
48
+
49
+
50
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
51
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms)
52
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms)
53
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (28.3ms)
54
+
55
+
56
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:15:47 -0500
57
+
58
+PG::ConnectionBad (FATAL:  Peer authentication failed for user "twilio"
59
+):
60
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize'
61
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `new'
62
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
63
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
64
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
65
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
66
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
67
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
68
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
69
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
70
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
71
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
72
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
73
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
74
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
75
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
76
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
77
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:87:in `connection'
78
+  activerecord (4.1.5) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
79
+  activerecord (4.1.5) lib/active_record/query_cache.rb:43:in `rescue in call'
80
+  activerecord (4.1.5) lib/active_record/query_cache.rb:32:in `call'
81
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
82
+  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
83
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
84
+  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
85
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
86
+  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
87
+  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
88
+  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
89
+  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
90
+  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
91
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
92
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
93
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
94
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
95
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
96
+  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
97
+  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
98
+  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
99
+  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
100
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
101
+  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
102
+  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
103
+  railties (4.1.5) lib/rails/engine.rb:514:in `call'
104
+  railties (4.1.5) lib/rails/application.rb:144:in `call'
105
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
106
+  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
107
+  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
108
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
109
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
110
+  /usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
111
+
112
+
113
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
114
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.6ms)
115
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms)
116
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (20.3ms)
117
+
118
+
119
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:16:29 -0500
120
+
121
+PG::ConnectionBad (FATAL:  Peer authentication failed for user "twilio"
122
+):
123
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize'
124
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `new'
125
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
126
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
127
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
128
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
129
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
130
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
131
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
132
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
133
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
134
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
135
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
136
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
137
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
138
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
139
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
140
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:87:in `connection'
141
+  activerecord (4.1.5) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
142
+  activerecord (4.1.5) lib/active_record/query_cache.rb:43:in `rescue in call'
143
+  activerecord (4.1.5) lib/active_record/query_cache.rb:32:in `call'
144
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
145
+  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
146
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
147
+  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
148
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
149
+  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
150
+  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
151
+  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
152
+  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
153
+  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
154
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
155
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
156
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
157
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
158
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
159
+  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
160
+  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
161
+  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
162
+  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
163
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
164
+  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
165
+  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
166
+  railties (4.1.5) lib/rails/engine.rb:514:in `call'
167
+  railties (4.1.5) lib/rails/application.rb:144:in `call'
168
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
169
+  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
170
+  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
171
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
172
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
173
+  /usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
174
+
175
+
176
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
177
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.6ms)
178
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms)
179
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.7ms)
180
+
181
+
182
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:16:32 -0500
183
+
184
+PG::ConnectionBad (FATAL:  Peer authentication failed for user "twilio"
185
+):
186
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize'
187
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `new'
188
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
189
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
190
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
191
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
192
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
193
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
194
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
195
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
196
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
197
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
198
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
199
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
200
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
201
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
202
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
203
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:87:in `connection'
204
+  activerecord (4.1.5) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
205
+  activerecord (4.1.5) lib/active_record/query_cache.rb:43:in `rescue in call'
206
+  activerecord (4.1.5) lib/active_record/query_cache.rb:32:in `call'
207
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
208
+  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
209
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
210
+  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
211
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
212
+  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
213
+  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
214
+  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
215
+  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
216
+  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
217
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
218
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
219
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
220
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
221
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
222
+  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
223
+  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
224
+  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
225
+  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
226
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
227
+  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
228
+  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
229
+  railties (4.1.5) lib/rails/engine.rb:514:in `call'
230
+  railties (4.1.5) lib/rails/application.rb:144:in `call'
231
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
232
+  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
233
+  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
234
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
235
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
236
+  /usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
237
+
238
+
239
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
240
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms)
241
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms)
242
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (23.2ms)
243
+
244
+
245
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:16:56 -0500
246
+
247
+PG::ConnectionBad (fe_sendauth: no password supplied
248
+):
249
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize'
250
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `new'
251
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
252
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
253
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
254
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
255
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
256
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
257
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
258
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
259
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
260
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
261
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
262
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
263
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
264
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
265
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
266
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:87:in `connection'
267
+  activerecord (4.1.5) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
268
+  activerecord (4.1.5) lib/active_record/query_cache.rb:43:in `rescue in call'
269
+  activerecord (4.1.5) lib/active_record/query_cache.rb:32:in `call'
270
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
271
+  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
272
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
273
+  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
274
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
275
+  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
276
+  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
277
+  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
278
+  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
279
+  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
280
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
281
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
282
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
283
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
284
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
285
+  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
286
+  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
287
+  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
288
+  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
289
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
290
+  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
291
+  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
292
+  railties (4.1.5) lib/rails/engine.rb:514:in `call'
293
+  railties (4.1.5) lib/rails/application.rb:144:in `call'
294
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
295
+  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
296
+  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
297
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
298
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
299
+  /usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
300
+
301
+
302
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.3ms)
303
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.6ms)
304
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
305
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.0ms)
306
+
307
+
308
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:17:10 -0500
309
+
310
+PG::ConnectionBad (fe_sendauth: no password supplied
311
+):
312
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize'
313
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `new'
314
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
315
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
316
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
317
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
318
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
319
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
320
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
321
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
322
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
323
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
324
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
325
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
326
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
327
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
328
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
329
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:87:in `connection'
330
+  activerecord (4.1.5) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
331
+  activerecord (4.1.5) lib/active_record/query_cache.rb:43:in `rescue in call'
332
+  activerecord (4.1.5) lib/active_record/query_cache.rb:32:in `call'
333
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
334
+  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
335
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
336
+  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
337
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
338
+  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
339
+  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
340
+  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
341
+  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
342
+  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
343
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
344
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
345
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
346
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
347
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
348
+  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
349
+  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
350
+  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
351
+  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
352
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
353
+  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
354
+  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
355
+  railties (4.1.5) lib/rails/engine.rb:514:in `call'
356
+  railties (4.1.5) lib/rails/application.rb:144:in `call'
357
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
358
+  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
359
+  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
360
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
361
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
362
+  /usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
363
+
364
+
365
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.3ms)
366
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.6ms)
367
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms)
368
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.8ms)
369
+
370
+
371
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:17:11 -0500
372
+
373
+PG::ConnectionBad (fe_sendauth: no password supplied
374
+):
375
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize'
376
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `new'
377
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
378
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
379
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
380
+  activerecord (4.1.5) lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
381
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
382
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
383
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
384
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
385
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
386
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
387
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
388
+  /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
389
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
390
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
391
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
392
+  activerecord (4.1.5) lib/active_record/connection_handling.rb:87:in `connection'
393
+  activerecord (4.1.5) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
394
+  activerecord (4.1.5) lib/active_record/query_cache.rb:43:in `rescue in call'
395
+  activerecord (4.1.5) lib/active_record/query_cache.rb:32:in `call'
396
+  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
397
+  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
398
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
399
+  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
400
+  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
401
+  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
402
+  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
403
+  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
404
+  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
405
+  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
406
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
407
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
408
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
409
+  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
410
+  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
411
+  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
412
+  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
413
+  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
414
+  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
415
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
416
+  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
417
+  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
418
+  railties (4.1.5) lib/rails/engine.rb:514:in `call'
419
+  railties (4.1.5) lib/rails/application.rb:144:in `call'
420
+  rack (1.5.2) lib/rack/lock.rb:17:in `call'
421
+  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
422
+  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
423
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
424
+  /usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
425
+  /usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
426
+
427
+
428
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.3ms)
429
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.6ms)
430
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms)
431
+  Rendered /var/lib/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (22.5ms)
432
+
433
+
434
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:17:20 -0500
435
+Processing by Rails::WelcomeController#index as HTML
436
+  Rendered /var/lib/gems/2.1.0/gems/railties-4.1.5/lib/rails/templates/rails/welcome/index.html.erb (1.0ms)
437
+Completed 200 OK in 18ms (Views: 7.4ms | ActiveRecord: 0.0ms)
438
+
439
+
440
+Started GET "/" for 127.0.0.1 at 2014-08-30 01:22:53 -0500
441
+Processing by Rails::WelcomeController#index as HTML
442
+  Rendered /var/lib/gems/2.1.0/gems/railties-4.1.5/lib/rails/templates/rails/welcome/index.html.erb (0.8ms)
443
+Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 0.0ms)

+ 67 - 0
twilio/public/404.html

@@ -0,0 +1,67 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+  <title>The page you were looking for doesn't exist (404)</title>
5
+  <meta name="viewport" content="width=device-width,initial-scale=1">
6
+  <style>
7
+  body {
8
+    background-color: #EFEFEF;
9
+    color: #2E2F30;
10
+    text-align: center;
11
+    font-family: arial, sans-serif;
12
+    margin: 0;
13
+  }
14
+
15
+  div.dialog {
16
+    width: 95%;
17
+    max-width: 33em;
18
+    margin: 4em auto 0;
19
+  }
20
+
21
+  div.dialog > div {
22
+    border: 1px solid #CCC;
23
+    border-right-color: #999;
24
+    border-left-color: #999;
25
+    border-bottom-color: #BBB;
26
+    border-top: #B00100 solid 4px;
27
+    border-top-left-radius: 9px;
28
+    border-top-right-radius: 9px;
29
+    background-color: white;
30
+    padding: 7px 12% 0;
31
+    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+  }
33
+
34
+  h1 {
35
+    font-size: 100%;
36
+    color: #730E15;
37
+    line-height: 1.5em;
38
+  }
39
+
40
+  div.dialog > p {
41
+    margin: 0 0 1em;
42
+    padding: 1em;
43
+    background-color: #F7F7F7;
44
+    border: 1px solid #CCC;
45
+    border-right-color: #999;
46
+    border-left-color: #999;
47
+    border-bottom-color: #999;
48
+    border-bottom-left-radius: 4px;
49
+    border-bottom-right-radius: 4px;
50
+    border-top-color: #DADADA;
51
+    color: #666;
52
+    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+  }
54
+  </style>
55
+</head>
56
+
57
+<body>
58
+  <!-- This file lives in public/404.html -->
59
+  <div class="dialog">
60
+    <div>
61
+      <h1>The page you were looking for doesn't exist.</h1>
62
+      <p>You may have mistyped the address or the page may have moved.</p>
63
+    </div>
64
+    <p>If you are the application owner check the logs for more information.</p>
65
+  </div>
66
+</body>
67
+</html>

+ 67 - 0
twilio/public/422.html

@@ -0,0 +1,67 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+  <title>The change you wanted was rejected (422)</title>
5
+  <meta name="viewport" content="width=device-width,initial-scale=1">
6
+  <style>
7
+  body {
8
+    background-color: #EFEFEF;
9
+    color: #2E2F30;
10
+    text-align: center;
11
+    font-family: arial, sans-serif;
12
+    margin: 0;
13
+  }
14
+
15
+  div.dialog {
16
+    width: 95%;
17
+    max-width: 33em;
18
+    margin: 4em auto 0;
19
+  }
20
+
21
+  div.dialog > div {
22
+    border: 1px solid #CCC;
23
+    border-right-color: #999;
24
+    border-left-color: #999;
25
+    border-bottom-color: #BBB;
26
+    border-top: #B00100 solid 4px;
27
+    border-top-left-radius: 9px;
28
+    border-top-right-radius: 9px;
29
+    background-color: white;
30
+    padding: 7px 12% 0;
31
+    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+  }
33
+
34
+  h1 {
35
+    font-size: 100%;
36
+    color: #730E15;
37
+    line-height: 1.5em;
38
+  }
39
+
40
+  div.dialog > p {
41
+    margin: 0 0 1em;
42
+    padding: 1em;
43
+    background-color: #F7F7F7;
44
+    border: 1px solid #CCC;
45
+    border-right-color: #999;
46
+    border-left-color: #999;
47
+    border-bottom-color: #999;
48
+    border-bottom-left-radius: 4px;
49
+    border-bottom-right-radius: 4px;
50
+    border-top-color: #DADADA;
51
+    color: #666;
52
+    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+  }
54
+  </style>
55
+</head>
56
+
57
+<body>
58
+  <!-- This file lives in public/422.html -->
59
+  <div class="dialog">
60
+    <div>
61
+      <h1>The change you wanted was rejected.</h1>
62
+      <p>Maybe you tried to change something you didn't have access to.</p>
63
+    </div>
64
+    <p>If you are the application owner check the logs for more information.</p>
65
+  </div>
66
+</body>
67
+</html>

+ 66 - 0
twilio/public/500.html

@@ -0,0 +1,66 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+  <title>We're sorry, but something went wrong (500)</title>
5
+  <meta name="viewport" content="width=device-width,initial-scale=1">
6
+  <style>
7
+  body {
8
+    background-color: #EFEFEF;
9
+    color: #2E2F30;
10
+    text-align: center;
11
+    font-family: arial, sans-serif;
12
+    margin: 0;
13
+  }
14
+
15
+  div.dialog {
16
+    width: 95%;
17
+    max-width: 33em;
18
+    margin: 4em auto 0;
19
+  }
20
+
21
+  div.dialog > div {
22
+    border: 1px solid #CCC;
23
+    border-right-color: #999;
24
+    border-left-color: #999;
25
+    border-bottom-color: #BBB;
26
+    border-top: #B00100 solid 4px;
27
+    border-top-left-radius: 9px;
28
+    border-top-right-radius: 9px;
29
+    background-color: white;
30
+    padding: 7px 12% 0;
31
+    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+  }
33
+
34
+  h1 {
35
+    font-size: 100%;
36
+    color: #730E15;
37
+    line-height: 1.5em;
38
+  }
39
+
40
+  div.dialog > p {
41
+    margin: 0 0 1em;
42
+    padding: 1em;
43
+    background-color: #F7F7F7;
44
+    border: 1px solid #CCC;
45
+    border-right-color: #999;
46
+    border-left-color: #999;
47
+    border-bottom-color: #999;
48
+    border-bottom-left-radius: 4px;
49
+    border-bottom-right-radius: 4px;
50
+    border-top-color: #DADADA;
51
+    color: #666;
52
+    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+  }
54
+  </style>
55
+</head>
56
+
57
+<body>
58
+  <!-- This file lives in public/500.html -->
59
+  <div class="dialog">
60
+    <div>
61
+      <h1>We're sorry, but something went wrong.</h1>
62
+    </div>
63
+    <p>If you are the application owner check the logs for more information.</p>
64
+  </div>
65
+</body>
66
+</html>

+ 0 - 0
twilio/public/favicon.ico


+ 5 - 0
twilio/public/robots.txt

@@ -0,0 +1,5 @@
1
+# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
+#
3
+# To ban all spiders from the entire site uncomment the next two lines:
4
+# User-agent: *
5
+# Disallow: /

+ 43 - 0
twilio/spec/rails_helper.rb

@@ -0,0 +1,43 @@
1
+# This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ENV["RAILS_ENV"] ||= 'test'
3
+require 'spec_helper'
4
+require File.expand_path("../../config/environment", __FILE__)
5
+require 'rspec/rails'
6
+
7
+# Requires supporting ruby files with custom matchers and macros, etc, in
8
+# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
9
+# run as spec files by default. This means that files in spec/support that end
10
+# in _spec.rb will both be required and run as specs, causing the specs to be
11
+# run twice. It is recommended that you do not name files matching this glob to
12
+# end with _spec.rb. You can configure this pattern with the --pattern
13
+# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
14
+Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
15
+
16
+# Checks for pending migrations before tests are run.
17
+# If you are not using ActiveRecord, you can remove this line.
18
+ActiveRecord::Migration.maintain_test_schema!
19
+
20
+RSpec.configure do |config|
21
+  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
22
+  config.fixture_path = "#{::Rails.root}/spec/fixtures"
23
+
24
+  # If you're not using ActiveRecord, or you'd prefer not to run each of your
25
+  # examples within a transaction, remove the following line or assign false
26
+  # instead of true.
27
+  config.use_transactional_fixtures = true
28
+
29
+  # RSpec Rails can automatically mix in different behaviours to your tests
30
+  # based on their file location, for example enabling you to call `get` and
31
+  # `post` in specs under `spec/controllers`.
32
+  #
33
+  # You can disable this behaviour by removing the line below, and instead
34
+  # explicitly tag your specs with their type, e.g.:
35
+  #
36
+  #     RSpec.describe UsersController, :type => :controller do
37
+  #       # ...
38
+  #     end
39
+  #
40
+  # The different available types are documented in the features, such as in
41
+  # https://relishapp.com/rspec/rspec-rails/docs
42
+  config.infer_spec_type_from_file_location!
43
+end

+ 78 - 0
twilio/spec/spec_helper.rb

@@ -0,0 +1,78 @@
1
+# This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+# The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+# file to always be loaded, without a need to explicitly require it in any files.
5
+#
6
+# Given that it is always loaded, you are encouraged to keep this file as
7
+# light-weight as possible. Requiring heavyweight dependencies from this file
8
+# will add to the boot time of your test suite on EVERY test run, even for an
9
+# individual file that may not need all of that loaded. Instead, make a
10
+# separate helper file that requires this one and then use it only in the specs
11
+# that actually need it.
12
+#
13
+require 'webmock/rspec'
14
+# The `.rspec` file also contains a few flags that are not defaults but that
15
+# users commonly want.
16
+#
17
+# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
+RSpec.configure do |config|
19
+# The settings below are suggested to provide a good initial experience
20
+# with RSpec, but feel free to customize to your heart's content.
21
+
22
+  # These two settings work together to allow you to limit a spec run
23
+  # to individual examples or groups you care about by tagging them with
24
+  # `:focus` metadata. When nothing is tagged with `:focus`, all examples
25
+  # get run.
26
+  config.filter_run :focus
27
+  config.run_all_when_everything_filtered = true
28
+
29
+  # Many RSpec users commonly either run the entire suite or an individual
30
+  # file, and it's useful to allow more verbose output when running an
31
+  # individual spec file.
32
+  if config.files_to_run.one?
33
+    # Use the documentation formatter for detailed output,
34
+    # unless a formatter has already been configured
35
+    # (e.g. via a command-line flag).
36
+    config.default_formatter = 'doc'
37
+  end
38
+
39
+  # Print the 10 slowest examples and example groups at the
40
+  # end of the spec run, to help surface which specs are running
41
+  # particularly slow.
42
+  config.profile_examples = 10
43
+
44
+  # Run specs in random order to surface order dependencies. If you find an
45
+  # order dependency and want to debug it, you can fix the order by providing
46
+  # the seed, which is printed after each run.
47
+  #     --seed 1234
48
+  config.order = :random
49
+
50
+  # Seed global randomization in this process using the `--seed` CLI option.
51
+  # Setting this allows you to use `--seed` to deterministically reproduce
52
+  # test failures related to randomization by passing the same `--seed` value
53
+  # as the one that triggered the failure.
54
+  Kernel.srand config.seed
55
+
56
+  # rspec-expectations config goes here. You can use an alternate
57
+  # assertion/expectation library such as wrong or the stdlib/minitest
58
+  # assertions if you prefer.
59
+  config.expect_with :rspec do |expectations|
60
+    # Enable only the newer, non-monkey-patching expect syntax.
61
+    # For more details, see:
62
+    #   - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
63
+    expectations.syntax = :expect
64
+  end
65
+
66
+  # rspec-mocks config goes here. You can use an alternate test double
67
+  # library (such as bogus or mocha) by changing the `mock_with` option here.
68
+  config.mock_with :rspec do |mocks|
69
+    # Enable only the newer, non-monkey-patching expect syntax.
70
+    # For more details, see:
71
+    #   - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
72
+    mocks.syntax = :expect
73
+
74
+    # Prevents you from mocking or stubbing a method that does not exist on
75
+    # a real object. This is generally recommended.
76
+    mocks.verify_partial_doubles = true
77
+  end
78
+end

+ 0 - 0
twilio/test/controllers/.keep


+ 0 - 0
twilio/test/fixtures/.keep


+ 0 - 0
twilio/test/helpers/.keep


+ 0 - 0
twilio/test/integration/.keep


+ 0 - 0
twilio/test/mailers/.keep


+ 0 - 0
twilio/test/models/.keep


+ 10 - 0
twilio/test/test_helper.rb

@@ -0,0 +1,10 @@
1
+ENV['RAILS_ENV'] ||= 'test'
2
+require File.expand_path('../../config/environment', __FILE__)
3
+require 'rails/test_help'
4
+
5
+class ActiveSupport::TestCase
6
+  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7
+  fixtures :all
8
+
9
+  # Add more helper methods to be used by all tests here...
10
+end

+ 1 - 0
twilio/tmp/pids/server.pid

@@ -0,0 +1 @@
1
+10428

+ 0 - 0
twilio/vendor/assets/javascripts/.keep


+ 0 - 0
twilio/vendor/assets/stylesheets/.keep