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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59e8277b0b777e05b4a182fd84c693040b9b547b
4
- data.tar.gz: e8d1b2700c97d452211f6c9e8e520ce06cbc257e
3
+ metadata.gz: f4e2dabc23df77549e15530494663bfe8debb848
4
+ data.tar.gz: 8fb675eecb59d6c280a451945cc21dd12dcdf9dd
5
5
  SHA512:
6
- metadata.gz: f4f9b01915bb98fe4b1e8b34b9b6971f0b6aa6d23885ffa261f0d858c76707432d472b7229756e4041ca62c80c55f613fad8dbd44685e93c11ef58c15bdd755c
7
- data.tar.gz: 7c4ea0f775f4e5e5d40ace8f6eb71d1ccd1beee1c23614affa36c73ed8001989aa76202f7b22ac2c2f85a331d4d8eab883becf2a451c9862571e181fcbbcecf2
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 'image-server'
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 image-server
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
@@ -1,3 +1,3 @@
1
1
  module ImageServer
2
- VERSION = '0.3.2'
2
+ VERSION = '0.4.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.3.2
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-02-19 00:00:00.000000000 Z
11
+ date: 2016-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry