Hey Laurent,
I'm not super confortable with this patch, because it relies too
much on README.rdoc, if we change it later it might break your
change. Also, I don't like automatic scripts because the user
doesn't really have the opportunity to customize what's happening.
Right. I didn't
Hey all!
So, I've finished up the TDD recipe. You can find a PDF of it at http://files.me.com/jballanc/1lxnwb
. Please look it over and let me know what you think! I welcome all
comments/criticisms/suggestions.
Cheers,
Josh
___
MacRuby-devel
Not a dumb question at all, just one of those Ruby-isms that will
take some adjusting to if you're coming from a C/C++/Obj-C background.
In Ruby, Constants always start with a Capital letter. Therefore, all
of the kFooBarBaz constants from Cocoa get translated as KFooBarBaz.
Actually,
I've been playing with Cucumber, but so far there are still a few issues. It
doesn't seem like anything quite so hard to deal with as RSpec, but it's still
early days.
- Josh
On Nov 22, 2009, at 8:15 PM, Laurent Sansonetti wrote:
Hi Giampiero,
The latest 0.5 beta doesn't run rspec,
Apologies for being so late to reply...
On Jul 21, 2010, at 11:44 AM, Nick Ludlam wrote:
On 21 Jul 2010, at 15:31, Alexander von Below wrote:
Hi Alexander,
I've got a MacRuby app happily running very happily with Control Tower. First
I cloned the code from github, and built and installed
Hi Alex,
This is as good a place as any for the time being.
So, the way that Rack works is that it takes an app *object* (not a class) and
calls the call method on that object each time a request comes in. To
facilitate the use of middleware and the combination of multiple Rack app
objects in
No, The Zlib error is the very reason I left it as 'rake' instead of 'macrake'.
What errors are you seeing with 'rake'? It should work…
- Josh
On Sep 21, 2010, at 6:46 AM, Nick Ludlam wrote:
Fantastic work, Laurent and Joshua! I'm updating the version I bundle in my
app right now. One
On Sep 21, 2010, at 4:07 PM, russell muetzelfeldt wrote:
On 22/09/2010, at 12:00 AM, macruby-devel-requ...@lists.macosforge.org wrote:
... it's out!
http://www.macruby.org/blog/2010/09/20/announcing-control-tower.html
Give it a try and let us know if you have any problems :)
just out
Hi Brad,
What's happening here is that the 'gem' command that ships with MacRuby is
named 'macgem'. However, 'macirb' still looks at the same .irbrc file that the
system 'irb' command does. So, if you've put in a require for awesome_print
into your .irbrc, then 'macirb' will look for it but
it is more specific
than Re: Contents of MacRuby-devel digest...
Today's Topics:
1. Re: [ANN] MacRuby 0.7 (Antony Blakey)
2. Re: macirb or not working with awesome_print (Joshua Ballanco)
3. Sequel + SQLite Crash SIGABRT (Mario Steele)
4. Tutorial for the new Sandbox class. (Rob
Hi L-P,
That sounds like a neat idea! I can think of a few ways that it might go wrong,
but they're only guesses. Do you have some small sample code that demonstrates
the problem? If so, can you open a ticket on track
(https://www.macruby.org/auth/login/?next=/trac/newticket) and set the
This is Ruby, where everything is an expression. If you're going to be clever,
why not go all the way?
---
def is_macruby?; defined?(RUBY_ENGINE) RUBY_ENGINE == 'macruby'; end
if is_macruby?
framework 'Foundation'
else
require 'uri'
COMPONENTS = [:scheme, :userinfo, :host, :port,
Hi Scott,
MacRuby's spiritual predecessor RubyCocoa did this sort of substitution of
camelCase for under_case. However, I don't foresee this name-mangling being a
part of MacRuby's near future for one very important reason: MacRuby methods
*are* Objective-C methods.
I'm not aware of the
Hey James,
The C API for the Keychain is not annotated with a bridge support file by
default in SnowLeopard, so the first thing you'll need to do is install the
BridgeSupport preview. Then you need to know what to put in for the 4
parameters to the method call, which unfortunately is not
Hi Mark,
Instead of messing with sockets on your own, it's fairly easy to advertise and
search for Bonjour services using the NSNetService and NSNetServiceBrowser
APIs. If you bug me about it tomorrow, I could probably throw together a quick
demo of how that would work (might even make a good
It's also worth pointing out that require_relative is not yet implemented in
MacRuby...
On Mon, Dec 20, 2010 at 8:34 AM, Caio Chassot li...@caiochassot.com wrote:
On 2010-12-18, at 19:58 , russell muetzelfeldt wrote:
then bar will be included twice since '../bar' does not match
On Thu, Jan 20, 2011 at 10:58 AM, Martin Hawkins
martin.hawk...@gmail.comwrote:
Back to Grand Central Dispatch which was really the topic of the post
- Dispatch and Dispatch::Group are available from macirb, but
Dispatch::Job is not, so I suppose I'm really saying that in trying to
discover
Hey Charles,
Sure, this is as good a place as any to report issues on ControlTower.
There's also a component for ControlTower on the MacRuby trac site, but I
guess we don't really call that out on the web site.
Regarding the potential bug...well...where to begin? So, yes, MacRuby blocks
have the
On Sat, Jan 22, 2011 at 12:57 AM, Charles Oliver Nutter head...@headius.com
wrote:
I'm curious about this example in Queue#apply's rdoc:
* gcdq = Dispatch::Queue.new('doc')
* @result = []
* gcdq.apply(5) {|i| @result[i] = i*i }
* p @result #= [0, 1, 4, 9, 16, 25]
On Mon, Jan 24, 2011 at 12:15 PM, Charles Oliver Nutter head...@headius.com
wrote:
Queue#apply is actually defined in gcd.c in MacRuby's code, so this
would be a MacRuby bug. I'd have filed it, but I wasn't sure if I was
missing something about MacRuby's Array and thread-safety.
Yeah,
On Mon, Jan 24, 2011 at 8:20 PM, Charles Oliver Nutter
head...@headius.comwrote:
Yes, forcing the updates to run serially rather than in parallel. The
poor-man's fork/join.
More like a map-reduce, I would think. In fact, at some point in the past
the dispatch extras (i.e. everything in
On Tue, Jan 25, 2011 at 3:13 AM, Charles Oliver Nutter
head...@headius.comwrote:
On Tue, Jan 25, 2011 at 2:11 AM, Charles Oliver Nutter
head...@headius.com wrote:
I did have to hack around the parser logic, since native extensions
largely mean death for concurrency on JRuby (and by native I
On Fri, Jan 28, 2011 at 12:41 PM, Martin Hawkins
martin.hawk...@gmail.comwrote:
In rb_main.rb
$:.unshift File.join(File.dirname(__FILE__), 'Vendor/uuid-2.3.1/lib')
$:.unshift File.join(File.dirname(__FILE__), 'Vendor/macaddr-1.0.0/
lib')
require 'macaddr'
require 'uuid'
However, when
Looks like a bug with the way the Cocoa object is boxed. Can you file it at
https://www.macruby.org/trac/newticket ?
Cheers,
Josh
On Wed, Feb 2, 2011 at 8:51 PM, Mark Rada mr...@marketcircle.com wrote:
Hi,
I was trying to setup an async callback using a proc instead of a method to
register
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 eloy.de.en...@gmail.com wrote:
This
Great article! Regarding the sqlite store, I think it would be best to keep
the default to XML for the template...just to be consistent with Xcode's
Obj-C templates. However, it might be nice to add something to the
macruby_deploy script to switch this over to SQLite?
On Fri, Feb 11, 2011 at 1:47
Have a look at the output of running 'rake -T' in the directory where you
checked out MacRuby's source. That should answer your question.
On Sat, Feb 19, 2011 at 12:00 PM, Huahang Liu huahang@gmail.com wrote:
Greetings All,
I was trying to build MacRuby. However, I got an error saying
Hey Mark,
I agree with Matt that macruby_deploy needs work in this area, and any
effort you can contribute (or experience that you have gained from working
on your gem plugin) would be greatly appreciated. That said, I think a gem
plugin is a separate (and, IMHO at least, as valuable) issue.
So
It would be nice if you could try the latest nightly build with your app
and favorite Ruby lib, and let me know if you find anything wrong
Happy to report all ControlTower samples are working with trunk, cap'n!
___
MacRuby-devel mailing list
with MacRuby, then that would indicated a bug. A
reduced test case would be desirable, but bug reports are always welcome.
Cheers,
Joshua Ballanco
On Thu, Mar 3, 2011 at 3:18 PM, Duane Kiefer dekie...@earthlink.net wrote:
I'm trying to use Mechanize with MacRuby but it fails with the following
error
Nick,
I'm currently using Homebrew's llvm with MacRuby. Try passing the
--universal switch when you install llvm (i.e. brew install llvm
--universal). You also might try building and installing clang at the same
time (i.e. brew install llvm --universal --clang) and see if clang can
compile a
Just to clarify the reason behind this, in Ruby 1.9 { foo:bar } translates
into { :foo = bar }. Since you want a has using constants as keys, the
shorthand notation doesn't work. In other words, your first example
translates to:
psc_options = { :NSMigratePersistentStoresAutomaticallyOption =
My suggestion would be to forgo using XCode to build the Obj-C extension,
and instead use mkmf like you would with any other Ruby C-extension. Then
you can just add a script build stage to your project. If you want to see an
example of a MacRuby project with an Obj-C extension, take a look at
One advantage to mkmf and extconf.rb (that's the file that you actually run
through macruby to generate a Makefile) is that it can take care of most of
the difficult parts of generating a Makefile for you (like determining
header locations and library availability, etc.). Finding good
Actually, it would be great if you could file a report on MacRuby's trac:
https://www.macruby.org/trac/report
Thanks!
On Tue, Apr 12, 2011 at 8:29 PM, Andre Lewis andre.le...@gmail.com wrote:
Hey all, I hit a snag with the
xml-objecthttp://rubygems.org/gems/xml-objectgem on MacRuby; the code
Try using macgem. All of the MacRuby binaries are prefixed with mac-
(macruby, macirb, macri, etc.)
On Thu, Apr 14, 2011 at 1:44 AM, Paul Davis peedeem...@gmail.com wrote:
I'm past the Hello World tutorial, and want to try something useful but I
cannot seem to access my gems from within the
Actually, it's quite a bit more complicated than that.
NSString, NSDictionary, and NSArray are class clusters. In practice, you are
never actually dealing with an NSString, but rather a specialized subclass
in the class cluster. Originally, String in MacRuby was implemented using
NSCFString (one
Thomas,
Are you still getting an undefined method error, or something new? Do you
have a framework 'Cocoa' line somewhere in your app?
- Josh
On Wed, Apr 27, 2011 at 12:10 PM, Thomas R. Koll i...@ananasblau.comwrote:
Nope, still no good.
Am 27.04.2011 um 18:07 schrieb Kam Dahlin:
Hi,
Hi Gabriel,
So, you've stumbled across a bit of a confusing feature of MacRuby and
interaction with Obj-C. The full method name of the Obj-C method, as Ruby sees
it, is actually buildRequestWithUrl:method:header:body:, since this is the
selector. So, I think your mock should work if you simply
Hey Daniel,
Check in the console (/Applications/Utilities/Console.app) to see if there are
any more specific warnings that get logged when you attempt to log your app.
Have you verified the built architectures of all the binaries in your .app
bundle with `file`? Also, you might try
Very cool stuff, Rob!
Have you considered potentially merging Hotkeys and mynu into HotCocoa?
- Josh
On Friday, June 17, 2011 at 3:09 PM, Robert Lowe wrote:
Hi guys,
Hope you enjoy em! All of these are on rubygems now:
Wrapping NSMXL (Credit to Wilson Lee / kourge):
. You can always just require them
as needed.
Can you think of a use case for it?
Regards,
- Rob
On 2011-06-19, at 7:10 PM, Joshua Ballanco wrote:
Very cool stuff, Rob!
Have you considered potentially merging Hotkeys and mynu into HotCocoa?
- Josh
On Friday, June 17, 2011
Hi Rob,
I wrote that original guide and, I'm sorry to say, I haven't had a chance to
update it since Xcode 4 was released. Personally, I'm not a huge fan of OCTest,
and I'm not too concerned about having MacRuby based tests run inside the
OCTest step. That said, if you have ideas for a simple
Hi Mike,
I am also not a lawyer, but it is worth noting that the Ruby license is a dual
license, with one part being the GPL and the other being a slightly relaxed
version of the BSD 2-clause license. That said, there are a few libraries which
can be *optionally* compiled in with Ruby (e.g.
On Thursday, October 6, 2011 at 10:03 PM, Mike Boone wrote:
I'm not experienced with Ruby's source code. The only files which
mention the GPL in LEGAL are parse.c and util.c. Is the vanilla
MacRuby using those? If not, it seems there is no issue, but perhaps
the documentation should reflect
On Saturday, October 22, 2011 at 1:35 AM, Michael Johnston wrote:
When I need to get a queue-protected result into a local in code that is
concurrent (so I can't use an ivar) is a pointer the best (only) way to get
the result of a sync block? Assuming I don't want to factor out a method
)
On 2011-10-22, at 12:32 AM, Joshua Ballanco wrote:
On Saturday, October 22, 2011 at 1:35 AM, Michael Johnston wrote:
When I need to get a queue-protected result into a local in code that is
concurrent (so I can't use an ivar) is a pointer the best (only) way to
get the result of a sync
On Thu, Nov 17, 2011 at 1:07 PM, az...@gmx.net az...@gmx.net wrote:
Hi All,
Is it possible to make a Lion app(/option) with MacRuby which allows you
to change the opacity (alpha value) of other apps/windows via the View menu?
So say I have a PDF open in Preview, I'd go to: view menu
a website limiter - where you can set time
limits or time-frames for certain websites. I'm guessing something like it
might be possible as Little Snitch intercepts network connections :/
Thanks in advance.
Aston
On 20 Nov 2011, at 00:37, Joshua Ballanco wrote:
On Thu, Nov 17, 2011 at 1:07 PM, az
2011/12/20 François Boone francois.bo...@usherbrooke.ca
Hi,
I have written a function with 461 queries in a MySQL database.
With macirb, it takes more or less 1s for all queries.
I put my file in a Xcode project and when I click on a button, the action
is to run this function.
However, it
Hey all,
I think we need to understand that this thread has been conflating two
different issues: 1. Apple support for MacRuby, and 2. the future roadmap
for MacRuby.
As for #1: I would respectfully suggest that if you feel you need some sort
of official blessing from Apple in order to continue
On Friday, December 16, 2011 at 10:17 AM, Stephen Horne wrote:
#!/usr/local/bin/macruby
framework 'Foundation'
framework 'ScriptingBridge'
# I followed Matt's instructions for making the bridge support file, but I
wasn't sure where it needs to go, so I did this for a quick fix.
2011/12/21 François Boone francois.bo...@usherbrooke.ca
Hi Josh,
In macirb, I use:
load actionAffiche.rb
461 queries, real time: 11.578257s
In Xcode:
I use rubygems and mysql macgems
I have one Button and one table with two columns: when I press the button,
the function actionAffiche is
Hey Patrick,
Just wanted to follow up on this…did you manage to resolve the issue? If not,
could you make sure you log this bug with Trac
(https://www.macruby.org/trac/report)?
Thanks!
- Josh
On Thursday, November 17, 2011 at 3:44 PM, Patrick Rogers wrote:
Hi everyone,
I'm trying to
If it is ScriptingBridge that is slowing things down, then this sounds like
perfect fodder for a bug report to Apple.
- Josh
On Thursday, December 22, 2011 at 12:15 PM, Alan Skipp wrote:
On 16 Dec 2011, at 15:17, Stephen Horne wrote:
This code works, but it takes 15+ seconds to set up
On Thursday, December 22, 2011 at 11:15 PM, Jeff Hemmelgarn wrote:
I cannot separate the stakeholders (and their issues) from the roadmap.
MacRuby will go where people who care to push want it to go. Barring getting
a job where I am paid to push MacRuby in a certain direction, I will be at
Since Ruby uses readline vi the extension, that should definitely work. Keep in
mind as you do, however, that macirb is actually DietRB, a lightweight IRB
replacement written by Eloy. So, there may be some differences with IRB.
Personally, I've never tried vi-editing mode in either, but if you
Hey Alan,
Awesome! I haven't had a chance to go through the code in detail, but I like
the general approach. I'll definitely be looking into this in more detail
later, but for now I just wanted to let you know that there are specs for Ruby
1.9's fibers in the MacRuby repo at
Quicktime is only supported for 32-bit architectures. MacRuby currently
defaults to building 64-bit, so you would have to go through QTKit to access
Quicktime functionality. Alternately (and preferably) you should look into
using AVFoundation for video.
- Josh
On Tuesday, January 10,
Hey Jean-Denis,
Actually, this is a good find! I think it might even be desirable to at least
have the option of installing the templates locally (instead of system-wide).
Would you mind filing a bug in Trac requesting that option?
Thanks!
- Josh
On Thursday, January 12, 2012 at 8:37 AM,
Hmm…this is an interesting case. It's possible that we've not fully looked into
calling super with explicit block args. Can you see if this can be reduced to a
simple, self-contained example? Either way, it would be good to have a Trac
ticket for this issue.
Thanks!
- Josh
On Thursday,
Exact same thing was recently reported on JRuby:
http://twitter.com/#!/headius/status/161662203223752704
I'd file a bug. Closed as dup is no skin off a dev's back, but unreported
issues are guaranteed never to be fixed (well, almost…)
;)
On Wednesday, January 25, 2012 at 2:59 AM, Gabriel
, Joshua Ballanco wrote:
Exact same thing was recently reported on JRuby:
http://twitter.com/#!/headius/status/161662203223752704
I'd file a bug. Closed as dup is no skin off a dev's back, but unreported
issues are guaranteed never to be fixed (well, almost…)
;)
On Wednesday
You're likely seeing the effect of GC. I suspect that if you did a GC.start
before inspecting, or compiled the Obj-C template and ran it under GC, then you
would find more consistent results. :)
- Josh
On Friday, January 20, 2012 at 2:09 PM, Milos Slavica wrote:
Hi,
Has anyone seen
Sadly, I think the missing #ifndef is merely a symptom of laziness. If you
wanted to send a pull request, I don't think anyone would object to merging it
in :)
On Monday, February 20, 2012 at 10:37 AM, Marc Abramowitz wrote:
I might be missing something obvious here.
I want to be able to
Hi Fjölnir,
As I think I mentioned in IRC, my best guess is that this is a bridge support
bug. Have you filed a bug with Apple at all? Something else you might try (if
you have the time) is to access your struct using the pyobjc bridge, which also
makes use of bridge support, to see if this is
On Friday, April 6, 2012 at 8:00 PM, Henry Maddocks wrote:
I have Ruby, C, C++ and Obj-C experience, but the one thing that is holding
me up from contributing is a simple one page description from the source
level of what happens when you run a script in MacRuby. Is anyone able to
write
On Friday, April 6, 2012 at 11:06 PM, Henry Maddocks wrote:
The MacRuby VM is very nicely tailored to the job of running on top of the
Objective-C runtime. It is also fairly mature. Personally, I see no
technical reason that a proliferation of VMs should be a problem (there are
at least
When I was still at Apple, I actually started work on a library for MacRuby
backed by CoreData, but I had to leave it before it was done. To address the
why question: CoreData ties in very closely with a lot of the Cocoa UI
libraries (and other libraries). It also has features that other Ruby
There was an issue building some of the nightlies as we were transitioning
the build system. You should be able to identify the bad builds by looking
at the file size, as the broken installers ended up being much smaller.
Have you tried one of the most recent nightlies?
- Josh
On Mon, Apr 16,
Hmm…in general I would steer clear of scripting bridge when equivalent
functionality is available elsewhere. In this case, you can make use of the
Quartz Event Services. There's a Stack Overflow answer here that should be able
to get you started:
Hello all,
Quick summary: go to https://github.com/MacRuby/MacRuby/issues to file all your
MacRuby bugs from now on.
As had been previously discussed, today we've gone ahead and opened Github
issues for the MacRuby project. At the same time, we've frozen the old Trac
reporting tool and will
Thanks!
On Tuesday, May 29, 2012 at 7:17 PM, Milos Slavica wrote:
Issue #94:
https://github.com/MacRuby/MacRuby/issues/94
Cheers!
milos
On 29 May 2012, at 17:58, Joshua Ballanco wrote:
Yes, this seems like a bug. Would you mind filing an issue on the Github
issue tracker
Hey Stephen,
You will need to create a new Move Files phase (can't remember the exact name
at the moment…) after the macruby_deploy phase. The macruby_deploy script will
attempt to compile any *.rb file it finds under your project, which is why
you're seeing this.
Cheers,
Josh
On
On Thursday, June 21, 2012 at 5:46 PM, Kevin Walzer wrote:
Hello all,
Hi! and Welcome!
I had a few questions about MacRuby and its differences from standard
C-Ruby:
1. Is MacRuby mature enough to function as a drop-in replacement for
standard Ruby? Are there significant gaps in
On Saturday, June 30, 2012 at 11:11 AM, Jonathan Silverman wrote:
Hi My Name is Jonathan (JSILVER) Siilverman
What is your status? I would like to help you. Also, I seek
information on Sandboxing MacRuby apps for Mountain Lion and beyond.
I want to help with MacRuby's success, because it
Hey John,
Just took a look, and you've certainly made more progress than myself! (My
branch is/was at https://github.com/jballanc/MacRuby/tree/llvm-3.0). I saw that
you just have a commit on the master branch, though. It would be best if you
created a new branch in your personal MacRuby fork
Hi Jim,
I can only speak for myself, but moving (to another continent even), starting a
new job, and having a new baby would, I think, qualify as busy! ;-)
Admittedly the mailing list activity has dropped off a bit, but I do still and
try to monitor #macruby on Freenode and the GitHub project
Hi Jason,
The gems you reference include C extensions, which are *mostly* supported by
MacRuby, but there are bound to be a few bugs. Do you have crash logs for these
failures? If so, would you mind filing a Github issue with the crash logs
attached (or linked as a Gist)?
Thanks,
Josh
On
Awesome job! Congrats!
On Friday, November 9, 2012 at 7:52 AM, J Silver wrote:
Thanks Mark! I will have a look.
On 08/11/2012 21:20, Mark Villacampa wrote:
Nice!! Good work.
Looking forward to the report on the current status of Ruboto :)
Another possible windows-linux cross
/bin/macbacon itself, before it
gets to my script.
Stephen
On 30/11/2012, at 18:22, Joshua Ballanco jball...@gmail.com
(mailto:jball...@gmail.com) wrote:
Do you have a require 'rubygems' in your script? Unlike Ruby 1.9, MacRuby
doesn't automatically load RubyGems by default
I haven't had time to update to Mavericks yet, so I couldn't tell you for sure,
but the summary_indent= error looks like it may be a consequence of the
upgraded 2.0 version of Ruby on the system. IIRC, there should still be a copy
of the 1.8 Ruby version (under /System/Library I think?). If you
Hey Rob,
I had planed on writing a longer message to the list but, having just started a
new gig, time is severely lacking. Also, it seems it'll be at least 2-3 weeks
(thank Apple store ship times) before I get a chance to test anything on
Mavericks. Here's what I can tell you so far:
*
On Sunday, November 10, 2013 at 8:16 AM, Robert Carl Rice wrote:
On Nov 7, 2013, at 9:07 AM, Joshua Ballanco jball...@gmail.com
(mailto:jball...@gmail.com) wrote:
* MacRuby integration with Xcode relies on rb-nibtool, but the Xcode team
has repeatedly signaled (not so subtly
Hey Rob,
Glad to hear that your experience has been so good thus far! I can vouch for
the guys at HipByte, and I’m sure they will be more than willing to help you
(or anyone) out along the way as you make the transition (and hit the
inevitable road-bumps). As for IB support and the lack of
85 matches
Mail list logo