fassbinder 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,18 +5,16 @@ require 'fassbinder'
5
5
  module Fassbinder
6
6
  class CLI < Thor
7
7
  desc 'all', 'Looks up all offers for an ASIN'
8
- method_option :locale, :required => true, :aliases => '-l'
8
+ method_option :locale, :aliases => '-l', :default => :us
9
9
  def all(asin)
10
- locale = options[:locale] || :us
11
- lookup(asin, locale)
10
+ lookup(asin, options[:locale])
12
11
  end
13
12
  map 'a' => 'all'
14
13
 
15
14
  desc 'kosher', 'Looks up kosher offers for an ASIN'
16
- method_option :locale, :required => true, :aliases => '-l'
15
+ method_option :locale, :aliases => '-l', :default => :us
17
16
  def kosher(asin)
18
- locale = options[:locale] || :us
19
- lookup(asin, locale, true)
17
+ lookup(asin, options[:locale], true)
20
18
  end
21
19
  map 'k' => 'kosher'
22
20
 
@@ -1,3 +1,3 @@
1
1
  module Fassbinder
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fassbinder
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paper Cavalier