Update Rakefile

Creating two more emails so that the 2/3 condition for "Old Friend" can be satisfied.
Jeff,

For old friends, you create 10 emails from original sender to recipient,
but only 6 replies (60% response rate). Here is my solution.

https://github.com/grcote/conspire-inspired/tree/modifying_rakefile

I added some code at the bottom of my test that pulls the emails and
responses. (
https://github.com/grcote/conspire-inspired/blob/modifying_rakefile/spec/conspire_inspire_spec.rb
)

It's highly likely I'm missing something, so please tell me.

Thanks,

Gerard


On Wed, Jul 23, 2014 at 9:10 PM, Jeff Dean <notifications@github.com> wrote:

> In Rakefile:
>
> > @@ -24,7 +24,7 @@ MakeCurrentFriends = ->(sender, recipient) {
> >  }
> >
> >  MakeOldFriends = ->(sender, recipient) {
> > -  [18, 20, 22, 24, 26, 28].each do |weeks_ago|
> > +  [18, 20, 22, 24, 26, 28, 30, 32].each do |weeks_ago|
> >      original = CreateEmail.(sender, recipient, 7*weeks_ago)
> >      CreateEmail.(recipient, sender, 7*(weeks_ago - 1), original)
>
> If I understand what's happening here, the MakeOldFriends code is saying:
>
>    - create an email / reply thread 18 weeks ago
>    - create an email / reply thread 20 weeks ago
>    - create an email / reply thread 22 weeks ago
>    - etc...
>
> If we pass Sue and Joe to the MakeOldFriends, it should satisfy the 'old
> friends' requirement, right?
>
>    - Sue has sent 3 or more emails to Joe (ever) - √ - 18, 20, 22, 24, 26
>    and 28 weeks ago
>    - Joe replied to 2 out of every 3 emails - √ - in this case, he would
>    have replied to 100% of the emails
>
> I feel like I'm missing something (or maybe the readme was really
> unclear). Have you posted a solution to it yet?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/gSchool/conspire-inspired/pull/1/files#r15328125>.
>



-- 
grcote@gmail.com
(cell) 303.956.1436