savagery 0.4.3 → 0.4.4

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: e6ecc9253c077aeedf188d89985def4bc67ee838
4
- data.tar.gz: d0527d1504a75ba7cfb0d48e6cbff144a5353c30
3
+ metadata.gz: 767ed4a1bf7218b6c226106f16d9b0cabad38d24
4
+ data.tar.gz: 1680f3af8f6a82d912dfa7fa42c06446b0f59495
5
5
  SHA512:
6
- metadata.gz: afc92868ebbccb398a4b86b64b085ef76efd13ed825dc70d9147a19c4e266e53b6df6c25b5bcd065cd57c4fd58dfb4b098922b2620e6bb1bfb3c124177d7e8c2
7
- data.tar.gz: d6648db74ab1399b50da375ab726e81f4694cdf79f81456778aa52b12585ffb89216f345fcc50a965d26fb926f6c26592bb233bd53571252c15b8f7c854d0be7
6
+ metadata.gz: 65c25a0a4e108d343f6104dc8285835cd937f2ff1763296039b9dfdafdac9d91ba93ed420306c23b6e7b7c1ed32ec239030b5ec0f79be3ca0edffeffb5a7492f
7
+ data.tar.gz: 8797918371e227c28e247a37cebbc8dc20dcce9fc0b6f44cb02b3010503ae1412911ecf53899da953753116918d7cc4e5ba7bb20b85431468a85ca7f15feb9ee
@@ -8,7 +8,7 @@ module Savagery
8
8
  end
9
9
 
10
10
  def svg_sprite_use name, options={}
11
- options[:current_url] = request.fullpath
11
+ options[:current_url] = request.original_url
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.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -25,12 +25,12 @@ describe Savagery::Helpers::Rails do
25
25
  end
26
26
 
27
27
  describe "#svg_sprite_use" do
28
- let(:request) { double(fullpath: "/omg/wtf") }
28
+ let(:request) { double(original_url: "http://example.com/omg/wtf") }
29
29
 
30
30
  before { subject.stub(request: request) }
31
31
 
32
- it "delegates to helpers with current_url set to request.fullpath" do
33
- helpers.should_receive(:svg_sprite_use).with("test", current_url: "/omg/wtf")
32
+ it "delegates to helpers with current_url set to request.original_url" do
33
+ helpers.should_receive(:svg_sprite_use).with("test", current_url: "http://example.com/omg/wtf")
34
34
  subject.svg_sprite_use("test").should == "<svg_sprite_use />"
35
35
  end
36
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: savagery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-15 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ember-rails-assets