-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby client #2
Comments
Will come! ;) Now, let's see who makes it first! |
Stelian's got 6 hours of meetings today, so advantage is yours, @simicic! |
@simicic you have a small heads up, but the war ain't over! |
File.readlines($1).sample or # with error handling ;-)
File.readlines($1).sample if $1 |
I will leave that for @simicic . She probably wants to write a spec too ;-) |
haha, @janpaul believe it or not, that was my first thought, there should be some tests!! 😄 it seems you know me well... |
@simicic oh I absolutely believe it! I've known you a bit longer than today ;-) |
/me points at #4 |
@Stelian here you go ;-) File.readlines($1).sample if $1 && File.exists?($1) |
oh no! where are the tests @Stelian ?? 😄 |
I just ... /me walks away |
@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 |
I am sorry @janpaul but this does not guarantee randomness, foobar could be my name ;) |
@simicic pffft |
Reopening until we have a Ruby raffler with raffler with drama! |
I wonder if I should try... does Ruby have any functions that start with "array_" ? |
Merge domcode master into mine
As far as I've seen there is only a php and a python client but no ruby. Can we have a ruby client please?
The text was updated successfully, but these errors were encountered: