ath 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 134345334c460d1e50d1bea0a32bc3ec41fe122b
4
- data.tar.gz: b2745a235f660622e72bb026a0adc8a88c124e9a
3
+ metadata.gz: 74cf3bb8878636d6c6a27cf302a9d296c5700445
4
+ data.tar.gz: 5261a62c160c6cd0b86e2fa27bc66be0365f8100
5
5
  SHA512:
6
- metadata.gz: 391cf7167a4ed37c9bf2ce9f60cea79c3ecadec7053956245c92f66d59fe9a7993e7f3dd3ea72bbf45773b1bbf48eb0f0caa4ca86b895c8b1985c49bb4d5ab7f
7
- data.tar.gz: 31ac7b442fc2f96686d676277d227ff560a46e481be39ff6285f4ac329c608d6e289299eea6da7731c8067a6804992ca7f0ff121fb4fd3bb4c9697baa3849ecf
6
+ metadata.gz: 5d7ca15d3425e045ac700dca5ceb6ea3edb1201a00b6d0706a16b7d8ad97bc1eb97f01e5f0229a5c41ca62c140761117d49ef09c64666dee10622ba4e2b91934
7
+ data.tar.gz: e051777bbb6e41315d7b4c9044a36c15274d5d70ed927362149f0b33d3111bf3169ce2fbd5e3cc27010d533e50ba3d6611c03f14fdb3a0fce0a6c002346cc3d0
data/lib/ath/command.rb CHANGED
@@ -15,7 +15,7 @@ class Ath::Command
15
15
  if @arg == 'true' or @arg == 'false'
16
16
  @shell.options[:debug] = (@arg =~ /true/)
17
17
  else
18
- out = "Usage: /debug true|false"
18
+ out = !!@shell.options.fetch(:debug)
19
19
  end
20
20
  when 'desc'
21
21
  if @arg
data/lib/ath/shell.rb CHANGED
@@ -20,7 +20,7 @@ class Ath::Shell
20
20
  while line = Readline.readline(prompt, true)
21
21
  execute_query(line)
22
22
  end
23
-
23
+ ensure
24
24
  save_history
25
25
  end
26
26
 
@@ -71,7 +71,7 @@ class Ath::Shell
71
71
  end
72
72
 
73
73
  def print_result(out)
74
- return unless out
74
+ return if out.nil?
75
75
 
76
76
  if out.kind_of?(File)
77
77
  begin
data/lib/ath/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ath
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel