haml-rails 0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ruby.yml +64 -0
  3. data/.gitignore +7 -0
  4. data/Appraisals +19 -0
  5. data/Gemfile +6 -0
  6. data/LICENSE +21 -0
  7. data/README.md +64 -1
  8. data/Rakefile +12 -0
  9. data/gemfiles/rails_5_1.gemfile +8 -0
  10. data/gemfiles/rails_5_2.gemfile +8 -0
  11. data/gemfiles/rails_6_0.gemfile +8 -0
  12. data/gemfiles/rails_6_1.gemfile +8 -0
  13. data/gemfiles/rails_7_0.gemfile +8 -0
  14. data/haml-rails.gemspec +32 -0
  15. data/lib/generators/haml/controller/controller_generator.rb +5 -6
  16. data/lib/generators/haml/controller/templates/view.html.haml +1 -1
  17. data/lib/generators/haml/mailer/mailer_generator.rb +15 -0
  18. data/lib/generators/haml/mailer/templates/layout.html.haml +8 -0
  19. data/lib/generators/haml/mailer/templates/layout.text.haml +1 -0
  20. data/lib/generators/haml/mailer/templates/view.html.haml +4 -0
  21. data/lib/generators/haml/mailer/templates/view.text.haml +3 -0
  22. data/lib/generators/haml/scaffold/scaffold_generator.rb +11 -19
  23. data/lib/generators/haml/scaffold/templates/_form.html.haml +15 -0
  24. data/lib/generators/haml/scaffold/templates/edit.html.haml +7 -0
  25. data/lib/generators/haml/scaffold/templates/index.html.haml +25 -0
  26. data/lib/generators/haml/scaffold/templates/new.html.haml +5 -0
  27. data/lib/generators/haml/scaffold/templates/show.html.haml +11 -0
  28. data/lib/haml-rails/version.rb +5 -0
  29. data/lib/haml-rails.rb +58 -1
  30. data/lib/rails/generators/haml/application_layout/application_layout_generator.rb +32 -0
  31. data/lib/tasks/erb2haml.rake +83 -0
  32. data/test/fixtures/routes.rb +58 -0
  33. data/test/lib/generators/haml/controller_generator_test.rb +19 -0
  34. data/test/lib/generators/haml/mailer_generator_test.rb +87 -0
  35. data/test/lib/generators/haml/scaffold_generator_test.rb +32 -0
  36. data/test/test_helper.rb +47 -0
  37. metadata +187 -56
  38. data/lib/generators/haml/install/install_generator.rb +0 -14
  39. data/lib/generators/haml/install/templates/config/initializers/haml.rb.tt +0 -4
  40. data/lib/generators/haml/scaffold/templates/_form.html.haml.erb +0 -15
  41. data/lib/generators/haml/scaffold/templates/edit.html.haml.erb +0 -7
  42. data/lib/generators/haml/scaffold/templates/index.html.haml.erb +0 -23
  43. data/lib/generators/haml/scaffold/templates/new.html.haml.erb +0 -5
  44. data/lib/generators/haml/scaffold/templates/show.html.haml.erb +0 -9
  45. data/lib/generators/haml.rb +0 -9
@@ -1,9 +0,0 @@
1
- module Haml
2
- module Generators
3
- module TemplatePath
4
- def source_root
5
- @_haml_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'haml', generator_name, 'templates'))
6
- end
7
- end
8
- end
9
- end