Re: [MacRuby-devel] The Future of MacRuby

2012-04-09 Thread Eloy Duran
> I was wondering if there would be benefit to writing (a) Generator(s) ala' > Rails' "rails" script for the stubbing out of apps and m,v,c ? Imagine: > > facet new > facet g model > … > > Thoughts? I had started on rewriting my tools for that for MacRuby, actually based on the same way Rail

Re: [MacRuby-devel] The future of MacRuby

2012-04-07 Thread Eloy Duran
> Can you import before it's open? I just assumed it wasn't accessible at all > until enable? It looks like forgeplucker (http://home.gna.org/forgeplucker/) > has support to pull tickets out of trac and dump to JSON. Should be pretty > easy to go from JSON to GitHub API I'd expect. Well, we’d o

Re: [MacRuby-devel] The future of MacRuby

2012-04-07 Thread Eloy Duran
> Can we get the issues section enabled on github and move off of Trac? (Not > sure how hard it would be to import all of the old trac stuff to Github). > > Would be nice to consolidate everything in one place. I think that’s an excellent idea. However, it’s probably better to first import tick

Re: [MacRuby-devel] The Future of MacRuby

2012-04-07 Thread Eloy Duran
The technology by the name “ARC” actually inserts the required code at compile time and only for Objective-C(++). The principal of ARC, however, can be applied to MacRuby. On 7 apr. 2012, at 13:13, Henry Maddocks wrote: > > On 7/04/2012, at 6:13 PM, Joshua Ballanco wrote: > >> Regarding ARC,

Re: [MacRuby-devel] Future of MacRuby

2012-04-06 Thread Eloy Duran
> Yes, I'm still alive :) As you may have noticed, I have been absent > here for a few months. Last year we got a baby, then we moved back to > Europe. I decided to leave Apple a few months ago to achieve one of my > dreams: work on a startup, in part so that I would be flexible in my > time and be

Re: [MacRuby-devel] MacRuby promise delivered

2011-11-24 Thread Eloy Duran
And an ‘example’ of what it looks like :) http://www.ustream.tv/recorded/16057682/highlight/188706 On 24 nov. 2011, at 02:52, Michael Johnston wrote: > I added basic fsevents reloading in my fork > (https://github.com/lastobelus/MacRubyReload) > > Should change to check an environment var firs

Re: [MacRuby-devel] MacRuby promise delivered

2011-11-24 Thread Eloy Duran
Here’s a GUI approach to using macirb: https://github.com/alloy/Interactive-MacRuby I didn’t have time to finish it yet, but it might still be useful. On 24 nov. 2011, at 02:52, Michael Johnston wrote: > I added basic fsevents reloading in my fork > (https://github.com/lastobelus/MacRubyReload

Re: [MacRuby-devel] MacRuby-devel Digest, Vol 45, Issue 26

2011-11-18 Thread Eloy Duran
Sounds like a CocoaPods spec for MCPKit might help out greatly in this case :) There’s a MacRuby example app which shows how to use it with MacRuby: https://github.com/CocoaPods/CocoaPods/blob/master/examples/MacRubySample/Podfile On 17 nov. 2011, at 12:30, Jean-Denis MUYS wrote: > Thanks for y

Re: [MacRuby-devel] Write your own version of Siri in MacRuby

2011-11-15 Thread Eloy Duran
There’s also James by Florian Hanke: https://github.com/floere/james On Mon, Nov 14, 2011 at 5:57 PM, Matt Aimonetti wrote: > I extracted an old demo I had made for RubyConf which shows how to use the > voice recognizer feature of OS X to implement an app which could be the Siri > equivalent for

[MacRuby-devel] CocoaPods, an Objective-C library package manager. Now with OS X and BridgeSupport support!

2011-10-20 Thread Eloy Duran
Hi, I’ve just released CocoaPods 0.1.0 https://github.com/alloy/cocoapods, which can now be used for OS X development. In addition it now also generated BridgeSupport metadata files from the Pods, which makes it very easy to use these libraries from MacRuby. There is a MacRuby example which us

Re: [MacRuby-devel] [ANN] HotCocoa gets reheated

2011-10-14 Thread Eloy Duran
Great work, Mark! On Fri, Oct 14, 2011 at 7:08 AM, Robert Lowe wrote: > Mark, > > You're freaking amazing! (Not only for your commits to macruby) but for > breathing life into hotcocoa. Damn. > > Appspec is sinisterly awesome in concept. > > Love it, >  - Rob > > PS: A Torontonian too, eh? Let m

Re: [MacRuby-devel] ASIHTTPRequest examples

2011-10-12 Thread Eloy Duran
Slightly offtopic: This gave me the idea to make CocoaPods handle BridgeSupport for dependencies as well: https://github.com/alloy/cocoapods/issues/23 On 12 okt. 2011, at 03:30, Dominic Dagradi wrote: > To use it from Ruby file, you don't need to require anything. Just > drag-and-drop it into

Re: [MacRuby-devel] Apps in the MAS built with MacRuby

2011-09-18 Thread Eloy Duran
Thanks everybody! I’ll compile a list tomorrow and also add it to the github wiki. ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

[MacRuby-devel] Apps in the MAS built with MacRuby

2011-09-18 Thread Eloy Duran
Hey guys, For an upcoming presentation I’m giving (on saturday at SecondConf) I’d like to have an updated list of apps built with MacRuby which are available in the Mac App Store. So please let me know about your apps! Cheers, Eloy ___ MacRuby-devel

Re: [MacRuby-devel] AWS-S3 gem doesn't work with MacRuby

2011-08-27 Thread Eloy Duran
Actually, googling did reveal some Objective-C code for S3, which is a possible workaround. HTH On 25 aug. 2011, at 21:25, Jeremy Smith wrote: > This works when I try it in MRI. But this is what happens in Macruby. Is > there a workaround? > > $ macirb -f > irb(main):003:0> require

Re: [MacRuby-devel] AWS-S3 gem doesn't work with MacRuby

2011-08-27 Thread Eloy Duran
I haven’t used this library on MacRuby, so unless someone else knows of a workaround the only solution is to fix it. It would be great if you could reduce the actual problem to a few lines of code and file a ticket, even if there's a workaround :) Eloy On 25 aug. 2011, at 21:25, Jeremy Smith w

Re: [MacRuby-devel] Experiences with m17N using PostgreSQL with macruby

2011-08-27 Thread Eloy Duran
In principle MRI is always right, so unless there's a comment or spec that explains why we deviate it's a bug. Eloy On 24 aug. 2011, at 18:19, Steve Clarke wrote: > I want to use PostgreSQL with macruby. > > At first I couldn't make this work. I eventually had some success and > learned qu

Re: [MacRuby-devel] How do I install bundler without disrupting my MRI bundler

2011-08-22 Thread Eloy Duran
You can install the gem with `sudo macgem install bundler --format-executable`, which will create the bin wrapper like `/usr/bin/macbundler`. On 21 aug. 2011, at 16:42, Jeremy Smith wrote: > If I try to install bundler using "sudo macgem install bundler", it wants to > over-write my existing bu

Re: [MacRuby-devel] macruby_deploy problem with app having space in name

2011-07-21 Thread Eloy Duran
Our test fixture app should probably include a space in the name so we can ensure this doesn't happen anymore. On 21 jul. 2011, at 11:37, James Chen wrote: > Mark, > > I saw this is fixed on github. Installed the July 21 nightly build and tried > again. Now it has another error on lipo: > >

Re: [MacRuby-devel] Drop on Icon

2011-07-13 Thread Eloy Duran
You probably want to make that a delegate of the application instance, not the ‘first responder’. On 13 jul 2011, at 20:12, guillaume belleguic wrote: > I'm using a delegate class for the first responder of my MainMenu.xib > > class AppDelegate > > def application(sender, openFile: a_f

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Eloy Duran
Oops, thanks for the fix :) On 28 jun 2011, at 18:21, Robert Lowe wrote: > Value must be a pointer when passed > > value_to_pointer = Pointer.new(:object) > value_to_pointer.assign(value) > > Regards, > - Rob > > On 2011-06-28, at 12:08 PM, Eloy Duran wrote: >

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Eloy Duran
That’s untested code btw. On Tue, Jun 28, 2011 at 6:08 PM, Eloy Duran wrote: > I have no experience with Core Data, but if you are looking to make > repetitive work easy then don't forget about the metaprogramming > possibilities with Ruby. Taking your example, you could create

Re: [MacRuby-devel] Need to Write Core Data Accessors in MacRuby?

2011-06-28 Thread Eloy Duran
I have no experience with Core Data, but if you are looking to make repetitive work easy then don't forget about the metaprogramming possibilities with Ruby. Taking your example, you could create class method like the following: class Model def self.core_data_accessor(name) class_eval(%{

Re: [MacRuby-devel] Migrating branches tags/0.x to actual tags v0.x

2011-06-21 Thread Eloy Duran
Thanks, I kept forgetting to fix that. However, it seems that the version branches contain some more commits than the tags (not sure how this happened), so I’ll need to do some more work by hand. I’ll do this tonight. On Tue, Jun 21, 2011 at 1:26 PM, Martin Schürrer wrote: > Hi, > > one thing bug

Re: [MacRuby-devel] xcode binding a class within a class?

2011-06-20 Thread Eloy Duran
Alas, it must be in the global namespace, as Objective-C has no notion of namespacing. On Mon, Jun 20, 2011 at 7:16 PM, Robert Lowe wrote: > Is it possible to bind classes in xcode to a class within a class? > > Say for instance the file's owner of an app (NSApplication) to a class within > a cl

Re: [MacRuby-devel] code completion in Xcode4

2011-06-15 Thread Eloy Duran
As far as I know we have no control over this. I can only advise you to file a ticket about this with Apple: https://bugreport.apple.com On 12 jun 2011, at 23:09, Jakub Suder wrote: > Hi, > > I wanted to ask about code completion (i.e. the method name > suggestions that you get while typing) fo

Re: [MacRuby-devel] MacRuby objects in IB in Xcode4

2011-06-12 Thread Eloy Duran
Are you defining the ‘action’ method with a ‘sender’ argument? Because that's the way it's picked up as being a method that should be exposed to IB. E.g.: def peelBananas(sender) # provide your optimized algorithm for peeling bananas end On 11 jun 2011, at 21:46, Jakub Suder wrote: > Hi

Re: [MacRuby-devel] OS/arch support

2011-06-12 Thread Eloy Duran
In case you want 32-bit support, you will have to build your own MacRuby from source. The reason we don't provide binary installers for it anymore is because nobody on the team has 32-bit machines anymore and thus we can't ensure it will work 100%. To compile MacRuby as a universal binary: $

Re: [MacRuby-devel] Dynamic refresh in a view - xcode 4 / MacRuby

2011-05-25 Thread Eloy Duran
Just as an extra FYI, you are indeed blocking the main thread by using `sleep 1`, which is a synchronous call and thus in that one second no other code on the same thread will have a chance to update your views. On Wed, May 25, 2011 at 7:50 AM, Thomas R. Koll wrote: > Laurent is right and and I t

Re: [MacRuby-devel] macruby_deploy and nokogiri - LoadError on some mac

2011-05-18 Thread Eloy Duran
Hi, It seems that the nokogiri gem that you are bundling has been compiled against a iconv installation in /opt/local (macports|homebrew). Some users probably have it as well which is why they wouldn't complain, but people with a default osx installation don't. Here's what it does on my system,

Re: [MacRuby-devel] macruby singleton_methods

2011-05-11 Thread Eloy Duran
Yes you can compare MacRuby against 1.9.2. I *think* the best would be to compare against 1.9 trunk, but Laurent might have to correct me on that. So yes, please file a ticket for this issue :) On Wed, May 11, 2011 at 1:24 PM, anoiaque wrote: > Hi, > > Suppose:  class User; def self.all;end end

Re: [MacRuby-devel] Mac server for continuous integration

2011-05-06 Thread Eloy Duran
erver-tool-for-the-ruby-community On Fri, May 6, 2011 at 2:27 PM, Alexander von Below wrote: > What exactly can I do for you? > > Alex > > Am 06.05.2011 um 14:25 schrieb Eloy Duran: > >> Hi, >> >> In case there's anyone on this list with mac server(s), it wou

[MacRuby-devel] Mac server for continuous integration

2011-05-06 Thread Eloy Duran
Hi, In case there's anyone on this list with mac server(s), it would be great if one, or some cpu time, could be donated to the http://travis-ci.org project to support MacRuby and allow developers to test their gems on MacRuby. In the case of MacRuby this would mean running the full spec suite, a

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
> Also, I am very interested in helping with a test suite for ruby_deploy as > there are other changes I'd like to make to it; I was having a bit of > difficulty getting started due to how ruby_deploy wants to load the compiler. > Please let me know how I can help! I’ve just pushed a spec for `

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
zipped 12MB). My only question is, can I somehow speedup > application start? Now it takes about 10 seconds (loading gems & project > files). > > - Petr > > On May 5, 2011, at 12:13 PM, Eloy Duran wrote: > >> No it's not your fault, it seems the code assumes a EN

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
ems. My specific case was from the RSS > module. > > https://www.macruby.org/trac/ticket/1020 > > On 5 May 2011, at 14:39, Eloy Duran wrote: > >> Aha indeed! Yes we should definitely compile them imo. But I’m not >> sure if there’s a good reason for excluding s

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
mpiled. Can > be STDLIB compiled as well? > > - Petr > > On May 5, 2011, at 2:34 PM, Eloy Duran wrote: > >> No, that's not right. The embed code is run before the compile code >> and the compile code uses the following to select all ruby files in >> the Re

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
t 45MB (zipped 12MB). My only question is, can I somehow speedup >> application start? Now it takes about 10 seconds (loading gems & project >> files). >> >> - Petr >> >> On May 5, 2011, at 12:13 PM, Eloy Duran wrote: >> >>> No it's not your fault,

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
peedup > application start? Now it takes about 10 seconds (loading gems & project > files). > > - Petr > > On May 5, 2011, at 12:13 PM, Eloy Duran wrote: > >> No it's not your fault, it seems the code assumes a ENV variable >> that's set by Xcode. Thi

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Eloy Duran
No it's not your fault, it seems the code assumes a ENV variable that's set by Xcode. This is the offending code: compile_options = { bundle: true, output: obj, files: [source] } # Use Xcode ARCHS env var to determine which archs to compile for compile_options[:archs] = ENV

Re: [MacRuby-devel] Building an application package

2011-04-29 Thread Eloy Duran
ut the rest of hot cocoa. > > Mark Rada > mr...@marketcircle.com > > > > On 2011-04-29, at 10:47 AM, Eloy Duran wrote: > >> PS every now and then I work on getting my command-line builder to >> where I want it to be, but I haven't had enough time yet: >>

Re: [MacRuby-devel] Building an application package

2011-04-29 Thread Eloy Duran
t. On Fri, Apr 29, 2011 at 4:44 PM, Eloy Duran wrote: > Create the app through xcode once, then use `xcodebuild` to build and > `macruby_deploy` to package. > > On Fri, Apr 29, 2011 at 4:35 PM, Petr Kaleta wrote: >> Hi, >> is there any tutorial how to build standalone app

Re: [MacRuby-devel] Building an application package

2011-04-29 Thread Eloy Duran
Create the app through xcode once, then use `xcodebuild` to build and `macruby_deploy` to package. On Fri, Apr 29, 2011 at 4:35 PM, Petr Kaleta wrote: > Hi, > is there any tutorial how to build standalone application package without > Xcode? > > Right now I am developing it in Textmate and debug

Re: [MacRuby-devel] MacRuby crash log

2011-04-09 Thread Eloy Duran
When the crash occurs is it always the same? If so, please try to find the code in your app, where the actual crash occurs, and create a simple self contained reduction and create a ticket with the reduction. Please also add a comment that says it only crashes sometimes. HTH On 8 apr 2011, at

Re: [MacRuby-devel] MacRuby 0.10 Sqlite3 and Sequel

2011-04-09 Thread Eloy Duran
If it works on MRI but not on MacRuby it's a bug. Unless someone with MacRuby +Sequel experience can give you a workaround, the only course of action would be to create a simple self contained reduction, by hunting down the code in Sequel that's broken on MacRuby and create a ticket with the red

Re: [MacRuby-devel] I want to talk about MacRuby support of Lion.

2011-04-08 Thread Eloy Duran
No need to apologize, you did the right thing :) On 8 apr. 2011, at 06:16, Takao Kouji wrote: > Hi, > > I'm sorry. I will talk about it other place. > > Thanks Kouji. > > On 2011/04/08, at 11:49, Takao Kouji wrote: > >> Hi, >> >> I have joined the "Mac Developer Program". >> I am compiling

Re: [MacRuby-devel] looking for ruby-sher syntax

2011-04-01 Thread Eloy Duran
e HotCocoa), nor do I think we shouyld hide it from the user, because all API docs use the objc style selectors, so hiding this from the user would make it even harder to translate objc code to MacRuby. On Fri, Apr 1, 2011 at 2:57 PM, Thomas R. Koll wrote: > > Am 01.04.2011 um 14:54 schrieb Eloy

Re: [MacRuby-devel] looking for ruby-sher syntax

2011-04-01 Thread Eloy Duran
Code works for me, so it's not really clear to me which #transform method you are missing. Regarding the style, I prefer to use parenthesis, which makes it a bit clearer. If you really dislike it and have to use it many times, you could of course wrap it: $ macirb irb(main):001:0> class NSAffineTr

Re: [MacRuby-devel] WWDC ?

2011-03-30 Thread Eloy Duran
I would have loved to come to the WWDC, but unfortunately can't make it... Sorry for the useless answer, just wanted to share my pain ;) On 28 mrt. 2011, at 22:25, Nick Ludlam wrote: > Hey all, > I was just wondering if Laurent or any of the other people involved with > MacRuby are planning to

Re: [MacRuby-devel] Shoulda incompatible with MacRuby

2011-03-20 Thread Eloy Duran
There's a ticket for that problem: http://www.macruby.org/trac/ticket/336, so it should be fixed, at some point :) On 20 mrt 2011, at 03:43, Morgan Schweers wrote: > Greetings, > Shoulda defines tests via: > > test_name = ["test: ", full_name, "should", "#{should[:name]}. > "].flatten.join(' '

Re: [MacRuby-devel] [ANN] TrackerBot 1.0 in App Store -- tested with MacRuby!

2011-03-16 Thread Eloy Duran
Christian / Matt, Do you guys happen to know if the UIAutomation API is available as a objc API as well? I'm currently using Nu for my BDD specs on the device itself with: https://github.com/alloy/NuBacon (rewrite with objc core: https://github.com/alloy/ObjectiveBacon) and have everything in p

Re: [MacRuby-devel] Help test a new MacRuby app

2011-03-14 Thread Eloy Duran
, Andre Lewis wrote: > HI Eloy, would you mind > trying http://redwoodapp.com/system/Redwood_macruby_trunk.zip -- it bundles > MacRuby 0.10/trunk, and is compiled for x86_64. Thanks! > Andre > > On Sat, Mar 12, 2011 at 9:25 AM, Eloy Duran wrote: >> >> The app crashes on

Re: [MacRuby-devel] Help test a new MacRuby app

2011-03-12 Thread Eloy Duran
The app crashes on startup on my macbook: core 2 duo, osx 10.6.6 12-03-11 18:18:02 Redwood[22169] starting Redwood 12-03-11 18:18:04 [0x0-0x475475].com.highgroove.redwood[22169] dlopen(/System/Library/Frameworks/CoreFoundation.framework/Resources/BridgeSupport/CoreFounda

[MacRuby-devel] [ANN] MacBacon 1.3

2011-03-12 Thread Eloy Duran
Hi, I’ve just released MacBacon 1.3. This release adds more NSRunLoop helpers: * you can now make the context a delegate and have spec execution pause until a delegate method has been called * pause spec execution until a KVO observable property of an object changes I forgot to email the list whe

Re: [MacRuby-devel] Potential macirb issue

2011-03-11 Thread Eloy Duran
This worked fine on an older version of trunk that I had installed, but with the current trunk I can confirm the same problem. Can you please file a ticket? On Thu, Mar 10, 2011 at 9:01 PM, Mark Rada wrote: > Hey all, > > I am getting an error when I add a #to_s method to NSURL: > >         ± irb

Re: [MacRuby-devel] NSLocalizedString

2011-02-22 Thread Eloy Duran
Something like this: module Kernel private def NSLocalizedString(key, value) NSBundle.mainBundle.localizedStringForKey(key, value:value, table:nil) end end On 21 feb 2011, at 23:56, Charles Steinman wrote: > On Mon, Feb 21, 2011 at 8:23 AM, Martin Hawkins > wrote: >> Changing the lin

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-13 Thread Eloy Duran
o contains the new >> benchmarking facilities (though I don't think that part was officially >> adopted by MRI), it might be worth considering pulling from upstream. >> >> On Fri, Feb 11, 2011 at 9:37 AM, Eloy Duran wrote: >> This *might* be because the minites

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-11 Thread Eloy Duran
This *might* be because the minitest version in our stdlib is outdated. You can try to install the minitest gem and require that instead and see if that fixes it. On Fri, Feb 11, 2011 at 3:24 PM, Gabriel Ayuso wrote: > I wanted to try using mocha to write unit tests with mocks. After requiring >

Re: [MacRuby-devel] Gems again; signing records

2011-01-29 Thread Eloy Duran
e time. On Sat, Jan 29, 2011 at 11:08 AM, Eloy Duran wrote: > Yes, what we need is a tool that resolves dependencies at release time > and bundle these in the app. The app also have a shim that makes sure > that if any of the bundled dependencies call Kernel#gem it doesn't > br

Re: [MacRuby-devel] Gems again; signing records

2011-01-29 Thread Eloy Duran
Yes, what we need is a tool that resolves dependencies at release time and bundle these in the app. The app also have a shim that makes sure that if any of the bundled dependencies call Kernel#gem it doesn't break. I.e. on the clients machine rubygems should not actually be loaded to ensure as fast

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Eloy Duran
Oops: s/i.e. iOS/e.g. iOS/ :) On 25 jan 2011, at 18:59, Eloy Duran wrote: > This is an outline of what I've *observed*: > > 1. OS X is the focus > 2. Core of MacRuby is written as portable as possible. For example, by using > CoreFoundation making it possible to have some

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Eloy Duran
This is an outline of what I've *observed*: 1. OS X is the focus 2. Core of MacRuby is written as portable as possible. For example, by using CoreFoundation making it possible to have someone port it by using CFLite. 3. For code that (currently) relies on OS X specific APIs, see point #1. In a n

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Eloy Duran
Great! :) Aliases are quite awesome when used locally, they allow you to link to a file that may move freely on the volume (and even across volumes iirc). However, I think that for your installer this won't really be a requirement, i.e. the link will probably always be in the unpacked directory

Re: [MacRuby-devel] Rspec, Embedded frameworks and ENV['DYLD_FRAMEWORK_PATH']

2011-01-21 Thread Eloy Duran
Xcode sets the env variable durin build time. So running this from a 'build phas script' (or whatever it is called) should work. However, if you just run this from the terminal it won't, as the env var isn't defined, so you should set it yourself. HTH On 19 jan. 2011, at 17:12, Michael Hagedor

Re: [MacRuby-devel] BridgeSupport v2

2011-01-19 Thread Eloy Duran
I'd love an installer that restores the original BS files. But I have no idea how much time that would cost you… On Wed, Jan 19, 2011 at 11:14 AM, Laurent Sansonetti wrote: > Hi Martin, > Sorry for the late reply. > Reverting to an earlier BridgeSupport is hard. Basically, you would need to > fir

Re: [MacRuby-devel] what are you building with macruby?

2011-01-18 Thread Eloy Duran
We’re working on a pretty big (code wise) product for designers, with complete custom views based on CALayers. Besides that I'm working on a Cocoa front-end for some simple input/output thingy that I can't elaborate on too much atm… ;) On Tue, Jan 18, 2011 at 8:41 PM, Gabriel Gilder wrote: > I'm

Re: [MacRuby-devel] Creating ruby objects in Objective-C

2011-01-17 Thread Eloy Duran
You're welcome Alan :) Hmm, I wonder if this big impact is because of skipping evaling everytime, which iirc is the only thing that evaluateString does, or something else is happening... Have you also tried doing [rubyClass new] instead of alloc init? I thought they should do the same. On 17 j

Re: [MacRuby-devel] ->(){} lambda syntax support

2011-01-12 Thread Eloy Duran
Yes, last time I checked there were no IRB specs. Ours is a (mostly) cleanroom rewrite: https://github.com/MacRuby/DietRB On 12 jan 2011, at 22:27, Joseph Anthony Pasquale Holsten wrote: > Is this testing different from rubyspec? > > On Jan 11, 2011, at 6:24 PM, Eloy Duran wrote: &g

Re: [MacRuby-devel] ->(){} lambda syntax support

2011-01-11 Thread Eloy Duran
I was about to take a look at this, but then my girlfriend introduced me to Rémi Gaillard… So as you can expect I didn't finish it :) Will have a look tomorrow, feel free to file a ticket in the meantime. Eloy On 11 jan 2011, at 22:59, Laurent Sansonetti wrote: > Hi Perry, > > We have such a

[MacRuby-devel] MacBacon, a fork of Bacon the RSpec clone.

2011-01-10 Thread Eloy Duran
Hi, I've just released a fork of the Bacon spec library for MacRuby. It specifically differs in the fact that it is NSRunloop aware, which is most visible in the `wait' method that allows you to schedule a block of assertions for later on the runloop. To be clear, the main thread is never halte

Re: [MacRuby-devel] rake spec:ci = could not lookup DNS configuration info service

2011-01-07 Thread Eloy Duran
The MacRuby specs are known to be a bit fragile, especially the GCD ones. To run all RubySpec specs you can do rake spec:rubyspec. On Thu, Jan 6, 2011 at 11:27 PM, Joel Reymont wrote: > Is this normal? > > I built the latest trunk, i.e. > > commit 36f01b88ae4290e9963ef2d48f26e5bdacdf2b54 > Author

Re: [MacRuby-devel] error location

2011-01-07 Thread Eloy Duran
se we might be overlapping work on that part. On Fri, Jan 7, 2011 at 1:22 AM, Joel Reymont wrote: > > On Jan 7, 2011, at 12:20 AM, Eloy Duran wrote: > >> The IRB::Source class uses Ripper and might be of help as well. > > Why would it be beneficial to catch syntax errors before ex

Re: [MacRuby-devel] error location

2011-01-06 Thread Eloy Duran
The IRB::Source class uses Ripper and might be of help as well. On 6 jan 2011, at 23:50, Laurent Sansonetti wrote: > I would catch the SyntaxError exception and poke at its content. > > If you want to catch syntax errors ahead of execution, you can use the ripper > extension, which is bundled i

Re: [MacRuby-devel] BridgeSupport Preview 2

2010-12-16 Thread Eloy Duran
It unfortunately still causes a segfault for my FSEvents RubyCocoa code in Kicker :( $ sudo gem install kicker $ kicker -e 'ls -l' Then after a change to a file in the current directory: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Eloy Duran
Hi Benjamin, The problem that you show is because your input at line 6 starts with ‘>>’. For example: $ macirb irb(main):001:0> >> foo SyntaxError: compile error (irb):1: syntax error, unexpected tRSHFT In case this masked an actual problem with IRB and/or Ruby’s bindings, which is NOT the same

Re: [MacRuby-devel] MacRuby & Mechanize failes

2010-12-09 Thread Eloy Duran
Could you please try to reduce the problem to a few lines of code and create a ticket for it? Cheers On Thu, Dec 9, 2010 at 12:23 PM, Vegar Vikan wrote: > Hi, > > I'm trying out another gem with macruby. This time it's Mechanize. > > I first tried with the nightly build from a couple of days ago

Re: [MacRuby-devel] move to llvm 2.8

2010-12-08 Thread Eloy Duran
Normally a ticket is a good idea for any patches, but I have already merged your patch in r4997. Thanks! On 8 dec 2010, at 20:04, isaac kearse wrote: > Thanks to Eloy for catching a typo in that last commit, updated here: > https://github.com/isaac/MacRuby/commit/10ae5cec5bd577c8c472995c9a12ff9b

Re: [MacRuby-devel] Segmentation fault

2010-12-06 Thread Eloy Duran
It shouldn't occur in the first place, actually. I.e. no Ruby code should lead to a segfault. Can you create a ticket for this? Thanks On 6 dec 2010, at 22:03, Robert Rice wrote: > Would it be possible to catch this error rather than allowing MacRuby to > crash with a Segmentation fault: > >

Re: [MacRuby-devel] bug smash recap

2010-12-06 Thread Eloy Duran
Idem dito. Thanks a lot everyone! I had tons of fun :) On 6 dec 2010, at 20:48, Matt Aimonetti wrote: > Thanks to everyone who joined the fun, we went from around 230 unscreeened > tickets to 32: http://www.macruby.org/trac/report/19 > We now have 80 open tickets scheduled for 1.0 > http://www.

Re: [MacRuby-devel] MacRuby and Sequel

2010-12-03 Thread Eloy Duran
Hi Vegar, as Laurent said on your stackoverflow ticket, sequel works out-of-the-box on MacRuby trunk (and nightly): $ /usr/local/bin/macruby -r rubygems -e "require 'sequel'; p 42" 42 Eloy On Fri, Dec 3, 2010 at 10:16 AM, Vegar Vikan wrote: > Hi, > > Someone says Sequel is possible to use with

Re: [MacRuby-devel] converging for 1.0

2010-12-01 Thread Eloy Duran
If you’d prefer to work against the https://github.com/MacRuby/MacRuby mirror, then by all means please do. I'll take pull requests, and others will probably to, but it would be a good idea to send links to these requests in the IRC channel too, as I *think* the emails will go to a black hole. How

Re: [MacRuby-devel] converging for 1.0

2010-11-30 Thread Eloy Duran
Yup :) On 30 nov. 2010, at 18:18, Emil Tin wrote: > > sounds great. > > but isn't saturday the 4th, not the 6th? > > > emil tin > > > On 30/11/2010, at 00.11, Laurent Sansonetti wrote: > >> Hi guys, >> >> Now that the vacations are behind us (well, behind me at least :)), it's >> time t

Re: [MacRuby-devel] converging for 1.0

2010-11-30 Thread Eloy Duran
As Matt said, the priorities are: * check if a ticket is still valid on trunk * reduce the ticket to an as small as possible code snippet reproducing the problem * then you can optionally fix it, but this is way less important than the first two steps :) Also, there are bound to come up lots of e

Re: [MacRuby-devel] converging for 1.0

2010-11-30 Thread Eloy Duran
Great! Just want to make clear that it’s saturday the 4th of december. Looking forward to helping you all out with helping us out! And now spread the word, because there are enough tickets for everyone ;) On Nov 30, 2010, at 12:11 AM, Laurent Sansonetti wrote: > Hi guys, > > Now that the vacat

Re: [MacRuby-devel] Conforming to a protocol

2010-11-22 Thread Eloy Duran
ll >> want a better solution for MacRuby, but this will work in the >> meantime. >> >> — Chuck >> >> On Wed, Nov 17, 2010 at 4:42 AM, Eloy Duran wrote: >>> Regardless of the current state, having a real Protocol class and objects >>> that y

Re: [MacRuby-devel] Objective-c Class -> methods

2010-11-21 Thread Eloy Duran
You can pass two arguments to #methods, which are to include methods from ancestors and to include Objective-C methods, So you probably want: vector.methods(false, true) On 21 nov 2010, at 18:55, András Zalavári wrote: > Hi there! > > I'm having problems of getting a list of methods from Class

Re: [MacRuby-devel] NSEvent MacRuby (updated)

2010-11-19 Thread Eloy Duran
e install Bridge Support preview. The funny thing is thet with > tha same version, system, etc the code is working on my iMac. but still does > not on my macbook. > > Abny idea or suggestions? how to fix. > > On Tue, Nov 16, 2010 at 7:47 PM, Eloy Duran wrote: > You can

Re: [MacRuby-devel] A little NSStatusBar app - Gmail Notifr

2010-11-19 Thread Eloy Duran
I don't think you need the BS preview for that. I can create a BS file with: $ gen_bridge_metadata -f Security -o Security.bridgesupport On 19 nov 2010, at 20:39, Joshua Ballanco wrote: > Hey James, > > The C API for the Keychain is not annotated with a bridge support file by > default in Snow

Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-18 Thread Eloy Duran
ot get lost in the semantic and/or the potentially trolling form ;) > > Back to hacking and learning! > > - Matt > > > > On Thu, Nov 18, 2010 at 8:01 AM, Eloy Duran wrote: > I don’t want to discuss this at length, but “clearly an exaggeration” is not > necessari

Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-18 Thread Eloy Duran
e any fear doing so. Something that newbies can have a hard time with. Cheers, Eloy On Nov 18, 2010, at 3:48 PM, Scott Ribe wrote: > On Nov 18, 2010, at 3:02 AM, Eloy Duran wrote: > >> I see no problem with this, as long as you know what you’re doing (which is >> with almos

Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-18 Thread Eloy Duran
> if x = logical_statement then > do_something(x) > else > do_something_else > end > > and whether you're coding in ruby, C/++, or whatever... it is almost always > considered bad form. Avoid it not only for the reasons I mentioned before, > but also to avoid the beat downs you'll get whenever

Re: [MacRuby-devel] calling Objective-C method with block parameter

2010-11-18 Thread Eloy Duran
000#comment:2 >> But feel free to investigate more and reopen it if you find something new. >> >> Thanks, >> >> - Matt >> >> On Wed, Nov 17, 2010 at 9:05 AM, Alan Skipp wrote: >> Ticket #1000 has been filed. >> Does the 1000th ticket get a speci

Re: [MacRuby-devel] calling Objective-C method with block parameter

2010-11-17 Thread Eloy Duran
y with the other project) and I had to > explicitly call 'load_bridge_support_file' to get the framework working there > also. > > > On 17 Nov 2010, at 13:42, Eloy Duran wrote: > >> The BridgeSupport file should be in a BridgeSupport directory inside the >> framework

Re: [MacRuby-devel] calling Objective-C method with block parameter

2010-11-17 Thread Eloy Duran
The BridgeSupport file should be in a BridgeSupport directory inside the framework’s Resources directory. For example, Foundation’s BridgeSupport file is at: /System/Library/Frameworks/Foundation.framework/Resources/BridgeSupport/Foundation.bridgesupport On Nov 17, 2010, at 2:32 PM, Alan Skipp

Re: [MacRuby-devel] Conforming to a protocol

2010-11-17 Thread Eloy Duran
Regardless of the current state, having a real Protocol class and objects that you can use to check against should be the goal. Let's discuss this further on the ticket from now on, for completeness sake. On Nov 17, 2010, at 12:44 PM, Thibault Martin-Lagardette wrote: > These structures are cur

Re: [MacRuby-devel] Conforming to a protocol

2010-11-17 Thread Eloy Duran
; > Even just comparing it to another protocol object using protocol == > Protocol.protocolWithName('...') leads to the same result. > > Any ideas as to how this could be made to work? > > On Nov 16, 2010, at 19:59 , Eloy Duran wrote: > >> I don't have an ex

Re: [MacRuby-devel] Conforming to a protocol

2010-11-16 Thread Eloy Duran
I don't have an example of a class that uses conformsToProtocol: on the delegate, so I can't give you a code example, but I would try to override the conformsToProtocol: class and instance methods and return true for those you support. On 15 nov 2010, at 00:15, Martijn Walraven wrote: > Hi, >

Re: [MacRuby-devel] NSEvent MacRuby (updated)

2010-11-16 Thread Eloy Duran
You can check which macruby version you have, like so: % macruby -v MacRuby 0.8 (ruby 1.9.2) [universal-darwin10.0, x86_64] Also: * which OS versions do you have? * did you install the BridgeSupport preview pkg? Eloy On 15 nov 2010, at 13:51, András Zalavári wrote: > (I'm not sure if the previ

Re: [MacRuby-devel] CorePlot success?

2010-11-10 Thread Eloy Duran
Can you provide a code snippet (irb) reproducing the exact problem you are experiencing? On Nov 10, 2010, at 5:59 AM, Russ McBride wrote: > > Has anyone gotten CorePlot working in a MacRuby app? > > http://code.google.com/p/core-plot/ > > I'm working on re-writing the DatePlot app in

Re: [MacRuby-devel] Creating a pdf : Cocoa to MacRuby translation

2010-11-05 Thread Eloy Duran
Normally this is not a bug. Most people lazy initialize instance variables, but you will get warned if you ask it to be more verbose. However, I have been unable to trigger it on MacRuby myself: % ruby19 -w -e '!...@foo' -e:1: warning: instance variable @foo not initialized % macruby -w -e '!..

  1   2   3   >