middleman-sprockets 3.0.0 → 3.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,11 @@ module Middleman::Sprockets
|
|
8
8
|
|
9
9
|
# Once registered
|
10
10
|
def registered(app)
|
11
|
+
# Location of javascripts external to source directory.
|
12
|
+
# @return [Array]
|
13
|
+
# set :js_assets_paths, ["#{root}/assets/javascripts/", "/path/2/external/js/repository/"]
|
14
|
+
app.set :js_assets_paths, []
|
15
|
+
|
11
16
|
# Add class methods to context
|
12
17
|
app.send :include, InstanceMethods
|
13
18
|
|
@@ -66,9 +71,10 @@ module Middleman::Sprockets
|
|
66
71
|
# Make the app context available to Sprockets
|
67
72
|
context_class.send(:define_method, :app) { app }
|
68
73
|
context_class.class_eval do
|
69
|
-
def method_missing(
|
74
|
+
def method_missing(*args)
|
75
|
+
name = args.first
|
70
76
|
if app.respond_to?(name)
|
71
|
-
app.send(
|
77
|
+
app.send(*args)
|
72
78
|
else
|
73
79
|
super
|
74
80
|
end
|
@@ -82,6 +88,11 @@ module Middleman::Sprockets
|
|
82
88
|
# configure search paths
|
83
89
|
append_path app.js_dir
|
84
90
|
append_path app.css_dir
|
91
|
+
|
92
|
+
# add custom assets paths to the scope
|
93
|
+
app.js_assets_paths.each do |p|
|
94
|
+
append_path p
|
95
|
+
end
|
85
96
|
end
|
86
97
|
|
87
98
|
# Override Sprockets' default digest function to *not*
|
@@ -109,4 +120,4 @@ module Middleman::Sprockets
|
|
109
120
|
# Clear cache on error
|
110
121
|
alias :css_exception_response :javascript_exception_response
|
111
122
|
end
|
112
|
-
end
|
123
|
+
end
|
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",
|
21
|
+
s.add_dependency("middleman-more", "~> 3.0.0")
|
22
22
|
s.add_dependency("sprockets", ["~> 2.1"])
|
23
23
|
s.add_dependency("sprockets-sass", ["~> 0.8.0"])
|
24
24
|
end
|
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
5
|
-
prerelease:
|
4
|
+
version: 3.0.1.pre
|
5
|
+
prerelease: 6
|
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-
|
12
|
+
date: 2012-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-more
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 3.0.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
@@ -153,16 +153,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
segments:
|
155
155
|
- 0
|
156
|
-
hash: -
|
156
|
+
hash: -874725202818507102
|
157
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
158
|
none: false
|
159
159
|
requirements:
|
160
|
-
- - ! '
|
160
|
+
- - ! '>'
|
161
161
|
- !ruby/object:Gem::Version
|
162
|
-
version:
|
163
|
-
segments:
|
164
|
-
- 0
|
165
|
-
hash: -3157970364921234037
|
162
|
+
version: 1.3.1
|
166
163
|
requirements: []
|
167
164
|
rubyforge_project: middleman-sprockets
|
168
165
|
rubygems_version: 1.8.24
|