habitica_cli 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: 3bba57b3d55e83ce77fbd752626cac6b8fd7beaa
4
- data.tar.gz: 7207da8da714b7e0ce6b8e6b2b48bb5d4292d846
3
+ metadata.gz: 94e605f7b9f4bae9183cb8895d5a494ec6272eff
4
+ data.tar.gz: 0873a83f13858b108185e76727caaab721d348a8
5
5
  SHA512:
6
- metadata.gz: cfd391f58bb09fc7a99fb587d274cb0091f218e61d2c4cbd31131092a6909196467517d7dac7f599b364ed066675d2dd4427f93fc34c22c055598fb018c5d3a7
7
- data.tar.gz: e24967e244cc2705c2f691e60e32924150d6a0946863b749ac3763bbb6222050783394fd157950bd10ea5ad4dc0463531e3e3b0303c0b3024efb40d0776482da
6
+ metadata.gz: 852dfb8f1277bb29edcb86cbcc0c679f461a86d27e32614bbaedc41636011374ccbd47296096bfcb92a59848229cdac260160c06586023db2e4ad761c7e40866
7
+ data.tar.gz: 1d9378f8a53cf5545ebae0ca4dfe2121dcd2f6b061141fceb7506f75743b8ee0de47683993b41f75988bce5fc5876ef6c2c78f835cc390a4f3a0da82e341ba81
@@ -9,7 +9,8 @@ module HabiticaCli
9
9
 
10
10
  def user_and_api_key
11
11
  config = Kefir.config('habitica_cli')
12
- habit_user, habit_key = @options.values_at(:habit_user, :habit_key)
12
+ habit_user = @options[:habit_user] || ENV['HABIT_USER']
13
+ habit_key = @options[:habit_key] || ENV['HABIT_KEY']
13
14
 
14
15
  if blank?(habit_user) || blank?(habit_key)
15
16
  habit_user = config.get('habit_user')
@@ -4,10 +4,8 @@ module HabiticaCli
4
4
  # out top level tasks into individual files
5
5
  # (thor's DSL makes that a little bit of a chore)
6
6
  class Main < Thor
7
- # rubocop:disable Metrics/LineLength
8
- class_option :habit_user, hide: true, aliases: '--habit-user', default: ENV['HABIT_USER']
9
- class_option :habit_key, hide: true, aliases: '--habit-key', default: ENV['HABIT_KEY']
10
- # rubocop:enable Metrics/LineLength
7
+ class_option :habit_user, hide: true, aliases: '--habit-user'
8
+ class_option :habit_key, hide: true, aliases: '--habit-key'
11
9
 
12
10
  def initialize(*args)
13
11
  super(*args)
@@ -1,3 +1,3 @@
1
1
  module HabiticaCli
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: habitica_cli
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
  - Nick Tomlin