[MacRuby-devel] MacRuby 0.6 and iconv

2010-03-29 Thread Yvon Thoraval
Hey all,

i think i've successfully install MacRuby from svn (revision 3886) :

zsh-% which macruby
/usr/local/bin/macruby
zsh-% macruby -v
MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]

however i got :

[1]18359 abort  ./change_signature_macruby.rb


this is due to the line :

la[i] = Iconv.new('MacRoman',
'UTF-8').iconv(signature.split(/#{LF}/).join(CR))

where :

LF = 10.chr
CR = 13.chr

and signature is an UTF-8 String which i want to transcode to MacRoman.

the first lines of this script being :

#! /usr/local/bin/macruby
# encoding: utf-8

require 'rubygems'
require 'iconv'

Am I doing something wrong with Iconv ?

best,

Yvon
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #638: NSCFNUmber.to_f doesn't work correctly

2010-03-29 Thread MacRuby
#638: NSCFNUmber.to_f doesn't work correctly
-+--
 Reporter:  jordan.breed...@…|   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by lsansone...@…):

 Seems 10.6 only.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #640: macgem fails to build from gemspec

2010-03-29 Thread MacRuby
#640: macgem fails to build from gemspec
---+
 Reporter:  tpit...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:  macgem build gem 
---+
 Steps to reproduce:

 1. install MacRuby 0.5 from macruby.org download
 2. clone http://github.com/tpitale/octopi/
 3. checkout the ruby-only branch
 4. macgem build octopi.gemspec

 Fails with:
 WARNING:  RDoc will not be generated (has_rdoc == false)
 ERROR:  While executing gem ... (IOError)
 not opened for reading

 The same happens with this repository: http://github.com/vigetlabs/garb

 Both build fine with RVM installed ruby 1.9.2-preview1 version of gem.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #586: "macgem build" fails.

2010-03-29 Thread MacRuby
#586: "macgem build" fails.
-+--
 Reporter:  r...@…|   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  major|   Milestone:   
Component:  MacRuby  |Keywords:  macgem   
-+--

Comment(by tpit...@…):

 I'm also having this problem in problem #640 with two example projects.
 This seems to be a more simple example. Feel free to close mine if
 duplicate, if that is the case.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #640: macgem fails to build from gemspec

2010-03-29 Thread MacRuby
#640: macgem fails to build from gemspec
---+
 Reporter:  tpit...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:  macgem build gem 
---+
Description changed by martinlagarde...@…:

Old description:

> Steps to reproduce:
>
> 1. install MacRuby 0.5 from macruby.org download
> 2. clone http://github.com/tpitale/octopi/
> 3. checkout the ruby-only branch
> 4. macgem build octopi.gemspec
>
> Fails with:
> WARNING:  RDoc will not be generated (has_rdoc == false)
> ERROR:  While executing gem ... (IOError)
> not opened for reading
>
> The same happens with this repository: http://github.com/vigetlabs/garb
>
> Both build fine with RVM installed ruby 1.9.2-preview1 version of gem.

New description:

 Steps to reproduce:

  1. install MacRuby 0.5 from macruby.org download
  2. clone http://github.com/tpitale/octopi/
  3. checkout the ruby-only branch
  4. macgem build octopi.gemspec

 Fails with:
 {{{
 WARNING:  RDoc will not be generated (has_rdoc == false)
 ERROR:  While executing gem ... (IOError)
 not opened for reading
 }}}

 The same happens with this repository: http://github.com/vigetlabs/garb

 Both build fine with RVM installed ruby 1.9.2-preview1 version of gem.

--

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #640: macgem fails to build from gemspec

2010-03-29 Thread MacRuby
#640: macgem fails to build from gemspec
---+
 Reporter:  tpit...@…  |Owner:  lsansone...@…
 Type:  defect |   Status:  closed   
 Priority:  blocker|Milestone:   
Component:  MacRuby|   Resolution:  duplicate
 Keywords:  macgem build gem   |  
---+
Changes (by martinlagarde...@…):

  * status:  new => closed
  * resolution:  => duplicate


Comment:

 Hi there!

 As you noted, this is a duplicate of #586

 Thanks for the report though :-)

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2010-03-29 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-

Comment(by martinlagarde...@…):

 This should be fixed with the latest trunk, can you verify?

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #606: Zlib::Inflate crashing

2010-03-29 Thread MacRuby
#606: Zlib::Inflate crashing
+---
 Reporter:  jens.nock...@…  |Owner:  lsansone...@…
 Type:  defect  |   Status:  closed   
 Priority:  minor   |Milestone:   
Component:  MacRuby |   Resolution:  fixed
 Keywords:  |  
+---
Changes (by martinlagarde...@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 This looks fixed on trunk:

 {{{
 $> macruby -e 'require "zlib"; Zlib::Inflate.inflate("Test")'
 /private/tmp/-e:1:in `': incorrect header check (Zlib::DataError)
 $> ruby19 -e 'require "zlib"; Zlib::Inflate.inflate("Test")'
 -e:1:in `inflate': incorrect header check (Zlib::DataError)
 from -e:1:in `'
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #586: "macgem build" fails.

2010-03-29 Thread MacRuby
#586: "macgem build" fails.
-+--
 Reporter:  r...@…|   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  major|   Milestone:   
Component:  MacRuby  |Keywords:  macgem   
-+--

Comment(by martinlagarde...@…):

 The core problem is fixed, but macgem is still unable to generate correct
 .gem files because of an issue in our Zlib. Keeping the bug open meanwhile
 :-)

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #606: Zlib::Inflate crashing

2010-03-29 Thread MacRuby
#606: Zlib::Inflate crashing
+---
 Reporter:  jens.nock...@…  |Owner:  lsansone...@…
 Type:  defect  |   Status:  closed   
 Priority:  minor   |Milestone:  MacRuby 0.6  
Component:  MacRuby |   Resolution:  fixed
 Keywords:  |  
+---
Changes (by lsansone...@…):

  * milestone:  => MacRuby 0.6


-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2010-03-29 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |Owner:  lsansone...@…

 Type:  defect|   Status:  closed   

 Priority:  blocker   |Milestone:  MacRuby 0.6  

Component:  MacRuby   |   Resolution:  fixed

 Keywords:  macgem, gem   |  
--+-
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  MacRuby 0.5 => MacRuby 0.6


Comment:

 I tried with ToT and the dm-core gem seems to be installable (as well as
 its dependencies). However it cannot be loaded:

 {{{
 $ /usr/local/bin/macruby -e "require 'rubygems'; require 'dm-core'; p 42"
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/addressable-2.1.1/lib/addressable/idna.rb:4696:
 regexp `\0+\z 'compilation error: U_REGEX_BAD_ESCAPE_SEQUENCE
 /Users/lrz/src/macruby-trunk/-e:1:in `': no such file to load -- dm-
 core (LoadError)
 $
 }}}

 Apparently the addressable gem has a regular expression that ICU won't
 compile. But this is a separate issue that should be tracked by another
 bug. So I am closing this one, let us know if macgem still does not work
 for you and we will re-investigate.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #340: http.get failing with the error "wrong chunk size line: (Net::HTTPBadResponse)" (was: http.get failing with the error "not in gzip format")

2010-03-29 Thread MacRuby
#340: http.get failing with the error "wrong chunk size line:
(Net::HTTPBadResponse)"
+---
 Reporter:  bobsteven...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:   
Component:  MacRuby |Keywords:  http get 
+---
Changes (by martinlagarde...@…):

  * milestone:  MacRuby 0.5 =>


Old description:

> http.get is causing a error that says
> "not in gzip format"
>
> require 'net/http'
> require 'rexml/document'
> require 'uri'
>
> @@token ='mCHpMz2L_a_OrEkz3FSiDg'
> @@hostname = 'api.kayak.com'
> @@port = 80
>
> Net::HTTP.start(@@hostname, @@port) do |http|
> response = http.get("/k/ident/apisession?token=#{token}")
> end

New description:

 http.get is causing a error that says
 "not in gzip format"

 {{{
 #!ruby
 require 'net/http'
 require 'rexml/document'
 require 'uri'

 token ='mCHpMz2L_a_OrEkz3FSiDg'
 hostname = 'api.kayak.com'
 port = 80

 Net::HTTP.start(hostname, port) do |http|
 response = http.get("/k/ident/apisession?token=#{token}")
 end
 }}}

--

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #604: EXC_BAD_ACCESS while opening stream

2010-03-29 Thread MacRuby
#604: EXC_BAD_ACCESS while opening stream
---+
 Reporter:  jakub.su...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  critical   |   Milestone:   
Component:  MacRuby|Keywords:   
---+

Comment(by martinlagarde...@…):

 I just looked closely: the problem is that our `io.c` does the following:
 {{{
 #!c
 rb_objc_define_module_function(rb_mKernel, "open", rb_f_open, -1);
 }}}
 It defines the "open" method over `rb_mKernel`, which is the super class
 of every object, even NSObject! This is to allow code like:
 {{{
 #!ruby
 open("testfile") do |f|
 print f.gets
 end
 }}}
 This avoids the need to use `IO.open`.

 But this means that we supersede the original "open" from Obj-C, which is
 why our function gets called. I'm not sure yet what action should be
 taken. I'll discuss that with Laurent.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #583: macgem doesn't work with the latest trunk

2010-03-29 Thread MacRuby
#583: macgem doesn't work with the latest trunk
-+--
 Reporter:  hghoe...@…   |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  major|   Milestone:  MacRuby 0.6  
Component:  MacRuby  |Keywords:   
-+--

Comment(by hghoe...@…):

 No problem installing hotococoa using the latest trunk (svn revision 3895
 and macgem v. 1.3.6). This ticket can be closed.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #583: macgem doesn't work with the latest trunk

2010-03-29 Thread MacRuby
#583: macgem doesn't work with the latest trunk
-+--
 Reporter:  hghoe...@…   |Owner:  lsansone...@…
 Type:  defect   |   Status:  closed   
 Priority:  major|Milestone:  MacRuby 0.6  
Component:  MacRuby  |   Resolution:  fixed
 Keywords:   |  
-+--
Changes (by martinlagarde...@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Thanks for reporting back :-). Closing.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel