<jonmorehouse>
and that should happen on the class level. So the dsl is called completely from the class
grenierm has joined #ruby
<fennec>
then people can use DSLs to write their DSLs
<fennec>
instead of worrying about all this scope
<fennec>
;)
<jonmorehouse>
centrx: thats more keystrokes than just: class Screen; scroll_type :horizontal
<jonmorehouse>
fennec: :)
<soahccc>
How much of you are using zsh? I tried oh-my-zsh and I know there are a lot of plugins in there but I don't really like it. Is it me, zsh or oh-my-zsh? Or in other words: If I don't like oh-my-zsh should I stick with bash or try different plugins?
<centrx>
jonmorehouse, you can do that too
<soahccc>
and yeah i know that this is a ruby channel :o
InhalingPixels has quit [Ping timeout: 246 seconds]
<centrx>
jonmorehouse, def self.scroll_type(type); @scroll_type = type; end
emmesswhy has joined #ruby
<centrx>
jonmorehouse, but not using the eigenclass is an option too I guess
<fennec>
soahccc- not using zsh. bash is fine for my everyday interactions and i prefer to keep code out of it anyway. too bad about the security problems :b
<zrl>
How can I create an uninitialized local variable?
<jonmorehouse>
whats the difference between the eigenclass and the class<<self; (I refer to the latter as metaclass)
<zrl>
Is var_name = nil the best way?
<centrx>
zrl, yes
afhammad has quit []
hmsimha_ has quit [Ping timeout: 260 seconds]
lukeholder has joined #ruby
ki0 has joined #ruby
msmith_ has joined #ruby
braincra- has joined #ruby
j_mcnally has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
timonv_ has joined #ruby
ghostmoth has joined #ruby
ki0 has quit [Ping timeout: 260 seconds]
syva has joined #ruby
lkba has joined #ruby
braincrash has quit [Ping timeout: 272 seconds]
HelperW_____ has joined #ruby
boombadaroomba has joined #ruby
starless has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
<jonmorehouse>
centrx: I ended up switching to methods
<jonmorehouse>
centrx: everything is dynamically generated in the eigenclass
<centrx>
cool
timonv_ has quit [Ping timeout: 272 seconds]
<centrx>
yeah that is the standard style
jasonzzz_ has joined #ruby
jasonzzz_ has quit [Max SendQ exceeded]
<centrx>
you can use @var ||= for memoization
<jonmorehouse>
yeah, I didn't use attr_Accessor
<jonmorehouse>
I just made a get_var_name and a set_var_name
<jonmorehouse>
and then a method called var_name that calls the correct one based on args passed
troyready has quit [Ping timeout: 245 seconds]
jasonzzz_ has joined #ruby
jasonzzz_ has quit [Max SendQ exceeded]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombadaroomba has quit [Ping timeout: 246 seconds]
HelperW_____ has quit [Ping timeout: 246 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HelperW_____ has joined #ruby
seanosaur has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
omosoj has quit [Quit: leaving]
maestrojed has quit [Quit: Computer has gone to sleep.]
zeroNones has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
nettoweb has joined #ruby
TorpedoSkyline has joined #ruby
zeroNones has joined #ruby
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
jonr22 has quit [Quit: WeeChat 0.4.3]
starless has joined #ruby
doodlehaus has joined #ruby
benzrf is now known as benzrf|offline
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
c107 has joined #ruby
sdwrage_ has quit [Ping timeout: 246 seconds]
goshdarnyou has joined #ruby
syva has quit [Quit: syva]
sdwrage has quit [Ping timeout: 272 seconds]
skammer has joined #ruby
shock_one_ has joined #ruby
sdwrage has joined #ruby
lampd1 has joined #ruby
sdwrage_ has joined #ruby
niklasb_ has quit [Ping timeout: 260 seconds]
davasaurous has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
hamakn has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
zeroNones has quit [Read error: Connection reset by peer]
shock_one_ has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
hamakn has joined #ruby
skammer has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 258 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
dorei has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
kenneth has joined #ruby
echooo has joined #ruby
BTRE has quit [Ping timeout: 272 seconds]
ghostmoth has quit [Quit: ghostmoth]
zeroNones has joined #ruby
jonr22 has joined #ruby
wallerdev has quit [Quit: wallerdev]
deric_skibotn has quit [Ping timeout: 245 seconds]
hamakn has quit [Ping timeout: 258 seconds]
agent_white has joined #ruby
echooo has quit [Client Quit]
echooo has joined #ruby
yetanotherdave has quit [Ping timeout: 250 seconds]
wjimenez_ has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
bruno- has joined #ruby
msmith_ has joined #ruby
larissa has quit [Quit: Leaving]
tyll has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Ping timeout: 240 seconds]
tyll has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 246 seconds]
Scripore has joined #ruby
doodlehaus has quit [Remote host closed the connection]
diegoviola has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
yacks has joined #ruby
teddyp1cker has joined #ruby
BTRE has joined #ruby
ki0 has joined #ruby
tanath has quit [Ping timeout: 264 seconds]
<agent_white>
Evenin folks
spastorino has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
TorpedoSkyline has joined #ruby
pushnell has joined #ruby
Scripore has quit [Ping timeout: 245 seconds]
tanath has joined #ruby
mferrier has quit [Remote host closed the connection]
gsd has joined #ruby
GriffinHeart has joined #ruby
timonv_ has joined #ruby
krisquigley has joined #ruby
msmith_ has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 272 seconds]
ki0 has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
wallerdev has joined #ruby
HelperW_____ has joined #ruby
PanPan has quit [Read error: Connection reset by peer]
mattmcclure has quit [Quit: Connection closed for inactivity]
yetanotherdave has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bluehavana has quit [Quit: Connection closed for inactivity]
timonv_ has quit [Ping timeout: 260 seconds]
melik has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
HelperW_____ has quit [Ping timeout: 260 seconds]
jonr22 has quit [Quit: WeeChat 0.4.3]
HelperW_____ has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
AtumT has quit [Quit: AtumT]
alvaro_o has quit [Quit: Ex-Chat]
HelperW_____ has quit [Ping timeout: 260 seconds]
Scotteh has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Excess Flood]
angusiguess has quit [Ping timeout: 272 seconds]
msmith_ has joined #ruby
robbyoconnor has joined #ruby
rostam has joined #ruby
Scotteh_ has quit [Ping timeout: 260 seconds]
skolman has joined #ruby
jonmorehouse has quit [Ping timeout: 272 seconds]
maestrojed has joined #ruby
niklasb_ has joined #ruby
mocfive_ has quit [Remote host closed the connection]
mastr_bennett[x] has joined #ruby
mocfive has joined #ruby
Tricon has quit [Quit: Leaving...]
radic has quit [Disconnected by services]
radic_ has joined #ruby
seanosaur has quit [Remote host closed the connection]
jonr22 has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Xiti has quit [Quit: Leaving]
lampd1 has quit []
TorpedoSkyline has joined #ruby
mocfive has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
tjr9898 has quit [Remote host closed the connection]
TorpedoSkyline has quit [Client Quit]
Tricon has joined #ruby
lampd1 has joined #ruby
Kricir has quit [Remote host closed the connection]
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
lampd1 has quit [Read error: Connection reset by peer]
lampd1 has joined #ruby
msmith_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
niklasb_ has quit [Ping timeout: 260 seconds]
kil0byte has joined #ruby
rostam has quit [Remote host closed the connection]
lampd1 has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
sevvie has joined #ruby
mferrier has joined #ruby
mikepack has quit [Remote host closed the connection]
seanosaur has joined #ruby
mikepack has joined #ruby
rostam has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
seanosaur has quit [Client Quit]
seanosaur has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
seanosaur has quit [Client Quit]
rg4 has joined #ruby
skammer has joined #ruby
TorpedoSkyline has joined #ruby
mary5030 has joined #ruby
Wolland_ has quit [Remote host closed the connection]
axsuul has joined #ruby
angusiguess has joined #ruby
krz has joined #ruby
TorpedoSkyline has quit [Client Quit]
skammer has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
axsuul_ has joined #ruby
arup_r has joined #ruby
Kricir has joined #ruby
arup_r has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusiguess has quit [Ping timeout: 272 seconds]
nb_bez__ has quit [Quit: Connection closed for inactivity]
mferrier has quit []
braincra- has quit [Quit: bye bye]
maestrojed has quit [Quit: Computer has gone to sleep.]
msmith_ has joined #ruby
davasaurous has joined #ruby
msmith_ has quit [Remote host closed the connection]
braincrash has joined #ruby
dx7 has joined #ruby
sepp2k has joined #ruby
oo_ has joined #ruby
timonv_ has joined #ruby
lyanchih_ has joined #ruby
Wolland has joined #ruby
maestrojed has joined #ruby
Wolland_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
kil0byte has quit [Remote host closed the connection]
HelperW_____ has joined #ruby
kil0byte has joined #ruby
jonr22 has quit [Quit: WeeChat 0.4.3]
niklasb_ has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
oo_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
HelperW_____ has quit [Ping timeout: 260 seconds]
hiyosi_ has quit [Ping timeout: 246 seconds]
HelperW_____ has joined #ruby
mofai has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
yetanotherdave has quit [Read error: Connection reset by peer]
yetanotherdave has joined #ruby
maestrojed has joined #ruby
arup_r has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
bricker`LA has quit [Ping timeout: 245 seconds]
totimkopf has quit [Quit: Lost terminal]
HelperW_____ has quit [Ping timeout: 260 seconds]
TeresaP has joined #ruby
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
Rollabunna has joined #ruby
bluehavana has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
maestrojed has quit [Quit: Computer has gone to sleep.]
Rollabunna has quit [Read error: No route to host]
anaeem1_ has quit [Remote host closed the connection]
drawingthesun has quit [Ping timeout: 245 seconds]
drawingthesun has joined #ruby
Xiti has joined #ruby
shock_one_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
niklasb_ has quit [Ping timeout: 272 seconds]
mastr_bennett[x] has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
shock_one_ has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
dukz has joined #ruby
havenwood has joined #ruby
dukz has quit [Remote host closed the connection]
awc737 has joined #ruby
awc737 has quit [Max SendQ exceeded]
<zenspider>
jonathanwallace: welcome to java??? D:
hiyosi_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
skammer has joined #ruby
Kricir has joined #ruby
teddyp1cker has joined #ruby
hiyosi_ has quit [Ping timeout: 244 seconds]
dukz has joined #ruby
TheNet has joined #ruby
dx7 has quit [Remote host closed the connection]
jerius has joined #ruby
krisquigley has joined #ruby
angusiguess has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
skammer has quit [Ping timeout: 258 seconds]
jonmorehouse has joined #ruby
teddyp1cker has quit [Ping timeout: 260 seconds]
krisquigley has quit [Ping timeout: 258 seconds]
himsin has joined #ruby
himsin has quit [Client Quit]
fgo has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 272 seconds]
anaeem1_ has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
fgo has joined #ruby
TheNet has quit [Quit: Leaving...]
quanpower has joined #ruby
pu22l3r has quit [Remote host closed the connection]
lowandslow has quit [Ping timeout: 250 seconds]
jaredrhine has quit [Ping timeout: 240 seconds]
mburns has quit [Ping timeout: 245 seconds]
starless has quit [Quit: WeeChat 1.0]
timonv_ has joined #ruby
jaredrhine has joined #ruby
n_blownapart has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
mburns has joined #ruby
anaeem1 has joined #ruby
HelperW_____ has joined #ruby
cajone has left #ruby [#ruby]
wchun has joined #ruby
mclosson has joined #ruby
<n_blownapart>
good evening, I'm trying to use vagrant and a gem called vagrant-kvm. I can't sort out the error message here. thanks: http://pastie.org/9595736
Avahey has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Remote host closed the connection]
InhalingPixels has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
timonv_ has quit [Ping timeout: 272 seconds]
msmith_ has joined #ruby
ItSANgo has quit [Quit: Leaving...]
bricker`LA has joined #ruby
HelperW_____ has quit [Ping timeout: 260 seconds]
HelperW_____ has joined #ruby
fgo has joined #ruby
bbloom has quit [Ping timeout: 246 seconds]
lowandslow has joined #ruby
mocfive has joined #ruby
msmith_ has quit [Ping timeout: 244 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
patrick99e99 has joined #ruby
farn has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
HelperW_____ has quit [Ping timeout: 260 seconds]
Wolland_ has quit [Ping timeout: 250 seconds]
Jelco has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
Jelco has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
lowandslow has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
seanosaur has joined #ruby
jakolehm has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
nonmadden has quit [Quit: Leaving...]
jakolehm has quit [Client Quit]
sevvie has quit [Ping timeout: 272 seconds]
TeresaP has quit [Quit: TeresaP]
shock_one_ has joined #ruby
fgo has joined #ruby
vinleod has joined #ruby
seanosaur has quit [Ping timeout: 272 seconds]
TeresaP has joined #ruby
angusiguess has joined #ruby
jimmyy has quit [Ping timeout: 258 seconds]
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
anaeem1 has quit [Quit: Leaving...]
shock_one_ has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
jimmyy has joined #ruby
lowandslow has joined #ruby
_lucid_ has left #ruby [#ruby]
fgo has quit [Remote host closed the connection]
jimmyy has quit [Max SendQ exceeded]
nanoyak has joined #ruby
hiyosi_ has joined #ruby
anaeem1_ has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
abdulsattar has joined #ruby
skammer has joined #ruby
fgo has joined #ruby
hiyosi_ has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Client Quit]
duncannz has joined #ruby
zwq has joined #ruby
anaeem1_ has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
<pontiki>
hi, all!
skammer has quit [Ping timeout: 272 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quanpower has quit [Ping timeout: 258 seconds]
mr-foobar has quit [Quit: Leaving...]
vinleod has quit [Quit: Computer has gone to sleep.]
tectonic has joined #ruby
oleo__ has quit [Quit: Verlassend]
Tricon has quit [Quit: Leaving...]
mofai has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
dopie has joined #ruby
IceDragon_ has quit [Quit: Space~~~]
c107 has quit [Remote host closed the connection]
bruno- has joined #ruby
dopiee has quit [Ping timeout: 250 seconds]
n_blownapart has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
Spami has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
mityaz has quit [Quit: See ya!]
mocfive has quit [Remote host closed the connection]
sinkensabe has joined #ruby
teddyp1cker has joined #ruby
kireevco has quit [Quit: Leaving.]
mocfive has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
rezzack has quit [Ping timeout: 272 seconds]
koderok has joined #ruby
davasaurous has quit [Remote host closed the connection]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
acl_ has quit [Quit: ChatZilla 0.9.90.1 [Pale Moon 24.7.2/20140907202139]]
bbloom has joined #ruby
shock_one_ has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
farn has joined #ruby
Xiti` has joined #ruby
mercwithamouth has joined #ruby
Tomme has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
Xiti has quit [Ping timeout: 250 seconds]
bigkevmcd has joined #ruby
cajone has joined #ruby
swartwulf has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
swartwulf has joined #ruby
Tomme has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
robbyoconnor has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
kil0byte has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
bizarrosandwich has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
kate_r has joined #ruby
krisquigley has joined #ruby
emocakes has joined #ruby
mkaesz has joined #ruby
terlar has joined #ruby
ephemerian has joined #ruby
Shoomer has joined #ruby
hiall has joined #ruby
oo_ has joined #ruby
Wolland has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
holden247 has joined #ruby
timonv_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
alem0lars has quit [Quit: AFK..]
timonv_ has quit [Client Quit]
Wolland has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
wng_z3r0 has joined #ruby
Xeago has joined #ruby
Sawbones has quit [Ping timeout: 250 seconds]
kate_r has joined #ruby
justinmburrous has quit []
timonv_ has joined #ruby
zeroNone_ has joined #ruby
WormDrink has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeroNones has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
rkalfane has joined #ruby
timonv_ has joined #ruby
Juanchito has joined #ruby
mikepack has joined #ruby
<wng_z3r0>
Basic question: I have a .rb file that has some commands, which I believe are rake commands. How do I run it? I have tried rake <filename> or just ./<filename> and neither appear to work
<freezevee>
I think I am getting it.... |x| is used in a local kind of procedure like a "do", an iteration or something similar
jontmorehouse has quit [Ping timeout: 260 seconds]
<freezevee>
and @something is used only inside a method ?
hiyosi_ has joined #ruby
mityaz has joined #ruby
<freezevee>
and why don't you simply use "do x" in a self.each for example ?
bruno- has joined #ruby
Scotteh has joined #ruby
shock_one_ has quit [Quit: Computer has gone to sleep.]
<rg4>
the ruby parser wouldn't understand what you meant if you said "do x", it expects block locals to be surrounded by the | character, and instance variables are in scope for all methods of a given object, so it could be in scope for one or more methods.
govg has quit [Quit: leaving]
sepp2k has joined #ruby
merqlove has joined #ruby
hiyosi_ has quit [Ping timeout: 258 seconds]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
holden247 has left #ruby [#ruby]
robbyoconnor has joined #ruby
kate_r has joined #ruby
pgmcgee has quit [Ping timeout: 272 seconds]
Scotteh has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
Scotteh has joined #ruby
pgmcgee has joined #ruby
arup_r has quit []
Suchit has joined #ruby
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
<frankS2>
Which one is the preferred to use of rbenv and rvm?
Tomme has quit [Ping timeout: 258 seconds]
<sevenseacat>
its personal preference.
<havenwood>
frankS2: chruby
<sevenseacat>
thats what i use
vinleod has joined #ruby
mikecmpbll has joined #ruby
yfeldblum has joined #ruby
Suchit has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
Suchit has joined #ruby
* Hanmac
does just use ruby-trunk
jottr has joined #ruby
Axy has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bMalum has joined #ruby
Suchit has quit [Read error: Connection reset by peer]
Suchit has joined #ruby
<havenwood>
frankS2: chruby is nice for a minimalist option. RVM supports older Rubies that need patches and also handles installing, etcetera. With chruby you could use ruby-install or build Ruby yourself or even use RVM to install. RVM actually ships with MRVM (mini-RVM) which installs Ruby but uses chruby to switch Rubies.
<havenwood>
sevenseacat: i think most chruby users use ruby-install, ruby-build or build themselves though
<sevenseacat>
thats.... interesting
troulouliou_dev has quit [Remote host closed the connection]
<sevenseacat>
yeah that just makes sense, we use tools like chruby because we dont want all-in-one behemoths like rvm
<rg4>
rvm uses chruby now?
<havenwood>
rg4: just an option in rvm1, but there was just a mention of a possibility of chruby doing the switching for rvm2, i don't know how likely that is
<freezevee>
rg4: thank you
Xeago has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 245 seconds]
<freezevee>
Is it better to create user authentication and management by myself as a new ruby user (coming from PHP & python) or use a gem like "Devise" ?
<sevenseacat>
in a rails app? i would just dtop in devise
<sevenseacat>
drop even
syva has joined #ruby
<freezevee>
sevenseacat: yes in rails
<havenwood>
rg4: rvm2 is pretty ambitious, and nicely modular it seems
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<Hanmac>
sevenseacat: because ... rails? ;P they deserve it ;P
Sawbones has joined #ruby
bMalum has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
<sevenseacat>
he's using chef, not rails
teddyp1cker has quit [Ping timeout: 260 seconds]
AFKGeek has quit [Ping timeout: 272 seconds]
threesixes has quit [Remote host closed the connection]
mr_foobar_baz has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<agent_white>
Haha. How easily he could have figured it out if he asked what he wanted to do instead.
bluOxigen has quit [Ping timeout: 258 seconds]
bluOxigen has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
Gabri has joined #ruby
elstif has joined #ruby
charliesome has quit [Quit: zzz]
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
AFKGeek has joined #ruby
hiall has quit [Ping timeout: 245 seconds]
jonmorehouse has quit [Ping timeout: 260 seconds]
Hobogrammer has quit [Ping timeout: 244 seconds]
Sawbones has quit [Ping timeout: 245 seconds]
karupa is now known as zz_karupa
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
robustus is now known as robustus|Off
mikepack has joined #ruby
krisquigley has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
krisquigley has joined #ruby
Xeago has joined #ruby
kil0byte has joined #ruby
angusiguess has joined #ruby
skaflem has joined #ruby
Shoomer has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
Advocation has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
mr_foobar_baz has quit [Quit: WeeChat 1.0]
nettoweb has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
kaspertidemann has joined #ruby
cosa has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
cosa has quit [Client Quit]
ki0 has quit [Remote host closed the connection]
hiyosi_ has joined #ruby
Alina-malina has joined #ruby
startupality has joined #ruby
alem0lars has joined #ruby
InhalingPixels has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
ki0 has joined #ruby
decoponio has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
bricker`LA has joined #ruby
sk87 has joined #ruby
<andrew_234gv>
is it possible to do iterate through osd_at_index: <% @osds.each do |ip, osd_at_index| %> <% osd_at_index['disk_journal'].each do |disk, info| %>
hiyosi_ has quit [Ping timeout: 258 seconds]
sk87 has quit [Client Quit]
<sevenseacat>
have you tried it?
<andrew_234gv>
yes
<sevenseacat>
and?
Sawbones has joined #ruby
<workmad3>
damn, where's apeiros with his cross-posting banstick when you need him?
<lukevinc>
i purged ruby of my system, i will try to reinstall
<shevy>
in /usr/bin it would typically be from the base system /usr/bin/{ri,irb,ruby,gem} hmm and one more I forgot or so... I can find out if that is needed! and in /usr/lib/ruby* - but curiously enough, debian sometimes also installs into /usr/local/lib/ruby (!!!)
<flughafen>
shevy: i used to, i wish i did now, but I took a job in another city
<dorei>
it's one of the few german words i know, i was visiting a friend there and then had to travel to the airport to come back home and it was the only word i memorized in case i got lost :D
anaeem1_ has quit [Remote host closed the connection]
oleo has joined #ruby
<flughafen>
dorei: german has lots of memorizable words ;)
<shevy>
Unkraut
<shevy>
Kindergarten
<dorei>
ahtung :D
rylev has joined #ruby
<shevy>
you missed a 'c' before the 'h'
tripwire has joined #ruby
<dorei>
:)
livingstn has joined #ruby
<shevy>
this is one of the coolest words: "Donaudampfschifffahrtsgesellschaft"
kate_r_ has joined #ruby
bmurt has joined #ruby
* apeiros
switched from haml to slim
<apeiros>
even less noise
yfeldblum has joined #ruby
lukevinc has joined #ruby
<shevy>
it stems back from the pre-world war I era where there was an ARMY of ship vessels on the... danube river (which is pretty much a joke in itself this is how they looked - http://goo.gl/UjN0hx)
kate_r has quit [Ping timeout: 246 seconds]
<Hanmac>
shevy "Baumkuchen" ? ;P
<lukevinc>
sorry to bother you again, ruby installation was perfect, how i install rbi now? hehe
agjacome has quit [Quit: leaving]
gregf has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
krisquigley has joined #ruby
<flughafen>
baumkuchen und baumstriezel gefällt mir :)
<lukevinc>
ops, i entered in germany bunker, let me see.
vinleod has quit [Quit: Computer has gone to sleep.]
<lukevinc>
theres no irb in codeacademy, just ruby syntax.
<ddv>
that is pretty embarrasing, lukevinc
tkuchiki has joined #ruby
cocotton has joined #ruby
<lukevinc>
i just confused rbi with irb
cocotton has quit [Remote host closed the connection]
afhammad has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
Tuxero has joined #ruby
<lukevinc>
i know ruby has 5 rep blocks: loop, while, until, times and each.
shock_one has quit [Client Quit]
<lukevinc>
if you don't go wrong, you will never know where you are going. it's normal
shock_one has joined #ruby
RubNoob has joined #ruby
loly0 has quit [Quit: leaving]
<lukevinc>
but, i thought the source code of ruby would come with irb.
<rg4>
should
<sevenseacat>
it does.
afhammad has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
<soahccc>
I was thinking about screencasts with no cuts... Let people see how we work, not only the result of it
nettoweb has joined #ruby
<Mon_Ouie>
ddv: Yes
nettoweb has quit [Max SendQ exceeded]
<ddv>
Mon_Ouie: do you live in an rv traveling the world while coding ruby?
nettoweb has joined #ruby
<lukevinc>
no, it doesn't, i did ./configure, make and, make install, where is the goddamn irb?!?
freerobby has joined #ruby
<wasamasa>
why did you do that?
dkam has quit [Quit: dkam]
<wasamasa>
just install it with your package manager, you silly person
shock_one has quit [Ping timeout: 260 seconds]
<sevenseacat>
because he's a silly person
<lukevinc>
^your ma
<sevenseacat>
and didnt use any of the multiple tools out there that will install and set up ruby for you
<wasamasa>
^
boombadaroomba has joined #ruby
<lukevinc>
i compiled exactly the docs of ruby said.
<wasamasa>
if you're on a system that comes with an outdated ruby and don't have a simple way of setting those up, use rbenv, chruby, whatever
<wasamasa>
but don't circumvent your package manager and install system-wide
<wasamasa>
unless you know what the hell you're doing
<lukevinc>
how i will install irb now?
Scripore has joined #ruby
kamilc__ has joined #ruby
<soahccc>
wasamasa: well i wouldn't recommend the package manager way for ruby to be honest
<lukevinc>
yes, i sleep with your ma, i'm a silly boy
<sevenseacat>
depends on the package manager - for ubuntu, definitely not
angusigu1ss has joined #ruby
<rg4>
lol
<lukevinc>
i installed the tar.gz of ruby2.1.3
<wasamasa>
soahccc: well, thank you, I'm on a system that comes with 2.1.2
<sevenseacat>
btw cracking dumb 'your mum' jokes wont win you any favour here
<lukevinc>
they started, i don't are responsible for this.
<soahccc>
wasamasa: which system is that?
<wasamasa>
soahccc: an arch linux system
banister has quit [Read error: Connection reset by peer]
<wasamasa>
soahccc: same thing would apply to fedora, gentoo, nixos, ...
<wasamasa>
soahccc: probably even osx people who use brew
Macaveli has quit [Ping timeout: 258 seconds]
banister has joined #ruby
ghr has joined #ruby
<soahccc>
wasamasa: well on OS X there is even ruby preinstalled
<wasamasa>
soahccc: yes, a very old and outdated one
<sevenseacat>
latest osx only comes with 2.0.0
<sevenseacat>
before that, 1.8.7
<wasamasa>
sevenseacat: hmm, good to hear they at least fixed that
<soahccc>
but on OS X I would use chruby/rbenv anyway at least for dev.
boombadaroomba has quit [Ping timeout: 246 seconds]
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140830210550]]
<sevenseacat>
i would use chruby/ruby-build or ruby-install on any system.
Guest54656 has quit []
<lukevinc>
i said i installed through tar.gz, i need the irb.
noop has quit [Ping timeout: 250 seconds]
<sevenseacat>
because i need multiple versions installed
<soahccc>
sevenseacat: or that :) Don't you like ruby2.0 ? :P
angusigu1ss has quit [Ping timeout: 258 seconds]
<sevenseacat>
i dont have any ruby 2.0 apps - i have some 2.1 and more 1.9.3
<sevenseacat>
got the last app off 1.8.7 a couple months ago \o/
kaspertidemann has joined #ruby
<lukevinc>
how i install irb for ruby2.1.3?
<soahccc>
sevenseacat: I meant that you can have multiple rubies but they are getting linked like that
<soahccc>
sevenseacat: on ubuntu
msmith_ has joined #ruby
<sevenseacat>
yeah thats retarded by ubuntu
<flughafen>
anybody here using vim-ruby in vim?
teddyp1cker has joined #ruby
<Mon_Ouie>
ddv: No :p I've always been in Belgium.
jerius has joined #ruby
<ddv>
Mon_Ouie: Oh ok :)
<lukevinc>
damn, hahaha, irb is already installed, thanks everybody, i love you, don't take this personal \o/
<lukevinc>
i was typing rbi
<sevenseacat>
again??
aganov has quit [Ping timeout: 260 seconds]
<lukevinc>
yes
<rg4>
you should alias rbi='irb'
<wasamasa>
lol
<lukevinc>
good suggestion
<lukevinc>
i think it's because of ri
pdoherty has joined #ruby
<lukevinc>
every tool of ruby starts with r
<wasamasa>
"RBI, the legasthenic's favourite Ruby REPL™"
abdulsattar has joined #ruby
<lukevinc>
wft is irb?
<Nowaker>
alias x='bundle exec'
<Nowaker>
my favorite
<sevenseacat>
i have `be` aliased for bundle exec
<wasamasa>
lukevinc: far from it
mastr_bennett[x] has joined #ruby
zorak8 has joined #ruby
<lukevinc>
yes, there's gem tool too, starts with g, jesus
<rg4>
lol
<lukevinc>
bb fellas.
mastr_bennett[x] has quit [Client Quit]
lukevinc has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.8.0/20000101000000]]
<ddv>
there is also god-b
<ddv>
god-rb
Advocation has joined #ruby
<banister>
ddv it was you who wrote IRT right?
<ddv>
banister: nope :)
teddyp1cker has quit [Ping timeout: 260 seconds]
doodlehaus has joined #ruby
yfeldblum has joined #ruby
dangerousdave has joined #ruby
AtumT has joined #ruby
Xiti has joined #ruby
abdulsattar_ has joined #ruby
abdulsattar_ has quit [Client Quit]
abdulsattar has quit [Remote host closed the connection]
abdulsattar has joined #ruby
sailias has joined #ruby
andikr has quit [Remote host closed the connection]
elstif has joined #ruby
bricker`LA has joined #ruby
tesaf has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has joined #ruby
dangerousdave has joined #ruby
sk87 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
artmann has quit [Remote host closed the connection]
antlong has joined #ruby
antlong_ has joined #ruby
subopt has quit [Remote host closed the connection]
Davedo has quit [Ping timeout: 240 seconds]
antlong is now known as Guest55658
subopt has joined #ruby
fgo has quit [Remote host closed the connection]
shock_one has joined #ruby
jonr22 has joined #ruby
ht__ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
rylev has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Channel6 has joined #ruby
mikepack has joined #ruby
AlexRussia has quit []
ht__th has quit [Ping timeout: 250 seconds]
Davedo has joined #ruby
AlexRussia has joined #ruby
cocotton has quit [Remote host closed the connection]
endash has joined #ruby
benzrf is now known as benzrf|offline
cocotton has joined #ruby
Takle has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
sanguisdex has joined #ruby
Ankhers has joined #ruby
Mia has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
narendraj9 has joined #ruby
rylev has joined #ruby
narendraj9 is now known as Guest65893
<sanguisdex>
so I am new to cent and rvm so know that I am missing some basic concept. For some reason when I try too run gem from sudo it can't find the bin file
buub has quit [Ping timeout: 240 seconds]
hiyosi_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LudicrousMango has quit [Remote host closed the connection]
LudicrousMango has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
<rg4>
try rvm use X.X.X, what is cent btw?
<sevenseacat>
presuming centos
zekriad has joined #ruby
pu22l3r has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
hiyosi_ has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
whitewalrus has left #ruby ["Leaving..."]
<sanguisdex>
yes sorry s/cent/centos/
<rg4>
got ya
LudicrousMango has quit [Ping timeout: 250 seconds]
Ankhers has quit [Remote host closed the connection]
shock_one has joined #ruby
cocotton has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
ki0_ has joined #ruby
Kricir has joined #ruby
ki0 has quit [Read error: Connection reset by peer]
enodata has joined #ruby
djdb has joined #ruby
Tony23 has quit []
elstif has quit [Quit: Leaving.]
parduse has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
parduse has quit [Client Quit]
elstif has joined #ruby
hellangel7 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
parduse has joined #ruby
lampd1 has joined #ruby
tjr9898 has quit [Ping timeout: 272 seconds]
parduse has left #ruby [#ruby]
parduse has joined #ruby
klmlfl has joined #ruby
buub has joined #ruby
skolman has quit [Remote host closed the connection]
shackleford has joined #ruby
shackleford has left #ruby [#ruby]
skolman_ has joined #ruby
nettoweb has joined #ruby
wald0 has quit [Quit: Lost terminal]
blueOxigen has quit [Ping timeout: 246 seconds]
Stalkr_ has joined #ruby
joonty has quit [Quit: Leaving]
rostam has quit [Remote host closed the connection]
Ankhers has joined #ruby
ht__ has quit [Read error: Connection reset by peer]
rostam has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
az has quit [Quit: WeeChat 0.4.2]
skolman_ has quit [Ping timeout: 244 seconds]
az has joined #ruby
coderdad has joined #ruby
braincrash has quit [Quit: bye bye]
MrBoolean has quit [Ping timeout: 250 seconds]
skolman_ has joined #ruby
ndrei has quit [Quit: leaving]
rostam has quit [Remote host closed the connection]
<tobiasvl>
you call join on an array. what join does is that it takes each element of the array it was called on (self) and joins them together to a string, using its argument " hello " to join them
<tobiasvl>
the " is the string delimiter. you don't know what a string is, do you?
wallerdev has quit [Quit: wallerdev]
<rubie>
ohhh hence the name join
<rubie>
"being serious"
<wasamasa>
pretty shocking that programming languages try naming their methods logically, huh :P
AlexRussia has quit []
qmfnp has joined #ruby
AlexRussia has joined #ruby
<rubie>
so its going to add whatever is between the " "
<rubie>
between each of the elements of the array
<pontiki>
unlike, what, `implode()` ?
* wasamasa
implodes
<tobiasvl>
rubie: yes. correct.
<rubie>
perfect, thanks for staying with me
<wasamasa>
pontiki: well, I'm mostly looking at the older generation which had names like PROGN
<wasamasa>
pontiki: or TERPRI
ndrei has quit [Ping timeout: 258 seconds]
aspires has joined #ruby
cocotton has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 246 seconds]
krisquigley has quit [Remote host closed the connection]
<AlexRussia>
does ruby have something like 'finally' for exceptions?
krisquigley has joined #ruby
<AlexRussia>
block code, which be executed in any way, have we exception or no afaik
pen has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
kaspergrubbe_ has joined #ruby
<pontiki>
begin-rescue-ensure
timonv_ has joined #ruby
<pontiki>
the ensure block will always run
sepp2k has quit [Quit: Konversation terminated!]
mijicd has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
kaspergrubbe_ has quit [Ping timeout: 246 seconds]
<AlexRussia>
pontiki: thanks
AlexRussia has quit []
AlexRussia has joined #ruby
jcdesimp has quit [Remote host closed the connection]
abdulsattar has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
enebo has quit [Quit: enebo]
ndrei has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Advocation has quit [Quit: Advocation]
mocfive has quit [Remote host closed the connection]
elstif has quit [Quit: Leaving.]
Advocation has joined #ruby
mocfive has joined #ruby
fgo has joined #ruby
mkaesz has quit [Quit: Leaving...]
benzrf|offline is now known as benzrf
<AlexRussia>
proxie: rescue block always should be?
<AlexRussia>
pontiki: ^
<AlexRussia>
proxie: sorry, typo
Advocation has quit [Client Quit]
enebo has joined #ruby
rubie has quit [Ping timeout: 246 seconds]
shock_one has joined #ruby
krz has quit [Quit: WeeChat 1.0]
mocfive has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
jcdesimp has joined #ruby
kil0byte has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
Scotteh has quit [Ping timeout: 260 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jespada has quit [Quit: Leaving]
MaciejCzyzewski has joined #ruby
vsipuli has quit []
fsapo has quit [Remote host closed the connection]
<eval-in_>
wallerdev => undefined local variable or method `pls' for main:Object (NameError) ... (https://eval.in/199074)
<GR33NM4CH1N3>
i am a hax0r
<shevy>
real hax0r write stuff from scratch
patrick99e99 has joined #ruby
angusigu1ss has quit [Ping timeout: 240 seconds]
mikepack_ has joined #ruby
ivmx has joined #ruby
shackleford has joined #ruby
starless has joined #ruby
<iamjarvo>
how does tryruby.org prevent shelling out?
shevy has quit [Ping timeout: 244 seconds]
mikepack has quit [Ping timeout: 272 seconds]
alphaboy has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 258 seconds]
TeresaP has joined #ruby
aspires has joined #ruby
<fennec>
dunno, but overriding things like Kernel.system and Kernel.` is fairly easy
<fennec>
it might also use strict ulimits
<iamjarvo>
fennec i can get those working but %x wouldnt work
<fennec>
if I were them I'd do both
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iamjarvo>
ulimits -> user limitations?
<fennec>
man 3 ulimit
MaciejCzyzewski has joined #ruby
rdark has quit [Quit: leaving]
<peterhellberg>
@iamjarvo Did you read the code?
<fennec>
actually man 3 isn't the best for that, maybe
<iamjarvo>
peterhellberg downloaded the code and bundling now
lifenoodles has quit [Ping timeout: 244 seconds]
<fennec>
oh it's just in 'man bash' I guess
<iamjarvo>
thanks folks
<peterhellberg>
@iamjarvo Ok :) There are some trickery going on in there, didn’t read it all though
<fennec>
"Provides control over the resources available to the shell and to processes started by it" such as "you can only have a process for the shell and a process for ruby and if you go past that the call will fail"
<nobitanobi>
Hey guys, I have a string and I want to repeat it 5 times putting a breakline '\n' between the repetitions. I have done it this way: 5.times.each.map { 'mystring' }.join('\n')
<nobitanobi>
Any way you guys would suggest?
<solo_>
What's the best way to run a cli app that's using thor? something like bundle console but to create cli app?
samflores has joined #ruby
<mofai>
hello, I am doing a tutorial from this book "Programming Ruby 1.9 & 2.0". With this code: http://pastie.org/9597701
sanguisdex has left #ruby [#ruby]
alem0lars has quit [Quit: AFK..]
lifenoodles has joined #ruby
<mofai>
however, got error when I use the original proposed code (commented in the code)
<mofai>
arning: you should require 'minitest/autorun' instead.
<mofai>
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
<samflores>
which version of Ruby do you have?
<GR33NM4CH1N3>
Im going to install ruby 2.1.3, hopefully this helps somehow
<koalallama>
nobitanobi: also, your paste had '\n', which is different from "\n" in my examples.
<nobitanobi>
koalallama: I was just looking into that!
<nobitanobi>
How come '', adds another \?
<nobitanobi>
' '
shevy has joined #ruby
hellangel7 has joined #ruby
<samflores>
that's weird. 2.1.2 is supposed to have minitest built-in
Tomme has joined #ruby
<samflores>
what does `gem list minitest` tells you?
mikepack_ has quit [Remote host closed the connection]
gizmore has joined #ruby
<gizmore>
the garbage collector never runs with 2.0 ?
<mofai>
samflores, actually I corrected above, using minitest is fine (no error). only when I got error when using the original code from the book (require 'test/unit')
<samflores>
I guess new new version (5.4.1) is incompatible with the Test::Unit version you have
robustus|Off is now known as robustus
Tuxero has joined #ruby
Xeago has joined #ruby
slester is now known as slester|work
<mofai>
samflores: hmm, seems like many gems are dependent to minitest -5.4.1. See this: http://pastie.org/9597737#8
<mofai>
samflores: what do you think?
ivmx has quit [Quit: Leaving.]
lifenoodles has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ivmx has joined #ruby
marr has joined #ruby
<samflores>
I hve a clean 2.1.2 install. It comes with minitest 4.7.5 and test-unit 2.1.2.0 bundled
<samflores>
I installed MT 5.4.1 and got the same error you have
<mofai>
i see. let me just uninstall it and see what will happen.
Xeago has joined #ruby
<samflores>
try upgrading TU if you can't (don't wanna) remove MT
<mofai>
samflores: it works!
<mofai>
no error using "test/unit"
akkad has joined #ruby
<samflores>
mofai TU-3.0.1 is compatible with MT-5.4.1 \o/
jthomp has quit [Quit: Leaving.]
<shevy>
#<Encoding::InvalidByteSequenceError: "\xD6" followed by "C" on UTF-8>
<shevy>
:(
<shevy>
I don't even use UTF-8!
<mofai>
samflores: I see. I got test-unit 2.1.2.0
<samflores>
`gem upgrade test-unit` does the trick too (if you keep minitest-5.4.1)
lifenoodles has joined #ruby
<mofai>
alright, cool
jthomp has joined #ruby
<mofai>
i better use the updated one ya?
mikepack has joined #ruby
<samflores>
idk. are you just studing it or this code may reach production?
eat_multi has joined #ruby
<mofai>
just studying at this moment
<samflores>
(well, test code never reaches production). lol
jonathan_alban has joined #ruby
<jonathan_alban>
Hi all
<mofai>
lol
<samflores>
so, don't bother upgrading. in the real worl you'll use something like Bundler to make sure you have the correct dependencies in your ptoject
<samflores>
s/worl/world/
benlieb has joined #ruby
<mofai>
ya, you're right
ndrei has joined #ruby
ndrei_ has joined #ruby
<mofai>
thanks man
Xeago has quit [Remote host closed the connection]
Scripore has quit [Ping timeout: 244 seconds]
threesixes has joined #ruby
<jonathan_alban>
Friday night and here I am taking some time to learn some Ruby
<mofai>
i updated both minitest and test-unit. much better. the command produced highlighted results some more
<mofai>
lol
jcdesimp has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TieSoul_ has joined #ruby
Xeago has joined #ruby
<samflores>
:D
TieSoul_ has quit [Remote host closed the connection]
TieSoul has quit [Ping timeout: 245 seconds]
TieSoul has joined #ruby
centrx has joined #ruby
nobitanobi has quit [Remote host closed the connection]
chipotle has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
Darryl has quit [Quit: Connection closed for inactivity]
startupality has quit [Quit: startupality]
Suchit has quit [Quit: Computer has gone to sleep.]
Suchit has joined #ruby
yfeldblum has joined #ruby
milkohol has joined #ruby
HelperW has joined #ruby
angusigu1ss has joined #ruby
skaflem has quit [Quit: Leaving]
Inhaling_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Suchit has quit [Ping timeout: 244 seconds]
lifenoodles has quit [Ping timeout: 260 seconds]
sepp2k has quit [Read error: Connection reset by peer]
InhalingPixels has quit [Ping timeout: 244 seconds]
<jonathan_alban>
Hey shevy. no questions just chatting :)
nobitanobi has joined #ruby
<jonathan_alban>
To myself. Though I was trying to make conversation :D
mocfive has quit [Remote host closed the connection]
ItSANgo has quit [Quit: Leaving...]
rkalfane has joined #ruby
lifenoodles has joined #ruby
mocfive has joined #ruby
<shevy>
k
<shevy>
how do you define a class in ruby jonathan_alban
<jonathan_alban>
class Classname
<jonathan_alban>
end
<centrx>
DEFINE_CLASS CLASSNAME
<shevy>
excellent
<shevy>
and if you wish to subclass from your class?
mocfive_ has joined #ruby
<jonathan_alban>
ohh
<jonathan_alban>
class ClassName::SubClass
<pipework>
negative
<jonathan_alban>
other way?
<shevy>
well that just defines a class in a namespace
thomas3141592653 has quit [Quit: Connection closed for inactivity]
<shevy>
for instance, the above could well mean:
<shevy>
class ClassName; class SubClass
<shevy>
then you invoke the above via ClassName::SubClass.new
<jonathan_alban>
ok
<jonathan_alban>
yes ok
<shevy>
but this is not a subclass, it is still only a class definition you did there
<a13x212>
i'm trying to check if a variable is set and not nil but keep gettiing undefined method for nil:NilClass, if defined?(node['sc_sudo']['addl_groups']).nil?
kenneth has joined #ruby
<pipework>
jonathan_alban: The way to subclass is to inherit. The way you most often inherit is with `class MyClass < ParentClass; end`
hmsimha_ has quit [Ping timeout: 245 seconds]
<pipework>
a13x212: the sc_sudo attribute is nil
<shevy>
a13x212 that is a strange way to use defined?
<shevy>
a13x212 are you sure that node.nil? is false ?
<jonathan_alban>
Cool get it. You know I've seen that done but never done it
<eam>
this would be a good theme for an intro to ruby book
<centrx>
Playboy's Intro to Ruby
<TeresaP>
Any of you ever seen this kind of output while using Ruby? I am trying to figure out if it’s the way I installed one of my tools/gems/Ruby itself. ---- DEBUG: Parsing source
<eam>
is there a better way to call that lambda?
lolmaus_ has quit [Remote host closed the connection]
einarj has joined #ruby
cocotton has quit [Remote host closed the connection]
<eam>
TeresaP: never seen it, what's the context?
oleo is now known as Guest94473
oleo__ has joined #ruby
fgo has joined #ruby
<shevy>
TeresaP no idea but you could do a grep -r "DEBUG: Parsing source" in ruby SITE_PATH
<shevy>
I am pretty sure it is not standard/core ruby though so it is probably some gem
ItSANgo has joined #ruby
benzrf|offline is now known as benzrf
<TeresaP>
I’m executing Ruby code in a Ruby irb
Scotteh has joined #ruby
lifenoodles has quit [Ping timeout: 245 seconds]
<TeresaP>
(calabash)
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oleo__ has quit [Read error: Connection reset by peer]
<TeresaP>
When it is trying to convert my commands to ones that work with another framework, I get craptons of output
<shevy>
ok
<shevy>
what method do you invoke
Xeago has quit [Remote host closed the connection]
<TeresaP>
oh dang, it is in there
borkdude has joined #ruby
Wolland has joined #ruby
<borkdude>
I am trying to run rake on my Mac, but I get this output: https://www.refheap.com/90732 - what's up with this?
Guest94473 has quit [Ping timeout: 272 seconds]
finitoo has quit [K-Lined]
<TeresaP>
RubyMine is crashing now. One sec.
Squarepy has quit [Quit: Leaving]
paulfm has quit []
HelperW has joined #ruby
Wolland_ has joined #ruby
shackleford has quit [Remote host closed the connection]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<peterhellberg>
iajrz: So you should use def lala(options = {}), then pass in lala(asd: false), and use it inside the function as options[:asd]
<momomomomo>
!bark
<momomomomo>
!hello
<helpa>
Hello. I am a HELPA 9000 computer. I became operational in #rubyonrails on the 28th of November 2009. My instructor was Ryan Bigg, and he taught me to sing a song. If you'd like to hear it, I can sing it for you.
<centrx>
TeresaP, yes
bricker`LA has joined #ruby
<TeresaP>
oook… not sure why it’s harassing me about my answer
<momomomomo>
I asked it to, as you pasted random stuff to the irc channel.
<momomomomo>
TeresaP: !code
<helpa>
TeresaP: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
<TeresaP>
no I didn’t
<TeresaP>
I was answering shevy
<iajrz>
I supposed it's not written to be 1.9 compliant
willbarrettdev has left #ruby ["Leaving"]
postmodern has joined #ruby
<TeresaP>
And my question wasn’t about writing Ruby code.
<peterhellberg>
iajrz: You need to install 2.0 to run that code
<centrx>
solo_, which points out the super parent Exception called "Exception" used by the RubyMonk example is a good example for learning, but as a matter of style, you should never capture /every possible exception/ willy-nilly, it should be fine-grained
hiall has quit [Quit: hiall]
dc__ has quit [Remote host closed the connection]
hiall has joined #ruby
<solo_>
Great, will read RubyMonk first and then the 2nd article.
cocotton has quit [Ping timeout: 245 seconds]
<solo_>
Does the ruby community have a defacto tutorial for learning?
<solo_>
I went through learn ruby the hard way, but would like some more resources
<solo_>
in the since of, it's the defacto, but don't use it hah :p
patrick99e99 has joined #ruby
<solo_>
I don't want to learn the ins and outs, just a quick overview of the best practices.
hiall has quit [Ping timeout: 245 seconds]
HelperW has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
<centrx>
solo_,
<MaciejCzyzewski>
Hi all, folks!
tvw has quit []
<solo_>
centrx: ?
<centrx>
solo_, Ruby Koans and Ruby Monk are both interactive tutorials
soulcake has quit [Quit: Quack.]
<centrx>
solo_, they start off basic and show good practices
<MaciejCzyzewski>
The best way to learn ruby is contributing on github projects...
gauke has joined #ruby
mocfive has joined #ruby
dc__ has joined #ruby
<solo_>
Yeah, that's what I'm doing, except it's my own project.
nobitanobi has joined #ruby
soulcake has joined #ruby
<solo_>
A lot of the iOS dev community knows ruby, and with this particilar project geared towards them, I figured I'd write it in it :)
<solo_>
I like it so far.
shock_one has joined #ruby
gauke has quit [Client Quit]
skammer has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
alvaro_o has joined #ruby
<solo_>
Anyways, thanks for links centrx.
patrick99e99 has quit [Ping timeout: 260 seconds]
LiohAu has quit [Quit: LiohAu]
<centrx>
yeah Ruby is awesome
cocotton has joined #ruby
ore0s has joined #ruby
<MaciejCzyzewski>
Ruby and C xD
<centrx>
Swift has a lot of Rubyisms
<MaciejCzyzewski>
ANSI C, heh
<ore0s>
so I've got an issue with either rspec or require_relative
<MaciejCzyzewski>
ore0s, ok go on.
<solo_>
centrx: yep, I like it :)
duncannz has joined #ruby
<ore0s>
when I write the code in file "my_solution.rb" my rspec tests fail. when I put my code into the rspec testing file they all pass.
shock_one has quit [Ping timeout: 272 seconds]
GR33NM4CH1N3 has joined #ruby
jonathan_alban has quit [Ping timeout: 245 seconds]
<GR33NM4CH1N3>
This is the weirdest shit. Same problem as before: I try to compile SASS file to CSS file. In CSS file, it puts out a bunch of errors. However, it simultaneously creates a .css file w/ same name as main sass file. So, it actually is compiling (in its own default way) and just shooting errors into the CSS file I pointed the compiler at.
jcdesimp has quit [Remote host closed the connection]
flughafen_ has joined #ruby
<ore0s>
im using -> require_relative "my_solution" and they are in the same directory. ruby 2.0.0 and rbenv
r0bby_ has joined #ruby
r0bby_ has quit [Changing host]
r0bby_ has joined #ruby
kriskropd has quit [Quit: Lost terminal]
robbyoconnor has quit [Ping timeout: 258 seconds]
mastr_bennett[x] has joined #ruby
andrewlio has joined #ruby
kriskropd has joined #ruby
<jthomp>
i've played around with Swift a bit, too. i really like it. definitely feels similar to Ruby
ghostmoth has quit [Quit: ghostmoth]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
<peterhellberg>
I’ve found that a lot of people say that Swift feels like their favorite language, not sure if that is an entirely good thing.
skolman has joined #ruby
choke has quit [Remote host closed the connection]
<peterhellberg>
But hey, as long as it improve on Objective-C then I’m all right with it
carraroj has joined #ruby
<ore0s>
why wouldnt that be a good thing
shackleford has joined #ruby
<GR33NM4CH1N3>
How do I get SASS to do its default compile mode?
<GR33NM4CH1N3>
where it just creates a new .css file of itself
<peterhellberg>
ore0s: Features taken from a lot of different languages can make for a language that tries to please everyone equally
skolman has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Quit: Konversation terminated!]
<GR33NM4CH1N3>
fuckyeah my sass is working
<GR33NM4CH1N3>
i kicked sass's ass thai guy
emocakes__ has joined #ruby
<GR33NM4CH1N3>
mr buddhahead
<GR33NM4CH1N3>
you hear that
<ore0s>
that makes sense. didnt see it like that before
<GR33NM4CH1N3>
buddha loves me the way i troll
<MaciejCzyzewski>
lol, typical programmer
<MaciejCzyzewski>
at work...
<centrx>
Get back to work people!
<MaciejCzyzewski>
centrx, where you work?
<centrx>
It's always Monday morning if you want to be a WINNAR!
fgo has joined #ruby
<centrx>
MaciejCzyzewski, outside
cocotton_ has joined #ruby
emocakes has quit [Ping timeout: 272 seconds]
<MaciejCzyzewski>
centrx, on the hammock
<centrx>
yes, no sitting, only lying down and standing up
<centrx>
this is the way of health
<MaciejCzyzewski>
xD
abdulsattar has quit [Ping timeout: 246 seconds]
<jthomp>
peterhellberg: understandable. could lead to some weird issues where people expect certain features to behave in certain ways only to find they don't.
<ore0s>
i cant wait to start working. gonna start looking for a job in february
angusiguess has joined #ruby
<centrx>
ore0s, what happens in February?
<ore0s>
i dont know if this is controversial or not, but i graduate from my dev bootcamp
incomprehensibly has quit []
<centrx>
cool
<centrx>
controversial? is it a jihadi dev bootcamp?
<jthomp>
lol i was about to ask the same
<peterhellberg>
jthomp: Yep, like .. and ... in Ruby vs Swift :)
fgo has quit [Ping timeout: 240 seconds]
aarkerio has joined #ruby
cocotton has quit [Ping timeout: 272 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cocotton_ has quit [Ping timeout: 260 seconds]
<MaciejCzyzewski>
Haskell rules
<ore0s>
idk. some comp sci people on reddit think the new bootcamps == the predecessor to ISIS
<linguini>
I'm using ruby 2.1 and trying to use byebug; it is barely functional; is there some magic to make it work, or does it just suck on ruby 2.1?
enebo has quit [Quit: enebo]
almostworking has joined #ruby
<linguini>
By suck, I mean: (byebug) help show # INTERNAL ERROR!!! undefined method `to_sym' for ["show"]:Array
TeresaP has quit [Quit: TeresaP]
almostworking has left #ruby [#ruby]
gccostab_ has quit [Quit: ZZZzzz…]
axsuul has quit [Ping timeout: 246 seconds]
MrBoolean has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
kamilc__ has quit [Quit: Leaving...]
<MaciejCzyzewski>
linguini? Don't work on 2.1.3... it's unstable
HelperW has joined #ruby
timonv_ has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
<MaciejCzyzewski>
ore0s, hah
sailias has quit [Quit: Leaving.]
<linguini>
MaciejCzyzewski: According to http://www.ruby-doc.org/, Ruby 2.1.3 was the "current official release". Is that incorrect?
HelperW_ has joined #ruby
<linguini>
s/was/is/
DrShoggoth has quit [Quit: Leaving]
<peterhellberg>
It is the current stable release of Ruby, not aware of any issues so far.
yetanotherdave has joined #ruby
krisquigley has joined #ruby
<peterhellberg>
(We’ve seen a nice decrease in memory usage in our production servers since upgrading)
angusiguess has quit [Ping timeout: 245 seconds]
<MaciejCzyzewski>
Och. Och. How could I miss that...
<peterhellberg>
linguini: Also, there is no to_sym method on instances of Array
<linguini>
peterhellberg: Ah, thanks. Yes, it certainly looks like bugs in byebug. I was hoping for a more efficient way to debug ruby than puts style debugging...
HelperW_ has quit [Read error: No route to host]
mclosson has joined #ruby
HelperW_ has joined #ruby
<peterhellberg>
linguini: It would be _crazy_ to implement to_sym on Array before implementing garbage collection of symbols in Ruby.
krisquigley has quit [Ping timeout: 244 seconds]
<peterhellberg>
And that will probably not happen before 2.2 if I remember correctly
mikeg has joined #ruby
<linguini>
So, are there any good alternatives to byebug? Would I have more luck with it if I downgraded my ruby? Does everybody in ruby just live without a debugger?
chrishough has joined #ruby
<peterhellberg>
I put more effort into writing good tests, never been much of a debugger user
<centrx>
no debugger works for me
<dfedde>
the only debugger I use is a binding.pry now and then
deject3d has quit [Read error: Connection reset by peer]
HelperW_ has quit [Ping timeout: 260 seconds]
deject3d has joined #ruby
<peterhellberg>
linguini: What is it you are trying to debug?
<linguini>
peterhellberg: rake db:rebuild # does a lot of work, then throws unhandled exception
havenwood has joined #ruby
d2dchat has joined #ruby
<Machetez>
'to_sym' for array why?
<peterhellberg>
Ah, and I’m guessing there is no test coverage on that code?
<linguini>
I can solve this without a debugger; it's just slower. I would ideally like to get control when the exception is being raised and poke around to look at things.
lolmaus has joined #ruby
TieSoul_ has joined #ruby
<peterhellberg>
linguini: Did you try using binding.pry?
lolmaus has quit [Client Quit]
lolmaus has joined #ruby
lolmaus has quit [Client Quit]
lolmaus has joined #ruby
hiyosi_ has joined #ruby
<peterhellberg>
(Not sure how well that would work though)
<linguini>
peterhellberg: No; does it get control when an exception is raised? Or do I need to cause it to be invoked at the right time?
TieSoul has quit [Ping timeout: 245 seconds]
zvlex has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deject3d has quit [Ping timeout: 245 seconds]
lolmaus has quit [Client Quit]
pu22l3r_ has joined #ruby
lolmaus_ has joined #ruby
<peterhellberg>
I think the only way is to cause it to be invoked at a specific point in the code.
deject3d has joined #ruby
<peterhellberg>
Not certain though
<linguini>
peterhellberg: Ah. byebug can do that too (without crashing!)
<linguini>
peterhellberg: Yes, that looks useful! Come to think of it, I've used pry-rescue in tests before. Unfortunately, I dislike pry, but maybe I should just get used to it.
lolmaus_ has quit [Read error: Connection reset by peer]
<havenwood>
linguini: what do you dislike?
<MaciejCzyzewski>
pry-rescue +1
lolmaus has joined #ruby
hiyosi_ has quit [Ping timeout: 250 seconds]
lolmaus_ has joined #ruby
mikeg has quit [Remote host closed the connection]
gccostabr has joined #ruby
<linguini>
havenwood: I find it awkward. It has too many commands. It assumes you are working in a terminal. Probably all my own resistance to spending time learning it.
slester|work has quit [Quit: slester|work]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiall has joined #ruby
<havenwood>
linguini: You can remove all the commands. Maybe remove all but one and slowly add them back? I am working in a terminal, so that is nice for me. :P
<centrx>
2008-05-31 patchlevel 0
<havenwood>
pop quiz?!
<centrx>
wrong channel :(
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
ah, not jepardy boo
lolmaus has quit [Ping timeout: 272 seconds]
<centrx>
What is, Jeopardy?
axsuul has joined #ruby
gsd has joined #ruby
nicksanford has joined #ruby
xcv has joined #ruby
zvlex has quit [Quit: Leaving]
hiall has quit [Client Quit]
hmsimha_ has joined #ruby
jcdesimp has joined #ruby
hiall has joined #ruby
BackEndCoder_ has quit [Ping timeout: 272 seconds]
choke has joined #ruby
nicksanford has quit [Quit: WeeChat 1.0]
mocfive has quit [Remote host closed the connection]