Git Product home page Git Product logo

Comments (19)

simicic avatar simicic commented on July 29, 2024

Will come! ;) Now, let's see who makes it first!

from rafflers.

rosstuck avatar rosstuck commented on July 29, 2024

popcorn

Stelian's got 6 hours of meetings today, so advantage is yours, @simicic!

from rafflers.

Stelian avatar Stelian commented on July 29, 2024

@simicic you have a small heads up, but the war ain't over!

from rafflers.

simicic avatar simicic commented on July 29, 2024

haha, then the good news can be that I work as well, maybe someone else can come in!

from rafflers.

rosstuck avatar rosstuck commented on July 29, 2024

There's no rule that says we can't have multiple rafflers in the same language. That would even be fun.

There's also no rule that says a dog can't play basketball.
air bud

from rafflers.

janpaul avatar janpaul commented on July 29, 2024
File.readlines($1).sample

or

# with error handling ;-)
File.readlines($1).sample if $1

from rafflers.

rosstuck avatar rosstuck commented on July 29, 2024

whaaa

Seriously though, PR? :) And then no more GIFs for me today, I promise.

from rafflers.

janpaul avatar janpaul commented on July 29, 2024

I will leave that for @simicic . She probably wants to write a spec too ;-)

from rafflers.

simicic avatar simicic commented on July 29, 2024

haha, @janpaul believe it or not, that was my first thought, there should be some tests!! 😄 it seems you know me well...

from rafflers.

janpaul avatar janpaul commented on July 29, 2024

@simicic oh I absolutely believe it! I've known you a bit longer than today ;-)

from rafflers.

Stelian avatar Stelian commented on July 29, 2024

/me points at #4

from rafflers.

janpaul avatar janpaul commented on July 29, 2024

@Stelian here you go ;-)

File.readlines($1).sample if $1 && File.exists?($1)

from rafflers.

simicic avatar simicic commented on July 29, 2024

oh no! where are the tests @Stelian ?? 😄

from rafflers.

Stelian avatar Stelian commented on July 29, 2024

I just ... /me walks away

from rafflers.

janpaul avatar janpaul commented on July 29, 2024

@simicic another shorty for you then

describe Raffle do
  let(:raffle) { Raffle.new } 
  it 'should be something sensible' do
    allow(File).to receive(:readlines).and_return %w(foobar)
    expect(raffle.run).to eq 'foobar'
  end
end

from rafflers.

simicic avatar simicic commented on July 29, 2024

I am sorry @janpaul but this does not guarantee randomness, foobar could be my name ;)
you forgot one should have_received :sample ;)

from rafflers.

janpaul avatar janpaul commented on July 29, 2024

@simicic pffft

from rafflers.

rosstuck avatar rosstuck commented on July 29, 2024

Reopening until we have a Ruby raffler with raffler with drama!

from rafflers.

ramondelafuente avatar ramondelafuente commented on July 29, 2024

I wonder if I should try... does Ruby have any functions that start with "array_" ?

from rafflers.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.