[#393742] Getting the class of an object. — Ralph Shnelvar <ralphs@...32.com>

Consider;

14 messages 2012/03/06

[#393815] arcadia IDE requires tcl/tk and ruby-tk — Thufir Hawat <hawat.thufir@...>

which or where tcl and tk does arcadia require? Is this a gem which I

13 messages 2012/03/13

[#393952] What’s the best way to check if a feature/class has been loaded? — Nikolai Weibull <now@...>

Hi!

18 messages 2012/03/21
[#393953] Re: What’s the best way to check if a feature/class has been loaded? — Xavier Noria <fxn@...> 2012/03/21

Active Support has recently added qualified_const_* methods to Module

[#393954] Re: What’s the best way to check if a feature/class has been loaded? — Xavier Noria <fxn@...> 2012/03/21

Ah, that won't work in 1.8.

[#393959] Re: What’s the best way to check if a feature/class has been loaded? — Nikolai Weibull <now@...> 2012/03/21

On Wed, Mar 21, 2012 at 16:43, Xavier Noria <fxn@hashref.com> wrote:

[#393960] Re: What’s the best way to check if a feature/class has been loaded? — Xavier Noria <fxn@...> 2012/03/21

On Wed, Mar 21, 2012 at 8:17 PM, Nikolai Weibull <now@bitwi.se> wrote:

[#393961] Re: What’s the best way to check if a feature/class has been loaded? — Nikolai Weibull <now@...> 2012/03/21

On Wed, Mar 21, 2012 at 20:48, Xavier Noria <fxn@hashref.com> wrote:

[#393962] Re: What’s the best way to check if a feature/class has been loaded? — Xavier Noria <fxn@...> 2012/03/21

On Wed, Mar 21, 2012 at 9:51 PM, Nikolai Weibull <now@bitwi.se> wrote:

[#393967] Re: What’s the best way to check if a feature/class has been loaded? — Nikolai Weibull <now@...> 2012/03/22

On Wed, Mar 21, 2012 at 22:11, Xavier Noria <fxn@hashref.com> wrote:

[#393969] Re: What’s the best way to check if a feature/class has been loaded? — Xavier Noria <fxn@...> 2012/03/22

On Thu, Mar 22, 2012 at 6:15 AM, Nikolai Weibull <now@bitwi.se> wrote:

[#394154] uninitialized constant SOCKSSocket — Resident Moron <lists@...>

I am running ruby 1.9.3 on a linux box. I would like to use

10 messages 2012/03/29

[#394160] Why z = Complex(1,2) rather than z = Complex.new(1,2)? — Ori Ben-Dor <lists@...>

What's this syntax, z = Complex(1,2), as opposed to z =

14 messages 2012/03/29

[#394175] shoes no such file to load -- rubygems — Mr theperson <lists@...>

I have installed shoes to develop GUI applications but when I try and

13 messages 2012/03/29

[#394201] Can't open url with a subdomain with an underscore — Jeroen van Ingen <lists@...>

I try to open the following URL: http://auto_diversen.marktplaza.nl/

10 messages 2012/03/30

[#394222] Ruby openssl ECC help plz — no name <lists@...>

I am confused on how to properly export public ECC key. I can see it

13 messages 2012/03/31

[ANN] Lightrail 0.99.0: minimalist Rails 3 stack for JSON APIs

From: Tony Arcieri <tony.arcieri@...>
Date: 2012-03-10 23:57:35 UTC
List: ruby-talk #393798
One of the great advancements of Rails 3 brought to the table was enough
modularity to let you build custom Rails stacks tuned to specific
needs. Out of the box Rails is tuned to be as inclusive as possible,
bringing you as many features as it possibly can. It's modular enough you
can remove what you want if you don't need it, but by default ships with
everything on.

This inclusiveness lead to a backlash of minimalist frameworks, most
notably Sinatra. Sinatra tried to provide as little as possible while still
being useful, and at the same time removed much of the Rails ceremony from
the DSL it used for rendering responses.

Thanks to Rails 3, the framework is now modular enough you can boot a
barebones version of it from a single file:

https://gist.github.com/1942658

Lightrail ships a Rails 3 barebones stack, but with some added niceties for
apps that provide JSON APIs:

https://github.com/lightness/lightrail

It's minimalist Rails 3 with enough Sinatraisms baked in I hope it can win
over some of those people who think Rails is too bloated and use Sinatra
instead. That's not to say Sinatra is bad, but I have seen apps built on
Sintra which have outgrown it, and for them, I think a Rails-based stack
would be a better choice.

For those of you who hated Rails 3's stack traces, Lightrail ships with
minimal middleware and is tuned to eliminate many of the frustrations which
give the impression Rails is a big bloated framework.

Lightrail is originally derived from the Rails 3 stack used for
applications with client-heavy SproutCore front-ends at Strobe (
http://strobecorp.com). Its principal authors are Jos=E9 Valim and Carl
Lerche.

--

Install the lightrail gem:

gem install lightrail

Like Rails, installing the lightrail gem will install a command line
utility called 'lightrail'. This command is in fact identical to the
'rails' command, but tweaked for Lightrail defaults instead of Rails
defaults.

You can use 'lightrail' to create a new application skeleton just like
Rails:

lightrail new myapp

The skeleton application that Lightrail generates is identical to a
standard Rails application, with only these changes:

   - Gemfile pulls in lightrail instead of rails
   - application.rb pulls in lightrail instead of rails
   - ApplicationController descends from Lightrail::ActionController::Metal
   instead of ActionController::Base. ActionView is not used or installed.

Once you've created your application, run:

lightrail server

to launch a web server in the development environment (just like Rails!)

You can convert an existing Rails 3 application to a Lightrail application
by retrofitting the changes mentioned above.
--=20
Tony Arcieri

In This Thread

Prev Next