arcanus 0.12.0 → 0.12.1

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: 2fb8869826196e49c619322eb2f20bfc525cdd56
4
- data.tar.gz: 0195c1a11109ef5321c07abcab57b39cf526c9e8
3
+ metadata.gz: 7cdb8a1dbb476090b55baecf9a5dde6a7b2b6c5a
4
+ data.tar.gz: 0f7ba0190d7f34c2a6cf5632bff11820e035ee17
5
5
  SHA512:
6
- metadata.gz: fa848a90874f1a862f16cf66f6c0cf7885f08cf6d79274a147e6f68e4f7e16b4166c94ae641a4614161dbddcbd18a965a7362ee6045405c9d59e5cfd9a0375b7
7
- data.tar.gz: 55041de90f9a2dc0e511565bb591f69a15fb106c4593d331a7ac64aa28ac3f7f4fddfafd14139df103735c4b0919234b34e1e209b4cf6292e7e7303fe62b1d6a
6
+ metadata.gz: 13ff94bf3267c65bc210e9a7290a2d589c6243cab79a11eebd6bdeb921e1b2d41d946205852a08db29407e7d5cd57fa835acaa8371c1240a42667a392e124197
7
+ data.tar.gz: 515a1daa9fccd92f4f44a383c8b98d699b8534fc76cac637b66dc7d6e728b000f77ea2460adba41f16725c9ac85091798feb9bd8a22c3c5cf6644b49a9142f4c
@@ -44,6 +44,10 @@ module Arcanus
44
44
  end
45
45
  end
46
46
 
47
+ def respond_to_missing?(method_name, *args)
48
+ @hash.key?(method_name.to_s) ? true : super
49
+ end
50
+
47
51
  def respond_to?(method_sym, *)
48
52
  @hash.key?(method_sym.to_s) || super
49
53
  end
@@ -232,6 +236,10 @@ module Arcanus
232
236
  end
233
237
  end
234
238
 
239
+ def respond_to_missing?(method_name, *args)
240
+ @hash.key?(method_name.to_s) ? true : super
241
+ end
242
+
235
243
  def respond_to?(method_sym, *)
236
244
  @hash.key?(method_sym.to_s) || super
237
245
  end
@@ -21,5 +21,12 @@ module Arcanus
21
21
  def print(output)
22
22
  @output_stream.print(output)
23
23
  end
24
+
25
+ # Return if output is a TTY console.
26
+ #
27
+ # @return [true,false]
28
+ def tty?
29
+ @output_stream.tty?
30
+ end
24
31
  end
25
32
  end
@@ -15,7 +15,7 @@ module Arcanus
15
15
  def initialize(input, output)
16
16
  @input = input
17
17
  @output = output
18
- @pastel = Pastel.new
18
+ @pastel = Pastel.new(enabled: output.tty?)
19
19
  @shell = TTY::Shell.new
20
20
  end
21
21
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Arcanus
5
- VERSION = '0.12.0'.freeze
5
+ VERSION = '0.12.1'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcanus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-13 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess
@@ -111,4 +111,3 @@ signing_key:
111
111
  specification_version: 4
112
112
  summary: Arcanus command line interface
113
113
  test_files: []
114
- has_rdoc: