savagery 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff15b495554457834c9e15b3845f20dbf65ffe62
4
- data.tar.gz: 33699d14a9332feb5182ac980ca03da60b0b2478
3
+ metadata.gz: e6ecc9253c077aeedf188d89985def4bc67ee838
4
+ data.tar.gz: d0527d1504a75ba7cfb0d48e6cbff144a5353c30
5
5
  SHA512:
6
- metadata.gz: 6fe64ee9325fdf0f87640eef19f82ee490946b78097df2fb1f7882ed83f999e3a4f5db7b4231c4da59100f8c1375ebb512c9b493fad9d7e56ef7a5a1a308c5da
7
- data.tar.gz: 7c2473e8efd8721d888070b094b6909026a5aad79c4e4f46b849d58ba7a576ffc9a7ab6c45f82851bb549c7614a2ea1576dc186d402eb281706d3fc71db87248
6
+ metadata.gz: afc92868ebbccb398a4b86b64b085ef76efd13ed825dc70d9147a19c4e266e53b6df6c25b5bcd065cd57c4fd58dfb4b098922b2620e6bb1bfb3c124177d7e8c2
7
+ data.tar.gz: d6648db74ab1399b50da375ab726e81f4694cdf79f81456778aa52b12585ffb89216f345fcc50a965d26fb926f6c26592bb233bd53571252c15b8f7c854d0be7
@@ -8,7 +8,7 @@ module Savagery
8
8
  end
9
9
 
10
10
  def svg_sprite_use name, options={}
11
- options[:current_url] = request.path
11
+ options[:current_url] = request.fullpath
12
12
  raw _svg_sprite_helper.svg_sprite_use(name, options)
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module Savagery
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -25,11 +25,11 @@ describe Savagery::Helpers::Rails do
25
25
  end
26
26
 
27
27
  describe "#svg_sprite_use" do
28
- let(:request) { double(path: "/omg/wtf") }
28
+ let(:request) { double(fullpath: "/omg/wtf") }
29
29
 
30
30
  before { subject.stub(request: request) }
31
31
 
32
- it "delegates to helpers with current_url set to request.path" do
32
+ it "delegates to helpers with current_url set to request.fullpath" do
33
33
  helpers.should_receive(:svg_sprite_use).with("test", current_url: "/omg/wtf")
34
34
  subject.svg_sprite_use("test").should == "<svg_sprite_use />"
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: savagery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel