rothko 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 2a35f7607e9e6bd3ab8455839fb9f87376c4c52c4517dd5fa737da94d1e95730
4
- data.tar.gz: 75e453b1228ff7c15b5a9beee6c20bdb5e3bdaf9cb1146c66f13c3145c6d56b4
3
+ metadata.gz: 8b46bb170909cdd599a0f6f311037b4e4d9bbdcce7c0946542c7fd9a899ce290
4
+ data.tar.gz: 5b23b79a24e198f7c2fb35f8e7fd018bef2c797e0b14b5735c6f64dfc5697c27
5
5
  SHA512:
6
- metadata.gz: f9a0e4ea14924d6696206314923bcac877cc2bbb0ccc648b6ce4a2b17b9924cc885c63411cb123df768a5b553f61813f24b8385a74b7c8710bad61ffc8eaaf48
7
- data.tar.gz: 7125e146a4d68315ca04ac1ff6ebe8b711071be045b8001864aab7cfb8463006254ae8b23fc28c63b5ddebf38d5481b9f536d39ec20dad2cf69a804fbcbe067d
6
+ metadata.gz: 29208222d0309ccbaf1e6b3c99b90b0ed953378f2639d0a176c2aa887f3e20bcfa09fe86fc7b1b801e12e3f07310e7b7febec380005de802005031a4c441360c
7
+ data.tar.gz: 2d91d3dfd4f9d61d175a1b23a987b7eb834147cde12a3cd17f33bbb001f23900bad2cc79dc6c523d677cd7ae0c380e0bea379981f2072a91125f0ea2a444a9ba
@@ -1,3 +1,3 @@
1
1
  module Rothko
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/rothko.rb CHANGED
@@ -50,7 +50,7 @@ module Rothko
50
50
 
51
51
  # Finds height of the image relative to provided width
52
52
  def get_height(img)
53
- new_height = img.height / (img.width.to_f / self.width.to_f)
53
+ new_height = (img.height / (img.width.to_f / self.width.to_f)).ceil
54
54
  end
55
55
 
56
56
  # Iterates over each pixel of resized image to find closest color
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rothko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Brennan