gotascii-crags 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/crags.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{crags}
5
- s.version = "1.4.4"
5
+ s.version = "1.4.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Marney"]
@@ -25,11 +25,8 @@ module Crags
25
25
 
26
26
  def locations(country)
27
27
  linkz = location_links(country)
28
- if linkz.empty?
29
- [location_request(country).last_effective_url]
30
- else
31
- linkz.collect{|link| strip_http(link["href"]) }
32
- end
28
+ linkz = [location_request(country).last_effective_url] if linkz.empty?
29
+ linkz.collect{|link| strip_http(link["href"]) }
33
30
  end
34
31
 
35
32
  def categories
data/lib/crags.rb CHANGED
@@ -4,7 +4,7 @@ require 'hpricot'
4
4
  require 'erb'
5
5
 
6
6
  module Crags
7
- VERSION = '1.4.4'
7
+ VERSION = '1.4.5'
8
8
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
9
9
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotascii-crags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Marney