Re: [Rails-core] Rails release improvements

2011-07-26 Thread Jeremy Kemper
On Mon, Jul 25, 2011 at 5:15 PM, Aaron Patterson wrote: > Hi folks, > > I want to talk about the release process.  Specifically, I want to talk about > how we can improve our release process. > > There are a couple things I want to see in our release process: > > 1) Regular, periodic releases. De

Re: [Rails-core] PUT request, respond_with and the json rendered content

2011-10-19 Thread Jeremy Kemper
On Wed, Oct 19, 2011 at 2:04 AM, Damien MATHIEU <4...@dmathieu.com> wrote: > Since this commit : > https://github.com/rails/rails/commit/0d257156544feba729ba28f6874d5a30d561 > PUT requests made on a controller using respond_with with the format json > render an empty hash. > José explains in t

Re: [Rails-core] Why do we have release candidates for patch releases?

2011-11-15 Thread Jeremy Kemper
On Tue, Nov 15, 2011 at 6:36 AM, Mislav wrote: > Rails 3.1.2.rc2 just got released. Around the time of the 3.1.1 release, > there was also a relatively evolved release process including announcements > and release candidates. > > Why? > Standardizing the process makes it easier to manage frequen

Re: [Rails-core] Fixing the CHANGELOG

2011-11-17 Thread Jeremy Kemper
On Thu, Nov 17, 2011 at 11:25 AM, Aaron Patterson wrote: > We need to do something about our changelogs. First I will explain the > problem, then I will propose a couple solutions. > > When we make a change, that change should be committed to the master > branch. Ideally, that change would also

Re: [Rails-core] Rails 4.0 and String#encoding_aware?

2011-12-21 Thread Jeremy Kemper
On Wed, Dec 21, 2011 at 1:56 AM, Sergey Nartimov wrote: > I'm going to add deprecation to String#encoding_aware? method and > remove all of its usage from rails code as Rails 4.0 supports only > ruby 1.9. > Not quite yet: it's unclear how we'll be working JRuby, Rubinius, and others, so this chec

Re: [Rails-core] Rails 4.0 and String#encoding_aware?

2011-12-22 Thread Jeremy Kemper
uda Katz wrote: > What do you mean? > > Yehuda Katz > (ph) 718.877.1325 > > > On Wed, Dec 21, 2011 at 6:17 AM, Jeremy Kemper wrote: > >> On Wed, Dec 21, 2011 at 1:56 AM, Sergey Nartimov wrote: >> >>> I'm going to add deprecation to String#encoding

Re: [Rails-core] Rails 4.0 and String#encoding_aware?

2011-12-23 Thread Jeremy Kemper
ith only partial 1.9 support, and we want to > support them, we should probably PDI whether we are in a position to drop > 1.8 support at this time. > > Yehuda Katz > (ph) 718.877.1325 > > > > On Thu, Dec 22, 2011 at 8:12 AM, Jeremy Kemper wrote: > >> Encoding

Re: [Rails-core] Just FYI: Rails 2.3.14 is not Ruby 1.9.2 compatible.

2011-12-23 Thread Jeremy Kemper
Worth fixing. Please give 1.9.3 a shot too. Even if we don't do a gem release, folks can target the `2-3-stable` branch. On Fri, Dec 23, 2011 at 12:20 PM, Andrew Selder wrote: > Just a quick heads up for everyone. > > Rails 2.3.14 is not completely Ruby 1.9.2 compatible. > > Specifically the vend

Re: [Rails-core] Google Summer of Code - 2012

2012-02-21 Thread Jeremy Kemper
Ilya, Rails isn't applying as a mentoring organization this year. We'd love to see RubyCentral toss our community's hat in the ring again, though! Could you contact RubyCentral directly about getting the ball rolling? The mentoring org application deadline is very close. Perhaps next year we

Re: [Rails-core] rails console --sandbox is only half-baked

2012-04-27 Thread Jeremy Kemper
On Fri, Apr 27, 2012 at 9:56 AM, Rodrigo Rosenfeld Rosas wrote: > This only handles the default database as noticed by Jeremy. If you have > models relying on different databases, only the default one will be > sandboxed. > This is intentional. It's a simple convenience for working with a typica

Re: [Rails-core] gitignore - adding database.yml

2012-10-05 Thread Jeremy Kemper
On Fri, Oct 5, 2012 at 9:54 AM, Robert Evans wrote: > It's a pretty common practice (and best practice) to not include your > config/database.yml file inside your git repo. I'd like to add > config/database.yml to the generated .gitignore file when creating a new > rails application. Any objects,

Re: [Rails-core] ActiveRecord should eager load the parent record when fetching a relation Edit

2013-03-24 Thread Jeremy Kemper
Check out `:inverse_of` When it's set, `foo.bars.first.foo` is automatically set to the "parent" foo. In Rails 4.1, this will be automatic when it can be detected: https://github.com/rails/rails/pull/9522 On Sat, Mar 23, 2013 at 5:51 AM, Adrien Siami wrote: > Hi guys, > > I created a ticket ab

Re: [Rails-core] Changing the way Rails renders views

2013-05-29 Thread Jeremy Kemper
Go for it, Daniel! I think you'll find that handling references to local & instance vars is the fly in the ointment. Method-missing doesn't cut it since it's very low precedence compared to a real local var. On Wed, May 29, 2013 at 7:41 AM, Daniel Schierbeck < daniel.schierb...@gmail.com> wrote:

Re: [Rails-core] Changing the way Rails renders views

2013-05-30 Thread Jeremy Kemper
but I'd like to get some feedback soon :-) > > On Wednesday, May 29, 2013 8:17:31 PM UTC+2, Daniel Schierbeck wrote: > > That's my biggest worry as well. I'll give it a shot - I have an idea for > how I can cut the problem into smaller steps. > > On Wednesday, May

Re: [Rails-core] [Bug/Feature] require_dependency should allow Pathname, not just String Edit

2013-09-30 Thread Jeremy Kemper
+1 to follow the #to_path coercion. Note that RubyGems overrides Kernel.require and will need similar attention: https://github.com/rubygems/rubygems/blob/master/lib/rubygems/core_ext/kernel_require.rb#L24-L38 On Mon, Sep 30, 2013 at 11:00 AM, Benjamin Fleischer wrote: > Per @rafaelfranca I sho

Re: [Rails-core] Re: Remove :js responder

2013-12-17 Thread Jeremy Kemper
eryone for the (long) discussion and thanks to Egor for the initial report - months ago now! - and this reminder. On Sun, Dec 8, 2013 at 10:51 PM, David Heinemeier Hansson wrote: > Jeremy Kemper is assigned to this. We will get this in shortly. > > On Dec 8, 2013, at 20:19, Egor Homakov wrote: >

Re: [Rails-core] Improvements to Strong Params

2014-05-01 Thread Jeremy Kemper
I expect params.require(:key) to return its value, not self. I can see that perspective on astonishment, though. In practice, it leads to fluently chained code to set up your params "schema": ```ruby def post_params params.require(:post).permit(:subject, :body, ...) end ``` On Wed, Apr 30, 2014

Re: [Rails-core] Cassandra CQL idea

2014-08-26 Thread Jeremy Kemper
Would be awesome to see Arel working with a CQL dialect in addition to SQL, even as an experiment. Active Record assumes a lot about SQL and relational databases, so adapting it is probably a longer shot. But very cool to try! On Tue, Aug 26, 2014 at 11:13 AM, Oleh Novosad wrote: > I have an ide

Re: [Rails-core] Multiple Asset Hosts

2014-10-31 Thread Jeremy Kemper
Domain sharding is still useful but our guidance is outdated. It's from a pre-SSL-everywhere, pre-SPDY era where browsers had low per-domain connection caps. http://www.stevesouders.com/blog/2013/09/05/domain-sharding-revisited/ http://blog.cloudflare.com/using-cloudflare-to-mix-domain-sharding-an

[Rails-core] Re: Clean Functional Tests

2006-08-21 Thread Jeremy Kemper
On 8/21/06, Chris Roos <[EMAIL PROTECTED]> wrote: * Posting on behalf of James Mead ([EMAIL PROTECTED]) *Sounds interesting. I've been doing my own monkey-patching recently( http://mocha.rubyforge.org/classes/MultipleSetupAndTeardown.html) andhave noticed a couple of other people(http://www.agilewe

[Rails-core] Re: Rails core testing, process, pointers

2006-08-21 Thread Jeremy Kemper
On 8/21/06, Matt Jankowski <[EMAIL PROTECTED]> wrote: Yeah, I got as far as determining that 'env_qs' in read_query issometimes nil and other places expect it not to be withoutcompensating for the fact that it apparently might be.  Then Irealized that only did I not know what changes might have bee

[Rails-core] Re: Clean Functional Tests

2006-08-21 Thread Jeremy Kemper
On 8/21/06, Jonathan Viney <[EMAIL PROTECTED]> wrote: My plugin allows you to do that. It's a huge hack, but it works for me! As far as I know it is completely backwards compatible. http://svn.viney.net.nz/things/rails/plugins/testcase_setup_and_teardown_with_blocksWe use the same approach (method

[Rails-core] Re: Can we update gems to edge at least weekly

2006-08-22 Thread Jeremy Kemper
On 8/22/06, Dominic Sisneros <[EMAIL PROTECTED]> wrote: I tried updating that file.  This is what I get after that.D:\workspace\fti\vendor>svn co http://dev.rubyonrails.org/svn/rails/trunk railssvn: PROPFIND request failed on '/svn/rails/trunk' svn: PROPFIND of '/svn/rails/trunk': Could not read s

[Rails-core] Re: Ordered Enumerable#group_by ?

2006-08-22 Thread Jeremy Kemper
On 8/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > No plans that I know of. In the one app where I need the ordering to be> preserved, I just redefined group_by to use the Array version. Another > option is to call sort_by on the result but that can get ugly.ok then, I'll keep my own copy.C

[Rails-core] Re: Can we update gems to edge at least weekly

2006-08-22 Thread Jeremy Kemper
On 8/22/06, Dominic Sisneros <[EMAIL PROTECTED]> wrote: Nope, I got the same error message as abovesvn: PROPFIND request failed on '/svn/rails/trunk' svn: PROPFIND of '/svn/rails/trunk': Could not read status line: An established connection was aborted by the software in your host machine.   ( ht

[Rails-core] Re: STI and Joins Broken

2006-08-23 Thread Jeremy Kemper
On 8/23/06, Kevin Clark <[EMAIL PROTECTED]> wrote: Can I get some feedback on ticket 5838? I've got a patch and testcasethat works. Rick seems to be opposed to the patch because I'm notsolving all the join issues, but I'd argue that you should at the veryleast get the sort of object your asked for

[Rails-core] Re: Parameter Parsing with Duplicate Parameters

2006-08-23 Thread Jeremy Kemper
On 8/23/06, MacProBob <[EMAIL PROTECTED]> wrote: Wondering if this should be the correct behavoir of parameter parsingin Rails.GET /controller/action?key=value1&key=value2puts params['key']  # = value1Currently, if you pass in multiple values with the same key, the FIRST value is the value that is

[Rails-core] Re: Parameter Parsing with Duplicate Parameters

2006-08-24 Thread Jeremy Kemper
On 8/23/06, MacProBob <[EMAIL PROTECTED]> wrote: For the checkbox code, I wouldn't define that as exploiting thebehavior, it's more like working around the problem. If Rails exhibitedthe "typical" behavior for parameter parsing (treating the incoming parameters as a hash where new values overwrite

[Rails-core] Re: [Rails] Making rails thread safe, priority or not?

2006-08-24 Thread Jeremy Kemper
(posting to -core as well.)On 8/24/06, snacktime <[EMAIL PROTECTED]> wrote: I know there has been a lot of talk about rails and thread safety.Could you point me to these discussions? Maybe I've missed it, but I havent' seen any of the core team talkabout whether they plan on fixing this in the near

[Rails-core] Re: [Rails] Making rails thread safe, priority or not?

2006-08-24 Thread Jeremy Kemper
On 8/24/06, Matt Palmer <[EMAIL PROTECTED]> wrote: On Thu, Aug 24, 2006 at 01:46:11PM -0700, Jeremy Kemper wrote:> Why?I'm not quite as emphatic as snacktime when it comes to the importance ofa thread-safe Rails, but it *would* do something to reduce the size of Mongrel packs (presum

[Rails-core] Re: Nested Resources failing..?

2006-08-28 Thread Jeremy Kemper
On 8/28/06, Ray Morgan <[EMAIL PROTECTED]> wrote: Hey I was wondering if anyone else was having problems with nestedRESTful routes such as:map.resources :posts do |posts|  posts.resources :commentsend?? It is not working for me, I have to declare it in the old prefix way, and it works fine...map.re

[Rails-core] Re: i18n friendly, plugable Rails Core

2006-08-29 Thread Jeremy Kemper
On 8/23/06, Jesper Rønn-Jensen <[EMAIL PROTECTED]> wrote: In my work with a simple localization plugin, i'm running into a lot ofplaces in the Rails core, where text and other localization specificinformation is hardcoded.I've included some examples in the bottom of this post. It's hard for an outs

[Rails-core] Re: i18n friendly, plugable Rails Core

2006-08-29 Thread Jeremy Kemper
On 8/29/06, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]> wrote: On 23-aug-2006, at 14:04, Jesper Rønn-Jensen wrote:> These are the most obvious examples I encountered while working on my> LocalizationSimplified plugin. There are other places as well, but for> now lets focus on the low-hanging fruit

[Rails-core] Re: i18n friendly, plugable Rails Core

2006-08-29 Thread Jeremy Kemper
On 8/29/06, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]> wrote: On 29-aug-2006, at 11:29, Jeremy Kemper wrote:> Perhaps some of our localization plugin gurus can join heads to> patch, test, and document each of these. Volunteers?The Globalize folks should know better. Pers

[Rails-core] Re: :throw option for AR finders that don't throw RecordNotFound exceptions

2006-08-29 Thread Jeremy Kemper
On 8/29/06, Tim Lucas <[EMAIL PROTECTED]> wrote: Wouldn't it be better to have a finder option to specify you want anexception thrown if there's no record found?I'd prefer a bang! method.  I think it's a good indication that there should be separate 'loading' and 'finding' API -- passing ever more

[Rails-core] Re: Pluralize Bug

2006-08-29 Thread Jeremy Kemper
On 8/29/06, foamdino <[EMAIL PROTECTED]> wrote: This is a bug in activesupport/lib/active_support/inflections.rbSomehow the singular form is included as a plural form, immediatelyafter the plural, so what happens in the Inflector.pluralize methodcall is queries.pluralize -> query -> queriesSounds g

[Rails-core] Re: Pluralize Bug

2006-08-29 Thread Jeremy Kemper
On 8/29/06, Michael Koziarski <[EMAIL PROTECTED]> wrote: The inflector is basically frozen,  prior to 1.0 we'd add lots of newrules to fix bugs, and just end up enraging people who looked at theold output and named their tables accordingly.   You can add thoseexceptions yourself in environment.rb.

[Rails-core] Re: :throw option for AR finders that don't throw RecordNotFound exceptions

2006-08-30 Thread Jeremy Kemper
On 8/30/06, Tim Lucas <[EMAIL PROTECTED]> wrote: I've filed a ticket seeing as Aksimet seems to be in a good mood atthe moment:Akismet is disabled due to its patch gobbling.jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[Rails-core] Re: :throw option for AR finders that don't throw RecordNotFound exceptions

2006-08-30 Thread Jeremy Kemper
On 8/30/06, Chris Wanstrath <[EMAIL PROTECTED]> wrote: So, if this `find!' bidness gets introduced it means an exception canget raised a) on record not found via find! / find_by_*!  or b) onrecord not found via find(id).  Raised on bangs or on non-bang.I know the non-bang is a very specific circums

[Rails-core] Re: [Fwd: Rails AR/Oracle Unit Test: [4893] failed]

2006-09-01 Thread Jeremy Kemper
On 9/1/06, Martin Emde <[EMAIL PROTECTED]> wrote: That seems to be when applying my patch. Not sure if that was my problem or not, but here's the fix patch.On 8/31/06, Michael A. Schoen <[EMAIL PROTECTED]> wrote: Looks like Jeremy forgot to check in a change to test/fixtures/company.rbOops - than

[Rails-core] Re: Trac is still sick?

2006-09-01 Thread Jeremy Kemper
On 8/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I just posted a patch ticket but can't attach my diff file. Trac saysRejecting spam: a href= "">I removed that spam rule. Please try again.jeremy --~--~-~--~~~---~--~~ You received this message because you ar

[Rails-core] Re: Worrisome trac spam

2006-09-07 Thread Jeremy Kemper
On 9/7/06, Caio Chassot <[EMAIL PROTECTED]> wrote: It's possible that a lot of tickets will, in effect, disappear andnever be resolved as a result of such exploits.Is there anything that can be done regarding trac spam in general?Anything in the pipeline? Trac has a spam filter (see the BadContent

[Rails-core] Re: testing actionpack (for patch)

2006-09-07 Thread Jeremy Kemper
On 9/7/06, Andrew Kaspick <[EMAIL PROTECTED]> wrote: Can anybody help me with the problem outlined below?  I posted lastweek and still haven't received a response.  I'd think at least a coredev would have some insight on this issue.I haven't seen this error. If a test failure is not relevant to you

[Rails-core] Re: Just a thought

2008-06-12 Thread Jeremy Kemper
On Thu, Jun 12, 2008 at 8:45 PM, frogstarr78 <[EMAIL PROTECTED]> wrote: > > config.active_record.configure do |db| > db.database = 'test_app_production' > db.socket = IO.popen("mysql --help") {|f| f.read() =~ /^socket(.+) > $/ && $1.strip } > db.credentials = "#{ENV["home"]}/.my.cnf" > end

[Rails-core] Re: Online API docs not updated?

2008-06-18 Thread Jeremy Kemper
On Wed, Jun 18, 2008 at 6:34 PM, Chris Kampmeier <[EMAIL PROTECTED]> wrote: > Here's the ticket: http://rails.lighthouseapp.com/projects/8994/tickets/357 I generated and uploaded the current 2.1 docs. Best, jeremy --~--~-~--~~~---~--~~ You received this message b

[Rails-core] Re: Online API docs not updated?

2008-06-19 Thread Jeremy Kemper
On Thu, Jun 19, 2008 at 12:45 AM, Xavier Noria <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 19, 2008 at 8:14 AM, Jeremy Kemper <[EMAIL PROTECTED]> wrote: > >> I generated and uploaded the current 2.1 docs. > > Great! > > named_scope does not appear in the fr

[Rails-core] Re: Missing documentation problem in ActionController::Filters

2008-07-04 Thread Jeremy Kemper
On Thu, Jul 3, 2008 at 2:14 AM, Frederick Cheung <[EMAIL PROTECTED]> wrote: > > I was just pointing someone at some documentation when I noticed that > http://api.rubyonrails.com/classes/ActionController/Filters/ClassMethods.html > is missing the whole conceptual level chunk that used to sit at t

[Rails-core] Re: ActiveRecord patchset (introducing features such as postgres schema support)

2008-08-21 Thread Jeremy Kemper
On Thu, Aug 21, 2008 at 7:23 AM, Adam Šindelář <[EMAIL PROTECTED]> wrote: > Our company is currently working on a large government contract to > develop an elearning system using Ruby on Rails. To support our needs, > we have added numerous useful features to ActiveRecord over the past > year or so

[Rails-core] Re: ActiveRecord patchset (introducing features such as postgres schema support)

2008-08-25 Thread Jeremy Kemper
2008/8/25 frogstarr78 <[EMAIL PROTECTED]>: > I should mention we'd be interested in getting these additions added > to the core postgresql adapter if there is a possibility of that. > Although I wouldn't want to step on any toes either. We'd be happy to > collaborate with Adam and Co. on this also

[Rails-core] Re: [Patch Review] Make TestUploadFile content_type writable

2008-08-27 Thread Jeremy Kemper
On Wed, Aug 27, 2008 at 6:08 PM, Tim Haines <[EMAIL PROTECTED]> wrote: > Writing some controller specs for uploading files this morning I was having > problems because TestUploadfile.content_type isn't writable. I've submitted > a really simple patch with a tweaked test: > > http://rails.lighthou

[Rails-core] Re: Class.subclasses vs. ActiveRecord::Base.subclasses, curiosity or bug?

2008-08-29 Thread Jeremy Kemper
On Fri, Aug 29, 2008 at 4:29 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > I ran into an interesting curiosity today when a whole bunch of our tests > started breaking mysteriously, with various strings getting messages they > didn't understand. > > Non-Rails prolog > > What triggered it was the

[Rails-core] Re: Class.subclasses vs. ActiveRecord::Base.subclasses, curiosity or bug?

2008-09-04 Thread Jeremy Kemper
> > On Thu, Sep 4, 2008 at 1:57 PM, Rick DeNatale <[EMAIL PROTECTED]> > wrote: >> >> On Fri, Aug 29, 2008 at 9:43 PM, Jeremy Kemper <[EMAIL PROTECTED]> >> wrote: >>> >>> On Fri, Aug 29, 2008 at 4:29 PM, Rick DeNatale <[EMAIL PROTECTED]>

[Rails-core] Re: Mysql and non null text columns

2008-09-09 Thread Jeremy Kemper
On Tue, Sep 9, 2008 at 9:47 AM, Frederick Cheung <[EMAIL PROTECTED]> wrote: > We've been having some problems with mysql 5 and not null text columns > (versions 5.0.67, 5.0.51a and 5.0.51b) > > Mysql reports the columns as having a default of null (the column is > actually a not null) which causes

[Rails-core] Re: Active Record 2.1.1- oci8 - Table Name Quoted

2008-09-18 Thread Jeremy Kemper
On Thu, Sep 18, 2008 at 1:39 PM, Scott Robertson <[EMAIL PROTECTED]> wrote: > > It seems there was a change between AR 2.1.0 and 2.1.1. The table > name is now being quoted in oci8, which causes the table not to be > found. A script that uses this code works with 2.1.0, but not 2.1.1. > > In sql

[Rails-core] Re: support for postgres-pr

2008-11-15 Thread Jeremy Kemper
On Sat, Nov 15, 2008 at 8:44 AM, Stefan Lang <[EMAIL PROTECTED]> wrote: > > 2008/11/15 Andrew Kaspick <[EMAIL PROTECTED]>: >> >> The pg gem is what you should be using now. > > postgres-pr was easier to deploy - put it in vendor > and be done. Building a C extension on/for the server > can be a ha

[Rails-core] Re: Test::Unit::TestCase refactoring

2008-11-17 Thread Jeremy Kemper
On Mon, Nov 17, 2008 at 10:31 AM, Matt Jones <[EMAIL PROTECTED]> wrote: > > I noted that in b0ee1bdf2650d7a8380d4e9be58bba8d9c5bd40e and related > commits that > the extensions to TestCase are getting pulled out; what's the correct > thing to put into test/test_helper.rb? Use ActiveSupport::TestC

[Rails-core] Re: support for postgres-pr

2008-11-17 Thread Jeremy Kemper
On Sun, Nov 16, 2008 at 5:19 AM, Stefan Lang <[EMAIL PROTECTED]> wrote: > > 2008/11/15 Jeremy Kemper <[EMAIL PROTECTED]>: >> >> On Sat, Nov 15, 2008 at 8:44 AM, Stefan Lang >> <[EMAIL PROTECTED]> wrote: >>> >>> 2008/11/15 Andrew Kaspick

[Rails-core] Re: Test::Unit::TestCase refactoring

2008-11-17 Thread Jeremy Kemper
On Mon, Nov 17, 2008 at 1:26 PM, Matt Jones <[EMAIL PROTECTED]> wrote: > Found it - in activesupport/lib/active_support/test_case.rb, test/unit > needs to be required, > or the tests don't get run. Add "require 'test/unit'" after "rescue > LoadError". It's required in railties' test_help. Otherw

[Rails-core] Re: Test::Unit::TestCase refactoring

2008-11-17 Thread Jeremy Kemper
> > On Nov 17, 2008, at 4:39 PM, Jeremy Kemper wrote: > >> >> On Mon, Nov 17, 2008 at 1:26 PM, Matt Jones <[EMAIL PROTECTED]> wrote: >>> Found it - in activesupport/lib/active_support/test_case.rb, test/ >>> unit >>> needs to be req

[Rails-core] Re: Enumerable#group_by

2008-12-10 Thread Jeremy Kemper
On Tue, Dec 9, 2008 at 2:18 AM, Frederick Cheung <[EMAIL PROTECTED]> wrote: > I stumbled across > http://rails.lighthouseapp.com/projects/8994/tickets/1352-enumerablegroup_by-is-on2 > recently > > A quick investigation reveals that the complexity with respect to the > number of groups is indeed

[Rails-core] Re: extending AR tests to run in JRuby and jdbc

2009-01-01 Thread Jeremy Kemper
On Wed, Dec 31, 2008 at 12:47 PM, Stephen Bannasch wrote: > > I've got a patch to the AR tests that support running them in JRuby. > Right now the patch only works for mysql. > > A big part of the reason I'm working on this is to make it easier to > test JRuby itself. Charlie Nutter just fixed ye

[Rails-core] Re: Proposing a patch from 2.2.x to be applied to earlier versions

2009-01-14 Thread Jeremy Kemper
On Wed, Jan 14, 2009 at 3:59 PM, Gunnar Wolf wrote: > > Hi, > > I stumbled upon an issue with migrations that's trivially fixable, and > has already been fixed in 2.2 (commit def594b92d1...) - But I'd love > to see it applied in a 2.1 (maybe 2.0?) point release. I am lost on > what to do to propo

[Rails-core] Re: Array.wrap handling of association collections

2009-02-10 Thread Jeremy Kemper
On Tue, Feb 10, 2009 at 3:29 PM, Will Bryant wrote: > > Hi all, > > Good to see Array.wrap get added. However it doesn't DWIM with associations: > >>> Array.wrap(Icp.find(16).registers) > => [[#]] > >>> Array.wrap(DisputedRead.unresolved) > => [[#, #]] > > ie. array-like collections and scopes a

[Rails-core] Re: Railties tests

2009-02-11 Thread Jeremy Kemper
On Wed, Feb 11, 2009 at 10:11 AM, Frederick Cheung wrote: > > > On 11 Feb 2009, at 17:29, Nick Hoffman wrote: >> >> This approach fails: >> rails/railties$ ruby test/initializer_test.rb >> test/initializer_test.rb:1:in `require': no such file to load -- >> abstract_unit (LoadError) >> from

[Rails-core] Re: [Rails] Would Ruby on Rails consider including the following Ruby project: Debugger for Ruby 1.9?

2009-03-19 Thread Jeremy Kemper
Hi Rocky, On Thu, Mar 19, 2009 at 8:33 PM, rocky wrote: > I notice in the list of mentoring organizations for Google Summer of > Code 2009 there is no organization representing Ruby. Yes, unfortunately. > Last year, I had a student who was interested in debugging support in > Ruby 1.9 but due

[Rails-core] Re: Google Summer of Code Mentors

2009-03-19 Thread Jeremy Kemper
On Thu, Mar 19, 2009 at 8:43 PM, David Dollar wrote: > Could anyone in the know give us a quick summary of what being a > mentor entails? Also, a rundown of what you are looking for > qualification-wise in potential members would be great. The mentor gives advice and guidance, helps set realisti

[Rails-core] Re: Google Summer of Code Mentors

2009-03-19 Thread Jeremy Kemper
On Thu, Mar 19, 2009 at 9:28 PM, Jeremy Kemper wrote: > On Thu, Mar 19, 2009 at 8:43 PM, David Dollar wrote: >> Could anyone in the know give us a quick summary of what being a >> mentor entails? Also, a rundown of what you are looking for >> qualification-wise in poten

[Rails-core] Re: Time to make Rails Trac read only, maybe?

2009-03-22 Thread Jeremy Kemper
On Sun, Mar 22, 2009 at 10:00 AM, Mislav Marohnić wrote: > The only updates I'm getting nowadays from Trac are spam comments, and > they're getting in more often by time. > Is it time to lock Rails Trac in read-only mode? Agreed. Comments are off now. jeremy --~--~-~--~~---

[Rails-core] Re: one more GSoC idea

2009-03-23 Thread Jeremy Kemper
On Sun, Mar 22, 2009 at 12:36 AM, jordip wrote: > > > I have seen the ideas of GSoC for rails and they are quite amazing, > lot of infrastructure work. But I am personally more interested in > working on other kind of idea for GSoC. Something that is maybe of > more direct application. > I was th

[Rails-core] Re: Google Summer of Code proposal: Rack::Dtrace

2009-03-23 Thread Jeremy Kemper
On Sun, Mar 22, 2009 at 4:45 AM, ecin wrote: > > For this years Google Summer of Code, I want to implement a set of > Dtrace [1] probes in Rack [2]. The idea is to create a profiling tool > that easily works across a number of Ruby web-frameworks and web- > servers and provide insight into a web-

[Rails-core] GSoC applications open today

2009-03-23 Thread Jeremy Kemper
Google Summer of Code student applications start today! College students: follow your open source passion this summer and let Google foot the bill. Google Summer of Code (GSoC) is a global program that offers student developers stipends to write code for various open source software projects. Ru

[Rails-core] Re: one more GSoC idea

2009-03-25 Thread Jeremy Kemper
On Wed, Mar 25, 2009 at 4:08 AM, jordi polo wrote: > I have submitted already. > My idea is focus in strategy and RPG like games.  Very much like > ikariam, travian, fallen sword and a long etcetera. > > My draft proposal (later I show that the template for RoR is different > and change proposal

[Rails-core] Re: GSoC applications open today

2009-03-27 Thread Jeremy Kemper
On Mon, Mar 23, 2009 at 1:47 PM, Jeremy Kemper wrote: > Google Summer of Code student applications start today! > > College students: follow your open source passion this summer and let > Google foot the bill. Google Summer of Code (GSoC) is a global program > that offers stu

[Rails-core] Re: [GSoC] Rubyspec

2009-03-30 Thread Jeremy Kemper
On Mon, Mar 30, 2009 at 7:40 AM, Federico Builes wrote: > I was a student for GSoC under Ruby Central last year and I'd love to > participate this year again, as a mentor. > > I'd like to include the Rubyspec project this year since I think it > will help all the Ruby implementations. > Right now

[Rails-core] Re: Adding first/last back onto OrderedHash

2009-04-08 Thread Jeremy Kemper
On Wed, Apr 8, 2009 at 8:39 PM, John Barton wrote: > I just whipped up a tiny patch to add first and last back onto > OrderedHash (lost in the move from subclass of Array to subclass of > Hash) and hoped I could get some +1s / feedback. This was more an accident than a feature. How do you use it

[Rails-core] 2009 GSoC winners announced

2009-04-20 Thread Jeremy Kemper
We had a very competitive turnout for our first year with GSoC: 35 students and 44 proposals vying for 4 spots. Students, you rocked this. Top runners-up: @kirkconnell- ActiveResource Service Discovery @flgr - Bringing fast debugging support to YARV @hectoregm - ActiveEncoding

[Rails-core] Re: Finding the loaded plugins?

2009-05-20 Thread Jeremy Kemper
On Wed, May 20, 2009 at 3:32 AM, Michael Schuerig wrote: > Is there a way to find out which (gem) plugins are loaded without > repeating work the initializer has already done? No, but it's been proposed: https://rails.lighthouseapp.com/projects/8994/tickets/2526 jeremy --~--~-~--~~

[Rails-core] Re: Rails and Ruby 1.9 encoding issues

2009-05-22 Thread Jeremy Kemper
On Fri, May 22, 2009 at 11:42 AM, John-Paul Bader wrote: > Hrm, > > meanwhile I've read through many forum threads (which are more confusing > than helpful) and I also played around with that issue a bit more. > > First of all I set up a clean install of Ruby1.9, Rails, Postgresql83 and > http://

[Rails-core] Re: Rails and Ruby 1.9 encoding issues

2009-05-22 Thread Jeremy Kemper
On Fri, May 22, 2009 at 12:09 PM, Ken Collins wrote: > Just a plug, I have the latest SQL Server adapter working just fine in > 1.9 with unicode string support. > http://github.com/rails-sqlserver/2000-2005-adapter/tree/master > > I really found James' articles on string encoding helpful when > l

[Rails-core] Re: Rails 2.3-stable killed to_json

2009-05-28 Thread Jeremy Kemper
On Thu, May 28, 2009 at 4:13 AM, Mislav Marohnić wrote: > I bumped Rails 2.3-stable branch in our app today and deployed, thinking I'm > being a good developer by getting all the bugfixes this way. > What I actually did is broke many aspects of our app because all `to_json` > calls now return "{}

[Rails-core] Re: IRC Ops

2009-06-06 Thread Jeremy Kemper
On Sat, Jun 6, 2009 at 7:41 PM, Ryan Bigg wrote: > There need to be more ops in the irc channel #rubyonrails. These ops > need to be community personell who have a large-range of knowledge and > can help out the new people, as well as keeping the egos in check. I'm > tired of encountering people o

[Rails-core] Re: where to put my active record callback objects

2009-06-11 Thread Jeremy Kemper
On Thu, Jun 11, 2009 at 5:07 AM, jclagache wrote: > > I'm begining whith rails. > In the rails directory structure, where is the nicest directory tu put > my active record callback objects ? > app/helpers ? > app/models ? > lib ? > > May looks a stupid questions but i can't find answers googling.

[Rails-core] Re: state machine

2009-08-06 Thread Jeremy Kemper
On Thu, Aug 6, 2009 at 5:19 PM, Dan Pickett wrote: > I really don't want to start a flame war or get everyone all riled up, but I > was slightly dismayed to see the recent introduction/re-introduction of a > state machine into core. > > http://blog.envylabs.com/2009/08/the-rails-state-machine/ > >

[Rails-core] Re: Need ActiveRecord bind variable support; offering effort/patches

2009-08-07 Thread Jeremy Kemper
On Fri, Aug 7, 2009 at 10:35 AM, Nate W wrote: > >> > 2) Any AR changes in the works that would affect this? >> >> Yes, but in a postive way.  Miloops' ARel branch at least centralizes >> all the query generation,  hopefully you can leverage some of the >> tidying he's done to get a head start on

[Rails-core] Re: Making Active Resource act like Active Record...

2009-08-09 Thread Jeremy Kemper
On Sun, Aug 9, 2009 at 3:18 PM, taryneast wrote: > > Hi there, > > I've been using Active Resource pretty heavily over the last four > months and have found, like many, that it's not as much like Active > Record as I'd really like. So I've been improving a plugin called > Hyperactive Resource whic

[Rails-core] Re: Making Active Resource act like Active Record...

2009-08-20 Thread Jeremy Kemper
On Thu, Aug 20, 2009 at 3:30 AM, taryneast wrote: > > > On Aug 11, 8:05 am, Michael Koziarski wrote: >> > If there's another way planned I'd love to see it. >> > Querying the remote system, for example, certainly has its benefits. >> >> Previously we've discussed requesting: >> >> /posts/new.xml

[Rails-core] Re: why Array.wrap ?

2009-08-24 Thread Jeremy Kemper
On Mon, Aug 24, 2009 at 2:20 PM, Xavier Noria wrote: > > Hey Active Support defines Array.wrap (copied below). What's the > difference between that and the Ruby builtin Array() method: > >    Array(nil) # => [] >    Array([0]) # => [0] > >    class C >      def to_ary >        [0] >      end >    

[Rails-core] Re: why Array.wrap ?

2009-08-24 Thread Jeremy Kemper
On Mon, Aug 24, 2009 at 2:50 PM, Xavier Noria wrote: > > On Mon, Aug 24, 2009 at 11:33 PM, Pratik wrote: > >> IIRC, it's different on 1.9. > > Ah I tried as well with same result: Array() does too much. We want a uniform wrapper with no surprises. jeremy --~--~-~--~~~---

[Rails-core] Re: #3187 : Handle "blank slate" more easily with render method thanks to :default_template option

2009-09-12 Thread Jeremy Kemper
On Fri, Sep 11, 2009 at 2:20 PM, rouffj wrote: > > Hi, > > Until now with Rails when we would handle empty collections in apps, > we had to code it like that : > > <%# app/views/posts/index.erb %> > <% if @posts.empty? %> >  Sorry, there is no posts yet ! > <% else %> >  <% render :partial => "po

[Rails-core] Re: #3187 : Handle "blank slate" more easily with render method thanks to :default_template option

2009-09-14 Thread Jeremy Kemper
ne: >> >> >> >> <%= render :partial => "post", :collection => @posts or >> render :partial => "no_post" %> >> >> And soon you'll be able to do: >> >> <%= render @posts or render 'no_post' %&

[Rails-core] Re: Reasoning for not supporting ruby 1.8.6 in Rails 3.0

2009-09-15 Thread Jeremy Kemper
Hear, hear! jeremy On Tue, Sep 15, 2009 at 1:49 PM, Adam Milligan wrote: > > This comment example is invalid ERB, and is relatively clearly > documented as such.  You can't reasonably expect language providers to > support behavior that they've explicitly declared as invalid, and you > can't re

[Rails-core] Re: Reasoning for not supporting ruby 1.8.6 in Rails 3.0

2009-09-15 Thread Jeremy Kemper
Perhaps this could be changed in 1.8.6 itself. Issue a warning if the tag contains a comment. In 1.8.7, raise an error. jeremy On Tue, Sep 15, 2009 at 7:23 PM, Will Bryant wrote: > > I'm not arguing that we stick with 1.8.6 for Rails 3.0, I'm pointing > out that there's an upgrade issue that p

Re: [Rails-core] What does rails_xss in Rails 2.3.5 mean for plugin/gem authors?

2009-12-02 Thread Jeremy Kemper
On Wed, Dec 2, 2009 at 11:19 AM, Mislav Marohnić wrote: > A will_paginate user opened a issue in my tracker saying that he wants to > use will_paginate in a Rails 2.3.5 app using the rails_xss plugin. > Evidently, HTML output from will_paginate view helpers (`page_entries_info` > specifically) isn

Re: [Rails-core] Re: Formal way to reset counters

2009-12-02 Thread Jeremy Kemper
On Wed, Dec 2, 2009 at 2:42 PM, Gabe da Silveira wrote: > Brilliant find Mike, good work hardbap, and thanks for applying > Jeremy, but I don't actually like this API because it doesn't let you > update a single row.  If you have lots of rows this will be > unacceptably slow, as in slower than the

Re: [Rails-core] ActiveSupport for Rails 3

2009-12-14 Thread Jeremy Kemper
On Sun, Dec 13, 2009 at 8:26 AM, botanicus wrote: > Hey guys, > > I'm wondering about future of AS and Extlib. I heard that these two > should be merged (so extlib will actually die), which makes sense > since these two are sort of similar so we can have just one main > library with Ruby stdlib ex

Re: [Rails-core] try method under ActiveModel

2009-12-31 Thread Jeremy Kemper
On Thu, Dec 31, 2009 at 6:45 AM, Rodrigo Rosenfeld Rosas wrote: > Is there any reason why 'try' method behaves differently in ActiveModel? > > I mean: > > 'string'.try :inexistent_method > > yields an error... > > Thanks in advance, When you use Active Model standalone, you need to cherry-pick th

Re: [Rails-core] try method under ActiveModel

2009-12-31 Thread Jeremy Kemper
On Thu, Dec 31, 2009 at 11:05 AM, Rodrigo Rosenfeld Rosas wrote: > Jeremy Kemper escreveu: >> On Thu, Dec 31, 2009 at 6:45 AM, Rodrigo Rosenfeld Rosas >> wrote: >> >>> Is there any reason why 'try' method behaves differently in ActiveModel? >>> &g

Re: [Rails-core] How to test Rails 3?

2009-12-31 Thread Jeremy Kemper
On Thu, Dec 31, 2009 at 1:50 PM, Rodrigo Rosenfeld Rosas wrote: > Hi, one more question before this year ends... > > How can I create a Rails application from my local branch? > > I can create the application, but cannot run script/console, for instance... > > In the past I had to create some symb

Re: [Rails-core] Re: How to test Rails 3?

2010-01-01 Thread Jeremy Kemper
evelopment, it might be a good idea to add the > following, needed for every install: > > gem 'rack', :git => 'git://github.com/rails/rack.git' > gem 'arel', :git => 'git://github.com/rails/arel.git' > > Regards > Kieran > > On Jan

Re: [Rails-core] ActiveSupport for Rails 3

2010-01-01 Thread Jeremy Kemper
Awesome - thanks Xavier! jeremy On Fri, Jan 1, 2010 at 12:31 PM, Xavier Noria wrote: > On Thu, Dec 17, 2009 at 7:43 PM, Xavier Noria wrote: > >> I'll do a sistematic pass over all core extensions checking these >> dependencies. > > Done! I've found about 30 missing requires: > >    http://gith

  1   2   3   >