apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
benzrf is now known as benzrf|offline
linoj has quit [Quit: linoj]
benzrf|offline is now known as benzrf
mgberlin has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dc_ has joined #ruby
rau has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
Zebroid has quit [Remote host closed the connection]
rau has quit [Remote host closed the connection]
yubrew has joined #ruby
virtualize has joined #ruby
wallerdev has joined #ruby
endash has quit [Quit: endash]
klaut has quit [Remote host closed the connection]
SilverKey has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
yubrew has quit [Ping timeout: 244 seconds]
hpoydar has quit [Remote host closed the connection]
ddv has joined #ruby
earthquake has quit [Quit: earthquake]
reset has joined #ruby
linoj has joined #ruby
hpoydar has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
mijicd has quit [Remote host closed the connection]
mgberlin has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
marr has quit []
Noob101 has joined #ruby
<foomanbar> havenwood, you still here?
Darkchaos has quit [Ping timeout: 272 seconds]
e4xit has joined #ruby
earthquake has joined #ruby
e4xit_ has joined #ruby
Solnse has quit [Quit: Leaving.]
e4xit has quit [Ping timeout: 255 seconds]
e4xit_ is now known as e4xit
pontiki has joined #ruby
chipotle has joined #ruby
Deele has joined #ruby
pontiki has quit [Client Quit]
theharshest has joined #ruby
Solnse has joined #ruby
brunops has quit [Disconnected by services]
brunops has joined #ruby
theharshest has quit [Client Quit]
chipotle has quit [Client Quit]
agent_white has quit [Ping timeout: 248 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Edelwin is now known as EdelwinK
EdelwinK is now known as Edelwin
jord has quit [Quit: Connection closed for inactivity]
agjacome has quit [Quit: leaving]
agent_white has joined #ruby
enebo has joined #ruby
postmodern has joined #ruby
benzrf is now known as benzrf|offline
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has quit [Quit: This computer has gone to sleep]
mgberlin has quit [Remote host closed the connection]
theharshest has joined #ruby
nasj has joined #ruby
jamto11 has joined #ruby
<bricker`LA> YAML in 1.9.3 is converting { "a" => "*" } to `a: ! '*'` . This doesn't happen in 2.x . How could I get the 2.x behavior?
<bricker`LA> The exclamation mark is what I want to get rid of
<bricker`LA> So I just get `a: '*'` (which is the result in 2.x)
<bricker`LA> Using to_yaml by the way
GriffinHeart has joined #ruby
dc_ has quit []
agjacome has joined #ruby
agjacome has quit [Client Quit]
agjacome has joined #ruby
<apeiros> bricker`LA: might try the psych gem
momomomomo has joined #ruby
<bricker`LA> apeiros: good idea, I'll give it a shot
jamto11 has quit [Ping timeout: 240 seconds]
nasj has quit [Ping timeout: 240 seconds]
<apeiros> tell me how it goes
<apeiros> we'll be moving some apps next week and using psychs gem might be an intermediary step
sgen has joined #ruby
cristine__ has left #ruby [#ruby]
chipotle has joined #ruby
Connie has joined #ruby
<havenwood> foomanbar: yup, back
fold has quit [Quit: WeeChat 0.4.3]
<Connie> hello i have this problem http://pastebin.com/GKEiH6Up, it happened after i added sass-gobbling to my Gemfile and config.rb
GriffinHeart has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
<havenwood> Connie: Did you `bundle` after adding it?
<Connie> yeah
<havenwood> Connie: Same output with?: bundle exec compass watch --trace
<Connie> i haven't tried that, what does that do?
<havenwood> Connie: it executes a command in the context of the bundle
<Connie> oh i see, i tried but i get the same error
mgberlin has joined #ruby
<Connie> is it because of the compass version maybe?
benzrf|offline is now known as benzrf
mrmargolis has joined #ruby
pwh_ has quit []
<foomanbar> havenwood, I've used as much FileUtil as I think I can. There are some things I'm not sure about about. What if i need to just run some basic commands such as './configure"
anaeem1 has joined #ruby
britneywright has joined #ruby
Noob101 has quit [Quit: Page closed]
wallerdev has quit [Quit: wallerdev]
<havenwood> Connie: I don't see `sass-gobbling` on RubyGems, a custom gem?
linoj has quit [Quit: linoj]
Noob101 has joined #ruby
<Connie> wait a sec..
chipotle has quit [Quit: cya]
<Connie> jeez..
<havenwood> foomanbar: hem, yeah i think just shelling out there
<Connie> i got the name wrong.... this is embarrassing
<havenwood> Connie: hehe, oops!
<havenwood> aha, i was wondering what a sass gobbler was!
<ericwood> I am a sass gobbler
<havenwood> ericwood: :O
<foomanbar> havenwood, so that makes me wonder, if I need to shell out once, why not just stick with it every where?
<ericwood> hey what's the cool thing to use for docs these days?
<ericwood> rdoc looks like ass
<havenwood> foomanbar: portability of commands
<foomanbar> good point
<havenwood> foomanbar: gnu versus bsd flags, etc
<ericwood> I like the way the official ruby docs look, what were those made with?
<havenwood> foomanbar: just a lot of mines to hit
<foomanbar> the only command I'm really stuck on is trying to extract the tar.gz
anaeem1 has quit [Ping timeout: 244 seconds]
fold has joined #ruby
<Connie> i just learned to double check things... >_<
<foomanbar> I wasn't able to find a gem and i cant seem to get the answers I found on stack to work.
phoo1234567 has quit [Quit: Leaving]
<havenwood> foomanbar: maybe Zlib
<foomanbar> i found this but i cant seem to require it.. not sure what the deal is
saarinen has joined #ruby
perlsyntax has joined #ruby
<foomanbar> havenwood, if i use Zlib, how to I ensure the inflated data is saved ?
<foomanbar> ie, what do i do with "uncompressed_data"
<foomanbar> do i need to iterate that and save each file individually?
linoj has joined #ruby
<havenwood> foomanbar: File and Zlib::Inflate or Zlib::GzipReader.
<foomanbar> havenwood, ok let me throw up a gist
sgen has quit [Quit: Leaving]
mgberlin has quit [Remote host closed the connection]
linoj has quit [Client Quit]
saarinen has quit [Client Quit]
reset has quit [Quit: Leaving...]
yubrew has joined #ruby
<bricker`LA> apeiros: The psych gem throws an error when calling "to_yaml": https://github.com/fatfreecrm/fat_free_crm/issues/281 :( I added `gem 'psych'; require 'psych'` after installing the gem. Oh well... I'll just shamefully gsub the file
<foomanbar> so can I File.open() a folder?
<foomanbar> in_folder = File.open('/some/dir')
<bricker`LA> foomanbar: What would expect that command to do? Launch Finder? :)
<foomanbar> bricker`LA, hahaha
MatthewsFace has joined #ruby
<foomanbar> Im thinking to hard i guess
<bricker`LA> finges: Use Dir.foreach() to iterate over files in a directory
<ericwood> I recommend doing File.open in a block so you get the automatic close at the end :)
yubrew has quit [Ping timeout: 260 seconds]
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
wallerdev has joined #ruby
chipotle has joined #ruby
gzl has joined #ruby
Martxel has quit [Read error: Connection reset by peer]
<havenwood> foomanbar: You could `require 'rubygems/package'` for `Gem::Package::TarReader` but yeah, the tar bit isn't as straight forward as from the command line.
<foomanbar> havenwood, thats the solution i saw. bummed there is no Magic::extract('somefile.tar.gz') XD
<foomanbar> im working with Zlib.. i think im close
<benzrf> foomanbar: u could make it :-O
<foomanbar> Magic::perform('save the world')
<bricker`LA> foomanbar: You can try the Cocaine gem, it helps you safely run shell commands from inside Ruby programs
momomomomo has quit [Quit: momomomomo]
<bricker`LA> foomanbar: or this: http://rubygems.org/gems/archive
<bricker`LA> Archive::Tar.extract("something.tar.gz", "/tmp/something")
<foomanbar> bricker`LA, i tried that archive gem. It wont require
<bricker`LA> even easier: Archive.extract("something.tar.gz", "/tmp/something")
<bricker`LA> foomanbar: oh, why not?
<bricker`LA> which version of ruby?
<foomanbar> i didn't dig into the source but the obvious require 'archive' does not work.
Hanmac has joined #ruby
<foomanbar> i didnt see the github page for it though, now i can see how its done via tests
cobakobodob has quit [Ping timeout: 240 seconds]
<foomanbar> but it is require 'archive'..
<foomanbar> ill try it again.
<bricker`LA> irb(main):001:0> require 'archive'
<bricker`LA> => true
<bricker`LA> \o/
<bricker`LA> that's in ruby 2.1.1
Hanmac1 has quit [Ping timeout: 240 seconds]
<godd2> >> RUBY_VERSION
<eval-in_> godd2 => "2.1.0" (https://eval.in/169767)
wallerdev has quit [Quit: wallerdev]
mikecmpbll has quit [Quit: i've nodded off.]
pontiki has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
tectonic has joined #ruby
cmoneylulz has joined #ruby
robustus has joined #ruby
<foomanbar> bricker`LA, I'm getting this
<foomanbar> LoadError: Could not open library 'archive': archive: cannot open shared object file: No such file or directory.
northfurr has quit [Quit: northfurr]
rau has joined #ruby
<foomanbar> ruby -v = 2.1.2
<foomanbar> ahhh. i dont have a lib installed
frank_____ has quit [Quit: Connection closed for inactivity]
<benzrf> hmmmmmmmmmmmmmmmmmmmmmmmm
neiled has joined #ruby
neiled has quit [Max SendQ exceeded]
arrubin has quit [Ping timeout: 240 seconds]
<foomanbar> bricker`LA, what OS are you on? I've got a fresh Ubuntu 14 and I needed to install libarchive-dev
bradhe has quit [Remote host closed the connection]
arrubin has joined #ruby
<bricker`LA> os x
basichash has quit [Ping timeout: 246 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<foomanbar> ok
<foomanbar> that must come down with X code i assume
<bricker`LA> foomanbar: no, I installed the gem then ran that
cmoneylulz has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
<foomanbar> bricker`LA, lol
<foomanbar> the ironic thing about this little installer I'm making is, I really don't like using Node in the first place.
<benzrf> hmmm
guyz has quit [Ping timeout: 244 seconds]
<benzrf> i have an idea
nasj has joined #ruby
hpoydar has quit []
arrubin has quit [Ping timeout: 255 seconds]
awkwords has joined #ruby
bradhe has joined #ruby
mrmargol_ has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
theharshest has quit [Quit: This computer has gone to sleep]
nasj has quit [Ping timeout: 248 seconds]
arrubin has joined #ruby
<benzrf> aw dang pry
<benzrf> get ur act together
cobakobodob has joined #ruby
thrownaway has joined #ruby
SilverKey has quit [Quit: Cheerio!]
<benzrf> ^unix magicien
<benzrf> *magic
theharshest has joined #ruby
kireevco has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
katlogic_ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<foomanbar> havenwood, pm real fast?
katlogic has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
neiled has joined #ruby
* apeiros see's havenwood type "/msg foomanbar real fast"
thrownaway has quit []
bradhe has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
katlogic_ has quit [Ping timeout: 240 seconds]
thrownaway has joined #ruby
katlogic has joined #ruby
braincra- has joined #ruby
charliesome has joined #ruby
mgberlin has joined #ruby
mgberlin has quit [Remote host closed the connection]
arrubin has quit [Ping timeout: 272 seconds]
mgberlin has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
cobakobodob has quit [Ping timeout: 260 seconds]
arrubin has joined #ruby
braincrash has quit [Ping timeout: 272 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
nectarys has joined #ruby
bradhe has joined #ruby
matchaw has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
duper has joined #ruby
neiled has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
thomasxie has quit [Remote host closed the connection]
pika_pika has joined #ruby
brunops has quit [Ping timeout: 252 seconds]
nectarys has quit [Ping timeout: 244 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
brunops has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
neiled has joined #ruby
fold has quit [Ping timeout: 244 seconds]
thesheff17 has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
neiled has quit [Client Quit]
GriffinHeart has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
arrubin has quit [Ping timeout: 255 seconds]
arrubin has joined #ruby
maestrojed has joined #ruby
neiled has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
sardaukar has joined #ruby
sardaukar has left #ruby [#ruby]
<benzrf> yo i'd like to make a warning
<benzrf> somebody made what appears to be a bot, which is in this channel
blassin has joined #ruby
<benzrf> it does this if you spam too many lines:
<benzrf> 10:34 < rau> benzrf: Please stop abusing your return key, you ugly cuntface.
<benzrf> if you want to kick before it activates
<rau> benzrf: Please stop abusing your return key, you abhorrent wannabe.
<blassin> hello
<benzrf> tsk
<ericwood> rau: you are a nice person
<ericwood> lol he got on me in #javascript earlier
<benzrf> i dont know what i expected from #ruby
<blassin> how can I have classes within a module sharing methods?
* benzrf shrus
<blassin> as in - a method in the module definition accessible to all classes in the module?
<ericwood> benzrf: I think it's an automated response
<ericwood> one sec, pardon the noise
<ericwood> 1
<ericwood> 2
<rau> ericwood: Please stop abusing your return key, you daft java fanboy.
<ericwood> 3
<ericwood> yep
cobakobodob has joined #ruby
<benzrf> i wonder who thinks 'abhorrent wannabe' is on level with 'ugly cuntface'
<blassin> I would like all object of classes inside a module to share methods
<benzrf> christ, what an asshole
<ericwood> benzrf: I got called an aspie earlier
tus has quit []
arrubin has quit [Ping timeout: 260 seconds]
<ericwood> so it's just pulling from a bank of stuff
gregf has quit [Quit: WeeChat 0.4.3]
<ericwood> blassin: I would think so?
<ericwood> but I'm not 100% what you're doing
<blassin> I cant get it to work
<ericwood> also I'm leaving bye!
<blassin> I have a module
<blassin> and classes within it
diegoviola has joined #ruby
<blassin> but if I call a method defined in the module, the classes say it’s undefined
<blassin> I can cook up a gist, if it helps
senayar has joined #ruby
gregf has joined #ruby
thesheff17 has joined #ruby
jamto11 has joined #ruby
<blassin> pasted here http://pastebin.com/5517pCGX
<blassin> ex.rb:13:in `initialize': undefined local variable or method `lol' for #<A::B:0x00000102087160> (NameError)
larsam has quit [Ping timeout: 248 seconds]
tyfighter has joined #ruby
Metics has quit [Remote host closed the connection]
nasj has joined #ruby
<awkwords> what am i doing wrong here
senayar has quit [Ping timeout: 260 seconds]
arrubin has joined #ruby
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Ping timeout: 240 seconds]
<blassin> awkwords: do each |k| instead of |k,v|
neiled has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blassin> and then k[:vpn]
<blassin> each element of the array is a hash
<blassin> so you just need to access it directly to print what you need
nasj has quit [Ping timeout: 255 seconds]
razum2um has joined #ruby
aspires has joined #ruby
<blassin> anyone up for a little module help?
<awkwords> blassin: http://pastie.org/9359801
<blassin> what do you want to achieve?
<awkwords> if vpn = west, give me that hash entry
decoponio has joined #ruby
<blassin> the whole entry?
<blassin> then do puts k instead of puts k[:vpn]
<blassin> right?
jrhe has joined #ruby
<awkwords> yes
perlsyntax has quit [Quit: Textual IRC Client: www.textualapp.com]
blassin has quit [Quit: blassin]
bradhe has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
thesheff17_ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Disconnected by services]
mehlah has quit [Ping timeout: 264 seconds]
thesheff17_ is now known as thesheff17
charlied3 has quit [Ping timeout: 252 seconds]
braincra- has quit [Quit: bye bye]
linoespinoza has joined #ruby
Shidash has joined #ruby
charlied3 has joined #ruby
saarinen has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
braincrash has joined #ruby
aspires has quit []
charlied3 has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
zorak has quit [Ping timeout: 260 seconds]
neiled has joined #ruby
neiled has quit [Max SendQ exceeded]
charlied3 has joined #ruby
aspires has quit [Client Quit]
cobakobodob has quit [Ping timeout: 255 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
kenndel has joined #ruby
Solnse has quit [Remote host closed the connection]
ixti has joined #ruby
kenndel_ has quit [Ping timeout: 240 seconds]
ddv has quit [Ping timeout: 245 seconds]
charlied3 has quit [Ping timeout: 260 seconds]
MatthewsFace has joined #ruby
ddv has joined #ruby
oo_ has quit [Remote host closed the connection]
digifiv5e has joined #ruby
digifiv5e is now known as Guest22956
enebo has quit [Quit: enebo]
aspires has joined #ruby
britneywright has joined #ruby
pwh has joined #ruby
foomanbar has quit [Quit: Leaving]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
aspires has quit [Client Quit]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Azure_ is now known as Azure
zorak has joined #ruby
Orthest has joined #ruby
<Orthest> lol
<Orthest> the number of people here is less than the number of my facebook contacts
<Orthest> hehehe
Connie has quit [Ping timeout: 255 seconds]
reset has joined #ruby
<Orthest> do you have a facebook group ?
<Orthest> i will see
dideler has quit [Ping timeout: 264 seconds]
<Orthest> i mean i will check for some fb gtoups
MatthewsFace has joined #ruby
benzrf is now known as benzrf|offline
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
altin has quit [Ping timeout: 255 seconds]
Georg3 has joined #ruby
<Georg3> Is there any sort of real value to the methods .center, .ljust, .rjust? From what I can think of, their only real value would be maybe inside a command line application?
<godd2> sounds like a good use case
<godd2> especially for output of help options
cobakobodob has joined #ruby
<Georg3> hm ok, just making sure I wasn't missing something obvious.
<godd2> also, csv files need a certain number of commas per line with empty values so youd need enough to fill up a line
nasj has joined #ruby
<Georg3> Hm ok, guess there are a couple edge cases. Probably most when dealing with file output
Channel6 has joined #ruby
nanodano has joined #ruby
njection has joined #ruby
yubrew has joined #ruby
nasj has quit [Ping timeout: 248 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
duncannz has quit [Quit: Leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Connie has joined #ruby
sputnik13 has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
pika_pika has quit [Quit: Leaving]
kireevco has quit [Quit: Leaving.]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
linoespinoza has quit [Quit: Textual IRC Client: www.textualapp.com]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
katlogic_ has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
ValicekB has joined #ruby
saarinen has quit [Quit: saarinen]
kireevco has joined #ruby
Kruppe has joined #ruby
anaeem1 has quit [Ping timeout: 244 seconds]
katlogic has quit [Ping timeout: 240 seconds]
ra4king has quit [Remote host closed the connection]
ra4king has joined #ruby
diegoviola has quit [Remote host closed the connection]
diegoviola has joined #ruby
freerobby has joined #ruby
katlogic_ has quit [Ping timeout: 248 seconds]
yakko_ has quit []
benzrf|offline is now known as benzrf
katlogic has joined #ruby
<jle`> i use it a lot for printing things yea
devians has left #ruby [#ruby]
Shidash has quit [Ping timeout: 260 seconds]
xcv_ has joined #ruby
<Noob101> >> 100000/52
<eval-in_> Noob101 => 1923 (https://eval.in/169772)
this_is_a_nick has joined #ruby
<Noob101> 1923*3
reset has quit [Quit: Leaving...]
<Noob101> 1923*4
xcv has quit [Ping timeout: 252 seconds]
<Noob101> >> 1923 * 3
<eval-in_> Noob101 => 5769 (https://eval.in/169773)
<Noob101> >> 1923 * 4
<eval-in_> Noob101 => 7692 (https://eval.in/169774)
havenwood has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 264 seconds]
ctp has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
ghr has joined #ruby
ctp has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 248 seconds]
bogeyd6 has joined #ruby
RandyT has quit [Ping timeout: 240 seconds]
<pontiki> come to #ruby@freenode, do your math!
RandyT has joined #ruby
moritzs has joined #ruby
<agent_white> Noob101: Please god change your name to something legit, even if to troll.
fold has joined #ruby
xcv_ has quit [Remote host closed the connection]
whowantstolivef1 has joined #ruby
kireevco has quit [Quit: Leaving.]
whowantstolivef2 has quit [Write error: Broken pipe]
ziyadb has quit [Quit: Connection closed for inactivity]
pwh has quit []
x1337807x has joined #ruby
Georg3 has quit [Quit: Computer has gone to sleep.]
sputnik13 has joined #ruby
zenojis has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
<pontiki> next up, agent_white uses eval-in_ to balance their checkbook
<godd2> can you make eval_in require a gem?
<agent_white> pontiki: You know me too well ;)
<pontiki> :D
wildroman2 has joined #ruby
sputnik13 has quit [Client Quit]
SJr has quit [Excess Flood]
yubrew has joined #ruby
bier has quit [Excess Flood]
jonathanwallace_ has quit [Excess Flood]
IceDragon has quit [Excess Flood]
jonathanwallace has joined #ruby
IceDragon has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
jamto11 has joined #ruby
SJrX has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
bier has joined #ruby
sputnik13 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
nasj has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
atmosx has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
atmosx has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 255 seconds]
yxhuvvd has joined #ruby
Sawbones has joined #ruby
ptierno_ has joined #ruby
miah_ has joined #ruby
end_guy has joined #ruby
yxhuvud has quit [Excess Flood]
certaint1 has joined #ruby
devyn_ has joined #ruby
camt has quit [Remote host closed the connection]
saarinen has joined #ruby
nasj has quit [Ping timeout: 260 seconds]
saarinen has quit [Client Quit]
this_is_a_nick has left #ruby [#ruby]
bogeyd6 has joined #ruby
agent_white has quit [Quit: night]
gzl_ has joined #ruby
mosez_ has joined #ruby
tonini_ has joined #ruby
harryk_ has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
ValicekB has joined #ruby
<awkwords> def blah
<awkwords> something = [ array ]
<awkwords> end
<awkwords> how can i call something outside of that method without it being a instance variable
<rau> awkwords: Please stop abusing your return key, you skanky dickwad.
harryk has quit [Write error: Broken pipe]
mosez has quit [Write error: Broken pipe]
gzl has quit [Write error: Connection reset by peer]
tonini has quit [Write error: Broken pipe]
stytown has joined #ruby
b1nd_ has joined #ruby
b1nd has quit [Ping timeout: 877 seconds]
Morrolan has quit [Ping timeout: 877 seconds]
MindfulMonk has quit [Ping timeout: 877 seconds]
erichmenge has quit [Ping timeout: 877 seconds]
Sigma00 has quit [Ping timeout: 877 seconds]
wlanboy has quit [Ping timeout: 877 seconds]
thejoecarroll has quit [Ping timeout: 877 seconds]
erichmenge_ has joined #ruby
MindfulMonk_ has joined #ruby
Sigma00_ has joined #ruby
mikecmpbll has joined #ruby
erichmenge_ is now known as erichmenge
thejoecarroll has joined #ruby
Sigma00_ is now known as Sigma00
MindfulMonk_ is now known as MindfulMonk
Kilobyte|StupidC has joined #ruby
certainty has quit [Remote host closed the connection]
ptierno has quit [Remote host closed the connection]
WillAmes has quit [Ping timeout: 276 seconds]
callumacrae has quit [Ping timeout: 276 seconds]
miah has quit [Ping timeout: 276 seconds]
cyphactor has joined #ruby
Sawbones has quit [Remote host closed the connection]
thooliha- has joined #ruby
tiguser_ has joined #ruby
callumacrae has joined #ruby
devyn has quit [Ping timeout: 276 seconds]
adeponte has quit [Ping timeout: 276 seconds]
Kilo`byte has quit [Ping timeout: 276 seconds]
SloggerKhan has quit [Ping timeout: 276 seconds]
tiguser has quit [Ping timeout: 276 seconds]
faulkner has quit [Ping timeout: 276 seconds]
thooliha- is now known as thoolihan
thoolihan has quit [Ping timeout: 276 seconds]
michael_mbp has quit [Ping timeout: 276 seconds]
SloggerKhan has joined #ruby
Morrolan has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
wlanboy has joined #ruby
michael_imac has joined #ruby
kireevco has left #ruby [#ruby]
faulkner has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
techsethi has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn_ is now known as devyn
camt has joined #ruby
tectonic has quit []
n_b has left #ruby [#ruby]
moritzs has quit [Ping timeout: 255 seconds]
<godd2> awkwords you would need to pass whatever is outside through a method parameter
SCHAAP137 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<pontiki> wtf
<pontiki> is rau a bot?
JoshGlzBrk has joined #ruby
<pontiki> pipework, is rau your work?
<godd2> benz complained bout rau earlier. i think its a bot
<pipework> pontiki: I'd hope so.
<pontiki> what else does it do beside insult shatner-esque typers?
northfurr has joined #ruby
gigetoo has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
kyb3r_ has joined #ruby
brunops has joined #ruby
havenwood has joined #ruby
njection has quit [Ping timeout: 252 seconds]
IceDragon has quit [Quit: Space~~~]
anaeem1 has joined #ruby
xaxisx has joined #ruby
DivineEntity has quit [Quit: leaving]
DivineEntity has joined #ruby
pasties_ is now known as pasties
anaeem1 has quit [Ping timeout: 264 seconds]
Georg3 has joined #ruby
fold has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
Georg3 has quit [Ping timeout: 240 seconds]
mgberlin_ has joined #ruby
<RubyPanther> "won't rejoin if kicked" usually indicates a bot
simoz1111114 has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
Sawbones has joined #ruby
anaeem1 has quit [Ping timeout: 272 seconds]
lukebyrne has joined #ruby
mgberlin has quit [Ping timeout: 260 seconds]
yubrew has joined #ruby
freerobby has quit [Quit: Leaving.]
<shevy> yeah
<shevy> real men rejoin when kicked and get revenge
<shevy> this so sucks... at work I can only pick among ... bash scripts... perl ... and python :(
Sawbones has quit [Ping timeout: 260 seconds]
<DivineEntity> python is fine
<shevy> it's python 2.4.2 hehe
<shevy> no sorry
<shevy> 2.5.2
dapz has joined #ruby
starkhalo has quit [Ping timeout: 272 seconds]
<DivineEntity> perl is the enemy
yubrew has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
ctp has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
Caius has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
steeve has joined #ruby
nasj has joined #ruby
x1337807x has joined #ruby
elikem_ has joined #ruby
kireevco has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elikem has joined #ruby
uxp has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uxp has joined #ruby
nasj has quit [Ping timeout: 255 seconds]
dapz has joined #ruby
thrownaway has quit [Ping timeout: 240 seconds]
elikem_ has quit [Quit: Lingo - http://www.lingoirc.com]
katlogic has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
Channel6 has quit [Quit: Leaving]
JoshGlzBrk has joined #ruby
iamcalledrob has joined #ruby
doev has joined #ruby
katlogic has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
CaptainJet has quit []
GriffinHeart has joined #ruby
zkay11 has left #ruby [#ruby]
dc_ has joined #ruby
agjacome_ has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
ValicekB has quit [Ping timeout: 264 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 272 seconds]
agjacome has quit [Ping timeout: 253 seconds]
saarinen has joined #ruby
saarinen has quit [Client Quit]
CodeLicker has quit [Ping timeout: 244 seconds]
Georg3 has joined #ruby
agjacome_ has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
Georg3 has quit [Ping timeout: 264 seconds]
jrhe has joined #ruby
AlexRussia has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
tectonic has joined #ruby
zenojis has joined #ruby
Sawbones has joined #ruby
yubrew has joined #ruby
<RubyPanther> DivineEntity: http://stuff.rubypanther.com/perl.rb (1.8)
thomasxie has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CodeLicker has joined #ruby
Sawbones has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
<jrhe> Whats the best practice for requiring your gem from a bin script when authoring a gem? I have tried just requiring it without luck. Guesisng I need to fiddle with the load path to add lib...
yubrew has quit [Ping timeout: 244 seconds]
awkwords has quit [Ping timeout: 260 seconds]
uffs has joined #ruby
tyfighter has quit [Quit: <3]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
<Hanmac1> jrhe ruby version?
Hanmac1 is now known as Hanmac
<jrhe> Hanmac: jruby
<Hanmac> oh thats even worse ... okay question again ... what ruby version does your jruby version use?
bogeyd6 has quit [Ping timeout: 264 seconds]
<jrhe> Hanmac: 1.9.3
wildroman2 has joined #ruby
<Hanmac> then itshould be able to find the gem
bogeyd6 has joined #ruby
warprobot has joined #ruby
wildroman3 has joined #ruby
jamto11 has joined #ruby
sigurding has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
shvelo has joined #ruby
nasj has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
agjacome has quit [Quit: leaving]
BeanDip has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 264 seconds]
gnfz has joined #ruby
BeanDip has joined #ruby
nasj has quit [Ping timeout: 260 seconds]
tacos1de has joined #ruby
Alina-malina has joined #ruby
noocode has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
netto_ has joined #ruby
noocode has joined #ruby
dc_ has quit [Remote host closed the connection]
yacks has joined #ruby
dc_ has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
sigurding has quit [Quit: sigurding]
claymore has joined #ruby
Noob101 has quit [Quit: Page closed]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
bradhe has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
bradhe has joined #ruby
klaut has joined #ruby
iamcalledrob has quit [Quit: Lingo - http://www.lingoirc.com]
bradhe has quit [Ping timeout: 264 seconds]
wildroman3 has quit [Remote host closed the connection]
m8 has joined #ruby
sigurding has joined #ruby
mikecmpbll has joined #ruby
techsethi has quit [Quit: techsethi]
Mon_Ouie has joined #ruby
Sawbones has joined #ruby
tectonic has quit []
yubrew has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
iamcalledrob has joined #ruby
banister has joined #ruby
Hanmac1 has joined #ruby
Sawbones has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
tectonic has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
BadQuanta has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has quit []
postmodern has quit [Quit: Leaving]
jhass|off is now known as jhass
ctp has joined #ruby
ctp has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
mike32 has joined #ruby
alem0lars has joined #ruby
stytown has quit [Quit: stytown]
bubbajones has quit [Ping timeout: 260 seconds]
JoshGlzBrk has joined #ruby
<diegoviola> what's the difference with procs, blocks and lambdas?
<Mon_Ouie> A block is a syntactic construct: do |x, y| x + y end
<Mon_Ouie> A proc is an object that can be created from a block
Georg3 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 252 seconds]
<Mon_Ouie> A lambda is a special kind of proc that will 1) check the amount of arguments you pass to it and 2) behave differently with regards to 'return'
claymore has quit [Ping timeout: 272 seconds]
nasj has joined #ruby
redlegion has quit [Ping timeout: 264 seconds]
netto_ is now known as nettofarah
claymore has joined #ruby
Sawbones has joined #ruby
<shevy> diegoviola here is how to remember - a block has XP 0. Once it gained 100 XP, it reaches level 2 and becomes a proc. For a mere +50XP it can then be upgraded to a level 3 object called lambda
godd2 has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
<diegoviola> what's XP in this context?
<Edelwin> it's for the metaphore
Orthest has left #ruby [#ruby]
warprobot has quit [Remote host closed the connection]
nasj has quit [Ping timeout: 260 seconds]
<diegoviola> not sure i understand that
<diegoviola> sorry
bradhe has quit [Ping timeout: 244 seconds]
JBreit has joined #ruby
Soda has joined #ruby
<diegoviola> hrm
<diegoviola> so is it just an example in this case?
techsethi has joined #ruby
bubbajones has joined #ruby
<jhass> it's just another ignore shevy and read what Mon_Ouie said
<shevy> listening to jhass is associated with a loss of XP
GriffinHeart has joined #ruby
<diegoviola> shevy: what do you mean with XP?
gruz0[russia] has joined #ruby
rippa has joined #ruby
dangerousdave has joined #ruby
<shevy> diegoviola have you never played any MUDs?
<diegoviola> no, i'm not really a gamer
<diegoviola> but I tried to run Limbo on archlinux recently, without much success
<diegoviola> that's probably off-topic, sorry
redlegion has joined #ruby
gruz0[russia] has quit [Client Quit]
<shevy> well it was indeed an analogy
<shevy> blocks are ubiquitous in ruby
<shevy> diego_k I am sure you have used blocks often in ruby
<diegoviola> yes
<diegoviola> 10.times { puts "hello world" }
<diegoviola> that's a block, no?
GriffinHeart has quit [Ping timeout: 244 seconds]
warprobot has joined #ruby
<shevy> yeah
<diegoviola> they're everywhere
wildroman2 has joined #ruby
<diegoviola> I was just confused what the difference with procs and lambdas are
<diegoviola> i mean, how they differ
<shevy> ok now the thing is, that block has what is stored inside of it
<diegoviola> yes
<shevy> well here is where a proc comes into it
bubbajones has quit [Ping timeout: 244 seconds]
<shevy> you just need to try and answer this question diegoviola: How can you invoke { puts "hello world" } ?
zz_karupa is now known as karupa
dangerousdave has quit [Read error: Connection reset by peer]
bubbajones has joined #ruby
dangerousdave has joined #ruby
Hanmac has joined #ruby
<shevy> it's a real question btw :)
<diegoviola> shevy: not sure, by creating a proc?
<diegoviola> can you tell me?
Darkchaos has joined #ruby
<shevy> diegoviola yeah, you can create a proc
<shevy> that is the first step
<shevy> what might be the syntax you would use for that?
Hanmac1 has quit [Ping timeout: 255 seconds]
Atttwww has quit [Ping timeout: 240 seconds]
<diegoviola> Proc.new?
<shevy> I suppose that would work too
<shevy> >> Proc.new
<eval-in_> shevy => tried to create Proc object without a block (ArgumentError) ... (https://eval.in/169791)
<diegoviola> p = Proc.new {puts "hello world"}
<diegoviola> 3.times { p.call }
<shevy> yeah
<shevy> see, you already know blocks and procs!
<diegoviola> :)
<diegoviola> thanks
<apeiros> >> def foo; Proc.new.call; end; foo { "hi" }
<shevy> and lambda just is nitpickier
* apeiros kicks eval-in_
<diegoviola> shevy: i really appreciate your help, very helpful, thanks
mikecmpbll has joined #ruby
<shevy> compare this diegoviola
<diegoviola> apeiros: that's nicer i think
<shevy> >> x = proc {|foo| puts foo }.call
<eval-in_> shevy => ... (https://eval.in/169792)
<shevy> >> x = lambda {|foo| puts foo }.call
<eval-in_> shevy => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/169793)
arkneca has joined #ruby
<shevy> so lambda will scream and say "I'm not gonna work if you forget arguments!!!" whereas proc is like the lebowski guy "hey dude, take it easy, let's be lazy"
<pontiki> the proc abides
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkxploit has joined #ruby
<apeiros> diegoviola: huh? nicer? than what?
<apeiros> I only wanted to show what Proc.new without a block can do (namely: create a proc from the passed block)
<apeiros> I wouldn't use that except for very esoteric cases
karupa is now known as zz_karupa
<diegoviola> apeiros: i just like one liners
<pontiki> such as teaching :)
<shevy> yeah
<shevy> apeiros also likes one-liners
rdark has joined #ruby
<diegoviola> apeiros: thought it was nicer than the 2-lines i pasted above, but i guess they are doing different things? i don't know
<pontiki> i figure a one liner is like keith richards working a complex riff of 7 or 9 chords down the necessary 2 chords
lxsameer has joined #ruby
lxsameer has joined #ruby
<pontiki> in a lesser player, such a thing would become a train wreck
<diegoviola> why does the #call in lambda requires an argument and with proc it doesn't?
<jhass> because that's their difference
<Mon_Ouie> >> lambda {}.call
<eval-in_> Mon_Ouie => nil (https://eval.in/169800)
<Mon_Ouie> It doesn't need an argument, it only needs an argument if the lambda needs one
Caius has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
<diegoviola> i see, thanks
Caius has joined #ruby
zenojis has quit [Ping timeout: 240 seconds]
vadzimt has joined #ruby
<shevy> diegoviola, rack uses a lot of lambdas
<shevy> for instance:
<shevy> app = lambda { |env| [200, { "Last-Modified" => last_modified }, ["Hello World!"]] }
JBreit has left #ruby ["Leaving"]
Georg3 has quit [Quit: Computer has gone to sleep.]
<shevy> app = lambda { |env| [304, {'Content-Type' => 'text/plain'}, []] }
Takle has joined #ruby
<shevy> lambda { Rack::Lint.new(lambda { |env|
<shevy> hmm
<jhass> though it's more common to create a class that responds to call
<shevy> a lambda in a lambda in a lambda
<shevy> like a matryoshka doll
yubrew has quit [Ping timeout: 260 seconds]
jackneill has joined #ruby
spider-mario has joined #ruby
zenojis has joined #ruby
relix has joined #ruby
nettofarah has left #ruby ["Textual IRC Client: www.textualapp.com"]
iamcalledrob has quit [Quit: Computer has gone to sleep.]
techsethi has quit [Quit: techsethi]
ph8 has quit [Read error: Connection reset by peer]
shvelo has quit [Ping timeout: 272 seconds]
iamcalledrob has joined #ruby
Derander has quit [Ping timeout: 240 seconds]
CorpusCallosum has quit [Ping timeout: 264 seconds]
top4o has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
iamcalledrob has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 272 seconds]
Derander has joined #ruby
febuiles_ has joined #ruby
arkneca has quit [Quit: Leaving]
duncannz has joined #ruby
banister has joined #ruby
febuiles has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
banister has quit [Client Quit]
banister has joined #ruby
banister has quit [Client Quit]
dangerou_ has joined #ruby
banister has joined #ruby
dc_ has joined #ruby
bradhe has joined #ruby
jamto11 has joined #ruby
dangerousdave has quit [Ping timeout: 248 seconds]
luckyruby has joined #ruby
dc_ has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 272 seconds]
jamto11 has quit [Ping timeout: 255 seconds]
theharshest has joined #ruby
frank_____ has joined #ruby
Xeago has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
theharshest has quit [Client Quit]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lukebyrne has quit []
klaut has quit [Remote host closed the connection]
lulzmachine has joined #ruby
shvelo has joined #ruby
iamcalledrob has joined #ruby
senayar has joined #ruby
lulzmachine2 has joined #ruby
echevemaster has quit [Quit: Leaving]
gruz0[russia] has joined #ruby
bayed has joined #ruby
kireevco has quit [Quit: Leaving.]
<luckyruby> Is there a name for a data structure that's like a hash where keys are unique, values are unique, and you can do a lookup using either key or value.
iamcalledrob has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
<apeiros> luckyruby: I'm not aware of any. but you can achieve that using 2 hashes
Xeago has quit [Remote host closed the connection]
<luckyruby> yea, I've been using Hash#invert to accomplish that.
<apeiros> well, that alone won't guarantee you unique values in the source hash, though
<pontiki> well, let's call it a lucky inversion, then
dangerou_ has quit [Ping timeout: 248 seconds]
shvelo has quit [Ping timeout: 244 seconds]
wildroman2 has joined #ruby
<pontiki> tough room
yubrew has joined #ruby
shvelo has joined #ruby
<shevy> lol
<shevy> you are having a good day pontiki
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
sevenseacat has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
shredding has joined #ruby
nfk has joined #ruby
andikr has quit [Remote host closed the connection]
altin has joined #ruby
nasj has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
gregf has quit [Ping timeout: 272 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
nasj has quit [Ping timeout: 248 seconds]
shvelo has quit [Ping timeout: 272 seconds]
duper has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 240 seconds]
buub has quit [Ping timeout: 240 seconds]
duper has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
techsethi has joined #ruby
bradhe has joined #ruby
larsam has joined #ruby
gregf has joined #ruby
duper has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
bradhe has quit [Ping timeout: 255 seconds]
Deele has joined #ruby
Prandium has joined #ruby
Guilt has joined #ruby
Guilt has quit [Changing host]
Guilt has joined #ruby
nasj has joined #ruby
<Guilt> Is there a way to access reqyest headers in the response object, Rails?
drawingthesun has joined #ruby
<Guilt> I wanted to Monkey patch the response objects and not have it done thru the controller.
wildroman2 has quit [Remote host closed the connection]
<Guilt> I was also looking at per-request thread safe global variables for this, but not sure if that's the way.
GriffinHeart has joined #ruby
<olivier_bK> how i can store data in my database
<shevy> generate .sql files olivier_bK
<Guilt> So, to give more context, Rails 2.2
<olivier_bK> no it's no the problem
<olivier_bK> i try to find a word for explain
<Guilt> and people write controllers all over the place.
GriffinHeart has quit [Ping timeout: 244 seconds]
lulzmachine2 has quit [Quit: This computer has gone to sleep]
lulzmachine has quit [Quit: lulzmachine]
Prandium has quit [Remote host closed the connection]
Prandium has joined #ruby
<olivier_bK> what i try is store in database this for example "<p>hello world how are you today?<p>"
skaflem has joined #ruby
<luckyruby> olivier_bK: find a gem for your db
<luckyruby> mysql2, pg, etc
<olivier_bK> i use mysql2
<luckyruby> ok, look up the usage on mysql2
<shevy> hehe
<olivier_bK> but for store data in my database i use ActiveRecord
<olivier_bK> okai
ixti has joined #ruby
Zackio has quit [Ping timeout: 272 seconds]
schaerli has joined #ruby
<luckyruby> Foo.create(column_name: '<p>hello world</p>')
Guilt has quit [Ping timeout: 246 seconds]
<luckyruby> assuming you have class Foo < ActiveRecord::Base; end; in app/models/foo.rb
grug has joined #ruby
Prandium has quit [Remote host closed the connection]
lulzmachine has joined #ruby
lulzmachine3 has joined #ruby
<grug> hey there - i'm following the following tutorial to create my first gems package (http://guides.rubygems.org/make-your-own-gem/) and am getting a "ERROR: While executing gem ... (Gem::FilePermissionError)" when trying to install my generated gem file. i can install the gem file using "sudo" but then when i go to require my module in irb i get the following error: LoadError: cannot load such file - any help or guidance would be much appreciated
Prandium has joined #ruby
Zackio has joined #ruby
lulzmachine3 has quit [Client Quit]
lulzmachine has quit [Client Quit]
lulzmachine has joined #ruby
lulzmachine2 has joined #ruby
iamcalledrob has joined #ruby
Soda has quit [Remote host closed the connection]
larsam has quit [Read error: Connection reset by peer]
iamcalledrob has quit [Ping timeout: 252 seconds]
vyorkin has joined #ruby
yubrew has joined #ruby
lulzmachine2 has quit [Quit: This computer has gone to sleep]
lulzmachine has quit [Quit: lulzmachine]
<jhass> grug: make a gist of your gemspec and the output of the tree command
<grug> sure, no worries
Photism has quit [Quit: Leaving]
BadQuanta has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
<grug> i believe the gem is being generated correctly and that the issue might be how i have ruby configured on my development box - but don't seem to be getting much love from google
<grug> i don't want to have to resort to chmod -R 777'ing the paths that it says it doesn't have write access to - ideally i'd understand the problem and be able to configure my dev environment so this isn't a problem
shredding has joined #ruby
marr has joined #ruby
vyorkin has quit [Quit: WeeChat 0.4.3]
<jhass> you don't add any files to your gem
<jhass> s.files = ... is missing
<grug> just out of curiosity - why would that be the root cause of the following error: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<grug> ?
Zebroid has joined #ruby
<grug> but yes, you are correct :) I am missing that line
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
<jhass> it's not, you solved that on your own by using sudo gem install
<jhass> it's the reason for the cannot load such file error
<grug> ah yep, good point :)
eka has joined #ruby
<apeiros> grug: since you're on osx, I'd recommend you install a user-installation of ruby. e.g. via rvm.
<apeiros> then you don't need sudo and you don't touch system ruby
<grug> that's what i'm trying to wrap my head around at the moment - how do i force my system to use my installation of ruby and not the root install?
alem0lars has quit [Quit: Going AFK...]
<grug> and i do agree - i should be using a user-install of ruby - i've got rvm installed now but i dont seem to be able to force that install to be used
<grug> if that makes sense
Takle has quit [Remote host closed the connection]
<apeiros> open a new shell, run `rvm install 2.1` then `rvm use 2.1 --default`
vifino has joined #ruby
vyorkin has joined #ruby
<grug> will that ensure that any time i invoke irb that the rvm user-install will be used?
vyorkin has quit [Client Quit]
<apeiros> oh, and `rvm docs generate`
<apeiros> yes, the --default does that
<grug> awesome - will give that a shot now :)
vyorkin has joined #ruby
chipotle has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
steeve has quit [Remote host closed the connection]
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
steeve has joined #ruby
sigurding has quit [Quit: sigurding]
kyb3r_ has quit [Read error: Connection reset by peer]
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
Takle has joined #ruby
vyorkin has joined #ruby
bradhe has joined #ruby
steeve has quit [Remote host closed the connection]
steeve has joined #ruby
steeve has quit [Remote host closed the connection]
wildroman2 has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has quit [Quit: WeeChat 0.4.3]
vyorkin has joined #ruby
ValicekB has joined #ruby
VTLob has joined #ruby
h0lyalg0rithm has joined #ruby
luckyruby has quit [Quit: Leaving...]
jxf has joined #ruby
<shevy> gcc is so confusing sometimes
ndrei has joined #ruby
<shevy> the more recent ones show so many new warnings/output
kirun has joined #ruby
nasj has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 255 seconds]
nasj has joined #ruby
techsethi has quit [Quit: techsethi]
certaint1 is now known as certainty
nasj has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 255 seconds]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
alem0lars has joined #ruby
<grug> apeiros: that worked perfectly - thankyou for your help :)
<apeiros> yw
nfk has quit [Quit: yawn]
timfoo has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
doev has quit [Quit: Verlassend]
iamcalledrob has joined #ruby
h0lyalg0rithm has quit [Quit: Textual IRC Client: www.textualapp.com]
SouL___ has quit [Read error: Connection reset by peer]
wildroman2 has quit [Remote host closed the connection]
schaerli has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
iamcalledrob has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
schaerli has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 255 seconds]
Ankhers has quit [Remote host closed the connection]
yfeldblum has joined #ruby
gruz0[russia] has joined #ruby
senayar has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: WeeChat 0.4.3]
vyorkin has joined #ruby
senayar has joined #ruby
warprobot has quit [Remote host closed the connection]
timfoo has joined #ruby
SouL___ has joined #ruby
Caius has joined #ruby
danijoo has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
warprobot has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
freggles has joined #ruby
freggles has quit [Changing host]
freggles has joined #ruby
bradhe has joined #ruby
chipotle has quit [Quit: cya]
toretore has joined #ruby
timfoo has quit [Ping timeout: 255 seconds]
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
bradhe has quit [Ping timeout: 252 seconds]
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
GriffinHeart has joined #ruby
maximski has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
timfoo has joined #ruby
shredding has quit [Quit: shredding]
Neomex has joined #ruby
shredding has joined #ruby
unshadow has joined #ruby
techsethi has joined #ruby
warprobot has quit [Remote host closed the connection]
<unshadow> Hi guys, any one has some experience with the ftpd gem ? I got into some issues
warprobo_ has joined #ruby
techsethi has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
anaeem1 has joined #ruby
senayar has joined #ruby
warprobo_ has quit [Ping timeout: 248 seconds]
yubrew has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
donnoc has joined #ruby
ndrei has quit [Quit: Lost terminal]
ndrei has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
donnoc has quit [Client Quit]
ndrei has quit [Remote host closed the connection]
iamcalledrob has joined #ruby
mike32 has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
bradhe has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
zz_karupa is now known as karupa
Takle has quit [Ping timeout: 248 seconds]
godd2 has joined #ruby
iamcalledrob has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
darkxploit has quit [Ping timeout: 264 seconds]
Soda has joined #ruby
yfeldblum has joined #ruby
nemesit|znc has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
karupa is now known as zz_karupa
bradhe has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<shevy> how to get the host OS from ruby?
altin has quit [Quit: Ex-Chat]
nemesit|znc has joined #ruby
<shevy> hmm
<shevy> Gem::Platform.local.os
phoo1234567 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
MindfulMonk has quit [Read error: Connection timed out]
bradhe has quit [Ping timeout: 264 seconds]
MindfulMonk has joined #ruby
<certainty> shevy: yow
MindfulMonk has quit [Max SendQ exceeded]
darkxploit has joined #ruby
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
yokel has quit [Ping timeout: 264 seconds]
Dr3amc0d3r is now known as Dr3amc0d3r|away
Shidash has joined #ruby
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
yokel has joined #ruby
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
ctp has joined #ruby
yacks has quit [Read error: Connection reset by peer]
<shevy> yo certainty
MindfulMonk has joined #ruby
<shevy> are you hacking something great
zorak has quit [Ping timeout: 264 seconds]
zorak has joined #ruby
yacks has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
Takle_ has joined #ruby
brian___ has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
thomasxie has joined #ruby
moritzs has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
anaeem1 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
lolmaus has quit [Remote host closed the connection]
yubrew has joined #ruby
dapz has joined #ruby
jxf has quit [Ping timeout: 248 seconds]
yokel has quit [Remote host closed the connection]
cashnguns has joined #ruby
yokel has joined #ruby
thomasxie has left #ruby [#ruby]
timfoo has quit [Ping timeout: 255 seconds]
phoo1234567 has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
lw has joined #ruby
Takle_ has quit [Remote host closed the connection]
doev has joined #ruby
bradhe has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
brunops has joined #ruby
iamcalledrob has joined #ruby
timfoo has joined #ruby
ferr has joined #ruby
lw has quit [Quit: s]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
St_Marx has joined #ruby
doev has quit [Ping timeout: 240 seconds]
ctp has quit [Client Quit]
iamcalledrob has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
maximski has quit []
vyorkin has quit [Ping timeout: 264 seconds]
maddtech has joined #ruby
britneywright has joined #ruby
phoo1234567 has joined #ruby
FDj has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
jottr_ has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
bmurt has joined #ruby
phoo1234567 has quit [Read error: Connection reset by peer]
phoo1234567 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
doev has joined #ruby
pwh has joined #ruby
wildroman2 has quit []
<unshadow> How can I fork a specific ruby command ? right now I use "fork do" but It also create a clone of the whole program and I end up with two programs running in the background ...
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carraroj has quit [Ping timeout: 272 seconds]
<jhass> unshadow: that's what fork does. Maybe you want threads?
jrhe has quit [Quit: Connection closed for inactivity]
banister has joined #ruby
<jhass> you really should tell us what you're actually trying to achieve. Don't ask for the solution you think you need
GriffinHeart has joined #ruby
<unshadow> Jhass, well, the issue is I want to do a command and then kill its PID after it finishes , threads dont have a different PID do they ?
<jhass> no, I think you want Kernel#spawn
yeticry has quit [Ping timeout: 272 seconds]
alexherbo2 has joined #ruby
ghr has joined #ruby
yeticry has joined #ruby
alexherbo2 has quit [Client Quit]
GriffinHeart has quit [Ping timeout: 255 seconds]
doev has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #ruby
PCFutbol has joined #ruby
xcv has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
alexherbo2 has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RedPunch has quit [Ping timeout: 252 seconds]
<unshadow> Jhass, here is my code, https://gist.github.com/bararchy/78bcb57d9c3175461569 , I dont think I'm using the spawn very well
apeiros has quit []
RedPunch has joined #ruby
<jhass> why do you want to sudo kill your own process?
alexherbo2 has joined #ruby
shredding has quit [Quit: shredding]
<jhass> (spawn is for launching child processes, it doesn't take a block)
<godd2> filicide
sevenseacat has quit [Remote host closed the connection]
<unshadow> becuse the gem is flawed, the ftpd wont kill it self after server.stop, I'm doing a work around, this is why I want to create a different proccess for it and kill it without killing my main program
techsethi has joined #ruby
User458764 has joined #ruby
<jhass> 1) monkey patch ftpd to properly kill itself 2) make that a second independent ruby script that just receives the necessary parameters over ARGV and spawn that
<jhass> (that's the two alternatives I see)
ValicekB has quit []
nasj has joined #ruby
yubrew has joined #ruby
<unshadow> isn't there a way to fork a command out of the main program ?
<jhass> a command, yes. Ruby code without duplicating the current process, no.
<jhass> I mean you could pipe some code into the ruby executable, but eww
perlsyntax has joined #ruby
<unshadow> I see, well, then you are right , I think I'll look around at why ftpd gem isn't dyeing gracefully
marr has quit []
foomanbar has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
ctp has joined #ruby
carraroj has joined #ruby
ctp has quit [Client Quit]
timgauthier has joined #ruby
ValicekB has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> ugh, i want to build an iOS app idea i have, but i'm scared to learn swift + get going. I had this happen to me when I wanted to build a webapp with rails and i just hit a brick wall of not knowing how to solve an issue and keep going. :S
<timgauthier> also hello shevy
starkhalo has joined #ruby
ctp has joined #ruby
ValicekB has quit []
Takle has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
carraroj has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
iswell has joined #ruby
warprobot has joined #ruby
mercwith1mouth has joined #ruby
soulcake has quit [Quit: ZNC - http://znc.in]
soulcake has joined #ruby
lulzmachine_ has joined #ruby
lulzmachine has joined #ruby
MindfulMonk has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
MindfulMonk has joined #ruby
MindfulMonk is now known as MindfulMo
centrx has joined #ruby
lxsameer has quit [Quit: Leaving]
ctp_ has joined #ruby
iamcalledrob has joined #ruby
vyorkin has joined #ruby
alem0lars has quit [Quit: alem0lars]
ctp has quit [Ping timeout: 264 seconds]
<shevy> are you finally married
ValicekB has joined #ruby
<shevy> I think rails is a huge brick wall
<wasamasa> I think so, too
<wasamasa> can't figure out how to get rid of the routing error for application.js
iamcalledrob has quit [Ping timeout: 260 seconds]
sputnik13 has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
freerobby has quit [Quit: Leaving.]
Soda has quit [Remote host closed the connection]
sputnik13 has quit [Client Quit]
mercwithamouth has joined #ruby
warprobot has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 252 seconds]
arcticus has joined #ruby
mercwith1mouth has quit [Ping timeout: 264 seconds]
arcticus has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
nasj has quit [Remote host closed the connection]
nasj has joined #ruby
freerobby has joined #ruby
shredding has joined #ruby
arcticus has joined #ruby
Connie has quit [Ping timeout: 264 seconds]
nasj has quit [Ping timeout: 240 seconds]
arcticus has quit [Client Quit]
Alina-malina has quit [Ping timeout: 240 seconds]
ctp_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vifino has quit [Quit: Ze Cat now leaves...]
neoice has quit [Ping timeout: 245 seconds]
Alina-malina has joined #ruby
neoice has joined #ruby
thomasxie has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
vyorkin1 has joined #ruby
xaxisx_ has joined #ruby
Ankhers has joined #ruby
vifino has joined #ruby
razum2um1 has joined #ruby
iamjarvo has joined #ruby
mattp__ has joined #ruby
utkarsh__ has joined #ruby
godd2 has quit [Disconnected by services]
godd2_ has joined #ruby
godd2_ has quit [Client Quit]
brunops_ has joined #ruby
godd2 has joined #ruby
azkah1 has joined #ruby
yubrew has joined #ruby
<RoryHughes> Is there any way using Time to get, for example, the next Time after now that is 15 hours, 5 mins and is a monday?
jcromartie has joined #ruby
yeltzooo4 has joined #ruby
charliesome has joined #ruby
Jam_ has joined #ruby
vyorkin has quit [*.net *.split]
Takle has quit [*.net *.split]
perlsyntax has quit [*.net *.split]
badhatter has quit [*.net *.split]
phoo1234567 has quit [*.net *.split]
brunops has quit [*.net *.split]
darkxploit has quit [*.net *.split]
brian___ has quit [*.net *.split]
VTLob has quit [*.net *.split]
xaxisx has quit [*.net *.split]
camt has quit [*.net *.split]
faulkner has quit [*.net *.split]
razum2um has quit [*.net *.split]
oddalot has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
nevans has quit [*.net *.split]
utkarsh_ has quit [*.net *.split]
azkah has quit [*.net *.split]
mattp_ has quit [*.net *.split]
froy has quit [*.net *.split]
mordof has quit [*.net *.split]
dylannorthrup has quit [*.net *.split]
shanlar has quit [*.net *.split]
nw has quit [*.net *.split]
yubrew has quit [Ping timeout: 248 seconds]
faulkner has joined #ruby
brunops_ has quit [Ping timeout: 252 seconds]
bmurt has quit []
badhatter has joined #ruby
bradhe has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2> >> Date.today.next_week.beginning_of_week + 15.hours + 5.minutes
<eval-in_> godd2 => undefined method `today' for Date:Class (NoMethodError) ... (https://eval.in/169833)
froy has joined #ruby
oddalot has joined #ruby
nevans has joined #ruby
<jhass> that's ActiveSupport (not today, but the rest)
darkxploit has joined #ruby
<RoryHughes> Good idea, yeah i'm using ActiveSupport, thanks
mordof has joined #ruby
nw has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 264 seconds]
phoo1234567 has joined #ruby
techsethi has quit [Quit: techsethi]
dylannorthrup has joined #ruby
<shevy> hehe
<jhass> the beginning_of_week is unecessary btw
<RoryHughes> jhass: Yeah
<jhass> next_week takes a param to set it and defaults to that
<RoryHughes> Hmm, but what if it was a thusday and the params to my 'next' method were 5hours, 5mins and is a friday
<RoryHughes> your method would give me the friday in 8 days not tomorrow
<jhass> next_week resets to 00:00
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<RoryHughes> Don't mind the time, it's about the day. If i was to do Date.today.next_week + d.days (because you should be able to pass a day of the week 0-6) it wouldn't necessarily give the next one
foomanbar has quit [Quit: Leaving]
Trynemjoel has joined #ruby
<jhass> you'd do Date.today.next_week(d) with d = 0 = Sunday, d = 6 = Saturday
vadzimt has joined #ruby
dangerou_ has joined #ruby
VTLob has joined #ruby
<godd2> you could try something like date = Date.today; date = date.next until date.wday == 5 if you want next friday
ValicekB has quit []
tus has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<RoryHughes> godd2: interesting
<godd2> oh you can just ask if its friday until date.friday?
dangerousdave has quit [Ping timeout: 248 seconds]
<jhass> RoryHughes: which version of AS do you have?
<RoryHughes> Yeah, ok but this has to be dynamic
agjacome has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
<RoryHughes> 4.1.1
<jhass> Date.today.next_week(:friday)
<RoryHughes> jhass: ah i was so confused to why it wouldn't accept an integer
darkxploit has quit [Quit: Leaving]
<jhass> my bad for assuming it would be anything like stdlib
IceDragon has joined #ruby
darkxploit has joined #ruby
schaerli has joined #ruby
Jam_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
<RoryHughes> jhass: Ok that actually doesn't work :( if i set d to the date this wednesday and do d.next_week(:friday) it gives me friday 18th but i want it to give me the next friday which is 2 days from d
schaerli has quit [Remote host closed the connection]
<jhass> so it's not next week
<jhass> it's the next one that's coming
<RoryHughes> Yes
<RoryHughes> sorry if i didn't make that clear enough above
iamcalledrob has joined #ruby
<timgauthier> uber-uber-wochenende
<timgauthier> uber-uber-woche friday is what you're looking for.
Jam_ has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
ValicekB has joined #ruby
<RoryHughes> ?
mercwithamouth has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
<timgauthier> sorry, that was a question, your not looking for this week, your looking for next week, or are you looking for next next week?
chipotle has joined #ruby
<RoryHughes> basically I want to be able to take the time T and say i want the next time after T where the day is D, hour is H and minute is M with it calculating the rest
iamcalledrob has quit [Ping timeout: 272 seconds]
mike32 has joined #ruby
darkxploit has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
GriffinHeart has joined #ruby
Azure has joined #ruby
<RoryHughes> timgauthier ^
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<timgauthier> so in english you want to know when next sunday is?
unshadow has quit [Quit: leaving]
<timgauthier> but calculate how long it is from a specific time/date?
<timgauthier> why not just find the day your looking for, then subtract the day you're starting from?
<RoryHughes> timgauthier: well not even that, just get the timestamp of it
Lewix has joined #ruby
iswell has joined #ruby
darkxploit has joined #ruby
<timgauthier> thats literally what i do when i need to find the difference in days, i take the UTC notation
<jhass> def next_weekday(date, day = :monday); date = date.beginning_of_week(day); date += 7 if date <= Date.today; date; end; ?
<jhass> + time stuff
BadQuanta has joined #ruby
sheperson has joined #ruby
GriffinHeart has quit [Ping timeout: 248 seconds]
ValicekB has quit []
benzrf|offline is now known as benzrf
fold has joined #ruby
mercwithamouth has joined #ruby
darkxploit has quit [Client Quit]
<jhass> RoryHughes: there's the full thing: def next_time(date, day = :monday, hour = 0, minute = 0); date = date.beginning_of_week(day).to_datetime.change(hour: hour, min: minute); date += 7 if date <= DateTime.now; date; end (give it a better name)
Zebroid has quit [Remote host closed the connection]
<RoryHughes> jhass: Thanks!
northfurr has joined #ruby
binxiao has joined #ruby
sigurding has joined #ruby
ValicekB has joined #ruby
arrubin has joined #ruby
endash has joined #ruby
Jam_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
brunops has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
camt has joined #ruby
mercwithamouth has joined #ruby
mijicd has joined #ruby
Zebroid has joined #ruby
Zebroid has quit [Remote host closed the connection]
cashnguns has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Remote host closed the connection]
binxiao has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
vyorkin1 has quit [Quit: WeeChat 0.4.3]
gzl_ is now known as gzl
gzl has quit [Changing host]
gzl has joined #ruby
robbyoconnor has joined #ruby
r0bby has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
olivier_bK has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
Zebroid has quit [Ping timeout: 252 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
omensp4wnz has joined #ruby
supdoge has joined #ruby
Zebroid has joined #ruby
supdoge has left #ruby [#ruby]
Channel6 has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
r0bby has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
omensp4wnz is now known as liz4rd-zzzz
sheperson has quit [Quit: sheperson]
r0bby is now known as robbyoconnor
neoice has quit [Ping timeout: 240 seconds]
Zebroid_ has joined #ruby
neoice has joined #ruby
fold has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
r0bby has joined #ruby
Zebroid has quit [Ping timeout: 248 seconds]
r0bby has quit [Remote host closed the connection]
maestrojed has joined #ruby
rdark has quit [Quit: leaving]
darkxploit has joined #ruby
Ca1us has joined #ruby
brunops has quit [Ping timeout: 252 seconds]
brunops has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
iswell has joined #ruby
relix has joined #ruby
brunops has quit [Ping timeout: 264 seconds]
iamcalledrob has joined #ruby
brunops has joined #ruby
lkba has joined #ruby
User458764 is now known as User458764_NotHe
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jam has joined #ruby
\q has joined #ruby
absolutezeroff has joined #ruby
Jam is now known as Guest27760
theharshest has joined #ruby
theharshest has quit [Client Quit]
Zebroid_ has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
iamcalledrob has quit [Ping timeout: 248 seconds]
benzrf is now known as benzrf|offline
brunops has quit [Ping timeout: 248 seconds]
User458764_NotHe has quit [Ping timeout: 248 seconds]
CodeLicker has quit [Read error: Connection reset by peer]
timgauthier has joined #ruby
sputnik13 has joined #ruby
theharshest has joined #ruby
lulzmachine_ has quit [Quit: lulzmachine_]
lulzmachine has quit [Quit: This computer has gone to sleep]
fold has joined #ruby
CodeLicker has joined #ruby
pskosinski has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
iamcalledrob has joined #ruby
earthquake has joined #ruby
sputnik13 has joined #ruby
St_Marx has joined #ruby
zorak has quit [Ping timeout: 272 seconds]
TheSojourner has joined #ruby
TheSojourner has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
IceDragon has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
mjulian has quit [Ping timeout: 272 seconds]
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
sputnik13 has quit [Ping timeout: 264 seconds]
mrmargol_ has joined #ruby
soulcake has quit [Remote host closed the connection]
yubrew has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soulcake has joined #ruby
User458764 has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
siefca has left #ruby [#ruby]
dangerousdave has joined #ruby
mrmargolis has quit [Ping timeout: 260 seconds]
sigurding has quit [Quit: sigurding]
yubrew has quit [Ping timeout: 260 seconds]
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theharshest has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
benzrf|offline is now known as benzrf
bradhe has joined #ruby
IceDragon has joined #ruby
DivineEntity has quit [Quit: leaving]
maestrojed has quit [Quit: Computer has gone to sleep.]
DivineEntity has joined #ruby
uffs has quit [Ping timeout: 272 seconds]
maestrojed has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
CorpusCallosum has joined #ruby
ponga has quit []
LadyRainicorn has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
mrmargol_ has quit [Remote host closed the connection]
User458764 has joined #ruby
MatthewsFace has joined #ruby
klaut has joined #ruby
chipotle has quit [Quit: cya]
Guest27760 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Ping timeout: 240 seconds]
mattstratton has joined #ruby
iamjarvo has joined #ruby
benzrf is now known as benzrf|offline
chipotle has joined #ruby
mattstratton has quit [Client Quit]
IceDragon has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
warprobot has joined #ruby
Zebroid has joined #ruby
dangerou_ has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
mattstratton has joined #ruby
Zebroid has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Ping timeout: 248 seconds]
mattstratton has quit [Client Quit]
ctp has joined #ruby
CorpusCallosum has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
ctp has quit [Client Quit]
dangerousdave has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
mercwithamouth has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
mattstratton has joined #ruby
mercwithamouth has joined #ruby
theharshest has joined #ruby
aspires has joined #ruby
GriffinHeart has joined #ruby
User458764 is now known as User458764_NotHe
theharshest has quit [Client Quit]
Rainicorn is now known as LadyRainicorn
Takle has quit [Ping timeout: 272 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
iamcalledrob has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
User458764_NotHe has quit [Ping timeout: 252 seconds]
iamcalledrob has joined #ruby
theharshest has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
x1337807x has joined #ruby
iamcalledrob has quit [Ping timeout: 272 seconds]
dc_ has joined #ruby
pwh has quit []
iamjarvo has joined #ruby
x1337807x has quit [Client Quit]
cashnguns has joined #ruby
liz4rd-zzzz has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
x1337807x has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
yubrew has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
yubrew has quit [Ping timeout: 240 seconds]
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
AntelopeSalad_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
aspires has joined #ruby
dc_ has quit [Remote host closed the connection]
AntelopeSalad has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
aspires has quit [Client Quit]
mgberlin has joined #ruby
aspires has joined #ruby
benzrf is now known as benzrf|offline
bradhe has quit [Ping timeout: 272 seconds]
ixti has quit [Read error: Connection reset by peer]
xaxisx_ is now known as xaxisx
IceDragon has joined #ruby
relix has joined #ruby
lulzmachine has joined #ruby
7F1AAOR4M has joined #ruby
vifino has joined #ruby
iamcalledrob has joined #ruby
aspires has quit [Client Quit]
glundgren has joined #ruby
mehlah has joined #ruby
mehlah has quit [Client Quit]
aspires has joined #ruby
mattstratton has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
mattstratton has quit [Client Quit]
maximski has joined #ruby
relix has quit [Ping timeout: 252 seconds]
lulzmachine has quit [Client Quit]
7F1AAOR4M has quit [Client Quit]
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Ankhers has joined #ruby
miah_ is now known as miah
benzrf|offline is now known as benzrf
MatthewsFace has joined #ruby
<mr-foobar> what do you guys think of opal ?
iamcalledrob has quit [Ping timeout: 264 seconds]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<Beoran> mr-foobar, the programming language?
benzrf is now known as benzrf|offline
<mr-foobar> Beoran: http://opalrb.org/ ruby->js
havenwood has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 264 seconds]
coderhs has joined #ruby
coderhs has quit [Client Quit]
bmurt has joined #ruby
<Beoran> mr-foobar, sounds great really : )
<Beoran> can't wait to use that!
schaerli has joined #ruby
relix has joined #ruby
havenwood has joined #ruby
vadzimt has joined #ruby
frank_____ has quit [Quit: Connection closed for inactivity]
bmurt has quit [Ping timeout: 272 seconds]
Panicky has joined #ruby
TheSojourner is now known as mjulian
Arkaniad|Laptop has quit [Ping timeout: 248 seconds]
LexicalScope has joined #ruby
relix has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
aspires has quit []
manolis_ has joined #ruby
tacos1de has quit [Ping timeout: 264 seconds]
IceDragon has joined #ruby
<manolis_> Hi, I’m new at this, so can somebody tell me what -> means in words, so I can look it up ?
<jhass> that's the stabby lambda
sungai_keruh has joined #ruby
<havenwood> stabby stab stab
<manolis_> Thanks a lot guys
<sungai_keruh> hi
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
agaust has joined #ruby
<agaust> hello?
<jhass> hi
<manolis_> Hi jhass, thanks a ton
tacos1de has joined #ruby
manolis_ has left #ruby [#ruby]
manolis_ has joined #ruby
JBreit has joined #ruby
postmodern has joined #ruby
aspires has joined #ruby
<agaust> jhass - where your country? I'm new in here.. :)
<jhass> if you got a question just ask
<agaust> upss.. :) thanks for inform.. :)
ARCADIVS has joined #ruby
einarj has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
frog0909 has quit [Remote host closed the connection]
frog0909 has joined #ruby
Arkaniad|Laptop has joined #ruby
MindfulMo is now known as MindfulMonk
mconnolly has joined #ruby
mconnolly has quit [Client Quit]
<maximski> if i have some instance variable, is there any way to access the instance from the variable?
BadQuanta has joined #ruby
<maximski> variable can be a class of course
<jhass> maximski: a variable is a reference to an object. An object doesn't know what it is assigned to
<maximski> i need to know though
IceDragon has quit [Ping timeout: 272 seconds]
<godd2> if you have dog = Dog.new and dog has an instance variable @legs which you set to four, you'd have to set an attr_reader to output dog.legs
<RubyPanther> maximski: self
aspires has quit []
IceDragon has joined #ruby
JBreit has left #ruby ["Leaving"]
PCFutbol has quit [Quit: Saliendo]
<jhass> maximski: make a minimal example of your usecase (not the solution you think you need) and gist it
yubrew has joined #ruby
<RubyPanther> If the answer isn't self, then no, you don't need to know. Rather, you need to not know.
xaxisx_ has joined #ruby
<maximski> I have dog = Dog.new and dog@nose = Nose.new how can @nose know about dog?
Lewix has joined #ruby
iswell has joined #ruby
<godd2> that's not valid ruby. go ahead and make a gist of some example code you're talking about
jfpoole has joined #ruby
<maximski> @nose should be able to know if dog is in fact a Dog or eventually a cat
<jhass> if nose really needs to know, you'd do dog.nose = Nose.new(dog)
<RubyPanther> Ruby lets of fiddle everything from everywhere, so can be no excuse not to use proper OO
aspires has joined #ruby
senayar has quit [Remote host closed the connection]
<jhass> but as said, if you reveal what you're actually doing, there might be a better pattern to solve it
senayar has joined #ruby
<iswell> ahhhh
<iswell> hello toronto
<havenwood> There is only improper OO. That's one of the things about OO, it is incredibly resilient to attempts to do it right.
<maximski> i cant reveal it it's a bunch of rails code
freerobby has joined #ruby
<maximski> and it's caused by a gem
<maximski> the example i gave is pretty much very near to the real case, and i cant do Nose.new(dog)
<godd2> @nose can only know about Dog if @nose is assigned from inside the Dog class
<jhass> that's not true
<jhass> please, get clear what a variable and an object is
yubrew has quit [Ping timeout: 252 seconds]
<havenwood> maximski: show some pseudo code
xaxisx has quit [Ping timeout: 272 seconds]
sungai_keruh has quit [Ping timeout: 240 seconds]
<jhass> maximski: you're describing the solution you think you need. Until you describe your problem, have a nice day
bradhe has joined #ruby
MrDoctor has joined #ruby
senayar has quit [Ping timeout: 272 seconds]
<havenwood> hem, how about a `canada` gem that changes `end` to `eh?`
<jhass> I don't think you can do that as a gem
neoice has quit [Ping timeout: 248 seconds]
zkay11 has joined #ruby
theharshest has joined #ruby
<jhass> hm, preprocessor maybe
<godd2> very do. such end. wow
<havenwood> jhass: yup, would have to preprocess methinks like they do for that pythonesque significant whitespace thingy
IceDragon has quit [Read error: Connection reset by peer]
<havenwood> whatever it's called, was just thinking of it because saw a blurb about it this morning
IceDragon has joined #ruby
papercode has joined #ruby
<havenwood> Insignificant whitespace for the win.
<havenwood> Always a Pythonista or HAMLite out there somewhere who wants to change ruby.
agaust has left #ruby [#ruby]
<havenwood> oh, though i guess Haml isn't an ancronym
chipotle has quit [Quit: cya]
<havenwood> Hamlite, Hamlian, Hamlonian?
northfurr has quit [Quit: northfurr]
ferr has quit [Ping timeout: 272 seconds]
einarj has quit [Remote host closed the connection]
<havenwood> Hamler
ValicekB has quit []
lotherk has left #ruby [#ruby]
<havenwood> Would be good to have a canonical resource for what to call those who program in X.
<havenwood> Scalite, Basher, Rubyist, Pythonista. Hard to guess unless you ask. And not all so easy to google for it seems.
<yxhuvvd> X as in the display system? masochist?
<havenwood> yxhuvvd: don't know what to call them, for example
<havenwood> yxhuvvd: though Masochists makes sense
marr has joined #ruby
bradhe has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 252 seconds]
brunops has joined #ruby
bradhe has joined #ruby
rippa has joined #ruby
manolis_ has quit [Quit: Zzzzz ...]
warprobot has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 264 seconds]
MrDoctor_ has joined #ruby
neoice has joined #ruby
warprobot has joined #ruby
MrDoctor has quit [Ping timeout: 264 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
bradhe has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
iamcalledrob has joined #ruby
simoz1111114 has joined #ruby
ValicekB has joined #ruby
simoz1111115 has joined #ruby
nasj has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
AntelopeSalad_ has quit []
sigurding has quit [Quit: sigurding]
mike32 has quit [Ping timeout: 248 seconds]
iamcalledrob has quit [Ping timeout: 240 seconds]
simoz1111114 has quit [Ping timeout: 248 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
theharshest has joined #ruby
uffs has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
Rainicorn has joined #ruby
theharshest has quit [Client Quit]
apeiros has joined #ruby
ValicekB has quit []
sigurding has joined #ruby
LadyRainicorn has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
theharshest has joined #ruby
iamjarvo has joined #ruby
shredding has joined #ruby
<nanodano> a PHPist?
kaiserpathos has joined #ruby
binaryhat has quit [Remote host closed the connection]
binaryhat has joined #ruby
theharshest has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
kaiserpathos has quit [Client Quit]
nectarys has joined #ruby
ValicekB has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
MrDoctor_ has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
nectarys has quit [Max SendQ exceeded]
sigurding has quit [Quit: sigurding]
lkba has joined #ruby
relix has joined #ruby
Rainicorn has quit [Quit: Bye]
fold has quit [Quit: WeeChat 0.4.3]
fold has joined #ruby
fwaokda has joined #ruby
chipotle has joined #ruby
senayar has joined #ruby
<fwaokda> if I want to put a connection to a database somewhere in a file by itself would I just put it in a file (without class) ".rb" and user require 'nameoffile' ?
mgberlin has quit [Remote host closed the connection]
yubrew has joined #ruby
<jhass> fwaokda: I'd make it the typical two step process: a configuration file (json, yaml, ...) that is loaded by a (maybe singleton) connection class that either only hands out only itself or even does connection pooling
bradhe has joined #ruby
<fwaokda> jhass, ok I'm going to try that thanks!
<jhass> that said, did you look at sequel or even activerecord?
sigurding has joined #ruby
manolis_ has joined #ruby
AlyssaDaemon has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
AntelopeSalad has joined #ruby
lulzmachine has joined #ruby
lulzmachine3 has joined #ruby
kireevco has quit [Quit: Leaving.]
nectarys has joined #ruby
manolis_ has quit [Client Quit]
mijicd has quit [Remote host closed the connection]
lulzmachine has quit [Client Quit]
lulzmachine3 has quit [Client Quit]
mrmargolis has joined #ruby
lulzmachine3 has joined #ruby
lulzmachine has joined #ruby
pwh has joined #ruby
lulzmachine has quit [Client Quit]
lulzmachine3 has quit [Client Quit]
aspires has quit []
Sawbones has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
iamjarvo has joined #ruby
eka has joined #ruby
hackeron_ is now known as hackeron
hackeron has quit [Changing host]
hackeron has joined #ruby
bluOxigen has quit [Remote host closed the connection]
dapz has joined #ruby
bluOxigen has joined #ruby
AntelopeSalad has quit [Quit: Page closed]
theharshest has joined #ruby
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theharshest has quit [Client Quit]
maximski has quit []
zorak has joined #ruby
Cache_Money has joined #ruby
zorak_ has joined #ruby
zorak has quit [Client Quit]
zorak_ has quit [Client Quit]
zorak has joined #ruby
AntelopeSalad has joined #ruby
maximski has joined #ruby
theharshest has joined #ruby
mrmargolis has quit [Remote host closed the connection]
havenwood has quit []
sigurding has joined #ruby
dc_ has joined #ruby
decoponio has quit [Quit: Leaving...]
dc_ has quit [Remote host closed the connection]
vadzimt has joined #ruby
JoshGlzBrk has joined #ruby
iamcalledrob has joined #ruby
dc_ has joined #ruby
iamcalledrob has quit [Ping timeout: 248 seconds]
Hanmac1 is now known as Hanmac
kireevco has joined #ruby
kireevco has quit [Client Quit]
<bricker`LA> I'm trying to use cap3 with only one stage, but I keep getting: "Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.
benzrf|offline is now known as benzrf
<bricker`LA> I've done what it suggests here: http://capistranorb.com/documentation/upgrading/
<bricker`LA> Is that documentation incorrect?
mgberlin has joined #ruby
<bricker`LA> "If you need only one stage, remove these files and declare stage (for example production) and servers in config/deploy.rb."
<benzrf> i always read it as capistrano orb .com
theharshest has quit [Quit: This computer has gone to sleep]
SouL___ has quit [Ping timeout: 255 seconds]
TDJACR has joined #ruby
charlied3 has joined #ruby
iamjarvo_ has joined #ruby
skaflem has quit [Quit: Leaving]
sigurding has quit [Quit: sigurding]
charlied3 has quit [Client Quit]
iamjarvo has quit [Ping timeout: 264 seconds]
charlied3 has joined #ruby
Prandium has quit [Quit: Prandium]
ni506218 has joined #ruby
<comma8> bricker`LA, what does the line declaring the stage in your config/deploy.rb file look like?
ni506218 has quit [Remote host closed the connection]
vifino has joined #ruby
nasj has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
charlied3 has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nasj has joined #ruby
charlied3 has joined #ruby
bradhe has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
AntelopeSalad has quit [Quit: Page closed]
schaerli has joined #ruby
Sawbones has quit [Remote host closed the connection]
maximski has quit []
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zebroid has joined #ruby
<bricker`LA> comma8: set :stage, :production
nasj has quit [Ping timeout: 252 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yubrew has joined #ruby
<bricker`LA> huh... it's working now
<comma8> you're welcome bricker`LA :D
<bricker`LA> lol
<bricker`LA> oh
<bricker`LA> I added `task :production do; end` to Capfile
<bricker`LA> :/
<rau> bricker`LA: Please stop abusing your return key, you bilious asshole.
<comma8> weird
<bricker`LA> rau: sorry didn't mean to clutter up this busy Sunday afternoon IRC channel
benzrf is now known as benzrf|offline
dapz has joined #ruby
xaxisx__ has joined #ruby
<bricker`LA> rau: I notice you haven't said anything since at least 8:30am, did my ~3 messages in a row upset you so badly?
rau has quit [K-Lined]
yubrew has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
LexicalScope has quit [Ping timeout: 264 seconds]
charlied3 has quit [Quit: WeeChat 0.4.2]
bricker`LA has quit [Quit: leaving]
Panicky has quit [Remote host closed the connection]
charlied3 has joined #ruby
benzrf|offline is now known as benzrf
xaxisx_ has quit [Ping timeout: 264 seconds]
<benzrf> rau is a bot
dangerousdave has quit [Read error: Connection reset by peer]
<benzrf> some idiot thought everybody would looove a bot that abuses people for using too many messages
sdouglas has joined #ruby
chipotle has quit [Quit: cya]
dangerousdave has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
Panicky has joined #ruby
mercwithamouth has joined #ruby
Hobogrammer has joined #ruby
Drakevr has quit [Quit: demons to some, angels to others]
<comma8> plot twist: bricker`LA is a bot too
bradhe has joined #ruby
MatthewsFace has joined #ruby
Photism has joined #ruby
sdouglas has quit [Remote host closed the connection]
echevemaster has joined #ruby
sdouglas has joined #ruby
timonv has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
charlied3 has quit [Ping timeout: 248 seconds]
Hanmac1 has joined #ruby
uffs has quit [Ping timeout: 264 seconds]
Panicky has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
sdouglas has quit [Ping timeout: 272 seconds]
Panicky has joined #ruby
bradhe has quit [Remote host closed the connection]
Takle has joined #ruby
Wolland has joined #ruby
charlied3 has joined #ruby
dc_ has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
andrewlio has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
LexicalScope has joined #ruby
x1337807x has joined #ruby
warprobot has quit [Remote host closed the connection]
sdouglas has joined #ruby
nanodano has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
iamcalledrob has joined #ruby
GriffinHeart has joined #ruby
sdouglas has quit [Remote host closed the connection]
<lagweezle> Yes ... I love being chastized for sending four messages a minute.
<lagweezle> O.o
dc_ has joined #ruby
mr_snowf1ake has joined #ruby
<apeiros> benzrf: do you have anything to back that up? because if true, I'll ban rau
warprobot has joined #ruby
<jhass> apeiros: scroll back up in #ruby-lang, same behavior
Cache_Money has quit [Quit: Cache_Money]
Soda has joined #ruby
<apeiros> I wasn't online. do yu have a time-index? I'll look it up on irclog
<apeiros> I see
<jhass> 13:55 UTC I think
<apeiros> I found it
GriffinHeart has quit [Ping timeout: 264 seconds]
<apeiros> freenode somehow having issues? first /whois fails, now /kick…
<jhass> he left
<jhass> maybe even disconnected
<mozzarella> it's a glitch in the matrix
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> 22:07 rau has left IRC (K-Lined)
glundgren has quit [Remote host closed the connection]
iamcalledrob has quit [Ping timeout: 264 seconds]
xaxisx__ has quit [Quit: Leaving]
<apeiros> the first /whois fail was "whois is rate limited and was used recently", and I didn't join a channel or use whois recently…
<jhass> dunno, maybe. Saw some minor netsplits the other day
peret has quit [Remote host closed the connection]
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
Hanmac1 has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mheld has joined #ruby
<mheld> hey y'all
<mheld> there must be a better way to write this -> http://pastie.org/private/dzehnjgxfguxbpry8zla
<mheld> I want to transform { key1:[val...], key2:[val...] } into [{key1:val, key2:val}...]
shredding has quit [Quit: shredding]
<mheld> a hash of arrays to an array of hashes
shredding has joined #ruby
yubrew has joined #ruby
chipotle has joined #ruby
vadzimt has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 272 seconds]
<gzl> mheld: first, *rest = h.values; first.zip(*rest).map { |vs| Hash[h.keys.zip(vs)] }
<mheld> that's way cleaner
havenwood has joined #ruby
<mheld> gzl: and it works! gracias sir
<gzl> sure
ndrei has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
brian___ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
nfk has joined #ruby
banister has joined #ruby
m8 has quit [Quit: Sto andando via]
moritzs has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Connie has joined #ruby
shredding has quit [Quit: shredding]
jarray52 has joined #ruby
nasj has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<wasamasa> apeiros: rau has been kicked on #emacs and #archlinux today
febuiles_ is now known as febuiles
febuiles has quit [Changing host]
febuiles has joined #ruby
<wasamasa> apeiros: #bash, too
<apeiros> wasamasa: and banned here and in #ruby-lang
<wasamasa> well, he's still on #RubyOnRails, right?
<wasamasa> nope
<wasamasa> k-line I guess
<godd2> rau, rau, fight the power
<wasamasa> also, why are there both #ruby and #ruby-lang?
sputnik13 has joined #ruby
<wasamasa> does it get too offtopic in here?
jackneill has quit [Read error: Connection reset by peer]
sheperson has joined #ruby
<brian___> is it possible to conditionally define a method if another method is present?
JoshGlzBrk has joined #ruby
<godd2> brian___ yes
earthquake has quit [Quit: earthquake]
<brian___> godd2: how do i go about doing this? i tried wrapping the def block in self.respond_to?(‘method_name’)
sputnik13 has quit [Client Quit]
<godd2> can you make a gist of your example?
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Prandium has joined #ruby
DrOwl has left #ruby ["Spreads his wings, shakes of all the dust and flaps off"]
sdouglas has joined #ruby
mattstratton has joined #ruby
bradhe has quit [Remote host closed the connection]
sputnik13 has joined #ruby
<brian___> godd2: im using rails and i just want to define a method called to_param only if ‘slug’ is a column in the db: https://gist.github.com/briansw/4fe7407c67b470fbd173#file-basic_concern-rb-L17-L21
nicar has left #ruby [#ruby]
<godd2> that won't really work because your active model object isn't called when this file is loaded
<Hanmac> brian___: #rubyonrails
<brian___> yeah i tried the ROR room, but no one answered : /
<godd2> ill answer over there
mehlah has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
banister has quit [Ping timeout: 264 seconds]
jhass is now known as jhass|off
bradhe has joined #ruby
charlied3 has quit [Ping timeout: 255 seconds]
sheperson has quit [Quit: sheperson]
Channel6 has joined #ruby
theharshest has joined #ruby
theharshest has quit [Client Quit]
spider-mario has quit [Remote host closed the connection]
ziyadb has joined #ruby
claymore has quit [Quit: night]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
freerobby has quit [Quit: Leaving.]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
iamcalledrob has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
dangerousdave has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
user___ has joined #ruby
user___ has joined #ruby
ctp has joined #ruby
user___ is now known as icarus
iamcalledrob has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
freerobby has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
maximski has joined #ruby
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maximski has quit [Max SendQ exceeded]
banister has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
benlieb has joined #ruby
maximski has quit [Max SendQ exceeded]
klaut has quit [Remote host closed the connection]
iamcalledrob has joined #ruby
maximski has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
pwh has quit []
freeBlue has joined #ruby
freeBlue has quit [Client Quit]
mgberlin has joined #ruby
iamcalledrob has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
Arkaniad|Laptop has quit [Ping timeout: 248 seconds]
maximski has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 255 seconds]
mgberlin has quit [Remote host closed the connection]
nasj has quit [Remote host closed the connection]
Wolland has joined #ruby
Shidash has joined #ruby
andrewlio has quit [Remote host closed the connection]
theharshest has joined #ruby
Zebroid has quit [Remote host closed the connection]
nasj has joined #ruby
banister has quit [Ping timeout: 264 seconds]
brian___ has quit [Quit: brian___]
pwh has joined #ruby
mary5030 has quit [Remote host closed the connection]
zz_karupa is now known as karupa
maestrojed has joined #ruby
timonv has joined #ruby
zorak has quit [Ping timeout: 255 seconds]
maestrojed has quit [Client Quit]
banister has joined #ruby
sputnik13 has joined #ruby
nasj has quit [Ping timeout: 272 seconds]
DivineEntity has quit [Ping timeout: 240 seconds]
_KaszpiR_ has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
_KaszpiR_ has joined #ruby
karupa is now known as zz_karupa
nectarys_ has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
nectarys has quit [Ping timeout: 255 seconds]
<shevy> wasamasa #ruby-lang is the official one; I believe #ruby might have been started earlier but the channel owner was inactive initially, or something like that, so another channel was started
<shevy> most people will just join #NAME_OF_LANGUAGE
mijicd has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
riotjones has joined #ruby
Prandium has quit [Quit: Prandium]
sandbags0 has joined #ruby
sandbags0 has quit [Client Quit]
sandbags has joined #ruby
Wolland_ has joined #ruby
zorak has joined #ruby
DivineEntity has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
maestrojed has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
Soda has quit [Remote host closed the connection]
DivineEntity has quit [Ping timeout: 248 seconds]
mjsmith2 has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
mgberlin has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
warprobot has quit [Remote host closed the connection]
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jam_ has joined #ruby
Neomex has quit [Quit: Leaving]
kies has quit [Ping timeout: 255 seconds]
Arkaniad|Laptop has joined #ruby
postmodern has quit [Quit: Leaving]
Prandium has joined #ruby
azkah2 has joined #ruby
nanodano has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Quit: This computer has gone to sleep]
thrownaway has joined #ruby
azkah1 has quit [Ping timeout: 260 seconds]
<nanodano> Is it possible to chain together function calls with parameters without using parenthesis? For example User.find(x).inspect to User.find x .inspect
pwh_ has joined #ruby
ctp has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
tectonic has joined #ruby
kies has joined #ruby
kaiserpathos has joined #ruby
<benzrf> nanodano: no
<benzrf> u can do that in livescript
<benzrf> ruby is more conservative
<benzrf> nanodano: you could use haskell and some kind of piping operator
<benzrf> findUser x |> show
britneywright has joined #ruby
* benzrf basically only lurks here anymore to evangelize haskell
<Edelwin> You think I'm not online. But I'm always here. Even if I'm not typing. I'm here. Reading. Judging.
britneywright has quit [Client Quit]
<Edelwin> =)
<benzrf> Edelwin: who the heck are you
<Edelwin> ( ≖‿≖)
* Edelwin gives benzrf a cookie
kaiserpathos has quit [Client Quit]
<benzrf> >> class Object; def & s; send s; end; end; rand 6 & :inspect
<eval-in_> benzrf => :inspect can't be coerced into Fixnum (TypeError) ... (https://eval.in/169904)
<benzrf> oh wait
yfeldblum has joined #ruby
<benzrf> crud
iamcalledrob has joined #ruby
SouL___ has joined #ruby
x1337807x has joined #ruby
bricker`LA has joined #ruby
DivineEntity has joined #ruby
nanodano has quit [Ping timeout: 264 seconds]
Sawbones has joined #ruby
Prandium has quit [Quit: Prandium]
iamcalledrob has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
marr has quit [Ping timeout: 264 seconds]
bato has joined #ruby
mjsmith2 has quit []
x1337807x has quit [Ping timeout: 255 seconds]
Arkaniad|Laptop has quit [Ping timeout: 255 seconds]
SCHAAP137 has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
stytown has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shidash has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Read error: Connection reset by peer]
EasyCo has joined #ruby
Arkaniad|Laptop has joined #ruby
mercwithamouth has joined #ruby
brunops has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
mgberlin has quit [Remote host closed the connection]
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
mgberlin has joined #ruby
dapz has joined #ruby
wallerdev has joined #ruby
beak has joined #ruby
chipotle has joined #ruby
<beak> hi guys, hows everyone doing today?
Sawbones has quit []
zkay11 has quit [Ping timeout: 240 seconds]
zkay11 has joined #ruby
freerobby has quit [Quit: Leaving.]
d0lph1n98 has joined #ruby
Noob101 has joined #ruby
senayar has quit [Remote host closed the connection]
tectonic has quit []
senayar has joined #ruby
mmoretti has joined #ruby
nasj has joined #ruby
senayar has quit [Ping timeout: 248 seconds]
VTLob has quit [Quit: VTLob]
mikecmpbll has quit [Quit: i've nodded off.]
<benzrf> beak: bretty good
charlied3 has joined #ruby
mmoretti has quit [Quit: Leaving...]
mijicd has quit [Remote host closed the connection]
nasj has quit [Ping timeout: 248 seconds]
yubrew has joined #ruby
SouL___ has quit [Quit: No Ping reply in 180 seconds.]
charlied3 has quit [Ping timeout: 264 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL___ has joined #ruby
charlied3 has joined #ruby
havenwood has quit [Remote host closed the connection]
frog0909 has quit []
yubrew has quit [Ping timeout: 264 seconds]
moritzs has joined #ruby
nectarys_ has quit [Quit: Ex-Chat]
Hanmac1 has joined #ruby
bricker`1A has joined #ruby
<bricker`1A> bahar: put it at the beginning of the spec (inside 'scenario')
bricker`LA has quit [Read error: Connection reset by peer]
bricker`1A is now known as bricker`LA
d0lph1n98 has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
tectonic has joined #ruby
<bahar> bricker`LA ok, now when I run User.all i do get results. email: thedude3@abides.com. just the one user
Takle has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 272 seconds]
<bricker`LA> bahar: so where is that user coming form?
<bricker`LA> from*
tplpnm has joined #ruby
simoz1111115 has quit [Ping timeout: 255 seconds]
Xiti has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 248 seconds]
<bahar> User factory I believe
<bricker`LA> bahar: things to check: before :all hooks are often the cause of things like this. It *shouldn't* be a problem with truncation, but worth looking into
<bricker`LA> bahar: I mean where in your tests
<bahar> bricker`LA I'm enough of a noob that I'm not sure what you mean.
<bahar> :-/
<bricker`LA> bahar: In cases like this, I usually add `$stdout.puts User.count` to spec_helper's `before :each` block (before DatabaseCleaner.start). Then I'll look for the spec that prints `1`, and you have it narrowed down
<bahar> i don't see before :each in spec_helper.
ta has joined #ruby
pwh_ has quit []
ta__ has quit [Read error: Connection reset by peer]
iamcalledrob has joined #ruby
<bahar> bricker`LA is that possibly the problem?
<bricker`LA> bahar: it's in your database_cleaner file. I would put that stuff directly into spec_helper
tplpnm has quit []
timonv has joined #ruby
maestrojed has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
Zenigor has joined #ruby
nanodano has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<bahar> bricker`LA ahhh ok. before or in the Rspec.configure.do block?
lw has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
chipotle has joined #ruby