Jerry Davis | 21 Jan 21:15 2015
Picon

anyone tell me why I get these results for yield?

blocks.rb

#!/usr/bin/env ruby

class Breakfast
  def initialize
    <at> items = %w(bacon eggs hashbrowns toast jam)
  end

  def getitems
    <at> items.each {|x|
      if block_given?
        yield x
             else
        puts "without a yield, #{x}"
      end
         }
    end
end

class Brunch < Breakfast
  def initialize
    super
    <at> items << 'herring'
    <at> items << 'oysters'
    <at> items << 'lobster'
    <at> items << 'sausage'
    <at> items << 'ham'
  end
end

b = Brunch.new
b.getitems.each do |i|
  puts "#{i}"
end

$ blocks.rb
without a yield, bacon
without a yield, eggs
without a yield, hashbrowns
without a yield, toast
without a yield, jam
without a yield, herring
without a yield, oysters
without a yield, lobster
without a yield, sausage
without a yield, ham
bacon
eggs
hashbrowns
toast
jam
herring
oysters
lobster
sausage
ham

So my question is why do I get both the without a yield output as well as the normal yield output.

Yet if I change the blocks.rb Brunch class to include this, I ONLY get the yield output? As I expected the first time?

  def getitems
     super do |z|
       yield z if block_given?
     end
  end

Jerry

--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Scott Shea | 17 Jan 18:09 2015
Picon

Tuesday Night Meeting

It looks like at least part of the time will be devoted to hacking so if you have anything bothering you or would like some help with bring it along!

--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Scott Shea | 14 Jan 17:46 2015
Picon

Meeting next Tuesday; call for speakers

Is there anyone interested in speaking at the meeting this next Tuesday? Reply here or PM me/Brian Sam-Bodden.


--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
lha | 13 Jan 21:10 2015
Picon

ANNOUNCING a new release of Jackbox: Ruby Code Injectors

4. ANNOUNCING a new release of Jackbox.

In this release, we have finalized our definition of Injector 
Versioning.  We have included a separate Rspec file with examples on it, 
and have expanded the documentation to include a new section describing 
what it is and how it works. We hope you find it useful.

We have also started to set design limits to some of the other features 
for things which fall outside the domain of influence, and eliminated 
the binaries.

Finally, we have improved the ReadMe file to be hopefully, more 
didactically oriented and easier to follow.

Once again we would like to thank the people who have contacted us for 
their input on how to better explain what Injectors are, and how to 
improve the documentation, and please continue to send your comments and 
inquiries to the address on Github: 
https://github.com/LouHenryAlvarez/jackbox.

To use the product: gem install jackbox

Thanks again.

lha

--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Don Wilde | 5 Jan 14:33 2015
Picon

Issues with native Gem compilation

I've been setting up my new Brix NUC and ran afoul of some issues in
native compilation on 'nix-based systems. This seems to affect Macs as
well as Ubuntu.

I've worked with both 2.1.5 ruby and the new 2.2.0. I've been able to
improve it, but not eliminate it. The problem shows up when I try to
install recent Gems. For example, when I installed Rails 4.2, every
native-code gem crashed. By going back to rails 4.0.12, the only
crashes are SQLite3 and PostgreSQL.

The problem appears to be a recursive stack crash, and the evidence
from mkmf.log is full of print statements from the 'backwards' files,
rubyio.h and st.h. First I tried obeying the warnings and changed them
to backwards/ruby/io.h and st.h, but that did not cure the underlying
problem. This evening's task will be to examine the extconf.rb files
and the C file tree under /usr/local/include/ruby- 2.2.0 for the
crashing gems.

System: Core i7-4770R with 16GB
Stor: SATA and MSATA 120G SSD
OS: Ubunto 14.10, all updates installed
RUBY: 2.2.0, from source
GEM: stock from 2.2.0 install, 2.4.5
-- 
-- Don Wilde
ph: 512-461-9278 skype: donwilde1
e: dwilde1@...
"If you are creative and add value to the world, sleep well. You've earned it."

-- 
--

-- 
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby@...
To unsubscribe, send email to phoenix-ruby-unsubscribe@...

See http://rubyaz.org for group details

--- 
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Mike Moore | 2 Jan 02:13 2015
Picon

[ANN] MountainWest RubyConf 2015 CFP!

Hello and Happy New Year! I am very happy to announce that the MountainWest RubyConf 2015 Call for Proposals is now open!

MountainWest RubyConf 2015
March 9-10, 2015
Salt Lake City, UT

This will be MWRC's nineth year. I look back at where the Ruby community was when we started and the growth is amazing. I am very proud of all the good that has been put into the community by conference speakers and attendees. I hope you will consider adding to that goodness by submitting a proposal this year. I know it will be our best yet.

MWRC 2015 will be on a Monday and Tuesday this year. Why? We are collaborating with our friends at Ruby on Ales and providing two great Ruby conferences over the same weekend. Spend Thursday-Friday in beautiful Bend, OR, and then Monday-Tuesday in Salt Lake City!

Ruby on Ales 2015
March 5-6, 2015
Bend, OR

And of course MountainWest JavaScript is back for its sophomore year. It will be held Tuesday-Wednesday the week prior. You might consider attending both! Ruby and JavaScript are best buds after all. (And the MWJS CFP is also open.)

MountainWest JavaScript 2015
March 3-4, 2015
Salt Lake City, UT

Our selection process includes a blind evaluation by a group of advisors. This means that reviewers cannot see the speaker's name or other information and can only be influenced by the proposal's content. So make sure your proposal stands on its own. If you are unsure on how to write a great proposal or want someone to review, please contact me as I'm full of good advice!

~Mike

--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Don Wilde | 29 Dec 20:49 2014
Picon

multiple open dastabase connections in RoR 4.2

Hi, All -

I'm building a web system that will be spread out over multiple AWS
VM's. It will have multiple open MySQL databases as well as several
others such as Neo4j.

How can I configure Rails to open and utilize these connections, and
also to maintain the existing development/test/production behavior?

-- 
-- Don Wilde
ph: 512-461-9278 skype: donwilde1
e: dwilde1@...
"If you are creative and add value to the world, sleep well. You've earned it."

-- 
--

-- 
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby@...
To unsubscribe, send email to phoenix-ruby-unsubscribe@...

See http://rubyaz.org for group details

--- 
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Elio Grieco | 23 Dec 04:28 2014

State of the Art Ruby Deployment?

There was a presentation on this at RubyAZ a while back but I don’t remember all of it and it’s been quite a
few months so…

What is everybody using for deploying Ruby on Rails websites and why? e.g. Chef, Puppet, etc.?

I’ll be deploying this site on Amazon EC2 if that changes the recommendations.

Elio Grieco
602-688-4014

-- 
--

-- 
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby@...
To unsubscribe, send email to phoenix-ruby-unsubscribe@...

See http://rubyaz.org for group details

--- 
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Brian Sam-Bodden | 15 Dec 19:26 2014

ANNOUNCEMENT: December Meeting Cancelled

Folks, we did not have enough time to plan a holiday meeting/party so we'll resume our regularly scheduled programming in 2015. 

Have a great holiday and keep up your Ruby skills!

--

--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Bob | 11 Dec 04:00 2014

This months meetup

Hey all,
Please let me know the plans for this months meeting.  Brian mentioned meeting at a bar/social place.

I will NOT be in town next Tuesday, so if we need to host it at SocialWhirled, I need to know to make plans for somebody to be there.

BR

--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Lukas Ruebbelke | 10 Dec 13:01 2014
Picon

CROSSPOST: HolidayJS 2014

Hello everyone!

I wanted to personally invite you to HolidayJS 2014. It is a totally free event this Saturday at UAT with a ton of great swag, food and hacking. Check out the sponsors on the event website and it is obvious that Phoenix is getting a lot of community support from a lot of great companies! Lunch will be catered in by the Cornish Pasty Co and it is going to be excellent. 

Details
http://holidayjs.com/

Registration
http://holidayjs.eventbrite.com

Resources
http://onehungrymind.com/holidayjs-edition-resources-win-next-hackathon/

Also, I know that it is the holiday season and everyone has prior commitments and so if you can only make it half a day that is fine. Register for a ticket and then just let me know. We would love to have you!

Cheers!
Lukas Ruebbelke

--
--
You are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To post, send email to phoenix-ruby-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe, send email to phoenix-ruby-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
 
See http://rubyaz.org for group details

---
You received this message because you are subscribed to the Google Groups "Phoenix Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-ruby+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane