Coder Social home page Coder Social logo

h5bp-rails's People

Contributors

gutenye avatar moskitohero avatar russfrisch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

h5bp-rails's Issues

Windows install

When attempting to use this template on windows, the following error occurs:

apply  http://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb
c:/Ruby/lib/ruby/1.9.1/open-uri.rb:216:in `open_loop': redirection forbidden: http://github.com/russfrisch/h5bp-rails/ra
w/master/h5bp.rb -> https://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb (RuntimeError)

It seems to me this is caused by github responding to the request with a redirect, is there a good workaround?

CSS Errors on new h5bp-rails app

I just created a new rails app using your h5bp template and my application.css is throwing errors:

          html {
            padding: 18px 36px;
          }

          head {
            display: block;
          }

          body {
            margin: 0;
            padding: 0;
          }

          body > * {
            display: none !important;
          }

          head:after, body:before, body:after {
            display: block !important;
          }

          head:after {
            font-family: sans-serif;
            font-size: large;
            font-weight: bold;
            content: "Error compiling CSS asset";
          }

          body:before, body:after {
            font-family: monospace;
            white-space: pre-wrap;
          }

          body:before {
            font-weight: bold;
            content: "\000a NoMethodError: undefined method `process_normalize_directive' for #<Sprockets::DirectiveProcessor:0x00000102c92838>\000a   (in \002f Users\002f bbergstrom\002f Documents\002f Aptana Studio 3 Workspace\002f beacons\002f app\002f assets\002f stylesheets\002f application.css:18)";
          }

          body:after {
            content: "\000a   \002f Users\002f bbergstrom\002f .rvm\002f gems\002f ruby-1.9.2-p290\002f gems\002f sprockets-2.0.0.beta.13\002f lib\002f sprockets\002f directive_processor.rb:191:in `block in process_directives'";
          }

application.css

the h5bp stylesheet currently gets appended to application.css, which puts those styles at the top the compiled stylesheet. h5bp recommends that you put your styles before the section starting with:

/* ==|==. non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

That section should be put into a separate stylesheet and appended after user stylessheets.

require_tree for stylesheets

the line

*= require_tree . 

is gone from app/assets/stylesheets/application.css

Is that intentional? The comment that says that it will "automatically include all the stylesheets available in this directory and any sub-directories" is still there. Thanks

error on install.

rails new myapp -m https://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb

create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create app/mailers/.gitkeep
create app/models/.gitkeep
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create lib/assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create script
create script/rails
create test/fixtures
create test/fixtures/.gitkeep
create test/functional
create test/functional/.gitkeep
create test/integration
create test/integration/.gitkeep
create test/unit
create test/unit/.gitkeep
create test/performance/browsing_test.rb
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.gitkeep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
apply https://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb
create app/assets/javascripts/plugins.js.coffee
prepend app/assets/stylesheets/application.css
OpenURI::HTTPError: 404 Not Found
open_http at /home/mauro/jruby-1.7.0/lib/ruby/1.9/open-uri.rb:346
buffer_open at /home/mauro/jruby-1.7.0/lib/ruby/1.9/open-uri.rb:775
open_loop at /home/mauro/jruby-1.7.0/lib/ruby/1.9/open-uri.rb:203
catch at org/jruby/RubyKernel.java:1173
open_loop at /home/mauro/jruby-1.7.0/lib/ruby/1.9/open-uri.rb:201
open_uri at /home/mauro/jruby-1.7.0/lib/ruby/1.9/open-uri.rb:146
open at /home/mauro/jruby-1.7.0/lib/ruby/1.9/open-uri.rb:677
open at /home/mauro/jruby-1.7.0/lib/ruby/1.9/open-uri.rb:33
get at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/actions/file_manipulation.rb:77
(eval) at https://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb:25
instance_eval at org/jruby/RubyBasicObject.java:1707
apply at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/actions.rb:221
apply_rails_template at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/railties-3.2.8/lib/rails/generators/app_base.rb:109
apply_rails_template at (eval):1
send at org/jruby/RubyBasicObject.java:1667
send at org/jruby/RubyKernel.java:2077
run at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/task.rb:27
invoke_task at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/invocation.rb:120
invoke_all at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/invocation.rb:126
each at org/jruby/RubyHash.java:1192
map at org/jruby/RubyEnumerable.java:718
invoke_all at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/invocation.rb:126
dispatch at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/group.rb:238
start at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/thor-0.16.0/lib/thor/base.rb:425
(root) at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/railties-3.2.8/lib/rails/commands/application.rb:38
require at org/jruby/RubyKernel.java:1019
(root) at /home/mauro/jruby-1.7.0/lib/ruby/shared/rubygems/custom_require.rb:1
require at /home/mauro/jruby-1.7.0/lib/ruby/shared/rubygems/custom_require.rb:36
require at org/jruby/RubyKernel.java:1019
(root) at /home/mauro/jruby-1.7.0/lib/ruby/gems/shared/gems/railties-3.2.8/lib/rails/cli.rb:15
(root) at /home/mauro/jruby-1.7.0/lib/ruby/shared/rubygems/custom_require.rb:1
load at org/jruby/RubyKernel.java:1045
(root) at /home/mauro/jruby/bin/rails:23

Error during install

I use 'rails new myapp -m https://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb' command and receive error:
(ruby 1.9.2, rails 3.1.3)

/home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 404 Not Found (OpenURI::HTTPError)
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:671:in `open'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/open-uri.rb:33:in `open'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:77:in `get'
    from https://github.com/russfrisch/h5bp-rails/raw/master/h5bp.rb:25:in `apply'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/actions.rb:217:in `instance_eval'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/actions.rb:217:in `apply'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/railties-3.1.3/lib/rails/generators/app_base.rb:109:in `apply_rails_template'
    from (eval):1:in `apply_rails_template'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/railties-3.1.3/lib/rails/commands/application.rb:31:in `<top (required)>'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/railties-3.1.3/lib/rails/cli.rb:15:in `<top (required)>'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/poushkar/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/gems/rails-3.1.3/bin/rails:7:in `<top (required)>'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/bin/rails:19:in `load'
    from /home/poushkar/.rvm/gems/ruby-1.9.2-head@rails31/bin/rails:19:in `<main>'

modernizr.js precompile

Hi,

In my production.rb, had to add modernizr.js to config.assets.precompile, like so:

config.assets.precompile += %w( search.js modernizr.js )

Otherwise, <%= javascript_include_tag "modernizr" %> raises an AssetNoPrecompiledError.

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.