assets_booster 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module AssetsBooster
13
13
 
14
14
  def view_helper(view, options)
15
15
  if options[:inline]
16
- view.javascript_tag(read(assets))
16
+ view.javascript_tag(read)
17
17
  else
18
18
  view.javascript_include_tag(view_helper_sources, options)
19
19
  end
@@ -13,7 +13,7 @@ module AssetsBooster
13
13
 
14
14
  def view_helper(view, options)
15
15
  if options[:inline]
16
- view.style_tag(read(assets))
16
+ view.style_tag(read)
17
17
  else
18
18
  view.stylesheet_link_tag(view_helper_sources, options)
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module AssetsBooster
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -17,9 +17,7 @@ module AssetsBooster
17
17
 
18
18
  describe "with the inline option enabled" do
19
19
  it "should return a javascript tag with inline javascript" do
20
- assets = ["a.js", "b.js", "c.js"]
21
- subject.stub(:assets).and_return(assets)
22
- subject.should_receive(:read).with(assets).and_return("javascript code")
20
+ subject.should_receive(:read).with().and_return("javascript code")
23
21
  @view.should_receive(:javascript_tag).with("javascript code")
24
22
  subject.view_helper(@view, :inline => true)
25
23
  end
@@ -17,9 +17,7 @@ module AssetsBooster
17
17
 
18
18
  describe "with the inline option enabled" do
19
19
  it "should return a style tag with inline css" do
20
- assets = ["a.css", "b.css", "c.css"]
21
- subject.stub(:assets).and_return(assets)
22
- subject.should_receive(:read).with(assets).and_return("css code")
20
+ subject.should_receive(:read).with().and_return("css code")
23
21
  @view.should_receive(:style_tag).with("css code")
24
22
  subject.view_helper(@view, :inline => true)
25
23
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: assets_booster
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.7
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Corin Langosch