kovid 0.6.4 → 0.6.5

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
  SHA256:
3
- metadata.gz: e96265776776cbca749c7c1651fd462883deeeefc52150afffbd444f1752bae3
4
- data.tar.gz: 7721bcc8cf1e5d342b8808f020515d6167a7dee2b8a1bda04d1b56d3a0fd11ab
3
+ metadata.gz: 620426fc962e25e54afb7805dcf98131c1e58865ff477ffb9102e0d2ca90217d
4
+ data.tar.gz: 59daeb1837a6afaa795bed6479fde7c20c696a9f21a6a0f444ed1f63150e9ce1
5
5
  SHA512:
6
- metadata.gz: dd21b726c0a68398e565c470477da359f05e23b7b356dd95e1f18232168caa922262974db6aa5c2ddc7fc6223c6fae31ed824a8b41d61c73627d0fc5013a740e
7
- data.tar.gz: 81a35f27819d5f6eeadb699bcc0ab9a73ab61cb8f3fb0f4d487d3fa13bbc333afb1138d99f413e6b30bab437144513a4fc461dc924f3f94dc9d9ec0c4def0445
6
+ metadata.gz: 4741653673978adcaeadf3b22bfa8b2db1b3bae467ffca9fbca4c010b1c30b677ebcf6ced77dcda6ae4e90782678bd162f85ac913f70658fce6d7ad4beb05547
7
+ data.tar.gz: aac2306ed42a441c9673ad10ea47f2f3bde83a4dcb99de043cd63a3a352af6e4f3b42409e11de72f6a23f9e5630eb343dae5cec327c62f57fbcb5737071f6f15
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kovid (0.6.3)
4
+ kovid (0.6.4)
5
5
  ascii_charts (~> 0.9.1)
6
6
  rainbow (~> 3.0)
7
7
  terminal-table (~> 1.8)
@@ -48,18 +48,16 @@ module Kovid
48
48
  data_source
49
49
  end
50
50
 
51
- desc 'states STATE STATE', 'Returns full comparison table for the given states. Accepts multiple states.'
51
+ desc 'states STATE STATE or states --all', 'Returns full comparison table for the given states. Accepts multiple states.'
52
+ method_option :all, aliases: '-a'
52
53
  def states(*states)
53
- downcased_states = states.map(&:downcase)
54
-
55
- puts Kovid.states(downcased_states)
56
- data_source
57
- end
54
+ if options[:all]
55
+ puts Kovid.all_us_states
56
+ else
57
+ downcased_states = states.map(&:downcase)
58
+ puts Kovid.states(downcased_states)
59
+ end
58
60
 
59
- desc 'states -a', 'Returns full comparison table for all US states'
60
- method_option :all, aliases: '-a'
61
- def states
62
- puts Kovid.all_us_states
63
61
  data_source
64
62
  end
65
63
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kovid
4
- VERSION = '0.6.4'
4
+ VERSION = '0.6.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kovid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Hayford