active_assets 1.0.1 → 1.0.2
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.
data/active_assets.gemspec
CHANGED
@@ -160,4 +160,16 @@ class ExpansionsTest < Test::Unit::TestCase
|
|
160
160
|
assert_equal %w{vendor/jquery.mousewheel.js bar/bas.js}, Rails.application.expansions.javascripts[:foo].assets.map(&:path)
|
161
161
|
end
|
162
162
|
|
163
|
+
def test_expansion_with_uri
|
164
|
+
Rails.application.expansions do
|
165
|
+
expansion :cdn, :type => :js, :namespace => :fubar do
|
166
|
+
a '//ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/jquery-ui.min.js', :cache => false, :group => :deploy
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
Rails.application.expansions.javascripts.register!
|
171
|
+
|
172
|
+
assert ActionView::Helpers::AssetTagHelper.javascript_expansions.any? {|k, v| v.include?('//ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/jquery-ui.min.js')}
|
173
|
+
end
|
174
|
+
|
163
175
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Woodard
|