caracal 0.1.4 → 0.1.5

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: fd6f4b1d2999578352b19dc9b0a37550421fee95
4
- data.tar.gz: f5ece05dd0fb90bea538a8c0cdf8fa9073fd6e18
3
+ metadata.gz: db41a727d0f4afb431edf5693ba07955ff66378c
4
+ data.tar.gz: 28a1d5603ac965f5f39d61653d3c7db59ed7ff07
5
5
  SHA512:
6
- metadata.gz: 9aacd3a282bce1a381f62af7e8b8643f96035ded1d2516cb51459df8071833f010f8080f1628fa48b71cfc0c9f3a29f6c69fe08e30eed2826148ac3a46a996a4
7
- data.tar.gz: 6222df0d328b719a19e2cdf2a5139025654ad928b4423c7ad2c2fd07fcb583af928df4528c029db2f7013bb8f0cc403dd2a00100ca6150db9c8612c802e26bc8
6
+ metadata.gz: b3aae96bdad245b54536413d65d5f322f6d8df105f49c684be891b7cadb5954a6761e4b0210f189ba8f67fc51027234677047061b3da88e9d44bd01a60d30393
7
+ data.tar.gz: 52cf0e01242d74fba62dcc2bcad1a63fa8555e82d9540531dc6dbb812e36ed2dd69bb17bca2f7b05176d51dae2d543d5a034fd0c352167181e4178e7f0524af3
@@ -47,6 +47,7 @@ module Caracal
47
47
  def formatted_target
48
48
  if relationship_type == :image
49
49
  ext = relationship_target.to_s.split('.').last
50
+ ext = ext.split('?').first
50
51
  "media/image#{ relationship_id }.#{ ext }"
51
52
  else
52
53
  relationship_target
@@ -1,3 +1,3 @@
1
1
  module Caracal
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caracal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trade Infomatics
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-04 00:00:00.000000000 Z
12
+ date: 2014-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri