similar to: Uniquely identify the failed assertion

Displaying 20 results from an estimated 80000 matches similar to: "Uniquely identify the failed assertion"

2013 Mar 18
3
Facter Strings to integer.
Hello, If I want to do something like this:- if $::lsbdistrelease >= 6.3 { SOMETHING } Do I have to convert lsbdistrelease from a string to a number with an inline template or some such ? Thanks Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email
2013 Mar 07
1
Should ActiveRecord::RecordNotSaved attach the record in question?
I''m doing some work where I want to rescue ActiveRecord::RecordNotSaved from a save! call nested deep in the code. The thing is there could theoretically be failures here I want to pass through, and I want to inspect the record in order to decide. I figure a custom initializer on the exception class and a couple quick patches here and there in the code would make it minimally
2013 Jun 27
2
Date.weekend?
Hello, Having a boolean *.weekend?* on the Date class would be a good feature. It will basically do this: saturday? || sunday? Makes the code cleaner and easier to read. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2013 Apr 28
2
[ActiveSupport] Add a "remaining_to" method to date class
Just that: class Date > def remaining_to(date) > if date.acts_like? :date > date - self > end > end > alias :days_to end and then be able to do this: Date.today.remaining_to(Date.parse ''2014-04-02'').days.seconds -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To
2013 Oct 11
2
Ruby and Rails Sophisticated CMS
Hi I am looking for Ruby and Rails Sophisticated CMS refinery is looking good to me except its is simple content model and age based. Also I looked into locomotive the problem with locomotive is no SQL support.Could someone refer me one please. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from
2013 Apr 12
0
[LLVMdev] Summer of code proposal: add directive to uniquely identify loops of interest
Dear all, I would like to propose an average technical project that might have a great use in many parts/derivatives of LLVM, including ours. Consider you have dozens of regression tests in high-level languages, reporting whether or not the recent changes in compiler are breaking some kind of loop handling (vectorization, parallelization, etc.). Consider you have a post-processing utility, which
2013 Jul 12
5
Module team update: 2013-07-07 - 2013-07-12
Hello! Now that we''re two weeks in it''s time for another update on what''s been going on in the module team. We focused on puppetlabs-ntp and puppetlabs-firewall as our two primary modules, but also merged in fixes to passenger, rabbitmq, mysql, apt, and apache. As a result of this work we''ve released: http://forge.puppetlabs.com/puppetlabs/apache/0.7.0
2013 May 23
1
ORA-30678: too many open connections
Hello Ruby please i need your help when i run api i get this error . *ORA-30678: too many open connections* ** * * *ORA-06512: at "SYS.UTL_TCP", line 28* * * *ORA-06512: at "SYS.UTL_TCP", line 257* * * *ORA-06512: at "SYS.UTL_SMTP", line 116* * * *ORA-06512: at "SYS.UTL_SMTP", line 139* * * *ORA-06512: at "APPS.SEND_MAIL", line 12* * *
2013 Nov 14
6
validates :boolean_field, presence: true misconceptions
Last night a friend of mine started ranting about validates_presence_of :boolean_field returning not valid when the boolean field is false. I checked the rails issues and this seems to be a pretty common concern about the naming of ''presence'' . Instead of changing the behaviour of the presence validator, I was wondering if maybe the answer to avoid such misconceptions could be
2013 Jun 15
1
A puzzle about default_scope
Hi, guys I have a puzzle about default_scope. Suppose I have two model: class User < ActiveRecord::Base has_many :blogs default_scope where(deleted_at: nil) end class Blog < ActiveRecord::Base belongs_to :user end I want to produce sqlselect blogs.* from blogs inner join users on users.id = blogs.user_id and users.deleted_at is null And the code Blog.joins(:user), which I think
2013 Jan 31
2
CollectionAssociation shadows Enumerable#count
Hi all, I realize this behavior is by design, and in some respects the right thing to do. It also pre-dates the addition of Enumerable#count. I''m wondering, however, if it''s possible/desirable to allow the caller to access the Enumerable versions under certain conditions. I originally wrote the up as an issue, but was informed this would be the better venue. I''m
2012 Dec 04
2
[Rails 3.2] validation on create not working
class Place < ActiveRecord::Base validates :description, :presence => true validates :description, :uniqueness => {:case_sensitive => true, :on => :create } # also tried # validates :description, :uniqueness => {:case_sensitive => true }, :on => :create On update ( in form fields, updated label, same description ) params
2013 Jun 08
0
TaggedLogging fix
Hi guys, I''ve did a fix for TaggedLogging and also an improvement. Could you take a look and please tell me if I have to do something else, to have this fix merged? The pull request can be found here<https://github.com/rails/rails/pull/10829> . Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To
2013 Jul 22
1
Dependency upon raised error/exception messages.
Hey everyone, first of all, thank you for the tremendous work and effort on making Rails more awesome every day. I''ve brought up this "issue" on Github last Friday. [1] Steve Klabnik told me to bring the discussion here, as it''s more appropriate. The thing is, there is some amount of logic scattered around Rails (and its tests) that depends upon error/exception
2013 Jun 25
1
Casting gem usage in Rails 4/Ruby 2 vs. Rails 4 push for concern usage/Rails delegation
Just read about the Casting gem: https://discuss.gemnasium.com/t/casting-adding-behavior-to-objects-without-using-extend/34 https://github.com/saturnflyer/casting What are the Rails core team''s opinions about using Casting vs. ActiveSupport::Concern usage, Rails delegation, etc.? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Jun 26
1
unable to create ajax call in my rails app , any help ??
hi all , I am unable to create ajax call in my rails app , any help ?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit
2013 Sep 20
1
How to increase css and js file loading speed in rails 3 application
Hi all Right now i am working on rails 3. Is there any possible way to increase the css and js file loading speed .I tried bundle fu plugin. Please help me Regards Chandrashekar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2013 Feb 28
1
Make `ActionView::Helpers::InstanceTag#tag_id`, `ActionView::Helpers::InstanceTag#tag_id_with_index(index)` public?
As I asked in StackOverflow<http://stackoverflow.com/questions/15127658/hoe-to-get-tag-id-from-a-record-in-form-for/15129741> I think it would be helpful since we can dynamically create javascript code to control each input tag in form helper, what do you think? Or there has already been a solution? -- You received this message because you are subscribed to the Google Groups "Ruby
2013 Jun 08
1
ActiveSupport::Concern support Module#prepend?
I''ve monkey patched this behavior into a gem and I was wondering if core would be interested in a PR to add Module#prepend support to ActiveSupport#Concern. I''ll add tests of course. The code is here: https://github.com/dockyard/easy_auth/blob/master/lib/easy_auth/active_support/concern.rb My monkey patch work for what I''m trying to do but I suspect a better
2013 Oct 26
1
Feature: date grouping with proper time zone
I''m not sure if this fits in Rails'' core but since I spent sometime trying to solve a problem and couldn''t find any solution, I decided to share this method I''ve created to extend ActiveRecord::Relation. Here''s a Gist of it: https://gist.github.com/leods92/7164159 The problem is that when we try grouping timestamps by date, SQL returns unexpected