<idletask>
I am sure that the '!' has a meaning in force_colors!(value = true)
<ytti>
nothing, it's just method name
<Synthead>
ytti: yeah! there we go!
<ytti>
idiomatic use is to indicate that it modifies the object in-place
<Synthead>
thanks all!
n008f4g_ has quit [Ping timeout: 260 seconds]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti>
Synthead, answer to next question, less -R
<Synthead>
ytti: oh I already knew that :)
<Synthead>
;)
<ytti>
\o/
<idletask>
ytti: do I take it that a question mark at the end of a method (is that a method?) indicates that this returns a boolean?
trabulmonkee has quit [Quit: Connection closed for inactivity]
<ytti>
idletask, yeah
<ytti>
justbleed, also purely convention, just normal name factually
<ytti>
s/justbleed/idletask/
Rodya_ has joined #ruby
<ytti>
= is also just method name
<idletask>
I saw "defined?" a few times already
stannard has quit [Ping timeout: 244 seconds]
amargherio has quit [Remote host closed the connection]
idefine has joined #ruby
<idletask>
And it doesn't really return a boolean
<Ox0dea>
That's not a method.
<idletask>
nil or... Uhm
Coral has joined #ruby
<Ox0dea>
It's actually part of the syntax; it's a keyword.
<Ox0dea>
It has to be "special" to do what it does, of course.
Coral is now known as Guest7129
ur5us has quit [Remote host closed the connection]
KensoDev has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<idletask>
Looks like parsing ruby will be just as challenging as I imagined :p
<Ox0dea>
How come you don't want to use one of the established parsers?
agent_white has quit [Quit: bbl]
<Synthead>
idletask: a fun way to cast to boolean is !!value
<idletask>
Because none of them will work with SonarQube
<idletask>
What is more, it's a good opportunity to eat my own dog's food yet again
SenpaiSilver has quit [Ping timeout: 244 seconds]
<Synthead>
idletask: !value is the boolean antonym of value, (i.e. a = 1; !a === false), and !! is the antonym of the antonym (i.e. a = 1; !!a === true)
dcunit3d has joined #ruby
nogic has joined #ruby
<Ox0dea>
Synthead: That's a confusing use of `===`.
yatish27 has joined #ruby
nogic has quit [Max SendQ exceeded]
<Synthead>
Ox0dea: well, it's just a vessel to explain that true is true
<Synthead>
:)
<idletask>
Recall: I come from statically typed languages
Rodya_ has quit [Remote host closed the connection]
<Ox0dea>
Synthead: Ruby's === is not JavaScript's.
<idletask>
I have yet to figure out most parts of Ruby
Vile` has joined #ruby
nogic has joined #ruby
<Synthead>
ah, yeah
<Synthead>
well you know what I mean
nogic has quit [Max SendQ exceeded]
<Ox0dea>
I got lucky this time.
<Synthead>
!!youre_right
Tharbakim has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 248 seconds]
nogic has joined #ruby
sp4rrow has joined #ruby
Rodya_ has joined #ruby
<idletask>
The fact that you can even write 128.times has yet to fully penetrate my thick, statically typed skull :p
<ytti>
i don't think that implies dynamic typing
<ytti>
only implication is that integers are actually objects
eregi has quit [Ping timeout: 240 seconds]
nettoweb has quit [Ping timeout: 244 seconds]
mondok has quit [Ping timeout: 240 seconds]
<ytti>
stuff like this implies dynamic typing
<ytti>
[1] pry(main)> def moi(k);k+k;end
<ytti>
=> :moi
<ytti>
[2] pry(main)> moi(1);moi("k")
<ytti>
=> "kk"
DLSteve has joined #ruby
saneax is now known as saneax_AFK
Rodya_ has quit [Remote host closed the connection]
<ytti>
which i don't think is that useful at all
Rodya_ has joined #ruby
<idletask>
ytti: I have only worked with languages for which 128 and "friends" were primitives; so...
Uber|Dragon has joined #ruby
nogic has quit [Ping timeout: 246 seconds]
<idletask>
In Java by the way that would be IntStream.range(0, 128) to return an IntStream and operate on that :p
<ytti>
quite, but you could make static language where 128.times is possible
charliesome has joined #ruby
<idletask>
Well, I'll come to parse it eventually
<idletask>
I _do_ parse ObjectScript after all
<idletask>
So Ruby shouldn't be a problem
LoneHerm_ has joined #ruby
pawnbox has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
<Ox0dea>
Ah, we've been using different definitions of "parse".
<Ox0dea>
I thought you meant with a computer, but you've been talking about your eyes. :P
Guest5732 is now known as James
James is now known as Guest84697
blackmesa has quit [Ping timeout: 244 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
stannard has joined #ruby
<idletask>
I parse it with a computer... I have an entire SonarQube plugin for ObjectScript
<idletask>
Now I want to do it for Ruby
idefine has joined #ruby
kirillzh has joined #ruby
<ytti>
i thought computer too
<ytti>
and you would be right
<idletask>
And I need to understand the language to parse and tokenize it correcctly
<ytti>
parsing ruby isn't SUPER trivial
<ytti>
well at least say compared to python
<ytti>
but i'll still write program in ruby any day before python
<idletask>
Well, that's personal but I dislike python
pawnbox has quit [Ping timeout: 244 seconds]
<ytti>
i don't really dislike it, not like php
LoneHerm_ has quit [Ping timeout: 252 seconds]
<ytti>
but if i can choose, i'll always choose ruby
<ytti>
just feels more productive, more consistent
<havenwood>
roobienoobie: `ary` is unused and `a` is empty.
ljarvis has quit [Ping timeout: 268 seconds]
bogdanteleaga has quit [Ping timeout: 240 seconds]
ytti has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 250 seconds]
MyMind has quit [Ping timeout: 250 seconds]
paul98 has quit [Ping timeout: 250 seconds]
paul98 has joined #ruby
siaw_ has joined #ruby
<havenwood>
roobienoobie: ah
kriskropd has quit [Ping timeout: 250 seconds]
Dreamer3 has joined #ruby
tonyynot has quit [Ping timeout: 268 seconds]
Dreamer__ has quit [Ping timeout: 268 seconds]
marxarelli|afk has quit [Ping timeout: 250 seconds]
<roobienoobie>
i hate problems like that because i can't do anything about it
<roobienoobie>
either i know it or i don't
ledestin has quit [Ping timeout: 268 seconds]
zenlot6 has quit [Ping timeout: 268 seconds]
<roobienoobie>
and i don't know it
bakedb_ has joined #ruby
krz has joined #ruby
rcs has quit [Ping timeout: 250 seconds]
davidcelis has joined #ruby
davidcelis has joined #ruby
greenhat- has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
ljarvis has joined #ruby
jevs has joined #ruby
funnel has quit [Ping timeout: 268 seconds]
oz has quit [Ping timeout: 240 seconds]
nando293921 has quit [Ping timeout: 250 seconds]
greenhat_ has joined #ruby
funnel has joined #ruby
<havenwood>
roobienoobie: this problem is asking you to write very odd Ruby, and I can see why you'd have trouble seeing what it's asking
bakedb has quit [Ping timeout: 268 seconds]
djbkd has quit [Quit: My people need me...]
siaw has quit [Ping timeout: 250 seconds]
siaw_ is now known as siaw
moua has quit [Ping timeout: 276 seconds]
<roobienoobie>
yeah, a lot of the problems on rubeque are stuff that you'll never find in tutorials, but u never know what something like that could be useful
rcs has joined #ruby
moua has joined #ruby
canton7 has quit [Ping timeout: 250 seconds]
nando293921 has joined #ruby
deuxclique has joined #ruby
DefV has quit [Ping timeout: 268 seconds]
x77686d has quit [Quit: x77686d]
gypsydav15 has quit [Remote host closed the connection]
gypsydave5 has joined #ruby
oz has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
canton7 has joined #ruby
Brando753 has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
bougyman has quit [Ping timeout: 250 seconds]
rew has quit [Ping timeout: 268 seconds]
yorickpeterse has quit [Ping timeout: 268 seconds]
<Ox0dea>
I guess that's meant to indicate syntax errors.
Guest7129 has quit [Ping timeout: 240 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
Guest34101 has joined #ruby
<idletask>
Ox0dea: saved
ebbflowgo has joined #ruby
bedouin has quit [Excess Flood]
eregi has quit [Ping timeout: 260 seconds]
bedouin has joined #ruby
solars_ has quit [Ping timeout: 260 seconds]
jobewan has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<shevy>
red is the colour of love!
y2mq37 has joined #ruby
blackmesa has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
<Ox0dea>
idletask: eval.in uses Pygments, which is a pretty well-established lexer. It's general-purpose, though, so your efforts will give your parser that personal touch. :)
<idletask>
OK, I'll try and parse more basic stuff first :p
<Ox0dea>
Well, okay, but Proc and friends are pretty pervasive in idiomatic Ruby code.
<idletask>
My goal is to parse some basic files by the end of the weekend and have some basic checks done
Coral has joined #ruby
Coral is now known as Guest10419
jas02 has joined #ruby
tjbiddle has joined #ruby
<Ox0dea>
I do wish you all the best in that endeavor.
<idletask>
If I can already successfully parse and tokenize correctly something like "def foo(bar)\np bar\nend\nfoo(2)" and warn that "please don't use p in real code" I'll be happy :p I have yet to set up a test server for the plugin
<idletask>
Oh, I want to do that
<idletask>
I'm too entrenched in Java to even begin to _comprehend_ the mindset of seasoned developers in other languages
<idletask>
So, Ruby will be a good experience
<Ox0dea>
I'm sure you'll find that plenty of things transfer.
<idletask>
I want checks to be relevant to Ruby developers, not from my own perspetive
ramfjord has quit [Ping timeout: 268 seconds]
<Ox0dea>
idletask: I take it you don't want to just piggyback on RuboCop?
<idletask>
Well, there is the possibility that I could, if not _run_ RuboCop, at least use its results
<idletask>
But yeah, after all, the Java plugin reuses checkstyle, the python plugin uses results from pylint...
<idletask>
So if I can do that, certainly
<idletask>
I do need to parse a reasonable subset of the language first, though
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
ohaibbq has joined #ruby
shanemcd has joined #ruby
karapetyan has joined #ruby
mondok has joined #ruby
Rodya_ has joined #ruby
sudoubuntu has joined #ruby
kirillzh_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
<idletask>
Ox0dea: about that "no ascii" example above; my guess is that the first line sets ___ to 1.5
<Ox0dea>
idletask: That first line sets three variables. :P
<Ox0dea>
___ is being set to 115.
<idletask>
Yes, irb tells me that
Rodya_ has quit [Ping timeout: 240 seconds]
<idletask>
Hmm, what is + doing here?
kirillzh has joined #ruby
<Ox0dea>
Addition.
<idletask>
_ = 'whatever'=~/$/ is "true", but then what's the final value?
<Bish>
k is actually a unix timestamp and v is an Integer
<Bish>
so both integer
<apeiros>
so?
<adaedra>
doesn't really matter here.
<apeiros>
if you think it changes the problem scope, you should probably have mentioned it up front. if you don't think it changes the problem scope - why mention it?
<apeiros>
-probably
<Bish>
[{1457083440=>34}, {1457083500=>95},... this is actually as it looks like
<Bish>
well the problem is just that i have to call map multiple times
<Bish>
it works fine this way
trosborn has joined #ruby
<apeiros>
not in the problem description you have given us so far.
<Bish>
i told you the exact problem description, i have to call .map multiple times with the same block, which doesn't look try
<hanmac>
you need to call it multiple times because you do it on multiple objects ...
<adaedra>
Hop, reusable code.
<apeiros>
yeah, no. in the problem description so far there's precisely one .map call. and map yielding multiple times is still a single call to map.
marr has joined #ruby
<Bish>
apeiros: you got me wrong, maybe i wasn't specific enough
<Bish>
hanmac got me though :D
<apeiros>
if you mean you have multiple hashes to transform, then common techniques apply. like what adaedra said. or write a method. or whatever.
<adaedra>
that may be a nice fit for refinements :D
<apeiros>
yeah, or just have a proper class for that data with a .to_json method.
<hanmac>
Bish: i think you got an understanding problem you dont have one hash, you have a array of hashs with "[{1457083440=>34}, {1457083500=>95}]" if you want to transform it into another array of hashs, than you need to call map multiple times for each Hash inside the Array (+ one time for the Array itself)
<Bish>
yeah that's what i am doing, but the multiple writing of the same block bugs me
<Bish>
sure, i could write a method, but that task seems to small for a method
<adaedra>
nah.
<Bish>
i just wanted to know if there might be an existing method doing that transformation
<Bish>
i mean Hash.to_a is pretty similiar, but not the same though :(
<flughafen>
is there any reason by in the chrome console a $('div[id=foo.bar]') works, but not in capybara with find(...)?
schickung has quit [Quit: schickung]
trosborn has quit [Quit: trosborn]
trosborn has joined #ruby
schickung has joined #ruby
pandaant has joined #ruby
<Bish>
flughafen: wrong channel
<Bish>
also jquery sucks!
igam has quit [Ping timeout: 248 seconds]
<Bish>
oh now i get it
tjbiddle has quit [Quit: tjbiddle]
terlar has quit [Ping timeout: 246 seconds]
<Bish>
flughafen: i didn't say anything
trinaldi has joined #ruby
<flughafen>
bish? you said "oh now i get it?"
<Bish>
no, i didn't know what capybara is
<flughafen>
ok.
<Bish>
flughafen: my guess is that #find wants xpath, jquery selectors are not xpath
<Bish>
try //div[id=foobar]
<Bish>
"//div[id=foobar]"
hiljusti has joined #ruby
eurialo has quit [Ping timeout: 248 seconds]
jmdade has joined #ruby
<adaedra>
or find(css: '...')
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flughafen>
adaedra: it uses :css by default... ?
<adaedra>
I was completing Bish, I don't really know the default
trosborn has quit [Quit: trosborn]
<flughafen>
well the id has . in it, so i have to use [id=foo.bar] vs.div#foo.bar
trosborn has joined #ruby
mdw has joined #ruby
sundhell has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
trosborn has quit [Ping timeout: 244 seconds]
shanemcd has joined #ruby
<shevy>
this is why berlin can't have a nice flughafen
jeanlinux has quit [Remote host closed the connection]
<flughafen>
ah, it's saying the browser said it's not a valid css selector
rmulligan has joined #ruby
<flughafen>
ah, that was stupid, i fixed it. thanks shevy we can have nice things
Chagel has quit [Remote host closed the connection]
<shevy>
haha
<shevy>
that reminds me of the fragmentation of the www
gguggi has quit [Ping timeout: 276 seconds]
<shevy>
knowing html used to be enough at one point!
bubbys has joined #ruby
<flughafen>
i have a love / hate relationship with js, on one side gmail is nice, on the other i don't need 50 million lines of js to just show me some text on a page and track everything i do.
rmulligan has quit [Ping timeout: 252 seconds]
bubbys has quit [Ping timeout: 252 seconds]
Foren has quit [Remote host closed the connection]
<flughafen>
we should ban js from the web so i can go back to using lynx
n008f4g_ has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
bubbys has joined #ruby
johnmilton has joined #ruby
<apeiros>
flughafen: . in id's are escaped in css selectors via \
<apeiros>
#foo\.bar in a .css, or '#foo\\.bar' in .js
DJ_Spies has joined #ruby
but3k4 has joined #ruby
<flughafen>
apeiros: that didn't work either. i forgot to wrap the id in ''
<flughafen>
so once i did that, it worked in carpyburo
but3k4 has quit [Client Quit]
thevaliantx has joined #ruby
blackmesa has joined #ruby
but3k4 has joined #ruby
shanemcd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
DJ_Spies has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
toretore has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 244 seconds]
<shevy>
lol
<shevy>
the buro for the carps
LoneHerm_ has joined #ruby
baweaver has joined #ruby
Shidash has joined #ruby
leksster_ has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
gagrio has quit [Ping timeout: 250 seconds]
leksster has quit [Ping timeout: 268 seconds]
adgtl has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
RegulationD has joined #ruby
SCHAAP137 has joined #ruby
eregi has quit [Ping timeout: 250 seconds]
despai has joined #ruby
postmodern has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 240 seconds]
thevaliantx has quit [Quit: Leaving]
ldnunes has joined #ruby
DJ_Spies has joined #ruby
sandstrom has joined #ruby
bogn has joined #ruby
graffix222 has joined #ruby
duckpuppy has joined #ruby
Guest83262 is now known as James
James is now known as Guest54221
<flughafen>
yey!
igam has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
maner has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
chandlerbing has joined #ruby
shanemcd has quit [Remote host closed the connection]
<bogn>
Hello everybody, I need to answer the question whether our Rails app is statically or dynamically linking to unicorn, kgio, raindrops and sidekiq. And I must admit that I'm having a very hard time figuring that out. I have the very fuzzy notion that all ruby gems are dynamically loaded (maybe nokogiri with libxml is an exception). Can someone please shed some light on this.
<shevy>
what even is dynamically loading
<bogn>
the notion sentence should actually have been "are dynamically linked"
shanemcd has joined #ruby
adgtl has quit [Ping timeout: 248 seconds]
rmulligan has joined #ruby
codecop has quit [Remote host closed the connection]
<darix>
bogn: why do you care?
<bogn>
to prevent licensing issues
<darix>
unicorn seems dual licensed
<darix>
GPL-2.0+ and ruby
<darix>
and the ruby part is BSDish if i recall correctly
<darix>
so you should be fine
<bogn>
kgio 2.10.0 is LGPL-2.1+
<darix>
but other than that ...
<bogn>
raindrops 0.15.0 as well
<darix>
it doesnt matter if statically or dynamically linked
<darix>
what matters what happens at runtime
<darix>
and that point if you use a GPL-2.0 based library the whole thing becomes GPL-2.0
uglybandersnatch has joined #ruby
<darix>
LGPL actually was created to allow linking into commercial software
stardiviner has joined #ruby
danjam has quit [Ping timeout: 260 seconds]
<bogn>
that's my understanding as well, but that legal department said hopefully we're dynamically linking
<darix>
that notion is wrong to begin with
<darix>
dynamic linking or static linking doesnt matter at all in that case
IrishGringo has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
<bogn>
It's a legal department that has done this review quite a lot for C++ Software, might that be the issue why they care so much?
uglybandersnatch has quit [Ping timeout: 244 seconds]
<bogn>
in that scenario it seems to be an important question in their understanding
<darix>
after lunch
<darix>
still that assumption is wrong
chilerails has joined #ruby
mattwildig has joined #ruby
bubbys has quit [Ping timeout: 244 seconds]
zenspider has quit [Quit: bye]
chilerails has left #ruby [#ruby]
bubbys has joined #ruby
terlar has joined #ruby
pandaant has quit [Remote host closed the connection]
<ddv>
in the end you need to consult a lawyer who specializes in this sort of stuff
<bogn>
will ldd on unicorn help me find an answer
<bogn>
there's a legal department here and they are asking me that question
<bogn>
I can't answer it
<adaedra>
there's no linking when using ruby gems.
mattwildig has quit [Ping timeout: 252 seconds]
dgncn has joined #ruby
dc1 has quit [Ping timeout: 244 seconds]
zenspider has joined #ruby
saneax is now known as saneax_AFK
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
nerium has quit [Quit: nerium]
y0da has joined #ruby
bb010g has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
<bogn>
is this true for ruby processes like unicorn and sidekiq as well, that have native extensions?
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<adaedra>
they link to themselves and their own dependencies
douglascorrea has quit [Ping timeout: 248 seconds]
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
douglascorrea has joined #ruby
duckpuppy has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
godzillaenlacasa has joined #ruby
rmulligan has joined #ruby
DJ_Spies has quit [Ping timeout: 252 seconds]
<darix>
adaedra bogn: dlopen loads it into your programs space.
<darix>
that means the GPL restrictions apply again
ramfjord has quit [Ping timeout: 260 seconds]
<darix>
bogn: hosted app or do you ship the rails app?
synthroid has joined #ruby
<bogn>
we ship it
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
shanemcd has quit [Remote host closed the connection]
mattwildig has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
<bogn>
We ship it. darix where did you find out that ruby gems or specifically unicorn/sidekiq use dlopen to load into programs space
charliesome_ has joined #ruby
<darix>
bogn: that is a standard thing on linux/unix to load plugins
<darix>
and that's what native extensions are for linux
DJ_Spies has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
Sembei has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
Pisuke has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
myntcake has joined #ruby
myntcake_ has joined #ruby
myntcake_ has quit [Remote host closed the connection]
<bogn>
but using dlopen means dynamic linking, so that would be my answer then
<bogn>
or am I wrong
sandstrom has joined #ruby
s00pcan has joined #ruby
deuterium has joined #ruby
hgl has joined #ruby
Jardayn has joined #ruby
nerium has joined #ruby
groundnuty has left #ruby ["WeeChat 0.4.2"]
AlphaAtom has joined #ruby
candelabra has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<candelabra>
Hey all, is there any utility that I can run, which can output the lowest compatible version of ruby for a script?
<candelabra>
I've got a script I wrote a while back someone wants to use and I just wanted to be able to say "needs ruby >X.xx
AlphaAtom has quit [Client Quit]
<shevy>
if you'd have a .gemspec file for a given gem, you could specify that as a dependency including the version
nando293921 has joined #ruby
<shevy>
then it would be e. g. .required_ruby_version = '>= 2.3.0'
karapetyan has joined #ruby
<candelabra>
shevy: that's a good idea, but I was more looking for something that would read my script and see "oh this array method is only available in ruby version >2.1"
Xeago_ has joined #ruby
<shevy>
I see
karapetyan has quit [Remote host closed the connection]
<shevy>
don't know of a project that tries that, perhaps someone else here knows
s00pcan has quit [Remote host closed the connection]
karapetyan has joined #ruby
krz has joined #ruby
eregi has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
adgtl has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 244 seconds]
dmonster has quit [Ping timeout: 244 seconds]
Chagel has joined #ruby
<godzillaenlacasa>
could there be potential conflicts with RVM and Rbenv installed on the same machine?
<adaedra>
Why would you do that?
bweston92 has quit [Remote host closed the connection]
casadei has joined #ruby
<godzillaenlacasa>
no clue... inheritied machine
mdw has joined #ruby
skade has joined #ruby
eregi has quit [Ping timeout: 246 seconds]
<adaedra>
Remove them all and use chruby :p
<godzillaenlacasa>
@adaedra I'm not going to wipe it all clean... from what I can tell, some of the projects use rbenv while some use rvm
supplication has joined #ruby
s00pcan has joined #ruby
<adaedra>
What do you mean by "Use rbenv" and "Use RVM"
<godzillaenlacasa>
@adaedra I realized what I said right after I typed... I'm going to uninstall rvm.
Chagel has quit [Ping timeout: 276 seconds]
DmitryBochkarev has joined #ruby
baweaver has joined #ruby
juanfra has quit [Disconnected by services]
juanfra_ has joined #ruby
TheNet has joined #ruby
graffix222 has joined #ruby
<darix>
bogn: dynamic linking does *not* excempt you from the GPL
mondok has joined #ruby
<darix>
bogn: and again unicorn is dual licensed. not just GPL
mdw has quit [Quit: Sleeping Zzzzz]
<shevy>
godzillaenlacasa I think you have at least two different bin/ruby then right? And they must know the full location to these
leksster__ has joined #ruby
leksster_ has quit [Ping timeout: 244 seconds]
<bogn>
regarding unicorn they actually didn't ask the shared/dynaming linking question only whether we modified it
<godzillaenlacasa>
@shevy yes, i believe so... I'm getting gem conflicts so was looking into why
<bogn>
they asked the linking question regarding kgio, raindrobs and sidekiq all of which are LGPL
<bogn>
raindrobs = raindrops
<bogn>
kgio and raindrops are dependencies of unicorn
karapetyan has quit [Remote host closed the connection]
Dreeg has joined #ruby
Chagel has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<darix>
bogn: LGPL is not a problem
<darix>
bogn: if you use GPL-ed libraries the whole program becomes GPL
RegulationD has joined #ruby
<bogn>
I don't think it'll make sense for me to answer that
<bogn>
the part that is "work that uses the Library" and that this is out of scope of the license
aryaching has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<kgirthofer>
does anyone have any experience setting up gem in a box? I just launched a new centos box and got to the point of rackup - but my connection is refused
Mio-chan has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
<darix>
bogn: real fun starts when you need a GPL-2.0 and GPL-3.0 licensed library e.g. :p
arbys has joined #ruby
arbys has quit [Max SendQ exceeded]
<darix>
bogn: if your app is threadsafe you can use puma
Rodya_ has joined #ruby
<darix>
which is BSD-3-Clause
arbys has joined #ruby
Mio-chan has joined #ruby
RTG` has quit [Ping timeout: 246 seconds]
Chagel has quit [Quit: Lost terminal]
<bogn>
as per the comment below that SO answer I will also include the source code of kgio, raindrops and sidekiq in the distribution. It is referring to
<bogn>
When you distribute the library with your application (or on its own), you need to include source code for the library. But if your application instead requires users to obtain the library on their own, you don't need to provide source code for the library.
InternetFriend has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
crystal77 has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
<darix>
bogn: not the issue. you load a GPL-ed library into the app you sell. therefor the app is under GPL -> therefor an user can ask you for the complete source of your app.
<darix>
anyway
<darix>
good luck with that. back to work
<bogn>
as I'm intending to use bundle install --deployment to include all gems in vendor/bundle I'm distributing the library and thus I will include their source code
RTG` has joined #ruby
<darix>
bogn: follow the recent discussions on ZFS and ubuntu
Xeago_ has quit [Remote host closed the connection]
sudoubuntu has joined #ruby
ramfjord has joined #ruby
InternetFriend has joined #ruby
babblebre has joined #ruby
bluOxigen has joined #ruby
konsolebox has joined #ruby
Amnez777 has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
danjam has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
Xeago has joined #ruby
gr0g_ has joined #ruby
nogic has joined #ruby
gr0g_ has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 252 seconds]
icey has quit [Remote host closed the connection]
deuterium has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
icey has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
<Bish>
when giving a proc as a block
<Bish>
why do i still have to prefix it with a & i thought that is for converting TO proc
norc has joined #ruby
<Bish>
or is it to tell the method "this is the block not a parameter"
mostlybadfly has quit [Quit: Connection closed for inactivity]
SeerKan has joined #ruby
<SeerKan>
hi guys, anybody available to help me with a very strange problem ? I have an ruby 1.8.7 app setup with nginx+passenger (latest) that simply refuses to serve the application and can't get any error out of passenger. Also the app seems ok, if I start it with thin it works fine, also it works on an old server where there is nginx+unicorn used.
<havenwood>
Bish: yup, convert to proc (if neeeded) and use as block
<SeerKan>
Any suggestion would be very appreciated, I'm kind of stuck...
<SeerKan>
the general nginx+passenger setup is ok, it's done using automation with the same playbook done on several other servers/projects and all work without any problems (including an old app also using 1.8.7)
blackmesa has joined #ruby
sandstrom has joined #ruby
arbys has quit [Quit: Leaving]
anisha_ has joined #ruby
trinaldi has joined #ruby
<ddv>
SeerKan: 1.8.7 ?
<SeerKan>
yes ddv... unfortunately it's an old/huge project that needs time to be rewritten
anisha has quit [Ping timeout: 250 seconds]
Yiota has joined #ruby
Yiota has joined #ruby
<n1colas>
Hello
chouhoul_ has joined #ruby
anisha_ has quit [Read error: Connection reset by peer]
anisha has joined #ruby
<shevy>
upgrade to 2.3.0!
rdavila has joined #ruby
sts_ has left #ruby [#ruby]
evidex has quit [Ping timeout: 260 seconds]
nando293921 has quit [Ping timeout: 252 seconds]
whippythellama has joined #ruby
Rodya_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
hxegon has joined #ruby
konsolebox has quit [Quit: Leaving]
<SeerKan>
yeah shevy I know... but that really doesn't solve my issue...
Xeago has joined #ruby
stannard has joined #ruby
Xeago has joined #ruby
ropeney has joined #ruby
skweek has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Ping timeout: 248 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
Xeago_ has joined #ruby
Guest78161 is now known as James
polishdub has joined #ruby
James is now known as Guest90486
diegoviola has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
adgtl has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
codecop_ has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop_ has quit [Remote host closed the connection]
jottr has joined #ruby
whippythellama has quit [Ping timeout: 248 seconds]
idefine_ has joined #ruby
Uber|Dragon has joined #ruby
krobzaur has quit [Quit: WeeChat 0.4.2]
duckpuppy has quit [Ping timeout: 264 seconds]
harly has quit [Read error: Connection reset by peer]
idefine has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
sudoubuntu has joined #ruby
douglascorrea has quit []
<olli_>
I've question about ubuntu & rake. There're two 'rake' scripts in PATH. One is generated by ruby-gems and is executed 1st (and fails), the second is from ubuntu package (and is working). "gem list|grep rake" shows two installed versions: 10.3.2 (/usr/share/rubygems-integration/all) and 10.1.0,default (/usr/lib/ruby/gems/2.1.0) , both ubuntu /usr/bin/rake and /usr/lib/ruby/gems/2.1.0/gems/rake-10.1.0/bin/rake show --version "10.3.2" (fun
<olli_>
ny,yep?) . So what should I do w/ this mess? Deletion of one of conflicting 'rake' in PATH doesn't help. Though both rake binaries executed w/ full path prefix ( /usr/bin/rake and /usr/lib/ruby/gems/2.1.0/gems/rake-10.1.0/bin/rake) work okay with tests I execute via Rakefile .
sudoubuntu has quit [Client Quit]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
schickung has quit [Quit: schickung]
jgpawletko has left #ruby [#ruby]
terlar has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
Timberwo|f has joined #ruby
sudoubuntu has joined #ruby
siaw has joined #ruby
thevaliantx has joined #ruby
sudoubuntu has quit [Client Quit]
Dragooon has quit [Ping timeout: 260 seconds]
<olli_>
anyone?
LoneHermit has quit [Ping timeout: 252 seconds]
<shevy>
dunno, I never got into rake
<morfin>
too bad
eregi has joined #ruby
<morfin>
i use rvm and no packages
whippythellama has joined #ruby
<morfin>
btw i have a question about rake - is there way to handle exceptions properly?
Rodya_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
tuelz has joined #ruby
dhollinger has joined #ruby
<morfin>
ah nvm, seems like same way as regular exceptions handled
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<tuelz>
hmm, I'm expect flat_map(&:id) and flatten.map(&:id) to do the same thing, but the former throws an error no id on array when ran on `[[#<Category id: 94187, ...>]]`
<tuelz>
is that expected behavior?
eregi has quit [Ping timeout: 252 seconds]
<tuelz>
maybe because activerecord does weird things on top of arrays?
idefine has quit [Ping timeout: 248 seconds]
mondok has quit [Ping timeout: 246 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<aegis3121>
#flat_map calls the block on each element of the enum. In your case, the elements of your enum are arrays.
Nyammy_Work has quit [Read error: Connection reset by peer]
<tuelz>
ahh, gotcha
SeerKan has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mallu has joined #ruby
howdoi has joined #ruby
The_Phoenix has joined #ruby
crystal77 has joined #ruby
<havenwood>
tuelz: `flat_map(&)` is like `map(&).flatten(1)`
dhollinger has quit [Ping timeout: 264 seconds]
idefine has joined #ruby
<aegis3121>
That's a better explanation, thanks havenwood
mdw has joined #ruby
blandflakes has joined #ruby
niksrc has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tuelz>
thanks
Xeago has joined #ruby
dhollinger has joined #ruby
evidex has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
ferr has quit [Quit: WeeChat 1.4]
nogic has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdw has quit [Quit: Sleeping Zzzzz]
<morfin>
>> raise "somestring"
jas02 has quit [Quit: jas02]
<ruby[bot]>
morfin: # => somestring (RuntimeError) ...check link for more (https://eval.in/530492)
<ruby-lang448>
Has anyone used the treat gem before?
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
crowell has joined #ruby
anisha has quit [Quit: Leaving]
shinnya has joined #ruby
rmulligan has joined #ruby
Xeago has quit [Remote host closed the connection]
<tuelz>
I've never used it before, but you'll get much better results stating your problem rather than asking if anyone has ever used X
d0nn1e has quit [Ping timeout: 246 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
ta_ has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
Hammy_Work has joined #ruby
terlar has joined #ruby
d0nn1e has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
dopamean_ has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
thevaliantx has quit [Quit: Leaving]
pdoherty has joined #ruby
<binaryplease>
I would like to create a text-based multimessenger because finch sucks. Anyone has any tips on how to start interacting with libpurple? I found the gems purple_ruby and ruborple but thet seem to be unmaintened. Lat commit 5 years ago.
ta_ has quit [Ping timeout: 248 seconds]
<binaryplease>
any tips on ruby + libpurple (or maybe telepathy?)
mondok has joined #ruby
olli_ has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
stardiviner has joined #ruby
shanemcd has joined #ruby
<adaedra>
I already read that somewhere
Xeago has joined #ruby
eregi has joined #ruby
schickung has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
Guest90486 is now known as James
James is now known as Guest18371
DaniG2k has quit [Quit: leaving]
voobscout has joined #ruby
shanemcd has quit [Ping timeout: 264 seconds]
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
marr has quit [Ping timeout: 260 seconds]
<ruby-lang448>
@tuelz My problem is that I can't download some models necessary for the gem so my question is quite literally "Has anyone use treat before" because I want to know if anyone would happen to have those models on their local machine
mustmodify has joined #ruby
codecop has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
ramfjord has joined #ruby
polishdub has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
<mustmodify>
We're looking at moving from Louisiana. Probably the Carolinas or California. Or if it's trump v clinton, some other country. Anyway, wondering where I can get data about concentrations of Ruby devs. Louisiana has few nerds and I'd love to be in a stronger dev / nerd community.
Guest34101 has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
<mustmodify>
I was thinking there might be geodata from rubygems.org.
<mustmodify>
or I could just look for ruby groups in that area, but it's hard to know about strength of community.
<Gasher>
I'm looking at it, it seems to me that it wants to achieve a similar goal
<Gasher>
I'm not sure if the way we do it will be similar
<Gasher>
Snappy does the same thing
codecop has joined #ruby
<Gasher>
Canar; oh yes ;) it varies from distro to distro slightly tho
f4cl3y has quit [Ping timeout: 268 seconds]
<Gasher>
I have that crazy goal of creating a distro, and I'm creating the package manager to be suited for it, but I think everyone will be able to use it in other places too
<manveru>
well, good luck :)
roobienoobie has joined #ruby
<Gasher>
with Plum, you'll be able to just paste a folder with some software, append a bit of YAML and you're good to go, the app is fully functional
<Gasher>
thanks manveru
snakeryslug has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
fullofca_ has joined #ruby
agit0 has joined #ruby
marr has joined #ruby
wtrocki has joined #ruby
roobienoobie has quit [Client Quit]
<wtrocki>
hi quick question
<wtrocki>
def serverConnections=Array.new;
<wtrocki>
serverConnections.push(:name => ipaddr,
<wtrocki>
:user => defaultUser);
djbkd has joined #ruby
<Ox0dea>
That's a paddlin'.
<wtrocki>
what is the name of the think placed as push argument?
<wtrocki>
new to ruby need to do something in chef quickly
<Ox0dea>
That's essentially an implicit Hash.
<manveru>
Hash
<wtrocki>
oh..
fullofcaffeine has quit [Ping timeout: 250 seconds]
<wtrocki>
is there implicit array
<wtrocki>
instead of defining Array.new
<wtrocki>
?
<wtrocki>
thanks a lot
<manveru>
[]
<wtrocki>
now I now how to google it
<wtrocki>
+10000 for manveru
stannard has quit [Remote host closed the connection]
Lucky_ABA has quit [Read error: Connection reset by peer]
Yiota has quit [Remote host closed the connection]
diego4 has joined #ruby
diego4 has quit [Changing host]
diego4 has joined #ruby
diego4 is now known as diegoviola
Yiota has joined #ruby
<manveru>
snakeryslug: `bundle exec ruby <file>`
harryh has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
diego3 has quit [Ping timeout: 250 seconds]
<snakeryslug>
manveru: unfortunately that results in the same error
rmulligan has joined #ruby
<drbrain>
snakeryslug: you need to require 'google_maps_api/distance_matrix'
n1colas has joined #ruby
jottr_ has joined #ruby
Limix has joined #ruby
<snakeryslug>
drbrain: it said it can't load such a file.
<Ox0dea>
snakeryslug: That should be 'google_maps_api/directions'.
<Ox0dea>
You linked to the wrong GitHub repository, I think.
<drbrain>
snakeryslug: ↑
<snakeryslug>
oh crap. that would make it hard to help me lol
<snakeryslug>
sorry
jottr has quit [Ping timeout: 276 seconds]
<drbrain>
no worries
<drbrain>
I didn't look at your Gemfile, so I didn't notice the discrepancy
shanemcd has quit [Remote host closed the connection]
treaki has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
juanfra_ has quit [Quit: juanfra_]
nettoweb has joined #ruby
<snakeryslug>
how did y'all figure that out? i'm getting another strange error, but the googlemapsapi object is initialized.
elifoster has joined #ruby
ur5us has quit [Remote host closed the connection]
<Ox0dea>
eam: Surely you don't *all* of these should be coercible to integers? https://eval.in/530700
<Ox0dea>
I accidentally a "think".
justbleed has joined #ruby
juanfra has joined #ruby
<eam>
hm, why not?
idefine has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ is now known as jottr
<drbrain>
eam: what does {} + 1 equal?
shanemcd has joined #ruby
sandstrom has joined #ruby
<drbrain>
or File.stat('/') + 1?
<eam>
one, of course
zast has quit [Remote host closed the connection]
<drbrain>
why?
justbleed is now known as TomPeed
roshanavand has joined #ruby
<adaedra>
Did I step into #javascript?
idefine has quit [Ping timeout: 244 seconds]
<eam>
drbrain: why not?
<drbrain>
because {} doesn't have an obvious numeric value
<eam>
size is kinda obvious, no?
<eam>
anyway I'm not suggesting any of those should - only suggesting []
<drbrain>
{}.size + 1 makes sense
<drbrain>
but not {} + 1
<drbrain>
the types aren't compatible
<eam>
but I did entertain Ox0dea's idea with "why not" because it's a fun discussion
<drbrain>
oh, it is
Limix has quit [Quit: Limix]
<eam>
drbrain: I guess it depends if you think there's an inherent numeric trait, it's a bit odd to reason that [] has an inherent size but {} does not
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
Rodya_ has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
dfockler has quit [Ping timeout: 246 seconds]
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
adgtl has quit [Remote host closed the connection]
spider-mario has joined #ruby
stannard has quit [Remote host closed the connection]
<flughafen_>
@list.each { |x| puts "Index: #{@list.index(x)}: #{x.to_s}" } <- this is producing some weird results, the @list.index is printing after x.to_s
tftp has quit [Ping timeout: 244 seconds]
<flughafen_>
or at least I wouldn't expect it to work that way
InternetFriend has quit [Ping timeout: 248 seconds]
stannard has joined #ruby
Guest34101 has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
fostertheweb has joined #ruby
<adaedra>
flughafen_: unrelated, but you can use each_with_index and not have to refetch the index at each iteration.
chocoelho has joined #ruby
<flughafen_>
thanks adaedra
Guest43896 is now known as James
TomyWork has quit [Ping timeout: 244 seconds]
neohunter has joined #ruby
James is now known as Guest49045
nibbo has joined #ruby
neohunter has quit [Max SendQ exceeded]
mfaeh has quit []
PlasmaStar has joined #ruby
pdoherty has joined #ruby
ur5us has joined #ruby
skweek has joined #ruby
graydot has joined #ruby
idefine has joined #ruby
Xeago has joined #ruby
rodfersou has quit [Quit: leaving]
supplication has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
the_drow has joined #ruby
kirun has joined #ruby
Sucks has quit [Quit: No Ping reply in 180 seconds.]
sauvin has quit [Remote host closed the connection]
fullofca_ has quit [Remote host closed the connection]
lvn has joined #ruby
fullofcaffeine has joined #ruby
IrishGringo has quit [Ping timeout: 248 seconds]
andikr has quit [Remote host closed the connection]
mdw has joined #ruby
niksrc has quit [Quit: Leaving]
baweaver has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
rmulligan has joined #ruby
wtrocki has quit [Ping timeout: 260 seconds]
y0da is now known as but3k4
SCHAAP137 has joined #ruby
mattwildig has quit [Remote host closed the connection]
axl_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rmulligan has quit [Ping timeout: 252 seconds]
fullofca_ has joined #ruby
eregi has joined #ruby
Cohedrin has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
eregi_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
eregi has quit [Ping timeout: 276 seconds]
FooMunki has joined #ruby
kirillzh has joined #ruby
TomyLobo has joined #ruby
fullofca_ has quit [Remote host closed the connection]
Dimik has joined #ruby
ASTP001 has joined #ruby
ASTP001 has joined #ruby
ASTP001 has quit [Client Quit]
sneakerhax has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
Xeago has quit [Remote host closed the connection]
e4xit has joined #ruby
Authenticator has joined #ruby
ASTP001 has joined #ruby
idefine has quit [Remote host closed the connection]
ASTP001 has left #ruby [#ruby]
idefine has joined #ruby
<Authenticator>
Does anyone here have experience with Keyczar? I'm trying to replicate an older program either manually (parse Keyczar format, handle raw RSA ...) or using the keyczar_ruby library.
<ruby[bot]>
flughafen_: # => /tmp/execpad-8b10ec82f134/source-8b10ec82f134:2: class/module name must be CONSTANT ...check link for more (https://eval.in/530733)
eurialo has quit [Ping timeout: 240 seconds]
dgncn has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
BtcBen has joined #ruby
Limix has joined #ruby
hxegon has joined #ruby
<Ox0dea>
eam: That was sort of the point I meant to make; it'd be "surprising" for Array to coerce by way of #size if those semantics weren't applied to everything else in that list.
snakeryslug has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
skade has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
hxegon has quit [Ping timeout: 252 seconds]
hxegon has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
bitemyapp has joined #ruby
<bitemyapp>
I'm using standalone migrations and can't get it to generate a structure.sql that doesn't have the "SQL_ASCII" encoding. I feel like I'm doing something wrong as I've set the encoding to unicode or utf8 in my database configs and that changes nothing. What do I need to do?
<flughafen_>
Ox0dea: i'll try that. i'm having an issue where I call to_s from one object that calls another to_s , while the data prints out is correct, it's printing in the wrong order.
baweaver has quit [Remote host closed the connection]
<Ox0dea>
flughafen_: Might just be something weird with your environment?
uglybandersnatch has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
<Ox0dea>
A stray '\r' returning the cursor to the beginning of the line or some such.
<flughafen_>
Ox0dea: that fixed it. i removed the puts and just did "return foobar"
crowell has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
graffix has joined #ruby
schickung has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
mustmodify has left #ruby [#ruby]
casadei has quit [Remote host closed the connection]
jmignault has quit [Ping timeout: 276 seconds]
Shaboum has joined #ruby
mdw has joined #ruby
robbyoconnor has quit [Client Quit]
stannard has joined #ruby
dfockler has quit [Quit: Leaving]
rmulligan has joined #ruby
scripore has joined #ruby
<Ox0dea>
idletask: Ruby really does have an ungodly amount of syntax.
<Ox0dea>
You'll lose far less hair by interfacing with one of the established parsers.
nennes has joined #ruby
<Ox0dea>
Ripper, zenspider/ruby_parser, and whitequark/parser will all happily spit out S-expressions representing a given Ruby AST, and those'll be much more pleasant to work with.
nerium has quit [Quit: nerium]
Sucks has quit [Read error: Connection reset by peer]
rikkipitt has quit [Remote host closed the connection]
glcx has joined #ruby
glcx has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rmulligan has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
uglybandersnatch has quit [Ping timeout: 264 seconds]
glcx has quit [Client Quit]
baweaver has joined #ruby
glcx has joined #ruby
baweaver has quit [Remote host closed the connection]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
failshell has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
infernix has joined #ruby
rikkipitt has joined #ruby
adac has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
bricker has quit [Client Quit]
FernandoBasso has joined #ruby
crystal77 has joined #ruby
johnmilton has quit [Quit: Namaste]
johnmilton has joined #ruby
Guest71661 is now known as James
shanemcd has quit [Ping timeout: 264 seconds]
James is now known as Guest89468
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
sgambino has joined #ruby
shanemcd has joined #ruby
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
johnmilton has joined #ruby
mdw has quit [Ping timeout: 250 seconds]
x77686d has quit [Quit: x77686d]
zapata has quit [Quit: WeeChat 1.4]
mary5030 has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
devbug_ has joined #ruby
deuxclique has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
despai has joined #ruby
zapata has joined #ruby
rmulligan has joined #ruby
kt2 has joined #ruby
kt2 has quit [Client Quit]
codecop has quit [Remote host closed the connection]
Mio-chan_ has joined #ruby
Xeago has joined #ruby
Mio-chan has quit [Read error: Connection reset by peer]
Mio-chan_ has quit [Changing host]
Mio-chan_ has joined #ruby
croberts has joined #ruby
Mio-chan_ is now known as Mio-chan
n00bdev has quit []
cdg has joined #ruby
Xeago has quit [Remote host closed the connection]
phatypus has joined #ruby
Xeago has joined #ruby
uglybandersnatch has joined #ruby
shanemcd has quit [Ping timeout: 248 seconds]
rikkipitt has quit [Remote host closed the connection]
trosborn has joined #ruby
johnmilton has quit [Quit: Namaste]
spuk has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
RTG` has quit [Ping timeout: 276 seconds]
phatypus has quit [Client Quit]
diegoviola has joined #ruby
shanemcd has joined #ruby
baweaver has joined #ruby
evidex has joined #ruby
jxs_ has joined #ruby
swills has quit [Ping timeout: 246 seconds]
RTG` has joined #ruby
gizless has joined #ruby
Limix has quit [Quit: Limix]
sp4rrow has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Xeago has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 244 seconds]
HalcyonicStorm has joined #ruby
rikkipitt has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
evidex has quit [Quit: Lost terminal]
evenix has quit [Remote host closed the connection]
shanemcd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
trosborn has quit [Quit: trosborn]
davedev24 has joined #ruby
x77686d has joined #ruby
failshell has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
davedev24 has quit [Client Quit]
gizmore has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
gizmore has quit [Client Quit]
nogic has joined #ruby
baweaver has joined #ruby
TomyLobo has quit [Ping timeout: 248 seconds]
Limix has joined #ruby
djcp has quit [Ping timeout: 250 seconds]
devbug has quit [Ping timeout: 276 seconds]
<Limix>
Hi, if running a rake task every 3 minutes, is it better to use something like sidekiq or just schedule a cron job?
eurialo has joined #ruby
gizless has quit [Ping timeout: 276 seconds]
DmitryBochkarev has joined #ruby
lemur has joined #ruby
x77686d has quit [Quit: x77686d]
dgncn has quit [Quit: Leaving]
<havenwood>
SHA-NaN
<havenwood>
oops, MT
fullofcaffeine has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
bedouin has quit [Excess Flood]
diegoviola has quit [Quit: WeeChat 1.4]
bluOxigen_ has joined #ruby
bedouin has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
spuk has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
tomaz_b has quit [Quit: Leaving]
devbug has joined #ruby
firstdayonthejob has joined #ruby
sevenfourk has quit [Quit: Connection closed for inactivity]
nogic has quit [Ping timeout: 264 seconds]
Snowy has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nogic has joined #ruby
diegoviola has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
_ht has quit [Quit: Konversation terminated!]
fullofcaffeine has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
techietrash has quit [Max SendQ exceeded]
techietrash has joined #ruby
eregi_ has quit [Ping timeout: 244 seconds]
eregi has joined #ruby
Rodya_ has joined #ruby
jeanlinux has quit [Remote host closed the connection]
aswen has quit [Quit: WeeChat 1.4]
jeanlinux has joined #ruby
terlar has joined #ruby
terlar has quit [Client Quit]
rmulligan has joined #ruby
Guest89468 is now known as James
y2mq37 has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
mdw has quit [Ping timeout: 264 seconds]
James is now known as Guest4892
Snowy has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
InternetFriend has quit [Ping timeout: 248 seconds]
baweaver has joined #ruby
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
norc has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
nogic has joined #ruby
phatypus has joined #ruby
Guest34101 has joined #ruby
norc has joined #ruby
baweaver has quit [Remote host closed the connection]
haylon has quit [Quit: WeeChat 1.4]
workmad3 has quit [Ping timeout: 264 seconds]
terlar has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
nogic has quit [Ping timeout: 260 seconds]
flughafen_ has quit [Ping timeout: 246 seconds]
devbug has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
Kilo`byte has joined #ruby
<Kilo`byte>
evening, got a question regarding the readline api.
jenrzzz has quit [Ping timeout: 240 seconds]
<Kilo`byte>
how can i maintain different instances of readline at the same time. In this case i have multiple file descriptors at the same time each of which should have a different history on it's readline. How would be the best approach to that
<Kilo`byte>
the readline api in the standard lib doesn't seem to support that
shellie_ has joined #ruby
dhollinger has quit [Ping timeout: 276 seconds]
ramortegui has quit [Quit: Ex-Chat]
jeanlinux has quit [Remote host closed the connection]