speedo 0.0.4 → 0.0.5

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 (91) hide show
  1. data/app/views/layouts/speedo/application.html.haml +26 -21
  2. data/app/views/speedo/home/examples.html.haml +15 -16
  3. data/config/routes.rb +2 -2
  4. data/lib/generators/speedo/install_generator.rb +2 -2
  5. data/lib/speedo/sass.rb +1 -2
  6. data/lib/speedo/version.rb +1 -1
  7. data/vendor/assets/javascripts/chosen.jquery.js +952 -0
  8. data/vendor/assets/javascripts/jquery.autoSuggest.js +368 -0
  9. data/vendor/assets/javascripts/jquery.autogrow.js +50 -0
  10. data/vendor/assets/javascripts/jquery.dataTables.js +11612 -0
  11. data/vendor/assets/javascripts/jquery.fancybox-1.3.4.js +1156 -0
  12. data/vendor/assets/javascripts/jquery.livequery.js +250 -0
  13. data/vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js +14 -0
  14. data/vendor/assets/javascripts/jquery.placeholder.min.js +2 -0
  15. data/vendor/assets/javascripts/jquery.uniform.js +672 -0
  16. data/vendor/assets/javascripts/modernizr.min.js +13 -0
  17. data/vendor/assets/javascripts/respond.js +326 -0
  18. data/vendor/assets/stylesheets/autoSuggest.css +217 -0
  19. data/vendor/assets/stylesheets/chosen-sprite.png +0 -0
  20. data/vendor/assets/stylesheets/chosen.css +392 -0
  21. data/vendor/assets/stylesheets/dataTables/Sorting icons.psd +0 -0
  22. data/vendor/assets/stylesheets/dataTables/back_disabled.png +0 -0
  23. data/vendor/assets/stylesheets/dataTables/back_enabled.png +0 -0
  24. data/vendor/assets/stylesheets/dataTables/back_enabled_hover.png +0 -0
  25. data/vendor/assets/stylesheets/dataTables/favicon.ico +0 -0
  26. data/vendor/assets/stylesheets/dataTables/forward_disabled.png +0 -0
  27. data/vendor/assets/stylesheets/dataTables/forward_enabled.png +0 -0
  28. data/vendor/assets/stylesheets/dataTables/forward_enabled_hover.png +0 -0
  29. data/vendor/assets/stylesheets/dataTables/sort_asc.png +0 -0
  30. data/vendor/assets/stylesheets/dataTables/sort_asc_disabled.png +0 -0
  31. data/vendor/assets/stylesheets/dataTables/sort_both.png +0 -0
  32. data/vendor/assets/stylesheets/dataTables/sort_desc.png +0 -0
  33. data/vendor/assets/stylesheets/dataTables/sort_desc_disabled.png +0 -0
  34. data/vendor/assets/stylesheets/dataTables/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  35. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  36. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_65_ffffff_1x400.png +0 -0
  37. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_dadada_1x400.png +0 -0
  38. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  39. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_ffffff_1x400.png +0 -0
  40. data/vendor/assets/stylesheets/dataTables/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  41. data/vendor/assets/stylesheets/dataTables/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  42. data/vendor/assets/stylesheets/dataTables/ui-icons_222222_256x240.png +0 -0
  43. data/vendor/assets/stylesheets/dataTables/ui-icons_2e83ff_256x240.png +0 -0
  44. data/vendor/assets/stylesheets/dataTables/ui-icons_454545_256x240.png +0 -0
  45. data/vendor/assets/stylesheets/dataTables/ui-icons_888888_256x240.png +0 -0
  46. data/vendor/assets/stylesheets/dataTables/ui-icons_cd0a0a_256x240.png +0 -0
  47. data/vendor/assets/stylesheets/fancybox/blank.gif +0 -0
  48. data/vendor/assets/stylesheets/fancybox/fancy_close.png +0 -0
  49. data/vendor/assets/stylesheets/fancybox/fancy_loading.png +0 -0
  50. data/vendor/assets/stylesheets/fancybox/fancy_nav_left.png +0 -0
  51. data/vendor/assets/stylesheets/fancybox/fancy_nav_right.png +0 -0
  52. data/vendor/assets/stylesheets/fancybox/fancy_shadow_e.png +0 -0
  53. data/vendor/assets/stylesheets/fancybox/fancy_shadow_n.png +0 -0
  54. data/vendor/assets/stylesheets/fancybox/fancy_shadow_ne.png +0 -0
  55. data/vendor/assets/stylesheets/fancybox/fancy_shadow_nw.png +0 -0
  56. data/vendor/assets/stylesheets/fancybox/fancy_shadow_s.png +0 -0
  57. data/vendor/assets/stylesheets/fancybox/fancy_shadow_se.png +0 -0
  58. data/vendor/assets/stylesheets/fancybox/fancy_shadow_sw.png +0 -0
  59. data/vendor/assets/stylesheets/fancybox/fancy_shadow_w.png +0 -0
  60. data/vendor/assets/stylesheets/fancybox/fancy_title_left.png +0 -0
  61. data/vendor/assets/stylesheets/fancybox/fancy_title_main.png +0 -0
  62. data/vendor/assets/stylesheets/fancybox/fancy_title_over.png +0 -0
  63. data/vendor/assets/stylesheets/fancybox/fancy_title_right.png +0 -0
  64. data/vendor/assets/stylesheets/fancybox/fancybox-x.png +0 -0
  65. data/vendor/assets/stylesheets/fancybox/fancybox-y.png +0 -0
  66. data/vendor/assets/stylesheets/fancybox/fancybox.png +0 -0
  67. data/vendor/assets/stylesheets/gh-buttons.css +393 -0
  68. data/vendor/assets/stylesheets/gh-icons.png +0 -0
  69. data/vendor/assets/stylesheets/jquery-ui-1.8.18.custom.css +565 -0
  70. data/vendor/assets/stylesheets/jquery.dataTables.css +219 -0
  71. data/vendor/assets/stylesheets/jquery.fancybox-1.3.4.css +359 -0
  72. data/vendor/assets/stylesheets/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  73. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  74. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  75. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_dadada_1x400.png +0 -0
  76. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  77. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_ffffff_1x400.png +0 -0
  78. data/vendor/assets/stylesheets/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  79. data/vendor/assets/stylesheets/jqueryui/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  80. data/vendor/assets/stylesheets/jqueryui/ui-icons_222222_256x240.png +0 -0
  81. data/vendor/assets/stylesheets/jqueryui/ui-icons_2e83ff_256x240.png +0 -0
  82. data/vendor/assets/stylesheets/jqueryui/ui-icons_454545_256x240.png +0 -0
  83. data/vendor/assets/stylesheets/jqueryui/ui-icons_888888_256x240.png +0 -0
  84. data/vendor/assets/stylesheets/jqueryui/ui-icons_cd0a0a_256x240.png +0 -0
  85. data/vendor/assets/stylesheets/normalize.css +504 -0
  86. data/vendor/assets/stylesheets/uniform/bg-input-focus.png +0 -0
  87. data/vendor/assets/stylesheets/uniform/bg-input.png +0 -0
  88. data/vendor/assets/stylesheets/uniform/sprite-aristo.png +0 -0
  89. data/vendor/assets/stylesheets/uniform/sprite.png +0 -0
  90. data/vendor/assets/stylesheets/uniform.default.css +610 -0
  91. metadata +100 -16
@@ -1,16 +1,16 @@
1
1
  !!!
2
- != cc_html(:class => "no-js", :lang => 'en') do
2
+ != cc_html(class: "no-js", lang: 'en') do
3
3
  %head
4
- %meta{:charset => "utf-8"}
5
- %meta{:content => "", :name => "author"}
6
- %meta{:content => "", :name => "description"}
7
- %meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
8
- %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
9
- -#%link{:href => '#insert-web-fonts-here', :rel => 'stylesheet', :type => 'text/css'}
4
+ %meta{charset: 'utf-8'}
5
+ %meta{content: '', name: 'author'}
6
+ %meta{content: '', name: 'description'}
7
+ %meta{content: 'IE=edge,chrome=1', 'http-equiv' => 'X-UA-Compatible'}
8
+ %meta{content: 'width=device-width, initial-scale=1.0', name: 'viewport'}
9
+ -#%link{href: '#insert-web-fonts-here', rel: 'stylesheet', type: 'text/css'}
10
10
  = csrf_meta_tags
11
11
 
12
12
  %title
13
- = t "app_name"
13
+ = t 'app_name'
14
14
  = yield :page_title
15
15
 
16
16
  = javascript_include_tag 'modernizr.min.js'
@@ -23,22 +23,27 @@
23
23
  %noscript#noscript_warning This site works best with JavaScript enabled. Some features may not be available
24
24
  #wrapper
25
25
  %header.branding.clearfix
26
- = link_to image_tag('speedo/logo.png'), root_url, :class => 'logo'
26
+ = link_to image_tag('speedo/logo.png'), root_url, class: 'logo'
27
27
 
28
28
  .user
29
- = link_to "current_user.name", "account_url", class: "user_name"
30
- |
31
- = link_to 'Logout', "destroy_user_session_url", class: "user_logout"
32
-
29
+ - if @user_signed_in
30
+ = link_to 'current_user.name', 'account_url', class: 'user_name'
31
+ |
32
+ = link_to 'Logout', 'destroy_user_session_url', class: 'user_logout'
33
+ - else
34
+ = link_to 'Sign in', 'new_user_session_path', rel: 'sign_in'
35
+ or
36
+ = link_to 'Sign up', 'new_user_registration_path', rel: 'sign_up'
37
+
33
38
  %nav.main_nav.clearfix
34
39
  %form.right.search
35
- %input{:type => "search", :name => "search[name]", :placeholder => "Search", :results => 5, :autosave => "site_search"}
40
+ %input{type: 'search', name: 'search[name]', placeholder: 'Search', results: 5, autosave: 'site_search'}
36
41
 
37
- = link_to "Home", root_url, {:class => "active home"}
38
- = link_to "Section1", root_url
39
- = link_to "Section2", root_url
40
- = link_to "Section3", root_url
41
- = link_to "Section4", root_url
42
+ = link_to 'Home', root_url, {class: 'active home'}
43
+ = link_to 'Section1', root_url
44
+ = link_to 'Section2', root_url
45
+ = link_to 'Section3', root_url
46
+ = link_to 'Section4', root_url
42
47
 
43
48
 
44
49
  - if flash[:success]
@@ -49,7 +54,7 @@
49
54
  .flash.alert= flash[:alert]
50
55
  - if flash[:error]
51
56
  .flash.error= flash[:error]
52
- .colmask{:class => @col_layout || @col_layout = "leftcol"}
57
+ .colmask{class: @col_layout || @col_layout = 'leftcol'}
53
58
  -# options: leftcol, rightcol, threecol, onecol
54
59
  .colmid
55
60
  .colleft
@@ -62,5 +67,5 @@
62
67
  %footer
63
68
  Copyright ©
64
69
  = Time.now.year
65
- = link_to "CrankApps", "http://www.crankapps.com", :target => "_blank"
70
+ = link_to 'CrankApps', 'http://www.crankapps.com', target: '_blank'
66
71
 
@@ -1,10 +1,10 @@
1
- - @col_layout = "threecol"
1
+ - @col_layout = 'threecol'
2
2
 
3
3
  %h1 Buttons - h1
4
4
  %button.button.icon.add Click
5
5
  .button-group
6
- %input.button.danger{:type => :submit, :value => "Cancel"}
7
- %a.button.icon.comment.popup{:href => "#popup", :title => "Popup title"} Popup
6
+ %input.button.danger{type: :submit, value: 'Cancel'}
7
+ %a.button.icon.comment.popup{href: '#popup', title: 'Popup title'} Popup
8
8
  .button Nothing
9
9
 
10
10
 
@@ -29,18 +29,18 @@
29
29
 
30
30
 
31
31
  %h3 Inputs with bonuses - h3
32
- %select.chzn{:style => "width:200px"}
32
+ %select.chzn{style: 'width:200px'}
33
33
  %option Canada
34
34
  %option UK
35
35
  %option USA
36
36
 
37
37
  %br
38
- %input{:type => :date, :placeholder => "yy-mm-dd"}
38
+ %input{type: :date, placeholder: 'yy-mm-dd'}
39
39
 
40
40
 
41
41
 
42
42
  %h4 AutoGrowing, AutoSuggesting - h4
43
- %textarea.autoGrow{:cols => "50", :placeholder => "AutoGrowing"}
43
+ %textarea.autoGrow{cols: '50', placeholder: 'AutoGrowing'}
44
44
 
45
45
  %br
46
46
  %input.autoSuggest
@@ -49,24 +49,24 @@
49
49
 
50
50
  %h5 Uniformed Inputs - h5
51
51
  %label
52
- %input{:type => :checkbox, :checked => "checked"}
52
+ %input{type: :checkbox, checked: 'checked'}
53
53
  One
54
54
  %label
55
- %input{:type => :checkbox}
55
+ %input{type: :checkbox}
56
56
  Two
57
57
  %label
58
- %input{:type => :checkbox}
58
+ %input{type: :checkbox}
59
59
  Three
60
60
  %br
61
61
 
62
62
  %label
63
- %input{:type => :radio, :name => "radio", :checked => "checked"}
63
+ %input{type: :radio, name: 'radio', checked: 'checked'}
64
64
  One
65
65
  %label
66
- %input{:type => :radio, :name => "radio"}
66
+ %input{type: :radio, name: 'radio'}
67
67
  Two
68
68
  %label
69
- %input{:type => :radio, :name => "radio"}
69
+ %input{type: :radio, name: 'radio'}
70
70
  Three
71
71
 
72
72
  %br
@@ -74,7 +74,7 @@
74
74
  %option Select Something
75
75
 
76
76
  %br
77
- %input{:type => :file}
77
+ %input{type: :file}
78
78
 
79
79
 
80
80
 
@@ -101,7 +101,6 @@
101
101
  .popups
102
102
  #popup.popup_content
103
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
104
+ %p See speedo.css.scss for classes and helper classes
105
+ %p See swim.js.coffee for standard JS calls
107
106
  %button.button.close.right Close
data/config/routes.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  Speedo::Engine.routes.draw do
2
- get '/examples', :to => 'home#examples'
3
- root :to => 'home#examples'
2
+ get '/examples', to: 'home#examples'
3
+ root to: 'home#examples'
4
4
  end
@@ -3,11 +3,11 @@ module Speedo
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path("../../../../", __FILE__)
5
5
 
6
- desc "Installs Speedo files to get you going fast."
6
+ desc 'Installs Speedo files to get you going fast.'
7
7
 
8
8
  # app/views/layouts/application.html.haml
9
9
  def layout
10
- if yes? "Do you want to replace the application layout? [yN]"
10
+ if yes? 'Do you want to replace the application layout? [yN]'
11
11
  template 'app/views/layouts/speedo/application.html.haml',
12
12
  'app/views/layouts/application.html.haml'
13
13
  remove_file 'app/views/layouts/application.html.erb'
data/lib/speedo/sass.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'bourbon'
2
2
 
3
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
- load_paths << "vendor/assets/stylesheets"
4
+ load_paths << "#{Gem.loaded_specs['bourbon'].full_gem_path}/app/assets/stylesheets/"
6
5
  end
@@ -1,3 +1,3 @@
1
1
  module Speedo
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end