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 +4 -4
- data/lib/image_server/uploader.rb +2 -2
- data/lib/image_server/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cbd788f3788790a99cff29ebcbe8237ed5520ec
|
4
|
+
data.tar.gz: 8dc14d1711ad6fc04945c8fa709f8646710eea07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
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?
|
data/lib/image_server/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|