Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bumped version, fixed some formatting

  • Loading branch information...
commit 619a0c1c19c3362353bcda6aff46acfcb27066dd 1 parent a801949
@bmuller authored
Showing with 6 additions and 8 deletions.
  1. +5 −7 lib/sexmachine/detector.rb
  2. +1 −1  lib/sexmachine/version.rb
View
12 lib/sexmachine/detector.rb
@@ -4,10 +4,10 @@ module SexMachine
class Detector
COUNTRIES = [ :great_britain, :ireland, :usa, :italy, :malta, :portugal, :spain, :france, :belgium, :luxembourg, :the_netherlands, :east_frisia,
- :germany, :austria, :swiss, :iceland, :denmark, :norway, :sweden, :finland, :estonia, :latvia, :lithuania, :poland, :czech_republic,
- :slovakia, :hungary, :romania, :bulgaria, :bosniaand, :croatia, :kosovo, :macedonia, :montenegro, :serbia, :slovenia, :albania,
- :greece, :russia, :belarus, :moldova, :ukraine, :armenia, :azerbaijan, :georgia, :the_stans, :turkey, :arabia, :israel, :china,
- :india, :japan, :korea, :vietnam, :other_countries ]
+ :germany, :austria, :swiss, :iceland, :denmark, :norway, :sweden, :finland, :estonia, :latvia, :lithuania, :poland, :czech_republic,
+ :slovakia, :hungary, :romania, :bulgaria, :bosniaand, :croatia, :kosovo, :macedonia, :montenegro, :serbia, :slovenia, :albania,
+ :greece, :russia, :belarus, :moldova, :ukraine, :armenia, :azerbaijan, :georgia, :the_stans, :turkey, :arabia, :israel, :china,
+ :india, :japan, :korea, :vietnam, :other_countries ]
def initialize(opts = {})
opts = {
@@ -67,9 +67,7 @@ def eat_name_line(line)
end
def most_popular_gender(name)
- if not @names.has_key?(name)
- return @unknown_value
- end
+ return @unknown_value unless @names.has_key?(name)
max = 0
best = @names[name].keys.first
View
2  lib/sexmachine/version.rb
@@ -1,3 +1,3 @@
module SexMachine
- VERSION = "0.0.5"
+ VERSION = "0.0.6"
end
Please sign in to comment.
Something went wrong with that request. Please try again.