search for: valid_address

Displaying 6 results from an estimated 6 matches for "valid_address".

2005 Apr 27
1
Ruby Shipping
...4E3075AEEFF ups_user: username ups_password: password You can set as many default values as you would like in this file. require ''shipping'' ups = Shipping::UPS.new :zip => 97202, :sender_zip => 10001, :weight => 2 ups.price => 8.77 ups.valid_address? => false ups.city = "Portland" ups.valid_address? => true Alternately, you can instantiate the base class and then see both UPS and FedEx information. ship = Shipping::Base.new :zip => 97202, :state => "OR", :sender_zip => 10001, :weight =>...
2019 Feb 25
2
funnel shift, select, and poison
On 2/25/2019 12:28 PM, John Regehr via llvm-dev wrote: > Poison has to propagate through calls and loads/stores, or else > basically nothing works. Consider this: %v0 = call i32 @foo(poison) nounwind/readnone store i32 %v0, i32* %valid_address If we assume that poison propagates through calls, we could then optimize this to %v0 = poison store poison, i32* %valid_address If we somehow realized that foo is define i32 @foo(i32) { ret i32 0 } then the resulting code would be different. -Krzysztof
2019 Feb 25
2
funnel shift, select, and poison
On 2/25/2019 11:15 AM, John Regehr via llvm-dev wrote: > I'd just like to add that the general question here is "where does > poison stop propagating" and this question needs to be definitively > answered by this community. Does a call stop poison? Whatever the decision is may be contradicted after inlining, so what should such a call return? A superposition of poison
2005 Dec 17
1
How to use validation with aggregation (composed_of)?
At the risk of being banned for posting the same question twice, I thought I''d try once more with a question for the title rather than a statement (on the basis that perhaps questions get answered and statements ignored ;-) ) ActiveRecord supports composed_of for value objects which is fantastic but one thing that it doesn''t seem to support (or at least I am unable to
2012 May 24
0
Ruby on Rails Tutorial Chapter 6 RSpec tests failing
...e { @user.name = "a" * 51 } it { should_not be_valid } end describe "when email format is invalid" do it "should be invalid" do addresses = %w[user@foo, com user_at_foo.org example.user@foo. foo@bar_baz.com foo@bar+baz.com] addresses.each do |invalid_address| @user.email = invalid_address @user.should_not be_valid end end end describe "when email format is valid" do it "should be valid" do addresses = %w[user-aYmlcMoNXFo@public.gmane.org A_US-ER@f.b.org frst.lst-CfcPUM2A7yk@public.gmane.org a...
2006 Mar 14
8
email address parse
hi all how to parse such email string to a array: #-------------------------------------------- "joe black"<joe_1@joe_black.com> joe_2@joe_black.com, joe_3@joe_black.com #-------------------------------------------- seems emails from user input include various format. and i have to split them to a array. any idea? regards. -- Posted via http://www.ruby-forum.com/.