raygun 0.0.34 → 0.9.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGES.md +7 -1
  4. data/README.md +7 -11
  5. data/bin/raygun +4 -181
  6. data/cleanup.sh +1 -6
  7. data/lib/raygun/raygun.rb +238 -0
  8. data/lib/raygun/version.rb +1 -1
  9. metadata +6 -223
  10. data/TODO.md +0 -16
  11. data/rails_32/.env +0 -8
  12. data/rails_32/.gitignore +0 -19
  13. data/rails_32/.rspec +0 -1
  14. data/rails_32/.ruby-gemset +0 -1
  15. data/rails_32/.ruby-version +0 -1
  16. data/rails_32/Gemfile +0 -54
  17. data/rails_32/Guardfile +0 -32
  18. data/rails_32/Procfile +0 -2
  19. data/rails_32/README.md +0 -69
  20. data/rails_32/Rakefile +0 -15
  21. data/rails_32/app/assets/javascripts/application.js +0 -16
  22. data/rails_32/app/assets/javascripts/users.js.coffee +0 -3
  23. data/rails_32/app/assets/stylesheets/_footer.less +0 -30
  24. data/rails_32/app/assets/stylesheets/_navbar.less +0 -5
  25. data/rails_32/app/assets/stylesheets/application.css.less +0 -3
  26. data/rails_32/app/controllers/application_controller.rb +0 -15
  27. data/rails_32/app/controllers/pages_controller.rb +0 -8
  28. data/rails_32/app/controllers/password_resets_controller.rb +0 -36
  29. data/rails_32/app/controllers/registrations_controller.rb +0 -29
  30. data/rails_32/app/controllers/user_sessions_controller.rb +0 -26
  31. data/rails_32/app/controllers/users_controller.rb +0 -41
  32. data/rails_32/app/helpers/application_helper.rb +0 -11
  33. data/rails_32/app/helpers/users_helper.rb +0 -2
  34. data/rails_32/app/mailers/.gitkeep +0 -0
  35. data/rails_32/app/mailers/user_mailer.rb +0 -19
  36. data/rails_32/app/models/.gitkeep +0 -0
  37. data/rails_32/app/models/ability.rb +0 -40
  38. data/rails_32/app/models/user.rb +0 -21
  39. data/rails_32/app/models/user_session.rb +0 -6
  40. data/rails_32/app/views/layouts/application.html.slim +0 -36
  41. data/rails_32/app/views/pages/root.html.slim +0 -9
  42. data/rails_32/app/views/password_resets/edit.html.slim +0 -15
  43. data/rails_32/app/views/password_resets/new.html.slim +0 -11
  44. data/rails_32/app/views/registrations/new.html.slim +0 -13
  45. data/rails_32/app/views/user_mailer/activation_needed_email.html.erb +0 -17
  46. data/rails_32/app/views/user_mailer/activation_needed_email.text.erb +0 -9
  47. data/rails_32/app/views/user_mailer/activation_success_email.html.erb +0 -17
  48. data/rails_32/app/views/user_mailer/activation_success_email.text.erb +0 -9
  49. data/rails_32/app/views/user_mailer/reset_password_email.html.erb +0 -16
  50. data/rails_32/app/views/user_mailer/reset_password_email.text.erb +0 -8
  51. data/rails_32/app/views/user_sessions/new.html.slim +0 -13
  52. data/rails_32/app/views/users/_form.html.slim +0 -12
  53. data/rails_32/app/views/users/edit.html.slim +0 -5
  54. data/rails_32/app/views/users/index.html.slim +0 -26
  55. data/rails_32/app/views/users/new.html.slim +0 -4
  56. data/rails_32/app/views/users/show.html.slim +0 -17
  57. data/rails_32/config/application.rb +0 -77
  58. data/rails_32/config/boot.rb +0 -6
  59. data/rails_32/config/database.yml +0 -13
  60. data/rails_32/config/environment.rb +0 -5
  61. data/rails_32/config/environments/acceptance.rb +0 -69
  62. data/rails_32/config/environments/development.rb +0 -39
  63. data/rails_32/config/environments/production.rb +0 -69
  64. data/rails_32/config/environments/test.rb +0 -42
  65. data/rails_32/config/initializers/backtrace_silencers.rb +0 -7
  66. data/rails_32/config/initializers/inflections.rb +0 -15
  67. data/rails_32/config/initializers/mailcatcher.rb +0 -15
  68. data/rails_32/config/initializers/mime_types.rb +0 -5
  69. data/rails_32/config/initializers/secret_token.rb +0 -7
  70. data/rails_32/config/initializers/session_store.rb +0 -8
  71. data/rails_32/config/initializers/simple_form.rb +0 -142
  72. data/rails_32/config/initializers/simple_form_bootstrap.rb +0 -45
  73. data/rails_32/config/initializers/sorcery.rb +0 -398
  74. data/rails_32/config/initializers/wrap_parameters.rb +0 -14
  75. data/rails_32/config/locales/en.yml +0 -5
  76. data/rails_32/config/locales/simple_form.en.yml +0 -26
  77. data/rails_32/config/routes.rb +0 -21
  78. data/rails_32/config/unicorn.rb +0 -27
  79. data/rails_32/config.ru +0 -21
  80. data/rails_32/db/migrate/20121128215324_sorcery_core.rb +0 -19
  81. data/rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb +0 -13
  82. data/rails_32/db/migrate/20121128215326_sorcery_activity_logging.rb +0 -17
  83. data/rails_32/db/migrate/20121128215327_sorcery_user_activation.rb +0 -17
  84. data/rails_32/db/migrate/20121128215328_sorcery_remember_me.rb +0 -15
  85. data/rails_32/db/migrate/20121128215329_sorcery_reset_password.rb +0 -17
  86. data/rails_32/db/migrate/20121128215330_sorcery_external.rb +0 -14
  87. data/rails_32/db/migrate/20121128215337_add_admin_to_users.rb +0 -5
  88. data/rails_32/db/sample_data.rb +0 -24
  89. data/rails_32/db/schema.rb +0 -54
  90. data/rails_32/db/seeds.rb +0 -7
  91. data/rails_32/lib/assets/.gitkeep +0 -0
  92. data/rails_32/lib/tasks/.gitkeep +0 -0
  93. data/rails_32/lib/tasks/cane.rake +0 -30
  94. data/rails_32/lib/tasks/coverage.rake +0 -10
  95. data/rails_32/lib/tasks/db.rake +0 -7
  96. data/rails_32/lib/tasks/spec.rake +0 -35
  97. data/rails_32/lib/templates/rails/scaffold_controller/controller.rb +0 -45
  98. data/rails_32/lib/templates/rspec/scaffold/controller_spec.rb +0 -155
  99. data/rails_32/lib/templates/rspec/scaffold/edit_spec.rb +0 -18
  100. data/rails_32/lib/templates/rspec/scaffold/index_spec.rb +0 -26
  101. data/rails_32/lib/templates/rspec/scaffold/new_spec.rb +0 -18
  102. data/rails_32/lib/templates/rspec/scaffold/show_spec.rb +0 -16
  103. data/rails_32/lib/templates/slim/scaffold/_form.html.slim +0 -13
  104. data/rails_32/lib/templates/slim/scaffold/edit.html.slim +0 -5
  105. data/rails_32/lib/templates/slim/scaffold/index.html.slim +0 -28
  106. data/rails_32/lib/templates/slim/scaffold/new.html.slim +0 -4
  107. data/rails_32/lib/templates/slim/scaffold/show.html.slim +0 -17
  108. data/rails_32/log/.gitkeep +0 -0
  109. data/rails_32/public/404.html +0 -26
  110. data/rails_32/public/422.html +0 -26
  111. data/rails_32/public/500.html +0 -25
  112. data/rails_32/public/favicon.ico +0 -0
  113. data/rails_32/public/robots.txt +0 -5
  114. data/rails_32/script/rails +0 -6
  115. data/rails_32/spec/controllers/user_sessions_controller_spec.rb +0 -42
  116. data/rails_32/spec/controllers/users_controller_spec.rb +0 -150
  117. data/rails_32/spec/factories/users.rb +0 -14
  118. data/rails_32/spec/features/activation_spec.rb +0 -18
  119. data/rails_32/spec/features/password_reset_spec.rb +0 -41
  120. data/rails_32/spec/features/registration_spec.rb +0 -39
  121. data/rails_32/spec/features/sign_in_spec.rb +0 -30
  122. data/rails_32/spec/javascripts/example_spec.js.coffee +0 -20
  123. data/rails_32/spec/javascripts/spec.css +0 -3
  124. data/rails_32/spec/javascripts/spec.js.coffee +0 -2
  125. data/rails_32/spec/mailers/user_mailer_spec.rb +0 -48
  126. data/rails_32/spec/models/ability_spec.rb +0 -38
  127. data/rails_32/spec/models/user_spec.rb +0 -36
  128. data/rails_32/spec/spec_helper.rb +0 -64
  129. data/rails_32/spec/support/accept_values.rb +0 -55
  130. data/rails_32/spec/support/database_cleaner.rb +0 -24
  131. data/rails_32/spec/support/factory_girl.rb +0 -3
  132. data/rails_32/spec/support/sorcery.rb +0 -3
  133. data/rails_32/spec/support/user_sessions_feature_helper.rb +0 -21
  134. data/rails_32/spec/views/users/edit.html.slim_spec.rb +0 -16
  135. data/rails_32/spec/views/users/index.html.slim_spec.rb +0 -16
  136. data/rails_32/spec/views/users/new.html.slim_spec.rb +0 -16
  137. data/rails_32/spec/views/users/show.html.slim_spec.rb +0 -13
  138. data/rails_32/vendor/assets/javascripts/.gitkeep +0 -0
  139. data/rails_32/vendor/assets/stylesheets/.gitkeep +0 -0
  140. data/rails_32/vendor/plugins/.gitkeep +0 -0
  141. data/rails_40/.env +0 -8
  142. data/rails_40/.gitignore +0 -16
  143. data/rails_40/.rspec +0 -1
  144. data/rails_40/.ruby-gemset +0 -1
  145. data/rails_40/.ruby-version +0 -1
  146. data/rails_40/Gemfile +0 -53
  147. data/rails_40/Guardfile +0 -34
  148. data/rails_40/Procfile +0 -2
  149. data/rails_40/README.md +0 -90
  150. data/rails_40/Rakefile +0 -15
  151. data/rails_40/app/assets/javascripts/application.js +0 -17
  152. data/rails_40/app/assets/stylesheets/_footer.less +0 -30
  153. data/rails_40/app/assets/stylesheets/_navbar.less +0 -3
  154. data/rails_40/app/assets/stylesheets/application.css.less +0 -3
  155. data/rails_40/app/controllers/application_controller.rb +0 -5
  156. data/rails_40/app/controllers/concerns/.keep +0 -0
  157. data/rails_40/app/controllers/pages_controller.rb +0 -6
  158. data/rails_40/app/helpers/application_helper.rb +0 -11
  159. data/rails_40/app/mailers/.keep +0 -0
  160. data/rails_40/app/models/.keep +0 -0
  161. data/rails_40/app/models/concerns/.keep +0 -0
  162. data/rails_40/app/views/layouts/application.html.slim +0 -39
  163. data/rails_40/app/views/pages/root.html.slim +0 -13
  164. data/rails_40/bin/bundle +0 -3
  165. data/rails_40/bin/deploy.sh +0 -47
  166. data/rails_40/bin/rails +0 -4
  167. data/rails_40/bin/rake +0 -4
  168. data/rails_40/circle.yml +0 -16
  169. data/rails_40/config/application.rb +0 -36
  170. data/rails_40/config/boot.rb +0 -4
  171. data/rails_40/config/database.yml +0 -15
  172. data/rails_40/config/environment.rb +0 -5
  173. data/rails_40/config/environments/acceptance.rb +0 -8
  174. data/rails_40/config/environments/development.rb +0 -31
  175. data/rails_40/config/environments/production.rb +0 -82
  176. data/rails_40/config/environments/test.rb +0 -38
  177. data/rails_40/config/initializers/backtrace_silencers.rb +0 -7
  178. data/rails_40/config/initializers/filter_parameter_logging.rb +0 -4
  179. data/rails_40/config/initializers/inflections.rb +0 -16
  180. data/rails_40/config/initializers/mailcatcher.rb +0 -15
  181. data/rails_40/config/initializers/mime_types.rb +0 -5
  182. data/rails_40/config/initializers/secret_token.rb +0 -12
  183. data/rails_40/config/initializers/session_store.rb +0 -3
  184. data/rails_40/config/initializers/simple_form.rb +0 -142
  185. data/rails_40/config/initializers/simple_form_bootstrap.rb +0 -45
  186. data/rails_40/config/initializers/wrap_parameters.rb +0 -14
  187. data/rails_40/config/locales/en.yml +0 -23
  188. data/rails_40/config/locales/simple_form.en.yml +0 -26
  189. data/rails_40/config/routes.rb +0 -5
  190. data/rails_40/config/unicorn.rb +0 -27
  191. data/rails_40/config.ru +0 -18
  192. data/rails_40/db/sample_data.rb +0 -11
  193. data/rails_40/db/schema.rb +0 -19
  194. data/rails_40/db/seeds.rb +0 -7
  195. data/rails_40/lib/assets/.keep +0 -0
  196. data/rails_40/lib/tasks/.keep +0 -0
  197. data/rails_40/lib/tasks/coverage.rake +0 -10
  198. data/rails_40/lib/tasks/db.rake +0 -7
  199. data/rails_40/lib/tasks/spec.rake +0 -60
  200. data/rails_40/lib/templates/rails/scaffold_controller/controller.rb +0 -61
  201. data/rails_40/lib/templates/rspec/controller/controller_spec.rb +0 -16
  202. data/rails_40/lib/templates/rspec/scaffold/controller_spec.rb +0 -155
  203. data/rails_40/lib/templates/rspec/scaffold/edit_spec.rb +0 -18
  204. data/rails_40/lib/templates/rspec/scaffold/index_spec.rb +0 -26
  205. data/rails_40/lib/templates/rspec/scaffold/new_spec.rb +0 -19
  206. data/rails_40/lib/templates/rspec/scaffold/show_spec.rb +0 -16
  207. data/rails_40/lib/templates/slim/scaffold/_form.html.slim +0 -13
  208. data/rails_40/lib/templates/slim/scaffold/edit.html.slim +0 -5
  209. data/rails_40/lib/templates/slim/scaffold/index.html.slim +0 -29
  210. data/rails_40/lib/templates/slim/scaffold/new.html.slim +0 -4
  211. data/rails_40/lib/templates/slim/scaffold/show.html.slim +0 -17
  212. data/rails_40/log/.keep +0 -0
  213. data/rails_40/public/404.html +0 -58
  214. data/rails_40/public/422.html +0 -58
  215. data/rails_40/public/500.html +0 -57
  216. data/rails_40/public/favicon.ico +0 -0
  217. data/rails_40/public/robots.txt +0 -5
  218. data/rails_40/spec/controllers/pages_controller_spec.rb +0 -12
  219. data/rails_40/spec/features/pages_spec.rb +0 -18
  220. data/rails_40/spec/javascripts/example_spec.js.coffee +0 -20
  221. data/rails_40/spec/javascripts/spec.css +0 -3
  222. data/rails_40/spec/javascripts/spec.js.coffee +0 -2
  223. data/rails_40/spec/spec_helper.rb +0 -79
  224. data/rails_40/spec/support/database_cleaner.rb +0 -24
  225. data/rails_40/spec/support/factory_girl.rb +0 -3
  226. data/rails_40/vendor/assets/javascripts/.keep +0 -0
  227. data/rails_40/vendor/assets/stylesheets/.keep +0 -0
@@ -1,13 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "users/show" do
4
- before(:each) do
5
- @user = assign(:user, build_stubbed(:user))
6
- end
7
-
8
- it "renders attributes in <p>" do
9
- render
10
- expect(rendered).to match /Email/
11
- expect(rendered).to match /Name/
12
- end
13
- end
File without changes
File without changes
File without changes
data/rails_40/.env DELETED
@@ -1,8 +0,0 @@
1
- # Set environment variables needed for development here. These values will be
2
- # used unless they're already set.
3
- #
4
- # http://ddollar.github.com/foreman/#ENVIRONMENT
5
-
6
- PORT=3000
7
- UNICORN_WORKERS=1
8
- UNICORN_BACKLOG=16
data/rails_40/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*.log
16
- /tmp
data/rails_40/.rspec DELETED
@@ -1 +0,0 @@
1
- --format Fuubar --color
@@ -1 +0,0 @@
1
- app-prototype
@@ -1 +0,0 @@
1
- 2.0.0-p247
data/rails_40/Gemfile DELETED
@@ -1,53 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Heroku uses the ruby version to configure your application's runtime.
4
- ruby '2.0.0'
5
-
6
- gem 'unicorn'
7
- gem 'rack-canonical-host'
8
- gem 'rails', '~> 4.0.0'
9
- gem 'pg'
10
-
11
- gem 'slim-rails'
12
- gem 'less-rails'
13
- gem 'less-rails-bootstrap', '~> 3.0.3'
14
- gem 'jquery-rails'
15
- gem 'coffee-rails'
16
- gem 'turbolinks'
17
- gem 'simple_form', '~> 3.0'
18
- gem 'uglifier'
19
-
20
- gem 'awesome_print'
21
-
22
- # Heroku suggests that these gems aren't necessary, but they're required to compile less assets on deploy.
23
- gem 'therubyracer', platforms: :ruby
24
- #gem 'libv8'#, '~> 3.11.8'
25
-
26
- group :test, :development do
27
- gem 'rspec-rails'
28
- gem 'capybara'
29
- #gem 'capybara-email'
30
- gem 'poltergeist'
31
- gem 'factory_girl_rails'
32
- gem 'database_cleaner'
33
- gem 'fuubar'
34
- gem 'jasminerice', github: 'bradphelan/jasminerice' # Latest release still depends on haml.
35
- #gem 'timecop'
36
- gem 'simplecov'
37
- #gem 'cane'
38
- #gem 'morecane'
39
- #gem 'quiet_assets'
40
- end
41
-
42
- group :development do
43
- gem 'foreman'
44
- gem 'launchy'
45
- gem 'better_errors'
46
- gem 'binding_of_caller'
47
- gem 'guard', '~> 2'
48
- gem 'guard-rspec'
49
- gem 'guard-jasmine'
50
- gem 'guard-livereload'
51
- gem 'rb-fsevent'
52
- gem 'growl'
53
- end
data/rails_40/Guardfile DELETED
@@ -1,34 +0,0 @@
1
- # More info at https://github.com/guard/guard#readme
2
-
3
- guard :livereload do
4
- watch(%r{app/views/.+\.slim$})
5
- watch(%r{app/helpers/.+\.rb})
6
- watch(%r{public/.+\.(css|js|html)})
7
- watch(%r{conf ig/locales/.+\.yml})
8
-
9
- # Rails Assets Pipeline
10
- watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|less|js|html))).*}) { |m| "/assets/#{m[3]}" }
11
- end
12
-
13
- guard :rspec do
14
- watch(%r{^spec/.+_spec\.rb$})
15
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
16
- watch('spec/spec_helper.rb') { "spec" }
17
-
18
- # Rails example
19
- watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
20
- watch(%r{^app/(.*)(\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
21
- watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] }
22
- watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
23
- watch('app/controllers/application_controller.rb') { "spec/controllers" }
24
-
25
- # Capybara request specs
26
- watch(%r{^app/views/(.+)/.*(\.slim)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
27
- end
28
-
29
- guard :jasmine do
30
- watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
31
- watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
32
- watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" }
33
- end
34
-
data/rails_40/Procfile DELETED
@@ -1,2 +0,0 @@
1
- web: bundle exec unicorn -c ./config/unicorn.rb
2
- #worker: bundle exec rake jobs:work
data/rails_40/README.md DELETED
@@ -1,90 +0,0 @@
1
- # App Prototype
2
-
3
- ...
4
-
5
- Generated with [Raygun](https://github.com/carbonfive/raygun).
6
-
7
- # Requirements
8
-
9
- To run the specs or fire up the server, be sure you have these:
10
-
11
- * Ruby 2.0.0-p247
12
- * PostgreSQL 9.x with superuser 'postgres' with no password (```createuser -s postgres```)
13
- * PhantomJS for JavaScript testing (```brew install phantomjs```)
14
-
15
- # Development
16
-
17
- ### First Time Setup
18
-
19
- After cloning, run these commands to install missing gems and prepare the database.
20
-
21
- $ gem install bundler
22
- $ bundle update
23
- $ rake db:setup db:sample_data
24
-
25
- Note, ```rake db:sample_data``` loads a small set of data for development. Check out [db/sample_data.rb](db/sample_data.rb)
26
- for details.
27
-
28
- ### Running the Specs
29
-
30
- To run all ruby and jasmine specs.
31
-
32
- $ rake
33
-
34
- Again, with coverage for the ruby specs:
35
-
36
- $ rake spec:coverage
37
-
38
- ### Running the Application Locally
39
-
40
- $ foreman start
41
- $ open http://0.0.0.0:3000
42
-
43
- ### Using Guard
44
-
45
- Guard is configured to run ruby and jasmine specs, and also listen for livereload connections. Growl is used for notifications.
46
-
47
- $ bundle exec guard
48
-
49
- ### Using Mailcatcher
50
-
51
- $ gem install mailcatcher
52
- $ mailcatcher
53
- $ open http://localhost:1080/
54
-
55
- Learn more at [mailcatcher.me](http://mailcatcher.me/). And please don't add mailcatcher to the Gemfile.
56
-
57
- ### Continuous Integration and Deployment with CircleCI
58
-
59
- This project is configured for continuous integration and deployment with CircleCI and Heroku. Follow
60
- these steps for first time configuration:
61
-
62
- 1. Push the project to Github, if you haven't already.
63
- 1. Authenticate at circleci.com and follow this project.
64
- 1. Be sure to enable Heroku deploys from the project settings on CircleCI.
65
- 1. The project should automatically be deployed on every successful build.
66
-
67
- Check out [circle.yml](circle.yml) and [bin/deploy.sh](bin/deploy.sh) for details.
68
-
69
- ### Manual Deploy to Heroku
70
-
71
- Install the Heroku toolbelt if you don't already have it (https://toolbelt.heroku.com/).
72
-
73
- $ heroku apps:create app-prototype
74
- $ git push heroku master
75
- $ heroku run rake db:setup
76
-
77
- ### Environment Variables
78
-
79
- Several common features and operational parameters can be set using environment variables. These are all optional.
80
-
81
- * ```HOSTNAME``` - Canonical hostname for this application. Other incoming requests will be redirected to this hostname.
82
- * ```BASIC_AUTH_PASSWORD``` - Enable basic auth with this password.
83
- * ```BASIC_AUTH_USER``` - Set a basic auth username (not required, password enables basic auth).
84
- * ```PORT``` - Port to listen on (default: 3000).
85
- * ```UNICORN_WORKERS``` - Number of unicorn workers to spawn (default: development 1, otherwisee 3) .
86
- * ```UNICORN_BACKLOG``` - Depth of unicorn backlog (default: 16).
87
-
88
- # Considerations
89
-
90
- ...
data/rails_40/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- AppPrototype::Application.load_tasks
8
-
9
- # Disable schema.sql generation, unless we're in development.
10
- # http://stackoverflow.com/questions/12413306/error-when-doing-rake-dbmigrate-on-heroku
11
- Rake::Task['db:structure:dump'].clear unless Rails.env.development?
12
-
13
- # Spec is the default rake target.
14
- task(:default).clear
15
- task default: 'spec'
@@ -1,17 +0,0 @@
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
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require turbolinks
16
- //= require twitter/bootstrap
17
- //= require_tree .
@@ -1,30 +0,0 @@
1
- @footer-height: 30px;
2
-
3
- html, body {
4
- height: 100%;
5
- }
6
-
7
- .wrapper {
8
- min-height: 100%;
9
- height: auto !important;
10
- height: 100%;
11
- margin: 0 auto -(@footer-height + 1);
12
- }
13
-
14
- .push {
15
- height: @footer-height + 20px; // The extra prevents content from bumping right into our footer.
16
- }
17
-
18
- footer {
19
- height: @footer-height;
20
- line-height: @footer-height;
21
-
22
- .container {
23
- border-top: 1px solid @gray-lighter;
24
- }
25
-
26
- p {
27
- margin: 0;
28
- color: @gray-light;
29
- }
30
- }
@@ -1,3 +0,0 @@
1
- // Navbar
2
-
3
- body { padding-top: 70px; }
@@ -1,3 +0,0 @@
1
- @import 'twitter/bootstrap';
2
- @import '_navbar';
3
- @import '_footer';
@@ -1,5 +0,0 @@
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
File without changes
@@ -1,6 +0,0 @@
1
- class PagesController < ApplicationController
2
-
3
- def root
4
- end
5
-
6
- end
@@ -1,11 +0,0 @@
1
- module ApplicationHelper
2
-
3
- def alert_class(alert_type)
4
- alert_type = {
5
- alert: 'error',
6
- notice: 'info'
7
- }.fetch(alert_type, alert_type.to_s)
8
- "alert-#{alert_type}"
9
- end
10
-
11
- end
File without changes
File without changes
File without changes
@@ -1,39 +0,0 @@
1
- doctype 5
2
- html
3
- head
4
- title App Prototype
5
- = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
6
- = javascript_include_tag 'application', 'data-turbolinks-track' => true
7
- = csrf_meta_tag
8
- meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
9
-
10
- body id=(controller.controller_name) class=(controller.action_name)
11
- .wrapper
12
- nav.navbar.navbar-default.navbar-fixed-top role='navigation'
13
- .navbar-header
14
- button.button.navbar-toggle data-toggle='collapse' data-target='.navbar-collapse'
15
- span.icon-bar
16
- span.icon-bar
17
- span.icon-bar
18
- a.navbar-brand href='/' App Prototype
19
- .collapse.navbar-collapse
20
- ul.nav.navbar-nav.pull-right
21
- / - if current_user
22
- / li.dropdown
23
- / a.dropdown-toggle href='#' data-toggle='dropdown'
24
- / = current_user.email
25
- / b.caret
26
- / ul.dropdown-menu
27
- / li= link_to 'Sign Out', sign_out_path
28
- / - else
29
- / li= link_to 'Sign In', sign_in_path
30
-
31
- .container
32
- - flash.each do |name, msg|
33
- = content_tag :div, raw(msg), class: "alert #{alert_class(name)}"
34
- = yield
35
- .push
36
-
37
- footer
38
- .container
39
- p &copy; 2013 All rights reserved.
@@ -1,13 +0,0 @@
1
- javascript:
2
- /* This little bit of silliness is here to ensure our js feature specs are working. Remove at will. */
3
- $(document).ready(function() {
4
- $('.jumbotron p:last').after("<p>Enjoy!</p>")
5
- });
6
-
7
- .jumbotron
8
- h1 Hello, world!
9
- br
10
- p Welcome to your newly generated rails application...
11
- p Meander around the code to see what's been done for you. Many small, and a few not-so-small, customizations have been made.
12
- p Custom generator templates create views that are bootstrap compatible and specs that are factory-aware and follow best practices.
13
- p Your application is ready for easy deployment to heroku.
data/rails_40/bin/bundle DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,47 +0,0 @@
1
- #!/bin/sh -e
2
-
3
- if [ $# -ne 1 ]; then
4
- echo 1>&2 "Usage: $0 <application name>"
5
- exit 1
6
- fi
7
-
8
- APP_NAME=$1
9
-
10
- if [ -n "$CIRCLE_SHA1" ]; then
11
- SHA_TO_DEPLOY=$CIRCLE_SHA1
12
- else
13
- echo "CIRCLE_SHA1 isn't set, deploying the latest revision."
14
- SHA_TO_DEPLOY=`git rev-parse HEAD`
15
- fi
16
-
17
- REMOTE_MISSING=$(git remote | grep heroku | wc -l)
18
-
19
- if [ $REMOTE_MISSING -eq 0 ] ; then
20
- git remote add heroku git@heroku.com:$APP_NAME.git
21
- fi
22
-
23
- git fetch heroku
24
-
25
- PREV_WORKERS=$(heroku ps --app $APP_NAME | grep "^worker." | wc -l | xargs)
26
-
27
- PENDING_MIGRATIONS=$(git diff HEAD heroku/master --name-only -- db | wc -l | xargs)
28
-
29
- echo "There are $PENDING_MIGRATIONS pending migrations."
30
-
31
- # Migrations require downtime so enter maintenance mode
32
- if [ $PENDING_MIGRATIONS -gt 0 ]; then
33
- heroku maintenance:on --app $APP_NAME
34
-
35
- # Make sure workers are not running during a migration
36
- heroku scale worker=0 --app $APP_NAME
37
- fi
38
-
39
- # Deploy code changes (and implicitly restart the app and any running workers)
40
- git push -f heroku $SHA_TO_DEPLOY:refs/heads/master
41
-
42
- # Run database migrations if needed and restart background workers once finished
43
- if [ $PENDING_MIGRATIONS -gt 0 ]; then
44
- heroku run rake db:migrate db:seed --app $APP_NAME
45
- heroku scale worker=$PREV_WORKERS --app $APP_NAME
46
- heroku maintenance:off --app $APP_NAME
47
- fi
data/rails_40/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
data/rails_40/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
data/rails_40/circle.yml DELETED
@@ -1,16 +0,0 @@
1
- test:
2
- override:
3
- - rake spec:without_features spec:features
4
- post:
5
- - bundle exec guard-jasmine
6
-
7
- deployment:
8
- acceptance:
9
- branch: master
10
- commands:
11
- - ./bin/deploy.sh app-prototype-acceptance
12
-
13
- production:
14
- branch: production
15
- commands:
16
- - ./bin/deploy.sh app-prototype
@@ -1,36 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- # Pick the frameworks you want:
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_mailer/railtie"
7
- require "sprockets/railtie"
8
-
9
- # Require the gems listed in Gemfile, including any gems
10
- # you've limited to :test, :development, or :production.
11
- Bundler.require(:default, Rails.env)
12
-
13
- module AppPrototype
14
- class Application < Rails::Application
15
- # Settings in config/environments/* take precedence over those specified here.
16
- # Application configuration should go into files in config/initializers
17
- # -- all .rb files in that directory are automatically loaded.
18
-
19
- # Disable unwanted generators.
20
- config.generators do |generate|
21
- generate.stylesheets false
22
- #generate.helper false
23
- generate.routing_specs false
24
- #generate.view_specs false
25
- generate.request_specs false
26
- end
27
-
28
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
- # config.time_zone = 'Central Time (US & Canada)'
31
-
32
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
- # config.i18n.default_locale = :de
35
- end
36
- end
@@ -1,4 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -1,15 +0,0 @@
1
- # PostgreSQL. Versions 8.2 and up are supported.
2
- # Use 'createuser -s postgres' to create a general purpose db (super)user.
3
-
4
- development: &default
5
- adapter: postgresql
6
- encoding: unicode
7
- database: app_prototype_development
8
- username: postgres
9
- pool: 5
10
- timeout: 5000
11
-
12
- test:
13
- <<: *default
14
- database: app_prototype_test
15
- min_messages: warning
@@ -1,5 +0,0 @@
1
- # Load the rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application.
5
- AppPrototype::Application.initialize!
@@ -1,8 +0,0 @@
1
- # Acceptance builds on production's configuration.
2
- require Rails.root.join('config/environments/production')
3
-
4
- AppPrototype::Application.configure do
5
- # Settings specified here will take precedence over those in config/application.rb and config/production.rb.
6
-
7
- config.action_mailer.default_url_options = { host: 'app-prototype-acceptance.herokuapp.com' }
8
- end
@@ -1,31 +0,0 @@
1
- AppPrototype::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
- config.action_mailer.default_url_options = { host: 'localhost:3000' }
31
- end