scratchpad 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/css/scratchpad.css +4 -0
  6. data/app/helpers/scratchpad_helper.rb +5 -0
  7. data/lib/scratchpad/middleware.rb +13 -0
  8. data/lib/scratchpad/page.rb +20 -0
  9. data/lib/scratchpad/version.rb +3 -0
  10. data/lib/scratchpad.rb +14 -0
  11. data/lib/tasks/scratchpad_tasks.rake +4 -0
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/javascripts/application.js +13 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/controllers/pages_controller.rb +9 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  19. data/test/dummy/app/views/pages/_partial_scratch.html.erb +3 -0
  20. data/test/dummy/app/views/pages/empty.html.erb +1 -0
  21. data/test/dummy/app/views/pages/multiple_scratch.html.erb +7 -0
  22. data/test/dummy/app/views/pages/no_scratch.html.erb +1 -0
  23. data/test/dummy/app/views/pages/scratch.html.erb +3 -0
  24. data/test/dummy/app/views/pages/scratch_object.html.erb +3 -0
  25. data/test/dummy/app/views/pages/scratch_with_partial_scratch.html.erb +7 -0
  26. data/test/dummy/bin/bundle +3 -0
  27. data/test/dummy/bin/rails +4 -0
  28. data/test/dummy/bin/rake +4 -0
  29. data/test/dummy/bin/setup +29 -0
  30. data/test/dummy/config/application.rb +27 -0
  31. data/test/dummy/config/boot.rb +5 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +41 -0
  35. data/test/dummy/config/environments/production.rb +79 -0
  36. data/test/dummy/config/environments/test.rb +42 -0
  37. data/test/dummy/config/initializers/assets.rb +11 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/dummy/config/initializers/inflections.rb +16 -0
  42. data/test/dummy/config/initializers/mime_types.rb +4 -0
  43. data/test/dummy/config/initializers/session_store.rb +3 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +23 -0
  46. data/test/dummy/config/routes.rb +10 -0
  47. data/test/dummy/config/secrets.yml +22 -0
  48. data/test/dummy/config.ru +4 -0
  49. data/test/dummy/db/test.sqlite3 +0 -0
  50. data/test/dummy/log/test.log +1562 -0
  51. data/test/dummy/public/404.html +67 -0
  52. data/test/dummy/public/422.html +67 -0
  53. data/test/dummy/public/500.html +66 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/integration/middleware_test.rb +22 -0
  56. data/test/integration/rendering_test.rb +26 -0
  57. data/test/scratchpad_test.rb +7 -0
  58. data/test/test_helper.rb +18 -0
  59. metadata +162 -0
@@ -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"
@@ -0,0 +1,10 @@
1
+ Rails.application.routes.draw do
2
+
3
+ get '/' => 'pages#empty'
4
+ get '/no_scratch' => 'pages#no_scratch'
5
+ get '/scratch' => 'pages#scratch'
6
+ get '/scratch_object' => 'pages#scratch_object'
7
+ get '/multiple_scratch' => 'pages#multiple_scratch'
8
+ get '/scratch_with_partial_scratch' => 'pages#scratch_with_partial_scratch'
9
+
10
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 5e88fd918c1f5eaa316390293e46d303d5f4afb52bd00769042f21eeffd84c87571dba9c684882561f375192e3b69268f876d87abc3f75b314117632d422b308
15
+
16
+ test:
17
+ secret_key_base: 58d5d72435b08ed2e27e3037d792c810d50f416f1fe4b8cd301eccf0030467e38e1929d632e296ae142d21fcf64e642181c2070c6657b867edf270cda3dc9512
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -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
File without changes