geo_pattern 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,9 +81,9 @@ module GeoPattern
81
81
 
82
82
  def generate_pattern
83
83
  if opts[:generator]
84
- begin
84
+ if PATTERNS.include?(opts[:generator].to_sym)
85
85
  send("geo_#{opts[:generator]}")
86
- rescue
86
+ else
87
87
  abort("Error: the requested generator is invalid.")
88
88
  end
89
89
  else
@@ -1,3 +1,3 @@
1
1
  module GeoPattern
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_pattern
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-18 00:00:00.000000000 Z
12
+ date: 2014-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: color