shellout 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Shellout
2
2
  ========
3
3
 
4
+ Shellout is a collection of tools for writing user interfaces for the terminal. It contains classes for
5
+ printing tables and boxes, using unicode box drawing and block element characters.
6
+
7
+
8
+ Install
9
+ -------
10
+
11
+ gem install shellout
12
+
13
+
4
14
  Usage
5
15
  -----
6
16
 
@@ -37,3 +47,25 @@ Usage
37
47
  # │ Newcastle │ 16 │
38
48
  # └───────────┴────────┘
39
49
 
50
+
51
+ License
52
+ -------
53
+
54
+ (The MIT License)
55
+
56
+ Copyright © 2011 Kjell-Magne Øierud
57
+
58
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
59
+ associated documentation files (the ‘Software’), to deal in the Software without restriction, including
60
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
61
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
62
+ the following conditions:
63
+
64
+ The above copyright notice and this permission notice shall be included in all copies or substantial
65
+ portions of the Software.
66
+
67
+ THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
68
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
69
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
70
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
71
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/lib/shellout.rb CHANGED
@@ -18,4 +18,8 @@
18
18
  # U+259x ▐ ░ ▒ ▓ ▔ ▕ ▖ ▗ ▘ ▙ ▚ ▛ ▜ ▝ ▞ ▟
19
19
 
20
20
  module Shellout
21
+
22
+ autoload :Shadowbox, 'shellout/shadowbox'
23
+ autoload :Table, 'shellout/table'
24
+
21
25
  end
data/shellout.gemspec CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "shellout"
5
- s.version = "0.1"
5
+ s.version = "0.2"
6
6
  s.authors = ["Kjell-Magne Øierud"]
7
7
  s.email = ["kjellm@acm.org"]
8
8
  s.homepage = "https://github.com/kjellm/shellout"
9
+ s.license = "MIT"
9
10
  s.summary = %q{Tools for writing terminal interfaces}
10
11
  s.description = %q{Contains classes for printing tables and boxes}
11
12
 
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+
3
+ require 'shellout'
4
+
5
+ describe Shellout do
6
+
7
+ it 'should auto load shellout/shadowbox' do
8
+ (Shellout.const_defined? :Shadowbox).should be_true
9
+ end
10
+
11
+ it 'should auto load shellout/table' do
12
+ (Shellout.const_defined? :Table).should be_true
13
+ end
14
+
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellout
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70243003183560 !ruby/object:Gem::Requirement
16
+ requirement: &70359984070900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70243003183560
24
+ version_requirements: *70359984070900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: guard
27
- requirement: &70243003182740 !ruby/object:Gem::Requirement
27
+ requirement: &70359984070420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70243003182740
35
+ version_requirements: *70359984070420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: guard-rspec
38
- requirement: &70243003181780 !ruby/object:Gem::Requirement
38
+ requirement: &70359984069960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70243003181780
46
+ version_requirements: *70359984069960
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rb-fsevent
49
- requirement: &70243003180360 !ruby/object:Gem::Requirement
49
+ requirement: &70359984069380 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70243003180360
57
+ version_requirements: *70359984069380
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: growl_notify
60
- requirement: &70243003179120 !ruby/object:Gem::Requirement
60
+ requirement: &70359984068860 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70243003179120
68
+ version_requirements: *70359984068860
69
69
  description: Contains classes for printing tables and boxes
70
70
  email:
71
71
  - kjellm@acm.org
@@ -84,8 +84,10 @@ files:
84
84
  - shellout.gemspec
85
85
  - spec/shellout/shadowbox_spec.rb
86
86
  - spec/shellout/table_spec.rb
87
+ - spec/shellout_spec.rb
87
88
  homepage: https://github.com/kjellm/shellout
88
- licenses: []
89
+ licenses:
90
+ - MIT
89
91
  post_install_message:
90
92
  rdoc_options: []
91
93
  require_paths:
@@ -111,3 +113,4 @@ summary: Tools for writing terminal interfaces
111
113
  test_files:
112
114
  - spec/shellout/shadowbox_spec.rb
113
115
  - spec/shellout/table_spec.rb
116
+ - spec/shellout_spec.rb