image_server 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/image_server/uploader.rb +2 -1
- 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: f4e2dabc23df77549e15530494663bfe8debb848
|
4
|
+
data.tar.gz: 8fb675eecb59d6c280a451945cc21dd12dcdf9dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72cf34e5d620b3bfa83d86ec4bcb019af5458d4f0750820f9a8366d7e9570de2eea36a1769e5e67a36d04a4cf4a5c11103993d038ce677d59a725d6118e8345e
|
7
|
+
data.tar.gz: dcf61e940894e44c2bcd94c46bad7579890600489103ae5c5b1df5b6d6556311ed305e0c8a306b3dbd577568c58cbf5bfc85e1007a245391c6080734131d41d9
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem '
|
12
|
+
gem 'image_server'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install
|
21
|
+
$ gem install image_server
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
@@ -30,6 +30,7 @@ module ImageServer
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def find_or_create_image_property(properties)
|
33
|
+
return unless url
|
33
34
|
attributes = {
|
34
35
|
width: properties['width'],
|
35
36
|
height: properties['height'],
|
@@ -55,4 +56,4 @@ module ImageServer
|
|
55
56
|
@source.is_a?(String) && (@source.start_with?('http') || @source.start_with?('//'))
|
56
57
|
end
|
57
58
|
end
|
58
|
-
end
|
59
|
+
end
|
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.4.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-
|
11
|
+
date: 2016-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|