haml-rails 0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ruby.yml +64 -0
- data/.gitignore +7 -0
- data/Appraisals +19 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/README.md +64 -1
- data/Rakefile +12 -0
- data/gemfiles/rails_5_1.gemfile +8 -0
- data/gemfiles/rails_5_2.gemfile +8 -0
- data/gemfiles/rails_6_0.gemfile +8 -0
- data/gemfiles/rails_6_1.gemfile +8 -0
- data/gemfiles/rails_7_0.gemfile +8 -0
- data/haml-rails.gemspec +32 -0
- data/lib/generators/haml/controller/controller_generator.rb +5 -6
- data/lib/generators/haml/controller/templates/view.html.haml +1 -1
- data/lib/generators/haml/mailer/mailer_generator.rb +15 -0
- data/lib/generators/haml/mailer/templates/layout.html.haml +8 -0
- data/lib/generators/haml/mailer/templates/layout.text.haml +1 -0
- data/lib/generators/haml/mailer/templates/view.html.haml +4 -0
- data/lib/generators/haml/mailer/templates/view.text.haml +3 -0
- data/lib/generators/haml/scaffold/scaffold_generator.rb +11 -19
- data/lib/generators/haml/scaffold/templates/_form.html.haml +15 -0
- data/lib/generators/haml/scaffold/templates/edit.html.haml +7 -0
- data/lib/generators/haml/scaffold/templates/index.html.haml +25 -0
- data/lib/generators/haml/scaffold/templates/new.html.haml +5 -0
- data/lib/generators/haml/scaffold/templates/show.html.haml +11 -0
- data/lib/haml-rails/version.rb +5 -0
- data/lib/haml-rails.rb +58 -1
- data/lib/rails/generators/haml/application_layout/application_layout_generator.rb +32 -0
- data/lib/tasks/erb2haml.rake +83 -0
- data/test/fixtures/routes.rb +58 -0
- data/test/lib/generators/haml/controller_generator_test.rb +19 -0
- data/test/lib/generators/haml/mailer_generator_test.rb +87 -0
- data/test/lib/generators/haml/scaffold_generator_test.rb +32 -0
- data/test/test_helper.rb +47 -0
- metadata +187 -56
- data/lib/generators/haml/install/install_generator.rb +0 -14
- data/lib/generators/haml/install/templates/config/initializers/haml.rb.tt +0 -4
- data/lib/generators/haml/scaffold/templates/_form.html.haml.erb +0 -15
- data/lib/generators/haml/scaffold/templates/edit.html.haml.erb +0 -7
- data/lib/generators/haml/scaffold/templates/index.html.haml.erb +0 -23
- data/lib/generators/haml/scaffold/templates/new.html.haml.erb +0 -5
- data/lib/generators/haml/scaffold/templates/show.html.haml.erb +0 -9
- data/lib/generators/haml.rb +0 -9