roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
tulak has joined #ruby
blackice_ has quit [Ping timeout: 255 seconds]
peterhu has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
devbug_ has joined #ruby
jam__ has quit [Read error: No route to host]
jam__ has joined #ruby
chipotle has quit [Quit: cheerio]
jam__ has quit [Client Quit]
last_staff has quit [Quit: last_staff]
dlitvak has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
dartagnan has quit [Quit: WeeChat 1.4]
Dreamer3_ has joined #ruby
duderono_ has quit [Ping timeout: 244 seconds]
devbug_ has quit [Ping timeout: 276 seconds]
rkazak has joined #ruby
Dreamer3_ has quit [Client Quit]
Dreamer3_ has joined #ruby
hxegon has quit [Quit: BRB]
cmoneylulz has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 248 seconds]
B1n4r10 has quit [Ping timeout: 244 seconds]
wald0 has joined #ruby
gregf1 has quit [Quit: WeeChat 1.4]
nettoweb has quit [Ping timeout: 240 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
shadoi has joined #ruby
cmoneylulz has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jayjo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
pawnbox has joined #ruby
ohaibbq has joined #ruby
mattwildig has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
dlitvak has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
Musashi007 has joined #ruby
zenlot3 is now known as zenlot
arquebus has joined #ruby
dlitvak has joined #ruby
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
Jonah11_ has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
mondok has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 250 seconds]
Jonah11__ has joined #ruby
<shevy>
pizzaops eh just practice practice practice!
<pizzaops>
shevy: oh yeah I'm definitely learning and getting better
<pizzaops>
POODR is helping a lot
Jonah11_ has quit [Ping timeout: 250 seconds]
tulak has quit [Remote host closed the connection]
akem has joined #ruby
ElFerna has joined #ruby
Jonah11__ has quit [Ping timeout: 250 seconds]
_djbkd has quit [Quit: My people need me...]
dlitvak has quit [Remote host closed the connection]
azure32_ has quit [Ping timeout: 248 seconds]
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
allcentury has joined #ruby
nfk|laptop has quit [Quit: yawn]
Musashi007 has quit [Ping timeout: 255 seconds]
azure32 has joined #ruby
Musashi007 has joined #ruby
quazimodo has joined #ruby
<quazimodo>
is it possible to 'bundle for deployment' by copying the globally installed gems into a local directory, rather than freshly downloading & installing?
<quazimodo>
using BUNDLE_PATH seems to cause bundler to install all fresh gems, which is ... ok i guess but all those gems exist in my global gem directory
akem has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Jonah11_ has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
Azure|dc has quit [Remote host closed the connection]
Ebok has quit [Quit: This computer has gone to sleep]
flughafen_ has quit [Ping timeout: 240 seconds]
jeanlinux has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
krobzaur has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
Conflict has quit [Read error: Connection reset by peer]
Conflict has joined #ruby
Channel6 has joined #ruby
chipotle has joined #ruby
Jonah11_ has quit [Ping timeout: 240 seconds]
blackice_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
pawnbox has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
blackice_ has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
akem has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
minimalism has joined #ruby
Musashi007 has joined #ruby
felltir has joined #ruby
blur3d has joined #ruby
stannard has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
devbug_ has joined #ruby
Rodya_ has joined #ruby
watersoul has joined #ruby
dviola has quit [Quit: WeeChat 1.4]
duckpupp1 has quit [Ping timeout: 276 seconds]
tomchapi_ has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
eljimador has joined #ruby
hxegon has joined #ruby
jayjo has left #ruby [#ruby]
hxegon is now known as hxegon_AFK
eljimmy has quit [Ping timeout: 255 seconds]
hxegon_AFK is now known as hxegon
benlieb has quit [Read error: Connection reset by peer]
benlieb_ has joined #ruby
roshanavand has quit [Remote host closed the connection]
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
Ebok has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Rodya_ has quit [Remote host closed the connection]
flughafen_ has joined #ruby
marr has quit [Ping timeout: 252 seconds]
Gnut has joined #ruby
tomchapin has joined #ruby
Musashi007 has joined #ruby
semeion has joined #ruby
<semeion>
how can i specify the directory where the script is located in require command? for exemple: require './mylib'
<semeion>
can i use something like: require '<dynamicscriptdir>/mylib'
mattwildig has joined #ruby
krobzaur has joined #ruby
<semeion>
or it need be static?
blur3d has quit [Ping timeout: 240 seconds]
sudoubuntu has joined #ruby
jeanlinux has joined #ruby
<quazimodo>
semeion: there are a few ways
<quazimodo>
I usually build an absolute path
<quazimodo>
and usually I use some sort of reference like application's root path or the current files path
<semeion>
yes, "absolute" is the correct word i was looking for
<quazimodo>
but in fact
ss_much has joined #ruby
<quazimodo>
anything in the $LOAD_PATH variable can be the 'root' for your search
<semeion>
i got it working making reference to absolute path
<quazimodo>
so if $LOAD_PATH has /foo/bar in it, you can do require 'baz/butt' and it'll look for /foo/bar/baz/butt.rb
<semeion>
oh
<semeion>
nice, it is what i was looking for
<semeion>
quazimodo: thank you very much!
eregi has joined #ruby
<semeion>
mmmmm
<semeion>
but i think i can´t change it, probably will break others things
<semeion>
could be nice if something like require '$LOAD_PATH/baz/butt' was possible
<semeion>
well, i know it is the default
finisherr has joined #ruby
<semeion>
but changing to another var
arescorpio has joined #ruby
<semeion>
like require '$MY_PATH/baz/butt'
moeabdol has quit [Ping timeout: 240 seconds]
<semeion>
adding environment PATH var to it could be perfect :D
hxegon is now known as hxegon_AFK
DmitryBochkarev has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
hxegon_AFK is now known as hxegon
stannard has joined #ruby
Rodya_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
bronson has joined #ruby
s00pcan has quit [Ping timeout: 244 seconds]
elifoster has quit [Ping timeout: 252 seconds]
stannard has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
s00pcan has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 248 seconds]
benlieb_ has quit [Read error: Connection reset by peer]
<Ox0dea>
semeion: $LOAD_PATH is just a regular ol' Ruby Array.
blackice_ has joined #ruby
benlieb has joined #ruby
<Ox0dea>
You can #push your directory to the end to have it searched last, or #unshift it onto the front and have it searched first.
<semeion>
ohh
<semeion>
nice know, so it solve my problem
<Ox0dea>
Ruby loves you and wants you to be happy. :)
stannard has quit [Ping timeout: 244 seconds]
<semeion>
thank you
<semeion>
:D
<Ox0dea>
Happy to help.
hanmac has quit [Ping timeout: 268 seconds]
felltir has quit []
Dreamer3_ has joined #ruby
blackice_ has quit [Ping timeout: 250 seconds]
devbug_ has quit [Ping timeout: 248 seconds]
norc_ has joined #ruby
duncannz has quit [Remote host closed the connection]
blur3d has joined #ruby
duckpupp1 has joined #ruby
dlitvak has joined #ruby
krobzaur has quit [Ping timeout: 252 seconds]
norc__ has quit [Ping timeout: 244 seconds]
FooMunki has quit [Quit: FooMunki]
Pathfinder_ has joined #ruby
Pathfinder has quit [Ping timeout: 276 seconds]
jeanlinux has quit [Ping timeout: 276 seconds]
duckpupp1 has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
hanmac has joined #ruby
Musashi007 has quit [Quit: Musashi007]
devbug_ has joined #ruby
Rodya_ has joined #ruby
pawnbox has joined #ruby
ngpestelos has joined #ruby
sharkman has quit [Quit: Leaving]
tomchapin has quit [Ping timeout: 276 seconds]
coffeecupp has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
goose_ has joined #ruby
goose_ has quit [Client Quit]
cmoneylulz has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
devbug_ has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Musashi007 has joined #ruby
scripore has joined #ruby
allcentury has joined #ruby
Musashi007 has quit [Client Quit]
fedexo has joined #ruby
hxegon is now known as hxegon_AFK
tomchapin has joined #ruby
krobzaur has joined #ruby
akem has quit [Remote host closed the connection]
Dreamer3_ has quit [Ping timeout: 240 seconds]
sneakerhax has quit [Quit: back later]
allcentury has quit [Ping timeout: 248 seconds]
Dreamer3_ has joined #ruby
hxegon_AFK is now known as hxegon
benlieb has joined #ruby
bronson has quit [Remote host closed the connection]
Dreamer3_ has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
Dreamer3_ has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
Rodya_ has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
Dreamer3_ has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
Dreamer3_ has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
blackice_ has joined #ruby
dubek has joined #ruby
dopamean_ has joined #ruby
Jonah11_ has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
duckpupp1 has joined #ruby
eregi has joined #ruby
x77686d has quit [Quit: x77686d]
Ebok has quit [Quit: This computer has gone to sleep]
<FXpro>
I was looking at the search list and I liked the name ruby so I joined just for the hell of it.
<FXpro>
I am not a programmer but I need to be a programmer for a specific project I am working on.
<adaedra>
One does not simply becomes a programmer.
<shevy>
One is born as such.
<FXpro>
I need to learn c++ and bridge it to another very close language.
PedramT has joined #ruby
<adaedra>
shevy: well no.
<shevy>
FXpro have you joined #c++ yet?
<FXpro>
I have not.
jottr has joined #ruby
triangles has quit [Quit: Leaving]
hxegon has joined #ruby
jkahn has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
intrigueD has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 276 seconds]
shazaum has quit [Quit: This computer has gone to sleep]
<n1colas>
Hello
PedramT has joined #ruby
wildlander has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
wildlander has quit [Max SendQ exceeded]
wildlander has joined #ruby
Trynemjoel has joined #ruby
A124 has quit [Quit: '']
PedramT has quit [Ping timeout: 248 seconds]
A124 has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
cpup has quit [Ping timeout: 240 seconds]
p1k has quit [Ping timeout: 255 seconds]
cpup has joined #ruby
jimcroft has joined #ruby
mattwildig has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
pdoherty has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
rbennacer has joined #ruby
bronson has joined #ruby
rbennacer has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
x77686d has joined #ruby
hnagamin has joined #ruby
sponjii has joined #ruby
PedramT has joined #ruby
rahulprabhakar has quit []
karapety_ has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
PedramT has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
Dreamer3 has joined #ruby
PedramT has joined #ruby
huyderman has quit [Remote host closed the connection]
william3 has joined #ruby
sudoubuntu has joined #ruby
mondok has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
PedramT has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
Wolland has joined #ruby
duckpupp1 has joined #ruby
karapetyan has quit []
allcentury has quit [Ping timeout: 240 seconds]
Guest34101 has joined #ruby
jmignault has quit [Ping timeout: 248 seconds]
dfinninger has joined #ruby
wmdrossard has quit [Ping timeout: 276 seconds]
william3 has quit [Ping timeout: 276 seconds]
Wolland has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 252 seconds]
raeoks has joined #ruby
hnagamin has quit [Ping timeout: 244 seconds]
e4xit has joined #ruby
jimcroft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flughafen_ has quit [Ping timeout: 240 seconds]
MiracleBlue___ has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
MiracleBlue___ has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
karthikselvakuma has quit [Ping timeout: 252 seconds]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
raeoks has quit [Read error: Connection reset by peer]
hnagamin has joined #ruby
william3 has joined #ruby
albedoa has quit [Ping timeout: 244 seconds]
flughafen_ has joined #ruby
r4z3r has quit [Quit: Windows isn't a virus, viruses do something.]
karthikselvakuma has joined #ruby
PedramT has quit []
eregi has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
graffix has quit [Ping timeout: 276 seconds]
erts has joined #ruby
<flughafen_>
i have a want a dict like this with another dict of arrays...? foobar = { name= "", { arr1=[],arr2[]} , but i want to be able to access the arrays based on foobar["name"] tied to arr1,arr2
Xeago has joined #ruby
<Papierkorb>
flughafen_: I don't really understand your question, could you try rephrasing it?
graffix has joined #ruby
<apeiros>
was going to say the same :-|
william3 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
eregi has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
karthikselvakuma has quit [Ping timeout: 244 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
blackmesa has joined #ruby
sudoubuntu has joined #ruby
<flughafen_>
haha
<flughafen_>
i want a dict of arrays that is tied to a string not a symbol?
<flughafen_>
i think. ha
intrigueD has joined #ruby
<apeiros>
you can use a string as key in a hash just fine
codecop has quit [Remote host closed the connection]
gustavohmsilva has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Yzguy has joined #ruby
adgtl has joined #ruby
<flughafen_>
ok, i think i found my solution. i think the issue is was i was trying to define a definition to what I wanted first? instead of just doing it in the loop itself.
<Ox0dea>
Don't write explicit loops.
cmoneylulz has quit []
allcentury has joined #ruby
graffix has quit [Read error: Connection reset by peer]
graffix has joined #ruby
duckpupp1 has joined #ruby
matp has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 255 seconds]
duckpupp1 has quit [Ping timeout: 248 seconds]
rkazak has joined #ruby
<flughafen_>
i'm iterating over json , and I want to store data in multiple arrays tied to a single "key", like dict["key1"] is { arr1: [], arr2: []}
_3by8 has joined #ruby
Jardayn has joined #ruby
<_3by8>
Issuing ruby -v in a plain terminal returns a message telling me to install Ruby but if I run the same command in the terminal window of my IDE, it tells me what I want to hear. Why would that be?
allcentury has quit [Ping timeout: 244 seconds]
Zggb has quit [Quit: Connection closed for inactivity]
<llua>
a difference in PATH.
<Ox0dea>
_3by8: Yeah, your Ruby binary isn't in your $PATH, but your IDE is doing some wizardry to find it anyway.
_ht has quit [Read error: Connection reset by peer]
_ht has joined #ruby
Sucks has joined #ruby
<_3by8>
Ox0dea: thanks, so I just need to set an environment variable or maybe run RVM again?
bronson has quit [Remote host closed the connection]
<Ox0dea>
_3by8: Something like that. :/
<claw>
hello channel
<claw>
how do i escape a uri password right as URI.escape does not work ?
<claw>
URI::InvalidComponentError: bad component(expected user component): ?
<claw>
the password contains a ?
<flughafen_>
Ox0dea: ^^
vikaton has joined #ruby
<Ox0dea>
flughafen_: Valid JSON can't contain distinct values for the same key.
rkazak has quit [Ping timeout: 240 seconds]
<Ox0dea>
Are you working with arrays of hashes?
sesquipedalian has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<flughafen_>
Ox0dea: let me try to rephrase it... i'm iterating through everything in the json file, and storing data based on other data. it may or may not be unique. I wanted to do something like dict["grouping1"][:arr1].push(something_related)
bronson has joined #ruby
<Ox0dea>
¯\_(ツ)_/¯
<flughafen_>
ha.
<flughafen_>
ok.
<flughafen_>
i'll check that out
dfinninger has quit [Remote host closed the connection]
<hanmac>
if you are a parser, everything looks like a json file ;P
<Ox0dea>
Anything is an AST if you're brave enough.
_3by8 has quit [Ping timeout: 252 seconds]
kmckelvin has quit [Ping timeout: 252 seconds]
kmckelvin has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tulak has quit [Remote host closed the connection]
scripore has joined #ruby
albedoa has joined #ruby
Wolland has joined #ruby
<flughafen_>
haha
rnda has joined #ruby
Dreamer3 has joined #ruby
Yzguy has quit [Quit: Zzz...]
blackice_ has joined #ruby
<flughafen_>
apeiros: did what i show make more sense? brb walking doggies
dlitvak has joined #ruby
gf3 has quit [Remote host closed the connection]
rnda has quit [Quit: Leaving]
wet88 has quit [Read error: Connection reset by peer]
jottr has joined #ruby
rnda has joined #ruby
dlitvak has quit [Ping timeout: 248 seconds]
gustavohmsilva has quit [Remote host closed the connection]
wet88 has joined #ruby
DmitryBochkarev has joined #ruby
akem has joined #ruby
maletor has joined #ruby
chouhoulis has joined #ruby
astrofog has joined #ruby
ta_ has quit [Remote host closed the connection]
DmitryBochkarev has quit [Client Quit]
<shevy>
walk the dog, dog the walk
darkxploit has quit [Quit: Leaving]
<junw>
flughafen_, do you mean ((dict["grouping1"] ||= {})[:arr1] ||= []) << something_related ?
TomPeed has joined #ruby
DmitryBochkarev has joined #ruby
diegoviola has joined #ruby
dfinninger has joined #ruby
FXpro has quit [Quit: Leaving]
ohaibbq has joined #ruby
perturbation has joined #ruby
Abrin has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
<flughafen_>
junw: t5hat's not what i'm doing now, but since what i want os weird or something, i could do that.
emq has joined #ruby
<flughafen_>
in the loop if it's not there, add a a dict with 3 arrays
ta__ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
chouhoulis has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
duckpupp1 has joined #ruby
ta__ has quit [Ping timeout: 248 seconds]
jimcroft has quit [Read error: Connection reset by peer]
jimcroft has joined #ruby
blackjid has quit [Max SendQ exceeded]
wmdrossard has joined #ruby
blackjid has joined #ruby
duckpupp1 has quit [Ping timeout: 248 seconds]
dfinninger has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
beanHolez has joined #ruby
krobzaur has joined #ruby
Sucks has quit [Quit: No Ping reply in 180 seconds.]
eregi has joined #ruby
symm- has joined #ruby
Sucks has joined #ruby
Dreamer3 has quit [Ping timeout: 276 seconds]
eregi has quit [Ping timeout: 255 seconds]
jimcroft has quit [Ping timeout: 276 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackice_ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.4]
tulak has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
colegatron has quit [Ping timeout: 264 seconds]
speaking1ode has quit [Remote host closed the connection]
speaking1ode has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
borodin has joined #ruby
adgtl has quit [Remote host closed the connection]
lurch_ has joined #ruby
nfk has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
diegoviola has joined #ruby
aryaching_ has quit [Read error: Connection reset by peer]
tercenya has joined #ruby
lemur has joined #ruby
hnagamin has quit [Ping timeout: 240 seconds]
finisherr_ has joined #ruby
moeabdol1 has joined #ruby
tercenya_ has quit [Ping timeout: 252 seconds]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
norc__ has joined #ruby
astrofog has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 252 seconds]
sneakerhax has quit [Ping timeout: 252 seconds]
clamstar has quit [Ping timeout: 252 seconds]
peterhu has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 252 seconds]
sq271 has quit [Ping timeout: 252 seconds]
bqscott has quit [Ping timeout: 252 seconds]
it_tard has joined #ruby
Ebok has quit [Ping timeout: 252 seconds]
TomyLobo has quit [Ping timeout: 252 seconds]
Ox0dea has quit [Ping timeout: 252 seconds]
norc_ has quit [Ping timeout: 252 seconds]
zast has quit [Ping timeout: 252 seconds]
hightower2 has quit [Ping timeout: 252 seconds]
Synthead has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
nfk has quit [Ping timeout: 252 seconds]
ElSif has quit [Ping timeout: 252 seconds]
peterhu has joined #ruby
sq271 has joined #ruby
kirun has joined #ruby
kalopsian has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
AustinMatherne has quit [Quit: Lost terminal]
AustinMatherne has joined #ruby
hnagamin has joined #ruby
it_tard is now known as nfk
pawnbox has joined #ruby
Ebok has joined #ruby
PedramT has joined #ruby
benlieb has joined #ruby
Dreamer3 has joined #ruby
Jonah11_ has joined #ruby
hnagamin has quit [Ping timeout: 255 seconds]
PedramT has quit [Ping timeout: 248 seconds]
agit0 has joined #ruby
hightower2 has joined #ruby
benlieb has quit [Ping timeout: 250 seconds]
juanfra has quit [Quit: juanfra]
benlieb has joined #ruby
davedev24 has joined #ruby
clamstar has joined #ruby
Ox0dea has joined #ruby
krobzaur has quit [Ping timeout: 255 seconds]
<Scriptonaut>
Hey all, I'm trying to render haml files with my rack server. For some reason, when I call "call" on my app, the body it returns is a string, not an array. I can't figure out why. Here is the gist of my app (very basic): https://gist.github.com/robins35/29868ebe7407542694b6
blackmesa has joined #ruby
Abrin has joined #ruby
juanfra has joined #ruby
astrofog has joined #ruby
zast has joined #ruby
TomPeed has joined #ruby
juanpablo__ has joined #ruby
ziyadb has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
hnagamin has joined #ruby
jrcharney has joined #ruby
<jrcharney>
For ruby-install, should I use sudo if I use --system?
hogetaro has joined #ruby
<diegoviola>
jrcharney: I think you need sudo, yeah
hxegon has joined #ruby
B1n4r10 has joined #ruby
<diegoviola>
jrcharney: I tried --system as user once and it just failed to install (I assumed it would call sudo after that but it didn't)
<diegoviola>
so the installation failed for me
<diegoviola>
not sure if it's different now
kalopsian has quit [Ping timeout: 248 seconds]
<jrcharney>
I guess I'll have to run this again when it is done...hopefully it will just move all the suff it "configure && make"'d and move it to /usr/local
<jrcharney>
The problem with chruby and ruby-install is that they will keep going even if you ^C
<Papierkorb>
jrcharney: Cancel the compilation and rerun with sudo now, ruby-install doesn't "figure it out" by itself ;)
juanpablo__ has quit [Ping timeout: 248 seconds]
<jrcharney>
Cancedl
<jrcharney>
OK
<Papierkorb>
Werid. Just kill the process then.
sankaber has joined #ruby
<jrcharney>
What happens to all that other stuff, Papierkorb?
<Papierkorb>
jrcharney: Are you sure you need --system ?
<Papierkorb>
jrcharney: No idea, probably left there or something
<jrcharney>
Yeah...I'm using a debian based distro. They won't update it! apt-get will install ruby 1.9.3
eregi has joined #ruby
<adaedra>
That doesn't mean you need to install your ruby system-wide.
<jrcharney>
Also, If I try to install jruby, it will try to install openjdk
<jrcharney>
And if I want to install weechat plugins, it will also try to install the older ruby
pdoherty has joined #ruby
ta_ has joined #ruby
PaulCapestany has quit [Quit: .]
blackice_ has joined #ruby
duckpupp1 has joined #ruby
saneax is now known as saneax_AFK
intrigueD has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
LoneHerm_ has joined #ruby
dionysus69 has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
eregi has joined #ruby
kalopsian has joined #ruby
frankt3ch has joined #ruby
frankt3ch has quit [Read error: Connection reset by peer]
duckpupp1 has quit [Ping timeout: 240 seconds]
krobzaur has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
<jrcharney>
I'm probably going to check if my java version is up to date later to figure out why jruby tries to install openjdk even though my /etc/alternatives have java set correctly
bronson has quit [Remote host closed the connection]
mattwildig has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 250 seconds]
<jrcharney>
would it seem reasonable to delete my ~/.gems directory after switching from rbenv to chruby as my ruby manager?
kalopsian has quit [Ping timeout: 240 seconds]
tjohnson has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
krz has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
ta__ has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
dn5 has joined #ruby
Sucks has quit [Ping timeout: 250 seconds]
terminalrecluse has joined #ruby
quaristice has joined #ruby
jrcharney has quit [Ping timeout: 250 seconds]
benlieb has quit [Quit: benlieb]
allcentury has quit [Ping timeout: 255 seconds]
beanHolez has quit [Remote host closed the connection]
quaristice has quit [Client Quit]
diego2 has joined #ruby
sgambino has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
ur5us has joined #ruby
<dn5>
haven't seen this much idling on ruby for long time
JammyHammy has joined #ruby
NickYY has joined #ruby
<shevy>
dn5 it's weekend!
<shevy>
they are so sleepy...
<dn5>
shevy: riiiight .. what about us?
<dn5>
anyway, how do you guys comment funtions in ruby?
<dn5>
I mean, how do you document ruby code?
mattwildig has joined #ruby
aef has joined #ruby
<shevy>
hmm
<shevy>
I usually try to explain why I did something
bqscott has joined #ruby
Synthead has joined #ruby
<shevy>
documenting stuff really takes a lot of time :(
<shevy>
if you include things like --help and explaining what suboptions do
<dn5>
shevy: it does, and it's soooo boring
ss_much has quit [Quit: Connection closed for inactivity]
<adaedra>
dn5: I put '#' in the beginning of the line.
jrcharney has joined #ruby
william3 has quit [Remote host closed the connection]
<dn5>
adaedra: you document your ruby code with #? how many # do you write and what does each # mean?
JammyHammy has quit [Read error: Connection reset by peer]
<adaedra>
Only one, as it is enough to declare a comment.
<shevy>
for my bigger projects I try to write a tutorial, that will become a .pdf via wkhtmltopdf
<adaedra>
Yuck.
<shevy>
what
<dn5>
shevy: And how do you comment your function (like params, return value, etc.)?
<shevy>
dn5 I don't! it distracts me when I code :)
<shevy>
I mean I explain things
<shevy>
but I don't use the tag-notations
<dn5>
shevy: but.. how do you know what you've did there when you check your code 1 year later
<shevy>
dn5 cuz I explain stuff!
<shevy>
and the style I have is very stupid and simple. whenever I have to think, something must be wrong with the code
JammyHammy has joined #ruby
<dn5>
shevy: and what about open source code?
NickYY has quit [Ping timeout: 252 seconds]
ta__ has quit [Remote host closed the connection]
<shevy>
makes no difference. actually, I will document more if it will be open sourced
<shevy>
I think though that one of the best way to document is to use a FAQ style or like zenspider's quickref
nixon has quit [Remote host closed the connection]
Dragooon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
eregi has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
nando294021 has joined #ruby
pawnbox has joined #ruby
Dragooon has joined #ruby
mattwildig has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
Sn0wy has joined #ruby
<Scriptonaut>
anyone here have experience with using the babel-transpiler gem? I cam able to run Babel::Transpiler.transform File.read("main.es6"). However, what do I do with that file now? How do I include it?
william3 has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
gf3 has joined #ruby
pawnbox has quit [Remote host closed the connection]
jrcharney1 has joined #ruby
jrcharney has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Sn0wy is now known as Snowy
mattwildig has joined #ruby
_djbkd has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
sudoubuntu has joined #ruby
maletor has joined #ruby
william3 has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 276 seconds]
eregi has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
futilegames has joined #ruby
jrcharney1 has quit [Quit: WeeChat 1.2]
sdothum has joined #ruby
Musashi007 has quit [Quit: Musashi007]
hnagamin has quit [Ping timeout: 240 seconds]
cjbottaro has joined #ruby
hnagamin has joined #ruby
futilegames has quit [Ping timeout: 244 seconds]
watersoul has quit [Quit: leaving]
eregi has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
watersoul has joined #ruby
Dreamer3 has joined #ruby
duckpupp1 has joined #ruby
IrishGringo has joined #ruby
william3 has joined #ruby
watersoul has quit [Client Quit]
yqt has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
pawnbox has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
kalopsian has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 250 seconds]
dfinninger has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
eregi has joined #ruby
akem has quit [Quit: Bye]
watersoul has joined #ruby
PlasmaStar has quit [Ping timeout: 240 seconds]
hxegon has quit [Ping timeout: 255 seconds]
eregi has quit [Ping timeout: 248 seconds]
FernandoBasso has quit [Ping timeout: 250 seconds]
kies^ has quit [Read error: Connection reset by peer]
graffix has joined #ruby
last_staff has joined #ruby
allcentury has joined #ruby
Xeago has joined #ruby
albedoa has quit [Ping timeout: 255 seconds]
s2013 has joined #ruby
colegatron has joined #ruby
mattwildig has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
DEA7TH has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 255 seconds]
Jonah11_ has quit [Remote host closed the connection]
openstruct has joined #ruby
cjbottaro has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
PlasmaStar has quit [Ping timeout: 240 seconds]
FernandoBasso has joined #ruby
juanpablo__ has joined #ruby
cdg has joined #ruby
william3 has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
william3 has joined #ruby
Don_John has joined #ruby
juanpablo__ has quit [Ping timeout: 250 seconds]
wedgwood has quit [Ping timeout: 255 seconds]
PlasmaStar has joined #ruby
cdg has joined #ruby
<dn5>
Any native way of getting time difference between two hh:mm? Like hh:mm & hh_current:mm_current => 1 (hour)
<dn5>
There is TimeDifference gem afaik
gaxar77 has joined #ruby
Don_John has quit [Client Quit]
<gaxar77>
I am looking for some free information on how ruby's object model works under the hood in C.
<manveru>
dn5: using -?
<adaedra>
dn5: convert them to Time and use -
<gaxar77>
But I cannot really find anything useful.
cdg has quit [Remote host closed the connection]
<dn5>
manveru: adaedra: that actually works
<dn5>
woah
<adaedra>
Of course.
cdg has joined #ruby
kirillzh has joined #ruby
<manveru>
gaxar77: i don't think there's anything up to date...
rbennacer has joined #ruby
quazimodo has joined #ruby
<gaxar77>
Any information on any type of dynamic object model?
<Radar>
Scriptonaut: https://rubygems.org/gems/sprockets-browserify depends on sprockets 2.1, and sprockets-es6 depends on Sprockets 3.0. You won't be able to use those two gems together.
<Radar>
Scriptonaut: Fork sprockets-browserify and bump the sprockets dependency.
hnagamin has quit [Ping timeout: 240 seconds]
<Scriptonaut>
hmm, any other way I might get browserify?
pdoherty has quit [Ping timeout: 240 seconds]
<Radar>
[08:00:32] <Radar>Scriptonaut: Fork sprockets-browserify and bump the sprockets dependency.
<Radar>
Only half my messages are getting through again :(
<dn5>
strange.. why does the loading returns 21 Feb 2016 instead of 2016-02-21
allcentury has joined #ruby
<apeiros>
you are misreading what you see
<apeiros>
21 Feb 2016 is 2016-02-21
_ht has quit [Quit: Konversation terminated!]
<apeiros>
you have an actual date object, not a string.
* Radar
missed where "21 Feb 2016" was.
maletor has joined #ruby
mrfoto has joined #ruby
ljames has quit []
<apeiros>
though, I get displayed #<Date: 2016-02-21 ((2457440j,0s,0n),+0s,2299161j)>, I wonder too where you see 21 Feb 2016
<Radar>
"I saw it on my Calendar widget in my menu bar"
<dn5>
apeiros: I see, make sense. So, the actual date object as 21 Feb 2016 is DateTime, or Date?
<apeiros>
dn5: .class will tell you
<dn5>
In the app I'm doing, couldn't replicate it over the bot
<dn5>
apeiros: right.
zarubin has quit [Ping timeout: 240 seconds]
elifoster has joined #ruby
<Radar>
Do you require activesupport at all?
swiftbit has joined #ruby
Jet4Fire has quit []
<Radar>
>> require 'activesupport/all'
<ruby[bot]>
Radar: # => cannot load such file -- activesupport/all (LoadError) ...check link for more (https://eval.in/522889)
<Radar>
rightio.
maletor has quit [Ping timeout: 276 seconds]
last_staff has quit [Read error: Connection reset by peer]
<dn5>
apeiros: It's a Date class, but I need a DateTime to calculate, I'm not checking only for a date difference, but for time too. How would I concat the "date" and "time" gathered from YAML?
<dn5>
Thats what I was doing at the start
Outlastsheep has quit [Ping timeout: 240 seconds]
<apeiros>
why do you store them separately?
<dn5>
apeiros: Because I need them later for different purpose seperately
lurch_ has quit [Quit: lurch_]
<dn5>
I know I can store one global for both date and time, and then seperatly one for a date and another for a time, but why would I do that?
<apeiros>
you make it more difficult for you for no reason. store them as one. use the object to get the part you need.
<apeiros>
you know, objects have methods. mighty useful those things.
bronson has quit [Remote host closed the connection]
openstruct has quit [Remote host closed the connection]
<apeiros>
also note that ruby does not have any class to handle a time without a date (Time despite its name consists of date & time)
<dn5>
apeiros: Right, I know. But when I use either just date, or both date and a time in yaml, I get either Date as a class, or Time as a class. Why not a DateTime?
<apeiros>
because ^, Time and DateTime both are Date+Time
<apeiros>
they have different origins (Time used to only be capable of handling 32bit Time range which is rather limited, but it was a ton faster than DateTime)
bronson has joined #ruby
armyriad has joined #ruby
maletor has joined #ruby
dfinninger has quit [Remote host closed the connection]
oddmunds has joined #ruby
mattwildig has joined #ruby
<dn5>
apeiros: so class Time shouldn't be converted to DateTime and it's already available for substraction?
<apeiros>
yes. be ware that Time#- returns the difference in seconds, unlike DateTime#- which returns the difference in days.
<apeiros>
*aware
<dn5>
apeiros: well converting it shouldn't be hard, thanks, let me try it
Zggb has joined #ruby
Dragooon has quit [Ping timeout: 250 seconds]
jammi has joined #ruby
elifoster has quit [Ping timeout: 255 seconds]
gaxar77 has joined #ruby
wet88 has quit [Quit: Quiting the chat]
rbennacer has quit [Remote host closed the connection]
krobzaur has quit [Ping timeout: 276 seconds]
oddmunds has quit [Quit: WeeChat 1.4]
doublemalt_ has joined #ruby
oddmunds has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
agit0 has quit [Quit: zzzZZZ….]
agit0 has joined #ruby
agit0 has quit [Client Quit]
<dn5>
apeiros: whats up with this +0100, is that some sort of UTC?
rbennacer has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
<apeiros>
that's the timezone offset
kalopsian has joined #ruby
<apeiros>
and no, +0100 means it's not utc. utc has an offset of 0
jammi has left #ruby ["..."]
ta_ has joined #ruby
<dn5>
Okay
LoneHerm_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
kalopsian has quit [Ping timeout: 252 seconds]
LoneHerm_ has quit [Ping timeout: 248 seconds]
oivoodoo has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
oivoodoo has quit [Client Quit]
firstdayonthejob has joined #ruby
<dn5>
apeiros: awesome, works as expected
<dn5>
except for an offset
<dn5>
but I'll figure it out
duckpupp1 has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
Brando753 has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
rbennacer has quit [Remote host closed the connection]
sneakerhax has joined #ruby
trinaldi has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ta_ has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
duckpupp1 has quit [Ping timeout: 252 seconds]
Brando753 has joined #ruby
Snowy has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
Dreamer3 has quit [Read error: Connection reset by peer]
rnda has quit [Quit: Leaving]
nando293921 has quit [Quit: Lost terminal]
yfeldblum has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
Ebok has joined #ruby
rbennacer has joined #ruby
Snowy has quit []
SCHAAP137 has joined #ruby
<shevy>
dn5 see - it's not so sleepy after all once you ask questions!
moeabdol1 has quit [Quit: WeeChat 1.4]
stevemackinnon has joined #ruby
kmckelvin has quit [Ping timeout: 276 seconds]
eregi has quit [Ping timeout: 244 seconds]
<dn5>
shevy: well, someone gotta start it :p
fourq is now known as fourq|away
fourq|away is now known as fourq
moeabdol has joined #ruby
LoneHermit has joined #ruby
zarubin has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
it_tard has quit [Quit: Try memory.free_dirty_pages=true in about:config]