curly-templates 2.6.5 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +58 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +1 -14
- data/README.md +2 -3
- data/curly-templates.gemspec +3 -4
- data/gemfiles/common.rb +13 -0
- data/gemfiles/rails4.2.gemfile +4 -0
- data/gemfiles/rails4.2.gemfile.lock +172 -0
- data/gemfiles/rails5.1.gemfile +4 -0
- data/gemfiles/rails5.1.gemfile.lock +179 -0
- data/gemfiles/rails5.2.gemfile +4 -0
- data/gemfiles/rails5.2.gemfile.lock +185 -0
- data/gemfiles/rails6.0.gemfile +4 -0
- data/gemfiles/rails6.0.gemfile.lock +207 -0
- data/gemfiles/rails6.1.gemfile +4 -0
- data/gemfiles/rails6.1.gemfile.lock +210 -0
- data/gemfiles/rails7.0.gemfile +4 -0
- data/gemfiles/rails7.0.gemfile.lock +218 -0
- data/lib/curly/presenter.rb +1 -0
- data/lib/curly/template_handler.rb +20 -8
- data/lib/curly/version.rb +1 -1
- metadata +39 -42
- data/.travis.yml +0 -3
- data/circle.yml +0 -9
@@ -0,0 +1,207 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/zendesk/genspec.git
|
3
|
+
revision: 228a684f3d4f7e1499c55feb7b022681ad1af342
|
4
|
+
branch: rails-7
|
5
|
+
specs:
|
6
|
+
genspec (0.3.2)
|
7
|
+
rspec (>= 2, < 4)
|
8
|
+
thor
|
9
|
+
|
10
|
+
PATH
|
11
|
+
remote: ..
|
12
|
+
specs:
|
13
|
+
curly-templates (3.1.0)
|
14
|
+
actionpack (>= 4.2, < 7.1)
|
15
|
+
sorted_set
|
16
|
+
|
17
|
+
GEM
|
18
|
+
remote: https://rubygems.org/
|
19
|
+
specs:
|
20
|
+
actioncable (6.0.6)
|
21
|
+
actionpack (= 6.0.6)
|
22
|
+
nio4r (~> 2.0)
|
23
|
+
websocket-driver (>= 0.6.1)
|
24
|
+
actionmailbox (6.0.6)
|
25
|
+
actionpack (= 6.0.6)
|
26
|
+
activejob (= 6.0.6)
|
27
|
+
activerecord (= 6.0.6)
|
28
|
+
activestorage (= 6.0.6)
|
29
|
+
activesupport (= 6.0.6)
|
30
|
+
mail (>= 2.7.1)
|
31
|
+
actionmailer (6.0.6)
|
32
|
+
actionpack (= 6.0.6)
|
33
|
+
actionview (= 6.0.6)
|
34
|
+
activejob (= 6.0.6)
|
35
|
+
mail (~> 2.5, >= 2.5.4)
|
36
|
+
rails-dom-testing (~> 2.0)
|
37
|
+
actionpack (6.0.6)
|
38
|
+
actionview (= 6.0.6)
|
39
|
+
activesupport (= 6.0.6)
|
40
|
+
rack (~> 2.0, >= 2.0.8)
|
41
|
+
rack-test (>= 0.6.3)
|
42
|
+
rails-dom-testing (~> 2.0)
|
43
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
44
|
+
actiontext (6.0.6)
|
45
|
+
actionpack (= 6.0.6)
|
46
|
+
activerecord (= 6.0.6)
|
47
|
+
activestorage (= 6.0.6)
|
48
|
+
activesupport (= 6.0.6)
|
49
|
+
nokogiri (>= 1.8.5)
|
50
|
+
actionview (6.0.6)
|
51
|
+
activesupport (= 6.0.6)
|
52
|
+
builder (~> 3.1)
|
53
|
+
erubi (~> 1.4)
|
54
|
+
rails-dom-testing (~> 2.0)
|
55
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
56
|
+
activejob (6.0.6)
|
57
|
+
activesupport (= 6.0.6)
|
58
|
+
globalid (>= 0.3.6)
|
59
|
+
activemodel (6.0.6)
|
60
|
+
activesupport (= 6.0.6)
|
61
|
+
activerecord (6.0.6)
|
62
|
+
activemodel (= 6.0.6)
|
63
|
+
activesupport (= 6.0.6)
|
64
|
+
activestorage (6.0.6)
|
65
|
+
actionpack (= 6.0.6)
|
66
|
+
activejob (= 6.0.6)
|
67
|
+
activerecord (= 6.0.6)
|
68
|
+
marcel (~> 1.0)
|
69
|
+
activesupport (6.0.6)
|
70
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
71
|
+
i18n (>= 0.7, < 2)
|
72
|
+
minitest (~> 5.1)
|
73
|
+
tzinfo (~> 1.1)
|
74
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
75
|
+
benchmark-ips (2.10.0)
|
76
|
+
builder (3.2.4)
|
77
|
+
concurrent-ruby (1.1.10)
|
78
|
+
crass (1.0.6)
|
79
|
+
diff-lcs (1.5.0)
|
80
|
+
erubi (1.11.0)
|
81
|
+
github-markup (4.0.1)
|
82
|
+
globalid (1.0.0)
|
83
|
+
activesupport (>= 5.0)
|
84
|
+
i18n (1.12.0)
|
85
|
+
concurrent-ruby (~> 1.0)
|
86
|
+
loofah (2.19.0)
|
87
|
+
crass (~> 1.0.2)
|
88
|
+
nokogiri (>= 1.5.9)
|
89
|
+
mail (2.7.1)
|
90
|
+
mini_mime (>= 0.1.1)
|
91
|
+
marcel (1.0.2)
|
92
|
+
method_source (1.0.0)
|
93
|
+
mini_mime (1.1.2)
|
94
|
+
mini_portile2 (2.8.0)
|
95
|
+
minitest (5.16.3)
|
96
|
+
nio4r (2.5.8)
|
97
|
+
nokogiri (1.13.9)
|
98
|
+
mini_portile2 (~> 2.8.0)
|
99
|
+
racc (~> 1.4)
|
100
|
+
nokogiri (1.13.9-x86_64-darwin)
|
101
|
+
racc (~> 1.4)
|
102
|
+
nokogiri (1.13.9-x86_64-linux)
|
103
|
+
racc (~> 1.4)
|
104
|
+
racc (1.6.0)
|
105
|
+
rack (2.2.4)
|
106
|
+
rack-test (2.0.2)
|
107
|
+
rack (>= 1.3)
|
108
|
+
rails (6.0.6)
|
109
|
+
actioncable (= 6.0.6)
|
110
|
+
actionmailbox (= 6.0.6)
|
111
|
+
actionmailer (= 6.0.6)
|
112
|
+
actionpack (= 6.0.6)
|
113
|
+
actiontext (= 6.0.6)
|
114
|
+
actionview (= 6.0.6)
|
115
|
+
activejob (= 6.0.6)
|
116
|
+
activemodel (= 6.0.6)
|
117
|
+
activerecord (= 6.0.6)
|
118
|
+
activestorage (= 6.0.6)
|
119
|
+
activesupport (= 6.0.6)
|
120
|
+
bundler (>= 1.3.0)
|
121
|
+
railties (= 6.0.6)
|
122
|
+
sprockets-rails (>= 2.0.0)
|
123
|
+
rails-dom-testing (2.0.3)
|
124
|
+
activesupport (>= 4.2.0)
|
125
|
+
nokogiri (>= 1.6)
|
126
|
+
rails-html-sanitizer (1.4.3)
|
127
|
+
loofah (~> 2.3)
|
128
|
+
railties (6.0.6)
|
129
|
+
actionpack (= 6.0.6)
|
130
|
+
activesupport (= 6.0.6)
|
131
|
+
method_source
|
132
|
+
rake (>= 0.8.7)
|
133
|
+
thor (>= 0.20.3, < 2.0)
|
134
|
+
rake (13.0.6)
|
135
|
+
rbtree (0.4.5)
|
136
|
+
redcarpet (3.5.1)
|
137
|
+
rspec (3.12.0)
|
138
|
+
rspec-core (~> 3.12.0)
|
139
|
+
rspec-expectations (~> 3.12.0)
|
140
|
+
rspec-mocks (~> 3.12.0)
|
141
|
+
rspec-core (3.12.0)
|
142
|
+
rspec-support (~> 3.12.0)
|
143
|
+
rspec-expectations (3.12.0)
|
144
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
145
|
+
rspec-support (~> 3.12.0)
|
146
|
+
rspec-mocks (3.12.0)
|
147
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
148
|
+
rspec-support (~> 3.12.0)
|
149
|
+
rspec-rails (5.1.2)
|
150
|
+
actionpack (>= 5.2)
|
151
|
+
activesupport (>= 5.2)
|
152
|
+
railties (>= 5.2)
|
153
|
+
rspec-core (~> 3.10)
|
154
|
+
rspec-expectations (~> 3.10)
|
155
|
+
rspec-mocks (~> 3.10)
|
156
|
+
rspec-support (~> 3.10)
|
157
|
+
rspec-support (3.12.0)
|
158
|
+
set (1.0.3)
|
159
|
+
sorted_set (1.0.3)
|
160
|
+
rbtree
|
161
|
+
set (~> 1.0)
|
162
|
+
sprockets (4.1.1)
|
163
|
+
concurrent-ruby (~> 1.0)
|
164
|
+
rack (> 1, < 3)
|
165
|
+
sprockets-rails (3.4.2)
|
166
|
+
actionpack (>= 5.2)
|
167
|
+
activesupport (>= 5.2)
|
168
|
+
sprockets (>= 3.0.0)
|
169
|
+
stackprof (0.2.22)
|
170
|
+
thor (1.2.1)
|
171
|
+
thread_safe (0.3.6)
|
172
|
+
tomparse (0.4.2)
|
173
|
+
tzinfo (1.2.10)
|
174
|
+
thread_safe (~> 0.1)
|
175
|
+
webrick (1.7.0)
|
176
|
+
websocket-driver (0.7.5)
|
177
|
+
websocket-extensions (>= 0.1.0)
|
178
|
+
websocket-extensions (0.1.5)
|
179
|
+
yard (0.9.28)
|
180
|
+
webrick (~> 1.7.0)
|
181
|
+
yard-tomdoc (0.7.1)
|
182
|
+
tomparse (>= 0.4.0)
|
183
|
+
yard
|
184
|
+
zeitwerk (2.6.6)
|
185
|
+
|
186
|
+
PLATFORMS
|
187
|
+
ruby
|
188
|
+
x86_64-darwin
|
189
|
+
x86_64-linux
|
190
|
+
|
191
|
+
DEPENDENCIES
|
192
|
+
benchmark-ips
|
193
|
+
curly-templates!
|
194
|
+
genspec!
|
195
|
+
github-markup
|
196
|
+
rails (~> 6.0.0)
|
197
|
+
railties (>= 4.2, < 7.1)
|
198
|
+
rake
|
199
|
+
redcarpet
|
200
|
+
rspec (>= 3)
|
201
|
+
rspec-rails
|
202
|
+
stackprof
|
203
|
+
yard
|
204
|
+
yard-tomdoc
|
205
|
+
|
206
|
+
BUNDLED WITH
|
207
|
+
2.3.25
|
@@ -0,0 +1,210 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/zendesk/genspec.git
|
3
|
+
revision: 228a684f3d4f7e1499c55feb7b022681ad1af342
|
4
|
+
branch: rails-7
|
5
|
+
specs:
|
6
|
+
genspec (0.3.2)
|
7
|
+
rspec (>= 2, < 4)
|
8
|
+
thor
|
9
|
+
|
10
|
+
PATH
|
11
|
+
remote: ..
|
12
|
+
specs:
|
13
|
+
curly-templates (3.1.0)
|
14
|
+
actionpack (>= 4.2, < 7.1)
|
15
|
+
sorted_set
|
16
|
+
|
17
|
+
GEM
|
18
|
+
remote: https://rubygems.org/
|
19
|
+
specs:
|
20
|
+
actioncable (6.1.7)
|
21
|
+
actionpack (= 6.1.7)
|
22
|
+
activesupport (= 6.1.7)
|
23
|
+
nio4r (~> 2.0)
|
24
|
+
websocket-driver (>= 0.6.1)
|
25
|
+
actionmailbox (6.1.7)
|
26
|
+
actionpack (= 6.1.7)
|
27
|
+
activejob (= 6.1.7)
|
28
|
+
activerecord (= 6.1.7)
|
29
|
+
activestorage (= 6.1.7)
|
30
|
+
activesupport (= 6.1.7)
|
31
|
+
mail (>= 2.7.1)
|
32
|
+
actionmailer (6.1.7)
|
33
|
+
actionpack (= 6.1.7)
|
34
|
+
actionview (= 6.1.7)
|
35
|
+
activejob (= 6.1.7)
|
36
|
+
activesupport (= 6.1.7)
|
37
|
+
mail (~> 2.5, >= 2.5.4)
|
38
|
+
rails-dom-testing (~> 2.0)
|
39
|
+
actionpack (6.1.7)
|
40
|
+
actionview (= 6.1.7)
|
41
|
+
activesupport (= 6.1.7)
|
42
|
+
rack (~> 2.0, >= 2.0.9)
|
43
|
+
rack-test (>= 0.6.3)
|
44
|
+
rails-dom-testing (~> 2.0)
|
45
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
46
|
+
actiontext (6.1.7)
|
47
|
+
actionpack (= 6.1.7)
|
48
|
+
activerecord (= 6.1.7)
|
49
|
+
activestorage (= 6.1.7)
|
50
|
+
activesupport (= 6.1.7)
|
51
|
+
nokogiri (>= 1.8.5)
|
52
|
+
actionview (6.1.7)
|
53
|
+
activesupport (= 6.1.7)
|
54
|
+
builder (~> 3.1)
|
55
|
+
erubi (~> 1.4)
|
56
|
+
rails-dom-testing (~> 2.0)
|
57
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
58
|
+
activejob (6.1.7)
|
59
|
+
activesupport (= 6.1.7)
|
60
|
+
globalid (>= 0.3.6)
|
61
|
+
activemodel (6.1.7)
|
62
|
+
activesupport (= 6.1.7)
|
63
|
+
activerecord (6.1.7)
|
64
|
+
activemodel (= 6.1.7)
|
65
|
+
activesupport (= 6.1.7)
|
66
|
+
activestorage (6.1.7)
|
67
|
+
actionpack (= 6.1.7)
|
68
|
+
activejob (= 6.1.7)
|
69
|
+
activerecord (= 6.1.7)
|
70
|
+
activesupport (= 6.1.7)
|
71
|
+
marcel (~> 1.0)
|
72
|
+
mini_mime (>= 1.1.0)
|
73
|
+
activesupport (6.1.7)
|
74
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
75
|
+
i18n (>= 1.6, < 2)
|
76
|
+
minitest (>= 5.1)
|
77
|
+
tzinfo (~> 2.0)
|
78
|
+
zeitwerk (~> 2.3)
|
79
|
+
benchmark-ips (2.10.0)
|
80
|
+
builder (3.2.4)
|
81
|
+
concurrent-ruby (1.1.10)
|
82
|
+
crass (1.0.6)
|
83
|
+
diff-lcs (1.5.0)
|
84
|
+
erubi (1.11.0)
|
85
|
+
github-markup (4.0.1)
|
86
|
+
globalid (1.0.0)
|
87
|
+
activesupport (>= 5.0)
|
88
|
+
i18n (1.12.0)
|
89
|
+
concurrent-ruby (~> 1.0)
|
90
|
+
loofah (2.19.0)
|
91
|
+
crass (~> 1.0.2)
|
92
|
+
nokogiri (>= 1.5.9)
|
93
|
+
mail (2.7.1)
|
94
|
+
mini_mime (>= 0.1.1)
|
95
|
+
marcel (1.0.2)
|
96
|
+
method_source (1.0.0)
|
97
|
+
mini_mime (1.1.2)
|
98
|
+
mini_portile2 (2.8.0)
|
99
|
+
minitest (5.16.3)
|
100
|
+
nio4r (2.5.8)
|
101
|
+
nokogiri (1.13.9)
|
102
|
+
mini_portile2 (~> 2.8.0)
|
103
|
+
racc (~> 1.4)
|
104
|
+
nokogiri (1.13.9-x86_64-darwin)
|
105
|
+
racc (~> 1.4)
|
106
|
+
nokogiri (1.13.9-x86_64-linux)
|
107
|
+
racc (~> 1.4)
|
108
|
+
racc (1.6.0)
|
109
|
+
rack (2.2.4)
|
110
|
+
rack-test (2.0.2)
|
111
|
+
rack (>= 1.3)
|
112
|
+
rails (6.1.7)
|
113
|
+
actioncable (= 6.1.7)
|
114
|
+
actionmailbox (= 6.1.7)
|
115
|
+
actionmailer (= 6.1.7)
|
116
|
+
actionpack (= 6.1.7)
|
117
|
+
actiontext (= 6.1.7)
|
118
|
+
actionview (= 6.1.7)
|
119
|
+
activejob (= 6.1.7)
|
120
|
+
activemodel (= 6.1.7)
|
121
|
+
activerecord (= 6.1.7)
|
122
|
+
activestorage (= 6.1.7)
|
123
|
+
activesupport (= 6.1.7)
|
124
|
+
bundler (>= 1.15.0)
|
125
|
+
railties (= 6.1.7)
|
126
|
+
sprockets-rails (>= 2.0.0)
|
127
|
+
rails-dom-testing (2.0.3)
|
128
|
+
activesupport (>= 4.2.0)
|
129
|
+
nokogiri (>= 1.6)
|
130
|
+
rails-html-sanitizer (1.4.3)
|
131
|
+
loofah (~> 2.3)
|
132
|
+
railties (6.1.7)
|
133
|
+
actionpack (= 6.1.7)
|
134
|
+
activesupport (= 6.1.7)
|
135
|
+
method_source
|
136
|
+
rake (>= 12.2)
|
137
|
+
thor (~> 1.0)
|
138
|
+
rake (13.0.6)
|
139
|
+
rbtree (0.4.5)
|
140
|
+
redcarpet (3.5.1)
|
141
|
+
rspec (3.12.0)
|
142
|
+
rspec-core (~> 3.12.0)
|
143
|
+
rspec-expectations (~> 3.12.0)
|
144
|
+
rspec-mocks (~> 3.12.0)
|
145
|
+
rspec-core (3.12.0)
|
146
|
+
rspec-support (~> 3.12.0)
|
147
|
+
rspec-expectations (3.12.0)
|
148
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
149
|
+
rspec-support (~> 3.12.0)
|
150
|
+
rspec-mocks (3.12.0)
|
151
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
152
|
+
rspec-support (~> 3.12.0)
|
153
|
+
rspec-rails (6.0.1)
|
154
|
+
actionpack (>= 6.1)
|
155
|
+
activesupport (>= 6.1)
|
156
|
+
railties (>= 6.1)
|
157
|
+
rspec-core (~> 3.11)
|
158
|
+
rspec-expectations (~> 3.11)
|
159
|
+
rspec-mocks (~> 3.11)
|
160
|
+
rspec-support (~> 3.11)
|
161
|
+
rspec-support (3.12.0)
|
162
|
+
set (1.0.3)
|
163
|
+
sorted_set (1.0.3)
|
164
|
+
rbtree
|
165
|
+
set (~> 1.0)
|
166
|
+
sprockets (4.1.1)
|
167
|
+
concurrent-ruby (~> 1.0)
|
168
|
+
rack (> 1, < 3)
|
169
|
+
sprockets-rails (3.4.2)
|
170
|
+
actionpack (>= 5.2)
|
171
|
+
activesupport (>= 5.2)
|
172
|
+
sprockets (>= 3.0.0)
|
173
|
+
stackprof (0.2.22)
|
174
|
+
thor (1.2.1)
|
175
|
+
tomparse (0.4.2)
|
176
|
+
tzinfo (2.0.5)
|
177
|
+
concurrent-ruby (~> 1.0)
|
178
|
+
webrick (1.7.0)
|
179
|
+
websocket-driver (0.7.5)
|
180
|
+
websocket-extensions (>= 0.1.0)
|
181
|
+
websocket-extensions (0.1.5)
|
182
|
+
yard (0.9.28)
|
183
|
+
webrick (~> 1.7.0)
|
184
|
+
yard-tomdoc (0.7.1)
|
185
|
+
tomparse (>= 0.4.0)
|
186
|
+
yard
|
187
|
+
zeitwerk (2.6.6)
|
188
|
+
|
189
|
+
PLATFORMS
|
190
|
+
ruby
|
191
|
+
x86_64-darwin
|
192
|
+
x86_64-linux
|
193
|
+
|
194
|
+
DEPENDENCIES
|
195
|
+
benchmark-ips
|
196
|
+
curly-templates!
|
197
|
+
genspec!
|
198
|
+
github-markup
|
199
|
+
rails (~> 6.1.0)
|
200
|
+
railties (>= 4.2, < 7.1)
|
201
|
+
rake
|
202
|
+
redcarpet
|
203
|
+
rspec (>= 3)
|
204
|
+
rspec-rails
|
205
|
+
stackprof
|
206
|
+
yard
|
207
|
+
yard-tomdoc
|
208
|
+
|
209
|
+
BUNDLED WITH
|
210
|
+
2.3.25
|
@@ -0,0 +1,218 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/zendesk/genspec.git
|
3
|
+
revision: 228a684f3d4f7e1499c55feb7b022681ad1af342
|
4
|
+
branch: rails-7
|
5
|
+
specs:
|
6
|
+
genspec (0.3.2)
|
7
|
+
rspec (>= 2, < 4)
|
8
|
+
thor
|
9
|
+
|
10
|
+
PATH
|
11
|
+
remote: ..
|
12
|
+
specs:
|
13
|
+
curly-templates (3.1.0)
|
14
|
+
actionpack (>= 4.2, < 7.1)
|
15
|
+
sorted_set
|
16
|
+
|
17
|
+
GEM
|
18
|
+
remote: https://rubygems.org/
|
19
|
+
specs:
|
20
|
+
actioncable (7.0.4)
|
21
|
+
actionpack (= 7.0.4)
|
22
|
+
activesupport (= 7.0.4)
|
23
|
+
nio4r (~> 2.0)
|
24
|
+
websocket-driver (>= 0.6.1)
|
25
|
+
actionmailbox (7.0.4)
|
26
|
+
actionpack (= 7.0.4)
|
27
|
+
activejob (= 7.0.4)
|
28
|
+
activerecord (= 7.0.4)
|
29
|
+
activestorage (= 7.0.4)
|
30
|
+
activesupport (= 7.0.4)
|
31
|
+
mail (>= 2.7.1)
|
32
|
+
net-imap
|
33
|
+
net-pop
|
34
|
+
net-smtp
|
35
|
+
actionmailer (7.0.4)
|
36
|
+
actionpack (= 7.0.4)
|
37
|
+
actionview (= 7.0.4)
|
38
|
+
activejob (= 7.0.4)
|
39
|
+
activesupport (= 7.0.4)
|
40
|
+
mail (~> 2.5, >= 2.5.4)
|
41
|
+
net-imap
|
42
|
+
net-pop
|
43
|
+
net-smtp
|
44
|
+
rails-dom-testing (~> 2.0)
|
45
|
+
actionpack (7.0.4)
|
46
|
+
actionview (= 7.0.4)
|
47
|
+
activesupport (= 7.0.4)
|
48
|
+
rack (~> 2.0, >= 2.2.0)
|
49
|
+
rack-test (>= 0.6.3)
|
50
|
+
rails-dom-testing (~> 2.0)
|
51
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
52
|
+
actiontext (7.0.4)
|
53
|
+
actionpack (= 7.0.4)
|
54
|
+
activerecord (= 7.0.4)
|
55
|
+
activestorage (= 7.0.4)
|
56
|
+
activesupport (= 7.0.4)
|
57
|
+
globalid (>= 0.6.0)
|
58
|
+
nokogiri (>= 1.8.5)
|
59
|
+
actionview (7.0.4)
|
60
|
+
activesupport (= 7.0.4)
|
61
|
+
builder (~> 3.1)
|
62
|
+
erubi (~> 1.4)
|
63
|
+
rails-dom-testing (~> 2.0)
|
64
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
65
|
+
activejob (7.0.4)
|
66
|
+
activesupport (= 7.0.4)
|
67
|
+
globalid (>= 0.3.6)
|
68
|
+
activemodel (7.0.4)
|
69
|
+
activesupport (= 7.0.4)
|
70
|
+
activerecord (7.0.4)
|
71
|
+
activemodel (= 7.0.4)
|
72
|
+
activesupport (= 7.0.4)
|
73
|
+
activestorage (7.0.4)
|
74
|
+
actionpack (= 7.0.4)
|
75
|
+
activejob (= 7.0.4)
|
76
|
+
activerecord (= 7.0.4)
|
77
|
+
activesupport (= 7.0.4)
|
78
|
+
marcel (~> 1.0)
|
79
|
+
mini_mime (>= 1.1.0)
|
80
|
+
activesupport (7.0.4)
|
81
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
82
|
+
i18n (>= 1.6, < 2)
|
83
|
+
minitest (>= 5.1)
|
84
|
+
tzinfo (~> 2.0)
|
85
|
+
benchmark-ips (2.10.0)
|
86
|
+
builder (3.2.4)
|
87
|
+
concurrent-ruby (1.1.10)
|
88
|
+
crass (1.0.6)
|
89
|
+
diff-lcs (1.5.0)
|
90
|
+
erubi (1.11.0)
|
91
|
+
github-markup (4.0.1)
|
92
|
+
globalid (1.0.0)
|
93
|
+
activesupport (>= 5.0)
|
94
|
+
i18n (1.12.0)
|
95
|
+
concurrent-ruby (~> 1.0)
|
96
|
+
loofah (2.19.0)
|
97
|
+
crass (~> 1.0.2)
|
98
|
+
nokogiri (>= 1.5.9)
|
99
|
+
mail (2.7.1)
|
100
|
+
mini_mime (>= 0.1.1)
|
101
|
+
marcel (1.0.2)
|
102
|
+
method_source (1.0.0)
|
103
|
+
mini_mime (1.1.2)
|
104
|
+
mini_portile2 (2.8.0)
|
105
|
+
minitest (5.16.3)
|
106
|
+
net-imap (0.3.1)
|
107
|
+
net-protocol
|
108
|
+
net-pop (0.1.2)
|
109
|
+
net-protocol
|
110
|
+
net-protocol (0.1.3)
|
111
|
+
timeout
|
112
|
+
net-smtp (0.3.3)
|
113
|
+
net-protocol
|
114
|
+
nio4r (2.5.8)
|
115
|
+
nokogiri (1.13.9)
|
116
|
+
mini_portile2 (~> 2.8.0)
|
117
|
+
racc (~> 1.4)
|
118
|
+
nokogiri (1.13.9-x86_64-darwin)
|
119
|
+
racc (~> 1.4)
|
120
|
+
nokogiri (1.13.9-x86_64-linux)
|
121
|
+
racc (~> 1.4)
|
122
|
+
racc (1.6.0)
|
123
|
+
rack (2.2.4)
|
124
|
+
rack-test (2.0.2)
|
125
|
+
rack (>= 1.3)
|
126
|
+
rails (7.0.4)
|
127
|
+
actioncable (= 7.0.4)
|
128
|
+
actionmailbox (= 7.0.4)
|
129
|
+
actionmailer (= 7.0.4)
|
130
|
+
actionpack (= 7.0.4)
|
131
|
+
actiontext (= 7.0.4)
|
132
|
+
actionview (= 7.0.4)
|
133
|
+
activejob (= 7.0.4)
|
134
|
+
activemodel (= 7.0.4)
|
135
|
+
activerecord (= 7.0.4)
|
136
|
+
activestorage (= 7.0.4)
|
137
|
+
activesupport (= 7.0.4)
|
138
|
+
bundler (>= 1.15.0)
|
139
|
+
railties (= 7.0.4)
|
140
|
+
rails-dom-testing (2.0.3)
|
141
|
+
activesupport (>= 4.2.0)
|
142
|
+
nokogiri (>= 1.6)
|
143
|
+
rails-html-sanitizer (1.4.3)
|
144
|
+
loofah (~> 2.3)
|
145
|
+
railties (7.0.4)
|
146
|
+
actionpack (= 7.0.4)
|
147
|
+
activesupport (= 7.0.4)
|
148
|
+
method_source
|
149
|
+
rake (>= 12.2)
|
150
|
+
thor (~> 1.0)
|
151
|
+
zeitwerk (~> 2.5)
|
152
|
+
rake (13.0.6)
|
153
|
+
rbtree (0.4.5)
|
154
|
+
redcarpet (3.5.1)
|
155
|
+
rspec (3.12.0)
|
156
|
+
rspec-core (~> 3.12.0)
|
157
|
+
rspec-expectations (~> 3.12.0)
|
158
|
+
rspec-mocks (~> 3.12.0)
|
159
|
+
rspec-core (3.12.0)
|
160
|
+
rspec-support (~> 3.12.0)
|
161
|
+
rspec-expectations (3.12.0)
|
162
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
163
|
+
rspec-support (~> 3.12.0)
|
164
|
+
rspec-mocks (3.12.0)
|
165
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
166
|
+
rspec-support (~> 3.12.0)
|
167
|
+
rspec-rails (6.0.1)
|
168
|
+
actionpack (>= 6.1)
|
169
|
+
activesupport (>= 6.1)
|
170
|
+
railties (>= 6.1)
|
171
|
+
rspec-core (~> 3.11)
|
172
|
+
rspec-expectations (~> 3.11)
|
173
|
+
rspec-mocks (~> 3.11)
|
174
|
+
rspec-support (~> 3.11)
|
175
|
+
rspec-support (3.12.0)
|
176
|
+
set (1.0.3)
|
177
|
+
sorted_set (1.0.3)
|
178
|
+
rbtree
|
179
|
+
set (~> 1.0)
|
180
|
+
stackprof (0.2.22)
|
181
|
+
thor (1.2.1)
|
182
|
+
timeout (0.3.0)
|
183
|
+
tomparse (0.4.2)
|
184
|
+
tzinfo (2.0.5)
|
185
|
+
concurrent-ruby (~> 1.0)
|
186
|
+
webrick (1.7.0)
|
187
|
+
websocket-driver (0.7.5)
|
188
|
+
websocket-extensions (>= 0.1.0)
|
189
|
+
websocket-extensions (0.1.5)
|
190
|
+
yard (0.9.28)
|
191
|
+
webrick (~> 1.7.0)
|
192
|
+
yard-tomdoc (0.7.1)
|
193
|
+
tomparse (>= 0.4.0)
|
194
|
+
yard
|
195
|
+
zeitwerk (2.6.6)
|
196
|
+
|
197
|
+
PLATFORMS
|
198
|
+
ruby
|
199
|
+
x86_64-darwin
|
200
|
+
x86_64-linux
|
201
|
+
|
202
|
+
DEPENDENCIES
|
203
|
+
benchmark-ips
|
204
|
+
curly-templates!
|
205
|
+
genspec!
|
206
|
+
github-markup
|
207
|
+
rails (~> 7.0.0)
|
208
|
+
railties (>= 4.2, < 7.1)
|
209
|
+
rake
|
210
|
+
redcarpet
|
211
|
+
rspec (>= 3)
|
212
|
+
rspec-rails
|
213
|
+
stackprof
|
214
|
+
yard
|
215
|
+
yard-tomdoc
|
216
|
+
|
217
|
+
BUNDLED WITH
|
218
|
+
2.3.25
|
data/lib/curly/presenter.rb
CHANGED
@@ -13,9 +13,17 @@ class Curly::TemplateHandler
|
|
13
13
|
# template - The ActionView::Template template that should be compiled.
|
14
14
|
#
|
15
15
|
# Returns a String containing the Ruby code representing the template.
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
if ActionView::VERSION::MAJOR < 6
|
17
|
+
def call(template)
|
18
|
+
instrument(template) do
|
19
|
+
compile_for_actionview5(template)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
else
|
23
|
+
def call(template, source)
|
24
|
+
instrument(template) do
|
25
|
+
compile(template, source)
|
26
|
+
end
|
19
27
|
end
|
20
28
|
end
|
21
29
|
|
@@ -40,16 +48,20 @@ class Curly::TemplateHandler
|
|
40
48
|
|
41
49
|
private
|
42
50
|
|
43
|
-
def
|
44
|
-
|
45
|
-
|
51
|
+
def compile_for_actionview5(template)
|
52
|
+
compile(template, template.source)
|
53
|
+
end
|
54
|
+
|
55
|
+
def compile(template, source)
|
56
|
+
# Template source is empty, so there's no need to initialize a presenter.
|
57
|
+
return %("") if source.empty?
|
46
58
|
|
47
59
|
path = template.virtual_path
|
48
60
|
presenter_class = Curly::Presenter.presenter_for_path(path)
|
49
61
|
|
50
62
|
raise Curly::PresenterNotFound.new(path) if presenter_class.nil?
|
51
63
|
|
52
|
-
|
64
|
+
compiled_source = Curly.compile(source, presenter_class)
|
53
65
|
|
54
66
|
<<-RUBY
|
55
67
|
if local_assigns.empty?
|
@@ -64,7 +76,7 @@ class Curly::TemplateHandler
|
|
64
76
|
@output_buffer = output_buffer || ActiveSupport::SafeBuffer.new
|
65
77
|
|
66
78
|
Curly::TemplateHandler.cache_if_key_is_not_nil(self, presenter) do
|
67
|
-
result = #{
|
79
|
+
result = #{compiled_source}
|
68
80
|
safe_concat(result)
|
69
81
|
end
|
70
82
|
|
data/lib/curly/version.rb
CHANGED