haml-rails 3.0.0 → 3.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.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +5 -1
- data/CHANGELOG.md +25 -0
- data/Gemfile +4 -0
- data/haml-rails.gemspec +1 -1
- data/lib/generators/haml/authentication/authentication_generator.rb +17 -0
- data/lib/generators/haml/authentication/templates/app/views/passwords/edit.html.haml +10 -0
- data/lib/generators/haml/authentication/templates/app/views/passwords/new.html.haml +8 -0
- data/lib/generators/haml/authentication/templates/app/views/sessions/new.html.haml +12 -0
- data/lib/generators/haml/scaffold/templates/8_1/_form.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/edit.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/index.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/new.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/partial.html.haml +14 -0
- data/lib/generators/haml/scaffold/templates/8_1/show.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/_form.html.haml +1 -1
- data/lib/generators/haml/scaffold/templates/edit.html.haml +1 -1
- data/lib/generators/haml/scaffold/templates/index.html.haml +1 -1
- data/lib/generators/haml/scaffold/templates/new.html.haml +1 -1
- data/lib/generators/haml/scaffold/templates/partial.html.haml +1 -1
- data/lib/generators/haml/scaffold/templates/show.html.haml +1 -1
- data/lib/haml-rails/version.rb +1 -1
- data/lib/haml-rails.rb +10 -1
- data/test/lib/haml-rails/dependency_tracker_test.rb +60 -0
- metadata +222 -195
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be3a0bf741095a473f255170b23034ce05f30adc72901a005976184c94e88bd0
|
|
4
|
+
data.tar.gz: a63f77e4275deb71cb8a8cbdb9c98013f9b6487e2e9ced4bf1c44c8cdea9c2e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca52609d810eff129d39e7764c420e139467ba53f85d106f07830583e6bd3e76f672c050b30e43883f6b7443a698e2f6a6c0aa9c8ee8d46a2c7fdc05375ed75b
|
|
7
|
+
data.tar.gz: 17aba7d35c28b7b0f3bd0b22b0c7baeacba605d24ca29c7bca7558d0a2a6d9c34c831410cdc9d06ff44357fdb8dbb6339b9787ac07fe4688df2e4eb138419101
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -13,11 +13,13 @@ jobs:
|
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
15
|
ruby-version:
|
|
16
|
+
- '4.0'
|
|
16
17
|
- '3.4'
|
|
17
18
|
- '3.3'
|
|
18
19
|
- '3.2'
|
|
19
20
|
- '3.1'
|
|
20
21
|
rails-version:
|
|
22
|
+
- '8.1'
|
|
21
23
|
- '8.0'
|
|
22
24
|
- '7.2'
|
|
23
25
|
- '7.1'
|
|
@@ -63,6 +65,8 @@ jobs:
|
|
|
63
65
|
rails-version: '6.1'
|
|
64
66
|
|
|
65
67
|
exclude:
|
|
68
|
+
- ruby-version: '3.1'
|
|
69
|
+
rails-version: '8.1'
|
|
66
70
|
- ruby-version: '3.1'
|
|
67
71
|
rails-version: '8.0'
|
|
68
72
|
|
|
@@ -70,7 +74,7 @@ jobs:
|
|
|
70
74
|
RUBY_VERSION: ${{ matrix.ruby-version }}
|
|
71
75
|
RAILS_VERSION: ${{ matrix.rails-version }}
|
|
72
76
|
steps:
|
|
73
|
-
- uses: actions/checkout@
|
|
77
|
+
- uses: actions/checkout@v7
|
|
74
78
|
- name: Set up Ruby
|
|
75
79
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
76
80
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Add Rails 8.1 and Ruby 4.0 support.
|
|
8
|
+
|
|
9
|
+
- Add an authentication generator that produces Haml views for
|
|
10
|
+
`rails generate authentication` (Rails 8+), generating `passwords/new`,
|
|
11
|
+
`passwords/edit`, and `sessions/new` templates.
|
|
12
|
+
[#198](https://github.com/haml/haml-rails/pull/198) (Evan Brooks)
|
|
13
|
+
|
|
14
|
+
### Bug fixes
|
|
15
|
+
|
|
16
|
+
- Fix Haml fragment cache dependency detection on Rails 8.1. Rails 8.1 tightened
|
|
17
|
+
its ERB dependency tracker to only match `render` calls inside `<% %>` tags,
|
|
18
|
+
which stopped changes to a Haml partial from busting the cache of templates
|
|
19
|
+
that render it. Haml templates now use the `:ruby` render tracker (available
|
|
20
|
+
since Rails 7.2), which compiles the template before scanning for `render`
|
|
21
|
+
calls. [#200](https://github.com/haml/haml-rails/pull/200),
|
|
22
|
+
fixes [#199](https://github.com/haml/haml-rails/issues/199) (Nick Schimek)
|
|
23
|
+
|
|
24
|
+
- Add Rails 8.1 scaffold templates. The generated scaffold partial now wraps
|
|
25
|
+
each attribute in a `<div>` (instead of `<p>`) to match Rails 8.1's output.
|
data/Gemfile
CHANGED
data/haml-rails.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.add_dependency "activesupport", [">= 5.1"]
|
|
22
22
|
s.add_dependency "actionpack", [">= 5.1"]
|
|
23
23
|
s.add_dependency "railties", [">= 5.1"]
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
s.add_development_dependency "html2haml", [">= 1.0.1"]
|
|
26
26
|
s.add_development_dependency "rails", [">= 5.1"]
|
|
27
27
|
s.add_development_dependency "bundler"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "rails/generators/erb/authentication/authentication_generator"
|
|
4
|
+
|
|
5
|
+
module Haml
|
|
6
|
+
module Generators
|
|
7
|
+
class AuthenticationGenerator < Erb::Generators::AuthenticationGenerator
|
|
8
|
+
source_root File.expand_path("../templates", __FILE__)
|
|
9
|
+
|
|
10
|
+
def create_files
|
|
11
|
+
template "app/views/passwords/new.html.haml"
|
|
12
|
+
template "app/views/passwords/edit.html.haml"
|
|
13
|
+
template "app/views/sessions/new.html.haml"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
%h1 Update your password
|
|
2
|
+
|
|
3
|
+
= tag.div(flash[:alert], style: "color:red") if flash[:alert]
|
|
4
|
+
|
|
5
|
+
= form_with url: password_path(params[:token]), method: :put do |form|
|
|
6
|
+
= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72
|
|
7
|
+
%br
|
|
8
|
+
= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72
|
|
9
|
+
%br
|
|
10
|
+
= form.submit "Save"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
%h1 Forgot your password?
|
|
2
|
+
|
|
3
|
+
= tag.div(flash[:alert], style: "color:red") if flash[:alert]
|
|
4
|
+
|
|
5
|
+
= form_with url: passwords_path do |form|
|
|
6
|
+
= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address]
|
|
7
|
+
%br
|
|
8
|
+
= form.submit "Email reset instructions"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
= tag.div(flash[:alert], style: "color:red") if flash[:alert]
|
|
2
|
+
= tag.div(flash[:notice], style: "color:green") if flash[:notice]
|
|
3
|
+
|
|
4
|
+
= form_with url: session_path do |form|
|
|
5
|
+
= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address]
|
|
6
|
+
%br
|
|
7
|
+
= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72
|
|
8
|
+
%br
|
|
9
|
+
= form.submit "Sign in"
|
|
10
|
+
%br
|
|
11
|
+
|
|
12
|
+
= link_to "Forgot password?", new_password_path
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../7_2/_form.html.haml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../7_2/edit.html.haml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../7_2/index.html.haml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../7_2/new.html.haml
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
%div{id: dom_id(<%= singular_name %>)}
|
|
2
|
+
<% attributes.reject(&:password_digest?).each do |attribute| -%>
|
|
3
|
+
%div
|
|
4
|
+
%strong <%= attribute.human_name %>:
|
|
5
|
+
<% if attribute.attachment? -%>
|
|
6
|
+
= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached?
|
|
7
|
+
<% elsif attribute.attachments? -%>
|
|
8
|
+
- <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>|
|
|
9
|
+
%div= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %>
|
|
10
|
+
<% else -%>
|
|
11
|
+
= <%= singular_name %>.<%= attribute.column_name %>
|
|
12
|
+
<% end -%>
|
|
13
|
+
|
|
14
|
+
<% end -%>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../7_2/show.html.haml
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8_1/_form.html.haml
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8_1/edit.html.haml
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8_1/index.html.haml
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8_1/new.html.haml
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8_1/partial.html.haml
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8_1/show.html.haml
|
data/lib/haml-rails/version.rb
CHANGED
data/lib/haml-rails.rb
CHANGED
|
@@ -31,7 +31,16 @@ module Haml
|
|
|
31
31
|
else
|
|
32
32
|
# will only apply if Rails 4, which includes 'action_view/dependency_tracker'
|
|
33
33
|
require 'action_view/dependency_tracker'
|
|
34
|
-
|
|
34
|
+
# RubyTracker (available since Rails 7.2) compiles the template
|
|
35
|
+
# to Ruby via its handler and parses that, so it detects render
|
|
36
|
+
# calls in Haml. Rails 8.1's ERBTracker only scans ERB `<% %>`
|
|
37
|
+
# tags and no longer sees Haml's `= render`.
|
|
38
|
+
tracker = if defined?(ActionView::DependencyTracker::RubyTracker)
|
|
39
|
+
ActionView::DependencyTracker::RubyTracker
|
|
40
|
+
else
|
|
41
|
+
ActionView::DependencyTracker::ERBTracker
|
|
42
|
+
end
|
|
43
|
+
ActionView::DependencyTracker.register_tracker :haml, tracker
|
|
35
44
|
ActionView::Base.cache_template_loading = false if ::Rails.env.development?
|
|
36
45
|
end
|
|
37
46
|
rescue
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'test_helper'
|
|
4
|
+
require 'action_view/dependency_tracker'
|
|
5
|
+
|
|
6
|
+
# Touch ActionView::Base so haml-rails' `on_load(:action_view)` hook fires and
|
|
7
|
+
# registers the :haml tracker. In a real app this happens the first time a view
|
|
8
|
+
# renders; a bare tracker test never renders one, so we force the load here.
|
|
9
|
+
ActionView::Base
|
|
10
|
+
|
|
11
|
+
# Regression test for cache dependency detection on Haml templates.
|
|
12
|
+
#
|
|
13
|
+
# Rails 8.1 tightened ERBTracker to only match render calls inside ERB
|
|
14
|
+
# `<% %>` tags, which stopped it from seeing Haml's `= render` and silently
|
|
15
|
+
# broke fragment cache busting. haml-rails now registers RubyTracker (which
|
|
16
|
+
# compiles the template to Ruby before scanning) where it is available.
|
|
17
|
+
#
|
|
18
|
+
# This test asserts the behavior that actually matters: given a Haml template
|
|
19
|
+
# that renders partials, the registered tracker reports those partials as
|
|
20
|
+
# dependencies.
|
|
21
|
+
class DependencyTrackerTest < Minitest::Test
|
|
22
|
+
# Minimal stand-in for an ActionView::Template that exposes just what the
|
|
23
|
+
# dependency trackers touch: the Haml handler and the source.
|
|
24
|
+
class FakeTemplate
|
|
25
|
+
attr_reader :source, :handler
|
|
26
|
+
|
|
27
|
+
def initialize(source)
|
|
28
|
+
@source = source
|
|
29
|
+
@handler = ActionView::Template.handler_for_extension(:haml)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def identifier
|
|
33
|
+
'fake/template'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def type
|
|
37
|
+
'text/html'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def format
|
|
41
|
+
:html
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def find_dependencies(source)
|
|
46
|
+
ActionView::DependencyTracker.find_dependencies('things/index', FakeTemplate.new(source), nil)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def test_detects_a_rendered_partial
|
|
50
|
+
assert_includes find_dependencies(%(= render "shared/menu")), 'shared/menu'
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def test_detects_a_partial_rendered_with_explicit_option
|
|
54
|
+
assert_includes find_dependencies(%(= render partial: "posts/post")), 'posts/post'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def test_detects_an_explicit_dependency_comment
|
|
58
|
+
assert_includes find_dependencies(%(-# Template Dependency: shared/menu)), 'shared/menu'
|
|
59
|
+
end
|
|
60
|
+
end
|
metadata
CHANGED
|
@@ -1,221 +1,248 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: haml-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- André Arko
|
|
7
|
+
- André Arko
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- !ruby/object:Gem::
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
- !ruby/object:Gem::
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: haml
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 4.0.6
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 4.0.6
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: activesupport
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
-
|
|
33
|
+
- ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: "5.1"
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "5.1"
|
|
44
|
+
- !ruby/object:Gem::Dependency
|
|
45
|
+
name: actionpack
|
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
-
|
|
49
|
+
- ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: "5.1"
|
|
52
|
+
type: :runtime
|
|
53
|
+
prerelease: false
|
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
-
|
|
57
|
+
- ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: "5.1"
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: railties
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
-
|
|
65
|
+
- ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: "5.1"
|
|
68
|
+
type: :runtime
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
-
|
|
73
|
+
- ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: "5.1"
|
|
76
|
+
- !ruby/object:Gem::Dependency
|
|
77
|
+
name: html2haml
|
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
-
|
|
81
|
+
- ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: 1.0.1
|
|
84
|
+
type: :development
|
|
85
|
+
prerelease: false
|
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
-
|
|
89
|
+
- ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: 1.0.1
|
|
92
|
+
- !ruby/object:Gem::Dependency
|
|
93
|
+
name: rails
|
|
94
|
+
requirement: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
-
|
|
97
|
+
- ">="
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: "5.1"
|
|
100
|
+
type: :development
|
|
101
|
+
prerelease: false
|
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
103
|
+
requirements:
|
|
104
|
+
-
|
|
105
|
+
- ">="
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: "5.1"
|
|
108
|
+
- !ruby/object:Gem::Dependency
|
|
109
|
+
name: bundler
|
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
-
|
|
113
|
+
- ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: "0"
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
-
|
|
121
|
+
- ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: "0"
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: rake
|
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
-
|
|
129
|
+
- ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: "0"
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
-
|
|
137
|
+
- ">="
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: "0"
|
|
140
|
+
description: "Haml-rails provides Haml generators for Rails 5.1 and above. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah."
|
|
128
141
|
email:
|
|
129
|
-
- andre@arko.net
|
|
142
|
+
- andre@arko.net
|
|
130
143
|
executables: []
|
|
131
144
|
extensions: []
|
|
132
145
|
extra_rdoc_files: []
|
|
133
146
|
files:
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
- lib/generators/haml/
|
|
143
|
-
- lib/generators/haml/
|
|
144
|
-
- lib/generators/haml/
|
|
145
|
-
- lib/generators/haml/
|
|
146
|
-
- lib/generators/haml/
|
|
147
|
-
- lib/generators/haml/
|
|
148
|
-
- lib/generators/haml/
|
|
149
|
-
- lib/generators/haml/
|
|
150
|
-
- lib/generators/haml/
|
|
151
|
-
- lib/generators/haml/
|
|
152
|
-
- lib/generators/haml/
|
|
153
|
-
- lib/generators/haml/scaffold/
|
|
154
|
-
- lib/generators/haml/scaffold/templates/
|
|
155
|
-
- lib/generators/haml/scaffold/templates/
|
|
156
|
-
- lib/generators/haml/scaffold/templates/
|
|
157
|
-
- lib/generators/haml/scaffold/templates/
|
|
158
|
-
- lib/generators/haml/scaffold/templates/
|
|
159
|
-
- lib/generators/haml/scaffold/templates/
|
|
160
|
-
- lib/generators/haml/scaffold/templates/
|
|
161
|
-
- lib/generators/haml/scaffold/templates/
|
|
162
|
-
- lib/generators/haml/scaffold/templates/
|
|
163
|
-
- lib/generators/haml/scaffold/templates/
|
|
164
|
-
- lib/generators/haml/scaffold/templates/
|
|
165
|
-
- lib/generators/haml/scaffold/templates/
|
|
166
|
-
- lib/generators/haml/scaffold/templates/
|
|
167
|
-
- lib/generators/haml/scaffold/templates/
|
|
168
|
-
- lib/generators/haml/scaffold/templates/
|
|
169
|
-
- lib/generators/haml/scaffold/templates/
|
|
170
|
-
- lib/generators/haml/scaffold/templates/
|
|
171
|
-
- lib/generators/haml/scaffold/templates/
|
|
172
|
-
- lib/generators/haml/scaffold/templates/
|
|
173
|
-
- lib/generators/haml/scaffold/templates/
|
|
174
|
-
- lib/generators/haml/scaffold/templates/7_0/
|
|
175
|
-
- lib/generators/haml/scaffold/templates/
|
|
176
|
-
- lib/generators/haml/scaffold/templates/
|
|
177
|
-
- lib/generators/haml/scaffold/templates/
|
|
178
|
-
- lib/generators/haml/scaffold/templates/
|
|
179
|
-
- lib/generators/haml/scaffold/templates/
|
|
180
|
-
- lib/generators/haml/scaffold/templates/
|
|
181
|
-
- lib/generators/haml/scaffold/templates/7_2/
|
|
182
|
-
- lib/generators/haml/scaffold/templates/
|
|
183
|
-
- lib/generators/haml/scaffold/templates/
|
|
184
|
-
- lib/generators/haml/scaffold/templates/
|
|
185
|
-
- lib/generators/haml/scaffold/templates/
|
|
186
|
-
- lib/generators/haml/scaffold/templates/
|
|
187
|
-
- lib/generators/haml/scaffold/templates/
|
|
188
|
-
- lib/generators/haml/scaffold/templates/
|
|
189
|
-
- lib/haml
|
|
190
|
-
- lib/haml
|
|
191
|
-
- lib/
|
|
192
|
-
- lib/
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
|
|
147
|
+
- .github/workflows/ruby.yml
|
|
148
|
+
- .gitignore
|
|
149
|
+
- CHANGELOG.md
|
|
150
|
+
- Gemfile
|
|
151
|
+
- LICENSE
|
|
152
|
+
- README.md
|
|
153
|
+
- Rakefile
|
|
154
|
+
- haml-rails.gemspec
|
|
155
|
+
- lib/generators/haml/authentication/authentication_generator.rb
|
|
156
|
+
- lib/generators/haml/authentication/templates/app/views/passwords/edit.html.haml
|
|
157
|
+
- lib/generators/haml/authentication/templates/app/views/passwords/new.html.haml
|
|
158
|
+
- lib/generators/haml/authentication/templates/app/views/sessions/new.html.haml
|
|
159
|
+
- lib/generators/haml/controller/controller_generator.rb
|
|
160
|
+
- lib/generators/haml/controller/templates/view.html.haml
|
|
161
|
+
- lib/generators/haml/mailer/mailer_generator.rb
|
|
162
|
+
- lib/generators/haml/mailer/templates/layout.html.haml
|
|
163
|
+
- lib/generators/haml/mailer/templates/layout.text.haml
|
|
164
|
+
- lib/generators/haml/mailer/templates/view.html.haml
|
|
165
|
+
- lib/generators/haml/mailer/templates/view.text.haml
|
|
166
|
+
- lib/generators/haml/scaffold/scaffold_generator.rb
|
|
167
|
+
- lib/generators/haml/scaffold/templates/5_1/_form.html.haml
|
|
168
|
+
- lib/generators/haml/scaffold/templates/5_1/edit.html.haml
|
|
169
|
+
- lib/generators/haml/scaffold/templates/5_1/index.html.haml
|
|
170
|
+
- lib/generators/haml/scaffold/templates/5_1/new.html.haml
|
|
171
|
+
- lib/generators/haml/scaffold/templates/5_1/show.html.haml
|
|
172
|
+
- lib/generators/haml/scaffold/templates/5_2/_form.html.haml
|
|
173
|
+
- lib/generators/haml/scaffold/templates/5_2/edit.html.haml
|
|
174
|
+
- lib/generators/haml/scaffold/templates/5_2/index.html.haml
|
|
175
|
+
- lib/generators/haml/scaffold/templates/5_2/new.html.haml
|
|
176
|
+
- lib/generators/haml/scaffold/templates/5_2/show.html.haml
|
|
177
|
+
- lib/generators/haml/scaffold/templates/6_0/_form.html.haml
|
|
178
|
+
- lib/generators/haml/scaffold/templates/6_0/edit.html.haml
|
|
179
|
+
- lib/generators/haml/scaffold/templates/6_0/index.html.haml
|
|
180
|
+
- lib/generators/haml/scaffold/templates/6_0/new.html.haml
|
|
181
|
+
- lib/generators/haml/scaffold/templates/6_0/show.html.haml
|
|
182
|
+
- lib/generators/haml/scaffold/templates/6_1/_form.html.haml
|
|
183
|
+
- lib/generators/haml/scaffold/templates/6_1/edit.html.haml
|
|
184
|
+
- lib/generators/haml/scaffold/templates/6_1/index.html.haml
|
|
185
|
+
- lib/generators/haml/scaffold/templates/6_1/new.html.haml
|
|
186
|
+
- lib/generators/haml/scaffold/templates/6_1/show.html.haml
|
|
187
|
+
- lib/generators/haml/scaffold/templates/7_0/_form.html.haml
|
|
188
|
+
- lib/generators/haml/scaffold/templates/7_0/edit.html.haml
|
|
189
|
+
- lib/generators/haml/scaffold/templates/7_0/index.html.haml
|
|
190
|
+
- lib/generators/haml/scaffold/templates/7_0/new.html.haml
|
|
191
|
+
- lib/generators/haml/scaffold/templates/7_0/partial.html.haml
|
|
192
|
+
- lib/generators/haml/scaffold/templates/7_0/show.html.haml
|
|
193
|
+
- lib/generators/haml/scaffold/templates/7_1
|
|
194
|
+
- lib/generators/haml/scaffold/templates/7_2/_form.html.haml
|
|
195
|
+
- lib/generators/haml/scaffold/templates/7_2/edit.html.haml
|
|
196
|
+
- lib/generators/haml/scaffold/templates/7_2/index.html.haml
|
|
197
|
+
- lib/generators/haml/scaffold/templates/7_2/new.html.haml
|
|
198
|
+
- lib/generators/haml/scaffold/templates/7_2/partial.html.haml
|
|
199
|
+
- lib/generators/haml/scaffold/templates/7_2/show.html.haml
|
|
200
|
+
- lib/generators/haml/scaffold/templates/8_0
|
|
201
|
+
- lib/generators/haml/scaffold/templates/8_1/_form.html.haml
|
|
202
|
+
- lib/generators/haml/scaffold/templates/8_1/edit.html.haml
|
|
203
|
+
- lib/generators/haml/scaffold/templates/8_1/index.html.haml
|
|
204
|
+
- lib/generators/haml/scaffold/templates/8_1/new.html.haml
|
|
205
|
+
- lib/generators/haml/scaffold/templates/8_1/partial.html.haml
|
|
206
|
+
- lib/generators/haml/scaffold/templates/8_1/show.html.haml
|
|
207
|
+
- lib/generators/haml/scaffold/templates/_form.html.haml
|
|
208
|
+
- lib/generators/haml/scaffold/templates/edit.html.haml
|
|
209
|
+
- lib/generators/haml/scaffold/templates/index.html.haml
|
|
210
|
+
- lib/generators/haml/scaffold/templates/new.html.haml
|
|
211
|
+
- lib/generators/haml/scaffold/templates/partial.html.haml
|
|
212
|
+
- lib/generators/haml/scaffold/templates/show.html.haml
|
|
213
|
+
- lib/haml-rails.rb
|
|
214
|
+
- lib/haml-rails/version.rb
|
|
215
|
+
- lib/rails/generators/haml/application_layout/application_layout_generator.rb
|
|
216
|
+
- lib/tasks/erb2haml.rake
|
|
217
|
+
- test/fixtures/routes.rb
|
|
218
|
+
- test/lib/generators/haml/controller_generator_test.rb
|
|
219
|
+
- test/lib/generators/haml/mailer_generator_test.rb
|
|
220
|
+
- test/lib/generators/haml/scaffold_generator_test.rb
|
|
221
|
+
- test/lib/generators/haml/scaffold_template_contents_test.rb
|
|
222
|
+
- test/lib/haml-rails/dependency_tracker_test.rb
|
|
223
|
+
- test/test_helper.rb
|
|
224
|
+
homepage: "https://github.com/haml/haml-rails"
|
|
200
225
|
licenses:
|
|
201
|
-
- MIT
|
|
226
|
+
- MIT
|
|
202
227
|
metadata:
|
|
203
|
-
rubygems_mfa_required:
|
|
228
|
+
rubygems_mfa_required: "true"
|
|
204
229
|
rdoc_options: []
|
|
205
230
|
require_paths:
|
|
206
|
-
- lib
|
|
231
|
+
- lib
|
|
207
232
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
233
|
requirements:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
234
|
+
-
|
|
235
|
+
- ">="
|
|
236
|
+
- !ruby/object:Gem::Version
|
|
237
|
+
version: 2.3.0
|
|
212
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
239
|
requirements:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
240
|
+
-
|
|
241
|
+
- ">="
|
|
242
|
+
- !ruby/object:Gem::Version
|
|
243
|
+
version: 2.0.0
|
|
217
244
|
requirements: []
|
|
218
|
-
rubygems_version:
|
|
245
|
+
rubygems_version: 4.1.0.dev
|
|
219
246
|
specification_version: 4
|
|
220
247
|
summary: let your Gemfile do the configuring
|
|
221
248
|
test_files: []
|