image_server 0.5.0 → 0.6.0

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: 9147befb6357ed6c9e3b160794ebc46b535a4ee2
4
- data.tar.gz: 8be91bbfa024ee310ce5286129b9c07275491eb7
3
+ metadata.gz: 7cbd788f3788790a99cff29ebcbe8237ed5520ec
4
+ data.tar.gz: 8dc14d1711ad6fc04945c8fa709f8646710eea07
5
5
  SHA512:
6
- metadata.gz: f13101ae69fc6dbc1c2d80cc608d37ef38d79f901b0cce96fdb2bcd2f86f415585df3c094d75f68d08c38b747594c4d288117e0aadf1ed0b0961c99b87bbbb95
7
- data.tar.gz: 62d26cd64e71734efa59f17201e2fc9ff55439c8ef8be5871e3b66a5616c235f3b0b35ed7bd087f5324c7f213dc8b7f24577bfe8cc967af9d4ceb69b3c683cb5
6
+ metadata.gz: fabe70b288850c37361826a5c1bffd07193eaa108084ab5a43a6fd5f5e33a07133cc797211474c43ab3b46b005a453263f00f27306cfaf5d8fc57e7fad530d65
7
+ data.tar.gz: 3830b1fdb2cc30a153f8e93dec78900aa919ca2cba43e29f719f6c3c1a7fa85e4c2d5bbbf466caedd6eeaff8520cd315aa8d0aae40574cfff9ed7d7389d10141
@@ -34,7 +34,7 @@ module ImageServer
34
34
  attributes = {
35
35
  width: properties['width'],
36
36
  height: properties['height'],
37
- image_url: url,
37
+ image_url: url.downcase,
38
38
  namespace: @namespace
39
39
  }
40
40
  ip = ImageProperty.where(image_hash: properties['hash'], namespace: @namespace).first || ImageProperty.new(image_hash: properties['hash'])
@@ -49,7 +49,7 @@ module ImageServer
49
49
 
50
50
  def existing_image_property
51
51
  return unless url
52
- @existing_image_property ||= ImageProperty.where(namespace: @namespace).where('lower(image_url) = lower(?)', url).first
52
+ @existing_image_property ||= ImageProperty.where(namespace: @namespace).where('image_url = ?', url.downcase).first
53
53
  end
54
54
 
55
55
  def source_is_url?
@@ -1,3 +1,3 @@
1
1
  module ImageServer
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Millan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-26 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry