console 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. data/README +18 -0
  2. metadata +7 -5
data/README ADDED
@@ -0,0 +1,18 @@
1
+ Console is a helper class for displaying super-ASCII strings on the console.
2
+
3
+ Console is needed when you want to mix multi-column (e.g. Chinese, Japanese and
4
+ Korean characters) and single-column (e.g. ASCII) characters and know how much
5
+ horizontal realestate the result takes on the screen. This is generally
6
+ necessary when you want to have internationalization support in a console
7
+ program.
8
+
9
+ The Console gem currently provides these methods:
10
+
11
+ - Console.display_width: calculates the display width of a string
12
+ - Console.display_slice: returns a substring according to display offset
13
+ and display width parameters.
14
+
15
+ If you require 'console', you will get just those methods.
16
+
17
+ If you require 'console/string', you will get String#display_width and
18
+ String#display_slice methods directly on all strings.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - William Morgan
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-11 13:23:26 -04:00
17
+ date: 2010-05-19 08:30:21 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -24,9 +24,11 @@ executables: []
24
24
 
25
25
  extensions:
26
26
  - ext/console/extconf.rb
27
- extra_rdoc_files: []
28
-
27
+ extra_rdoc_files:
28
+ - README
29
+ - ext/console/console.c
29
30
  files:
31
+ - README
30
32
  - ext/console/extconf.rb
31
33
  - ext/console/console.c
32
34
  - test/console.rb