<xqo>
i mean, like.. when do you choose Ruby as your weapon of choice?
<xqo>
what is it good for?
l_tonz has joined #ruby
<havenn>
xqo: Why is English good? What's the appeal? What is it good for?
<pipework>
xqo: great things.
<havenn>
xqo: The question is so broad it's hard to answer. Ruby is a general purpose language. It excels at making programmers happy.
<xqo>
oh, hey i know
<xqo>
What are Ruby's strengths, compared to other languages?
<xqo>
thats my question.
RobertBirnie has joined #ruby
<jsuth>
it excels at making programmers happy
<havenn>
xqo: People enjoy using it to get things done.
<jsuth>
express a lot with concise code. easily readable
diegoviola has quit [Ping timeout: 265 seconds]
<toretore>
up to a certain point, where it increasingly gets in your way
<pipework>
xqo: It's great.
<xqo>
ruby and python are kind of alike and have the same strengths?
<pipework>
The communities have some shared interests and strengths, and they both have differing interests and strengths too.
wallerdev has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
RegulationD has joined #ruby
Smigwell has joined #ruby
Smigwell has left #ruby [#ruby]
devoldmx has joined #ruby
northfurr has quit [Quit: northfurr]
Smigwell has joined #ruby
MeMoc has quit [Quit: Connection closed for inactivity]
ZiLi0n has quit []
<havenn>
xqo: Generally speaking the Ruby community is more adventurous and the Python community is more calculating. We have more foxes and chunky bacon in Ruby.
<havenn>
xqo: Maybe try both and see what appeals to you.
<xqo>
whatever does that mean?
A124 has quit [Read error: Connection reset by peer]
<havenn>
xqo: Our books may have soundtracks and mascots.
<Radar>
xqo: It really depends on what you want to do with Ruby.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenn>
xqo: And your aesthetic preferences.
<Radar>
Ruby has a really great web framework (Rails). Python has great math tools (SciPy)
PaulCape_ has joined #ruby
<pipework>
and it's okay to start with one or both and then switch to another or drop one.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jso has joined #ruby
mary5030 has joined #ruby
bruno- has joined #ruby
davedev24 has joined #ruby
mary5030 has quit [Remote host closed the connection]
cibs has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sagax has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
blackmesa has joined #ruby
mdih has joined #ruby
jessemcgilallen has quit [Ping timeout: 265 seconds]
|ifei5good has quit []
bruno- has quit [Ping timeout: 272 seconds]
sagax has joined #ruby
tkuchiki has joined #ruby
NightMonkey has quit [Read error: Connection reset by peer]
johnzorn_ has joined #ruby
djbkd has joined #ruby
cibs_ has quit [Ping timeout: 272 seconds]
Alazoral has joined #ruby
beauby has quit [Ping timeout: 250 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
idefine has quit []
blackmesa has quit [Ping timeout: 250 seconds]
acke has joined #ruby
fullofcaffeine has joined #ruby
tkuchiki has quit [Remote host closed the connection]
cwong_on_irc has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
acke has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
simplyianm has joined #ruby
BTRE has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
pontiki has joined #ruby
iwaffles has quit [Quit: iwaffles]
Rickmast_ has joined #ruby
havenn has joined #ruby
Akuma has quit [Quit: So long sukkas!]
RobertBirnie has joined #ruby
iamjarvo_ has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
simplyianm has quit [Ping timeout: 244 seconds]
Smigwell has quit [Ping timeout: 250 seconds]
havenn has quit [Client Quit]
cibs_ has joined #ruby
dnewkerk has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
baweaver has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
enlil is now known as sp_
bb010g has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 250 seconds]
fullofcaffeine has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
c_nick has joined #ruby
mary5030 has quit [Remote host closed the connection]
Soda has joined #ruby
mary5030 has joined #ruby
ndrei has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
diego1 has joined #ruby
nonnatus has quit [Remote host closed the connection]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
ramfjord has quit [Ping timeout: 250 seconds]
modern has quit [Quit: Leaving]
fullofcaffeine has quit [Remote host closed the connection]
l_tonz has quit [Remote host closed the connection]
r00t_ has joined #ruby
RegulationD has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
gener1c_ has joined #ruby
lessless has joined #ruby
mrtomme has joined #ruby
fred1807 has joined #ruby
Lucky__ has joined #ruby
<fred1807>
So, I installed the Ruby gem "T" to access my twitter from command line... And the app fails because it tries to open a X window session / internet browser for me to authorize the application........ ..... ....... .. . .. c'mon...
gener1c has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has joined #ruby
braincrash has quit [Quit: bye bye]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has joined #ruby
amystephen has joined #ruby
tkuchiki has quit [Remote host closed the connection]
favadi has joined #ruby
braincrash has joined #ruby
tkuchiki has joined #ruby
<BraddPitt>
you can authorize through the command line fred1807
<fred1807>
t authorize tries to open a Gui browser. but dont have X / desktop installed....
<fred1807>
any alternative?
amystephen has quit [Ping timeout: 240 seconds]
<BraddPitt>
ah
<BraddPitt>
not sure
c_nick has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<fred1807>
can you believe? "Lets authorize from command line...." $t authorize = Opens the desktop browser, so you can athorize....
allcentury has joined #ruby
gix has quit [Ping timeout: 268 seconds]
<Radar>
Shocking!
<Radar>
I mean, who these days uses a computer with a proper desktop setup? Plebs, that's who!
cibs has joined #ruby
c_nick has joined #ruby
<Radar>
It's clearly wrong of the author to assume that people use desktops these days.
<Radar>
You should write a nasty issue on the repo and give them what for!
tkuchiki has quit [Remote host closed the connection]
<fred1807>
It does not matter.... Lets say.... I will write a Operational system in Ruby... Then when the user runs the gem... It loads windows.exe... lol its the same
blackmesa has joined #ruby
ramfjord has joined #ruby
jsuth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 252 seconds]
yes`r has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
cibs_ has quit [Ping timeout: 272 seconds]
gix has joined #ruby
c_nick has left #ruby [#ruby]
<fred1807>
command line is command line for god sake... I want to run the twitter client inside a vps server, so I can send a load of useful information to other server apps... What now? Should I take an airplane to Amazon AWS DataCenter and plug a monitor on the bare metal server because "who is not using a proper desktop nowdays?".. Just kidding, but I cannot believe someone treats the command line philosophy like that
<Radar>
Sigh.
djbkd has joined #ruby
<Radar>
The creator of the gem made a decision, and you disagree with it.
<Radar>
You're employing at least ONE logical fallacy in your argument.
krz has joined #ruby
<fred1807>
no, he is totally wrong
<Radar>
If I had to pick which one, it'd be slippery slope.
acke has joined #ruby
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
<Radar>
TOTALLY wrong
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<fred1807>
utterly wrong
<Radar>
OF COURSE he's totally wrong... if 100% of his userbase was terminal-only users.
<Radar>
But, protip, they're not.
<Radar>
There is also a lovely little "Fork" button on GitHub that you could use to fix this problem for yourself :)
blackmesa has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fred1807>
if you write a command line tool, it is a command line tool.... You cannot depend on GUI for the SETUP process... End of question.. There is a load of twitter clients on github already... Hundreds only in Python, I had the "luck" to start with the ruby fake gem
<fred1807>
lets move on :P
pawnbox has joined #ruby
rushed has quit [Quit: rushed]
<Radar>
Did you get out of the wrong side of bed this morning?
rushed has joined #ruby
<fred1807>
I think so
djbkd has quit [Ping timeout: 244 seconds]
<fred1807>
a bad piece of code for twitter does not deserve such a rant, but my opinion would not change even in a bright rainbow sunny day
TheWhip has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 265 seconds]
acke has quit [Ping timeout: 264 seconds]
pocketprotector- has joined #ruby
dopie has joined #ruby
favadi has joined #ruby
<Coraline>
Um, who would want to use a command-line Twitter client from AWS?
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego1 is now known as diegoviola
charliesome has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
charliesome has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
eminencehc has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
<fred1807>
Coraline: AWS means nothings.. But a virtual server, from AWS's EC2 service, can be used to create a twitter wall presentation for an event, or public show. Another use is to let it runnign data mining a subjects or hashtag... Another option is to create a IOS App for a Iphone Game that publish the leadeboard scores to the game's timeline, so users followers can retweet.... Endless possibilities, as long one use a proper lang like python (jk again)
yes`r has quit [Ping timeout: 272 seconds]
ybian_ has joined #ruby
erasmus has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
Soda has quit [Remote host closed the connection]
<Coraline>
You have a choice of gems then.
astrobun_ has joined #ruby
<Coraline>
No one library is all-purpose.
sanjayu has joined #ruby
Axy has joined #ruby
l_tonz has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
tvon has quit [Quit: leaving]
iamse7en has joined #ruby
tkuchiki has joined #ruby
<sentionics>
Is it sane to write 2D games (like an RPG) in Ruby? There a good lib for that:
<sentionics>
*?
l_tonz has quit [Remote host closed the connection]
astrobun_ has quit [Read error: Connection reset by peer]
<Radar>
In your original example, you can also escape the pipe | and that'll return the result you want too.
devoldmx has joined #ruby
mrburied has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
julieeharshaw has quit [Ping timeout: 255 seconds]
<iamse7en>
ahh. okay.
ybian_ has quit [Quit: Leaving]
willardg has joined #ruby
willardg has quit [Client Quit]
Ropeney has joined #ruby
pilne has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
stardiviner has joined #ruby
diego1 has joined #ruby
ses1980 has joined #ruby
willardg has joined #ruby
<ses1980>
hi, is there a ruby equivalent to something like chmod +x file_path? the File class has chmod module but you have to set all the permissions
pilne has quit [Quit: I hit quit!]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
<ses1980>
unfortunately when googling this problem...there are a billion results explaining how to use chmod +x to make a ruby script executable
<ses1980>
i really don't want to have to parse out File.stat ... that's probably the wrong way
pilne has joined #ruby
jenrzzz has joined #ruby
<pontiki>
you shouldn't need to parse it, i think, or a bit mask equivalent. but it's still rather unfriendly. someone must have done something easier....
<pontiki>
(that's OR a bit mask)
davedev24 has quit []
iamse7en has left #ruby ["I'm out like a black kid in a spelling bee."]
Cyther has quit [Read error: Connection reset by peer]
TheWhip has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
tkuchiki has joined #ruby
ses1980 has joined #ruby
blackmesa has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<ses1980>
pontiki: sorry got disconnected. did i miss anything? yeah someone must have done something easier. the problem is finding the right way to sift through all the pages that explain how to chmod +x helloworld.rb
houhoulis has quit [Remote host closed the connection]
EllisTAA has joined #ruby
<EllisTAA>
0
grenierm has joined #ruby
moeabdol has joined #ruby
MeMoc has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
seaned__ has joined #ruby
fullofcaffeine has joined #ruby
acke has joined #ruby
<pontiki>
<pontiki> (that's OR a bit mask) [22:54]
craysiii has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 250 seconds]
<EllisTAA>
is an egine, e.g. template engine, something that processes code?
dikaio has joined #ruby
<pontiki>
usually, yes; ruby code is embedded in the template, the template engine executes that code and depending on the embed markup, can insert the results in the output
acke has quit [Ping timeout: 264 seconds]
<pontiki>
this is how ERB, Haml, Slim and others work
tkuchiki has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 244 seconds]
<pontiki>
also, fwiw, how PHP works
keen___________7 has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
Juanchito has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
roshanav_ has quit [Remote host closed the connection]
subscope has quit [Remote host closed the connection]
haraoka has joined #ruby
roshanavand has joined #ruby
platzhirsch has joined #ruby
SCHAAP137 has joined #ruby
DEA7TH has joined #ruby
KINGSABRI has quit [Read error: Connection reset by peer]
mrburied has quit [Ping timeout: 244 seconds]
sivoais has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
matp has quit [Ping timeout: 250 seconds]
herbst has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
astrobun_ has quit [Remote host closed the connection]
lipoqil has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Voker57 has joined #ruby
roshanavand has quit [Remote host closed the connection]
wnd has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
Technodrome has quit [Quit: Technodrome]
sivoais has joined #ruby
roshanavand has joined #ruby
wnd has joined #ruby
devoldmx has joined #ruby
roshanavand has quit [Remote host closed the connection]
pawnbox_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
pawnbox has joined #ruby
Pupp3tm4st3r has quit [Quit: Leaving...]
giuseppesolinas has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 240 seconds]
sivoais has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
_blizzy_ has joined #ruby
nertzy2 has joined #ruby
jud^ has joined #ruby
chipotle_ has joined #ruby
rushed has quit [Quit: rushed]
DylanJ has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
blizzy has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
borodin has quit [Ping timeout: 246 seconds]
nertzy3 has quit [Ping timeout: 240 seconds]
jud has quit [Ping timeout: 240 seconds]
chipotle has quit [Ping timeout: 256 seconds]
rubybeginner has quit [Read error: Connection reset by peer]
dhjondoh has quit [Quit: dhjondoh]
diegoviola has joined #ruby
andikr has joined #ruby
fullofcaffeine has joined #ruby
futilegames has joined #ruby
mark2 has joined #ruby
drptbl has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivoais has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
krisquigley has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
krisquigley has quit [Client Quit]
fullofcaffeine has quit [Ping timeout: 244 seconds]
sivoais has joined #ruby
karapetyan has quit [Remote host closed the connection]
Technodrome has joined #ruby
mikecmpbll has quit [Client Quit]
karapetyan has joined #ruby
roshanavand has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
matp has joined #ruby
<certainty>
shevy: what's cracking?
roshanavand has joined #ruby
blackmesa has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
radgeRayden has joined #ruby
Spami has joined #ruby
radgeRayden_ has quit [Ping timeout: 246 seconds]
roshanavand has quit [Remote host closed the connection]
sivoais has joined #ruby
Kendos-Kenlen has joined #ruby
Technodrome has quit [Quit: Technodrome]
<yorickpeterse>
morning
<BraddPitt>
early morning
radgeRayden_ has joined #ruby
charliesome has joined #ruby
pawnbox has joined #ruby
radgeRayden__ has joined #ruby
lxsameer has joined #ruby
mdih has quit [Ping timeout: 252 seconds]
matp has quit [Ping timeout: 246 seconds]
radgeRayden has quit [Ping timeout: 246 seconds]
radgeRayden has joined #ruby
mark2 has quit [Quit: Leaving.]
mark2 has joined #ruby
radgeRayden_ has quit [Ping timeout: 246 seconds]
l_tonz has quit [Remote host closed the connection]
radgeRayden_ has joined #ruby
radgeRayden__ has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
gagrio has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 268 seconds]
pontiki has quit [Remote host closed the connection]
anisha has joined #ruby
pontiki has joined #ruby
radgeRayden has quit [Ping timeout: 246 seconds]
sivoais has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
matp has joined #ruby
pontiki has quit [Remote host closed the connection]
pontiki has joined #ruby
brunto_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 268 seconds]
dikaio has quit [Quit: ........]
brunto has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
subshad has joined #ruby
senayar has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
lenwood has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
DEA7TH has quit [Quit: DEA7TH]
nertzy3 has joined #ruby
sivoais has joined #ruby
mdih has joined #ruby
matp has quit [Ping timeout: 244 seconds]
jud has joined #ruby
jud has joined #ruby
chipotle has joined #ruby
LiquidInsect has joined #ruby
charliesome has joined #ruby
shadoi has quit [Quit: Leaving.]
chipotle_ has quit [Ping timeout: 240 seconds]
nertzy2 has quit [Ping timeout: 240 seconds]
jud^ has quit [Ping timeout: 260 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
DanKnox has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
subshad has quit [Remote host closed the connection]
jgt has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
sivoais has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subscope has joined #ruby
wallerdev has joined #ruby
sivoais has joined #ruby
User458764 has joined #ruby
diegoviola has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
PierreRambaud has joined #ruby
coffeecupp has joined #ruby
coffeecupp has quit [Client Quit]
rakm has joined #ruby
Peg-leg has joined #ruby
bruno- has joined #ruby
sivoais has quit [Ping timeout: 252 seconds]
Ropeney has joined #ruby
postmodern has quit [Quit: Leaving]
sivoais has joined #ruby
fullofcaffeine has joined #ruby
khebbie has joined #ruby
zotherstupidguy has joined #ruby
marr has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
tvw has quit [Remote host closed the connection]
favadi has quit [Max SendQ exceeded]
<TTilus>
lunch time
bruno- has quit [Ping timeout: 268 seconds]
* TTilus
is plowin thru documentation to learn the fine art of creating R packages
RegulationD has joined #ruby
allcentury has joined #ruby
astrobun_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 264 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
sagittarian has joined #ruby
sivoais has joined #ruby
spider-mario has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
agit0 has quit [Quit: Leaving]
astrobun_ has joined #ruby
xrlabs has joined #ruby
fullofcaffeine has quit [Ping timeout: 246 seconds]
<xrlabs>
hey guys, how can I tell a "State"-object that it has a map and tile picker object without initializing these objects?
mrburied has joined #ruby
<bougyman>
vim + rubocop + syntastic folks: Is there a way to get the CopName to show?
<xrlabs>
the tile picker is initialized in the moment I create the state, but I don't want it to initialize until the state becomes the "active" state
<bougyman>
I see 2 options.rb|22 col 81 warning| Line is too long. [121/80]
TvL2386 has joined #ruby
<bougyman>
but I want Metrics/LineLength to show, too.
lenwood has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
codecop has quit [Remote host closed the connection]
sagittarian has quit [Ping timeout: 264 seconds]
nfk|laptop has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
olive____ has quit []
roshanavand has joined #ruby
sivoais has joined #ruby
rikai has joined #ruby
<bougyman>
oh, damn that was easy
<bougyman>
AllCops: DisplayCopNames: true
yfeldblum has joined #ruby
gagrio has joined #ruby
Azure has joined #ruby
dopamean_ has quit [Read error: Connection reset by peer]
jud^ has joined #ruby
dopamean_ has joined #ruby
DylanJ has joined #ruby
DylanJ has quit [Changing host]
DylanJ has joined #ruby
blaxter has joined #ruby
jud has quit [Ping timeout: 256 seconds]
sagittarian has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikai has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
djbkd has joined #ruby
sivoais has quit [Ping timeout: 244 seconds]
mrburied has quit [Ping timeout: 246 seconds]
brunto_ has quit [Ping timeout: 246 seconds]
Porfa has joined #ruby
sivoais has joined #ruby
brunto has joined #ruby
mrburied has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
Gnomethrower has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
krisquigley has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
leitz has joined #ruby
<leitz>
Okay, OOP learning. Does it make sense to have an object that does nothing but take another object and output attributes in a certain format?
<[k->
yes
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
leitz: that's a presenter
<leitz>
Cool, [k-, thanks! I guess that's my learning task for the day!
Technodrome has joined #ruby
subscope has joined #ruby
adambeynon has quit [Ping timeout: 240 seconds]
djbender has quit [Ping timeout: 240 seconds]
schaary has quit [Ping timeout: 240 seconds]
cardoni has quit [Ping timeout: 240 seconds]
rikai has joined #ruby
Azure|dc has joined #ruby
chrisseaton has quit [Ping timeout: 252 seconds]
bjeanes has quit [Ping timeout: 246 seconds]
rfv has quit [Ping timeout: 256 seconds]
<[k->
this obviously is on the right track to not violate the single responsibility principle!
Azure has quit [Ping timeout: 260 seconds]
tejasmanohar has quit [Ping timeout: 250 seconds]
vcoinminer has quit [Ping timeout: 250 seconds]
<xrlabs>
if i do State.new('a state', entities: [ UI::Map.new(args), UI::Menu.new(args) ], the menu gets created before the state and won't be able to access the state to set itself some variables
zzak has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 246 seconds]
huddy has quit [Read error: Connection reset by peer]
bb010g has quit [Ping timeout: 264 seconds]
pizzaops has quit [Ping timeout: 264 seconds]
hellschreiber has quit [Ping timeout: 264 seconds]
deimos_ has quit [Read error: Connection reset by peer]
tonini has quit [Read error: Connection reset by peer]
n1ftyn8_ has quit [Read error: Connection reset by peer]
charles81 has quit [Read error: Connection reset by peer]
avdi has quit [Read error: Connection reset by peer]
bcavileer has quit [Read error: Connection reset by peer]
ishikawa91 has quit [Read error: Connection reset by peer]
pfg has quit [Read error: Connection reset by peer]
skmp has quit [Read error: Connection reset by peer]
cstrahan has quit [Ping timeout: 256 seconds]
halfdan has quit [Ping timeout: 256 seconds]
kellabyte has quit [Read error: Connection reset by peer]
ELCALOR has quit [Read error: Connection reset by peer]
alxndr has quit [Read error: Connection reset by peer]
cek has quit [Ping timeout: 246 seconds]
bryancp has quit [Read error: Connection reset by peer]
<leitz>
Yeah, I'm voilating a lot of things. Trying to clean my act up a bit. :)
sivoais has quit [Ping timeout: 240 seconds]
khebbie has quit [Ping timeout: 240 seconds]
jeregrine has quit [Ping timeout: 240 seconds]
nyandoge has quit [Ping timeout: 240 seconds]
<xrlabs>
i'm just trying to tell the state's tile picker that it should should get the state's map's tiles
MiracleBlue has quit [Ping timeout: 246 seconds]
<[k->
xrlabs, would you like to hear the reason first or how to solve it first?
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xrlabs>
the reason [k-
<[k->
ok, the reason is because ruby is a strict language
<greenarrow>
lel
<[k->
this means that it evaluates the expression UI::Menu.new(args) first
<[k->
ruby will always evaluate the arguments to a method before running the method
<xrlabs>
alas no lazyness
sivoais has joined #ruby
<[k->
yes. exactly
manveru has quit [Ping timeout: 246 seconds]
lipoqil has quit [Ping timeout: 268 seconds]
<[k->
you can, however, use a proc to simulate laziness or, let the object do its own initialising
<xrlabs>
so I would need something to tell state what objects it will have, and then let state create them?
<[k->
yes, that is one way
<[k->
the other would just be proc { UI::Menu.new(args) }
last_staff has joined #ruby
<xrlabs>
in one instance, I used this code to create a menu item. Name and function to call: Entity::UI::MenuEntry.new('Exit', proc { System.exit_game })
<[k->
or, reconsider if UI::Menu should draw anything on the screen or should another object be handling that
<[k->
yes, it works the same way, or else, ruby will tell the System to exit the game long before the menu is even clicked
<xrlabs>
[k-, if you'd like to evaluate my source code, you can see that I'm in a real struggle to create states http://pastebin.com/bdZaFENf
<xrlabs>
in the end, the user will never really create a completely new state, just existing states with different values, I think
ndrei has joined #ruby
<[k->
you should document the code on why you are multiplying the 0 by 10 though
devoldmx has joined #ruby
<xrlabs>
the architectural design is much more confusing than the programming :)
<[k->
multiple that just makes it clearer and more expressive
<[k->
s/states/that/
<[k->
i meant it the other way round...
sivoais has joined #ruby
howdoi has joined #ruby
<[k->
i dont have much experience writing software myself
<xrlabs>
I think my whole approach is leading to a totally wrong direction
<[k->
yeah, laziness doesnt really fit into the language
<[k->
too much work
devoldmx has quit [Ping timeout: 250 seconds]
<xrlabs>
i guess i have to examine some other people's games
<xrlabs>
I mean, I could always just say Menu.new(parent: self), but how the hell should I do that inside of the creation of an object. this part is so confusing
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k->
maybe apeiros can spare you some advice :>
lxsameer has quit [Quit: Leaving]
Kendos-Kenlen has joined #ruby
<xrlabs>
it's funny how for every ruby error that can run into, there's a piece of rails source code that will tell you how to fix it. Ruby really is a microcosm
jokke has joined #ruby
bruno- has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
deimos_ has joined #ruby
tonini has joined #ruby
last_staff has joined #ruby
n1ftyn8_ has joined #ruby
<xrlabs>
*ruby problem, sorry
charles81 has joined #ruby
krz has quit [Quit: WeeChat 1.2]
charles81 has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
deimos_ has quit [Remote host closed the connection]
n1ftyn8_ has quit [Remote host closed the connection]
c0m0 has joined #ruby
Musashi007 has joined #ruby
<[k->
ruby is complex, you'll find out soon enough, when you begin to explore the boundaries and possibilities you can achieve in the language
roshanavand has joined #ruby
<c0m0>
Hi, How can I archive this Dir.glob("**/*.txt").each { |x| File.readlines(x) } ?
sivoais has joined #ruby
pusewicz has joined #ruby
charliesome has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
bruce_lee has joined #ruby
vcoinminer has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
avdi has joined #ruby
jeregrine has joined #ruby
bjeanes has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
huddy has joined #ruby
charliesome has quit [Client Quit]
matp has joined #ruby
alxndr has joined #ruby
[k- has quit [Ping timeout: 250 seconds]
<c0m0>
I would like to read every .txt file
roshanavand has quit [Ping timeout: 265 seconds]
schaary has joined #ruby
adambeynon has joined #ruby
pawnbox has quit [Remote host closed the connection]
hellschreiber has joined #ruby
charliesome has joined #ruby
terlar has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
astrobun_ has quit [Remote host closed the connection]
demonlove has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Voker57 has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
bruno- has joined #ruby
pizzaops has joined #ruby
<leitz>
On the Presenter class. Should there be multiple presenters for different output type (SRP) like CSV, wiki, etc? Or one presenter that takes an output format option? (DRY)
sivoais has quit [Ping timeout: 240 seconds]
[k- has joined #ruby
DaniG2k has joined #ruby
n1ftyn8_ has joined #ruby
gyre007 has joined #ruby
lipoqil has joined #ruby
bb010g has joined #ruby
DaniG2k has quit [Client Quit]
sivoais has joined #ruby
ELCALOR has joined #ruby
matp has quit [Ping timeout: 246 seconds]
BTRE has quit [Ping timeout: 246 seconds]
bryancp has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
cek has joined #ruby
deimos_ has joined #ruby
<[k->
the DRY one is still SRP
ramfjord has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Ping timeout: 264 seconds]
pawnbox_ has joined #ruby
charles81 has joined #ruby
halfdan has joined #ruby
manveru has joined #ruby
bcavileer has joined #ruby
it_tard has joined #ruby
nfk|laptop has quit [Disconnected by services]
it_tard is now known as nfk|laptop
lessless has quit [Ping timeout: 240 seconds]
kellabyte has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
momon has joined #ruby
momon has left #ruby [#ruby]
rfv has joined #ruby
djbender has joined #ruby
minimalism has quit [Quit: leaving]
DoubleMalt has quit [Ping timeout: 246 seconds]
skmp has joined #ruby
blackmesa has joined #ruby
jgt has joined #ruby
sivoais has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
cstrahan has joined #ruby
Kendos-Kenlen has joined #ruby
ishikawa91 has joined #ruby
sivoais has joined #ruby
MiracleBlue has joined #ruby
chrisseaton has joined #ruby
KnownSyntax_ has quit [Ping timeout: 255 seconds]
sankaber has joined #ruby
jenrzzz has joined #ruby
Rickmasta has joined #ruby
gagrio has quit [Ping timeout: 250 seconds]
nyandoge has joined #ruby
pfg has joined #ruby
apt-get has joined #ruby
BTRE has joined #ruby
djbkd has joined #ruby
KnownSyntax has joined #ruby
CloCkWeRX has joined #ruby
KnownSyntax_ has joined #ruby
avril14th has joined #ruby
haraoka has quit [Ping timeout: 252 seconds]
tonini has joined #ruby
sivoais has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 240 seconds]
sivoais has joined #ruby
KnownSyntax has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
skade has joined #ruby
`derpy has quit [Read error: Connection reset by peer]
`derpy has joined #ruby
atmosx_ has joined #ruby
cardoni has joined #ruby
pawnbox has joined #ruby
atmosx has quit [Read error: Connection reset by peer]
zzak has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
pawnbox_ has quit [Ping timeout: 246 seconds]
gagrio has joined #ruby
nfk|laptop has quit [Quit: yawn]
sivoais has quit [Ping timeout: 240 seconds]
TPBallbag has joined #ruby
techsethi has quit [Ping timeout: 240 seconds]
yashinbasement has joined #ruby
sivoais has joined #ruby
roshanavand has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
krisquigley has joined #ruby
norc has joined #ruby
greenarrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 240 seconds]
TPBallbag is now known as IcebergSlimm
herbst has quit [Remote host closed the connection]
yes`r has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
Azure|dc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 264 seconds]
techsethi has joined #ruby
nettoweb has joined #ruby
gagrio has quit [Ping timeout: 250 seconds]
gregoriokusowski has joined #ruby
greenarrow has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
mprelude has joined #ruby
blueOxigen has joined #ruby
charliesome has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 255 seconds]
phutchins1 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivoais has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
jgt has quit [Ping timeout: 264 seconds]
avril14th has joined #ruby
Guest___ has joined #ruby
Guest___ is now known as L8
L8 has quit [Changing host]
L8 has joined #ruby
futilegames has quit [Ping timeout: 265 seconds]
karapetyan has quit []
charliesome_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
karapetyan has joined #ruby
futilegames has joined #ruby
leafybasil has joined #ruby
tejasmanohar has joined #ruby
Oog has quit []
DoubleMalt has joined #ruby
yes`r has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
gagrio has joined #ruby
goobagar has quit [Quit: Connection closed for inactivity]
tvw has joined #ruby
subscope has joined #ruby
tier has joined #ruby
sivoais has joined #ruby
rodfersou has joined #ruby
roshanavand has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
khebbie has joined #ruby
matp has joined #ruby
sagittarian has quit [Ping timeout: 250 seconds]
KnownSyntax has joined #ruby
BeastMaster has joined #ruby
KnownSyntax_ has quit [Quit: Leaving]
stamina has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
futilegames has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 268 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
sivoais has quit [Ping timeout: 255 seconds]
apt-get has quit [Ping timeout: 265 seconds]
sivoais has joined #ruby
davedev24 has joined #ruby
tonini has quit []
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
JammyHammy has quit [Read error: Connection reset by peer]
demonlove has quit [Quit: Leaving]
tier has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 244 seconds]
jgt has joined #ruby
karapetyan has quit [Remote host closed the connection]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivoais has joined #ruby
subscope has joined #ruby
futilegames has joined #ruby
tonini has joined #ruby
ErfanBs has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
syath has joined #ruby
djbkd has joined #ruby
<ErfanBs>
what question mark means ? like even?, empty? and ...
<ghr>
usually means a method will return either true or false ErfanBs
futilegames has quit [Ping timeout: 250 seconds]
<ghr>
its only by convention though – so always worth checking the source of the method
<norc>
ErfanBs: Note, that you can also append the method name with ! - which by convention again indicates a method that has side effects, mostly the receiver.
<apeiros>
usually a pretty specific side effect even: mutating self
colegatron has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<izzol>
hmm, if I have in rspec expect() and I want to have something like if expect() true then puts false. I simply want to puts OK if expect will fail. There is some negation for expect? or I need to use "if" ?
futilegames has joined #ruby
sivoais has quit [Ping timeout: 260 seconds]
<izzol>
ohh I think expect().not_to
<norc>
izzol: Im actually trying to figure out why...
<izzol>
norc: I'm testing login page. If I can log in or not. But if not I'm getting something like: "Login Failed." And I simply want to check if I have it.
sivoais has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc>
izzol: Ahh. It sounded to me like you actually wanted skip there for a second.
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon has joined #ruby
banister has joined #ruby
rodfersou has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
<colegatron>
maybe simple question but I am not ruby programmer, just messing on a Vagrant file: I have a require "prefs.rb" in a ruby file. inside prefs.rb I define a class and create an instance (named 'servers') of that class. When referring to 'servers' in the main file inside a block I get the error: Path: <provider config: aws> Message: undefined local variable or method `instances' for main:Object
Aria has quit [Ping timeout: 255 seconds]
rodfersou has joined #ruby
subscope has joined #ruby
<norc>
Is there a way to dynamically generate a Method?
<norc>
I mean
<norc>
>> Method.new
<colegatron>
seems a scope issue, but I do not know how to handle it. Can't I define the 'server' instance as a global var?
<ruboto>
norc # => undefined method `new' for Method:Class (NoMethodError) ...check link for more (https://eval.in/447647)
L8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
futilegames has quit [Quit: futilegames]
<norc>
ghr: Ah beautiful :)
<norc>
workmad3: Learning Ruby. Heh.
karapetyan has joined #ruby
<norc>
ghr: Im actually curious why this is a method of Module rather than Class.
terlar has joined #ruby
<workmad3>
norc: just it makes a difference if you want to define a method, or just want something like a lambda/proc as an anonymous method to pass around ;)
<workmad3>
norc: because modules have methods too
sepp2k has joined #ruby
joonty has quit [Quit: joonty]
<workmad3>
norc: and Class inherits from Module, not the other way around
banister has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
<colegatron>
oh, found $variable!
<norc>
workmad3: Ah nevermind, I was confusing Class with RClass again.
<norc>
workmad3: Somehow the word "class" carries too many confusing meanings in Ruby.
fullofcaffeine has joined #ruby
<apeiros>
hu?
<workmad3>
norc: hmm, what's RClass?
<apeiros>
norc: how come? afaik there's exactly one kind of thing identified as "class" in ruby.
SylarRuby has joined #ruby
<shevy>
norc or modules that are classes :)
sivoais has quit [Ping timeout: 255 seconds]
<norc>
Ive been diving into the MRI lately to understand how Ruby works internally.
Porfa_ has joined #ruby
tkuchiki has joined #ruby
<workmad3>
norc: right... there's a big difference between the way classes are implemented and what 'class' means semantically in ruby
sivoais has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<norc>
workmad3: Indeed. And the barrier between the two starts to bleed when Ruby lets you inspect and toy with singleton_class for example.
roshanavand has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
greenarrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3>
norc: example please ;)
Pumukel has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
Porfa has quit [Ping timeout: 252 seconds]
Porfa_ is now known as Porfa
allcentury has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 240 seconds]
<norc>
workmad3: Its that core principle that I have been talking about the past days. Methods belong to classes, not objects.
<apeiros>
ah well, internals actually have a couple of things at odds with how it's presented
IcebergSlimm is now known as Ballkenende
subscope has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
<apeiros>
e.g. iirc most if not all instance methods of Object are actually defined in Kernel
<apeiros>
(but reported owner is still Object)
<norc>
workmad3: And thats why I intuitively (and naively) expected "define_methods" to be part of Class - but I really just mixed up the presentation and implementation there.
Ballkenende has quit [Disconnected by services]
roshanavand has quit [Ping timeout: 250 seconds]
TPBallba_ has joined #ruby
devoldmx has joined #ruby
<workmad3>
norc: classes are objects though
<workmad3>
norc: as are modules
TPBallba_ is now known as TPBallbag
<norc>
workmad3: And singleton_class lets you peek at the implementation. ;)
<workmad3>
norc: how so? ;)
skade has joined #ruby
err_ok has joined #ruby
sivoais has quit [Ping timeout: 250 seconds]
greenarrow has joined #ruby
icbm has joined #ruby
techsethi has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
edwinvdgraaf has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
sivoais has joined #ruby
<norc>
workmad3: Lets assume for a second you did not have the method
<norc>
workmad3: You could magically create class methods in your classes
<workmad3>
norc: not 'magically', but sure
dagda1_ has quit [Read error: No route to host]
<norc>
Now this singleton_class is what lets you tap that class that Ruby creates internally to give you the tools to implement class methods in the first place.
<workmad3>
norc: the singleton class is an explicit part of the semantic ruby object model though ;)
<workmad3>
norc: and has been long before the introduction of the (relatively recent) singleton_class method... there's even explicit ruby syntax for opening the singleton_class
yashinbasement has quit [Quit: Leaving]
<jhass>
namely def foo.bar; and class << foo; end;
<workmad3>
norc: e.g. `class << foobar` <-- opens the singleton class for foobar
CloCkWeRX has joined #ruby
<norc>
That only sets the default definee. Having an actual object reference is something else entirely.
TPBallbag is now known as Ballkenende
<workmad3>
norc: 'class << foobar; self; end' <-- has always returned the singleton class
<norc>
Or wait. The class << foobar - does the eigenclass become the default receiver for methods?
<norc>
ah!
skweek has joined #ruby
<workmad3>
norc: yes, class << foobar opens the singleton class
ndrei has joined #ruby
khebbie has quit [Ping timeout: 250 seconds]
<norc>
workmad3: Interesting. That syntax (commonly I see class << self) now makes sense.
Ballkenende is now known as TPBallbag
<norc>
Since "class methods" are just methods added to the classes singleton class, your syntax opens that singleton class, and lets me extend it...
<norc>
Right?
<workmad3>
norc: so yeah... singleton_class is part of the ruby object model at a semantic level (it's even part of the semantic rules for method lookup in ruby), not a leak of the implementation details
DoubleMalt has quit [Ping timeout: 250 seconds]
Kendos-Kenlen has joined #ruby
<norc>
Alright.
<workmad3>
norc: yeah... classes are objects, and the method lookup rules state to look at an objects singleton_class first for a method, so adding a method there adds a method into the lookup chain for just that object
sivoais has quit [Ping timeout: 256 seconds]
InternetFriend has joined #ruby
<workmad3>
norc: if you wanted to see a leak of the implementation detail, you normally need to play with ObjectSpace ;)
<norc>
Well its just a recursion down the class reference of the object until it finds a matching method in any method table, or a linked modules method table
apt-get has joined #ruby
<norc>
mmm
<workmad3>
norc: it's easier to say 'it walks along the `ancestors` chain of the class, and the singleton_class for an object is always at the start of the ancestors chain'
<norc>
Not sure I want to get into the GC just yet. :)
<workmad3>
norc: see how modules are just in the ancestors chain, so you can just walk along it, rather than recurse into a superclass repeatedly ;)
<workmad3>
(implementation wise, ancestors may be built doing just that, but at the ruby level, you can get away with talking about the ancestors list)
nateberkopec has joined #ruby
joonty has joined #ruby
<shevy>
why tis not simpler!
pusewicz has quit [Quit: Connection closed for inactivity]
codecop has quit [Remote host closed the connection]
<jhass>
shevy: for example?
karapetyan has quit [Remote host closed the connection]
<norc>
workmad3: That is interesting. Im guessing the output is in the method lookup order?
<workmad3>
norc: correct
<norc>
Cool
huddy has quit [Quit: Connection closed for inactivity]
ta has joined #ruby
sivoais has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
dorei has joined #ruby
TPBallbag has quit [Remote host closed the connection]
sivoais has joined #ruby
mikecmpbll has joined #ruby
CloCkWeRX has joined #ruby
techsethi has quit [Ping timeout: 265 seconds]
sagittarian has joined #ruby
weihan has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
armyriad has quit [Ping timeout: 272 seconds]
futilegames has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
solocshaw has quit [Ping timeout: 256 seconds]
skade has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
xet7 has joined #ruby
Kendos-Kenlen has joined #ruby
armyriad has joined #ruby
weihan_ has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
Jardayn has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
roshanavand has joined #ruby
sivoais has quit [Ping timeout: 265 seconds]
weihan has quit [Ping timeout: 260 seconds]
sivoais has joined #ruby
djbkd has joined #ruby
<shevy>
jhass the arbitrary separation in classes and modules for instance
karapetyan has joined #ruby
solocshaw has joined #ruby
<jhass>
shevy: so you want to be able to instantiate all your namespaces?
charliesome has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy>
jhass I want to be able to not have to think about whether I would use a class or a module and gain/lose functionality based on that
roshanavand has quit [Ping timeout: 250 seconds]
futilegames has quit [Read error: Connection reset by peer]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Client Quit]
<jhass>
that's not answering my question
karapetyan has quit [Remote host closed the connection]
<shevy>
it has been answered
<adaedra>
It's simple: if you have to instantiate, it's a class. Otherwise, it's a module.
beauby has joined #ruby
<jhass>
shevy: elaborate? since I obviously missed the part where it answers my question
subscope has joined #ruby
yosiat has joined #ruby
<shevy>
jhass see situations such as described by apeiros when he wanted to use #new on the toplevel constant
Spami has quit [Quit: This computer has gone to sleep]
<shevy>
adaedra I want to be able to not be limited
karapetyan has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
<jhass>
link?
<shevy>
link?
<adaedra>
limited by what
<shevy>
does a link exist?
<shevy>
adaedra being able to include or not, for instance
<adaedra>
shevy: how would including a class make sense?
phutchins1 has quit [Quit: WeeChat 1.1.1]
<shevy>
adaedra the behaviour becomes part of it
phutchins has joined #ruby
<[k->
that is extend, no?
yosiat has quit [Client Quit]
<adaedra>
It's code design, basically
<bnagy>
shevy: what's the difference between including a (parent) class and inherting?
TPBallbag has joined #ruby
<shevy>
bnagy precisely
sivoais has quit [Ping timeout: 264 seconds]
subscope has joined #ruby
<shevy>
of course you are limited to have just one direct subclass whereas you can include the behaviour of multiple other components, but only when they are modules
<bnagy>
are you wishing for ruby multiple inheritance?
<shevy>
I am wishing for no artificial limitations
<bnagy>
fair enough
<shevy>
adaedra yeah
<shevy>
anyone happens to know how python addresses this?
<adaedra>
I prefer having modules, so users don't instantiate things that are not intended to
<adaedra>
like, as jhass said, a namespace
<[k->
multi inheritance is disabled for safety
Guest25_ has joined #ruby
<[k->
|\\!//|
<bnagy>
they should just disable inheritance
<bnagy>
way more consistent :P
<shevy>
adaedra yeah but I remember how apeiros once had this toplevel namespace a class, and I was surprised about it until he said that he wanted to have #new on his toplevel namespace
sivoais has joined #ruby
naztharune has joined #ruby
<bnagy>
plus people would write better coedz
<shevy>
one could also have #new for the toplevel module of course :)
<adaedra>
shevy: if he wants to have an instance of it, a class is appropriate.
<adaedra>
Like I said above.
Guest25_ is now known as yosiat
sagittarian has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
yosiat has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 250 seconds]
<workmad3>
[k-: heh :) annoyingly, python has safe, deterministic MI... most of the MI issues are C++ specific ones, because the standard is very unclear on things like memory layout, lookup order, etc.
bkulbida has joined #ruby
TPBallbag has quit [Ping timeout: 272 seconds]
<shevy>
adaedra I assume that most projects will use a toplevel module
solocshaw has joined #ruby
yosiat has joined #ruby
WizJin has quit [Excess Flood]
<adaedra>
Yes, and?
futilegames has joined #ruby
<shevy>
do you have a project with a toplevel class?
WizJin has joined #ruby
<adaedra>
Can happen, if there's only the class
dionysus69 has joined #ruby
apt-get has quit [Remote host closed the connection]
<adaedra>
But I don't see where you're going to
stamina has quit [Quit: WeeChat 1.3]
krisquigley has joined #ruby
<[k->
s/to/with this/
<shevy>
I am going to Japan
gregoriokusowski has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
<adaedra>
Right
<adaedra>
I have things to do, see ya
Jaglor has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
sivoais has quit [Ping timeout: 272 seconds]
<leitz>
See you, adaedra.
decoponio has joined #ruby
riotjones has quit [Remote host closed the connection]
<[k->
he means have lunch
sivoais has joined #ruby
<adaedra>
no I don't
krisquigley has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
<[k->
or maybe he is going running and comeback in a few minutes because he is out of shape
devoldmx has joined #ruby
Trynemjoel has joined #ruby
jakobhans has joined #ruby
sgambino has joined #ruby
solocshaw has joined #ruby
weihan_ has quit [Ping timeout: 264 seconds]
weihan has joined #ruby
<norc>
What is the difference between #new and #initialize. Why is that distinction?
<norc>
Is this the differentiation between allocation and initialization?
_blizzy_ has quit [Ping timeout: 264 seconds]
<shevy>
norc for class instantiation, if you invoke .new, it will go through allocate() first and then initialize()
<shevy>
I don't know if you can modify allocate
devoldmx has quit [Ping timeout: 240 seconds]
<shevy>
I have to install and try out Slackel/Slackware, be back in a while
shevy has quit [Quit: ""]
icbm has quit [Quit: Computer sleeping]
TPBallbag has joined #ruby
<norc>
shevy: Does that mean attempting to call new without an initialize method defined will allocate for an object (and deallocate as the stack unwinds) ?
<leitz>
Feels like I'm chasing everyone off...starting to get a complex...
dstarh has joined #ruby
lxsameer has joined #ruby
<jhass>
norc: new is roughly defined as def self.new(*args); obj = allocate; obj.initialize(*args); obj; end
gregf has quit [Ping timeout: 246 seconds]
<[k->
no, the object will only be deallocated if the garbage collector deems so
sivoais has quit [Ping timeout: 256 seconds]
saddad has joined #ruby
<jhass>
norc: also there's a BasicObject#initialize, so you'd have to undef that
<norc>
Which would be the case in some point of the future because the stack unwinds before a reference to the object can be made?
<norc>
Ah.
beauby has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
sivoais has joined #ruby
<norc>
warning: undefining `initialize' may cause serious problems
<norc>
Heh.
cwong_on_irc has quit [Quit: Leaving.]
<jhass>
I never said it's a remotely good idea
solocshaw has quit [Remote host closed the connection]
<[k->
try removing the constant Object
beauby has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<norc>
jhass: I know, I was just smiling at the warning - never seen Ruby talk to me like that.
Caius has quit [Ping timeout: 256 seconds]
<norc>
jhass: But its interesting - I always implictely imagined there was something magical about new. I checked to understand your statement, and Class#new is indeed defined like that (except in C)
<jhass>
allocate is where the magic is
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
victortyau has joined #ruby
<norc>
By the way, I appreciate you guys helping me figure out Ruby from the inside. :)
e1senhorn has joined #ruby
<jhass>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<jhass>
;)
DEA7TH has joined #ruby
solocshaw has joined #ruby
allcentury has joined #ruby
<norc>
Valid point there.
krisquigley has joined #ruby
<norc>
jhass: Its really interesting because allocate() is the function that prevents singleton classes from being instantiated.
<norc>
Which makes sense, since new calls allocate.
RegulationD has joined #ruby
atmosx_ is now known as atmosx
<DEA7TH>
I have a customer_test.rb file which uses TestUnit. One of the methods, search, returns a subset of users - it requires populating the db with a few records. I feel that its tests deserve their own setup method and be grouped together. How is this achieved with test unit?
sivoais has quit [Ping timeout: 246 seconds]
atomical has joined #ruby
atomical has quit [Remote host closed the connection]
Caius has joined #ruby
marr has quit [Ping timeout: 246 seconds]
saddad has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
_blizzy_ has joined #ruby
sivoais has joined #ruby
radgeRayden__ has joined #ruby
m8 has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
terlar has quit [Ping timeout: 268 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
<norc>
DEA7TH: >> #rubyonrails since this belongs there. You can see my answer there
Kendos-Kenlen has joined #ruby
nietzschette has joined #ruby
freerobby has quit [Quit: Leaving.]
<nietzschette>
I need a thing made of things
atomical has joined #ruby
<nietzschette>
like, an endlessly recursive list
<jhass>
!fake
<jhass>
er
<jhass>
?fake
<ruboto>
Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<[k->
what is a recursive list
gusTester has quit [Quit: Leaving.]
fullofcaffeine has quit [Ping timeout: 244 seconds]
<[k->
a list that contains itself?
Igorshp has joined #ruby
<[k->
like some kind of double mirror?
<nietzschette>
orgenells make up cells. cells make up tissue. tissues make up a body a body makes up a population . . . .. etc etc etc
<DEA7TH>
norc: my question at #rubyonrails was different, this one is about TestUnit only. I need to group a few tests together, and have their own setup method.
<jhass>
nietzschette: sounds like a tree?
djbkd has quit [Ping timeout: 260 seconds]
<DEA7TH>
I think I'm going with shoulda-context
roshanavand has joined #ruby
<jhass>
nietzschette: what's your concrete problem? that's a finite list so far
<nietzschette>
a tree indeed, but with no centeral trunk
<DEA7TH>
but it's shocking that TestUnit doesn't support this without addons
khebbie has joined #ruby
<jmdrawneek>
I'm getting the error 'Users/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'bundler' (>= 0) among 14 total gem(s) (Gem::LoadError)' when I run this command through gulp but it works fine in terminal. Any idea what's going wrong?
<norc>
DEA7TH: Take a look at RSpec.
<norc>
DEA7TH: It provides all the facilities to do exactly what you want.
<jhass>
jmdrawneek: try gem install bundler
favadi has joined #ruby
krisquigley has quit [Remote host closed the connection]
roshanav_ has joined #ruby
<jmdrawneek>
jhass: Already installed it. That's the odd thing
<norc>
DEA7TH: Also, related to the other thing - there is a lot of resources around showing you how to work that with FactoryGirl (it is a very common combination in Rails)
<jhass>
jmdrawneek: run it again, exactly on the shell you get the error from
<nietzschette>
i get hung up simply using a 'group' parent class which contains an array populated with child classes
favadi has quit [Max SendQ exceeded]
<jhass>
nietzschette: maybe you're seeking for the component pattern?
<norc>
DEA7TH: It also allows for integration testing, syntax, etc.
<DEA7TH>
norc: yeah I know, I've used it
<jmdrawneek>
jhass: Said it installed 1 gem. Tried my gulp script and get the same error
p0wn3d__ has joined #ruby
<jhass>
jmdrawneek: what's rvm current ?
iamjarvo_ has joined #ruby
devdazed has joined #ruby
TvL2386 has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 260 seconds]
nfk|laptop has joined #ruby
<jmdrawneek>
jhass: rvm 1.26.11
<jhass>
jmdrawneek: no the command, rvm current
ducklobster has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<nietzschette>
maybe!? this is sort of a broad problem, not related to ruby specificly, but a ruby solution would be easy to grasp i think.
<jmdrawneek>
jhass: Oh sorry. ruby-2.2.1
solocshaw has quit [Ping timeout: 246 seconds]
<jhass>
mmh, weird
roshanavand has quit [Ping timeout: 240 seconds]
<nietzschette>
i need something sort of like a lazy enumerator
gusTester has joined #ruby
<jhass>
jmdrawneek: do you have some sort of debug/trace/verbose output that shows all commands executed? if so, full output of that -> gist
sivoais has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass>
looks like it was in 1.9.2 only
fullofcaffeine has joined #ruby
<jhass>
what would you want it for?
<mensvaga>
I have good ideas. Or at least I like to think I have good ideas :)
giuseppesolinas has joined #ruby
cdg has joined #ruby
<jmdrawneek>
jhass: Oh I've never made a wrapper before. Have to read up on it
<mensvaga>
I'm thinking about creating a base JSON document with some schema parts, and then seeing if I can use that to do some things with it.
<jhass>
1.9.2 is completely dead, it never saw widespread adoption even
fullofcaffeine has quit [Remote host closed the connection]
<jhass>
mensvaga: less vague?
sivoais has quit [Ping timeout: 246 seconds]
<mensvaga>
A graphical front end that edits structured data and stores structured data.
ndrei has quit [Ping timeout: 246 seconds]
<jhass>
if it was dropped from stdlib it was probably broken
gambl0re has quit [Ping timeout: 265 seconds]
kalusn has joined #ruby
<jhass>
you better code the GUI from the ground up, have a look at gir_ffi if you want to use Gtk with Ruby
diegoaguilar has joined #ruby
<mensvaga>
If JSON isn't it, I'm OK with it. I just want a graphical front end to edit structured data, similar to what json is capable of storing / representing.
sivoais has joined #ruby
dopamean_ has joined #ruby
icbm has joined #ruby
mdih has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
prefixed has joined #ruby
balazs has joined #ruby
terlar has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ItSANgo has quit [Quit: Leaving...]
davedev24 has quit []
<shevy>
more GUIs written in ruby would always be cool
solocshaw has quit [Ping timeout: 240 seconds]
acke has quit [Remote host closed the connection]
solocshaw has joined #ruby
sivoais has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
sivoais has joined #ruby
<BeastMaster>
hey shevy you like my new Nick?
WizJin has quit [Excess Flood]
<BeastMaster>
yesterday you said you like beast
djbkd has joined #ruby
monoprotic is now known as sebastian__
<shevy>
BeastMaster aha
freerobby has quit [Quit: Leaving.]
<shevy>
dunno, beast was short... short IRC nicks are nice, it was one reason why I shortened my old nick
xrlabs has quit [Quit: This computer has gone to sleep]
codecop has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivoais has quit [Ping timeout: 268 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
sivoais has joined #ruby
SylarRuby has quit [Remote host closed the connection]
WizJin has joined #ruby
krisquigley has joined #ruby
ksteck has joined #ruby
northfurr has quit [Quit: northfurr]
solocshaw has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 264 seconds]
xrlabs has joined #ruby
<hal_9000>
anyone here use a ruby-based todoist client?
solocshaw has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Excess Flood]
fullofcaffeine has joined #ruby
aaeron has quit [Quit: Leaving.]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Excess Flood]
SylarRuby has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Excess Flood]
riskish has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Excess Flood]
skweek has joined #ruby
<shevy>
not me. I used a primitive variant, my todo files are .md markdown files and I use kramdown for web-based display, or just have it loaded in my editor when locally
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Excess Flood]
kobain has joined #ruby
<hal_9000>
the most mature one i’ve seen so far is in python, but i’d like to be able to modify and/or contribute
seydar has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
riotjones has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
riotjones has quit [Read error: Connection reset by peer]
SylarRuby has quit [Ping timeout: 256 seconds]
sivoais has joined #ruby
aredridel has joined #ruby
The_Phoenix has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Max SendQ exceeded]
riotjones has joined #ruby
northfurr has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
RegulationD has joined #ruby
treehug88 has joined #ruby
lxsameer has quit [Quit: Leaving]
PaulCape_ has joined #ruby
rodfersou has joined #ruby
polishdub has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Ping timeout: 250 seconds]
<seydar>
i just switched to 2.2 from 1.9.3 (i know, i know)
<shevy>
seydar hah you were even slower than I was :)
<seydar>
i'm having trouble using god with 2.2
<leitz>
seydar, I think I give keyboards a workout when people tell me to upgrade from 1.8.7. :)
<leitz>
God probably uses Assembler..
<seydar>
leitz: i was just so comfortable and everything was running so smoothly on the old version! but i figure it's time. us old folks can't hang around forever
fullofcaffeine has joined #ruby
shoutsid has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<leitz>
seydar, I agree. Don't tell jhass, but if I could upgrade, I would.
sivoais has quit [Ping timeout: 260 seconds]
<jhass>
seydar: are we to guess your issue?
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 260 seconds]
UtkarshRay has quit [Quit: Leaving]
<seydar>
jhass: my first issue was that i forgot to switch my laundry, but i just fixed that
mary5030 has joined #ruby
aredridel has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 246 seconds]
roshanavand has quit [Remote host closed the connection]
nfk|laptop has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Ping timeout: 244 seconds]
TPBallbag is now known as Ballkenende
<seydar>
it's checking the wrong directory, and i can't figure out why. i even checked the rubygems generated code to make sure it was getting the right directory (it is)
eminencehc has joined #ruby
<skweek>
why does this still say nil error def initialize(name = "Anonymous", salary = 0.0)
Ballkenende is now known as TPBallbag
<skweek>
Employee.new.print_pay_stub
<shevy>
seydar and "gem env" also does not show it?
<shevy>
sorry
<shevy>
I meant gem list
SCHAAP137 has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
Kendos-Kenlen has joined #ruby
cwong_on_irc has joined #ruby
<jhass>
well, that's just broken
willardg has joined #ruby
s2013 has joined #ruby
<jmdrawneek>
ah
<jhass>
since the bundle exec is hardcoded, best do echo "source 'https://rubygems.org'\n gem 'livingstyleguide'\n" > Gemfile; bundle
<jhass>
I guess you're the first using that outside an application that already has a Gemfile or something
eikood has quit [Quit: byebye]
<Porfa>
howdy guys
<jmdrawneek>
So what does echo "source 'https://rubygems.org'\n gem 'livingstyleguide'\n" > Gemfile; bundle do?
sivoais has quit [Ping timeout: 272 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<shevy>
you put stuff into a Gemfile that will be created
arthurix has joined #ruby
Kendos-Kenlen has quit [Client Quit]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
bundle will read the info in that Gemfile and assumingly have the gem called "livingstyleguide" downloaded/installed
<jhass>
jmdrawneek: create a file with two lines
sivoais has joined #ruby
<jhass>
then call bundle that reads the file and installs the gems described there
dionysus69 has quit [Ping timeout: 250 seconds]
victortyau has joined #ruby
<Porfa>
i was wondering something… I'm doing all these small ruby script to automate some lil things, those scripts will be called by the user, from a webpage, on a web server, being run by www-data 'fcourse … the thing is, these scripts are being done on my account, with RVM… now.. is there a "thing" that i can do as root do clone all the RVM into www-data ?
<jmdrawneek>
jhass: ah I see
bruno- has joined #ruby
naztharune has quit [Quit: BitchX-1.1-final -- just do it.]
gaboesqu_ has quit [Read error: Connection reset by peer]
sankaber has quit [Remote host closed the connection]
<BeastMaster>
Zarthus I followed you, are you returning the favour?
sankaber has joined #ruby
p0wn3d__ has quit [Ping timeout: 244 seconds]
<Zarthus>
i suppose the website would be nice to get around again if they now offer more ruby challenges
<Zarthus>
especially for when I am bored out of my mind in school
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<asui>
Hi Everyone, I'm using a ruby script to display some information in i3blocks. I would like to get a colored output. If I use the colorize package + "".red i3block shows an error "Could not parse JSON" Is there any way to colorize the output in a way without adding some characters to the string?
dfockler has joined #ruby
aaeron has joined #ruby
atomical has joined #ruby
postmodern has joined #ruby
fretted has joined #ruby
<BeastMaster>
school is like a distant memory for me
sivoais has quit [Ping timeout: 240 seconds]
iwaffles has joined #ruby
shoutsid has quit [Remote host closed the connection]
sivoais has joined #ruby
p0wn3d__ has joined #ruby
asui has quit [Quit: Leaving]
leitz has joined #ruby
ndrei has joined #ruby
diegoaguilar has joined #ruby
mollusk has quit [Quit: Leaving]
ararog has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
skade has joined #ruby
<Thomas-0725>
asui, never used i3blocks, but it looks like it might have a built-in way to color text which does not rely on colorize. I couldn't find an actual reference, but here is an example: https://github.com/vivien/i3blocks/blob/master/scripts/cpu_usage
djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
djbkd has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
pilne has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
c0m0 has joined #ruby
havenn has joined #ruby
psy_ has joined #ruby
karapetyan has joined #ruby
psy_ has quit [Max SendQ exceeded]
sivoais has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 252 seconds]
psy_ has joined #ruby
<Thomas-0725>
asui, as an explanation for why your json is breaking, I believe it is because the way colorize makes text colorful is by inserting a control string of the form "^[[0;31;40m(In color)". I suspect the parser is struggling with the [[, but just a guess. Maybe someone else has a less speculative response. :)
sivoais has joined #ruby
zotherstupidguy has joined #ruby
Renich has joined #ruby
podman has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
rodfersou|lunch is now known as rodfersou
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
bruce_lee has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
krisquigley has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
shoutsid has joined #ruby
ericjphillips has quit [Quit: Leaving.]
dionysus69 has quit [Ping timeout: 255 seconds]
sivoais has quit [Ping timeout: 240 seconds]
andyrs has quit [Quit: I'm leaving now, bye.]
imperator has quit [Quit: This computer has gone to sleep]
sivoais has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
pecpec has joined #ruby
pecpec has quit [Client Quit]
<drbrain>
I think ^[ is the escape character
<drbrain>
… "\e" in ruby
hobodave has joined #ruby
Xiti has quit [Quit: Xiti]
tangentstorm has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
mrgaturus has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 250 seconds]
Xiti has joined #ruby
mrgaturus has joined #ruby
RegulationD has joined #ruby
blackmesa has joined #ruby
syath has quit [Quit: WeeChat 1.2]
mary5030 has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 250 seconds]
jmdrawneek has quit []
mary5030 has joined #ruby
gusTester has joined #ruby
fretted has quit [Quit: Leaving]
gusTester has left #ruby [#ruby]
shoutsid has quit [Remote host closed the connection]
shoutsid has joined #ruby
aaeron has quit [Quit: Leaving.]
enherit has joined #ruby
poikon has quit [Quit: Connection closed for inactivity]
jamto11 has joined #ruby
sivoais has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
RegulationD has quit [Ping timeout: 264 seconds]
sankaber has quit [Remote host closed the connection]
PaulCape_ has quit [Quit: .]
sankaber has joined #ruby
devoldmx has joined #ruby
RegulationD has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
pharaoh2 has joined #ruby
kobain has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
skade has quit [Ping timeout: 246 seconds]
rodfersou has quit [Ping timeout: 265 seconds]
aaeron has joined #ruby
mhib has joined #ruby
jpfuentes2 has joined #ruby
roshanavand has quit [Remote host closed the connection]
rodfersou has joined #ruby
karapetyan has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 264 seconds]
tangentstorm has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
sivoais has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
skade has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
iwaffles has quit [Quit: iwaffles]
lkba_ has joined #ruby
beauby has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
beauby has joined #ruby
skade has quit [Excess Flood]
benlieb has joined #ruby
eminencehc has joined #ruby
Oog has joined #ruby
User458764 has joined #ruby
noobguy has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
pandaant has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 240 seconds]
noobguy has quit [Read error: Connection reset by peer]
apt-get has quit [Read error: No route to host]
kobain has joined #ruby
apt-get has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
codecop has joined #ruby
darkf has quit [Quit: Leaving]
Macaveli has quit [Client Quit]
sivoais has joined #ruby
ramfjord has joined #ruby
northfurr has joined #ruby
blizzy has joined #ruby
jackjackdripper has joined #ruby
bender_unit has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
mrgaturus has quit [Ping timeout: 244 seconds]
JDiPierro has joined #ruby
deepu has joined #ruby
beauby_ has joined #ruby
<deepu>
has anyone use sys-proctable to measure memory usage?
skade has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
dagda1 has joined #ruby
mhib has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
shoutsid has quit [Remote host closed the connection]
shoutsid has joined #ruby
freerobby has quit [Quit: Leaving.]
nk8 has joined #ruby
<nk8>
hello world
<nk8>
:)
m8 has quit [Quit: Sto andando via]
freerobby has joined #ruby
<jhass>
hi
Soda has quit [Remote host closed the connection]
riotjones has joined #ruby
<nk8>
just wanted to intro myself... i'm a ruby newby from los angeles. hereby publicly promising to ask good questions and follow the rules :)
acke_ has joined #ruby
* erasmus
gags
sivoais has quit [Ping timeout: 240 seconds]
apt-get has joined #ruby
erasmus has left #ruby ["Namaste"]
swgillespie has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
troulouliou_dev has joined #ruby
<jhass>
welcome
toretore has quit [Ping timeout: 256 seconds]
sivoais has joined #ruby
aaeron has quit [Quit: Leaving.]
Renich has quit [Quit: leaving]
riotjones has quit [Ping timeout: 255 seconds]
Renich has joined #ruby
acke has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
<apeiros>
hi nk8, thanks for your self introduction, and welcome to the channel
nobitanobi has joined #ruby
aaeron has joined #ruby
<nobitanobi>
What's the difference between doing `<<` and `+=` to add an element into an array?
<apeiros>
<< mutates, += assigns a new array
<havenn>
nk8: hi fellow LA Rubyist!
s2013 has joined #ruby
<nk8>
thanks! I just forked the ruby-community website on github. I come from a front-end development background. Is there anything you guys would appreciate some contributions on?
<nobitanobi>
apeiros in terms of performance, what is considered better?
<shevy>
nobitanobi the latter will be slower because you will create a new object
benlieb has quit [Quit: benlieb]
`based_pdev` has joined #ruby
<nobitanobi>
ok thanks shevy
<nk8>
@havenn hello :)
shredding has joined #ruby
<shevy>
havenn you are in LA as well?
prestorium has joined #ruby
<havenn>
shevy: yup, sure am
<nk8>
LA in the house :-D
eminencehc has quit [Remote host closed the connection]
<havenn>
shevy: did you see that voodoo nonsense Tiobe site bumped Ruby up a bunch of spots? ;)
<jhass>
nk8: if you want to make us a unique design, that'd be very welcome ;) Join #ruby-community for dev talk etc
grenierm has joined #ruby
<havenn>
nk8: Make it pretty! :D
symm-_ has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
solocshaw has joined #ruby
<nk8>
I can make it pretty and clean, like ruby
based_pdev_ has quit [Ping timeout: 250 seconds]
aaeron has quit [Quit: Leaving.]
eminencehc has joined #ruby
sivoais has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 244 seconds]
<havenn>
nk8: Maybe add some foxes.
shoutsid has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
nobitanobi has quit [Quit: Page closed]
sivoais has joined #ruby
last_staff has quit [Quit: last_staff]
hobodave has joined #ruby
<atche>
I have a problem, while trying to include another class -- http://ix.io/lk6/ruby -- how can I make it call plop correctly? I can't `def self.plop` in this example or it won't find `c`
roshanavand has joined #ruby
Pumukel has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
tomchapin has quit [Client Quit]
yfeldblum has joined #ruby
casadei has joined #ruby
<jhass>
atche: first of all the include should be include X inside Foo::Bar
<jhass>
and if you want to call it like that make it def self.plop and use extend X instead of include X
kobain has quit [Max SendQ exceeded]
s00pcan_ has quit [Ping timeout: 260 seconds]
<Porfa>
so i have a question… regarding methods ( shevy [TIMESTAMP] )
nk8 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
<Porfa>
lets say that i have these sets of commands that i do very often and are unique for what i do, so if i turn those lines into a method, all i have to do later is call that method right?
<jhass>
sounds about right
sepp2k has quit [Quit: Leaving.]
<Porfa>
:D nice
sivoais has quit [Ping timeout: 265 seconds]
nk8 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
Porfa always. methods are like the assembly workers in your factory
<BraddPitt>
and you dont even have to pay them!
<shevy>
:)
sivoais has joined #ruby
stamina has joined #ruby
nk8 has quit [Client Quit]
cantaberry has joined #ruby
nk8 has joined #ruby
GarethAdams has quit [Ping timeout: 256 seconds]
brunto has joined #ruby
loechel has joined #ruby
<atche>
jhass: mhh, the question was about having a 'reverse include' that way
roshanavand has quit [Read error: Connection reset by peer]
<atche>
jhass: i know it looks a bit odd though
<jhass>
You can't call plop on Foo::Bar then
<jhass>
only on X
djbkd has joined #ruby
<jhass>
and since C is an instance method you'd still have to include X into something before you can call it
<jhass>
*c
<odigity>
Why not define +() method on Hash as an alias to merge so you can do hash1 + hash2?
<yorickpeterse>
I just spent 9 hours almost non-stop hacking on Socket code
<yorickpeterse>
ugurhghghblargh
<yorickpeterse>
MRI
<yorickpeterse>
I hate you
Oog has quit []
<odigity>
yorickpeterse, I hope your efforts are appreciated.
<yorickpeterse>
Did you know that if you create an Addrinfo with an Array, MRI will validate the actual address to make sure it's a valid IPv6 address (given the address family is set to AF_INET6)?
<shevy>
yorickpeterse what did you have to do?
<yorickpeterse>
But that it doesn't do so when you pass it a string returned from Socket.sockaddr_in?
<yorickpeterse>
meaning you can pass in bullshit addresses
<yorickpeterse>
e.g.
<shevy>
odigity no idea, perhaps there is a reason
<yorickpeterse>
>> require 'socket'; in = Socket.sockaddr_in(80, '127.0.0.1'); Addrinfo.new(in, Socket::PF_INET6);
<ruboto>
yorickpeterse # => /tmp/execpad-9f254ca200d4/source-9f254ca200d4:2: syntax error, unexpected keyword_in, expecting keyw ...check link for more (https://eval.in/447934)
<yorickpeterse>
err
<shevy>
>> { cat: 'tom' } + { mouse: 'jerry' }
<ruboto>
shevy # => undefined method `+' for {:cat=>"tom"}:Hash (NoMethodError) ...check link for more (https://eval.in/447935)
<yorickpeterse>
wait wtf, where's the syntax error
<yorickpeterse>
that does a syscall to getaddrinfo()
<yorickpeterse>
which then fails
sivoais has quit [Ping timeout: 255 seconds]
<yorickpeterse>
lol Ruby
<odigity>
shevy, I wouldn't want to waste their time. I can't be the first (or thousandth) person to think of it, so I assume there must be a reason it hasn't been done.
firstdayonthejob has joined #ruby
<yorickpeterse>
shevy: filing a bug about this is pointless, it's not going to be changed any time soon
<yorickpeterse>
since it would probably break compatibility
<yorickpeterse>
also I have exactly zero interest in filing 1203812093812309 issues for every oddity I come across
djbkd has quit [Ping timeout: 255 seconds]
<shevy>
odigity yeah I would assume so as well. I did not have the idea of using + on hashes before though
GarethAdams has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<darix>
yorickpeterse: will you fix it in rubinius though?:p
<odigity>
I'm more surprised it's not in activesupport, which is less conservative than ruby stdlib.
sivoais has joined #ruby
<shevy>
odigity you are possibly the first person to want this!
<shevy>
on planet earth!!!
Musashi007 has joined #ruby
trautwei_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse>
still a ton of other methods to fix
n008f4g_ has joined #ruby
shoutsid has quit [Remote host closed the connection]
<yorickpeterse>
and double checking if I fixed this one properly
yqt has joined #ruby
<yorickpeterse>
well fix as in mimic what MRI does
<yorickpeterse>
because MRI is totally the standard
<yorickpeterse>
and it re-raising system call errors is totally by design
<shevy>
craysiii yeah, other methods exist for that
<odigity>
craysiii, well, merge would be the correct analog, I think (not merge!). but I'm aware of it. I'm just saying + could be aliased to it, so hash1 + hash2 is equiv to hash1.merge(hash2)
<yorickpeterse>
The worst part is that while it passes the specs I have no idea if it's correct because it's correct, or just by coincidence
havenn has joined #ruby
krisquigley has joined #ruby
tercenya_ has quit []
EllisTAA has joined #ruby
<darix>
yorickpeterse: ask me again when i had a good amount of sleep :)
shoutsid has joined #ruby
paulcsmith has joined #ruby
<darix>
my next debug fun will be "find out which gem you updated in gitlab that broke the CI stuff" ;)
nk8 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darix>
this week was saltstack debugging
<yorickpeterse>
haha
<yorickpeterse>
Hey I don't update Gems
<yorickpeterse>
I just fix DB queries
<darix>
yorickpeterse: when you package more than one rails app you want to try avoid duplicated gems. and most of the time it just works. because you notice upstream hasnt touched that part of gemfile since 2013
Porfa has quit [Read error: Connection reset by peer]
<darix>
-.-
sivoais has quit [Ping timeout: 244 seconds]
<yorickpeterse>
did you see that dude packaging gitlab for debian?
nk8 has joined #ruby
<yorickpeterse>
It had like 300 apt dependencies
<yorickpeterse>
lol
Porfa has joined #ruby
<yorickpeterse>
some poor soul packaged all Gems as .deb packages
<yorickpeterse>
(I hope they scripted that out)
<jhass>
yeah, I heard you guys are having fun with praven
havenn has quit [Client Quit]
naztharune has quit [Quit: BitchX-1.2.1 -- just do it.]
<jhass>
they attempt(ed) the same for diaspora, took them two years
<shevy>
so this is nightmare
<yorickpeterse>
It's not a real Rails project until there are at least a 100 Gems in your Gemfile
<darix>
yorickpeterse: moment
<jhass>
in the process the versions where somewhere but not matching our Gemfile.lock of course
<shevy>
hahahaha
<jhass>
and then they were surprised it didn't work
<yorickpeterse>
"287 new packages will be installed. Do you want to continue?"
beauby_ has quit [Ping timeout: 240 seconds]
<darix>
i think the total with indirect stuff is about 390 packages
bender_unit has quit [Ping timeout: 246 seconds]
<yorickpeterse>
ha wow
sivoais has joined #ruby
<darix>
(390 includes base system)
<jhass>
darix: but you don't expect that to work with multiple rails app installed on the same system, right?
paulcsmith has quit [Ping timeout: 265 seconds]
<yorickpeterse>
you crazy
sepp2k has joined #ruby
<darix>
jhass: it does.
<darix>
very happily.
<yorickpeterse>
just git clone the repo
<yorickpeterse>
that's how people roll these days
<darix>
and i just had the idea what breaks the gitlab-ce CI stuff.
patdohere has quit [Read error: Connection reset by peer]
<yorickpeterse>
put some docker in the mix, boom, to the frontpage of HN
phutchins has quit [Ping timeout: 256 seconds]
<jhass>
yorickpeterse: bundle install --deployment in the packaging step isn't too bad either
shoutsid has quit [Remote host closed the connection]
<yorickpeterse>
darix: could be that my benchmarks broke whatever CI you're running :P
<yorickpeterse>
since they're not part of the test suite
<yorickpeterse>
* now
<darix>
jhass: it is the same as static linking. which is so "cool"
<yorickpeterse>
bro just deploy a single binary
<shevy>
what is static linking?
<yorickpeterse>
it's so easy
<yorickpeterse>
shevy: binary in which all dependencies are included
<yorickpeterse>
including any system libraries
nk8 has quit [Ping timeout: 265 seconds]
jamesaxl has joined #ruby
<shevy>
this is called linking?
<yorickpeterse>
so they're more portable at the cost of being fat and requiring a recompile if you want to update any of those dependencies (e.g. OpenSSL)
<jhass>
darix: dunno, 100-200 deps vs 10-20 does make a difference
<yorickpeterse>
dynamic linking is basically just using a pointer/symlink to the actual files
<shevy>
yeah, they are fatties. static coreutils bin/ has about 100mb in size :)
shoutsid has joined #ruby
JDiPierro has joined #ruby
<darix>
yorickpeterse: i also have discourse packaged. simple-rss needs a patch to work properly without fucking up charsets. all installations deployed from the rpm automatically got the fixed version. the one instance we deployed from "cool git" because the guy insisted on ubuntu .. we ran into the issue again. because yeah the gem on rubygems.org is unmaintained and we had to redeploy the patch to the bundle vendor
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darix>
copy
<jhass>
they're trying to convince us to basically blow away our Gemfile.lock for them
<dorei>
shevy: ldd some_executable
<shevy>
dorei hah for a moment I mixed up your nick with darix
<yorickpeterse>
now it's time for vidya games and tea
<darix>
shevy: "bundling gems" at packaging time is like static linking. because i cant just update the system gem and all apps on the system will use the fixed copy.
mrburied has quit [Quit: Leaving]
<darix>
anyway
<jhass>
well, let's be honest API stability is just not comparable in our ecosystem to the C etc ecosystem
<jhass>
fine, maybe it's that you generally have more deps and thus the likelihood of breakage increases
riotjones has joined #ruby
ttilley has quit [Quit: Leaving...]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
<jhass>
but I have too much stuff that breaks between two point releases or introduces some incompatibility with other dependencies or not to not lock on specific versions, especially since not doing that fulltime
sivoais has quit [Ping timeout: 265 seconds]
<jhass>
*or whatever
<darix>
jhass: and then your users/you get stuck on versions. miss security updates and win even more fun through that.
<darix>
and when you finally get around to fix your app to follow api changes it is even more work.
<jhass>
if I stop maintaining it, yes
tubuliferous has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
NeverDie has joined #ruby
<darix>
yorickpeterse: and with some small prepare packaging gems is easy to automate
<jhass>
if you don't have to meet debians policies that is
<pilne>
the behavior of the % operator is a bit odd to me when it comes to dealing with negative operands
kobain has joined #ruby
ruurd has joined #ruby
haylon has joined #ruby
<darix>
pilne: % operator in which context?
blizzy has quit [Ping timeout: 250 seconds]
kobain has quit [Max SendQ exceeded]
devoldmx has quit [Ping timeout: 240 seconds]
<pilne>
i.e. puts (-5 % 3) is 1, and puts (5 % -3) is -1. while puts (5 % 3) is 2 and puts (-5 % -3) is -2.
pocketprotector- has quit [Ping timeout: 268 seconds]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has quit [Read error: No route to host]
<darix>
ah % for numbers
<jhass>
pilne: it's modulo, not the remainder. If you want the remainder use, well, .remainder
benlieb has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
pocketprotector has quit [Ping timeout: 264 seconds]
<darix>
pilne: 5 % -3 is actually correct
symm- has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
<pilne>
ahhh, so i've been seeing it used lazily elsewhere
NeverDie has joined #ruby
symm-_ has quit [Ping timeout: 264 seconds]
justin2 is now known as justinweiss
<pilne>
not new to coding, but new to ruby, i feel it has a lot to offer
funkenstrahlen has joined #ruby
<funkenstrahlen>
hey, I have got this method: def self.upload(podcast_feed_url, client_secret_file_path = 'client_secret.json', video_category_id = '28')
<funkenstrahlen>
I call it like this: PodcastUploader.upload(options[:feedurl], options[:clientsecretfile], options[:videocategoryid])
<funkenstrahlen>
all options are set!
cornerman has quit [Read error: Connection reset by peer]
<funkenstrahlen>
however I get `upload': wrong number of arguments (3 for 0) (ArgumentError)
cornerman has joined #ruby
<funkenstrahlen>
why?
<jhass>
you're not hitting the definition you've shown then
hobodave has quit [Quit: Computer has gone to sleep.]
<jhass>
funkenstrahlen: is puts PodcastUploader.method(:upload).source_location so hard to try?
grenierm has joined #ruby
<funkenstrahlen>
jhass: I did try! It shows me line 10 in PodcastUploader as result. Exactly the method I try to call
Renich has quit [Quit: Lost terminal]
toretore has joined #ruby
<jhass>
then you didn't save the file or something
marr has joined #ruby
<funkenstrahlen>
maybe PodcastUploader.uploader is an instance method actually?
<funkenstrahlen>
does self.upload define it as class method?
ruurd has quit [Quit: ZZZzzz…]
<jhass>
yes
<jhass>
.uploader ?
<funkenstrahlen>
.upload
<funkenstrahlen>
type
<funkenstrahlen>
typo
<jhass>
from the code you've shown it's all correct
<jhass>
I think you're looking at some different code than you're running
<funkenstrahlen>
it worked nicely before when I did not use any parameters...
<darix>
funkenstrahlen: so do puts PodcastUploader.class
<funkenstrahlen>
ah yes!
<darix>
if you named the instance the same as the class ....
<funkenstrahlen>
I develop a rubygem for the first time
<funkenstrahlen>
so after test installing it my code uses the installed one!
<funkenstrahlen>
and not the local development on
<funkenstrahlen>
that's it!
<darix>
funkenstrahlen: ruby -Ilib ...
<darix>
or something
<jhass>
funkenstrahlen: you don't need to install your gem, just run your script with ruby -Ipath/to/your/lib
<darix>
will make sure it prefers the local copy
<darix>
faster :p
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rbowlby has joined #ruby
patdohere has joined #ruby
patdohere has quit [Max SendQ exceeded]
oetjenj has joined #ruby
fullofcaffeine has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
patdohere has joined #ruby
pocketprotector has joined #ruby
fullofcaffeine has joined #ruby
hobodave has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
JohnTheGreek has joined #ruby
ruurd has joined #ruby
<JohnTheGreek>
why should i favor an opinionated web framework instead of an unopinionated one ?
axl_ has quit [Quit: axl_]
yosiat has joined #ruby
tercenya has joined #ruby
hectortrope has quit [Remote host closed the connection]
<JohnTheGreek>
is this also the ruby on rails channel ?
<pipework>
JohnTheGreek: #rubyonrails
<pipework>
JohnTheGreek: Accepting the opinions of a framework means less decisions for you. Doing things the rails way leaves you to build the application.
<shevy>
JohnTheGreek the usual argument is that it may help you become more productive; whether this is true or not, I can't say, I did not invest enough time to be in a position to conclude
<shevy>
JohnTheGreek you may get a more balanced opinion when you ask e. g. why apeiros is using rails
skweek has joined #ruby
krisquigley has joined #ruby
<darix>
my answer would be ... go with "the rails way" until you understand *why* to deviate from it
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<trajing>
unpopular opinion: I didn't really like Rails so I started with Sinatra instead
<trajing>
still don't like rails
* trajing
shrusg
djbkd_ has joined #ruby
yes`r has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
Musashi007 has quit [Quit: Musashi007]
<jhass>
JohnTheGreek: another aspect is that those opinions usually come from experience and that is experience you don't have yet. They *can* be a useful guide protecting you from certain mistakes
krisquigley has quit [Ping timeout: 250 seconds]
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd_ has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
<dorei>
ruby off rails xD
giuseppesolinas has joined #ruby
futilegames has quit [Quit: futilegames]
yes`r has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 264 seconds]
<haylon>
I personally like Sinatra because of how simple it is to begin. RoR was definitely a lot going on at once for a newb
<haylon>
If I were developing a more substantial application, then I would go RoR
odigity has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
patdohere has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
patdohere has quit [Client Quit]
diego4 has joined #ruby
diego4 has quit [Changing host]
diego4 has joined #ruby
diegoviola is now known as Guest25185
diego4 is now known as diegoviola
SCHAAP137 has quit [Quit: Leaving]
Guest25185 has quit [Ping timeout: 246 seconds]
ucarion has joined #ruby
JDiPierro has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 244 seconds]
<ucarion>
Hi all, I'm trying to find a tech talk, I'm 99% sure a Japanese ruby-core developer gave it
<ucarion>
The speaker implements a language in assembly, then implements another language with his new language, and continues doing this until he has this really nice, high-level language
giuseppesolinas has quit [Quit: This computer has gone to sleep]
SCHAAP137 has joined #ruby
<ucarion>
anyone recall where I could find the slides?
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
ElSif has quit [Ping timeout: 250 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pilne>
sounds like word-for-word almost outta a review for sintatra/bourbon
tier has joined #ruby
blackmes1 has joined #ruby
<shevy>
ucarion in which language did that talk happen?
hectortrope has joined #ruby
<ucarion>
shevy: you mean human language? English
bruno- has joined #ruby
<shevy>
hmm
bruno- is now known as Guest79558
giuseppesolinas has joined #ruby
diegoaguilar has quit [Ping timeout: 246 seconds]
ucarion has quit [Remote host closed the connection]
yes`r has quit [Ping timeout: 240 seconds]
bweston92 has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
ttilley has joined #ruby
VeryBewitching has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bap1313 has joined #ruby
minimalism has joined #ruby
chipotle has joined #ruby
Channel6 has joined #ruby
dopie has quit [Quit: Leaving]
riotjone_ has quit [Ping timeout: 264 seconds]
<haylon>
What would I need to look into to be able to do something like, puts object.show_user("user01").auth_id ?
ttilley has quit [Ping timeout: 244 seconds]
<haylon>
if its even possible
giuseppesolinas has quit [Quit: Leaving]
Icey has quit [Quit: Leaving]
<jhass>
assign object to something that responds to show_user and returns something that responds to auth_id
chichou has joined #ruby
JohnTheGreek has left #ruby [#ruby]
jenrzzz_ has joined #ruby
<haylon>
Ok, because I'm trying to think of a way to have another class that would take the user01, then display a struct value, auth_id
<haylon>
Ok, thanks jhass
codecop has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
blackmesa has joined #ruby
decoponio has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
modern has joined #ruby
diegoaguilar has joined #ruby
<ddv>
haylon, why do you want to do that?
Jackneill has quit [Ping timeout: 240 seconds]
dikaio has joined #ruby
pawnbox_ has joined #ruby
yfeldblum has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
newdan has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Ping timeout: 256 seconds]
paulcsmith has joined #ruby
<pilne>
what is this! formatted interpolation is beautiful (:
p0wn3d__ has joined #ruby
hahuang65 has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
paulcsmith has quit [Client Quit]
eminencehc has quit [Remote host closed the connection]
ucarion has joined #ruby
<pilne>
i'm starting to think that out of the scripting languages, ruby is going to offer me the best balance of being able to program "functionally" while having a large selection of libraries (not, java/java-based are out of the question, every single one of them gives me a migrane LOL)
baweaver has joined #ruby
<pipework>
pilne: weird opinion, but alright.
lxsameer has joined #ruby
<pipework>
Also, programming functionally in ruby only extends as far as code you write, because most other code won't be functional.
<pilne>
i'm just trying to ease my transition from haskell, and it's packaging nightmare, to something with a more practical base and application.
<haylon>
ddv, I'm playing around right now with getting a user's data, and saving it in a struct. there might also be multiple users inside that, and to retrieve an individual user, pass that parameter
<haylon>
if that makes sense.
ldnunes has quit [Quit: Leaving]
<pilne>
I understand that, when i'm using someone elses' code, all i care about is that if it works, not if their brain works differently than mine (:
<ucarion>
shevy: I had to step away for a second, did you find the talk? :)
<shevy>
ucarion not really; ko1 is the only one to come to mind but the english of most japanese devs is so awful that I don't listen really
pawnbox has joined #ruby
Coldblackice_ has joined #ruby
ItSANgo has joined #ruby
petricore has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<ucarion>
shevy: hmm, doesn't seem to be there, but I think I'll look at Github repos of ruby devs, I might get lucky
freerobby has joined #ruby
<shevy>
well it's a simple selection process
<shevy>
there are only like 2 or 3 candidates with good english :D
freerobby has quit [Client Quit]
pawnbox_ has quit [Ping timeout: 240 seconds]
noethics has joined #ruby
dagda1_ has joined #ruby
nfk has joined #ruby
dagda1_ has quit [Client Quit]
Coldblackice_ has quit [Ping timeout: 250 seconds]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
haylon has quit [Quit: Leaving]
ngscheur1 has joined #ruby
neohunter has joined #ruby
<ucarion>
shevy: I don't think I saw the video of the talk, so I don't know how well the speaker spoke English
eminencehc has joined #ruby
ItSANgo has quit [Quit: Leaving...]
ngscheurich has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
<shevy>
don't know either, it may be Koichi Sasada, if not ... hmm
nerium has joined #ruby
<nerium>
I need to test API wrapper implementation against a (yet) non existing API. Is there a way to set up a fake server to do this?
apt-get has quit [Remote host closed the connection]
<nerium>
Something more sofisicated then a sinatra server
FernandoBasso has joined #ruby
ngscheur1 has quit [Ping timeout: 268 seconds]
RegulationD has quit [Remote host closed the connection]
tomphp has joined #ruby
coetry has quit [Ping timeout: 250 seconds]
dagda1 has joined #ruby
coetry has joined #ruby
Ropeney has joined #ruby
djbkd_ has joined #ruby
prefixed has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
simplyianm has joined #ruby
ucarion has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 244 seconds]
eminencehc has quit [Remote host closed the connection]
<shevy>
They said my 9 letter password was not good enough perhaps two times... the captcha also was wrongly solved ... upon failing to provide a proper password, the captcha will be different so I have to type it in again...
<shevy>
at that point I gave up. Why can't they learn from github???
<eam>
volunteer/committee driven orgs suffer from the same operational failings as government
fullofcaffeine has joined #ruby
rcvalle has quit [Quit: rcvalle]
chipotle has quit [Quit: cheerio]
baweaver has joined #ruby
dvarrui has joined #ruby
parduse has quit []
podman has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
ferz_ has joined #ruby
SamGerber has quit [Ping timeout: 265 seconds]
|ifei5g00d has quit []
Alazoral has joined #ruby
neanderslob has joined #ruby
chipotle has joined #ruby
Channel6 has quit [Ping timeout: 272 seconds]
ucarion has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 246 seconds]
dvarrui has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
Rollabunna has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
tier has joined #ruby
Jardayn has quit [Quit: Leaving]
brunto has quit [Ping timeout: 255 seconds]
speaking1ode has quit [Ping timeout: 252 seconds]
pawnbox_ has quit [Remote host closed the connection]
speaking1ode has joined #ruby
Lucky__ has joined #ruby
ucarion has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
djbkd_ has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
hectortrope has quit [Remote host closed the connection]
sekrit has joined #ruby
Channel6 has joined #ruby
djbkd_ has quit [Ping timeout: 244 seconds]
leafybasil has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
csaunders has quit [Ping timeout: 246 seconds]
eminencehc has quit [Remote host closed the connection]
nateberkopec has joined #ruby
l_tonz has joined #ruby
ksteck has quit [Ping timeout: 260 seconds]
pleiosaur has quit [Ping timeout: 255 seconds]
csaunders has joined #ruby
pleiosaur has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
ferz_ has quit [Quit: Leaving]
fullofcaffeine has quit [Read error: Connection reset by peer]
yqt has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
hectortrope has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.3]
charliesome has joined #ruby
Channel6 has quit [Quit: Leaving]
sanjayu has joined #ruby
fullofcaffeine has joined #ruby
bb010g has joined #ruby
jokke has quit [Quit: WeeChat 1.3]
jokke has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
speaking1ode has quit [Ping timeout: 244 seconds]
l_tonz has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
patdohere has joined #ruby
speaking1ode has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
leafybasil has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]