[#388484] ruby-doc.org has been updated — James Britt <james.britt@...>

Ruby-doc.org has been updated.

22 messages 2011/10/03

[#388492] Operator Overloading — Thescholar Thescholar <thescholar@...>

Let's suppose I have a class like this one and then I create two

28 messages 2011/10/04
[#388515] Re: Operator Overloading — "Darryl L. Pierce" <mcpierce@...> 2011/10/04

On 10/04/2011 01:11 AM, Thescholar Thescholar wrote:

[#388518] Re: Operator Overloading — Brian Candler <b.candler@...> 2011/10/04

Darryl Pierce wrote in post #1024950:

[#388519] Re: Operator Overloading — "Darryl L. Pierce" <mcpierce@...> 2011/10/04

On 10/04/2011 10:03 AM, Brian Candler wrote:

[#388520] Re: Operator Overloading — Adam Prescott <adam@...> 2011/10/04

On Tue, Oct 4, 2011 at 3:53 PM, Darryl L. Pierce <mcpierce@gmail.com> wrote:

[#388523] Local vs method vs instance (was: Operator Overloading) — "Darryl L. Pierce" <mcpierce@...> 2011/10/04

On 10/04/2011 11:11 AM, Adam Prescott wrote:

[#388526] Re: Local vs method vs instance (was: Operator Overloading) — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2011/10/04

On Tue, Oct 4, 2011 at 5:31 PM, Darryl L. Pierce <mcpierce@gmail.com> wrote=

[#388558] question about method — "Joseph S." <musician_joe777@...>

AC = 14

12 messages 2011/10/04

[#388595] Read thru Csv file and store it in variables — ideal one <idealone5@...>

HI All,

9 messages 2011/10/05

[#388601] How to output an instance's type — Viaduct Productions <lists@...>

Hiya folks.

21 messages 2011/10/05
[#388603] Re: How to output an instance's type — Kassym Dorsel <k.dorsel@...> 2011/10/05

By type you want the variables class ?

[#388610] Re: How to output an instance's type — Viaduct Productions <lists@...> 2011/10/05

Hi Kassym. Thanks for the post.

[#388612] Re: How to output an instance's type — Kassym Dorsel <k.dorsel@...> 2011/10/05

Viaduct Productions wrote in post #1025201:

[#388636] Re: How to output an instance's type — luke gruber <luke.gru@...> 2011/10/06

>How do I output the type of a variable?

[#388644] Re: How to output an instance's type — Viaduct Productions <lists@...> 2011/10/06

Hi Luke. Thanks for the reply.=20

[#388650] Cheapest way to host low-traffic small-footprint Rails app? — Intransition <transfire@...>

I have a commercial Radiant-based website that I manage for a small-

18 messages 2011/10/06
[#388653] Re: Cheapest way to host low-traffic small-footprint Rails app? — Phillip Gawlowski <cmdjackryan@...> 2011/10/06

On Thu, Oct 6, 2011 at 2:47 PM, Intransition <transfire@gmail.com> wrote:

[#388660] Re: Cheapest way to host low-traffic small-footprint Rails app? — Dan Nachbar <dan@...> 2011/10/06

On Oct 6, 2011, at 8:53 AM, Phillip Gawlowski wrote:

[#388662] Re: Cheapest way to host low-traffic small-footprint Rails app? — Viaduct Productions <lists@...> 2011/10/06

What do people consider "cheap"? You want scalability? Support? =20

[#388728] How to make Saas application? Is it possible? — Асет Орымбаев <asetpochta@...>

SGkgZXZlcnlib2R5IQoKSSB3YW50IHRvIGtub3csIGlzIGl0IHBvc3NpYmxlIHRvIGNyZWF0ZSBT

8 messages 2011/10/07

[#388812] require -- looking in rubygems, now "." — "charles a." <charles.agriesti@...>

irb

11 messages 2011/10/09

[#388855] why does `a + f b` not parse? — Martin DeMello <martindemello@...>

ruby-1.9.2-p0 > 2 + sqrt 5

18 messages 2011/10/11
[#388857] Re: why does `a + f b` not parse? — Wayne Brissette <waynefb@...> 2011/10/11

[#388858] Re: why does `a + f b` not parse? — Dave Aronson <rubytalk2dave@...> 2011/10/11

On Tue, Oct 11, 2011 at 06:32, Wayne Brissette <waynefb@earthlink.net> wrote:

[#388861] Re: why does `a + f b` not parse? — Phillip Gawlowski <cmdjackryan@...> 2011/10/11

On Tue, Oct 11, 2011 at 1:02 PM, Dave Aronson

[#388862] Re: why does `a + f b` not parse? — jake kaiden <jakekaiden@...> 2011/10/11

Phillip Gawlowski wrote in post #1026042:

[#388864] Re: why does `a + f b` not parse? — Bartosz Dziewoński <matma.rex@...> 2011/10/11

Yes, I think we all know that; the question is, why does 2 + sqrt(5)

[#388881] gem directory not find — Sam Porwal <pawan.porwal@...>

Hi All,

11 messages 2011/10/11

[#388945] What’s the best way of checking if an argument has been given or not? — Nikolai Weibull <now@...>

Hi!

19 messages 2011/10/14
[#388950] Re: What’s the best way of checking if an argument has been given or not? — jake kaiden <jakekaiden@...> 2011/10/14

...probably not the *best* way, but this works:

[#388952] Re: What’s the best way of checking if an argument has been given or not? — Bartosz Dziewoński <matma.rex@...> 2011/10/14

You can use this syntax, too. "args" becomes an array of all arguments given.

[#388954] Re: What’s the best way of checking if an argument has been given or not? — Nikolai Weibull <now@...> 2011/10/14

On Fri, Oct 14, 2011 at 15:29, Bartosz Dziewo=C5=84ski <matma.rex@gmail.com=

[#388958] Re: What’s the best way of checking if an argument has been given or not? — Chris Hulan <chris.hulan@...> 2011/10/14

You could do it as a wrapper:

[#388961] Re: What’s the best way of checking if an argument has been given or not? — Nikolai Weibull <now@...> 2011/10/14

On Fri, Oct 14, 2011 at 15:51, Chris Hulan <chris.hulan@gmail.com> wrote:

[#388962] Re: What’s the best way of checking if an argument has been given or not? — Chris Hulan <chris.hulan@...> 2011/10/14

You said you didn't want to manually do it, this lets the interpreter

[#388970] Re: What’s the best way of checking if an argument has been given or not? — luke gruber <luke.gru@...> 2011/10/14

Hmm, if you really don't want to use the splat *args, you could create a

[#388972] Re: What’s the best way of checking if an argument has been given or not? — Jens Wille <jens.wille@...> 2011/10/14

luke gruber [2011-10-14 17:15]:

[#388947] Beginning — "Junayeed Ahnaf Nirjhor" <zombiegenerator@...>

Hello,

19 messages 2011/10/14

[#389025] writing a poem backwards or in reverse order — Teresa Nguyen <s-unguyen2@...>

i would like to write a poem using nano and through ruby I would like to

18 messages 2011/10/16
[#389036] Re: writing a poem backwards or in reverse order — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2011/10/16

On Sun, Oct 16, 2011 at 2:04 AM, Teresa Nguyen

[#389026] 'gem install' help please — Kaye Ng <sbstn26@...>

Hi.

18 messages 2011/10/16

[#389037] Ruby and threading — Carter Cheng <cartercheng@...>

Hello,

32 messages 2011/10/16
[#389038] Re: Ruby and threading — Josh Cheek <josh.cheek@...> 2011/10/16

On Sun, Oct 16, 2011 at 3:50 AM, Carter Cheng <cartercheng@gmail.com> wrote:

[#389195] Re: Ruby and threading — Josh Cheek <josh.cheek@...> 2011/10/19

On Sun, Oct 16, 2011 at 4:03 AM, Josh Cheek <josh.cheek@gmail.com> wrote:

[#389340] security thesis advice — Jorge Bo <jorgebo10@...>

Hi,

19 messages 2011/10/22

[#389465] Modify only a .rb file, but not other .rb files, while still extending core classes? — Marc Heiler <shevegen@...>

Given is a small .rb file.

8 messages 2011/10/26

[#389553] "A" and "an" articles in front of words — Faith Tarcha <faith@...>

Hello guys, I have two objects that consist of arrays and I am suppose

29 messages 2011/10/29
[#389587] Re: "A" and "an" articles in front of words — jake kaiden <jakekaiden@...> 2011/10/31

hi Faith,

[#389598] Re: "A" and "an" articles in front of words — Dave Aronson <rubytalk2dave@...> 2011/10/31

On Sun, Oct 30, 2011 at 22:23, jake kaiden <jakekaiden@yahoo.com> wrote:

[#389789] Re: "A" and "an" articles in front of words — steve ross <cwdinfo@...> 2011/11/06

Sorry to be late to the party on this one, but a regex seems a bit of a =

[#389791] Re: "A" and "an" articles in front of words — Hassan Schroeder <hassan.schroeder@...> 2011/11/06

On Sun, Nov 6, 2011 at 12:59 PM, steve ross <cwdinfo@gmail.com> wrote:

[#389795] Re: "A" and "an" articles in front of words — Peter Camilleri <pdc.cse@...> 2011/11/06

Indeed. My understanding is that the usage of a/an depends on the

[#389859] Re: "A" and "an" articles in front of words — Gonçalo C. Justino <goncalo.justino@...> 2011/11/08

> Indeed. My understanding is that the usage of a/an depends on the

[#389590] Vim Ruby Config — "Junayeed Ahnaf Nirjhor" <zombiegenerator@...>

Hello,

13 messages 2011/10/31

[ANN] Rails 3.1.1.rc3

From: Santiago Pastorino <santiago@...>
Date: 2011-10-06 02:36:37 UTC
List: ruby-talk #388635
Hi everyone,

Rails 3.1.1.rc3 has been released. Please give it a try, it's our
chance to fix regressions you might find and make a beautiful 3.1.1
stable release. If there are no regressions I will be releasing 3.1.1
final next October 7th. If you find any regression please contact me
ASAP by email, twitter or github.

## CHANGES

*ActionMailer*

* No changes


*ActionPack*

* stylesheet_link_tag('/stylesheets/application') and similar helpers doesn=
't
throw Sprockets::FileOutsidePaths exception anymore [Santiago Pastorino]

* Ensure default_asset_host_protocol is respected, closes #2980. [Jos=E9 Va=
lim]

  Changing rake db:schema:dump to run :environment as well as :load_config,
  as running :load_config alone will lead to the dumper being run without
  including extensions such as those included in foreigner and
  spatial_adapter.

  This reverses a change made here:
  https://github.com/rails/rails/commit/5df72a238e9fcb18daf6ab6e6dc9051c910=
6d7bb#L0L324

  I'm assuming here that :load_config needs to be invoked
  separately from :environment, as it is elsewhere in the
  file for db operations, if not the alternative is to go
  back to "task :dump =3D> :environment do".

  [Ben Woosley]

* Update to rack-cache 1.1.

  Versions prior to 1.1 delete the If-Modified-Since and If-Not-Modified
  headers when config.action_controller.perform_caching is true. This has t=
wo
  problems:
    * unexpected inconsistent behaviour between development &
      production environments
    * breaks applications that use of these headers

  [Brendan Ribera]

* Ensure that enhancements to assets:precompile task are only run once
[Sam Pohlenz]

* TestCase should respect the view_assigns API instead of pulling variables=
 on
its own. [Jos=E9 Valim]

* javascript_path and stylesheet_path now refer to /assets if asset pipelin=
ing
is on. [Santiago Pastorino]

* button_to support form option. Now you're able to pass for example
'data-type' =3D> 'json'. [ihower]

* image_path and image_tag should use /assets if asset pipelining is turned
on. Closes #3126 [Santiago Pastorino and christos]

* Avoid use of existing precompiled assets during rake assets:precompile ru=
n.
Closes #3119 [Guillermo Iguaran]

* Copy assets to nondigested filenames too [Santiago Pastorino]

* Give precedence to `config.digest =3D false` over the existence of
manifest.yml asset digests [christos]

* escape options for the stylesheet_link_tag method [Alexey Vakhov]

* Re-launch assets:precompile task using (Rake.)ruby instead of Kernel.exec=
 so
it works on Windows [cablegram]

* env var passed to process shouldn't be modified in process method. [Santi=
ago
Pastorino]

* `rake assets:precompile` loads the application but does not initialize
it.

  To the app developer, this means configuration add in
	config/initializers/* will not be executed.

  Plugins developers need to special case their initializers that are
  meant to be run in the assets group by adding :group =3D> :assets. [Jos=
=E9 Valim]

* Sprockets uses config.assets.prefix for asset_path [asee]

* FileStore key_file_path properly limit filenames to 255 characters.
[phuibonhoa]

* Fix Hash#to_query edge case with html_safe strings. [brainopia]

* Allow asset tag helper methods to accept :digest =3D> false option in
order to completely avoid the digest generation.
Useful for linking assets from static html files or from emails when the us=
er
could probably look at an older html email with an older asset.
[Santiago Pastorino]

* Don't mount Sprockets server at config.assets.prefix if
config.assets.compile is false. [Mark J. Titorenko]

* Set relative url root in assets when controller isn't available for
Sprockets (eg. Sass files using asset_path). Fixes #2435 [Guillermo
Iguaran]

* Fix basic auth credential generation to not make newlines. GH #2882

* Fixed the behavior of asset pipeline when config.assets.digest and
config.assets.compile are false and requested asset isn't precompiled.
  Before the requested asset were compiled anyway ignoring that the
config.assets.compile flag is false. [Guillermo Iguaran]

* CookieJar is now Enumerable. Fixes #2795

* Fixed AssetNotPrecompiled error raised when rake assets:precompile
is compiling certain .erb files. See GH #2763 #2765 #2805 [Guillermo
Iguaran]

* Manifest is correctly placed in assets path when default assets
prefix is changed. Fixes #2776 [Guillermo Iguaran]

* Fixed stylesheet_link_tag and javascript_include_tag to respect
additional options passed by the users when debug is on. [Guillermo
Iguaran]

* Fix ActiveRecord#exists? when passsed a nil value

* Fix assert_select_email to work on multipart and non-multipart
emails as the method stopped working correctly in Rails 3.x due to
changes in the new mail gem.


*ActiveModel*

* Remove hard dependency on bcrypt-ruby to avoid make ActiveModel
dependent on a binary library.
  You must add the gem explicitly to your Gemfile if you want use
ActiveModel::SecurePassword:

  gem 'bcrypt-ruby', '~> 3.0.0'

  See GH #2687. [Guillermo Iguaran]


*ActiveRecord*

* Add deprecation for the preload_associations method. Fixes #3022.

  [Jon Leighton]

* Don't require a DB connection when loading a model that uses
set_primary_key. GH #2807.

  [Jon Leighton]

* Fix using select() with a habtm association, e.g.
Person.friends.select(:name). GH #3030 and
  #2923.

  [Hendy Tanata]

* Fix belongs_to polymorphic with custom primary key on target. GH #3104.

  [Jon Leighton]

* CollectionProxy#replace should change the DB records rather than
just mutating the array.
  Fixes #3020.

  [Jon Leighton]

* LRU cache in mysql and sqlite are now per-process caches.

	* lib/active_record/connection_adapters/mysql_adapter.rb: LRU cache
	  keys are per process id.
	* lib/active_record/connection_adapters/sqlite_adapter.rb: ditto

* Database adapters use a statement pool for limiting the number of open
  prepared statments on the database.  The limit defaults to 1000, but can
  be adjusted in your database config by changing 'statement_limit'.

* Fix clash between using 'preload', 'joins' or 'eager_load' in a
default scope and including the
  default scoped model in a nested through association. (GH #2834.)
[Jon Leighton]

* Ensure we are not comparing a string with a symbol in
HasManyAssociation#inverse_updates_counter_cache?.
  Fixes GH #2755, where a counter cache could be decremented twice as
far as it was supposed to be.

  [Jon Leighton]

* Don't send any queries to the database when the foreign key of a
belongs_to is nil. Fixes
  GH #2828. [Georg Friedrich]

* Fixed find_in_batches method to not include order from
default_scope. See GH #2832 [Arun Agrawal]

* Don't compute table name for abstract classes. Fixes problem with
setting the primary key
  in an abstract class. See GH #2791. [Akira Matsuda]

* Psych errors with poor yaml formatting are proxied. Fixes GH #2645 and
  GH #2731

* Use the LIMIT word with the methods #last and #first. Fixes GH #2783
[Damien Mathieu]


*ActiveResource*

* No changes


*ActiveSupport*

* ruby193: String#prepend is also unsafe [Akira Matsuda]

* Fix obviously breakage of Time.=3D=3D=3D for Time subclasses [jeremyevans=
]

* Added fix so that file store does not raise an exception when cache dir d=
oes
not exist yet. This can happen if a delete_matched is called before anythin=
g
is saved in the cache. [Philippe Huibonhoa]

* Fixed performance issue where TimeZone lookups would require tzinfo
each time [Tim Lucas]

* ActiveSupport::OrderedHash is now marked as extractable when using
Array#extract_options! [Prem Sichanugrist]


*Railties*

* Add jquery-rails to Gemfile of plugins, test/dummy app needs it.
Closes #3091. [Santiago Pastorino]

* `rake assets:precompile` loads the application but does not initialize it=
.

  To the app developer, this means configuration add in
  config/initializers/* will not be executed.

  Plugins developers need to special case their initializers that are
  meant to be run in the assets group by adding :group =3D> :assets.


You can find an exhaustive list of changes on
[github](https://github.com/rails/rails/compare/v3.1.0...v3.1.1.rc3).
Along with the [closed issues marked for
v3.1.1](https://github.com/rails/rails/issues?milestone=3D6&state=3Dclosed)=
.
You can also take a look to what's new between [v3.1.1.rc2 and
v3.1.1.rc3](https://github.com/rails/rails/compare/v3.1.1.rc2...v3.1.1.rc3)

You can also see issues [we haven't closed
yet](https://github.com/rails/rails/issues?milestone=3D8&state=3Dopen).

Thanks to everyone!

--

Santiago Pastorino
WyeWorks Co-founder
http://www.wyeworks.com

Twitter: http://twitter.com/spastorino
Github: http://github.com/spastorino

In This Thread

Prev Next