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 application name
facet g model AwesomeModelName!
…
Thoughts?
I had started on rewriting my tools for that for MacRuby, actually
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 jball...@gmail.com wrote:
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
tickets
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 open
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)
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 first
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
There’s also James by Florian Hanke: https://github.com/floere/james
On Mon, Nov 14, 2011 at 5:57 PM, Matt Aimonetti mattaimone...@gmail.com 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
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
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 domi...@bearded.com wrote:
To use it from Ruby file, you don't need to require anything. Just
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
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
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
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
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 ashc...@gmail.com wrote:
Mark,
I saw this is fixed on github. Installed the July 21 nightly build and tried
again. Now it has another error
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_file)
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(%{
That’s untested code btw.
On Tue, Jun 28, 2011 at 6:08 PM, Eloy Duran e...@dekleineprins.me 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
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 e...@dekleineprins.me wrote:
I have
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 mar...@schuerrer.org wrote:
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 r...@iblargz.com 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
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) for
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:
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:
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 i...@ananasblau.com wrote:
Laurent
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
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 anoia...@gmail.com wrote:
Hi,
Suppose: class User; def
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,
-tool-for-the-ruby-community
On Fri, May 6, 2011 at 2:27 PM, Alexander von Below be...@mac.com 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 would be
great if one, or some cpu time, could
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] =
, they are not compiled. 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 Resources directory of the app bundle:
def
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 stdlib and gems from
compilation. The last time I tried
). 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 ENV variable
that's set by Xcode. This is the offending
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
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 petr.kal...@me.com wrote:
Hi,
is there any tutorial how to build standalone application package without
Xcode?
Right now I am developing it in
, Apr 29, 2011 at 4:44 PM, Eloy Duran e...@dekleineprins.me 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 petr.kal...@me.com wrote:
Hi,
is there any tutorial how to build standalone application
it without 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:
https://github.com/alloy/rucola. Also since Xcode 4
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
No need to apologize, you did the right thing :)
On 8 apr. 2011, at 06:16, Takao Kouji ko...@takao7.net 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
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
), 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 i...@ananasblau.com wrote:
Am 01.04.2011 um 14:54 schrieb Eloy
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 n...@recoil.org wrote:
Hey all,
I was just wondering if Laurent or any of the other people involved with
MacRuby
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(' ').to_sym
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
, Andre Lewis andre.le...@gmail.com 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 eloy.de.en...@gmail.com wrote:
The app crashes
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
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]
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 mr...@marketcircle.com wrote:
Hey all,
I am getting an error when I add a #to_s method to
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
martin.hawk...@gmail.com
, at 3:59 PM, Joshua Ballanco wrote:
Considering that the updated minitest library also 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
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 gabr...@gabrielayuso.com wrote:
I wanted to try using mocha to write unit tests with
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
, Jan 29, 2011 at 11:08 AM, Eloy Duran eloy.de.en...@gmail.com 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
break. I.e
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
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
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 someone port it by using CFLite
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
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
lsansone...@apple.com wrote:
Hi Martin,
Sorry for the late reply.
Reverting to an earlier BridgeSupport is hard. Basically, you
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
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
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:
I was about
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
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
might be overlapping work on that
part.
On Fri, Jan 7, 2011 at 1:22 AM, Joel Reymont joe...@gmail.com 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 execution
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 joe...@gmail.com wrote:
Is this normal?
I built the latest trunk, i.e.
commit
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 in
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
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
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:
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
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:
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.
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
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
Yup :)
On 30 nov. 2010, at 18:18, Emil Tin e...@tin.dk 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 to focus
} or super
end
The reason this works is because Protocol *is* a real class, but it's
derived from a base class different from NSObject. Obviously we'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 eloy.de.en
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
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 eloy.de.en...@gmail.com wrote:
You can check which macruby version you have
:05 AM, Alan Skipp al_sk...@fastmail.fm wrote:
Ticket #1000 has been filed.
Does the 1000th ticket get a special prize?
On 17 Nov 2010, at 14:39, Eloy Duran wrote:
That’s no good. Can you file a ticket? (Preferably with the test framework
attached)
On Nov 17, 2010, at 3:34 PM, Alan
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 you ask
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 almost anything). Nor have I witnessed
!
- Matt
On Thu, Nov 18, 2010 at 8:01 AM, Eloy Duran eloy.de.en...@gmail.com wrote:
I don’t want to discuss this at length, but “clearly an exaggeration” is not
necessarily true. This is an international mailing-list, i.e. not all native
English speakers. As such it's better to refrain from
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 example of a class that uses conformsToProtocol: on the
delegate, so I can't give you a code example, but I
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
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
'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’s Resources directory. For example, Foundation’s BridgeSupport
file is at:
/System
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
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,
Hi,
As some of you may know, we have a new implementation of IRB since
MacRuby 0.7. My hope was nobody would notice the changes, but this was
obviously wishful thinking :) So from now on, whenever there are major
changes, I’ll write an update about them. I’d be very grateful if
people can try
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
Oops, forgot to paste the result:
% macirb
irb(main):001:0 framework
'/Users/eloy/Documents/DEVELOPMENT/MacRuby/ObjCHiredis/ObjCHiredis/build/Debug/ObjCHiredis.framework'
= true
irb(main):002:0 redis = ObjCHiredis.alloc.init
= #ObjCHiredis:0x200226600
irb(main):003:0 redis.connect(127.0.0.1,
)
so I guess that is a bug, isn't it?
2010/11/4 Eloy Duran eloy.de.en...@gmail.com
Oops, forgot to paste the result:
% macirb
irb(main):001:0 framework
'/Users/eloy/Documents/DEVELOPMENT/MacRuby/ObjCHiredis/ObjCHiredis/build/Debug/ObjCHiredis.framework'
= true
irb(main):002:0 redis
)
ArgumentError: wrong number of arguments (2 for 0)
so I guess that is a bug, isn't it?
2010/11/4 Eloy Duran eloy.de.en...@gmail.com
Oops, forgot to paste the result:
% macirb
irb(main):001:0 framework
'/Users/eloy/Documents/DEVELOPMENT/MacRuby/ObjCHiredis/ObjCHiredis/build/Debug
Since an Array is a NSArray: http://bit.ly/de3kxd, maybe something
like the following?
$ macirb
irb(main):001:0 a = ['apple', 'tuna', 'orange']
= [apple, tuna, orange]
irb(main):002:0 indices = NSIndexSet.indexSetWithIndex(1)
= #NSIndexSet:0x20023fe80
irb(main):003:0 fish =
These work for me too on trunk, but I am seeing some GC issues. I’ve
updated the ticket with examples.
On Fri, Oct 15, 2010 at 12:23 AM, Laurent Sansonetti
lsansone...@apple.com wrote:
Hi Perry,
If you install the nightly build, you can still go back to 0.7 by
re-installing 0.7 on top of it
To be clear, by version I meant: are you using 0.7 release or did you compile
it yourself from a different revision?
On Oct 14, 2010, at 3:33 PM, Eloy Duran wrote:
Hi,
It seems to work for me:
% macruby -e 'p MACRUBY_VERSION, MACRUBY_REVISION'
0.7
svn revision 4566 from
http
Thanks for the reduction. Could you create a ticket and assign to me?
Eloy
On Oct 14, 2010, at 4:11 PM, Louis-Philippe wrote:
It seems to work for me:
% macruby -e 'p MACRUBY_VERSION, MACRUBY_REVISION'
0.7
svn revision 4566 from
Hi,
I haven’t heard back from Matt (from the original thread) or you and
am still wondering if this solved it in a satisfactory way?
Cheers,
Eloy
On Sat, Oct 9, 2010 at 6:13 PM, Eloy Duran eloy.de.en...@gmail.com wrote:
Yes, see this email from wednesday:
http://lists.macosforge.org/pipermail
Yes, see this email from wednesday:
http://lists.macosforge.org/pipermail/macruby-devel/2010-October/006146.html
HTH,
Eloy
On Sat, Oct 9, 2010 at 4:51 PM, Brad Hutchins oshyb...@gmail.com wrote:
Any head way on macirb issue that I understand some others have also
experienced as well with
I verified that it does work:
sudo macgem install awesome_print
Password:
unknown: warning: ignoring alias
Successfully installed awesome_print-0.2.1
1 gem installed
% cat ~/.irbrc
require 'rubygems'
require 'ap'
% macirb
irb(main):001:0 data = [ false, 42, %w(forty two), { :now = Time.now,
1 - 100 of 185 matches
Mail list logo