img_overlay 0.1.0 → 0.1.1

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: 1e52861bbf7dde7b7255a0dd54644b10f9c6e455
4
- data.tar.gz: 7a49a8193399491524c551bc80401dea944c7588
3
+ metadata.gz: e5c3f3491729174d4e61185567879377270668de
4
+ data.tar.gz: 5eebd35dabd08feccd8a963e29315c9d0786eb14
5
5
  SHA512:
6
- metadata.gz: 53de81a4d242adecc74ada64d86d1a52a05f22ff7ff932592fa81629ef0c6e8fb112a80cdfa8a15babd2225d1e59679a28ba7b3f887097dd9608a5acfecc129c
7
- data.tar.gz: 6f439f2e743d5e427ab4b32264bf6c83f842b079591ca3a46f3e6964c80cb4c52dc88966e0648964b965a6ba44efe564334b75de6405d43fc0679be117e4557f
6
+ metadata.gz: c530b4e55d9037218f2fc1d667d8c89d3ed55e532fa145e43f8251abf872214be8e6bfd59ef1f6eff8d012f557d5420596a2d297509fd736420978aefb8c817f
7
+ data.tar.gz: 7d69e5f6c8fe0f5649104dd2ed602fcca79eb5868253d3b0836dfa72b85070a3ae403406f969b898c3ef22d62e5ba6c9a78f7aaa9657ad93b62ef678e9ce1bd8
data/README.md CHANGED
@@ -12,7 +12,7 @@ See how the title "The smartest way to manage your data" is on some image that i
12
12
 
13
13
  ## Dependencies
14
14
 
15
- The gem depends on ImageMagic to be installed on your computer. It just shells out and runs ImageMagic commands.
15
+ The gem depends on **ImageMagic** to be installed on your computer. It just shells out and runs ImageMagic commands.
16
16
 
17
17
  ## Installation
18
18
 
@@ -65,6 +65,10 @@ success = make_image_with_overlay(
65
65
 
66
66
  That's it. It all works, you will get a true or a false.
67
67
 
68
+ #### Fixed Bug
69
+
70
+ There was a bug in version 0.1.0 where it would not reuturn false if it failed to make the image. Fixed that bug with an update to version 0.1.1
71
+
68
72
  ## Testing
69
73
 
70
74
  This gem needs more tests and development around validating user input and giving helpful error messages. Just now, it will simply fail. It needs better feedback for users when the inputs are not right. It also needs better error messages when the inputs are funny.
data/lib/img_overlay.rb CHANGED
@@ -13,7 +13,7 @@ module ImgOverlay
13
13
 
14
14
  if image_path.nil?
15
15
 
16
- return nil
16
+ return false
17
17
 
18
18
  else
19
19
 
@@ -22,10 +22,10 @@ module ImgOverlay
22
22
  url: url,
23
23
  path: otuput
24
24
  )
25
- if id.download!.nil?
26
- return nil
27
- else
25
+ if id.download!
28
26
  return otuput
27
+ else
28
+ return nil
29
29
  end
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module ImgOverlay
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: img_overlay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khoj Badami