[MacRuby-devel] [MacRuby] #257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4

2009-05-23 Thread MacRuby
#257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4
---+
 Reporter:  nex...@…   |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:  json 
---+
 Following is on macirb prompt. Same Happens in XCode Project.
 Let me know if more information is needed and how I can provide that.

 ( following trace is also available at http://gist.github.com/116577 )
 >> h.to_json
 => "{\"testing\":\"Hello World\"}"
 >> JSON::parse(h.to_json)
 dyld: lazy symbol binding failed: Symbol not found: _RHASH_TBL
   Referenced from:
 /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1
 /universal-darwin9.5/json/ext/parser.bundle
   Expected in: flat namespace

 dyld: Symbol not found: _RHASH_TBL
   Referenced from:
 /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1
 /universal-darwin9.5/json/ext/parser.bundle
   Expected in: flat namespace

 Trace/BPT trap

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] REXML

2009-05-23 Thread Robert Rice

Hi Matt:

Your hot patch works in MacIRB but it doesn't seem to work in XCODE.  
Any idea why there would be a difference?


Thanks,
Bob Rice


On May 22, 2009, at 12:59 PM, Matt Aimonetti wrote:

For XML, you can use Cocoa API or if you want to ue REXML, you need  
to use the hot patch I mentioned there:


http://www.macruby.org/trac/ticket/134

Regarding the serialport library, I can't seem to see it on  
rubyforge, so I'm not sure what you are referring to.


- Matt

On Fri, May 22, 2009 at 9:44 AM, Robert Rice   
wrote:

Dear MacRuby development team:

I am new to Ruby and I have an application that I would like to port  
to MacRuby. The two extensions I will need are XML and serial port I/ 
O.

So far I have not been able to get them to work:

Last login: Fri May 22 12:31:48 on ttys000
new-host:~ robertrice$ macirb
>> require "rexml/document"
NameError: uninitialized constant REXML::Attribute::NAME_STR
   from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ 
lib/ruby/1.9.1/rexml/attribute.rb:18:in `'
   from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ 
lib/ruby/1.9.1/rexml/attribute.rb:9:in `'
   from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ 
lib/ruby/1.9.1/rexml/attribute.rb:4:in `'
   from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ 
lib/ruby/1.9.1/rexml/element.rb:3:in `require'
   from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ 
lib/ruby/1.9.1/rexml/element.rb:3:in `'
   from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ 
lib/ruby/1.9.1/rexml/document.rb:1:in `require'
   from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ 
lib/ruby/1.9.1/rexml/document.rb:1:in `'

   from (irb):1:in `require'
   from (irb):1
   from /usr/local/bin/macirb:12:in `'
>> require "rubygems"
=> false
>> require "serialport"
LoadError: no such file to load -- serialport
   from (irb):3:in `require'
   from (irb):3
   from /usr/local/bin/macirb:12:in `'
>> exit
new-host:~ robertrice$ exit
logout

[Process completed]

Can anyone help me? Do I have a bad installation of MacRuby?

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

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


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


Re: [MacRuby-devel] REXML

2009-05-23 Thread Matt Aimonetti
hmmm make sure you are executing my code before loading rexml/document or
rexml/client. If you can't get it to work, please show me your code so I can
reproduce the issue and try to help.

- Matt

On Sat, May 23, 2009 at 7:43 AM, Robert Rice  wrote:

> Hi Matt:
> Your hot patch works in MacIRB but it doesn't seem to work in XCODE. Any
> idea why there would be a difference?
>
> Thanks,
> Bob Rice
>
>
> On May 22, 2009, at 12:59 PM, Matt Aimonetti wrote:
>
> For XML, you can use Cocoa API or if you want to ue REXML, you need to use
> the hot patch I mentioned there:
>
> http://www.macruby.org/trac/ticket/134
>
> Regarding the serialport library, I can't seem to see it on rubyforge, so
> I'm not sure what you are referring to.
>
> - Matt
>
> On Fri, May 22, 2009 at 9:44 AM, Robert Rice  wrote:
>
>> Dear MacRuby development team:
>>
>> I am new to Ruby and I have an application that I would like to port to
>> MacRuby. The two extensions I will need are XML and serial port I/O.
>> So far I have not been able to get them to work:
>>
>> Last login: Fri May 22 12:31:48 on ttys000
>> new-host:~ robertrice$ macirb
>> >> require "rexml/document"
>> NameError: uninitialized constant REXML::Attribute::NAME_STR
>>from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/attribute.rb:18:in
>> `'
>>from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/attribute.rb:9:in
>> `'
>>from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/attribute.rb:4:in
>> `'
>>from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/element.rb:3:in
>> `require'
>>from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/element.rb:3:in
>> `'
>>from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/document.rb:1:in
>> `require'
>>from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/document.rb:1:in
>> `'
>>from (irb):1:in `require'
>>from (irb):1
>>from /usr/local/bin/macirb:12:in `'
>> >> require "rubygems"
>> => false
>> >> require "serialport"
>> LoadError: no such file to load -- serialport
>>from (irb):3:in `require'
>>from (irb):3
>>from /usr/local/bin/macirb:12:in `'
>> >> exit
>> new-host:~ robertrice$ exit
>> logout
>>
>> [Process completed]
>>
>> Can anyone help me? Do I have a bad installation of MacRuby?
>>
>> Thanks,
>> Bob Rice
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4

2009-05-23 Thread Matt Aimonetti
I started working on a obj-c based json parser/generator. Can you give it a
try and let me know if it works for you?

http://github.com/mattetti/macruby-json/tree/master

- Matt

On Sat, May 23, 2009 at 3:28 AM, MacRuby wrote:

> #257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4
>
> ---+
>  Reporter:  nex...@…   |   Owner:  lsansone...@…
> Type:  defect |  Status:  new
>  Priority:  blocker|   Milestone:
> Component:  MacRuby|Keywords:  json
>
> ---+
>  Following is on macirb prompt. Same Happens in XCode Project.
>  Let me know if more information is needed and how I can provide that.
>
>  ( following trace is also available at http://gist.github.com/116577 )
>  >> h.to_json
>  => "{\"testing\":\"Hello World\"}"
>  >> JSON::parse(h.to_json)
>  dyld: lazy symbol binding failed: Symbol not found: _RHASH_TBL
>   Referenced from:
>  /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1
>  /universal-darwin9.5/json/ext/parser.bundle
>   Expected in: flat namespace
>
>  dyld: Symbol not found: _RHASH_TBL
>   Referenced from:
>  /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1
>  /universal-darwin9.5/json/ext/parser.bundle
>   Expected in: flat namespace
>
>  Trace/BPT trap
>
> --
> Ticket URL: 
> MacRuby 
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #258: [HotCocoa] Add autohide_scrollers method to scroll_view

2009-05-23 Thread MacRuby
#258: [HotCocoa] Add autohide_scrollers method to scroll_view
-+--
 Reporter:  d...@…|   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  minor|   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 The only way to currently autohide the scrollers is to use
 setAutohidesScrollers on the scroll_view object.  This adds a
 autohide_scrollers that can be called in the scroll_view creation
 parameters.

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] [MacRuby] #259: [HotCocoa] add frame_color method and drawing to layout_view

2009-05-23 Thread MacRuby
#259: [HotCocoa] add frame_color method and drawing to layout_view
-+--
 Reporter:  d...@…|   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  minor|   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 The $DEBUG setting to change the frame colour of the layout views to red
 is handy. I've expanded it to allow setting arbitrary colours on the
 layout_views, which I found, makes it easier to position all of the layout
 views visually.

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] [MacRuby] #260: [HotCocoa] table_view additions

2009-05-23 Thread MacRuby
#260: [HotCocoa] table_view additions
-+--
 Reporter:  d...@…|   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  minor|   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 The attached adds a few methods to the table_view class:

   - data_source to retrieve the data source for the view
   - reload to reload the table_view from it's data source
   - alternating_row_background_colors to enable/disable alternating
 colours
   - grid_style to set the grid separator style (:none, :vertical,
 :horizontal or :both)

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] [MacRuby] #261: [HotCocoa] add size= to layout_view

2009-05-23 Thread MacRuby
#261: [HotCocoa] add size= to layout_view
-+--
 Reporter:  d...@…|   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  minor|   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 I prefer to allow my expands to set the x, y co-ordinates for my layouts.
 Instead of passing 0, 0 as the X, Y to :frame I've added a :size to
 layout_view.

-- 
Ticket URL: 
MacRuby 

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