speedo 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +39 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/images/speedo/logo.png +0 -0
  5. data/app/assets/javascripts/home.coffee +59 -0
  6. data/app/assets/javascripts/speedo.js +25 -0
  7. data/app/assets/stylesheets/_style.scss +475 -0
  8. data/app/assets/stylesheets/speedo.scss +20 -0
  9. data/app/controllers/speedo/application_controller.rb +4 -0
  10. data/app/controllers/speedo/home_controller.rb +6 -0
  11. data/app/helpers/speedo/layout_helper.rb +18 -0
  12. data/app/views/layouts/speedo/application.haml +19 -0
  13. data/app/views/speedo/home/how.html.haml +107 -0
  14. data/app/views/speedo/home/index.haml +1 -0
  15. data/app/views/speedo/shared/_footer.haml +5 -0
  16. data/app/views/speedo/shared/_header.haml +8 -0
  17. data/app/views/speedo/shared/_html_head.haml +18 -0
  18. data/app/views/speedo/shared/_nav_flash.haml +19 -0
  19. data/config/locales/en.yml +5 -0
  20. data/config/routes.rb +4 -0
  21. data/lib/speedo/engine.rb +5 -0
  22. data/lib/speedo/sass.rb +5 -0
  23. data/lib/speedo/version.rb +3 -0
  24. data/lib/speedo.rb +7 -0
  25. data/lib/tasks/speedo_tasks.rake +4 -0
  26. data/test/dummy/Rakefile +7 -0
  27. data/test/dummy/app/assets/javascripts/application.js +9 -0
  28. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  29. data/test/dummy/app/controllers/application_controller.rb +3 -0
  30. data/test/dummy/app/helpers/application_helper.rb +2 -0
  31. data/test/dummy/app/views/layouts/application.haml +19 -0
  32. data/test/dummy/config/application.rb +45 -0
  33. data/test/dummy/config/boot.rb +10 -0
  34. data/test/dummy/config/database.yml +25 -0
  35. data/test/dummy/config/environment.rb +5 -0
  36. data/test/dummy/config/environments/development.rb +30 -0
  37. data/test/dummy/config/environments/production.rb +60 -0
  38. data/test/dummy/config/environments/test.rb +39 -0
  39. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  40. data/test/dummy/config/initializers/inflections.rb +10 -0
  41. data/test/dummy/config/initializers/mime_types.rb +5 -0
  42. data/test/dummy/config/initializers/secret_token.rb +7 -0
  43. data/test/dummy/config/initializers/session_store.rb +8 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +5 -0
  46. data/test/dummy/config/routes.rb +4 -0
  47. data/test/dummy/config.ru +4 -0
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/db/schema.rb +16 -0
  50. data/test/dummy/log/development.log +1439 -0
  51. data/test/dummy/public/404.html +26 -0
  52. data/test/dummy/public/422.html +26 -0
  53. data/test/dummy/public/500.html +26 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/dummy/script/rails +6 -0
  56. data/test/dummy/tmp/cache/assets/C3E/DC0/sprockets%2F1403a9a2a343047662a08c94236e18d3 +0 -0
  57. data/test/dummy/tmp/cache/assets/C55/A00/sprockets%2F64a4807c3605709b4a90f49218d0f657 +0 -0
  58. data/test/dummy/tmp/cache/assets/C58/AC0/sprockets%2Fb3fe8d12404f3909651c796f53704264 +0 -0
  59. data/test/dummy/tmp/cache/assets/C5D/720/sprockets%2F9fa57e616e980217a86a752645602a67 +0 -0
  60. data/test/dummy/tmp/cache/assets/C66/D10/sprockets%2F2464fdef14068c5758619d407575745f +0 -0
  61. data/test/dummy/tmp/cache/assets/C7F/F30/sprockets%2F634e6d3c0a9b00971070936b1858d9f0 +0 -0
  62. data/test/dummy/tmp/cache/assets/C86/790/sprockets%2F91e781f0651760fa67f67441d22f526a +0 -0
  63. data/test/dummy/tmp/cache/assets/C8E/F50/sprockets%2Fd8870c8cd6268b552059e4165dd41395 +0 -0
  64. data/test/dummy/tmp/cache/assets/C95/800/sprockets%2F1e2c6a6ef746de4672d8479058663283 +0 -0
  65. data/test/dummy/tmp/cache/assets/C99/860/sprockets%2F17c461a57e0176f6d2a42ac2d5601332 +0 -0
  66. data/test/dummy/tmp/cache/assets/C9E/CB0/sprockets%2F851e8854f40e4f6c954924cbc8574955 +0 -0
  67. data/test/dummy/tmp/cache/assets/CA1/670/sprockets%2F5078d436b1e840b24a45a0fd808e0370 +0 -0
  68. data/test/dummy/tmp/cache/assets/CA2/A50/sprockets%2F802a418e2ec671e229b6b0bc15282914 +0 -0
  69. data/test/dummy/tmp/cache/assets/CA4/550/sprockets%2F5b90b6195ec8acd0012526e32493a707 +0 -0
  70. data/test/dummy/tmp/cache/assets/CB6/AB0/sprockets%2Fbf1147aa08d0479c55c2491d6548697b +0 -0
  71. data/test/dummy/tmp/cache/assets/CCD/3C0/sprockets%2F4813042234e4809bbba5f31fa53d613e +0 -0
  72. data/test/dummy/tmp/cache/assets/CD2/A30/sprockets%2F82bf9b41b2475c3630e1c241c2f386b3 +0 -0
  73. data/test/dummy/tmp/cache/assets/CE6/370/sprockets%2Ff2af9583b1651f2b85a55312652fc88e +0 -0
  74. data/test/dummy/tmp/cache/assets/CE7/7E0/sprockets%2F614ac05673f4071a775e97aae45a788d +0 -0
  75. data/test/dummy/tmp/cache/assets/CEF/9F0/sprockets%2Fd4655b68b55de913f9df60e5726d2128 +0 -0
  76. data/test/dummy/tmp/cache/assets/CF3/100/sprockets%2Fc892faf01e9f78893b2ec023f8930917 +0 -0
  77. data/test/dummy/tmp/cache/assets/CF4/5F0/sprockets%2Ff3c268595dbff812347d6ed70474d809 +0 -0
  78. data/test/dummy/tmp/cache/assets/CF6/250/sprockets%2F3f5b661c64b00a08d2a4405a04a478fb +0 -0
  79. data/test/dummy/tmp/cache/assets/CFC/9C0/sprockets%2Fcc2735935442c2435fa1da09a2ab17f3 +0 -0
  80. data/test/dummy/tmp/cache/assets/D04/570/sprockets%2Fb977dd2e1b11efd95d1635b106311a48 +0 -0
  81. data/test/dummy/tmp/cache/assets/D07/570/sprockets%2Fdcf54a08e524f281b585442e47ceb102 +0 -0
  82. data/test/dummy/tmp/cache/assets/D15/5F0/sprockets%2F57b1816da5eb950bb6583945a2c9dd63 +0 -0
  83. data/test/dummy/tmp/cache/assets/D16/F90/sprockets%2F9d50fa2529140487789bc8b2eb7c3e0e +0 -0
  84. data/test/dummy/tmp/cache/assets/D18/720/sprockets%2F3a0f8a5ca889201c9c5ecd4748f91328 +0 -0
  85. data/test/dummy/tmp/cache/assets/D21/650/sprockets%2Fb2cb6c556ff05f3999e4e2d747840a56 +0 -0
  86. data/test/dummy/tmp/cache/assets/D36/850/sprockets%2F6f3211de66f1a692600d1eea5c37ff50 +0 -0
  87. data/test/dummy/tmp/cache/assets/D39/300/sprockets%2F208a3e8f241d173ac294a5675d64bbed +0 -0
  88. data/test/dummy/tmp/cache/assets/D44/F90/sprockets%2F08a167ea587d545985dbb299df0b2d0a +0 -0
  89. data/test/dummy/tmp/cache/assets/D46/610/sprockets%2Fb9cd82e86bf9f23497ea1a82380f4d00 +0 -0
  90. data/test/dummy/tmp/cache/assets/D4E/AA0/sprockets%2F56cf4d3668ca40d9767ef3923b90ccf3 +0 -0
  91. data/test/dummy/tmp/cache/assets/D50/140/sprockets%2Feacc6366c2e070f9a8b9676b9269eb81 +0 -0
  92. data/test/dummy/tmp/cache/assets/D54/BE0/sprockets%2Fd69188ce1fa675cf95ac60199c94c82a +0 -0
  93. data/test/dummy/tmp/cache/assets/D56/5B0/sprockets%2Ff9b967b41f1a607574688dbe5fd48d2e +0 -0
  94. data/test/dummy/tmp/cache/assets/D5D/1B0/sprockets%2F6df1b3eb63813007efc0c624c4e1be70 +0 -0
  95. data/test/dummy/tmp/cache/assets/D64/000/sprockets%2F3eaa6b6f62e23fc95c100b67024ff6a5 +0 -0
  96. data/test/dummy/tmp/cache/assets/D67/E00/sprockets%2Faf58442fa3b47f73c51e534a32de1fe1 +0 -0
  97. data/test/dummy/tmp/cache/assets/D6A/E70/sprockets%2F3d5d96c133daefa7261bf5183c1d727c +0 -0
  98. data/test/dummy/tmp/cache/assets/D6C/E60/sprockets%2F8d38aff5c20f91c2a106ffc422907e7b +0 -0
  99. data/test/dummy/tmp/cache/assets/D6D/7E0/sprockets%2Ffb0ae6d7ff92dbd1b16353268f0464d4 +0 -0
  100. data/test/dummy/tmp/cache/assets/D6D/900/sprockets%2F470cd1d4e43c64e9fa812a75e95ad11f +0 -0
  101. data/test/dummy/tmp/cache/assets/D74/B80/sprockets%2F53e914bce7197b5392ad7f285aeca3e3 +0 -0
  102. data/test/dummy/tmp/cache/assets/D7A/330/sprockets%2Fa1683ec0e94aebfa47c559940db6d677 +0 -0
  103. data/test/dummy/tmp/cache/assets/D7B/AD0/sprockets%2F80f6555eabf8e7a66ef7bdd0309239d3 +0 -0
  104. data/test/dummy/tmp/cache/assets/D7C/250/sprockets%2Fb5bb46dee0118a0a88f099ed6ed85767 +0 -0
  105. data/test/dummy/tmp/cache/assets/D7D/7E0/sprockets%2Fe38072fc712ee2f8d944e6c62a88eb2f +0 -0
  106. data/test/dummy/tmp/cache/assets/D90/4F0/sprockets%2F4f2c511baacacdff3561bdc676214656 +0 -0
  107. data/test/dummy/tmp/cache/assets/D94/FD0/sprockets%2F41225e07b4e82f7c5bca58a6acbe6b34 +0 -0
  108. data/test/dummy/tmp/cache/assets/D99/410/sprockets%2F0d41e90fb416d25b0690caf5f56ed8ea +0 -0
  109. data/test/dummy/tmp/cache/assets/D9C/2D0/sprockets%2F04c0f7c86528653cbf3ce46f2ca0dd9a +0 -0
  110. data/test/dummy/tmp/cache/assets/DA1/670/sprockets%2Fb71f32bbfb530e59ad7a177cf54a888b +0 -0
  111. data/test/dummy/tmp/cache/assets/DB3/FA0/sprockets%2F58f5736fc67cabe1d1f87b9d6e1a864e +0 -0
  112. data/test/dummy/tmp/cache/assets/DBB/910/sprockets%2F73b846ffea908d76e668197bea7fa4de +0 -0
  113. data/test/dummy/tmp/cache/assets/DC5/B10/sprockets%2F4e8d3beabb66a33753cdf2538b0dc70d +0 -0
  114. data/test/dummy/tmp/cache/assets/DC8/550/sprockets%2F94cb607caf211aafa576d8db3e0d583f +0 -0
  115. data/test/dummy/tmp/cache/assets/DDE/B60/sprockets%2Fee0b5f55e5438bf6ea38eb85c57c48af +0 -0
  116. data/test/dummy/tmp/cache/assets/DEF/030/sprockets%2F829f9ef48f8cd4fbbf9191e67a2ce3e8 +0 -0
  117. data/test/dummy/tmp/cache/assets/DEF/C20/sprockets%2Fab241dc1f5aee3812dfd46ffb4bf1910 +0 -0
  118. data/test/dummy/tmp/cache/assets/DF2/CB0/sprockets%2F4500acae993e0fa07bd48dceee07e2b3 +0 -0
  119. data/test/dummy/tmp/cache/assets/E0E/AA0/sprockets%2Fb4a3ce3ff273a9e3c67ef8791cfb6dd6 +0 -0
  120. data/test/dummy/tmp/cache/assets/E1C/290/sprockets%2Fb73d1b3a2d1e21efea1b01dd5dd8d79d +0 -0
  121. data/test/dummy/tmp/cache/assets/E20/350/sprockets%2Fd8a3386671fbdadea2a5e5ba27a43eab +0 -0
  122. data/test/dummy/tmp/pids/server.pid +1 -0
  123. data/test/integration/navigation_test.rb +10 -0
  124. data/test/speedo_test.rb +7 -0
  125. data/test/test_helper.rb +10 -0
  126. metadata +344 -0
@@ -0,0 +1,18 @@
1
+ module Speedo
2
+ module LayoutHelper
3
+
4
+ # Implements the Paul Irish IE conditional comments HTML tag--in HAML.
5
+ # http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
6
+ def cc_html(options={}, &blk)
7
+ attrs = options.map { |(k, v)| " #{h k}='#{h v}'" }.join('')
8
+ [ "<!--[if lt IE 7 ]> <html#{attrs} class='ie6'> <![endif]-->",
9
+ "<!--[if IE 7 ]> <html#{attrs} class='ie7'> <![endif]-->",
10
+ "<!--[if IE 8 ]> <html#{attrs} class='ie8'> <![endif]-->",
11
+ "<!--[if IE 9 ]> <html#{attrs} class='ie9'> <![endif]-->",
12
+ "<!--[if (gt IE 9)|!(IE)]><!--> <html#{attrs}> <!--<![endif]-->",
13
+ capture_haml(&blk).strip,
14
+ "</html>"
15
+ ].join("\n")
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,19 @@
1
+ !!!
2
+ != cc_html(:class => "no-js", :lang => 'en') do
3
+ = render 'speedo/shared/html_head'
4
+ %body
5
+ %noscript#noscript_warning This site works best with JavaScript enabled. Some features may not be available
6
+ #wrapper
7
+ = render 'speedo/shared/header'
8
+ = render 'speedo/shared/nav_flash'
9
+ .colmask{:class => @col_layout || @col_layout = "leftcol"}
10
+ -# options: leftcol, rightcol, threecol, onecol
11
+ .colmid
12
+ .colleft
13
+ .col1
14
+ = yield
15
+ .col2
16
+ = yield :left_col
17
+ .col3
18
+ = yield :right_col
19
+ = render 'speedo/shared/footer'
@@ -0,0 +1,107 @@
1
+ - @col_layout = "threecol"
2
+
3
+ %h1 Buttons - h1
4
+ %button.button.icon.add Click
5
+ .button-group
6
+ %input.button.danger{:type => :submit, :value => "Cancel"}
7
+ %a.button.icon.comment.popup{:href => "#popup", :title => "Popup title"} Popup
8
+ .button Nothing
9
+
10
+
11
+
12
+ %h2 Sortable Table - h2
13
+ %table.dataTable
14
+ %thead
15
+ %tr
16
+ %th Name
17
+ %th Username
18
+ %tbody
19
+ %tr
20
+ %td Sally
21
+ %td gurlsally
22
+ %tr
23
+ %td Dave
24
+ %td davieboy
25
+ %tr
26
+ %td Hilary
27
+ %td hermahili
28
+
29
+
30
+
31
+ %h3 Inputs with bonuses - h3
32
+ %select.chzn{:style => "width:200px"}
33
+ %option Canada
34
+ %option UK
35
+ %option USA
36
+
37
+ %br
38
+ %input{:type => :date, :placeholder => "yy-mm-dd"}
39
+
40
+
41
+
42
+ %h4 AutoGrowing, AutoSuggesting - h4
43
+ %textarea.autoGrow{:cols => "50", :placeholder => "AutoGrowing"}
44
+
45
+ %br
46
+ %input.autoSuggest
47
+
48
+
49
+
50
+ %h5 Uniformed Inputs - h5
51
+ %label
52
+ %input{:type => :checkbox, :checked => "checked"}
53
+ One
54
+ %label
55
+ %input{:type => :checkbox}
56
+ Two
57
+ %label
58
+ %input{:type => :checkbox}
59
+ Three
60
+ %br
61
+
62
+ %label
63
+ %input{:type => :radio, :name => "radio", :checked => "checked"}
64
+ One
65
+ %label
66
+ %input{:type => :radio, :name => "radio"}
67
+ Two
68
+ %label
69
+ %input{:type => :radio, :name => "radio"}
70
+ Three
71
+
72
+ %br
73
+ %select
74
+ %option Select Something
75
+
76
+ %br
77
+ %input{:type => :file}
78
+
79
+
80
+
81
+ %h6 Lists - h6
82
+ %ul
83
+ %li This is
84
+ %li a list:
85
+ %li no margin
86
+ %li or padding
87
+ %li or bullets
88
+
89
+
90
+
91
+
92
+
93
+
94
+ = content_for :left_col do
95
+ %h2 Left Col
96
+
97
+ = content_for :right_col do
98
+ %h3 Right Col
99
+
100
+
101
+ .popups
102
+ #popup.popup_content
103
+ %h4 Help
104
+ %p See style.css.scss for classes
105
+ %p See normalize.css.scss for helper classes
106
+ %p See home.js.coffee for standard JS calls
107
+ %button.button.close.right Close
@@ -0,0 +1 @@
1
+ %h1 Home
@@ -0,0 +1,5 @@
1
+ %footer
2
+ = link_to "How", how_path
3
+ Copyright &copy;
4
+ = Time.now.year
5
+ = link_to "CrankApps", "http://www.crankapps.com", :target => "_blank"
@@ -0,0 +1,8 @@
1
+ %header.branding.clearfix
2
+ = link_to image_tag('speedo/logo.png'), root_url, :class => 'logo'
3
+
4
+ .user
5
+ = link_to "current_user.name", "account_url", class: "user_name"
6
+ |
7
+ = link_to 'Logout', "destroy_user_session_url", class: "user_logout"
8
+
@@ -0,0 +1,18 @@
1
+ %head
2
+ %meta{:charset => "utf-8"}
3
+ %meta{:content => "", :name => "author"}
4
+ %meta{:content => "", :name => "description"}
5
+ %meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
6
+ %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
7
+ -#%link{:href => '#insert-web-fonts-here', :rel => 'stylesheet', :type => 'text/css'}
8
+ = csrf_meta_tags
9
+
10
+ %title
11
+ = t "app_name"
12
+ = yield :page_title
13
+
14
+ = javascript_include_tag 'modernizr.min.js'
15
+ = javascript_include_tag 'respond.js'
16
+ = stylesheet_link_tag 'speedo'
17
+ = javascript_include_tag 'speedo'
18
+ = yield :head
@@ -0,0 +1,19 @@
1
+ %nav.main_nav.clearfix
2
+ %form.right.search
3
+ %input{:type => "search", :name => "search[name]", :placeholder => "Search", :results => 5, :autosave => "site_search"}
4
+
5
+ = link_to "Home", root_url, {:class => "active home"}
6
+ = link_to "Section1", root_url
7
+ = link_to "Section2", root_url
8
+ = link_to "Section3", root_url
9
+ = link_to "Section4", root_url
10
+
11
+
12
+ - if flash[:success]
13
+ .flash.success= flash[:success]
14
+ - if flash[:notice]
15
+ .flash.notice= flash[:notice]
16
+ - if flash[:alert]
17
+ .flash.alert= flash[:alert]
18
+ - if flash[:error]
19
+ .flash.error= flash[:error]
@@ -0,0 +1,5 @@
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
+ app_name: "See config/locales to name this app"
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ Speedo::Engine.routes.draw do
2
+ get '/how', :to => 'home#how'
3
+ root :to => 'home#index'
4
+ end
@@ -0,0 +1,5 @@
1
+ module Speedo
2
+ class Engine < Rails::Engine
3
+ isolate_namespace Speedo
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ require 'bourbon'
2
+
3
+ Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
4
+ load_paths << "#{Gem.loaded_specs['bourbon'].full_gem_path}/app/assets/stylesheets"
5
+ end
@@ -0,0 +1,3 @@
1
+ module Speedo
2
+ VERSION = "0.0.1"
3
+ end
data/lib/speedo.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "speedo/engine"
2
+ require 'speedo/sass'
3
+ require 'haml'
4
+ require 'coffee-script'
5
+
6
+ module Speedo
7
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :speedo do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,7 @@
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
+ Dummy::Application.load_tasks
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,19 @@
1
+ !!!
2
+ != cc_html(:class => "no-js", :lang => 'en') do
3
+ = render 'shared/html_head'
4
+ %body
5
+ %noscript#noscript_warning This site works best with JavaScript enabled. Some features may not be available
6
+ #wrapper
7
+ = render 'shared/header'
8
+ = render 'shared/nav_flash'
9
+ .colmask{:class => @col_layout || @col_layout = "leftcol"}
10
+ -# options: leftcol, rightcol, threecol, onecol
11
+ .colmid
12
+ .colleft
13
+ .col1
14
+ = yield
15
+ .col2
16
+ = yield :left_col
17
+ .col3
18
+ = yield :right_col
19
+ = render 'shared/footer'
@@ -0,0 +1,45 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require
6
+ require "speedo"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Custom directories with classes and modules you want to be autoloadable.
15
+ # config.autoload_paths += %W(#{config.root}/extras)
16
+
17
+ # Only load the plugins named here, in the order given (default is alphabetical).
18
+ # :all can be used as a placeholder for all plugins not explicitly named.
19
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
+
21
+ # Activate observers that should always be running.
22
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
+
24
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
+ # config.time_zone = 'Central Time (US & Canada)'
27
+
28
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
+ # config.i18n.default_locale = :de
31
+
32
+ # Configure the default encoding used in templates for Ruby 1.9.
33
+ config.encoding = "utf-8"
34
+
35
+ # Configure sensitive parameters which will be filtered from the log file.
36
+ config.filter_parameters += [:password]
37
+
38
+ # Enable the asset pipeline
39
+ config.assets.enabled = true
40
+
41
+ # Version of your assets, change this if you want to expire all your assets
42
+ config.assets.version = '1.0'
43
+ end
44
+ end
45
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,30 @@
1
+ Dummy::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
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
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
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+
28
+ # Expands the lines which load the assets
29
+ config.assets.debug = true
30
+ end
@@ -0,0 +1,60 @@
1
+ Dummy::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
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to Rails.root.join("public/assets")
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Use a different logger for distributed setups
37
+ # config.logger = SyslogLogger.new
38
+
39
+ # Use a different cache store in production
40
+ # config.cache_store = :mem_cache_store
41
+
42
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
+ # config.action_controller.asset_host = "http://assets.example.com"
44
+
45
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
+ # config.assets.precompile += %w( search.js )
47
+
48
+ # Disable delivery errors, bad email addresses will be ignored
49
+ # config.action_mailer.raise_delivery_errors = false
50
+
51
+ # Enable threaded mode
52
+ # config.threadsafe!
53
+
54
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
+ # the I18n.default_locale when a translation can not be found)
56
+ config.i18n.fallbacks = true
57
+
58
+ # Send deprecation notices to registered listeners
59
+ config.active_support.deprecation = :notify
60
+ end
@@ -0,0 +1,39 @@
1
+ Dummy::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
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
33
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
34
+ # like if you have constraints or database-specific column types
35
+ # config.active_record.schema_format = :sql
36
+
37
+ # Print deprecation notices to the stderr
38
+ config.active_support.deprecation = :stderr
39
+ end
@@ -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!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
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
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '2fc9b894d1d2c00ab3d700bbc2d48dcbe82484fed7d5d2f80895c57bb44dbb17440d416c8f2237e54e7c03142f803cda31fb7bf67eb7df9e5211baa6dbd26caf'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -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]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
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
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Speedo::Engine => "/speedo"
4
+ end
@@ -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 Dummy::Application
Binary file
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 0) do
15
+
16
+ end