placegant 1.0.1 → 1.0.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
  SHA1:
3
- metadata.gz: dafdbfd7c32938853452e5c42128ff9ddc647b1c
4
- data.tar.gz: 861e1f3031ec0cba0e00b32aef351cca700896a4
3
+ metadata.gz: 3246c0537cf192bb1e851bbd2c24edbd09e1edb5
4
+ data.tar.gz: 680aea1b739186320782599cc8733b698f9db4c1
5
5
  SHA512:
6
- metadata.gz: f60526e5a40c75bbcc0139f6a447512bb243196795af9fbe53943d363aad68cdee5b2b701e762234a45edf0d9a807ad4993f5d58d887d40e9536ef362bb8afa9
7
- data.tar.gz: 197808975e2c5d838a746b615ac429db402624561e13491cd24a9f0c28ef7208bd0d969adf1e69021d108a5ecfc89f99495c8d8c8be16ecd3cfa542ea86f0a14
6
+ metadata.gz: c2c99dac4bfeeddbdb502f4c1eecb2b84690816fbb8c802a1a60eccef0b457db8840412a1332b028bf72fffeb3015d1a536b672386949594c061a5ad91f4aa1d
7
+ data.tar.gz: 3a8929ca8e3f54f2000bfa6d364b0e09716ed617a8f6a82786307155b29c3ba0a9be5c93da11307b4c79fdf9d23f9b6c1807d6b54b32c19f53ceea75c7ba07df
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -1,6 +1,6 @@
1
1
  module PlaceGant::Helpers
2
2
  # @see PlaceGant.image
3
- def placegant(width = nil, height = nil)
3
+ def placegant(width, height)
4
4
  "http://placegant.me/pg/#{width}/#{height}"
5
5
  end
6
6
  end
@@ -1,23 +1,5 @@
1
1
  class PlaceGant
2
- DEFAULT_WIDTH = 300
3
- DEFAULT_HEIGHT = 300
4
-
5
- # Returns the URL for a placeGant with
6
- # the given width and height. If the width is given but the height
7
- # is not, the image will be square.
8
- #
9
- # @param [Number] width the width of the placeGant
10
- # @param [Number] height the height of the placeGant
11
- def self.image(width = nil, height = nil)
12
- if width.nil?
13
- width = DEFAULT_WIDTH
14
- height = DEFAULT_HEIGHT
15
- elsif height.nil?
16
- height = width
17
- end
18
- end
19
-
20
- class << self
21
- alias_method :gant, :image
2
+ def placegant(width, height)
3
+ "http://placegant.me/pg/#{width}/#{height}"
22
4
  end
23
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: placegant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angie Green