middleman-sprockets 3.0.1.pre → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/features/jst.feature +14 -0
- data/fixtures/sprockets-app2/source/javascripts/_templates/test.jst.ejs +1 -0
- data/fixtures/sprockets-app2/source/javascripts/_templates/test2.jst.eco +1 -0
- data/fixtures/sprockets-app2/source/javascripts/templates.js +1 -0
- data/lib/middleman-sprockets/extension.rb +3 -0
- data/lib/middleman-sprockets/version.rb +1 -1
- data/middleman-sprockets.gemspec +1 -1
- metadata +20 -9
data/Gemfile
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
Feature: Sprockets JST
|
2
|
+
|
3
|
+
Scenario: EJS
|
4
|
+
Given the Server is running at "sprockets-app2"
|
5
|
+
When I go to "/javascripts/templates.js"
|
6
|
+
Then I should see '["_templates/test"] = function'
|
7
|
+
And I should see '["_templates/test2"] = function'
|
8
|
+
|
9
|
+
Scenario: Multiple engine files should build correctly
|
10
|
+
Given a successfully built app at "sprockets-app2"
|
11
|
+
When I cd to "build"
|
12
|
+
Then a file named "javascripts/templates.js" should exist
|
13
|
+
And the file "javascripts/templates.js" should contain '["_templates/test"] = function'
|
14
|
+
And the file "javascripts/templates.js" should contain '["_templates/test2"] = function'
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= 'hello' %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= 'world' %>
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree "./_templates"
|
@@ -21,6 +21,9 @@ module Middleman::Sprockets
|
|
21
21
|
|
22
22
|
# Once Middleman is setup
|
23
23
|
app.ready do
|
24
|
+
::Tilt.register ::Sprockets::EjsTemplate, 'ejs'
|
25
|
+
::Tilt.register ::Sprockets::EcoTemplate, 'eco'
|
26
|
+
|
24
27
|
# Add any gems with (vendor|app|.)/assets/javascripts to paths
|
25
28
|
# also add similar directories from project root (like in rails)
|
26
29
|
try_paths = [
|
data/middleman-sprockets.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_dependency("middleman-more", "~> 3.0.
|
21
|
+
s.add_dependency("middleman-more", "~> 3.0.1")
|
22
22
|
s.add_dependency("sprockets", ["~> 2.1"])
|
23
23
|
s.add_dependency("sprockets-sass", ["~> 0.8.0"])
|
24
24
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.1
|
5
|
-
prerelease:
|
4
|
+
version: 3.0.1
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Thomas Reynolds
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-more
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.0.
|
21
|
+
version: 3.0.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.0.
|
29
|
+
version: 3.0.1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sprockets
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- README.md
|
74
74
|
- Rakefile
|
75
75
|
- features/asset_hash.feature
|
76
|
+
- features/jst.feature
|
76
77
|
- features/sass_partials.feature
|
77
78
|
- features/sprockets.feature
|
78
79
|
- features/sprockets_gems.feature
|
@@ -127,9 +128,12 @@ files:
|
|
127
128
|
- fixtures/sprockets-app2/config.rb
|
128
129
|
- fixtures/sprockets-app2/data/test.yml
|
129
130
|
- fixtures/sprockets-app2/data/test2.json
|
131
|
+
- fixtures/sprockets-app2/source/javascripts/_templates/test.jst.ejs
|
132
|
+
- fixtures/sprockets-app2/source/javascripts/_templates/test2.jst.eco
|
130
133
|
- fixtures/sprockets-app2/source/javascripts/multiple_engines.js.coffee.erb
|
131
134
|
- fixtures/sprockets-app2/source/javascripts/sprockets_base.js
|
132
135
|
- fixtures/sprockets-app2/source/javascripts/sprockets_sub.js
|
136
|
+
- fixtures/sprockets-app2/source/javascripts/templates.js
|
133
137
|
- fixtures/sprockets-app2/source/stylesheets/sprockets_base1.css.scss
|
134
138
|
- fixtures/sprockets-app2/source/stylesheets/sprockets_base2.css.scss
|
135
139
|
- fixtures/sprockets-app2/source/stylesheets/sprockets_sub.css.scss
|
@@ -153,21 +157,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
157
|
version: '0'
|
154
158
|
segments:
|
155
159
|
- 0
|
156
|
-
hash: -
|
160
|
+
hash: -836714385759751023
|
157
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
162
|
none: false
|
159
163
|
requirements:
|
160
|
-
- - ! '
|
164
|
+
- - ! '>='
|
161
165
|
- !ruby/object:Gem::Version
|
162
|
-
version:
|
166
|
+
version: '0'
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
hash: -836714385759751023
|
163
170
|
requirements: []
|
164
171
|
rubyforge_project: middleman-sprockets
|
165
|
-
rubygems_version: 1.8.
|
172
|
+
rubygems_version: 1.8.23
|
166
173
|
signing_key:
|
167
174
|
specification_version: 3
|
168
175
|
summary: Sprockets support for Middleman
|
169
176
|
test_files:
|
170
177
|
- features/asset_hash.feature
|
178
|
+
- features/jst.feature
|
171
179
|
- features/sass_partials.feature
|
172
180
|
- features/sprockets.feature
|
173
181
|
- features/sprockets_gems.feature
|
@@ -222,9 +230,12 @@ test_files:
|
|
222
230
|
- fixtures/sprockets-app2/config.rb
|
223
231
|
- fixtures/sprockets-app2/data/test.yml
|
224
232
|
- fixtures/sprockets-app2/data/test2.json
|
233
|
+
- fixtures/sprockets-app2/source/javascripts/_templates/test.jst.ejs
|
234
|
+
- fixtures/sprockets-app2/source/javascripts/_templates/test2.jst.eco
|
225
235
|
- fixtures/sprockets-app2/source/javascripts/multiple_engines.js.coffee.erb
|
226
236
|
- fixtures/sprockets-app2/source/javascripts/sprockets_base.js
|
227
237
|
- fixtures/sprockets-app2/source/javascripts/sprockets_sub.js
|
238
|
+
- fixtures/sprockets-app2/source/javascripts/templates.js
|
228
239
|
- fixtures/sprockets-app2/source/stylesheets/sprockets_base1.css.scss
|
229
240
|
- fixtures/sprockets-app2/source/stylesheets/sprockets_base2.css.scss
|
230
241
|
- fixtures/sprockets-app2/source/stylesheets/sprockets_sub.css.scss
|