* [sup-devel] console gem 0.3
@ 2011-01-18 20:05 William Morgan
2011-01-18 21:20 ` Sascha Silbe
2011-01-18 22:30 ` Hamish D
0 siblings, 2 replies; 3+ messages in thread
From: William Morgan @ 2011-01-18 20:05 UTC (permalink / raw)
To: sup-devel
Hi guys,
I've finally released a new version of the console gem which supports
Ruby 1.8. This will be useful in Sup to a) replace String#display_length
(which is a totally wrong hack right now), and b) replace the dl/import
set_locale madness in bin/sup.
So basically this should remove some code and should improve i18n
support for CJK users.
Before I work on a patch, I'm curious if those of you on funny operating
systems (e.g. Cygwin, BSD, Darwin) are able to install this gem
successfully.
If you are a non-i386 Linux user, please try `gem install console` and
report the result (success/failure) along with your OS version and your
ruby version.
For extra credit, here's a test script you can run and make sure the
output is a 30-column block of text:
## encoding: UTF-8 (this comment required for ruby 1.9)
require 'rubygems' # this line required for ruby 1.8
require 'console'
require 'console/string'
Console.init_locale!
STRING = "我能吞下玻璃而不傷身體。Góa ē-tàng chia̍h po-lê, mā bē tio̍h-siong.私はガラスを食べられます。それは私を傷つけません。I can eat glass and it doesn't hurt me."
COLS = 30
rows = STRING.display_width / COLS
(0 .. rows).each { |i| puts STRING.display_slice(i * COLS, COLS) }
Thanks!
--
William <wmorgan-sup@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sup-devel] console gem 0.3
2011-01-18 20:05 [sup-devel] console gem 0.3 William Morgan
@ 2011-01-18 21:20 ` Sascha Silbe
2011-01-18 22:30 ` Hamish D
1 sibling, 0 replies; 3+ messages in thread
From: Sascha Silbe @ 2011-01-18 21:20 UTC (permalink / raw)
To: William Morgan; +Cc: sup-devel
[-- Attachment #1.1: Type: text/plain, Size: 1122 bytes --]
Excerpts from William Morgan's message of Tue Jan 18 21:05:58 +0100 2011:
> If you are a non-i386 Linux user, please try `gem install console` and
> report the result (success/failure) along with your OS version and your
> ruby version.
Builds fine on an OpenRD (armel) running Debian Squeeze / Linux 2.6.34:
sascha.silbe@flatty:~$ sudo gem install console
Building native extensions. This could take a while...
Successfully installed console-0.3
1 gem installed
Installing ri documentation for console-0.3...
Installing RDoc documentation for console-0.3...
sascha.silbe@flatty:~$
> For extra credit, here's a test script you can run and make sure the
> output is a 30-column block of text:
I can't spot any obvious failure:
我能吞下玻璃而不傷身體。Góa ē-
tàng chia̍h po-lê, mā bē tio̍h-s
iong.私はガラスを食べられます
それは私を傷つけません。I can
eat glass and it doesn't hurt
me.
I can test on amd64, too, but expect somebody else to have already done
so.
Sascha
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sup-devel] console gem 0.3
2011-01-18 20:05 [sup-devel] console gem 0.3 William Morgan
2011-01-18 21:20 ` Sascha Silbe
@ 2011-01-18 22:30 ` Hamish D
1 sibling, 0 replies; 3+ messages in thread
From: Hamish D @ 2011-01-18 22:30 UTC (permalink / raw)
To: Sup developer discussion
No problems here - Linux on x86_64, Ubuntu 10.10,
> If you are a non-i386 Linux user, please try `gem install console` and
> report the result (success/failure) along with your OS version and your
> ruby version.
$ ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
$ sudo gem install console
[sudo] password for mish:
Building native extensions. This could take a while...
Successfully installed console-0.3
1 gem installed
Installing ri documentation for console-0.3...
Installing RDoc documentation for console-0.3...
> For extra credit, here's a test script you can run and make sure the
> output is a 30-column block of text:
$ ruby console-test.rb
我能吞下玻璃而不傷身體。Góa ē-
tàng chia̍h po-lê, mā bē tio̍h-s
iong.私はガラスを食べられます
それは私を傷つけません。I can
eat glass and it doesn't hurt
me.
Hamish Downer
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-18 22:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 20:05 [sup-devel] console gem 0.3 William Morgan
2011-01-18 21:20 ` Sascha Silbe
2011-01-18 22:30 ` Hamish D
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox