foundation-rails 5.0.1.0

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 (136) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +29 -0
  6. data/Rakefile +1 -0
  7. data/app/controllers/foundation/rails/styleguide_controller.rb +10 -0
  8. data/app/views/foundation/rails/styleguide/show.html.erb +134 -0
  9. data/config/routes.rb +3 -0
  10. data/foundation-rails.gemspec +25 -0
  11. data/lib/foundation-rails.rb +1 -0
  12. data/lib/foundation/rails.rb +3 -0
  13. data/lib/foundation/rails/engine.rb +7 -0
  14. data/lib/foundation/rails/generators/install_generator.rb +56 -0
  15. data/lib/foundation/rails/templates/application.html.erb +19 -0
  16. data/lib/foundation/rails/templates/application.html.haml +18 -0
  17. data/lib/foundation/rails/templates/application.html.slim +17 -0
  18. data/lib/foundation/rails/version.rb +5 -0
  19. data/test/dummy/.gitignore +16 -0
  20. data/test/dummy/Gemfile +47 -0
  21. data/test/dummy/README.rdoc +28 -0
  22. data/test/dummy/Rakefile +6 -0
  23. data/test/dummy/app/assets/images/.keep +0 -0
  24. data/test/dummy/app/assets/javascripts/application.js +8 -0
  25. data/test/dummy/app/assets/stylesheets/application.css +4 -0
  26. data/test/dummy/app/assets/stylesheets/foundation_and_overrides.scss +4 -0
  27. data/test/dummy/app/controllers/application_controller.rb +5 -0
  28. data/test/dummy/app/controllers/concerns/.keep +0 -0
  29. data/test/dummy/app/controllers/styleguide_controller.rb +4 -0
  30. data/test/dummy/app/helpers/application_helper.rb +2 -0
  31. data/test/dummy/app/helpers/styleguide_helper.rb +2 -0
  32. data/test/dummy/app/mailers/.keep +0 -0
  33. data/test/dummy/app/models/.keep +0 -0
  34. data/test/dummy/app/models/concerns/.keep +0 -0
  35. data/test/dummy/app/views/layouts/application.html.erb +19 -0
  36. data/test/dummy/app/views/styleguide/show.html.erb +109 -0
  37. data/test/dummy/bin/bundle +3 -0
  38. data/test/dummy/bin/rails +4 -0
  39. data/test/dummy/bin/rake +4 -0
  40. data/test/dummy/config.ru +4 -0
  41. data/test/dummy/config/application.rb +23 -0
  42. data/test/dummy/config/boot.rb +4 -0
  43. data/test/dummy/config/database.yml +25 -0
  44. data/test/dummy/config/environment.rb +5 -0
  45. data/test/dummy/config/environments/development.rb +29 -0
  46. data/test/dummy/config/environments/production.rb +80 -0
  47. data/test/dummy/config/environments/test.rb +36 -0
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  49. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/test/dummy/config/initializers/inflections.rb +16 -0
  51. data/test/dummy/config/initializers/mime_types.rb +5 -0
  52. data/test/dummy/config/initializers/secret_token.rb +12 -0
  53. data/test/dummy/config/initializers/session_store.rb +3 -0
  54. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  55. data/test/dummy/config/locales/en.yml +23 -0
  56. data/test/dummy/config/routes.rb +3 -0
  57. data/test/dummy/db/seeds.rb +7 -0
  58. data/test/dummy/lib/assets/.keep +0 -0
  59. data/test/dummy/lib/tasks/.keep +0 -0
  60. data/test/dummy/log/.keep +0 -0
  61. data/test/dummy/public/404.html +58 -0
  62. data/test/dummy/public/422.html +58 -0
  63. data/test/dummy/public/500.html +57 -0
  64. data/test/dummy/public/favicon.ico +0 -0
  65. data/test/dummy/public/robots.txt +5 -0
  66. data/test/dummy/test/controllers/.keep +0 -0
  67. data/test/dummy/test/controllers/styleguide_controller_test.rb +9 -0
  68. data/test/dummy/test/fixtures/.keep +0 -0
  69. data/test/dummy/test/helpers/.keep +0 -0
  70. data/test/dummy/test/helpers/styleguide_helper_test.rb +4 -0
  71. data/test/dummy/test/integration/.keep +0 -0
  72. data/test/dummy/test/mailers/.keep +0 -0
  73. data/test/dummy/test/models/.keep +0 -0
  74. data/test/dummy/test/test_helper.rb +15 -0
  75. data/test/dummy/vendor/assets/javascripts/.keep +0 -0
  76. data/test/dummy/vendor/assets/stylesheets/.keep +0 -0
  77. data/vendor/_settings.scss +992 -0
  78. data/vendor/assets/javascripts/foundation.js +15 -0
  79. data/vendor/assets/javascripts/foundation/foundation.abide.js +201 -0
  80. data/vendor/assets/javascripts/foundation/foundation.accordion.js +41 -0
  81. data/vendor/assets/javascripts/foundation/foundation.alert.js +34 -0
  82. data/vendor/assets/javascripts/foundation/foundation.clearing.js +450 -0
  83. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +184 -0
  84. data/vendor/assets/javascripts/foundation/foundation.interchange.js +304 -0
  85. data/vendor/assets/javascripts/foundation/foundation.joyride.js +839 -0
  86. data/vendor/assets/javascripts/foundation/foundation.js +416 -0
  87. data/vendor/assets/javascripts/foundation/foundation.magellan.js +118 -0
  88. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +37 -0
  89. data/vendor/assets/javascripts/foundation/foundation.orbit.js +434 -0
  90. data/vendor/assets/javascripts/foundation/foundation.reveal.js +347 -0
  91. data/vendor/assets/javascripts/foundation/foundation.tab.js +37 -0
  92. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +202 -0
  93. data/vendor/assets/javascripts/foundation/foundation.topbar.js +380 -0
  94. data/vendor/assets/javascripts/vendor/modernizr.js +4 -0
  95. data/vendor/assets/stylesheets/foundation.scss +38 -0
  96. data/vendor/assets/stylesheets/foundation/_functions.scss +75 -0
  97. data/vendor/assets/stylesheets/foundation/_settings.scss +992 -0
  98. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +49 -0
  99. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +113 -0
  100. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +83 -0
  101. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +123 -0
  102. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +97 -0
  103. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +234 -0
  104. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +233 -0
  105. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +125 -0
  106. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +159 -0
  107. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +47 -0
  108. data/vendor/assets/stylesheets/foundation/components/_forms.scss +472 -0
  109. data/vendor/assets/stylesheets/foundation/components/_functions.scss +70 -0
  110. data/vendor/assets/stylesheets/foundation/components/_global.scss +387 -0
  111. data/vendor/assets/stylesheets/foundation/components/_grid.scss +234 -0
  112. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +52 -0
  113. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
  114. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +57 -0
  115. data/vendor/assets/stylesheets/foundation/components/_labels.scss +100 -0
  116. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +30 -0
  117. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +360 -0
  118. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +353 -0
  119. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +145 -0
  120. data/vendor/assets/stylesheets/foundation/components/_panels.scss +87 -0
  121. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +146 -0
  122. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +75 -0
  123. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +165 -0
  124. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +83 -0
  125. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +187 -0
  126. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +118 -0
  127. data/vendor/assets/stylesheets/foundation/components/_switch.scss +314 -0
  128. data/vendor/assets/stylesheets/foundation/components/_tables.scss +93 -0
  129. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +95 -0
  130. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +71 -0
  131. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +121 -0
  132. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +590 -0
  133. data/vendor/assets/stylesheets/foundation/components/_type.scss +447 -0
  134. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +661 -0
  135. data/vendor/assets/stylesheets/normalize.scss +410 -0
  136. metadata +292 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f61cbaaf5faef5627292f099a91c59379f0cbb33
4
+ data.tar.gz: edea0fdaf715c32dc3fd2a83c0bcbf6d746838ed
5
+ SHA512:
6
+ metadata.gz: abe4aa96dae2ee82ea0c6692e841f640563656ae44e6f4ac0d325c07709a7beadcecdbc7fe6f31149600c6fda501d81453f535f8b33ae00a2120e5edcd6b3465
7
+ data.tar.gz: 7174c1279ce240b3097aca87b16a01f5e9b025ab06c300fcfdd37fa7d6af64b192357c025114439647ab00270e9327795a15dfc723458177be9b795656df66f6
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in foundation-rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Mark Hayes
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Foundation::Rails
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'foundation-rails'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install foundation-rails
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,10 @@
1
+ module Foundation
2
+ module Rails
3
+ class StyleguideController < ApplicationController
4
+ layout false
5
+ def show
6
+
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,134 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+
7
+ <title>Foundation | Styleguide</title>
8
+
9
+ <%= stylesheet_link_tag "foundation" %>
10
+ <% if false %>
11
+ <%= javascript_include_tag "vendor/custom.modernizr" %>
12
+ <% end %>
13
+ <%= csrf_meta_tags %>
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <nav class="top-bar" data-topbar>
19
+ <ul class="title-area">
20
+ <li class="name">
21
+ <h1><a href="http://foundation.zurb.com">Foundation</a></h1>
22
+ </li>
23
+ </ul>
24
+
25
+ <section class="top-bar-section">
26
+ <!-- Right Nav Section -->
27
+ <ul class="right">
28
+ <li class="active"><a href="https://github.com/zurb/foundation-rails">GitHub</a></li>
29
+ <li class="has-dropdown">
30
+ <a href="http://foundation.zurb.com/docs/">Foundation Docs</a>
31
+ <ul class="dropdown">
32
+ <li><a href="http://foundation.zurb.com/support/support.html">Support</a></li>
33
+ </ul>
34
+ </li>
35
+ <li class="has-form">
36
+ <a href="" class="button" data-reveal-id="signupModal">Sign Up</a>
37
+ </li>
38
+ </ul>
39
+ </section>
40
+ </nav>
41
+
42
+
43
+
44
+ <ul data-orbit="">
45
+ <li><img src="http://placehold.it/1800x350/0079a1/ffffff&text=foundation-rails"></li>
46
+ <li><img src="http://placehold.it/1800x350/0079a1/ffffff&text=foundation-rails"></li>
47
+ <li><img src="http://placehold.it/1800x350/0079a1/ffffff&text=foundation-rails"></li>
48
+ </ul>
49
+
50
+
51
+ <div class="row">
52
+ <div class="large-4 columns">
53
+ <ul class="pricing-table">
54
+ <li class="title">Freelancer</li>
55
+ <li class="price">$99.99</li>
56
+ <li class="description">An awesome description</li>
57
+ <li class="bullet-item">1 Database</li>
58
+ <li class="bullet-item">5GB Storage</li>
59
+ <li class="bullet-item">20 Users</li>
60
+ <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
61
+ </ul>
62
+ </div>
63
+ <div class="large-4 columns">
64
+ <ul class="pricing-table">
65
+ <li class="title">Startup</li>
66
+ <li class="price">$199.99</li>
67
+ <li class="description">An awesome description</li>
68
+ <li class="bullet-item">1 Database</li>
69
+ <li class="bullet-item">5GB Storage</li>
70
+ <li class="bullet-item">20 Users</li>
71
+ <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
72
+ </ul>
73
+ </div>
74
+ <div class="large-4 columns">
75
+ <ul class="pricing-table">
76
+ <li class="title">Enterprise</li>
77
+ <li class="price">$999.99</li>
78
+ <li class="description">An awesome description</li>
79
+ <li class="bullet-item">1 Database</li>
80
+ <li class="bullet-item">5GB Storage</li>
81
+ <li class="bullet-item">20 Users</li>
82
+ <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
83
+ </ul>
84
+ </div>
85
+ </div>
86
+
87
+ <hr>
88
+
89
+ <div class="row">
90
+ <div class="large-12 columns">
91
+ <h3 class="subheader">Find out more!</h3>
92
+ </div>
93
+ </div>
94
+
95
+ <div class="row">
96
+ <div class="large-12 columns">
97
+ <dl class="tabs" data-tab>
98
+ <dd class="active"><a href="#panel2-1">Overview</a></dd>
99
+ <dd><a href="#panel2-2">Features</a></dd>
100
+ <dd><a href="#panel2-3">Testimonials</a></dd>
101
+ <dd><a href="#panel2-4">History</a></dd>
102
+ </dl>
103
+ <div class="tabs-content">
104
+ <div class="content active" id="panel2-1">
105
+ <p>This is the first panel of the basic tab example. This is the first panel of the basic tab example.</p>
106
+ </div>
107
+ <div class="content" id="panel2-2">
108
+ <p>This is the second panel of the basic tab example. This is the second panel of the basic tab example.</p>
109
+ </div>
110
+ <div class="content" id="panel2-3">
111
+ <p>This is the third panel of the basic tab example. This is the third panel of the basic tab example.</p>
112
+ </div>
113
+ <div class="content" id="panel2-4">
114
+ <p>This is the fourth panel of the basic tab example. This is the fourth panel of the basic tab example.</p>
115
+ </div>
116
+ </div>
117
+ </div>
118
+ </div>
119
+
120
+
121
+ <div id="signupModal" data-reveal-modal class="reveal-modal">
122
+ <h2>Awesome. I have it.</h2>
123
+ <p class="lead">Your couch. It is mine.</p>
124
+ <p>Im a cool paragraph that lives inside of an even cooler modal. Wins</p>
125
+ <a class="close-reveal-modal">&#215;</a>
126
+ </div>
127
+
128
+ <%= javascript_include_tag "jquery" %>
129
+ <%= javascript_include_tag "foundation" %>
130
+ <script>
131
+ $(document).foundation();
132
+ </script>
133
+ </body>
134
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Foundation::Rails::Engine.routes.draw do
2
+ root :to => "styleguide#show"
3
+ end
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'foundation/rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "foundation-rails"
8
+ spec.version = Foundation::Rails::VERSION
9
+ spec.authors = ["ZURB"]
10
+ spec.email = ["foundation@zurb.com"]
11
+ spec.description = %q{ZURB Foundation on Sass/Compass}
12
+ spec.summary = %q{ZURB Foundation on Sass/Compass}
13
+ spec.homepage = "http://foundation.zurb.com"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_dependency "sass", [">= 3.2.0"]
23
+ spec.add_dependency "railties", [">= 3.1.0"]
24
+ spec.add_development_dependency "rake"
25
+ end
@@ -0,0 +1 @@
1
+ require 'foundation/rails'
@@ -0,0 +1,3 @@
1
+ require 'foundation/rails/engine'
2
+ require 'foundation/rails/version'
3
+ require 'foundation/rails/generators/install_generator'
@@ -0,0 +1,7 @@
1
+ module Foundation
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ isolate_namespace Foundation::Rails
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,56 @@
1
+ require 'rails/generators'
2
+
3
+ module Foundation
4
+ # module Rails
5
+ module Generators
6
+ class InstallGenerator < ::Rails::Generators::Base
7
+ source_root File.join(File.dirname(__FILE__), '..', 'templates')
8
+ argument :layout_name, :type => :string, :default => 'application', :banner => 'layout_name'
9
+
10
+ class_option :haml, :desc => 'Generate HAML layout instead of erb', :type => :boolean
11
+ class_option :slim, :desc => 'Generate Slim layout instead of erb', :type => :boolean
12
+
13
+ def add_assets
14
+ # rails_ujs breaks, need to incorporate rails-behavior plugin for this to work seamlessly
15
+ # gsub_file "app/assets/javascripts/application#{detect_js_format[0]}", /\/\/= require jquery\n/, ""
16
+ insert_into_file "app/assets/javascripts/application#{detect_js_format[0]}", "#{detect_js_format[1]} require foundation\n", :after => "jquery_ujs\n"
17
+ append_to_file "app/assets/javascripts/application#{detect_js_format[0]}", "\n$(function(){ $(document).foundation(); });\n"
18
+ settings_file = File.join(File.dirname(__FILE__),"..", "..", "..", "..","vendor", "_settings.scss")
19
+ create_file "app/assets/stylesheets/foundation_and_overrides.scss", File.read(settings_file)
20
+ append_to_file "app/assets/stylesheets/foundation_and_overrides.scss", "\n@import 'foundation';\n"
21
+ insert_into_file "app/assets/stylesheets/application#{detect_css_format[0]}", "\n#{detect_css_format[1]} require foundation_and_overrides\n", :after => "require_self"
22
+ end
23
+
24
+ def detect_js_format
25
+ return ['.coffee', '#='] if File.exist?('app/assets/javascripts/application.coffee')
26
+ return ['.js.coffee', '#='] if File.exist?('app/assets/javascripts/application.js.coffee')
27
+ return ['.js', '//='] if File.exist?('app/assets/javascripts/application.js')
28
+ end
29
+
30
+ def detect_css_format
31
+ return ['.css', ' *='] if File.exist?('app/assets/stylesheets/application.css')
32
+ return ['.css.sass', ' //='] if File.exist?('app/assets/stylesheets/application.css.sass')
33
+ return ['.sass', ' //='] if File.exist?('app/assets/stylesheets/application.sass')
34
+ return ['.css.scss', ' //='] if File.exist?('app/assets/stylesheets/application.css.scss')
35
+ return ['.scss', ' //='] if File.exist?('app/assets/stylesheets/application.scss')
36
+ end
37
+
38
+ def create_layout
39
+ if options.haml?||(defined?(Haml) && options.haml?)
40
+ template 'application.html.haml', "app/views/layouts/#{file_name}.html.haml"
41
+ elsif options.slim?||(defined?(Slim) && options.slim?)
42
+ template 'application.html.slim', "app/views/layouts/#{file_name}.html.slim"
43
+ else
44
+ template 'application.html.erb', "app/views/layouts/#{file_name}.html.erb"
45
+ end
46
+ end
47
+
48
+ private
49
+
50
+ def file_name
51
+ layout_name.underscore.downcase
52
+ end
53
+ end
54
+ end
55
+ # end
56
+ end
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+
7
+ <title><%%= content_for?(:title) ? yield(:title) : "foundation-rails" %></title>
8
+
9
+ <%%= stylesheet_link_tag "application" %>
10
+ <%%= javascript_include_tag "vendor/modernizr" %>
11
+ <%%= csrf_meta_tags %>
12
+ </head>
13
+
14
+ <body>
15
+
16
+ <%%= yield %>
17
+ <%%= javascript_include_tag "application" %>
18
+ </body>
19
+ </html>
@@ -0,0 +1,18 @@
1
+ !!! 5
2
+ %html{ :lang => "en"}
3
+ %head
4
+ %meta{ :charset => "utf-8" }
5
+
6
+ %meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }
7
+
8
+ %title= content_for?(:title) ? yield(:title) : "Untitled"
9
+
10
+ = stylesheet_link_tag "application"
11
+ = javascript_include_tag "vendor/custom.modernizr"
12
+ = csrf_meta_tag
13
+
14
+ %body
15
+
16
+ = yield
17
+
18
+ = javascript_include_tag "application"
@@ -0,0 +1,17 @@
1
+ doctype html
2
+ html lang="en"
3
+ head
4
+ meta charset="utf-8"
5
+ meta name="viewport" content="width=device-width, initial-scale=1.0"
6
+
7
+ title == content_for?(:title) ? yield(:title) : "Untitled"
8
+
9
+ = stylesheet_link_tag "application"
10
+ = javascript_include_tag "vendor/modernizr"
11
+ = csrf_meta_tag
12
+
13
+ body
14
+
15
+ == yield
16
+
17
+ = javascript_include_tag "application"
@@ -0,0 +1,5 @@
1
+ module Foundation
2
+ module Rails
3
+ VERSION = "5.0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,16 @@
1
+ # See https://help.github.com/articles/ignoring-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
@@ -0,0 +1,47 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4
+ gem 'foundation-rails', :path => '../../'
5
+
6
+ gem 'rails', '4.0.1'
7
+
8
+ # Use sqlite3 as the database for Active Record
9
+ gem 'sqlite3'
10
+
11
+ # Use SCSS for stylesheets
12
+ gem 'sass-rails', '~> 4.0.0'
13
+
14
+ # Use Uglifier as compressor for JavaScript assets
15
+ gem 'uglifier', '>= 1.3.0'
16
+
17
+ # Use CoffeeScript for .js.coffee assets and views
18
+ gem 'coffee-rails', '~> 4.0.0'
19
+
20
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
21
+ # gem 'therubyracer', platforms: :ruby
22
+
23
+ # Use jquery as the JavaScript library
24
+ gem 'jquery-rails'
25
+
26
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
27
+ gem 'turbolinks'
28
+
29
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
30
+ gem 'jbuilder', '~> 1.2'
31
+
32
+ group :doc do
33
+ # bundle exec rake doc:rails generates the API under doc/api.
34
+ gem 'sdoc', require: false
35
+ end
36
+
37
+ # Use ActiveModel has_secure_password
38
+ # gem 'bcrypt-ruby', '~> 3.1.2'
39
+
40
+ # Use unicorn as the app server
41
+ # gem 'unicorn'
42
+
43
+ # Use Capistrano for deployment
44
+ # gem 'capistrano', group: :development
45
+
46
+ # Use debugger
47
+ # gem 'debugger', group: [:development, :test]