<beauby>
Hi there, I'm building a rails app that pulls some other rails project from git to tmp/something/ and then runs "cd tmp/something && bundle install". However, bundle seems to install the bundle of the running app. Am I missing something?
<byteddown>
May I have the rules thrown at me, politely, please?
Zebroid has joined #ruby
<LadyRainicorn>
Oh dear, I meant instance method. silly mornings. You want `class << self; include A; end`
lw has quit [Quit: s]
bruno- has quit [Ping timeout: 240 seconds]
bmurt has quit []
ponch_ has joined #ruby
dbasch has joined #ruby
<zjm>
LadyRainicorn, Should I use A.fun instead of fun?
<zjm>
LadyRainicorn, or Should I use self.fun instead of fun?
Zebroid has quit [Ping timeout: 250 seconds]
<LadyRainicorn>
That change alone is sufficient.
RandyT has quit [Ping timeout: 264 seconds]
<LadyRainicorn>
You could also define them as class methods in A.
<wallerdev>
i usually go with self. for class methods
<wallerdev>
unless imoutside the class
<wallerdev>
;)
sdwrage has joined #ruby
jherbst has joined #ruby
magic has joined #ruby
deric_skibotn has quit [Ping timeout: 264 seconds]
RandyT has joined #ruby
Sirupsen has joined #ruby
<magic>
Where's the best place for someone who knows their programming to start on Ruby?
<wallerdev>
what language are you coming from?
awc737 has joined #ruby
awc737 has quit [Max SendQ exceeded]
dik_dak has joined #ruby
<magic>
wallerdev: Well, I've done Python, Java, C, and C++ as the languages I use the most.
<magic>
I've just never really gotten around to learning Ruby in-depth.
hamakn has quit [Remote host closed the connection]
<wallerdev>
if youve done python theres not much to learn, basically the same thing
<centrx>
but much better
<magic>
LOL :p
<magic>
Time will tell...
<wallerdev>
python is dead language
benzrf has joined #ruby
<wallerdev>
rip python 3
<wallerdev>
ruby is dead too
jdj_dk has joined #ruby
<wallerdev>
everyones switching to javascript
<benzrf>
tfw
<benzrf>
js is not a very good language
<centrx>
Javascript is dead dude
<benzrf>
:'(
<wallerdev>
rip javascript
<benzrf>
rip in pizza
<wallerdev>
whats next? is everyone switching to swift?
<centrx>
The future is the Old Motorola Flip Phone running Brainf*** and Turbo Pascal
dik_dak has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
tokik has joined #ruby
nanoyak has quit [Ping timeout: 250 seconds]
dik_dak has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
toastyne_ has quit [Remote host closed the connection]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
Vivekananda_y510 has joined #ruby
dbasch has quit [Ping timeout: 240 seconds]
danielpclark has joined #ruby
rubytor has joined #ruby
saarinen has joined #ruby
ponch_ has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
oo_ has joined #ruby
Kricir has joined #ruby
wallerdev has quit [Quit: wallerdev]
pietr0 has joined #ruby
braincra- has joined #ruby
dik_dak has joined #ruby
stytown has joined #ruby
dik_dak has quit [Read error: Connection reset by peer]
_1_tomy1910 has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
_1_tomy1910 has quit [Client Quit]
<byteddown>
Other than basic common sense rules, are there any rules for this programmers chat?
nmokru has quit [Quit: nmokru]
Kricir has quit [Ping timeout: 256 seconds]
SilkFox_ has joined #ruby
<dopie>
hey beautiful people
jamto11 has quit [Remote host closed the connection]
benzrf|offline has joined #ruby
endash has quit [Quit: endash]
Cort3z has joined #ruby
jdj_dk has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
AskSteve has joined #ruby
AskSteve has quit [Client Quit]
edgarjs_afk is now known as edgarjs
little_fu has joined #ruby
bmurt has joined #ruby
i_s has joined #ruby
benzrf has quit [Quit: leaving]
benzrf|offline is now known as benzrf
BadQuanta has joined #ruby
starfox_21 has quit [Quit: starfox_21]
MatthewsFace has joined #ruby
thesheff17 has quit [Ping timeout: 250 seconds]
SilkFox has quit [Ping timeout: 245 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
Zenigor has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 240 seconds]
Cort3z has quit [Ping timeout: 250 seconds]
jherbst has quit [Ping timeout: 255 seconds]
edgarjs is now known as edgarjs_afk
r0ok has quit [Quit: r0ok]
i_s has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
<centrx>
byteddown, They all seem basic and common sense once you learn IRC :)
vsoftoiletpaper has joined #ruby
wallerdev has joined #ruby
edgarjs_afk is now known as edgarjs
<centrx>
byteddown, One example would be, repeating questions. Some times people repeat the same question over and over, in order to get an answer and ask new joiners.
jobew_000 has joined #ruby
<centrx>
byteddown, If this is too frequent, it is very poor etiquette and even vandalistic if goes so far as "flooding" the channel
<byteddown>
Thank you.
<centrx>
byteddown, If it is not frequent, it is perfectly acceptable to ask new people and bring the question up again
cashnguns has joined #ruby
edgarjs is now known as edgarjs_afk
<byteddown>
I assumed nobody cared and that the rules are probably at the common sense level.
jobew_000 has quit [Read error: Connection reset by peer]
<centrx>
Mostly, though it sometimes depends on the channel, and if you are not familiar with IRC something may seem common sense that isn't.
jobew_000 has joined #ruby
chipotle has joined #ruby
britneywright has joined #ruby
thesheff17 has joined #ruby
<centrx>
byteddown, For example, sending a private message to someone you don't know without asking them first in the channel is considered by some to be poor etiquette. Myself, I don't care.
<dopie>
centrx, I got referred to as a bot :)
<dopie>
amazing
<dopie>
bleep bleep boopity
<centrx>
You clearly show Turing-level intelligence
jobewan has joined #ruby
jobew_000 has quit [Client Quit]
jobewan has quit [Client Quit]
fold has joined #ruby
_JokerDoom has joined #ruby
jobewan has joined #ruby
tacos1de has joined #ruby
r0ok has joined #ruby
tectonic has joined #ruby
dc has joined #ruby
JokerDoom has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
centrx has joined #ruby
Arkaniad|Laptop has joined #ruby
centrx has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danielpclark has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
radic has quit [Ping timeout: 255 seconds]
radic has joined #ruby
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
armyriad has quit [Quit: Leaving]
armyriad has joined #ruby
dogeydogey has joined #ruby
freerobby has quit [Quit: Leaving.]
<dogeydogey>
hey for each file that contains "blog" in their filename i want to mv it to /tmp
<dogeydogey>
how would i do that with ruby?
pietr0 has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikepack has quit [Remote host closed the connection]
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
charliesome has joined #ruby
dbasch has quit [Quit: dbasch]
<arup_r>
zenspider: Why did you ban me ? I had a problem with Network connection yesterday night.. Which is the reason, it was getting frequently connected and disconnected. Don't you see the name written as arup_r1, where as my name is arup_r. Please consider to remove the ban.
bruno- has quit [Ping timeout: 260 seconds]
asmodlol has joined #ruby
<arup_r>
I am really surprised to see, that happened in #minitest. Not in any other channels.. Strange.
krz has joined #ruby
pis0xpscl has quit [Ping timeout: 250 seconds]
joshbamboo1 has joined #ruby
ponch_ has joined #ruby
<joshbamboo1>
I'm trying to write a quick ruby script. How to I access top level variables from within a method? They are not marked as global $. What scope do they live at? Object class instance variables?
jdj_dk has joined #ruby
<arup_r>
pass it as a method argument.. this is a cool option.
<joshbamboo1>
yeah ok, I realise I can do that. I was more curious as to where those variables live
jamto11 has joined #ruby
<arup_r>
They are in the scope of the Object clas.
<arup_r>
Do.. Object.local_variables.grep(/local_var_name/) to check the same
sdwrage has quit [Quit: This computer has gone to sleep]
<joshbamboo1>
actually, I've got several. Might just make them $. It's just a small script.
jamto11 has quit [Remote host closed the connection]
ponch_ has quit [Ping timeout: 240 seconds]
jamto11_ has joined #ruby
bricker`LA has quit [Quit: leaving]
<joshbamboo1>
They're not Object class instance variables, though, are they? Ie, they're not @@
<joshbamboo1>
And they're not object instance vars, @
snath has joined #ruby
<arup_r>
Come on.. see again what I wrote
<arup_r>
@x = 1 <- instance var.. x =1 x is a local var
hamakn has quit [Read error: Connection reset by peer]
<joshbamboo1>
Yes, I'm just not used to languages that can have local variables outside of a method that are not instance or class variables.
hamakn has joined #ruby
LadyRainicorn has quit [Ping timeout: 256 seconds]
sixxy has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<godd2>
Are there any best practices on dealing with particular file types? Is it a good idea to create a class for, say, PNG that inherits from File ?
alexju has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
mary5030 has quit [Ping timeout: 255 seconds]
ninegrid has joined #ruby
nanoyak has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
apeiros has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
MatthewsFace has joined #ruby
tagrudev has joined #ruby
jdj_dk has joined #ruby
elico has quit [Read error: No route to host]
tacos1de has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<RahulAN>
any one here for help??
Notte has joined #ruby
Notte has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<godd2>
RahulAN because you're iterating over a range of 0..4 which means 0, 1, 2, 3, 4. But there is no test[4]
<godd2>
There is only test[0], test[1], test[2]. and test[3]. You have a, off by one error
fabrice31 has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2>
so either do 1..test.length or 0...test.length (note the three dots there), or test.length.times do |i|
<godd2>
actually 1..test.length wont work. dont do that
shredding has quit [Quit: shredding]
<RahulAN>
What this .
<RahulAN>
What this ... is doing?
sigurding has joined #ruby
<godd2>
a range with three dots means you dont use the top number, so 0...10 means 0 through 9
dawkirst has joined #ruby
<RahulAN>
godd2, ohkk
<RahulAN>
Thanks :)
VooDooNOFX has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
pietr0 has quit [Quit: pietr0]
nobodyzzz has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
Zebroid has joined #ruby
timonv_ has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
Rollabunna has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
arup_r has quit [Remote host closed the connection]
dangerousdave has joined #ruby
bal has joined #ruby
ghr has joined #ruby
jdj_dk has quit [Ping timeout: 256 seconds]
Cort3z has joined #ruby
Zebroid has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
elico has joined #ruby
maestrojed has joined #ruby
SilkFox_ has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
Cort3z has quit [Ping timeout: 250 seconds]
RahulAN has quit [Ping timeout: 240 seconds]
<atmosx>
Hello
ramfjord has quit [Ping timeout: 240 seconds]
asmodlol has quit [Quit: Leaving]
SilkFox_ has quit [Ping timeout: 250 seconds]
toastynerd has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white>
atmosx: Heya! :)
fabrice31 has joined #ruby
yfeldblum has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
<atmosx>
hello agent_white
ndRx has quit [Remote host closed the connection]
ylluminate has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
<agent_white>
How goes it atmosx?
arup_r has joined #ruby
ndrei has joined #ruby
<atmosx>
Good, trying to understand if my current approach on saving prices (currency) as BigInt in SQL is correct.
jdj_dk has joined #ruby
dbasch has joined #ruby
dawkirst has joined #ruby
dawkirst has quit [Remote host closed the connection]
jamto11 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 256 seconds]
Cort3z has joined #ruby
pranny has joined #ruby
_tpavel has joined #ruby
ylluminarious has quit [Quit: Leaving...]
theharshest has quit [Quit: This computer has gone to sleep]
jamto11 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
anarang has joined #ruby
elaptics`away is now known as elaptics
timonv_ has quit [Remote host closed the connection]
<agent_white>
Man. Haskell is wierd. Just got a _very_ rough explanation of a pure function.
<agent_white>
tl;dr -- stdout has state. ;P
Zebroid has joined #ruby
Aaaal has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
jackneill has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
Aaaal has quit [Quit: Aaaal]
Mooneye has quit [Quit: Leaving]
roolo has joined #ruby
oo_ has joined #ruby
dc has joined #ruby
ephemerian has joined #ruby
Hobogrammer has quit [Quit: さようなら]
dc has quit [Remote host closed the connection]
dc has joined #ruby
olivier_bK has joined #ruby
decoponio has joined #ruby
bal has quit [Quit: bal]
bal has joined #ruby
timonv_ has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
wallerdev has quit [Quit: wallerdev]
dc has quit [Remote host closed the connection]
keen_ has joined #ruby
yfeldblum has joined #ruby
jamto11 has joined #ruby
bruno- has joined #ruby
bayed has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
Joulse has quit [Quit: Joulse]
ramfjord has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
memph1s has quit [Quit: I couldn't come up with quit message :(]
rdark has joined #ruby
postmodern has quit [Quit: Leaving]
AlSquire has joined #ruby
idoru has quit [Read error: Connection timed out]
<arup_r>
zenspider: Why did you ban me ? Can you talk about that ?
<arup_r>
You can't stop me in learning from things that I want to learn... This is not good... Really not good.
DaniG2k has joined #ruby
<sevenseacat>
not again
<agent_white>
sevenseacat: Heya! Round two!
* agent_white
hands sevenseacat an energy drink
arup_r has quit [Remote host closed the connection]
<sevenseacat>
lol or not
Dude007 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Rollabunna has joined #ruby
lyuzashi has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
* sevenseacat
drinks energy drink
startupality has joined #ruby
Joulse has joined #ruby
workmad3 has joined #ruby
matchaw has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 245 seconds]
idoru has joined #ruby
matchaw has joined #ruby
dblessing has joined #ruby
SilkFox_ has joined #ruby
Ilyas_ has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
PanPan_ has joined #ruby
PanPan_ has quit [Client Quit]
ybart has joined #ruby
Ilyas has quit [Ping timeout: 264 seconds]
yacks has quit [Ping timeout: 240 seconds]
<ybart>
Hi, do you know how to rename/copy a class SomeModule::Foo to Foo so that Foo.name == "Foo" ?
PanPan has quit [Ping timeout: 264 seconds]
<arup_r>
No... Once constants are defined, you can't change the name
SilkFox_ has quit [Ping timeout: 255 seconds]
<arup_r>
Xavier Noira had given great Ruby talk on this..
<ybart>
And what about a copy ?
<ybart>
Great, is the talk available somewhere ?
<arup_r>
Ahh! Don't know :( about acopy
<arup_r>
Youtube... Go grab it
<arup_r>
He is an awesome ruby hero out there..
<ybart>
Thanks !
bahar has quit [Ping timeout: 240 seconds]
<ybart>
For the context, I'm trying to put my Rails models in a gem. I like to have everything namespaced in my gem, but hate to have to use the namespace in my main app.
<sevenseacat>
whats the point then?
Vivekananda_y510 has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
doev has joined #ruby
Pharaoh2 has joined #ruby
malditogeek has joined #ruby
yacks has joined #ruby
cajone has quit [Remote host closed the connection]
malditogeek has quit [Client Quit]
workmad3 has quit [Quit: Reconnecting]
<ybart>
I had my models defined in a rails app in the root module. I'm trying to extract them in the gem. In a gem would like them scoped. But I don't wan't to change my app code to use that new namespace.
ddv has joined #ruby
ddv has quit [Changing host]
<arup_r>
sevenseacat: What is good book to understand TDD concept ?
workmad3 has joined #ruby
malditogeek has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<agent_white>
arup_r: For ruby or rails?
<guardian>
hello, I'm trying to debug a test for a contribution I'm about to submit to a ruby project. It looks like the test framework (I think it's minitest) captures stdout and stderr
<guardian>
in the middle of the test code, I added require 'pry'; binding.pry in order to debug what's going on
<guardian>
but I can't print anything to the console
<guardian>
is there a way to force print to the terminal?
Wolland has quit [Remote host closed the connection]
aagdbl has joined #ruby
dANOKELOFF has joined #ruby
<arup_r>
agent_white: Humm... May be general concept..
lkba has quit [Ping timeout: 260 seconds]
wasamasa has quit [Quit: ZNC]
whyy has quit [Read error: Connection reset by peer]
wasamasa has joined #ruby
<arup_r>
agent_white: Suggest me some book
ndrei has quit [Ping timeout: 240 seconds]
malditogeek has quit [Quit: Leaving.]
dawkirst has quit [Remote host closed the connection]
<Mon_Ouie>
guardian: Pry allows you to pass options to specify the output
<Mon_Ouie>
binding.pry :output => STDOUT
dawkirst has joined #ruby
malditogeek has joined #ruby
mengu has quit [Remote host closed the connection]
blackmesa has joined #ruby
hsps__ has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: goodnight]
hgl_ has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
hgl_ has joined #ruby
hgl_ has quit [Remote host closed the connection]
hgl_ has joined #ruby
lolmaus has joined #ruby
whyy has joined #ruby
lnoskhen has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
Arkaniad|Laptop has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
arup_r has joined #ruby
andrewlio has joined #ruby
maletor has joined #ruby
whyy has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
Bumptious has quit [Read error: No route to host]
Bumptiou_ has joined #ruby
Bumptiou_ has quit [Read error: Connection reset by peer]
Alina-malina has quit [Read error: Connection reset by peer]
<vifino>
Im proud of my bot :>
inspectah_stack has left #ruby [#ruby]
Alina-malina has joined #ruby
<guardian>
I have another noob question: is there a way I do bundle exec rake test and at the same time add 'pry-byebug' to the bundle without having to edit the Gemfile?
alem0lars has quit [Quit: Going AFK...]
aagdbl has quit [Quit: Leaving]
alol__ is now known as alol
anarang has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
eka has joined #ruby
alem0lars has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
Dude007 has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
spastorino has joined #ruby
batman has joined #ruby
roolo has quit [Quit: Leaving...]
<workmad3>
guardian: I'm not sure that ability ever made it into bundler
kaspergr_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
<workmad3>
guardian: it's quite a bit more difficult to achieve than it seems on the surface... as it basically involves re-resolving the Gemfile.lock with the addition, making sure the dependency tree is still satisfiable and then updating the Gemfile.lock with changes are specific to one developer
little_fu has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
godd2 has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
Rollabunna has joined #ruby
emergion has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Dude007 has quit [Read error: Connection reset by peer]
end_guy has quit [Ping timeout: 264 seconds]
Dude007 has joined #ruby
Joulse has quit [Quit: Joulse]
Vivekananda_y510 has quit [Read error: Connection reset by peer]
quarcu has joined #ruby
roolo has joined #ruby
Zebroid has joined #ruby
end_guy has joined #ruby
marr has joined #ruby
Ilyas__ has joined #ruby
Ilyas_ has quit [Read error: Connection reset by peer]
Dude007_ has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
Dude007 has quit [Ping timeout: 250 seconds]
quarcu is now known as quarcu_
timonv_ has joined #ruby
agjacome has joined #ruby
quarcu_ is now known as quarcu
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zebroid has quit [Remote host closed the connection]
quarcu is now known as quarcu_
ctp has joined #ruby
shemerey has joined #ruby
quarcu_ is now known as quarcu
ylluminarious has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
Mon_Robot has quit [Remote host closed the connection]
Mon_Robot has joined #ruby
sixxy has joined #ruby
why_away has quit [Ping timeout: 250 seconds]
coderhs has quit [Read error: Connection reset by peer]
itadder has joined #ruby
coderhs has joined #ruby
SilkFox_ has joined #ruby
klaut has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
tokik has quit [Ping timeout: 250 seconds]
phoo1234567 has joined #ruby
yfeldblum has joined #ruby
blackmesa has joined #ruby
whyy has joined #ruby
phinfonet has joined #ruby
<Mon_Ouie>
https://github.com/Mon-Ouie/cinch-eval-in I don't actually have a server to keep the bot running, so if someone does, feel free to replace my bot using this
bauruine has quit [Excess Flood]
bauruine has joined #ruby
itadder has quit [Ping timeout: 256 seconds]
SilkFox_ has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
workmad3 has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
jottr has joined #ruby
edmellum has joined #ruby
doev has quit [Remote host closed the connection]
railzForDaiz has joined #ruby
<apeiros>
Mon_Ouie: the server the only problem, or also the time to maintain it? (somehow I thought it was charliesome's bot?)
mostlybadfly has joined #ruby
kyb3r_ has quit [Quit: Leaving]
railzForDaiz has quit [Client Quit]
_tpavel has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
arup_r has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
Giorgio has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
whyy has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
cobakobodob has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
Primordus has quit [Quit: WeeChat 0.4.3]
nuck has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
_tpavel has joined #ruby
nuck has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
<Mon_Ouie>
apeiros: charlieshome wrote the old bot and the web service both of them used
blackmesa has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
lanox has joined #ruby
Joulse has joined #ruby
Neomex has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Ping timeout: 264 seconds]
LadyRainicorn has joined #ruby
AskSteve has joined #ruby
mengu has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
lkba has joined #ruby
ndrei has joined #ruby
toretore has joined #ruby
MCDev has joined #ruby
sk87 has joined #ruby
JBreit has left #ruby ["Leaving"]
Rollabunna has quit [Remote host closed the connection]
banisterfiend has joined #ruby
philcris_ has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen_ has quit [Ping timeout: 240 seconds]
sigurding has quit [Remote host closed the connection]
tkuchiki has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
LadyRainicorn has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
arup_r has joined #ruby
iamjarvo has joined #ruby
mengu has joined #ruby
ldnunes has joined #ruby
phutchins has joined #ruby
oo_ has joined #ruby
dvb_ua has quit [Ping timeout: 240 seconds]
batman has quit [Quit: going home!]
ninegrid has quit [Ping timeout: 256 seconds]
cobakobodob has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
<vifino>
Mon_Ouie: Interesting thing, maybe I will make my own version, interfacing with eval.in seems fun
Sgeo has quit [Read error: Connection reset by peer]
<vifino>
Will not use any code from you, dont worry
<vifino>
:)
claymore has joined #ruby
mehlah has quit [Quit: Leaving...]
<Mon_Ouie>
Well I wouldn't have made it open source if I had a problem with people using it ;)
ndrei has quit [Ping timeout: 264 seconds]
amacou has joined #ruby
yfeldblum has joined #ruby
<vifino>
eval.in seems fun, definitly
britneywright has joined #ruby
Mon_Robot has quit [Remote host closed the connection]
Soda has joined #ruby
BadQuanta has joined #ruby
SouL_ has quit [Remote host closed the connection]
SouL has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
yfeldblum has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
chipotle has joined #ruby
whyy has joined #ruby
malditogeek has quit [Quit: Leaving.]
SouL has quit [Ping timeout: 272 seconds]
Hanmac has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
mehlah has joined #ruby
AskSteve has left #ruby [#ruby]
Mon_Robot has joined #ruby
Mon_Robot has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
kotk has joined #ruby
whyy has quit [Read error: Connection reset by peer]
MrDoctor has joined #ruby
whyy has joined #ruby
MrDoctor has quit [Client Quit]
Mon_Robot has joined #ruby
MrDoctor has joined #ruby
fgo has joined #ruby
jamto11 has joined #ruby
kotk_ has quit [Ping timeout: 240 seconds]
malditogeek has joined #ruby
ndrei has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
<vifino>
Mon_Ouie: I have a question at your code :) Line 64, where is output_title defined?
jdj_dk has quit [Remote host closed the connection]
<vifino>
nvm
<vifino>
Its not comparison
* vifino
facepalms
JasmeetQA has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
claymore has joined #ruby
dawkirst has joined #ruby
<Pro|>
what does variable |= something syntax do
<Pro|>
or what is it called
<apeiros>
Pro|: works the same as +=
<apeiros>
`a <op>= b` is expanded to `a = a <op> b`
<Pro|>
okay
<vifino>
:o
<vifino>
thats neat!
<apeiros>
except for ||= and &&=, which expand to a || a = b, and a && a = b respectively
<vifino>
...waaat
* vifino
's mind inploded
<apeiros>
it has almost the same effect, but avoids a method call in case of obj.foo ||= bar
NinoScript_ has joined #ruby
<Pro|>
||= was what i was looking for tbh but nice to know also, thanks :D!
<apeiros>
yeah, ||= is not quite the same as |= ;-)
Morkel has quit [Quit: Morkel]
[1]MCDev has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
hippyphysicist has joined #ruby
senayar has joined #ruby
oo_ has quit [Remote host closed the connection]
jespada has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
MCDev has quit [Ping timeout: 250 seconds]
[1]MCDev is now known as MCDev
ninegrid has joined #ruby
jdj_dk has joined #ruby
Maitiu has joined #ruby
philcris_ has quit [Remote host closed the connection]
Mon_Robot has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
workmad3 has joined #ruby
claymore has joined #ruby
wingedsnake has joined #ruby
Dude007_ has quit [Ping timeout: 240 seconds]
jdj_dk has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<wingedsnake>
when writing a gem if you have to classes in /lib. Lets say class a and b. when requiring class a into b, should I use require() or require_relative() ?
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
<Mon_Ouie>
require
DivineEntity has quit [Quit: Lost terminal]
senayar has quit [Remote host closed the connection]
<Mon_Ouie>
Rubygem will take care of adding the lib directory to the $LOAD_PATH
hgl_ has joined #ruby
<wingedsnake>
that sounds good
emergion has quit [Quit: Connection closed for inactivity]
linojon has joined #ruby
jerius has joined #ruby
anaeem1 has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
benzrf|offline is now known as benzrf
anaeem1 has quit [Remote host closed the connection]
willbarrettdev has joined #ruby
hgl__ has joined #ruby
SilkFox_ has joined #ruby
tesuji has quit [Ping timeout: 256 seconds]
DaniG2k has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
haroldwu has quit [Ping timeout: 240 seconds]
haroldwu has joined #ruby
hgl_ has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
jdj_dk has joined #ruby
<wingedsnake>
Mon_Ouie, when unit testing I'm getting an error pointing on my require line
freerobby has quit [Quit: Leaving.]
Sirupsen has joined #ruby
<wingedsnake>
The tests pass when changing to require_relative()
<workmad3>
wingedsnake: your test LOAD_PATH isn't set up correctly then
SilkFox_ has quit [Ping timeout: 245 seconds]
valner has joined #ruby
oo_ has joined #ruby
jdj_dk has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
valner has quit [Client Quit]
valner has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
<wingedsnake>
require_relative should work too, cuz the the two classes will share the same path
<wingedsnake>
"in the same folder"
MCDev has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has joined #ruby
valner has quit [Client Quit]
valner has joined #ruby
DaniG2k has joined #ruby
orionstein is now known as orionstein_away
keen_ has joined #ruby
SouL has joined #ruby
jamto11 has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
whyy has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
obscured has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
qwyeth has joined #ruby
Shidash has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zenigor has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
<vifino>
Mon_Ouie: Made my own version :D
<vifino>
It even works!
<vifino>
xD
valner has quit [Quit: valner]
valner has joined #ruby
<apeiros>
Mon_Ouie: oh nice, you already got it running again?
claymore has quit [Ping timeout: 240 seconds]
ylluminate has joined #ruby
doev has joined #ruby
frellnet has joined #ruby
oo_ has joined #ruby
<Mon_Ouie>
Yeah, it's working fine as far as I can tell
<apeiros>
Mon_Ouie: can you send it to ##new2ruby too?
banister has joined #ruby
endash has joined #ruby
Kruppe has joined #ruby
<Mon_Ouie>
Sure. Was it on any other channel?
SilkFox has joined #ruby
<apeiros>
uh, don't remember :-/
<apeiros>
#rubyonrails maybe
dawkirst has quit [Remote host closed the connection]
Mon_Robot has quit [Remote host closed the connection]
Mon_Robot has joined #ruby
<Mon_Ouie>
He should be on all 4 of them now
dawkirst has joined #ruby
senayar has quit [Remote host closed the connection]
karupa is now known as zz_karupa
jshultz has joined #ruby
freerobby has quit [Quit: Leaving.]
valner has quit [Quit: valner]
valner has joined #ruby
Aryasam has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
thoolihan has quit [Ping timeout: 240 seconds]
yacks has quit [Read error: Connection reset by peer]
p0sixpscl has joined #ruby
senayar has joined #ruby
Rollabunna has joined #ruby
p0sixpscl has quit [Client Quit]
p0sixpscl has joined #ruby
amizya has joined #ruby
yacks has joined #ruby
theharshest has joined #ruby
thoolihan has joined #ruby
yfeldblum has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
theharshest has quit [Client Quit]
ffranz has joined #ruby
arup_r has quit [Remote host closed the connection]
mikesplain has joined #ruby
mary5030 has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
SilkFox has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
anarang has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 260 seconds]
SilkFox_ has joined #ruby
SilkFox has joined #ruby
snath has quit [Ping timeout: 250 seconds]
mengu has quit [Remote host closed the connection]
rahabash has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<rahabash>
hey is there a channel specific to rails or is this where most rails devs hang out?
<Mon_Ouie>
There's #rubyonrails
<rahabash>
thanks!
gregf_ has joined #ruby
valner has quit [Quit: valner]
valner has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
valner has quit [Client Quit]
valner has joined #ruby
valner has quit [Client Quit]
hgl__ has quit [Quit: Computer has gone to sleep.]
valner has joined #ruby
ndrei has joined #ruby
hgl__ has joined #ruby
mr_foobar_baz has joined #ruby
jamto11 has joined #ruby
mr_foobar_baz has quit [Client Quit]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahabash has left #ruby [#ruby]
jackneill has quit [Remote host closed the connection]
professor_soap has joined #ruby
hgl__ has quit [Ping timeout: 272 seconds]
thesheff17 has joined #ruby
aganov has quit [Remote host closed the connection]
<professor_soap>
say I have a json tree with many children and I want to select and return a set of children with uniq id fields, is there a way in ruby to query a json object for that?
baweaver has joined #ruby
banisterfiend has joined #ruby
<professor_soap>
problem: many childres has same id field, I want to "uniqify" these children and not show a child with the same id field twice.
baweaver has quit [Read error: Connection reset by peer]
lanox has quit []
baweaver has joined #ruby
<apeiros>
professor_soap: there's no such thing as a "json object"
<apeiros>
you either have the serialized string, or the deserialized datastructure
freerobby has joined #ruby
chth0n has joined #ruby
<professor_soap>
ok, it's a string parsed with JSON
<professor_soap>
json = JSON.parse huge_string
<apeiros>
which means you have plain ordinary ruby objects now
<apeiros>
i.e. hashes, arrays, strings, floats, booleans and nil
mengu has joined #ruby
<professor_soap>
yea you are right, it's a hash :)
ponch_ has joined #ruby
willbarrettdev has left #ruby ["Leaving"]
<professor_soap>
I guess i can simply map through all the children in the tree and then do #uniq on that array or something, but I was curious to see if there's was a shorter way.
<professor_soap>
but that wont work either, cause i need to only have uniq ['id'] fields
<professor_soap>
not the rest of the data
JohnFord has joined #ruby
<apeiros>
professor_soap: you can gist the code you write along with example input and output data
<apeiros>
then we can try to see whether we can come up with a nicer solution
jottr_ has joined #ruby
valner has left #ruby [#ruby]
iamjarvo has joined #ruby
Digital-Ghost has joined #ruby
andrew9183 has joined #ruby
LiohAu has quit [Ping timeout: 250 seconds]
<professor_soap>
I solved it with mapping through them, it's ok for now. Thx anyway
valner has joined #ruby
fgo has quit [Remote host closed the connection]
LiohAu has joined #ruby
dogeydogey has joined #ruby
endash has quit [Quit: endash]
tesuji has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
<j416>
def foo(x = nil); end # is there a way to determine if I called foo or foo(nil) ?
<ericwood>
sjouke: typically in rails with finders the ! means it throws an exception if it fails
<arup_r>
Mon_Ouie: I see
St_Marx has joined #ruby
<ericwood>
it'll either mean: fail spectacularly, "this method will do some shit and modify your things"
<lagweezle>
Interesting. So on object, bang means modify, in rails finder, usually means toss exception.
<sjouke>
thank you ericwood
<ericwood>
no problemo
<sjouke>
i didn't know this was a rails issue, sorry about that
<ericwood>
no worries
Joulse has quit [Quit: Joulse]
<ericwood>
idk if I'm even right but based on past rails experience that's the way it typically works
tobago has quit [Remote host closed the connection]
<Hanmac>
Mon_Ouie: as you see evalin does not load bigdecimal because its compiled ... the author of evalin did not fixed that yet that you can load stdlib stuff
dawkirst has joined #ruby
troyready has joined #ruby
harshjha_ has quit [Ping timeout: 245 seconds]
harshjha_ has joined #ruby
<arup_r>
zenspider: Why minitest don't have *shared-examples* kind of cool stuffs.. ? Really Ruby should think to make Rspec as a replacement of Minitest,, :-)
ndRx has joined #ruby
<Mon_Ouie>
There's minitest/spec isn't there?
Gonzih has joined #ruby
<apeiros>
minitest allows you to use plain ruby's awesome code sharing features
Tricon has joined #ruby
<apeiros>
no need to reinvent the wheel like rspec does
alexju has quit [Ping timeout: 245 seconds]
<arup_r>
Still... Rspec is best....... :-)
<toretore>
lol
<apeiros>
nope
<apeiros>
not even by a far shot
dc has quit [Remote host closed the connection]
<diegoviola>
i like minitest simplicity
<centrx>
Minitest is good
<arup_r>
apeiros: Personal choice........ :)
mikecmpbll has quit [Ping timeout: 245 seconds]
claymore has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
<apeiros>
arup_r: sure. "I like X best" is personal choice. "X is best" is a factual statement.
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
alexju has joined #ruby
<arup_r>
toretore: How are you ?
<toretore>
terrible
<toretore>
i have cancer :(
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx>
worst joke ever
<toretore>
haha jk you guys
francisfish has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<toretore>
it was not true
Bira has quit [Remote host closed the connection]
<toretore>
but now i'll probably get cancer as punishment for joking about it
francisfish has joined #ruby
renderful has joined #ruby
ephemerian has quit [Quit: Leaving.]
claymore has joined #ruby
tectonic has joined #ruby
<arup_r>
apeiros: I post a question in Minitest forum.. after 5 days I deleted.. Same posted with Rspec thought.. within 3 hours resolution came.. So community is stronger in Rspec.. and they are good also..:-)
yfeldblum has joined #ruby
<arup_r>
toretore: No you wouldn't .. You are blessed by God. :-)
<toretore>
yes i am
<apeiros>
which one?
<centrx>
but minitest is so easy you do not need to ask any questions
nanoyak has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Quit: Coyote finally caught me]
<apeiros>
humanity invented too many gods, I lost track of them
WillAmes has quit [Remote host closed the connection]
<centrx>
It's the same one you fools
<shevy>
my god is stronger than your god centrx!!!
<eam>
Mon_Robot has a bug, it chomps trailing whitespace
<vifino>
:/
darkxploit has joined #ruby
<slap_stick>
hey, say i have a list of hosts and each host i want to iterate over and make it comma separated except the last one, i.e. host1,host2,host3 i was doing a each do but obviously the last one also contains a , i wondered if there is a neater way other than doing a each_with_index and seeing if index is the last one of the array and not putting it in with some if statement
<AlHafoudh>
vifino: right now I did a google search for you
<vifino>
You did, yes.
nitin_ has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
<AlHafoudh>
vifino: you should too..
<vifino>
I _did_
<vifino>
But since thats not working, I asked here
darkxploit has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 245 seconds]
nitin_ has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 264 seconds]
<AlHafoudh>
vifino: what is not working, did you get any error?
darkxploit has joined #ruby
<vifino>
Its not an error, its just not working :/
<vifino>
well
<AlHafoudh>
did you try to debug?
<havenwood>
joelteon: mm, eventmachine. are you using thin or is EM bundled for something else?
<eam>
Mon_Robot: is the bot yours? is the source somewhere?
<havenwood>
joelteon: Rails channel is #rubyonrails by the way.
<joelteon>
havenwood, I think I figured it out
<vifino>
the library has errors all over the place
<joelteon>
all the stacktrace stuff is Ruby 1.9 but eventmachine was built for 2.1
<havenwood>
joelteon: aha!
<joelteon>
anyway, if eventmachine is a rails thing I'll ask there instead, thanks
<centrx>
Do upgrade your Ruby
<joelteon>
well I thought I did
<joelteon>
that's the problem
<havenwood>
joelteon: i'm guessing it is being used with thin, which is just one of many Rack webservers
<havenwood>
joelteon: take a look at unicorn and puma for nice alternative options that don't use EM
krz has quit [Quit: WeeChat 0.4.3]
banister_ has joined #ruby
<joelteon>
havenwood: unfortunately, it's not my project and I don't have the time or desire to port it to other servers
<joelteon>
I just want to get it to work
<AlHafoudh>
lemme see
<havenwood>
joelteon: building EM for your Ruby makes sense then ;)
banister has quit [Read error: Connection reset by peer]
<joelteon>
agreed
JohnFord has joined #ruby
mattmcclure has joined #ruby
Spami has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
Spami has quit [Client Quit]
jerius has quit []
SilkFox_ has joined #ruby
sjouke has quit [Quit: leaving]
slap_stick has quit [Quit: Page closed]
Dude007 has quit [Ping timeout: 240 seconds]
<AlHafoudh>
hmm, really
ponch_ has quit [Ping timeout: 272 seconds]
Notte has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
senayar has quit [Remote host closed the connection]
jamto11 has joined #ruby
senayar has joined #ruby
pasties has quit [Read error: Connection reset by peer]
pasties_ has joined #ruby
kotcdn has quit [Read error: Connection reset by peer]
<Hanmac>
havenwood: DoctorWho episode?
RichardK has quit [Quit: Leaving]
<havenwood>
s6e1
iamjarvo has joined #ruby
Zebroid has quit [Remote host closed the connection]
beef-wellington has joined #ruby
endash has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
endash has joined #ruby
senayar has quit [Ping timeout: 255 seconds]
treehug88 has joined #ruby
Kricir has joined #ruby
Bira has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
cleopatra has joined #ruby
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Bira has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 272 seconds]
nmokru has joined #ruby
<vifino>
AlHafoudh: Found a way?
Bira has joined #ruby
charliesome has joined #ruby
<wallerdev>
good morning
Zebroid has joined #ruby
banjara has joined #ruby
Gonzih has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<dogeydogey>
hey i still can't this tar script to work... i installed the archive-tar gem... any ideas? do i need to require anything? http://pastie.org/9412683
crazed has joined #ruby
edgarjs_afk is now known as edgarjs
sdrew has joined #ruby
<crazed>
if I have a string such as 'alias(scale(sum(systems.%.magic.rx), 8), "Super Cool!"', what are some easy techniques to parse this and grab out systems.%.magic.rx, then apply the surrounding "functions"
Morkel has joined #ruby
<apeiros>
crazed: depends on how much you didn't say. i.e. how generic this thing should be.
<crazed>
pretty generic
<apeiros>
you can build a proper parser with things like treetop or parslet relatively easy
rdark has quit [Quit: leaving]
<crazed>
i don't know if you've ever used graphite, but i'm trying to build an api similar to that
<apeiros>
I haven't
<crazed>
okay, so yeah assume there's a series of functions to apply to a given target
<crazed>
i'd have to pull out 'systems.%.margic.x' as the "target", then apply the functions surrounding it
<eam>
crazed: treetop or parselet are good suggestions
NinoScript_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<eam>
outside of ruby, I'd use flex
<crazed>
flex?
toastynerd has quit [Read error: Connection reset by peer]
<ChristianDC>
ok maybe i made a mistake.. I'm working with data that came from JSON.parse
asmodchan has quit [Read error: Connection reset by peer]
<ChristianDC>
but it's erroring out with Hash not being able to map but maybe I'm mapping against the wrong thing
asmodlol has quit [Ping timeout: 255 seconds]
<centrx>
mousa, Cannot locate such file. What is slim supposed to refer to?
dc has quit [Remote host closed the connection]
<ChristianDC>
ok yeah it's an array of hashes
Elhu has joined #ruby
jimms has quit []
<mousa>
centrx, I did "gem install slim" before that, which is a tempting engine
<mousa>
*templating
uokesita has joined #ruby
<centrx>
mousa, Try putting it in your Gemfile and using bundle install
andrewjanssen has quit [Quit: Leaving...]
nfk has joined #ruby
twhittley has joined #ruby
x1337807x has joined #ruby
amizya has joined #ruby
dc has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
gbaway has quit [Ping timeout: 244 seconds]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cory_ has quit [Quit: Connection closed for inactivity]
Kricir has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
<mousa>
centrx, it worked by adding it to the gem file. I need more clear concept of gem, bundle etc. Any resource you'd recommend?
asmodlol has joined #ruby
<centrx>
mousa, I don't know it doesn't really do that much.
thesheff17 has quit [Ping timeout: 272 seconds]
<centrx>
mousa, In this case, the "require" is actually overridden by rubygems and checks through your installed gems, whereas Ruby core's "require" just looks at files
<centrx>
mousa, It could be that, or it could be because you are running it with bundle exec, it has to be in the bundle
baroquebobcat has quit [Quit: baroquebobcat]
dumdedum has quit [Quit: foo]
marr has quit [Ping timeout: 260 seconds]
rayners has quit [Remote host closed the connection]
<mousa>
centrx, I'll have to play with it a little more I guess
Tricon has joined #ruby
JohnFord has joined #ruby
thesheff17 has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
jheg has quit [Quit: jheg]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
bayed has quit [Quit: Connection closed for inactivity]
jerius has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
ghr has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
Bira has quit [Remote host closed the connection]
<dogeydogey>
random question but anyone here good with the github api?
<Mon_Ouie>
wingedsnake: You could use Pry to help you find the definition of methods btw
Spami has joined #ruby
<Mon_Ouie>
show-source URI.encode
mikepack has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
vincent__ has joined #ruby
<dogeydogey>
shevy do you know why use of archive doesn't work?
<dogeydogey>
am I supposed to require something?
vincent__ is now known as Guest72320
ctp has joined #ruby
<byteddown>
Has anyone worked with jira-ruby before?
MrDoctor has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
britneywright has joined #ruby
WormDrink has quit [Ping timeout: 245 seconds]
<Mon_Ouie>
eam: Are you sure your client doesn't remove trailing whitespace? I don't do any such stripping, and from the last character of your message seemed to be a "%"
MrDoctor has joined #ruby
<Mon_Ouie>
It might be that Cinch is stripping them before I get the string
<eam>
well that's interesting, let me see
<Mon_Ouie>
>> % foo
<Mon_Robot>
Mon_Ouie: => SyntaxError: (eval):1: unterminated string meets end of file (https://eval.in:443/170658)
<eam>
yeah, I'm sure because:
<eam>
<eam>
" "
<eam>
I got that message round-robin through chat
<eam>
6 spaces
<Mon_Ouie>
Yeah, and I can see those spaces in the log as well
WormDrink has joined #ruby
<Mon_Ouie>
Can you try again?
<eam>
>> % %%%
MrDoctor has quit [Read error: Connection reset by peer]
<Mon_Robot>
eam: => SyntaxError: (eval):1: unterminated string meets end of file (https://eval.in:443/170659)
<steveelsewhere>
interview question: coding challenge - do you submit your .git folder or not?
jaimef has quit [Excess Flood]
deric_skibotn has quit [Ping timeout: 240 seconds]
gypsydave5 has joined #ruby
dvb_ua has joined #ruby
<drizz>
of course! how else are people gonna read the changes??¿
mattalexx has joined #ruby
peretwrk has quit [Quit: Leaving]
<steveelsewhere>
that was my first instinct
<centrx>
steveelsewhere, Why, so they can read all your mistakes, or because they have so little to do they need something to spend their time?
<steveelsewhere>
haha
<steveelsewhere>
exactly why I asked
NinoScript has quit [Read error: Connection reset by peer]
amizya has joined #ruby
amizya has quit [Client Quit]
<steveelsewhere>
I'm also taking advantage of quite a bit of reuse - I'd like that to be seen as a positive
NinoScript has joined #ruby
pandaant has joined #ruby
AimToMisbehave has quit []
codezomb has joined #ruby
alem0lars has quit [Quit: alem0lars]
jaimef has joined #ruby
ponch_ has joined #ruby
ponch_ has quit [Remote host closed the connection]
<mattalexx>
I am trying to get a hackable installation of vagrant working on my machine. It uses bundler, and in its Gemspec it refers to the remote "." to add itself as a gem. The bundle install command seems to be working, but the "vagrant" gem doesn't seem to appear in gem list: https://gist.github.com/mattalexx/b596f9c639820dec1a4b
<mattalexx>
What am I doing wrong
<mattalexx>
?
mikepack has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bMalum_ has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
ghr has joined #ruby
<jzml>
file.puts(@redis.spop("xyz")) adds a lot of empty lines at the end of file. I'm doing that in a loop until the set is empty. what can be the issue?
<jzml>
when I do, x = @redis.spop("xyz"); file.puts(x) it works fine
mary5030_ has quit [Remote host closed the connection]
<Mon_Ouie>
I don't know anything about redis, but the two pieces of code you showed do the same thing.
Tricon has quit [Ping timeout: 240 seconds]
<centrx>
bricker`work, Doesn't that set those as local variables for the context of the entire caller method?
<Mon_Ouie>
You also didn't show us a specific example of the probem
<bricker`work>
centrx: yes, but that's not a problem imo
<centrx>
ha
<Mon_Ouie>
bricker`work: It's also confusing to readers of the code because you can't just swap the order of arguments and have it work. You could have location=a, name=b and it would still do the same
<bricker`work>
I guess you'd get warnings in ruby 2 as well, but anyways it's pretty
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker`work>
Mon_Ouie: I know. It just always looks so natural to me
<bricker`work>
Mon_Ouie: and of course you don't have to go searching for the method to know what the arguments being passed in are
<bricker`work>
*shrug*
Mooneye has quit [Remote host closed the connection]
<bricker`work>
I don't use it, just like to bring it up every once in a while to gauge everybody's opinions
tesaf has quit [Quit: Lost terminal]
<Mon_Ouie>
It's very rarely a problem to know what an argument is
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker`work>
probably
<Mon_Ouie>
Pretty much the only time I feel the need to check is when a method is called with a literal true/false
<bricker`work>
oh yeah :(
Zackio has joined #ruby
failshel_ has joined #ruby
SilkFox_ has joined #ruby
nanoyak_ has quit [Quit: Computer has gone to sleep.]
bmurt has quit []
mikesplain has quit [Ping timeout: 245 seconds]
_2_sexywoman has joined #ruby
<_2_sexywoman>
hi
vsoftoiletpaper has quit []
_2_sexywoman has left #ruby [#ruby]
Atttwww has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
mikesplain has joined #ruby
<centrx>
bricker`work, Documentation should not be part of the code. The code should be documentation.
failshel_ has quit [Ping timeout: 240 seconds]
<toretore>
the code should be omakase
<toretore>
the code should be tofu
Bira has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
rezzack1 has joined #ruby
sambao21 has joined #ruby
jackneill has quit [Remote host closed the connection]
rebelshrug has quit [Ping timeout: 260 seconds]
<ramfjord>
bricker`work: The other problem with those named looking arguments is that you can still do them in the wrong order
andrewjanssen has quit [Quit: Leaving...]
froy has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 250 seconds]
spyderman4g63 has quit [Remote host closed the connection]
p0sixpscl has joined #ruby
johny12 has joined #ruby
spyderman4g63 has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
jailbot has joined #ruby
nanoyak has joined #ruby
jailbot has left #ruby ["keep cool, stay in school"]
dbasch has joined #ruby
itspots has quit [Remote host closed the connection]
dangerou_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
itspots has joined #ruby
yfeldblum has joined #ruby
beneggett has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
spacemud has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
Mooneye has joined #ruby
johny12 has left #ruby [#ruby]
centrx has quit [Quit: Mead error: Connection reset by beer]
mallu has joined #ruby
vincent__ has joined #ruby
froy has joined #ruby
vincent__ is now known as Guest46514
yfeldblum has quit [Ping timeout: 240 seconds]
spacemud has joined #ruby
<mallu>
hi, I just started learning ruby, I'm going through codeacademy now.. what other sites/free classes would you call suggest I should follow?
Sirupsen has joined #ruby
lw has joined #ruby
sambao21 has joined #ruby
SBoolean has quit [Remote host closed the connection]
BadQuanta has quit [Remote host closed the connection]
danielpclark has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
vsoftoiletpaper has joined #ruby
beneggett has joined #ruby
Guest46514 has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
roolo has joined #ruby
<bricker`work>
"documentation should not be part of the code" makes me so sad :(
wallerdev has quit [Quit: wallerdev]
revoohc has quit [Quit: revoohc]
<bricker`work>
That argument *kinda* works for Java
workmad3 has joined #ruby
<bricker`work>
but if you think you can get away with writing Ruby without documentation...
<bricker`work>
I just wouldn't want to inherit one of your projects
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
yfeldblum has joined #ruby
wallerdev has joined #ruby
nmokru has joined #ruby
itspots_ has joined #ruby
lw_ has joined #ruby
lw_ has quit [Max SendQ exceeded]
timonv_ has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
lw_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
lw_ has quit [Max SendQ exceeded]
yfeldblu_ has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
banister has quit [Read error: Connection reset by peer]
jamto11 has joined #ruby
j_mcnally has joined #ruby
nanoyak has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
lw_ has joined #ruby
itspots has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
qmfnp has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
jerius has quit []
Sirupsen has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
banister has joined #ruby
Sirupsen has joined #ruby
<banister>
bricker`work i'd say totally the opposite
<banister>
bricker`work good ruby code is way way more declarative than good java code, due to the lack of boiler plate
<banister>
bricker`work the aim of the game is code should be self evident and clean that you don't need documentation, and while we sometimes fall short, in general a lot of our recent work code is like that
linojon has quit [Quit: linojon]
banisterone has joined #ruby
<banister>
transferring to my phone, that's banisterone
<banister>
sup banisterone
<banisterone>
Sup
banister has quit [Client Quit]
AndChat|102836 has joined #ruby
renderful has joined #ruby
jamto11 has quit [Remote host closed the connection]
devyn_ has joined #ruby
jimms has quit []
banisterone has quit [Ping timeout: 264 seconds]
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn has quit [Disconnected by services]
devyn_ is now known as devyn
AndChat|102836 has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
<sjouke>
that is what i was needing
<sjouke>
the difference between Rspec.configuration and Rspec.confiure is that one just lets you play with the other from within block
acrussell has quit [Quit: Leaving.]
thesheff17 has quit [Ping timeout: 264 seconds]
aaronmcadam has quit [Quit: Leaving...]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mallu has joined #ruby
<mallu>
hi, hope someone can help me, In irb I'm typing require 'bunny'. I'm getting LoadError: cannot load such file -- bunny. HOwever gem list is showing bunny
jameswlane has joined #ruby
<mallu>
any help would be greatly appreciated
jameswlane has quit [Excess Flood]
end_guy has joined #ruby
CorySimmons has joined #ruby
jameswlane has joined #ruby
jamto11 has joined #ruby
dbasch has quit [Quit: dbasch]
jameswlane has quit [Excess Flood]
b00stfr3ak has joined #ruby
<Mon_Ouie>
That just means there's a gem installed called bunny. The file to require doesn't have to be called bunny as well (although it almost always is)
sdrew has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
agarie has quit [Quit: Leaving...]
jameswlane has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jameswlane has quit [Excess Flood]
lw has quit [Ping timeout: 240 seconds]
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
<mallu>
Mon_Ouie: how can I find file to require is?
edgarjs is now known as edgarjs_afk
banisterfiend has joined #ruby
<Mon_Ouie>
Well since it's a gem surely it has some documentation/examples of how to use it?
<sjouke>
rspec is still spitting out deprecation warnings though
edgarjs is now known as edgarjs_afk
banisterone has joined #ruby
EminenceHC has joined #ruby
<banisterone>
bricker`work: did you reply yet, my internet is bad..
nateberkopec has quit [Quit: Leaving...]
jheg has quit [Quit: jheg]
camilasan has quit [Ping timeout: 256 seconds]
tjr9898 has quit [Remote host closed the connection]
<Mon_Ouie>
deprecation_stream = foo is setting a local variable
<Mon_Ouie>
It's not calling any method. You need to cal deprecation_stream= on config
<EminenceHC>
I am trying to do an include from an array, normally it is [1,2,3].include?(3) but in my case I want to check to see if one array includes any number from a different array like [1,2,3].include?([2,3]) What is the proper syntax?
<Mon_Ouie>
[2, 3].any? { |x| [1, 2, 3].include? x }
BRMatt has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
GriffinHeart has joined #ruby
atraylen has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has quit [Quit: Lost terminal]
andrewjanssen has joined #ruby
<AntelopeSalad>
how would you split up a string that's already inside of a heredoc?
dc has quit [Client Quit]
lw has quit [Client Quit]
<AntelopeSalad>
rubocop is ripping my face off when it comes to line length and most of my issues are due to having heredocs that have somewhat long lines
beauby has joined #ruby
xiq has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 264 seconds]
amacou has quit [Remote host closed the connection]
camilasan has joined #ruby
Zebroid has quit [Remote host closed the connection]
amacou has joined #ruby
Channel6 has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
foobarbaz_ has joined #ruby
<foobarbaz_>
Hi guys, just a quick question - is it possible to validate whether a filename is malcious or not?
GriffinHeart has quit [Ping timeout: 260 seconds]
BadQuanta has joined #ruby
<foobarbaz_>
Basically if the user input is something like './../foo.exe'
<foobarbaz_>
etc
ffranz has quit [Quit: Leaving]
beneggett has joined #ruby
andrewlio has quit [Quit: Leaving.]
p0sixpscl has quit [Quit: p0sixpscl]
<Mon_Ouie>
You'd have to check for many things. I think it may be best to just not make a filename depend on user input.
<Mon_Ouie>
A big one that surprised me recently: File.read("|echo 'Hello world!'")
amacou has quit [Ping timeout: 255 seconds]
AskSteve1 has joined #ruby
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<foobarbaz_>
Mon_Ouie: lol
<foobarbaz_>
Yeah, was thinking that maybe... but i'd like to be able to filter out things maybe
<foobarbaz_>
like provide service validation on params
SilkFox_ has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
<foobarbaz_>
But I imagine that I would always get it wrong, and some new form of attack would always be available...
<foobarbaz_>
m
<foobarbaz_>
hm
yfeldblum has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
Neomex has quit [Quit: Leaving]
Ulri[Away] is now known as Ulrike_Rayne
mikepack has joined #ruby
Beoran has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
jaimef has quit [Excess Flood]
godd2 has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
mocfive has joined #ruby
Bira has quit [Ping timeout: 245 seconds]
JacobHayes has joined #ruby
JacobHayes has quit [Remote host closed the connection]
JacobHayes has joined #ruby
yfeldblum has quit [Remote host closed the connection]
|RicharD| has quit [Quit: Sto andando via]
JacobHayes has left #ruby [#ruby]
yfeldblum has joined #ruby
tjr9898 has quit [Remote host closed the connection]
thesheff17 has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 245 seconds]
renderful has quit [Remote host closed the connection]
beneggett has joined #ruby
charliesome has joined #ruby
<byteddown>
Anyone available with reasonable rails knowledge, 3 or 4 hours to spare, and won't mind using voice? There'd be financial incentive involved, send me a pm.
jaimef has joined #ruby
iamjarvo has joined #ruby
juanjo has quit [Quit: Ex-Chat]
snath has quit [Ping timeout: 240 seconds]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
itmustbejj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
bmurt has joined #ruby
Sirupsen has joined #ruby
Beoran has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
<shevy>
byteddown the railsers are mostly on #rubyonrails
benzrf is now known as benzrf|offline
glebm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
Mooneye has quit [Quit: Leaving]
thrownaway has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]