This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Gregory sends an email to c+town-hall-1.event-new with the subject "Availability for Town Hall Meeting #1" and a free-form-body | |
| Gregory receives an email that tells him he can send a request to c+town-hall-1.event-schedule-1 to | |
| see what the current optimized schedule is. (We may also want to add a feature that does this automatically | |
| once all participants have responded or on DATE, whichever happens first) | |
| Participants receive an email with Gregory's original content plus the following footer: | |
| --- | |
| This email was generated by newman-scheduler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| seacreature:newman$ cd examples/ | |
| seacreature:examples$ ruby live_test.rb | |
| Checking in... | |
| 5. 4. 3. 2. 1. | |
| I, [2012-03-08T15:39:53.443525 #6322] INFO -- REQUEST: {:from=>["test@mendicantuniversity.org"], :to=>["test+ping@mendicantuniversity.org"], :bcc=>nil, :subject=>nil, :reply_to=>nil} | |
| I, [2012-03-08T15:39:53.445468 #6322] INFO -- RESPONSE: {:from=>["test@mendicantuniversity.org"], :to=>["test@mendicantuniversity.org"], :bcc=>nil, :subject=>"pong", :reply_to=>nil} | |
| OK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I miss my Ruby friends, but I don't miss Twitter / HN / Reddit / etc. | |
| Here's how you can reach me: | |
| 1) You can hang out in the public #mendicant channel. General Ruby | |
| discussion or even OT discussion is welcome, as long as you keep in | |
| mind that it's meant to be a safe environment of Ruby learners | |
| from all different backgrounds. I'm <seacreature> there. | |
| 2) You can participate in the mendicant-research mailing list. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A | |
| def initialize(array) | |
| @data = array | |
| end | |
| def eql?(other) | |
| hash == other.hash | |
| end | |
| alias_method :==, :eql? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> def foo | |
| >> yield(1) | |
| >> end | |
| => nil | |
| >> foo { } | |
| => nil | |
| >> bar = ->() { } | |
| => #<Proc:0x00000100a70f98@(irb):5 (lambda)> | |
| >> foo(&bar) | |
| ArgumentError: wrong number of arguments (1 for 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This method does AMAZING STUFF, check it out | |
| # | |
| # [ great example here] | |
| # | |
| # :internal | |
| # | |
| # It does so by using NeverSayDie to deal with the | |
| # horrible segfaults library X causes. | |
| # | |
| # Here is a bunch of complicated stuff that'd scare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_relative "ping_pong" | |
| run Newman::Examples::PingPong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Newman | |
| Runner = Object.new | |
| class << Runner | |
| def from_file(filename, config) | |
| self.basepath = File.dirname(filename) | |
| self.config = config | |
| eval(File.read(filename), binding) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- a/lib/newman/application.rb | |
| +++ b/lib/newman/application.rb | |
| @@ -233,9 +233,11 @@ module Newman | |
| # this in a future Newman release. | |
| def trigger_callbacks(controller) | |
| + match_data = {} | |
| + | |
| matched_callbacks = callbacks.select do |e| | |
| filter = e[:filter] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Prawn | |
| class Drawing | |
| # should work as a drop-in, as all of this | |
| # stuff will proxy to Document | |
| include Prawn::Graphics | |
| def initialize(document) | |
| self.document = document | |
| end | |