<alfiemax>
oh like, set parts of the params as variables and use them in permit?
aufi has joined #ruby
<dminuoso_>
alfiemax: Yeah. And indent things so the nesting becomes clear.
BackEndCoder has joined #ruby
<alfiemax>
thats good advice.. thanks :)
nankyokusei has quit [Ping timeout: 240 seconds]
<dminuoso_>
alfiemax: Many Ruby people I see have a tendency to jam everything into one line because Ruby makes it easy to. But it quickly degrades readability.
hotpanca_ has joined #ruby
flashpoint9 has joined #ruby
<alfiemax>
true, i agree
jonyijoe has quit [Remote host closed the connection]
clauswitt has joined #ruby
peterc has quit [Ping timeout: 244 seconds]
<dminuoso_>
alfiemax: Though I think in this case indention is enough to make it readable
firstdayonthejob has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
jonyijoe has joined #ruby
jblack has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
sarkis has quit [Ping timeout: 250 seconds]
jonyijoe has quit [Remote host closed the connection]
redpants has quit [Ping timeout: 250 seconds]
jblack has quit [Ping timeout: 248 seconds]
wombawomba has joined #ruby
vuoto has quit [Remote host closed the connection]
conta has joined #ruby
ropeney has quit [Ping timeout: 248 seconds]
hotpanca_ has quit [Remote host closed the connection]
aganov has joined #ruby
hotpancakes has joined #ruby
wombawomba has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
gingray has joined #ruby
conta has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<alfiemax>
dminuoso_, gotcha... thanks :)
dminuoso_ has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 255 seconds]
conta has joined #ruby
blackmesa has joined #ruby
ta_ has quit [Remote host closed the connection]
the_drow has joined #ruby
ur5us has quit [Read error: No route to host]
ur5us_ has joined #ruby
akira616` has joined #ruby
dionysus69 has joined #ruby
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Remote host closed the connection]
gener1c has quit [Ping timeout: 240 seconds]
devil_tux has joined #ruby
dminuoso has joined #ruby
claudiuinberlin has joined #ruby
<dminuoso>
alfiemax: One more thing. When you start with such big lists, it might be useful to a) split them to one element per line, and sort it alphabetically.
grh has joined #ruby
olistik has joined #ruby
AndrewIsHere has joined #ruby
biberu has joined #ruby
gener1c has joined #ruby
hotpancakes has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
baweaver is now known as baweaver_away
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
historypeats has quit [Quit: Connection closed for inactivity]
AndrewIsHere has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 265 seconds]
sarkis has joined #ruby
mrgrieve1 has joined #ruby
wombawomba has joined #ruby
prawnzy has joined #ruby
futilegames has quit [Quit: futilegames]
devil_tux has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
devil_tux has joined #ruby
vondruch has joined #ruby
sarkis has quit [Ping timeout: 248 seconds]
futilegames has joined #ruby
tristanp has joined #ruby
wombawomba has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
neanderslob has quit [Remote host closed the connection]
Burgestrand has joined #ruby
grh has quit [Remote host closed the connection]
AnarchyAo has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
LBRapid has joined #ruby
ta_ has joined #ruby
Pumukel has joined #ruby
grh has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
Pumukel has quit [Remote host closed the connection]
neanderslob has joined #ruby
futilegames has quit [Quit: futilegames]
Pumukel has joined #ruby
claudiuinberlin has quit []
Silthias has joined #ruby
terlar has joined #ruby
LoneHerm_ has joined #ruby
sarkis has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 265 seconds]
sarkis has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Ping timeout: 264 seconds]
elifoster has quit [Quit: sleep]
marr has joined #ruby
baweaver_away is now known as baweaver
mark_66 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
submitnine has joined #ruby
elenatanasoiu has joined #ruby
wombawomba has joined #ruby
Beast has quit [Quit: Leaving]
MoonPlatypus has quit [Quit: Connection closed for inactivity]
Pumukel has quit [Remote host closed the connection]
sarkis has joined #ruby
wombawomba has quit [Ping timeout: 244 seconds]
jonyijoe has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
mrgrieve1 has quit [Read error: Connection reset by peer]
araujo has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
mikecmpbll has joined #ruby
ahri has joined #ruby
jonyijoe has quit [Ping timeout: 248 seconds]
tlaxkit has joined #ruby
_djbkd has quit [Quit: My people need me...]
<ahri>
hi, i have a relative path in a string, e.g. "a/b/../c" and would like to transform this into "a/c", i.e. keeping it relative, but resolving the dots - i found File.expand_path() but that gives me an absolute path - is there a provided way to do what i want without first doing the expand and then stripping out the CWD?
araujo has quit [Client Quit]
araujo has joined #ruby
bsrd has joined #ruby
araujo has quit [Max SendQ exceeded]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<Burgestrand>
ahri what if the path resolves to something outside your CWD?
mrgrieve1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<ahri>
Burgestrand: yeah, i'm in the fortunate position where that won't happen
pawnbox has quit [Remote host closed the connection]
<apeiros>
<<- and <<-'' are the ones I most commonly use
Pumukel has quit [Remote host closed the connection]
<apeiros>
though I think I use %{} more than here-docs.
Pumukel has joined #ruby
<arne_>
when doing stuff on the phone, they're pretty helpful ^^
<arne_>
(im doing that more than i like to admit)
sarkis has joined #ruby
wombawomba has joined #ruby
jshjsh has joined #ruby
Pumukel has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
JoshS has quit [Ping timeout: 260 seconds]
sarkis has quit [Ping timeout: 244 seconds]
araujo has joined #ruby
wombawomba has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
marr has quit [Ping timeout: 265 seconds]
ledestin has joined #ruby
Pumukel has joined #ruby
gfvcastro has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 248 seconds]
brujoand has joined #ruby
kanobt61_ has quit [Read error: Connection reset by peer]
<brujoand>
Hey, guys. I've got a ruby project which uses dashing to create a nice little dashboard. Now I'd like to create a deb/rpm from this project. Any pointers on how to do that? I guess I would have to create a gem with all dependencies included and then use something like fpm to generate a deb/rpm?
johnmilton has quit [Read error: Connection reset by peer]
<vondruch>
ytti, 3.1.0rc2 is smaller then 3.1.0, isn't it?
<apeiros>
odd. iirc 'rc' in the version string will lead rubygems to consider the version as prerelease, which is only used when explicitly asking for prereleases (--pre iirc)
Silthias1 has quit [Ping timeout: 248 seconds]
<vondruch>
ytti, you probably want to use '~> 3.0.0'
<ytti>
vondruch, doesnt that allow any minor version to be larger?
<canton7>
~> 3.0.0 means '>= 3.0.0 and < 3.1', no?
nankyokusei has joined #ruby
teclator has quit [Ping timeout: 244 seconds]
<dminuoso>
canton7: Yes.
drptbl has joined #ruby
<dminuoso>
canton7: or mmm
<ytti>
i thoght ~> allows minor version to be larger (major.minor.patch)
<ytti>
because minor change is downward compatible (or should be)
<ytti>
so it's reasonable requirement
johnmilton has joined #ruby
<ytti>
and i specifically don't want minor version to be larger
<dminuoso>
ytti: But still, I don't understand this. Can you reproduce the issue?
<vondruch>
ytti, it allows only the minor version patch version changes in your version schema
<ytti>
dminuoso, i've not tried, but i have complaint from several people
<ytti>
dminuoso, one claimed issue went away by changing ruby2.1 to ruby2.2
<dminuoso>
ytti: just ruby-install ruby-2.1.x and test it from there
<ytti>
yeah i should
<vondruch>
ytti, if it was ~> 3.0, then it would allow also the minor version changes ...
sarkis has joined #ruby
<ytti>
vondruch, oh by adding the minor in it, it'll only allow it to change...
<dminuoso>
ytti: "As a work around installing net-ssh 3.0.2 before oxidized solves the issue."
<dminuoso>
that one sounds super fishy
<ytti>
vondruch, yeah that sounds good
last_staff has quit [Ping timeout: 244 seconds]
<ytti>
and sensible
<dminuoso>
vondruch: Still, it should still work as he specified.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 265 seconds]
ICantCook has quit [Quit: bye]
Ipe_ has joined #ruby
<vondruch>
dminuoso, I don't think so ... since 3.1.0.rc2 is lowe then 3.1.0
ICantCook has joined #ruby
<vondruch>
dminuoso, it was released prior 3.1.0
csk has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
drptbl has quit [Quit: See you later!]
sarkis has quit [Ping timeout: 264 seconds]
malconis has joined #ruby
bmurt has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
jazzonmym11nd has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
conta has quit [Ping timeout: 255 seconds]
griffindy has joined #ruby
WetPussy has joined #ruby
wombawomba has joined #ruby
hk238 has joined #ruby
<WetPussy>
Is Ruby under GPL?
jonyijoe has joined #ruby
mooru has joined #ruby
NetSage has joined #ruby
devil_tux has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
<WetPussy>
Is Ruby under GPL?
<vondruch>
WetPussy, just older versions
malconis has quit [Remote host closed the connection]
<WetPussy>
vondruch, are the newer versions under a copyeff-license or a permissive license?
wombawomba has quit [Ping timeout: 244 seconds]
malconis has joined #ruby
<vondruch>
WetPussy, current ruby are under BSD and Ruby license
<WetPussy>
dUAL LICENSE???
conta has joined #ruby
<vondruch>
WetPussy, yep
<WetPussy>
vondruch, where is official Ruby binary-distribution for FreeBSD?!
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gfvcastro has joined #ruby
conta has joined #ruby
Pythonic has joined #ruby
<Pythonic>
Where is Ruby for FreeBSD?
ramortegui has joined #ruby
<apeiros>
if there's no binary download for freebsd on ruby-lang.org, then there's no official one. build from source, or use freebsd's package manager, or use one of the many ruby version managers.
rafadc has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
craigp has joined #ruby
<Pythonic>
Where is Ruby for FreeBSD?!
pandaant has quit [Remote host closed the connection]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<linduxed>
it's interesting that some people bother...
c0mrad3 has joined #ruby
<linduxed>
maybe they just want to check if there's an anti-spam measure present in the channel
<apeiros>
yeah, probably should. just that there's other things I'd rather do than write idiot-handling automatisms.
<linduxed>
well, that !spam thing is quite handy, i'll give you that
<apeiros>
yeah, it helps. an automatism for a couple of offenses would be nice, still. and I'll certainly write it eventually. it just has a rather low prio.
eizua has joined #ruby
ItSANgo has quit [Ping timeout: 276 seconds]
<linduxed>
does the bot have a github repo?
<linduxed>
or is it something you keep locally?
fmcgeough has joined #ruby
mooru has joined #ruby
cdg has joined #ruby
<apeiros>
it has a github repo, but it's private.
<apeiros>
I still plan to publish the non-critical parts (framework mostly). but that also has low priority.
tlaxkit has quit [Quit: ¡Adiós!]
d0nn1e has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
d0nn1e has joined #ruby
jonyijoe_ has joined #ruby
ngscheur1 has joined #ruby
jonyijoe has quit [Read error: Connection reset by peer]
AndrewIsHere has joined #ruby
ItSANgo_ has joined #ruby
ItSANgo has joined #ruby
aegis3121 has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
jonyijoe_ has quit [Ping timeout: 265 seconds]
AndrewIsHere has quit [Ping timeout: 248 seconds]
wombawomba has joined #ruby
Silthias1 has joined #ruby
millerti has joined #ruby
Silthias has quit [Ping timeout: 265 seconds]
jonyijoe has joined #ruby
Velizar has joined #ruby
oz has quit [Quit: EOF]
Velizar has left #ruby [#ruby]
wombawomba has quit [Ping timeout: 250 seconds]
Burgestrand has joined #ruby
ropeney has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
prawnzy has joined #ruby
submitnine has quit []
blackmesa has joined #ruby
ChiefAlexander has joined #ruby
prawnzy has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
sarkis has joined #ruby
newbie1 has quit [Ping timeout: 248 seconds]
tristanp has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
(The basic necessity has got to do with rails magic and is not for discussion)
chouhoul_ has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
redpants has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
jonyijoe has quit [Remote host closed the connection]
jphase has joined #ruby
jonyijoe has joined #ruby
agent_white has joined #ruby
robnester has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
<ccmcdee>
morning Rubyist
f4cl3y has quit [Ping timeout: 272 seconds]
elenatanasoiu has quit [Quit: WeeChat 1.5]
elenatanasoiu has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
<ccmcdee>
im a bit new to Ruby, and was wondering if there's a ruby server i can use locally to browes my ruby library and gems? sorta like the python server does.
claudiuinberlin has quit [Remote host closed the connection]
<Papierkorb>
ccmcdee: You mean the documentation(s)?
claudiuinberlin has joined #ruby
<Mon_Ouie>
If so `gem server'
<ccmcdee>
Papierkorb, i suppose so.
jonyijoe has quit [Ping timeout: 276 seconds]
<ccmcdee>
oh okay, thanks Mon_Ouie
<agent_white>
Mornin'
<Papierkorb>
YARD (`yard` gem) can do the same, but less ugly
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
<Papierkorb>
With yard it'd be $ yard server --gems
hobodave has joined #ruby
araujo_ has joined #ruby
<ccmcdee>
Papierkorb, ok, cool.
mrgrieve1 has quit [Ping timeout: 248 seconds]
A124 has quit [Quit: '']
<Johne>
is there a preferred ruby irc bot similar to eggdrop?
araujo_ has quit [Max SendQ exceeded]
<ccmcdee>
Papierkorb, where would I put that? in irb? or regular terminal?
<Papierkorb>
regular shell
<ccmcdee>
and the $ is part of the syntax or is that the prompt?
araujo_ has joined #ruby
<Papierkorb>
That's the commonly used delimiter showing that the following stuff is to be run in a regular, sh-compatible shell, as normal user
<Papierkorb>
aka, no, don't type that. Are you new to Linux too?
<ccmcdee>
gotcha, seems i don't have yard installed
araujo has quit [Ping timeout: 276 seconds]
<ccmcdee>
Papierkorb, no..not at all.
jonyijoe has joined #ruby
A124 has joined #ruby
mrgrieves has joined #ruby
qakar has joined #ruby
count has joined #ruby
jonyijoe has quit [Remote host closed the connection]
<apeiros>
Johne: cinch
<count>
heyho
<count>
I'm having some problem using bundler install --deployment .. I'm getting the gems in vendor/cache, but not unpacked in vendor/bundler, as I would like to deploy them ... what do I do?
f4cl3y has joined #ruby
jonyijoe has joined #ruby
dminuoso has quit [Ping timeout: 265 seconds]
Uranio has joined #ruby
AzureStigma has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
kanyewezt has joined #ruby
AzureStigma has quit [Client Quit]
sarkis has joined #ruby
mistermocha has joined #ruby
nankyokusei has quit []
jonyijoe has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
<Mon_Ouie>
apeiros: FYI you still have your +o
Pumukel has joined #ruby
pawnbox has quit [Remote host closed the connection]
jonyijoe has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
flashpoint9 has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
<jazzonmym11nd>
apeiros: did you use cinch to build ruby[bot]
<apeiros>
initially, yes
<apeiros>
it had some issues and lacked some ircv3 features, hence I updated my ancient butler code (butler was written when 1.8.2 was the current ruby)
AnoHito has quit [Read error: Connection reset by peer]
BlkDynmt has joined #ruby
<apeiros>
the issues I had are irrelevant for most users, though. it's a good framework.
AnoHito has joined #ruby
<jazzonmym11nd>
cool
SteenJobs has joined #ruby
* count
is still stuck on rbot *shiver*
nankyokusei_ has joined #ruby
<Johne>
i love eggdrop. they just need to allow more languages. tcl isn't so kind.
jonyijoe has quit [Remote host closed the connection]
ghostlight has quit [Ping timeout: 244 seconds]
jonyijoe has joined #ruby
nankyokusei_ is now known as nankyokusei
nankyokusei has quit [Changing host]
nankyokusei has joined #ruby
flashpoint9 has quit [Ping timeout: 255 seconds]
dminuoso has joined #ruby
tyang has joined #ruby
hutch34 has joined #ruby
LoneHerm_ has joined #ruby
loechel has joined #ruby
craigp has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
jonyijoe has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Ping timeout: 265 seconds]
vqrs has quit [Max SendQ exceeded]
jtAtTestDotCom has joined #ruby
ghostlight has joined #ruby
geek876 has quit [Quit: Page closed]
GodFather has quit [Ping timeout: 248 seconds]
Pumukel has joined #ruby
vqrs has joined #ruby
jonyijoe has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
jonyijoe has quit [Remote host closed the connection]
olistik has joined #ruby
jonyijoe has joined #ruby
loechel has quit [Ping timeout: 250 seconds]
ccmcdee has left #ruby ["WeeChat 1.5"]
AzureStigma has joined #ruby
sarkis has joined #ruby
SteenJobs has quit [Ping timeout: 265 seconds]
SteenJobs has joined #ruby
jtAtTestDotCom has left #ruby [#ruby]
jonyijoe has quit [Read error: No route to host]
careta has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
GodFather has joined #ruby
hotpancakes has joined #ruby
jonyijoe has joined #ruby
shinnya has joined #ruby
myntcake has joined #ruby
GodFather has quit [Remote host closed the connection]
dionysus69 has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
nikivi has joined #ruby
flashpoint9 has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
JeanCarloMachado has quit [Ping timeout: 272 seconds]
jonyijoe has quit [Ping timeout: 265 seconds]
airstream66 has joined #ruby
ropeney has quit [Remote host closed the connection]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ropeney has joined #ruby
marciol has joined #ruby
hk238 has quit [Read error: Connection reset by peer]
dminuoso has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
alfiemax has joined #ruby
pawnbox has joined #ruby
braincrash has joined #ruby
braincras has quit [Ping timeout: 265 seconds]
jtAtTestDotCom has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
fullofca_ has quit [Ping timeout: 244 seconds]
a7d7p has joined #ruby
Uranio has quit [Quit: while you read this, a kitty dies]
hk238 has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Quit: Leaving...]
weemsledeux has joined #ruby
airstream66 has quit [Remote host closed the connection]
sarkis has joined #ruby
rubie has joined #ruby
pawnbox has joined #ruby
mrgrieves has quit [Quit: leaving]
<shiver>
u called count :^)
lightheaded has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
<jazzonmym11nd>
apeiros: any idea where shevy went to
qakar_ has joined #ruby
rodfersou is now known as rodfersou|lunch
qakar has quit [Ping timeout: 265 seconds]
<apeiros>
jazzonmym11nd: no idea, no
jblack has joined #ruby
redpants has joined #ruby
blackmesa has joined #ruby
SteenJobs_ has joined #ruby
Ishido has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
peterc has joined #ruby
SteenJobs has quit [Ping timeout: 244 seconds]
SteenJobs_ is now known as SteenJobs
Burgestrand has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
Linell has left #ruby [#ruby]
aufi has quit [Ping timeout: 240 seconds]
mooru has joined #ruby
qakar_ has quit [Ping timeout: 250 seconds]
wugy has quit []
blackmesa has quit [Ping timeout: 250 seconds]
etetz has joined #ruby
qakar has joined #ruby
Zamyatin has joined #ruby
<count>
sooo, I'll just leave my question standing ;)
opus has joined #ruby
ixti has joined #ruby
ixti has quit [Client Quit]
ixti has joined #ruby
<ropeney>
count, specify --path
synthroid has quit [Remote host closed the connection]
bmurt has joined #ruby
<count>
ropeney: my full commandline is:
eljimmy has quit [Quit: This computer has gone to sleep]
<count>
bundle install --path $RPM_BUILD_DIR/%{name}/vendor/bundle/ --deployment --binstubs $RPM_BUILD_DIR/%{name}/vendor/bin/ --without test
rubie has quit []
<count>
ropeney: .. which is what I expected to work :(
<apeiros>
your example in line 20-22 was almost correct for just printing the values
Vingador has joined #ruby
<apeiros>
`puts array['name']` instead of `puts #{array}['name']` would have worked.
<apeiros>
#{} is for string interpolation only.
<biox>
apeiros, ahh okay, i typically use bash and was relating it to a typical for loop
hotpancakes has quit [Ping timeout: 248 seconds]
<apeiros>
outside a string, # will just start a comment. so `puts #{array}['name']` is just `puts` with a comment behind it
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
nankyokusei has joined #ruby
Emmanuel_Chanel has joined #ruby
<apeiros>
also note that Enumerable#each returns the receiver, which is why in a REPL (which prints the value of the expression), you'll get the full array with all values printed out too.
Nimonas has joined #ruby
<biox>
apeiros, oh, so each just sees the actual array and doesn't enumerate over the hashes inside of it
<apeiros>
each does iterate over all hashes (or elements, in general) in the array
<apeiros>
it yields them
<apeiros>
but its *return value* is the array itself
<apeiros>
returned_value = ary.each do |yielded_value_of_one_iteration| … end
<apeiros>
yielded value != returned value
johnmccabe_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qakar has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
akira616` has joined #ruby
elenatanasoiu has joined #ruby
elementaru has quit [Ping timeout: 248 seconds]
rbr has joined #ruby
Nimonas has quit [Ping timeout: 248 seconds]
anisha has joined #ruby
hotpancakes has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redpants has quit [Ping timeout: 260 seconds]
chadhs_ has joined #ruby
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crankharder>
join #aws
<biox>
apeiros, i'm having trouble following what you mean by 'it yields them'
qakar has quit [Ping timeout: 244 seconds]
pokalyis has joined #ruby
SteenJobs has joined #ruby
chadhs has quit [Ping timeout: 244 seconds]
eizua has quit [Ping timeout: 265 seconds]
petercooper has joined #ruby
tyang has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
<biox>
so first #each will iterated over every item in the hash. after each item, the return value is set (i imagine) to the hash corresponding with the appropriate array spot. i.e. array[0] array[1] etc
<apeiros>
biox: you know what a block is?
<biox>
apeiros, my experience so far is classes/methods/basic building blocks.
<apeiros>
no, those are bodies (class body, method body)
<biox>
ah okay, so the answer is likely no
JeanCarloMachado has quit [Quit: Lost terminal]
<apeiros>
blocks are a piece of code, passed as a special argument to a method
<biox>
what makes the argument special?
<apeiros>
`ary.each do |block, args| block_body end` <-- the do/end part is the block. alternatively written with {} instead of do/end
<biox>
oh sure
<biox>
okay, so i've used blocks before without understanding what they're called
<biox>
i didn't know that do/end could be squigly braces though
<biox>
that clarifies a lot of stuff i've seen
<apeiros>
and yielding is what you do to invoke/call that piece of block, and usually with arguments too. those end up in the arguments defined between ||
araujo__ has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
so array.each *yields* items (one item per invocation of the block), and *returns* the array.
mikecmpbll has joined #ruby
<apeiros>
>> ary = [1,2,3]; return_value = ary.each do "this does not matter" end; return_value.equal?(ary)
<biox>
i see, so a more common way of saying that might be that #each executes the block per array item, but properly that would be yielding execution to the block
pokalyis has joined #ruby
wrkrcoop has joined #ruby
johnmccabe has joined #ruby
<petercooper>
writing your own implementation of each can be a good way to feel the concept
araujo__ has quit [Max SendQ exceeded]
<apeiros>
+1
<apeiros>
howdy peter :)
<apeiros>
been a while. you seem more busy with js nowadays? :D
<petercooper>
Hey, nah not really :)
gener1c has quit [Ping timeout: 276 seconds]
<petercooper>
Just took a few years off IRC accidentally
<apeiros>
or actually cpp as per one of your latest tweets…
araujo__ has joined #ruby
<apeiros>
you accidentally your irc? ^^
gfvcastro has quit [Read error: Connection reset by peer]
araujo_ has quit [Ping timeout: 260 seconds]
jblack has quit [Read error: Connection reset by peer]
conta has joined #ruby
elenatanasoiu has quit [Ping timeout: 244 seconds]
araujo__ has quit [Max SendQ exceeded]
<biox>
apeiros, thanks for being so helpful. :) i'll keep powering through this ruby book. hopefully basic questions like this aren't too bothersome.
<apeiros>
no worries
jblack has joined #ruby
<apeiros>
if something is bothersome, people will tell you
<apeiros>
so don't be afraid to ask ;-)
<biox>
apeiros, i live in the midwest where that couldn't be less true, haha
Silthias1 has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
<apeiros>
?dontwork Johne
<ruby[bot]>
Johne: we charge $120/h to figure out what you mean by "does not work". alternatively you can give us a proper explanation of what you expected to happen, and what happened instead, including the full exception if one occurred.
<Johne>
lmao
araujo__ has quit [Max SendQ exceeded]
arashb has quit [Ping timeout: 264 seconds]
<apeiros>
who entered this fact? my rate is quite a bit higher than that :(
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wrkrcoop>
hello. im doing this thing where after 4 minutes i create a new http client … but im worried that if i send out a request at 3:59.59 that the response wont come back because i got rid of the connection ….
<Johne>
I expected the value of 'name' to appear under each of the games listed in that json
<apeiros>
Johne: 50% of the requirements reached. you can do this :D
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elifoster has joined #ruby
pokalyis has joined #ruby
jonyijoe has joined #ruby
<wrkrcoop>
anyone?
Pumukel has joined #ruby
a7d7p has quit [Quit: a7d7p]
fullofcaffeine has quit [Remote host closed the connection]
SteenJobs has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
blackmesa has joined #ruby
gener1c has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
SteenJobs has joined #ruby
rcvalle has joined #ruby
[Butch] has joined #ruby
jonyijoe has quit [Ping timeout: 265 seconds]
<apeiros>
wrkrcoop: you do not send a request at 3:59:59. you send all at the beginning when you spin up the threads.
<wrkrcoop>
apeiros: that’s not what i meant, i meant if i were to send a request at that time, before it comes back id create a new client
<wrkrcoop>
overriding the @client variable
<wrkrcoop>
it seems to be working … but idk if there’s something im not considering
Pumukel has quit [Ping timeout: 272 seconds]
kanobt61 has quit [Read error: Connection reset by peer]
<apeiros>
your current code actually throws away @client after all 4 requests…
<wrkrcoop>
yeah i just did that to mimic the situation where a new client gets created while requests are out and haven’t returned yet
<apeiros>
your concurrent r/w access to a shared resource is bound to cause issues, though.
<wrkrcoop>
the method spin_up and call_sfdc are just for testing
<wrkrcoop>
oh you mean overriding the @client variable?
kanobt61 has joined #ruby
AzureStigma has joined #ruby
gener1c has quit [Read error: Connection reset by peer]
<Johne>
apeiros: i know I'm close. going to load this into a file and review it better than going line by line in irb
aegis3121 has joined #ruby
<apeiros>
I mean't you're close to providing the information I asked from you.
<Johne>
oh
<Johne>
ffs
<wrkrcoop>
haha
<apeiros>
I mean… it was like 2 pieces. you provided one.
<wrkrcoop>
apeiros: so just use a mutex?
<Johne>
lmao rereading
Cohedrin has joined #ruby
gener1c has joined #ruby
_djbkd has joined #ruby
<wrkrcoop>
brb
johnmccabe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SteenJobs has quit [Ping timeout: 265 seconds]
nikivi has quit [Quit: irc]
SteenJobs has joined #ruby
ramfjord has joined #ruby
<Johne>
so the expectation is to get the value of 'name' from the the away team in the json, there are two games listed so i figured .each would work, and my result was nothing, it literally returned a blank line? lol
<apeiros>
Johne: really? you didn't get an exception?
<apeiros>
before line 8, add `p data['dates'][0]['games']` please and add the output to your gist
<apeiros>
Johne: ok, 2 gist pro-tips: a) rename your gist to something with .rb so it gets syntax highlighting. b) split code and data into separate files (you can post multiple files in a single gist)
ANTIPSYCHIATRY has quit [Client Quit]
<Johne>
ah, my newbness is showing?
SteenJobs has joined #ruby
<apeiros>
Johne: are you running that code from irb or as a file via `ruby yourfile.rb`?
mallu has joined #ruby
<Johne>
from irb
<Johne>
im just learning
<apeiros>
aha, that. take a look at the prompt after you hit enter
<apeiros>
hm, seems I'm not using a standard prompt with irb so I can't copy & paste the behavior from mine
mistermocha has quit [Ping timeout: 272 seconds]
<apeiros>
anyway, your prompt should change to indicate that you are in an unfinished statement
<apeiros>
each do … # <-- lacks an `end`
<Johne>
this gist is pretty awesome, never used it for more than a pastebin
anisha has quit [Quit: This computer has gone to sleep]
gix has quit [Quit: Client exiting]
<Johne>
i just updated it. did i make it better or worse?
<baweaver>
I wouldn't recommend doing that in production
SteenJobs has joined #ruby
<baweaver>
It was more to prove that you could totally do a tree search without having to do anything outside of the hash constructor
<Johne>
apeiros :D
<Johne>
johne@ubuntu:~$ ruby nhl.rb
<Johne>
San Jose Sharks
<Johne>
Dallas Stars
lxsameer has quit [Quit: WeeChat 1.5]
<baweaver>
If I switched in a === I could use regex / range / proc for keys
<Johne>
ty for your help w/ my stupidity
<apeiros>
s/stupidity/new-being/
<apeiros>
noobism?
<baweaver>
The entire thing it relies on is that lambdas have the same accessor as hashes for their call which can be abused
<Johne>
is there a good way to turn all the hashes into vars?
aegis3121 has joined #ruby
rippa has joined #ruby
<apeiros>
variable variables are a bad idea Johne
<baweaver>
meta
<Johne>
if im just learning ill stick to only good ideas then
<baweaver>
It's so meta even this acronym
nankyokusei has quit [Quit: nankyokusei]
jeanlinu_ has quit [Ping timeout: 265 seconds]
<apeiros>
wanting variably named variables usually means you want either a hash or, in case of numerically named variables, an array.
jeanlinux has quit [Remote host closed the connection]
<baweaver>
or method_missing
* baweaver
ducks
Ishido has quit [Remote host closed the connection]
<baweaver>
(P.S. method_missing is very rarely a good idea)
griffindy has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
<apeiros>
it is a lot of fun, though
<apeiros>
but I guess many bad ideas are :D
<baweaver>
like built in tree search hashes :D
blockchan1 has joined #ruby
Ishido has joined #ruby
blockchan has quit [Ping timeout: 265 seconds]
<baweaver>
If I prefix anything in this channel with "want to see something interesting" or "I did bad things to ruby again" chances are you shouldn't actually use it :P
lightheaded has joined #ruby
dmarr has joined #ruby
<dmarr>
anyone know if there is a way to prevent foreman from displaying the 'timestamp: process' stuff onthier logs
qakar_ has quit [Read error: Connection reset by peer]
redpants has quit [Ping timeout: 248 seconds]
marxarelli has joined #ruby
redpants has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conta1 has joined #ruby
SteenJobs has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
ebraga has joined #ruby
firstdayonthejob has joined #ruby
weaksauce has joined #ruby
conta1 has quit [Ping timeout: 248 seconds]
grh has quit [Ping timeout: 240 seconds]
qakar has joined #ruby
SteenJobs has joined #ruby
john has joined #ruby
ramfjord has joined #ruby
john is now known as Guest62670
Guest62670 is now known as fuzzyfuzz
fuzzyfuzz is now known as squidbits
claudiuinberlin has joined #ruby
ur5us has joined #ruby
unreal_ is now known as unreal
Oclair has joined #ruby
unreal is now known as unrael
unrael is now known as unreal
<ebraga>
q
ebraga has quit [Quit: leaving]
ebraga has joined #ruby
optiz0r has quit [Quit: Leaving]
optiz0r has joined #ruby
SteenJobs has quit [Ping timeout: 255 seconds]
gix has joined #ruby
cdg has quit [Remote host closed the connection]
Vingador has joined #ruby
SuperLag has joined #ruby
futilegames has joined #ruby
rippa has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
zeroDi has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blockchan has joined #ruby
blockchan1 has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
tyang has joined #ruby
futilegames has quit [Quit: futilegames]
SteenJobs has joined #ruby
mistermocha has joined #ruby
wrkrcoop has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
dviola has joined #ruby
nikivi has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
agit0 has joined #ruby
SteenJobs has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
gizmore has quit [Remote host closed the connection]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 265 seconds]
kitikonti has joined #ruby
SteenJobs has quit [Ping timeout: 255 seconds]
pochoa has quit [Quit: leaving]
jackjackdripper1 has joined #ruby
conta has joined #ruby
pokalyis has joined #ruby
Pumukel has joined #ruby
conta has quit [Read error: Connection reset by peer]
marxarelli is now known as marxarelli|afk
jackjackdripper has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 244 seconds]
conta has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stamina has quit [Ping timeout: 265 seconds]
postmodern has joined #ruby
axsuul has joined #ruby
threh has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
SteenJobs has joined #ruby
nikivi has quit [Quit: irc]
elenatanasoiu has joined #ruby
ruby997 has joined #ruby
Vingador has quit [Ping timeout: 244 seconds]
<ruby997>
hi guys, I am looking to integrate the gem "vault" into my chef, but I cant figure out how to set the config values for the gem? can anyone lead me in the right direction?
AzureStigma has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jshjsh has joined #ruby
elenatanasoiu has quit [Ping timeout: 260 seconds]
tyang has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Axl__ has joined #ruby
<rubynuby>
Hi all! I have a Ruby question...
SteenJobs has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
ta_ has joined #ruby
pushpak has joined #ruby
pushpak has quit [Client Quit]
<apeiros>
rubynuby: just go ahead
<rubynuby>
Noob question...I'm planning a program with, like, 15-20 class files. (Just trying to do what Sandi Metz says and make lots of small things.) So suppose I have a dozen class files in lib/. The classes are of course referencing each other all over the place. I don't make them 'require' each other, right? Don't I just put a long list of 'requires' at the top of my main program file and call it done?
jose_leeto has quit [Quit: Leaving.]
montyboy has quit [Quit: WeeChat 1.5]
<jazzonmym11nd>
i wouldn't take that advice to the extreme.
AndrewIsHere has joined #ruby
ta__ has quit [Ping timeout: 264 seconds]
<rubynuby>
Yeah I was thinking of combining related classes in a half-dozen modules...
<rubynuby>
What's the best practice on how to require all the class files in lib/?
<jazzonmym11nd>
for your question: you could do either. some people like for files to require any of their dependencies, others require everything from lib/project.rb
<rubynuby>
@jazzonmym11nd: Isn't the latter a lot easier to maintain?
skweek has quit [Ping timeout: 265 seconds]
Darmani has joined #ruby
lightheaded has joined #ruby
JoshS has joined #ruby
<jazzonmym11nd>
i think so, it's normally what i do, but it can mean a file cannot be required in isolation.
<apeiros>
rubynuby: I prefer having all files require all their dependencies
<rubynuby>
Are there advantages to requiring a file in isolation??
marxarelli|afk is now known as marxarelli
<rubynuby>
apeiros: What's the advantage of that?
SteenJobs has joined #ruby
<apeiros>
shows me what a file depends on as a reader of your code, keeps the responsibility where it IMO belongs.
jshjsh has quit [Ping timeout: 264 seconds]
jose_leeto has joined #ruby
<jazzonmym11nd>
one advantage is you just require what you need, but i think that's only an issue with larger libraries tbh. i like my libraries to be small.
bsrd has quit [Quit: WeeChat 1.5]
aidalgol has joined #ruby
aidalgol is now known as Guest50446
Guest50446 is now known as aidalgol
<rubynuby>
But if I am following Sandi's advice and I do have lots of classes...and let's say lots of class files...then keeping track of whether one class requires another or not could be an annoyance, no?
<apeiros>
try it
<rubynuby>
Sure I guess I'll try it both ways
<jazzonmym11nd>
don't take her advice to the extreme, if you have to follow dozens of class files to understand your code it's just as confusing as classes that do too much.
arashb has quit [Ping timeout: 265 seconds]
kanobt61 has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
eindoofus has joined #ruby
ElFerna83 has joined #ruby
kanobt61 has joined #ruby
<Darmani>
Hey guys, I was trying to write a function that does the same thing as flatten but I don't think I got it right.