09 September 2010

The Ruby Reflector

Topic

APIs

  Source Favicon
By Max of occasionally useful 8 days ago.
Email

…provide some custom logic easily, or perhaps make my own equalsNodeArray method that used public APIs, but I don't think QUnit really supports that yet. I'll just have to live with the inflated test count numbers, for now.

The Code

You thought I forgot the code, didn't you? Well...I did. So here you go: github repo . If you just want to check out the cool interactive test suite, head over to my sinatra port .

Other topics

That's enough for …

blog.maxaller.name Read
  Source Favicon
By David of Riding Rails - home 11 days ago.
Email

ActionController::Base, Rails 3 exposes a number of modules, each with defined APIs, that you can mix and match to create special-purpose controllers for your own use. Both Action Mailer in Rails and the Cells project make heavy use of this new functionality.

You can also take a look a this blog post by Yehuda (from last year) to see how the new architecture makes it easy to implement Django-style generic actions in Rails by leveraging Rack and ActionController…

weblog.rubyonrails.org Read
  Source Favicon
Email

…writing Rails 3 is only at first release candidate stage and in Rails-land this means things can, and likely will, still change substantially before final release. The will_paginate gem will also continue to be fine tuned as time goes by, so be warned if you're reading this in 2012 and find that something's not working, its probably because the APIs have moved on again - and it'll be time for me to write another new version of this article!

thewebfellas.com Read
  Source Favicon
By Eric Hodel of Segment7 20 days ago.
Email

RDoc 1.0.1. Command-line tools are largely unaffected, but internal APIs may shift rapidly.

See RDoc for a description of RDoc's markup and basic use.

2.5.11 / 2010-08-20

Minor Enhancements

Alias comments are now discovered by the C parser. Reported by Jeremy Evans.

Removed —all option which is unused in RDoc. Use the nodoc or stopdoc/startdoc directives to suppress documentation instead.

2.5.10 / 2010-08-17

Minor Enhancements

Support rb_singleton_class(). …

blog.segment7.net Read
  Source Favicon
On Luke Redpath 21 days ago.
Email

…succinct API, it should be decoupled from your domain model, it should build upon proven APIs ( NSURLConnection, NSOperation) to provide asynchronous behaviour and it should take full advantage of Objective-C blocks.

Here's what it looks like:

NSString * result = nil ; [[ LRResty client ] get: @"http://www.example.com/some/resource" withBlock: ^ ( LRRestyResponse * response ) { if [ response . status == 200 ] { result = [ response asString ] } }];

Like RestClient, …

lukeredpath.co.uk Read
  Source Favicon
By Charles Oliver Nutter of Headius 25 days ago.
Email

…around the limitations of the JVM, be they related to its piss-poor process management APIs, its cumbersome support for binding native libraries, or its stubborn reluctance to become the world's greatest dynamic language VM. I've thought on numerous occasions how awesome it would be to spin off a company that took OpenJDK and made it "right" for the kinds of development people want to do today (and I'd love to be a part of that company), but such ventures are both …

blog.headius.com Read
  Source Favicon
By Charles Oliver Nutter of Headius 1 month ago.
Email

…yes! Because of the maturity of the Java platform, there are standard Java APIs you can use to access all the same information the previous tools consumed. And since we're talking about JRuby, that means you have Ruby APIs you can use to access that information.

That's what I'm going to show you today.

Introducing JDI

The APIs we'll be using are part of the Java Debug Interface ( JDI) , a set of Java APIs for remotely inspecting a running …

blog.headius.com Read
  Source Favicon
By Eric Hodel of Segment7 2 months ago.
Email

RDoc Project Page

RDoc Documentation

RDoc Bug Tracker

RDoc is an application that produces documentation for one or more Ruby source files. RDoc includes the rdoc and ri tools for generating and displaying online documentation.

At this point in time, RDoc 2.x is a work in progress and may incur further API changes beyond what has been made to RDoc 1.0.1. Command-line tools are largely unaffected, but internal APIs may shift rapidly.

blog.segment7.net Read
  Source Favicon
By Thomas Fuchs of mir.aculo.us 2 months ago.
Email

Head over to http://scripty2.com/accel/ to see the teaser, and be sure to try it on an iPad or iPhone! (To see the hardware acceleration in action you need to use a recent version of Safari, desktop or mobile). Scripty2 is coming this summer as a beta release, and will include: super-user-friendly APIs, hardware-accelerated effects (without [...]

mir.aculo.us Read
  Source Favicon
By David of David Chelimsky 2 months ago.
Email

Thankfully, Rails 3 exposes very clean extension points and APIs that make it far simpler to get the most important part of this isolation: isolation from the content of the template.

Rails 3 Resolvers

Rails makes a number of decisions based on the existence or lack thereof of a given template on the file system. Rails 3 also supports custom resolvers that let you store view templates in a database, for example. Given the wide array of possibilities, it is not possible for RSpec

blog.davidchelimsky.net Read