cli-console 0.1.1 → 0.1.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 965c98889fde61417629ce0cc3b2ec1018538e2d
4
+ data.tar.gz: 0dbcfc0684717328011265ad41ea056d6bd7c85f
5
+ SHA512:
6
+ metadata.gz: 32baebc726d99d59f8c584285ac2a03456de776832e99ac0ce21ce19069f1d0abdaba11e96ab83e60ffc4d08e1eda097e9ca00cc96164ce798402a915d42c44a
7
+ data.tar.gz: 97cdb0620d7e0d39411546a44edddafd9c785ba614c25b958f058d410574fc00cfc2ee439048af0809a23abb370da41d6a70d95f6e20840025ec538ad42348c2
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  group :development, :test do
4
- gem 'highline', '=> 1.6.16'
4
+ gem 'highline', '>= 1.6.16'
5
5
  gem 'rspec'
6
6
  gem 'simplecov'
7
7
  gem 'yard'
data/lib/cli-console.rb CHANGED
@@ -11,7 +11,6 @@ module CLI
11
11
  # console = CLI::Console.new(io)
12
12
  # ```
13
13
  class Console
14
- private
15
14
  def initialize(io)
16
15
  @Commands = {}
17
16
  @Aliases = {}
@@ -24,9 +23,11 @@ module CLI
24
23
  @UseReadline = true
25
24
  end
26
25
 
26
+ protected
27
+
27
28
  # Outputs nicely formated exception
28
29
  # displays backtrace if @Backtrace
29
- # @param [Exception] exception to display
30
+ # @param exception [Exception] exception to display
30
31
  def showException(exception)
31
32
  @IO.say "Exception: #{exception.message.strip}"
32
33
  if @Backtrace
@@ -16,7 +16,7 @@ module CLI
16
16
  # end
17
17
  # ```
18
18
  module Task
19
- private
19
+ protected
20
20
  @@__usage__ = {}
21
21
  @@__desc__ = {}
22
22
 
@@ -1,6 +1,6 @@
1
1
  module CLI
2
2
  class Console
3
3
  # Version for gem
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
6
6
  end
data/spec/spec_helper.rb CHANGED
@@ -5,13 +5,3 @@ SimpleCov.start
5
5
 
6
6
  require_relative '../lib/cli-console.rb'
7
7
  require 'highline'
8
-
9
-
10
- if HighLine::CHARACTER_MODE == "Win32API"
11
- class HighLine
12
- # Override Windows' character reading so it's not tied to STDIN.
13
- def get_character( input = STDIN )
14
- input.getc
15
- end
16
- end
17
- end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dāvis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-02 00:00:00.000000000 Z
11
+ date: 2013-03-08 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Basic library for making interactive command-line applications much easier
15
14
  email:
@@ -34,29 +33,27 @@ files:
34
33
  homepage: https://github.com/davispuh/CLI-Console
35
34
  licenses:
36
35
  - UNLICENSE
36
+ metadata: {}
37
37
  post_install_message:
38
38
  rdoc_options: []
39
39
  require_paths:
40
40
  - lib
41
41
  required_ruby_version: !ruby/object:Gem::Requirement
42
- none: false
43
42
  requirements:
44
- - - ! '>='
43
+ - - '>='
45
44
  - !ruby/object:Gem::Version
46
45
  version: '0'
47
46
  required_rubygems_version: !ruby/object:Gem::Requirement
48
- none: false
49
47
  requirements:
50
- - - ! '>='
48
+ - - '>='
51
49
  - !ruby/object:Gem::Version
52
50
  version: '0'
53
51
  requirements: []
54
52
  rubyforge_project:
55
- rubygems_version: 1.8.25
53
+ rubygems_version: 2.0.0
56
54
  signing_key:
57
- specification_version: 3
55
+ specification_version: 4
58
56
  summary: Create CLI applications easily
59
57
  test_files:
60
58
  - spec/cli-console_spec.rb
61
59
  - spec/spec_helper.rb
62
- has_rdoc: