pug-rails 3.0.0.rc3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.rubocop.yml +5 -0
- data/.ruby-version +1 -0
- data/Gemfile +7 -2
- data/Gemfile.lock +36 -29
- data/README.md +48 -51
- data/gemfiles/rails_3.1.gemfile +5 -0
- data/gemfiles/rails_3.1.gemfile.lock +26 -7
- data/gemfiles/rails_3.2.gemfile +5 -0
- data/gemfiles/rails_3.2.gemfile.lock +26 -7
- data/gemfiles/rails_4.1_with_sprockets_2.gemfile +5 -0
- data/gemfiles/rails_4.1_with_sprockets_2.gemfile.lock +63 -44
- data/gemfiles/rails_4.1_with_sprockets_3.gemfile +5 -0
- data/gemfiles/rails_4.1_with_sprockets_3.gemfile.lock +62 -44
- data/gemfiles/rails_4.2_with_sprockets_2.gemfile +5 -0
- data/gemfiles/rails_4.2_with_sprockets_2.gemfile.lock +63 -44
- data/gemfiles/rails_4.2_with_sprockets_3.gemfile +5 -0
- data/gemfiles/rails_4.2_with_sprockets_3.gemfile.lock +62 -44
- data/gemfiles/rails_5.0.gemfile +5 -0
- data/gemfiles/rails_5.0.gemfile.lock +36 -18
- data/gemfiles/rails_5.1.gemfile +5 -0
- data/gemfiles/rails_5.1.gemfile.lock +36 -18
- data/lib/jade-rails/railtie.rb +2 -0
- data/lib/jade-rails/sprockets/transformer.rb +3 -2
- data/lib/pug-rails/railtie.rb +3 -1
- data/lib/pug-rails/sprockets/transformer.rb +3 -2
- data/lib/pug-rails/version.rb +1 -1
- data/pug-rails.gemspec +5 -7
- data/test/test-helper.rb +1 -1
- data/test/test-pug-rails.rb +1 -0
- metadata +11 -70
@@ -3,6 +3,11 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "rails", "~> 4.2"
|
6
|
+
gem "rake", "~> 10.0"
|
7
|
+
gem "appraisal", "~> 2.1", require: false
|
8
|
+
gem "rubocop", "~> 0.51", require: false
|
9
|
+
gem "test-unit", "~> 3.1"
|
10
|
+
gem "nokogiri", "~> 1.6", "< 1.7"
|
6
11
|
gem "sprockets", "~> 3"
|
7
12
|
|
8
13
|
gemspec path: "../"
|
@@ -1,42 +1,42 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
pug-rails (3.0.0
|
5
|
-
pug-ruby (~> 2.0.0
|
4
|
+
pug-rails (3.0.0)
|
5
|
+
pug-ruby (~> 2.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (4.2.
|
11
|
-
actionpack (= 4.2.
|
12
|
-
actionview (= 4.2.
|
13
|
-
activejob (= 4.2.
|
10
|
+
actionmailer (4.2.10)
|
11
|
+
actionpack (= 4.2.10)
|
12
|
+
actionview (= 4.2.10)
|
13
|
+
activejob (= 4.2.10)
|
14
14
|
mail (~> 2.5, >= 2.5.4)
|
15
15
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
-
actionpack (4.2.
|
17
|
-
actionview (= 4.2.
|
18
|
-
activesupport (= 4.2.
|
16
|
+
actionpack (4.2.10)
|
17
|
+
actionview (= 4.2.10)
|
18
|
+
activesupport (= 4.2.10)
|
19
19
|
rack (~> 1.6)
|
20
20
|
rack-test (~> 0.6.2)
|
21
21
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
22
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
23
|
-
actionview (4.2.
|
24
|
-
activesupport (= 4.2.
|
23
|
+
actionview (4.2.10)
|
24
|
+
activesupport (= 4.2.10)
|
25
25
|
builder (~> 3.1)
|
26
26
|
erubis (~> 2.7.0)
|
27
27
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
28
28
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
29
|
-
activejob (4.2.
|
30
|
-
activesupport (= 4.2.
|
29
|
+
activejob (4.2.10)
|
30
|
+
activesupport (= 4.2.10)
|
31
31
|
globalid (>= 0.3.0)
|
32
|
-
activemodel (4.2.
|
33
|
-
activesupport (= 4.2.
|
32
|
+
activemodel (4.2.10)
|
33
|
+
activesupport (= 4.2.10)
|
34
34
|
builder (~> 3.1)
|
35
|
-
activerecord (4.2.
|
36
|
-
activemodel (= 4.2.
|
37
|
-
activesupport (= 4.2.
|
35
|
+
activerecord (4.2.10)
|
36
|
+
activemodel (= 4.2.10)
|
37
|
+
activesupport (= 4.2.10)
|
38
38
|
arel (~> 6.0)
|
39
|
-
activesupport (4.2.
|
39
|
+
activesupport (4.2.10)
|
40
40
|
i18n (~> 0.7)
|
41
41
|
minitest (~> 5.1)
|
42
42
|
thread_safe (~> 0.3, >= 0.3.4)
|
@@ -46,28 +46,34 @@ GEM
|
|
46
46
|
rake
|
47
47
|
thor (>= 0.14.0)
|
48
48
|
arel (6.0.4)
|
49
|
+
ast (2.3.0)
|
49
50
|
builder (3.2.3)
|
50
51
|
concurrent-ruby (1.0.5)
|
52
|
+
crass (1.0.2)
|
51
53
|
erubis (2.7.0)
|
52
54
|
execjs (2.7.0)
|
53
|
-
globalid (0.4.
|
55
|
+
globalid (0.4.1)
|
54
56
|
activesupport (>= 4.2.0)
|
55
|
-
i18n (0.
|
56
|
-
|
57
|
+
i18n (0.9.1)
|
58
|
+
concurrent-ruby (~> 1.0)
|
59
|
+
loofah (2.1.1)
|
60
|
+
crass (~> 1.0.2)
|
57
61
|
nokogiri (>= 1.5.9)
|
58
|
-
mail (2.
|
59
|
-
|
62
|
+
mail (2.7.0)
|
63
|
+
mini_mime (>= 0.1.1)
|
60
64
|
memoist (0.16.0)
|
61
65
|
method-not-implemented (1.0.1)
|
62
|
-
|
63
|
-
mime-types-data (~> 3.2015)
|
64
|
-
mime-types-data (3.2016.0521)
|
66
|
+
mini_mime (1.0.0)
|
65
67
|
mini_portile2 (2.1.0)
|
66
68
|
minitest (5.10.3)
|
67
69
|
nokogiri (1.6.8.1)
|
68
70
|
mini_portile2 (~> 2.1.0)
|
69
|
-
|
70
|
-
|
71
|
+
parallel (1.12.0)
|
72
|
+
parser (2.4.0.0)
|
73
|
+
ast (~> 2.2)
|
74
|
+
power_assert (1.1.1)
|
75
|
+
powerpack (0.1.1)
|
76
|
+
pug-ruby (2.0.0)
|
71
77
|
execjs (~> 2.0)
|
72
78
|
memoist (~> 0.15)
|
73
79
|
method-not-implemented (~> 1.0, >= 1.0.1)
|
@@ -75,16 +81,16 @@ GEM
|
|
75
81
|
rack (1.6.8)
|
76
82
|
rack-test (0.6.3)
|
77
83
|
rack (>= 1.0)
|
78
|
-
rails (4.2.
|
79
|
-
actionmailer (= 4.2.
|
80
|
-
actionpack (= 4.2.
|
81
|
-
actionview (= 4.2.
|
82
|
-
activejob (= 4.2.
|
83
|
-
activemodel (= 4.2.
|
84
|
-
activerecord (= 4.2.
|
85
|
-
activesupport (= 4.2.
|
84
|
+
rails (4.2.10)
|
85
|
+
actionmailer (= 4.2.10)
|
86
|
+
actionpack (= 4.2.10)
|
87
|
+
actionview (= 4.2.10)
|
88
|
+
activejob (= 4.2.10)
|
89
|
+
activemodel (= 4.2.10)
|
90
|
+
activerecord (= 4.2.10)
|
91
|
+
activesupport (= 4.2.10)
|
86
92
|
bundler (>= 1.3.0, < 2.0)
|
87
|
-
railties (= 4.2.
|
93
|
+
railties (= 4.2.10)
|
88
94
|
sprockets-rails
|
89
95
|
rails-deprecated_sanitizer (1.0.3)
|
90
96
|
activesupport (>= 4.2.0.alpha)
|
@@ -94,13 +100,23 @@ GEM
|
|
94
100
|
rails-deprecated_sanitizer (>= 1.0.1)
|
95
101
|
rails-html-sanitizer (1.0.3)
|
96
102
|
loofah (~> 2.0)
|
97
|
-
railties (4.2.
|
98
|
-
actionpack (= 4.2.
|
99
|
-
activesupport (= 4.2.
|
103
|
+
railties (4.2.10)
|
104
|
+
actionpack (= 4.2.10)
|
105
|
+
activesupport (= 4.2.10)
|
100
106
|
rake (>= 0.8.7)
|
101
107
|
thor (>= 0.18.1, < 2.0)
|
108
|
+
rainbow (2.2.2)
|
109
|
+
rake
|
102
110
|
rake (10.5.0)
|
103
111
|
regexp-match-polyfill (1.0.2)
|
112
|
+
rubocop (0.51.0)
|
113
|
+
parallel (~> 1.10)
|
114
|
+
parser (>= 2.3.3.1, < 3.0)
|
115
|
+
powerpack (~> 0.1)
|
116
|
+
rainbow (>= 2.2.2, < 3.0)
|
117
|
+
ruby-progressbar (~> 1.7)
|
118
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
119
|
+
ruby-progressbar (1.9.0)
|
104
120
|
sprockets (3.7.1)
|
105
121
|
concurrent-ruby (~> 1.0)
|
106
122
|
rack (> 1, < 3)
|
@@ -108,12 +124,13 @@ GEM
|
|
108
124
|
actionpack (>= 4.0)
|
109
125
|
activesupport (>= 4.0)
|
110
126
|
sprockets (>= 3.0.0)
|
111
|
-
test-unit (3.2.
|
127
|
+
test-unit (3.2.6)
|
112
128
|
power_assert
|
113
129
|
thor (0.20.0)
|
114
130
|
thread_safe (0.3.6)
|
115
|
-
tzinfo (1.2.
|
131
|
+
tzinfo (1.2.4)
|
116
132
|
thread_safe (~> 0.1)
|
133
|
+
unicode-display_width (1.3.0)
|
117
134
|
|
118
135
|
PLATFORMS
|
119
136
|
ruby
|
@@ -125,8 +142,9 @@ DEPENDENCIES
|
|
125
142
|
pug-rails!
|
126
143
|
rails (~> 4.2)
|
127
144
|
rake (~> 10.0)
|
145
|
+
rubocop (~> 0.51)
|
128
146
|
sprockets (~> 3)
|
129
147
|
test-unit (~> 3.1)
|
130
148
|
|
131
149
|
BUNDLED WITH
|
132
|
-
1.
|
150
|
+
1.16.0
|
data/gemfiles/rails_5.0.gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
pug-rails (3.0.0
|
5
|
-
pug-ruby (~> 2.0.0
|
4
|
+
pug-rails (3.0.0)
|
5
|
+
pug-ruby (~> 2.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -49,30 +49,36 @@ GEM
|
|
49
49
|
rake
|
50
50
|
thor (>= 0.14.0)
|
51
51
|
arel (8.0.0)
|
52
|
+
ast (2.3.0)
|
52
53
|
builder (3.2.3)
|
53
54
|
concurrent-ruby (1.0.5)
|
54
|
-
|
55
|
+
crass (1.0.2)
|
56
|
+
erubi (1.7.0)
|
55
57
|
execjs (2.7.0)
|
56
|
-
globalid (0.4.
|
58
|
+
globalid (0.4.1)
|
57
59
|
activesupport (>= 4.2.0)
|
58
|
-
i18n (0.
|
59
|
-
|
60
|
+
i18n (0.9.1)
|
61
|
+
concurrent-ruby (~> 1.0)
|
62
|
+
loofah (2.1.1)
|
63
|
+
crass (~> 1.0.2)
|
60
64
|
nokogiri (>= 1.5.9)
|
61
|
-
mail (2.
|
62
|
-
|
65
|
+
mail (2.7.0)
|
66
|
+
mini_mime (>= 0.1.1)
|
63
67
|
memoist (0.16.0)
|
64
68
|
method-not-implemented (1.0.1)
|
65
|
-
method_source (0.
|
66
|
-
|
67
|
-
mime-types-data (~> 3.2015)
|
68
|
-
mime-types-data (3.2016.0521)
|
69
|
+
method_source (0.9.0)
|
70
|
+
mini_mime (1.0.0)
|
69
71
|
mini_portile2 (2.1.0)
|
70
72
|
minitest (5.10.3)
|
71
73
|
nio4r (2.1.0)
|
72
74
|
nokogiri (1.6.8.1)
|
73
75
|
mini_portile2 (~> 2.1.0)
|
74
|
-
|
75
|
-
|
76
|
+
parallel (1.12.0)
|
77
|
+
parser (2.4.0.0)
|
78
|
+
ast (~> 2.2)
|
79
|
+
power_assert (1.1.1)
|
80
|
+
powerpack (0.1.1)
|
81
|
+
pug-ruby (2.0.0)
|
76
82
|
execjs (~> 2.0)
|
77
83
|
memoist (~> 0.15)
|
78
84
|
method-not-implemented (~> 1.0, >= 1.0.1)
|
@@ -103,8 +109,18 @@ GEM
|
|
103
109
|
method_source
|
104
110
|
rake (>= 0.8.7)
|
105
111
|
thor (>= 0.18.1, < 2.0)
|
112
|
+
rainbow (2.2.2)
|
113
|
+
rake
|
106
114
|
rake (10.5.0)
|
107
115
|
regexp-match-polyfill (1.0.2)
|
116
|
+
rubocop (0.51.0)
|
117
|
+
parallel (~> 1.10)
|
118
|
+
parser (>= 2.3.3.1, < 3.0)
|
119
|
+
powerpack (~> 0.1)
|
120
|
+
rainbow (>= 2.2.2, < 3.0)
|
121
|
+
ruby-progressbar (~> 1.7)
|
122
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
123
|
+
ruby-progressbar (1.9.0)
|
108
124
|
sprockets (3.7.1)
|
109
125
|
concurrent-ruby (~> 1.0)
|
110
126
|
rack (> 1, < 3)
|
@@ -112,15 +128,16 @@ GEM
|
|
112
128
|
actionpack (>= 4.0)
|
113
129
|
activesupport (>= 4.0)
|
114
130
|
sprockets (>= 3.0.0)
|
115
|
-
test-unit (3.2.
|
131
|
+
test-unit (3.2.6)
|
116
132
|
power_assert
|
117
133
|
thor (0.20.0)
|
118
134
|
thread_safe (0.3.6)
|
119
|
-
tzinfo (1.2.
|
135
|
+
tzinfo (1.2.4)
|
120
136
|
thread_safe (~> 0.1)
|
137
|
+
unicode-display_width (1.3.0)
|
121
138
|
websocket-driver (0.6.5)
|
122
139
|
websocket-extensions (>= 0.1.0)
|
123
|
-
websocket-extensions (0.1.
|
140
|
+
websocket-extensions (0.1.3)
|
124
141
|
|
125
142
|
PLATFORMS
|
126
143
|
ruby
|
@@ -132,7 +149,8 @@ DEPENDENCIES
|
|
132
149
|
pug-rails!
|
133
150
|
rails (~> 5.0)
|
134
151
|
rake (~> 10.0)
|
152
|
+
rubocop (~> 0.51)
|
135
153
|
test-unit (~> 3.1)
|
136
154
|
|
137
155
|
BUNDLED WITH
|
138
|
-
1.
|
156
|
+
1.16.0
|
data/gemfiles/rails_5.1.gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
pug-rails (3.0.0
|
5
|
-
pug-ruby (~> 2.0.0
|
4
|
+
pug-rails (3.0.0)
|
5
|
+
pug-ruby (~> 2.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -49,30 +49,36 @@ GEM
|
|
49
49
|
rake
|
50
50
|
thor (>= 0.14.0)
|
51
51
|
arel (8.0.0)
|
52
|
+
ast (2.3.0)
|
52
53
|
builder (3.2.3)
|
53
54
|
concurrent-ruby (1.0.5)
|
54
|
-
|
55
|
+
crass (1.0.2)
|
56
|
+
erubi (1.7.0)
|
55
57
|
execjs (2.7.0)
|
56
|
-
globalid (0.4.
|
58
|
+
globalid (0.4.1)
|
57
59
|
activesupport (>= 4.2.0)
|
58
|
-
i18n (0.
|
59
|
-
|
60
|
+
i18n (0.9.1)
|
61
|
+
concurrent-ruby (~> 1.0)
|
62
|
+
loofah (2.1.1)
|
63
|
+
crass (~> 1.0.2)
|
60
64
|
nokogiri (>= 1.5.9)
|
61
|
-
mail (2.
|
62
|
-
|
65
|
+
mail (2.7.0)
|
66
|
+
mini_mime (>= 0.1.1)
|
63
67
|
memoist (0.16.0)
|
64
68
|
method-not-implemented (1.0.1)
|
65
|
-
method_source (0.
|
66
|
-
|
67
|
-
mime-types-data (~> 3.2015)
|
68
|
-
mime-types-data (3.2016.0521)
|
69
|
+
method_source (0.9.0)
|
70
|
+
mini_mime (1.0.0)
|
69
71
|
mini_portile2 (2.1.0)
|
70
72
|
minitest (5.10.3)
|
71
73
|
nio4r (2.1.0)
|
72
74
|
nokogiri (1.6.8.1)
|
73
75
|
mini_portile2 (~> 2.1.0)
|
74
|
-
|
75
|
-
|
76
|
+
parallel (1.12.0)
|
77
|
+
parser (2.4.0.0)
|
78
|
+
ast (~> 2.2)
|
79
|
+
power_assert (1.1.1)
|
80
|
+
powerpack (0.1.1)
|
81
|
+
pug-ruby (2.0.0)
|
76
82
|
execjs (~> 2.0)
|
77
83
|
memoist (~> 0.15)
|
78
84
|
method-not-implemented (~> 1.0, >= 1.0.1)
|
@@ -103,8 +109,18 @@ GEM
|
|
103
109
|
method_source
|
104
110
|
rake (>= 0.8.7)
|
105
111
|
thor (>= 0.18.1, < 2.0)
|
112
|
+
rainbow (2.2.2)
|
113
|
+
rake
|
106
114
|
rake (10.5.0)
|
107
115
|
regexp-match-polyfill (1.0.2)
|
116
|
+
rubocop (0.51.0)
|
117
|
+
parallel (~> 1.10)
|
118
|
+
parser (>= 2.3.3.1, < 3.0)
|
119
|
+
powerpack (~> 0.1)
|
120
|
+
rainbow (>= 2.2.2, < 3.0)
|
121
|
+
ruby-progressbar (~> 1.7)
|
122
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
123
|
+
ruby-progressbar (1.9.0)
|
108
124
|
sprockets (3.7.1)
|
109
125
|
concurrent-ruby (~> 1.0)
|
110
126
|
rack (> 1, < 3)
|
@@ -112,15 +128,16 @@ GEM
|
|
112
128
|
actionpack (>= 4.0)
|
113
129
|
activesupport (>= 4.0)
|
114
130
|
sprockets (>= 3.0.0)
|
115
|
-
test-unit (3.2.
|
131
|
+
test-unit (3.2.6)
|
116
132
|
power_assert
|
117
133
|
thor (0.20.0)
|
118
134
|
thread_safe (0.3.6)
|
119
|
-
tzinfo (1.2.
|
135
|
+
tzinfo (1.2.4)
|
120
136
|
thread_safe (~> 0.1)
|
137
|
+
unicode-display_width (1.3.0)
|
121
138
|
websocket-driver (0.6.5)
|
122
139
|
websocket-extensions (>= 0.1.0)
|
123
|
-
websocket-extensions (0.1.
|
140
|
+
websocket-extensions (0.1.3)
|
124
141
|
|
125
142
|
PLATFORMS
|
126
143
|
ruby
|
@@ -132,7 +149,8 @@ DEPENDENCIES
|
|
132
149
|
pug-rails!
|
133
150
|
rails (~> 5.1)
|
134
151
|
rake (~> 10.0)
|
152
|
+
rubocop (~> 0.51)
|
135
153
|
test-unit (~> 3.1)
|
136
154
|
|
137
155
|
BUNDLED WITH
|
138
|
-
1.
|
156
|
+
1.16.0
|
data/lib/jade-rails/railtie.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Jade
|
5
|
+
# :nodoc:
|
5
6
|
class Railtie < Rails::Railtie
|
6
7
|
config.jade = Jade.config
|
7
8
|
config.jade.pretty = Rails.env.development?
|
@@ -33,6 +34,7 @@ module Jade
|
|
33
34
|
end
|
34
35
|
|
35
36
|
private
|
37
|
+
|
36
38
|
def access_assets_config(app)
|
37
39
|
yield app.config.assets
|
38
40
|
end
|