apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
<Cat_1> If you want to prep your month keys you can do so using: >>Date::MONTHNAMES.slice(1,12)
<Cat_1> >> Date::MONTHNAMES.slice(1,12)
<eval-in__> Cat_1 => uninitialized constant Date::MONTHNAMES (NameError) ... (https://eval.in/239425)
<Cat_1> I think taht should get you started
Zai00 has quit [Quit: Zai00]
<Cat_1> Let me know if you get stuck
<marjinal1st> What is the byte order in MRI? Couldn't find out on the internet
Crazy_Atheist has joined #ruby
<bl4ckdu5t> ok
omosoj has quit [Quit: leaving]
Pupeno has quit [Ping timeout: 256 seconds]
whomp has joined #ruby
pawanspace has joined #ruby
sevvie has joined #ruby
Dolphi has joined #ruby
ddd has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<havenwood> bl4ckdu5t: just an aside, but use snake_case instead of headlessCamelCase for variables
<havenwood> bl4ckdu5t: i also commented
bigmac has quit [Ping timeout: 245 seconds]
pawanspace has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
VBlizzard has joined #ruby
<Cat_1> havenwood's answer is much more compact
<Cat_1> :)
<bl4ckdu5t> Thanks havenwood. That's much better. JS made me a camel case lover
<bl4ckdu5t> Thanks to you Cat_1 as well
DonOtreply has joined #ruby
<Cat_1> np
blizzy has quit [Ping timeout: 255 seconds]
skj3gg has quit [Quit: ZZZzzz…]
bigmac has joined #ruby
dc_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
64MABLT9J has joined #ruby
lw has quit [Quit: s]
sinkensabe has joined #ruby
RareBlackMagic has joined #ruby
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
RareBlackMagic_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
skj3gg has joined #ruby
<bl4ckdu5t> havenwood: I got 0% for all when I used it
banister has joined #ruby
<Cat_1> bl4ckdu5t try my way, it may break it down so you can insert logging statements and understand the logic of what is happening.
banister has quit [Max SendQ exceeded]
RareBlackMagic has quit [Ping timeout: 244 seconds]
RareBlackMagic_ is now known as RareBlackMagic
Flcn____ has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
DadoCe has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
doritostains has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<bl4ckdu5t> ok I will
<havenwood> >> [['November',true],['November',false],['November',true],['December', true], ['December', false], ['January',false], ['January',true]].group_by(&:first).map { |k, v| trues, falses = v.partition(&:last); [k, "#{falses.size * 100 / trues.size}%"] }
<eval-in__> havenwood => [["November", "50%"], ["December", "100%"], ["January", "100%"]] (https://eval.in/239426)
<havenwood> bl4ckdu5t: Has the input changed since your gist?
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> >> [['November',true],['November',false],['November',true],['December', true], ['December', false], ['January',false], ['January',true]].group_by(&:first).map { |k, v| [k, v.map(&:last)] }.map { |k, v| [k, "#{(v.partition(&:itself).map(&:size).reverse.inject(:fdiv) * 100).to_i}%"] }
<eval-in__> havenwood => undefined method `itself' for true:TrueClass (NoMethodError) ... (https://eval.in/239427)
<havenwood> ah, not 2.2 yet :P
banister has joined #ruby
<havenwood> itself ALL THE THINGS! \o/
<bl4ckdu5t> nah it hasn't
<havenwood> bl4ckdu5t: well, works with the `allRecords` you're showing, as demonstrated above ^
<waxjar> ah cool, i was missing an "id" kinda method!
s7ry93r has joined #ruby
Flcn____ has quit [Ping timeout: 245 seconds]
pawanspace has joined #ruby
<pontiki> huh. #itself is a methodized version of self?
<havenwood> pontiki: a not-private self
<pontiki> neato
<havenwood> pontiki: simple, but handy!
ta_ has joined #ruby
<pontiki> man i'ma gonna have to upgrade all my dev boxes!!
<pontiki> and i just upgraded them to 2.1.5 a week ago
timonv_ has quit [Ping timeout: 250 seconds]
motti74 has quit []
64MABLT9J has quit [Quit: Konversation terminated!]
mesamoo has joined #ruby
<pontiki> i should really delve into puppet more... automate this crap
devoldmx has joined #ruby
rbennacer has joined #ruby
VBlizzard is now known as blizzy
pawanspace has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ta_ has quit [Ping timeout: 244 seconds]
<bl4ckdu5t> havenwood: it had changed. I didn't notice. Here's what it looks like now http://pastie.org/9813219
rbennacer has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Mongey_ has quit [Read error: Connection reset by peer]
<bl4ckdu5t> so I guess it shoulda been 100% for all
devyn has quit [Ping timeout: 245 seconds]
rbennacer has joined #ruby
devyn has joined #ruby
iamjarvo has joined #ruby
charliesome has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
s7ry93r has left #ruby [#ruby]
<shevy> pontiki let me know if you manage the upgrade to 2.2
TripTastic has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
hrs has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Crazy_Atheist has quit [Ping timeout: 256 seconds]
anaeem1 has joined #ruby
JBreit has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
silkfox has joined #ruby
Griff`Ron has quit [Quit: deez nutz]
anaeem1 has quit [Ping timeout: 264 seconds]
Crazy_Atheist has joined #ruby
ta_ has joined #ruby
lucyinthesky has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
renderful has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
giuseppesolinas has joined #ruby
oleo has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
Flcn____ has joined #ruby
teddyp1cker has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 265 seconds]
kiyote23 has joined #ruby
mary5030 has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
lw has joined #ruby
kiyote23 has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 256 seconds]
pandaant has quit [Remote host closed the connection]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
Techguy305|2 has joined #ruby
nicolastarzia has quit []
Techguy305|3 has joined #ruby
Techguy305 has quit [Ping timeout: 256 seconds]
parduse has quit []
Flcn____ has quit [Ping timeout: 265 seconds]
Techguy305|2 has quit [Ping timeout: 245 seconds]
marr has quit []
veduardo has joined #ruby
valeriansaliou has joined #ruby
Dopagod has joined #ruby
Martxel has quit [Quit: Leaving]
<ziyadb> Guys
<ziyadb> pontiki: ping :P
marjinal1st has quit [Quit: Leaving]
<Cat_1> pong
<ziyadb> Nevermind, I'm an idiot.
<Cat_1> happens to the best of us
<shevy> never to me
valeriansaliou has quit [Ping timeout: 244 seconds]
linoespinoza has joined #ruby
linoespinoza has quit [Remote host closed the connection]
<ziyadb> I'm also a genius.
<ziyadb> (just fixed the thing that made me an idiot, heh).
adriancb has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
davedev2_ has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
RareBlackMagic has quit [Quit: Fell Asleep]
davedev24_ has joined #ruby
dkb20k has joined #ruby
adriancb has quit [Ping timeout: 244 seconds]
DonOtreply has quit [Quit: DonOtreply]
TheTopBloke has quit [Ping timeout: 244 seconds]
TheTopBloke has joined #ruby
narph has quit [Quit: Connection closed for inactivity]
Techguy305 has joined #ruby
dkb20k has quit [Ping timeout: 245 seconds]
diegoviola has quit [Remote host closed the connection]
sinkensabe has joined #ruby
pwnz0r has joined #ruby
Techguy305|3 has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
banister has quit [Ping timeout: 245 seconds]
pwnz0r has quit [Remote host closed the connection]
Nameo0 has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw_ has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
DadoCe has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 264 seconds]
sevvie has quit [Read error: Connection reset by peer]
veduardo has quit [Ping timeout: 244 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dolphi has quit [Ping timeout: 240 seconds]
Xspl0it has joined #ruby
sevvie has joined #ruby
kl has quit [Ping timeout: 255 seconds]
greenbagels_ has joined #ruby
mercwithamouth has joined #ruby
DonOtreply has joined #ruby
silkfox has joined #ruby
Xsploit has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
bronson has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
Dolphi has joined #ruby
max96at is now known as max96at|off
greenbagels has quit [Ping timeout: 244 seconds]
robustus has joined #ruby
baltazore has joined #ruby
pengin has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
Kilo`byte has joined #ruby
eka has joined #ruby
whomp has quit [Ping timeout: 245 seconds]
Techguy305|2 has joined #ruby
baltazore has quit [Ping timeout: 264 seconds]
alex88 has quit []
Techguy305 has quit [Ping timeout: 245 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
Guest65496 is now known as _chs_
adriancb has joined #ruby
ddd has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
Cache_Money has joined #ruby
pengin has quit [Ping timeout: 265 seconds]
hashpuppy has joined #ruby
Shellbee has joined #ruby
hanjianwei has quit [Ping timeout: 244 seconds]
silkfox has joined #ruby
omosoj has joined #ruby
<majeure> Yay you.
jack_rabbit has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
<omosoj> hey guys i'm working with a rails app now. forgot the password to log in and the db only has encrypted passwords. is there any way to get the password?
<omosoj> i swear i have it right, just want to see what the db says
Flcn____ has joined #ruby
tokik has joined #ruby
Flcn____ has quit [Ping timeout: 244 seconds]
ohaibbq has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
AndyBotwin has quit [Remote host closed the connection]
Shellbee has quit []
dblessing has joined #ruby
<Cat_1> What db are you using?
<omosoj> postgres
veduardo has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
<pontiki> shevy: no worries so far with 2.2.0
timonv_ has joined #ruby
dkb20k has joined #ruby
dkb20k has quit [Read error: Connection reset by peer]
krz has joined #ruby
krz has quit [Client Quit]
dkb20k has joined #ruby
krz has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
lw_ has quit [Quit: s]
hashpuppy has joined #ruby
hashpuppy has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
dfinninger has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Techguy305|2 has quit [Read error: Connection reset by peer]
Techguy305|2 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Dolphi has quit [Quit: Leaving]
apeiros_ has joined #ruby
kirun has quit [Quit: Client exiting]
ta_ has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Ping timeout: 245 seconds]
riscky has quit [Quit: riscky]
omosoj has quit [Quit: Lost terminal]
rbennacer has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
riscky has joined #ruby
metadave has joined #ruby
greenbagels_ has quit [Quit: Leaving]
greenbagels has joined #ruby
Crazy_Atheist has quit [Ping timeout: 240 seconds]
metadave has quit [Client Quit]
commmmodo has joined #ruby
whomp has joined #ruby
rbennacer has quit [Ping timeout: 265 seconds]
DonOtreply has quit [Quit: DonOtreply]
DonOtreply has joined #ruby
DonOtreply has quit [Client Quit]
Trep has quit [Read error: Connection reset by peer]
kapil__ has joined #ruby
whomp has quit [Ping timeout: 240 seconds]
Guest90 has joined #ruby
Techguy305|2 has quit [Read error: Connection reset by peer]
crazydiamond has quit [Ping timeout: 250 seconds]
Guest90 has quit [Client Quit]
Crazy_Atheist has joined #ruby
rbennacer has joined #ruby
ror15 has joined #ruby
kiyote23 has joined #ruby
<ror15> hello
<ror15> can anyone help with my code? I am learning
<ror15> private def category_params perams.require(:catagory, :name, :thumburl) end end
<ror15> its from the codecademy RoR class though i am stuck
jcdesimp has joined #ruby
valeriansaliou has joined #ruby
arescorpio has joined #ruby
<havenwood> ror15: do you mean `params` instead of `perams`? the best place for rails questions is #rubyonrails.
SilentNuke has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ror15> thank you i couldn't connect to #rubyonrails and it has been many years since irc
<havenwood> ror15: ah, yeah the rails channel does require irc nick registration. checkout the response instructions when you type: /msg NickServ help REGISTER
rsty1 has joined #ruby
<havenwood> ror15: or here are the instructions online: https://freenode.net/faq.shtml#nicksetup
<rsty1> how to replaced all delimiters with "/" ?
jenrzzz has joined #ruby
<havenwood> rsty1: like replace all the somethings in a string with '/'s?
<havenwood> rsty1: what's a delimiter?
valeriansaliou has quit [Ping timeout: 265 seconds]
<rsty1> havenwood, yes :)
<rsty1> replace spaces and , with /
Flcn____ has joined #ruby
<havenwood> >> 'a b,c d'.gsub /[, ]/, '/'
<eval-in__> havenwood => "a/b/c/d" (https://eval.in/239446)
kiyote23 has quit [Remote host closed the connection]
<rsty1> thank you havenwood :)
<havenwood> rsty1: no prob
<ror15> REGISTER 1q2w3e tuckerrwatts@gmail.com
<ror15> yay
ta_ has joined #ruby
<havenwood> ror15: be sure to prepend `/msg NickServ` to that command, and pick a new password ;P
smoothbutta has quit [Read error: Connection reset by peer]
veduardo has quit [Ping timeout: 250 seconds]
Flcn____ has quit [Ping timeout: 265 seconds]
eka has joined #ruby
bronson has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Techguy305 has joined #ruby
<shevy> ohhhh
<shevy> secrets
bronson has quit [Ping timeout: 240 seconds]
bigmac has quit [Read error: Connection reset by peer]
<epitron> also change the password on any sites where you use tuckerrwatts@gmail.com as your login :)
josephndenton has quit [Ping timeout: 244 seconds]
bigmac has joined #ruby
behrz has quit [Ping timeout: 265 seconds]
echevemaster has quit [Quit: Leaving]
Rarikon has joined #ruby
<epitron> there should probably be a link in the topic that we can point people at when they can't get into #rubyonrails
bigmac has quit [Read error: Connection reset by peer]
TheTopBloke has quit [Ping timeout: 265 seconds]
bigmac has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Techguy305 has joined #ruby
<shevy> we know of no such channel here
<shevy> :>
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
last_staff has joined #ruby
ror15 has quit [Quit: Page closed]
crack_user has joined #ruby
dfinninger has joined #ruby
<crack_user> hello guys
sinkensabe has joined #ruby
az7ar_away is now known as az7ar
<crack_user> the is in ruby a tap method that returns the return of the block?
livingstn has quit []
<shevy> was that a sentence
<crack_user> there is*
<shevy> there is the .tap method in ruby
<shevy> "Yields self to the block, and then returns self. The primary purpose of this method is to tap into a method chain, in order to perform operations on intermediate results within the chain."
eka_ has joined #ruby
<crack_user> I know, but there is something similar that return the return of the block instead self?
rbennacer has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Ping timeout: 240 seconds]
dfinninger has quit [Ping timeout: 264 seconds]
eka has quit [Ping timeout: 240 seconds]
slawrence00 has joined #ruby
<crack_user> in example: object.owner.tap {|u| ({id: u.id, name: u.name, username: u.username, approved: true}) }
<crack_user> I want the hash instead the owner
az7ar is now known as az7ar_away
vlad_starkov has joined #ruby
metadave has joined #ruby
<Cat_1> map?
ta_ has joined #ruby
<Cat_1> .each?
<havenwood> >> class Object; def let &block; block[self] end end; [1, 2, 3].let { |a| [a.first, a.last] }
<eval-in__> havenwood => [1, 3] (https://eval.in/239447)
<havenwood> crack_user: you could implement it yourself ^
<havenwood> crack_user: or even start an issue to suggest adding it if you feel like an adventure!: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
C1V0 has joined #ruby
<crack_user> I know, I just wanted to know to avoid create variable to cases like this
metadave has quit [Client Quit]
<havenwood> crack_user: i'd like having it, and i suspect the biggest obstacle to its addition in the language (like Object#tap was added in 1.9) is agreeing on what to name the method.
zorak8 has joined #ruby
<havenwood> i doubt folk would agree on Object#let >.>
ta_ has quit [Ping timeout: 265 seconds]
<crack_user> I think let is a good name
<havenwood> crack_user: but as you can see it's entirely trivial to implement, so that's not a barrier :)
<crack_user> it is used in many languages
hfp has quit [Ping timeout: 244 seconds]
<crack_user> havenwood: indeed
hfp_work has quit [Ping timeout: 245 seconds]
tadasp has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
hfp has joined #ruby
hfp_work has joined #ruby
fandi has joined #ruby
<havenwood> guess i should done this though, block required: class Object; def let; yield self end end
sevvie has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
<havenwood> faster and shorter
Sid05 has joined #ruby
<havenwood> and LocalJumpError without a block like tap
ehc has joined #ruby
whomp has joined #ruby
<crack_user> yes,this implementation follow the same way .tap
mengu has quit [Ping timeout: 245 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby
sevvie has joined #ruby
<crack_user> but the problem with name "let" is there are many libs that declare this method
sevvie has quit [Read error: Connection reset by peer]
<crack_user> for instance rspec
<havenwood> look'n at you, rspec
oo_ has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
az7ar_away is now known as az7ar
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Spami has quit [Ping timeout: 240 seconds]
TripTastic has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
duncannz has joined #ruby
skj3gg has joined #ruby
Spami has joined #ruby
sleepee has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
az7ar is now known as az7ar_away
dkb20k has quit [Ping timeout: 244 seconds]
<wkmanire> Hello agai
<wkmanire> n
function90 has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
radic has quit [Ping timeout: 245 seconds]
dkb20k has joined #ruby
function90 has joined #ruby
radic has joined #ruby
dkb20k has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
timonv_ has joined #ruby
Flcn____ has joined #ruby
kyb3r_ has joined #ruby
<Cat_1> hi
adriancb has quit [Remote host closed the connection]
dkb20k has joined #ruby
sevvie has joined #ruby
braincrash has quit [Quit: bye bye]
kiyote23 has joined #ruby
mrmargolis has joined #ruby
arescorpio has quit [Ping timeout: 264 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
Flcn____ has quit [Ping timeout: 240 seconds]
Mongey_ has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
kiyote23 has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
tyfighter has joined #ruby
ajaiswal has joined #ruby
tyfighter has quit [Client Quit]
parduse has joined #ruby
SilentNuke has quit []
skj3gg has joined #ruby
DadoCe has quit [Remote host closed the connection]
tyfighter has joined #ruby
lw has joined #ruby
Crazy_Atheist has quit [Ping timeout: 245 seconds]
ARCADIVS has joined #ruby
tlarevo has quit [Ping timeout: 244 seconds]
uber_hul1 has joined #ruby
fenzil has joined #ruby
uber_hul1 has quit [Client Quit]
SparkMasterTape has joined #ruby
Sid05 has quit [Ping timeout: 265 seconds]
decoponyo has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
dts|pokeball has joined #ruby
decoponio has quit [Ping timeout: 240 seconds]
Guest54897 has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
az7ar_away is now known as az7ar
jefus__ has joined #ruby
jefus_ has quit [Ping timeout: 240 seconds]
function90 has quit [Max SendQ exceeded]
commmmodo has quit [Quit: commmmodo]
dfinning_ has joined #ruby
function90 has joined #ruby
valeriansaliou has joined #ruby
osvico has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sleepee has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
whomp has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
valeriansaliou has quit [Ping timeout: 256 seconds]
tyfighter has quit [Quit: tyfighter]
Guest54897 has quit [Ping timeout: 240 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
silkfox has joined #ruby
whomp has quit [Ping timeout: 264 seconds]
whatasunnyday has joined #ruby
whomp has joined #ruby
Techguy305 has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
Guest54897 has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
moose has joined #ruby
Guest54897 is now known as Crazy_Atheist
devoldmx has quit []
amh345 has joined #ruby
lolmaus_ has joined #ruby
amh345 has left #ruby [#ruby]
bronson has quit [Ping timeout: 250 seconds]
<moose> anyone around?
<wkmanire> moose: I'm here. And I know nothing.
Flcn____ has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
<Cat_1> sssh
<Cat_1> they're sleeping
commmmodo has joined #ruby
<moose> well, you can't know *nothing*, I mean I'm sure you know some useful stuff! :)
mrmargolis has quit [Remote host closed the connection]
<wkmanire> moose: Sure. I'm a programmer. I just decided to learn Ruby over the weekend. Today is my first day actually studying it.
havenwood has quit [Ping timeout: 250 seconds]
mrmargolis has joined #ruby
<wkmanire> moose: But this ain't my first rodeo.
<pontiki> not sleeping!! just resting my eyes!!
webguynow has joined #ruby
tyfighter has joined #ruby
sevvie has joined #ruby
Flcn____ has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
mrmargolis has quit [Ping timeout: 256 seconds]
skj3gg has quit [Quit: ZZZzzz…]
<moose> So I have a quick question regarding the rack interface. I'm running a production server which also runs a rack vm, and the method to communicate with the vm is through the localhost port. I'm running into issues when trying to contact the vm, is it safe to open the port on which the vm communicates? or is there a different method of communicating with the rack server?
<wkmanire> moose: The localhost port?
Crazy_Atheist has quit [Ping timeout: 250 seconds]
<moose> yeah, just a bit of background to make sense of it all. I start the server via the rackup command, the server communicates that it's listening at localhost:9292. On the development server I have no problem communicating. But on the production server I get STDERR errors
<moose> also, communication occurs using curl, with a command followed by the destination, which is http://localhost:9292
skj3gg has joined #ruby
TheTopBloke has joined #ruby
<wkmanire> STDERR is just a file handle. What are the actual error messages being printed to STDERR?
ddd has quit [Quit: leaving]
DadoCe has joined #ruby
ddd has joined #ruby
banister has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<moose> I'm getting a list of directories which are followed by quoted commands here's an example: /var/lib/gems/1.9.1/gems/rack-parser-0.6.0/lib/rack/parser.rb:39:in `_call'
<moose> there are about 100 or so errors similar to that
<wkmanire> Those are part of a stack trace
<wkmanire> To make any sense of it I need the entire output.
vyorkin has joined #ruby
brlkid has quit [Quit: ô¿ô]
ta_ has quit [Ping timeout: 244 seconds]
oleo has quit [Quit: Verlassend]
<moose> do you think it might have something to do with the fact that the code is running on a production server though? basically, I would think there are complications with sending data requests to a particular localhost port
DadoCe has quit [Ping timeout: 245 seconds]
<wkmanire> moose: Trouble guessing is the least effective method for fixing problems.
<wkmanire> Usually when a system works in development and does not work in production it is due to configuration or lack thereof.
Spami has joined #ruby
<moose> true, but the thing is that I'm running the exact same code locally, and it fetches data without issue
<moose> ok
<moose> hmm
<wkmanire> So you need to analyze the stack trace. It's going to tell you what function is failing and most likely why it is failing. You figure out where that function is and read the code to assess the issue
<moose> ok, I'll try that out
function90 has quit [Max SendQ exceeded]
vyorkin has quit [Ping timeout: 255 seconds]
Crazy_Atheist has joined #ruby
function90 has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
sumark_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
sumark has joined #ruby
dfinning_ has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 244 seconds]
Techguy305|2 has joined #ruby
Techguy305 has quit [Ping timeout: 244 seconds]
function90 has quit [Max SendQ exceeded]
xenomorph is now known as {xenomorph}
function90 has joined #ruby
kiyote23 has joined #ruby
Joufflu has joined #ruby
elaptics`away is now known as elaptics
function90 has quit [Max SendQ exceeded]
function90 has joined #ruby
Crazy_Atheist has quit [Ping timeout: 244 seconds]
{xenomorph} is now known as xenomorph
goganchic has joined #ruby
lkba_ has joined #ruby
Darryl__ has joined #ruby
iamninja has joined #ruby
moose has quit [Quit: irc2go]
last_staff has quit [Quit: last_staff]
MasterPiece has joined #ruby
Techguy305|2 has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
dfinninger has joined #ruby
ajaiswal has quit [Read error: No route to host]
bitcycle has joined #ruby
ajaiswal has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<bitcycle> Hey all. I'm getting some strange behavior when running ruby 2.2.0 from within RVM. I've installed nokogiri to my current gemset, and I _am_ using that gemset, but when I go to run this in-house app's unit tests it fails because it can't find nokogiri. Any suggestions how I should go about fixing this?
lemur has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Crazy_Atheist has joined #ruby
lemur has joined #ruby
tyfighter has quit [Quit: tyfighter]
<bitcycle> nm, I figured it out. Its shelling out to a different ruby ... arg.
<bitcycle> :)
dseitz has joined #ruby
silkfox has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
function90 has quit [Max SendQ exceeded]
timonv_ has quit [Ping timeout: 264 seconds]
mengu has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
wolf4ood has quit [Quit: (null)]
anitchrist has joined #ruby
* anitchrist puts on anti troll protection
TheTopBloke has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
<anitchrist> .reject isn't what I was looking for because the query I'm doing on the api with attr_accessor, prevents me from removing or adding anything to the database
ta_ has joined #ruby
sorpaas has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
kiyote23 has quit [Ping timeout: 245 seconds]
tus has quit []
function90 has joined #ruby
<anitchrist> I just need to figure out a simple way on the "p inspect" to exclude certain values from showing... to me
ta_ has quit [Ping timeout: 250 seconds]
banjara has joined #ruby
whatasunnyday has quit [Quit: Leaving]
<shevy> anitchrist can't you redefine #to_s anyway?
Flcn____ has joined #ruby
MasterPiece has quit [Quit: Leaving]
<shevy> oh sorry
<shevy> #inspect
<shevy> >> class Foo; def inspect; 'teletubby';end;end; foo = Foo.new; p foo
<eval-in__> shevy => teletubby ... (https://eval.in/239479)
<anitchrist> if you're defining it into an object...
<anitchrist> I guess
lw has quit [Quit: s]
<anitchrist> I was referring to the out put of an attr from an api get in httparty
<anitchrist> but I really have no idea what I'm saying
bitcycle has quit [Quit: WeeChat 1.0.1]
Flcn____ has quit [Ping timeout: 250 seconds]
<shevy> there are no attr's though
<shevy> they are just methods
bluOxigen has joined #ruby
<anitchrist> I'm guessing the database is pretty rigid, because it seems I need the keys predefined on the client in order for it to function properly
phutchins has joined #ruby
banjara has quit [Quit: Leaving.]
<anitchrist> which the attr_accessor does in the main class
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banjara has joined #ruby
<anitchrist> as then the next steps are to initialize the data and then send it
Morkel has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
banjara has quit [Quit: Leaving.]
jenrzzz has joined #ruby
w4pm has joined #ruby
banjara has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
commmmodo has quit [Quit: commmmodo]
MasterPiece has joined #ruby
leo-unglaub has joined #ruby
Rickmasta has joined #ruby
ta_ has joined #ruby
Morkel has quit [Quit: Morkel]
banjara has quit [Quit: Leaving.]
tagrudev has joined #ruby
sinkensabe has joined #ruby
bronson has joined #ruby
rbennacer has joined #ruby
pedram has joined #ruby
<pedram> Hi
<anitchrist> sup
<pedram> nothing at all :) just code
<dfinninger> same, woo
<anitchrist> yeah I'm stuck in codecademy
compac has joined #ruby
<anitchrist> cause I'm an idiot
compac has left #ruby ["Leaving"]
<dfinninger> oh?
* anitchrist smirks
<pedram> guy's what's best way to restart development rails server ?
sinkensabe has quit [Ping timeout: 240 seconds]
<anitchrist> I need a better memory though, but I'll probably forget everything
bronson has quit [Ping timeout: 265 seconds]
valeriansaliou has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
leo-unglaub has quit [Remote host closed the connection]
<anitchrist> I know the issue is with the heart of my mind, but I dunno how to put it under my control
jenrzzz has quit [Ping timeout: 265 seconds]
noop has joined #ruby
<anitchrist> "go to #psych101 anitchrist! this is for ruby, stay on topic"
anarang has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
valeriansaliou has quit [Ping timeout: 265 seconds]
whomp has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Quit: Connection closed for inactivity]
goganchic has quit [Quit: Computer has gone to sleep.]
tlarevo has joined #ruby
dionysus69 has joined #ruby
josephcs has joined #ruby
<anitchrist> heart_of_mind = memory.upcase do drugs
<anitchrist> heart_of_mind.include?("rectal examination")
hvxgr has quit [Ping timeout: 244 seconds]
nosignsoflife has joined #ruby
codecop has joined #ruby
<anitchrist> print "we got a winner"
<wkmanire> Man, ruby sure has some nice tools.
<wkmanire> ruby-install, chruby, bundler and gem. That group solves so many problems and you get it all going in a few minutes.
<wkmanire> Is there anything else at the system level that I should be aware of?
valeriansaliou has joined #ruby
<anitchrist> brew install pry
<anitchrist> one of the guys that developed it is running around here
<anitchrist> its better then irb
dfinninger has quit [Remote host closed the connection]
<wkmanire> anitchrist: I don't have the MacOS application installed on my unix.
<anitchrist> imho
<wkmanire> So I can't use brew.
<wkmanire> What is pry?
<anitchrist> lemme see if I can find a link
<anitchrist> might be able to do it with gem but one sec
whomp has joined #ruby
<anitchrist> you can do it with gem
<wkmanire> This is for windows?
<anitchrist> yup
<wkmanire> I'm using Linux
<anitchrist> lol
<anitchrist> I shouldn't have assumed
<wkmanire> Ah, it's a different REPL
<anitchrist> yeah
<anitchrist> just gem 'pry'
<wkmanire> What's the pry sales pitch?
<anitchrist> er gem install pry
<wkmanire> yeah, I have it running.
dts|pokeball has quit [Changing host]
dts|pokeball has joined #ruby
apeiros__ has joined #ruby
<anitchrist> I don't know the sales pitch, Im not much into the sales game
craigp has joined #ruby
<anitchrist> it could be...
<anitchrist> "pry... taste the rainbow"
apeiros_ has quit [Read error: Connection reset by peer]
fenzil has quit [Read error: Connection reset by peer]
<wkmanire> He he he
<certainty> wkmanire: for one you can easily start the pry repl from within your code. It also offers some niceties like documentation, exploring currently loaded code etc.
<wkmanire> Nice
<certainty> erm
<certainty> easily be started
<wkmanire> certainty: Sort of like dropping into an interactive debugger?
<certainty> wkmanire: exactly like that
<anitchrist> yup
<certainty> it even has a plugin that allows to step like a debugger
<wkmanire> rdb?
<certainty> dunno what it's called
whomp has quit [Ping timeout: 264 seconds]
<anitchrist> end
Cyberheb has joined #ruby
silkfox has joined #ruby
sigurding has joined #ruby
* anitchrist pinches cyberheb and silkfoxes nipples
* anitchrist slaps sigurding on the rump
Trep has joined #ruby
<anitchrist> "good game"
* anitchrist challenges Trep to ping pong
<shevy> ok I see you have no code assignment left
lkba_ has quit [Read error: Connection reset by peer]
<shevy> time for you to write your first gem anitchrist
<anitchrist> haha
<anitchrist> I am not that savy
MasterPiece has quit [Ping timeout: 240 seconds]
<anitchrist> I only made it to chapter 3 and lesson 6 in codecademy
apeiros__ has quit [Remote host closed the connection]
<shevy> k so you are an early quitter
lkba has joined #ruby
<anitchrist> still going, but its not enlightening me
<shevy> here is what you can do
<shevy> start a gem
<shevy> abandon it after 1 hour and call it finished
apeiros_ has joined #ruby
<anitchrist> lol
ta_ has joined #ruby
<anitchrist> nah I'm more of a late bloomer
<shevy> I am doing that for many of my projects btw, so as to not lose motivation; it is much easier to continue writing code if I add only in small steps and little bits
lemur has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
<anitchrist> I can empathize with that
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
teddyp1cker has joined #ruby
<anitchrist> I have a bit of a script that works, but I'm really wanting to get to the part where I turn it into a fuctional app on the 4 mains systems (winblows, OS X, android, iOS)
<epitron> crack_user: i got a solution for your "let" needs: "with"!
baltazore has joined #ruby
<anitchrist> spittoon, more like "foil" and "lightbulb"
<anitchrist> er
Joufflu has joined #ruby
<anitchrist> stupid autocorrect
<anitchrist> spitron
<crack_user> NoMethodError: undefined method `with' :/
devoldmx has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Ping timeout: 244 seconds]
<crack_user> oh it is a extension, I dint seen before
ta_ has quit [Ping timeout: 265 seconds]
josephcs has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
charliesome has quit [Quit: zzz]
<anitchrist> crack_user is over here talking about meth now
* anitchrist shakes his head
lemur has quit [Ping timeout: 244 seconds]
frogsy2 has joined #ruby
frogsy has quit [Ping timeout: 255 seconds]
<crack_user> anitchrist: no, I use crack in my pirate games
<anitchrist> all for the booty eh
mengu has joined #ruby
<anitchrist> I jutht made a thtupid porky pig tranthlator in ruby -_-
slawrence00 has joined #ruby
bal has joined #ruby
mengu has quit [Remote host closed the connection]
function90 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> ok
<shevy> now try to turn this into a class
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Flcn____ has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
<crack_user> and then build a gem
ta_ has quit [Ping timeout: 265 seconds]
mengu has quit [Read error: No route to host]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sandelius has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
MasterPiece has joined #ruby
nosignsoflife has quit []
<epitron> ain'titchrist: you can save 2 lines if you just blindly call gsub without checking :)
<epitron> sorry, 4!
baltazore has quit [Remote host closed the connection]
dts|pokeball has left #ruby ["Leaving"]
Flcn____ has quit [Ping timeout: 240 seconds]
baltazore has joined #ruby
pedram has quit [Remote host closed the connection]
hvxgr has joined #ruby
Macaveli has joined #ruby
<crack_user> I think it is bed time
agjacome has quit [Quit: leaving]
lkba has joined #ruby
<Macaveli> Happy New Year to all :)
amclain has quit [Quit: Leaving]
npg has joined #ruby
SixiS has joined #ruby
SixiS has quit [Client Quit]
npg has quit [Client Quit]
StoneCypher has quit [Ping timeout: 264 seconds]
<certainty> happy new year
anaeem1_ has joined #ruby
sinkensabe has joined #ruby
<SparkMasterTape> ?
<SparkMasterTape> Years old as fuck
<certainty> i just did respond to Macaveli
<SparkMasterTape> *walks away*
w4pm has quit [Ping timeout: 250 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
<anitchrist> shevy, this is what I got so far http://pastebin.com/GUmB7hRK
<anitchrist> it isn't doing shit though, its giving me a method_missing error
fabrice31 has joined #ruby
<Macaveli> *don't wan't to work anymore*
<Macaveli> I'm going to become a socialist swine
<shevy> ok but you don't invoke that method anitchrist
oo_ has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<shevy> Porky.new.user_input
<shevy> but it is simpler to put the method user_input call, into def initialize; user_input; end
ohaibbq has quit [Quit: Leaving...]
_Andres has quit [Ping timeout: 256 seconds]
_Andres has joined #ruby
oo_ has quit [Remote host closed the connection]
tobago has joined #ruby
arup_r has joined #ruby
oo_ has joined #ruby
intersect has quit [Ping timeout: 245 seconds]
crack_user has quit [Quit: Leaving.]
bal has quit [Read error: Connection reset by peer]
MasterPiece has quit [Ping timeout: 250 seconds]
bal has joined #ruby
baltazore has quit [Remote host closed the connection]
dkb20k has quit [Read error: Connection reset by peer]
vinleod has quit [Quit: Computer has gone to sleep.]
aganov has joined #ruby
mengu has quit [Remote host closed the connection]
anicet is now known as juni0r
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
baltazore has joined #ruby
DonOtreply has joined #ruby
baltazore has quit [Remote host closed the connection]
ta_ has joined #ruby
oo_ has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 1.0.1]
whomp has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
krz has joined #ruby
hephaestus_rg has joined #ruby
MasterPiece has joined #ruby
elaptics is now known as elaptics`away
whomp has quit [Ping timeout: 265 seconds]
towski_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mengu has joined #ruby
krz has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
krz has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
silkfox has joined #ruby
<anitchrist> shevy, done sir!! http://pastebin.com/qPKv5p6e
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tobago has quit [Remote host closed the connection]
timonv_ has joined #ruby
_cb1 has quit [Ping timeout: 244 seconds]
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
<anitchrist> er...
<anitchrist> no I'm not... just noticed it didn't covert it
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* anitchrist facepalm
fedexo_ has quit [Ping timeout: 245 seconds]
Darryl__ has quit [Quit: Connection closed for inactivity]
fedexo has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
silkfox has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
kp666 has joined #ruby
charliesome has joined #ruby
wallerdev has quit [Quit: wallerdev]
lxsameer has joined #ruby
lxsameer has joined #ruby
tokik has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 245 seconds]
LouisRoR has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
St1gma has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 255 seconds]
Techguy305 has joined #ruby
aswen has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
az7ar is now known as az7ar_away
<anitchrist> shevy: http://pastebin.com/m2HNB1ys
sevvie has joined #ruby
zorak8 has joined #ruby
Techguy305 has joined #ruby
Aeoxic has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
<certainty> anitchrist: do you understand the purpose of a class?
<certainty> (or one of them)
greenbagels_ has joined #ruby
<Aeoxic> Hi, is there any form of callback (or a pattern I can use to achieve something similar) for the close of an inherited class?
<Aeoxic> Been playing around for about 30 minutes now and I can't get anything working really.
<certainty> Aeoxic: the close of an inherited class?
surs has joined #ruby
Flcn____ has joined #ruby
<Aeoxic> certainty: As in, class B inherits class A, class A has self.inherited which creates a new instance of class B.
atom3 has joined #ruby
<Aeoxic> This doesn't work with a simple klass.new.
<anitchrist> other then it seems like a vending machine that has all the instructions in it... no
<anitchrist> like a function with defined variables
havenwood has joined #ruby
ta_ has joined #ruby
<anitchrist> put food in one end, shit comes out the other
greenbagels has quit [Ping timeout: 244 seconds]
Trep has quit [Ping timeout: 252 seconds]
<certainty> Aeoxic: ah ok. So class B uses some of its subclass?
<certainty> subclasses
atom3 has quit [Client Quit]
<Aeoxic> certainty: It's really hard for me to explain, let me gist my nonworking code.
sevvie has joined #ruby
<certainty> erm sorry class A uses some of its subclasses
atom3 has joined #ruby
<certainty> anitchrist: for your current problem think about how you can extract the functionality you need into methods that belong to your class
<Aeoxic> certainty: In this instance, when a class inherits Plugin, it will be instantiated but its "initialize" method will not be called.
Flcn____ has quit [Ping timeout: 250 seconds]
baltazore has joined #ruby
hgl- has joined #ruby
blackmesa has joined #ruby
ehc has quit [Quit: Connection closed for inactivity]
_cb1 has joined #ruby
hgl- has quit [Max SendQ exceeded]
<certainty> Aeoxic: ok i see your problem. I have no solution for this. I'd probably put that in Plugin#initialize and not in the .inherited
<Aeoxic> certainty: Is Plugin#initialize called when a class inherits it?
hgl- has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
<certainty> Aeoxic: no but when it is initialized
<Aeoxic> I thought that was why we have the callback method.
<Aeoxic> certainty: When the child is initialized?
<certainty> yeah
<certainty> well
<certainty> if the child calls super
<Aeoxic> It creates an instance of plugin?
<certainty> which it should
<Aeoxic> It doesn't.
<Aeoxic> Oh, not explicitly.
<Aeoxic> If it does behind the scenes, then yes.
<Aeoxic> But I'm not calling super.
hgl has quit [Ping timeout: 264 seconds]
hgl- is now known as hgl
sevvie has joined #ruby
<certainty> Aeoxic: hmm then i don't currently see a way. Isn't it strange though that you create the instance when you inherit? I mean this way the caller has no control over how to create an instance of the plugin
sorpaas has quit [Remote host closed the connection]
<certainty> what about parameters?
<certainty> or is that the your intend?
<Aeoxic> certainty: Plugin itself is kind of, well
<Aeoxic> it's just a holder class.
Techguy305 has quit [Ping timeout: 244 seconds]
<Aeoxic> It's really just used to collect the plugins themselves into an array.
timonv_ has quit [Remote host closed the connection]
kamilc__ has joined #ruby
timonv_ has joined #ruby
_cb1 has quit [Read error: No route to host]
<certainty> Aeoxic: i see. And just storing the class without creating an instance of it doesn't make sense in your case?
vyorkin has joined #ruby
<Aeoxic> any child inheriting Plugin should be instantiated.
<Aeoxic> Just for the sake of ease, really.
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeoxic> certainty: Got a very weird workaround.
<Aeoxic> certainty: If you're wondering: https://gist.github.com/Aeoxic/da62af6171c15fcb9e1d
banister has joined #ruby
<Aeoxic> Then I just call initialize_plugins.
banister has quit [Max SendQ exceeded]
<anitchrist> so it kinda starts on the bottom, it grabs a specified .json file with an if incase of error. then then it calls a .new, which I kind of understand... but not really
<certainty> Aeoxic: yeah that works as ruby has "seen" the implementation of the plugins initialize methed at that point.
<Aeoxic> yep
vyorkin has quit [Ping timeout: 245 seconds]
<Aeoxic> yep
<anitchrist> most of the other lines were already committed to memory so maybe .new is the end product of pushing "E6" into the vending machine
<Aeoxic> sorry, mistype
bigkevmcd has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
ajaiswal has quit [Read error: No route to host]
<anitchrist> class.new is like the snickers bar that drops down
livathinos has joined #ruby
ajaiswal has joined #ruby
dcarmich has joined #ruby
sandelius has joined #ruby
* anitchrist eye lids start to sag
terlar has joined #ruby
jenrzzz has joined #ruby
tkuchiki has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
tvl has joined #ruby
tkuchiki has joined #ruby
sk87 has joined #ruby
<Aeoxic> sorry, mistype
vinleod has joined #ruby
<Aeoxic> wow, hexchat is really getting on my nerves today.
<Aeoxic> Keeps stealing focus.
blackmesa has quit [Ping timeout: 250 seconds]
kl has joined #ruby
shredding has joined #ruby
Aeoxic has quit [Quit: Leaving]
<anitchrist> I didn't know xchat wasn't free... >.<
jenrzzz has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
andikr has joined #ruby
tvl is now known as tobiasvl
jenrzzz has joined #ruby
WilfNetherton has joined #ruby
jcdesimp has quit [Quit: Leaving...]
sinkensabe has quit [Remote host closed the connection]
ta_ has joined #ruby
LouisRoR has quit []
timonv_ has joined #ruby
vinleod has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
jenrzzz has quit [Ping timeout: 255 seconds]
<anitchrist> i'm crashing guys... er.... girls... peeps. shevy and certainty, thank you for the prodding
apeiros_ has joined #ruby
<anitchrist> encouragement is relaxing
* anitchrist ZzzzZZzzz
<anitchrist> "catch ya on the flip side"
<certainty> have fun
az7ar_away is now known as az7ar
<anitchrist> I'll be back tomorrow probably :\
anitchrist has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.0.1]
agjacome has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
krz has joined #ruby
whomp has joined #ruby
sinkensabe has joined #ruby
intersect has joined #ruby
jenrzzz has joined #ruby
vdamewood has joined #ruby
arup_r has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 244 seconds]
jack_rabbit has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
silkfox has joined #ruby
recurrence has joined #ruby
<recurrence> Can someone run this gist and check if it succeeds? It blows up for me and from searching on the web, people are blaiming a similar issue to specific ruby versions. I’m trying to isolate a version that works. https://gist.github.com/kenglishhi/1698473/download#
vdamewood has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
hephaestus_rg has quit [Ping timeout: 256 seconds]
Flcn____ has joined #ruby
<certainty> recurrence: what kind of error do you see?
ta_ has joined #ruby
<recurrence> Zero or negative argument for log (Math::DomainError)
<certainty> recurrence: yepp confirmed
Stoge88 has joined #ruby
<recurrence> oh, what version of ruby are you running?
echooo has joined #ruby
pkrzywicki has joined #ruby
tobiasvl has quit [Quit: brb]
silkfox has quit [Ping timeout: 240 seconds]
<certainty> recurrence: it blows up on ruby-1.9.3-p194 and ruby-2.0.0-p353
<certainty> and 2.1.1
<certainty> and 2.1.2
<recurrence> oh cool thanks. These guys were saying p194 fixes a similar problem, but apparently not :) https://github.com/wkranec/finance/issues/8
<recurrence> so it may be that the gist simply is broken for some input
echooo2 has quit [Ping timeout: 264 seconds]
<certainty> other type of error on jrbuy
Juanchito has joined #ruby
<certainty> same for ruby-1.9.3-p429 and so on
charliesome has quit [Ping timeout: 244 seconds]
DadoCe has joined #ruby
<recurrence> Thanks certainty. I’m going to go with a different implementation and see if it passes there. Definitely appears to be a problem with the gist from your tests.
CustosL1men has joined #ruby
echooo has quit [Client Quit]
echooo has joined #ruby
kl has quit [Ping timeout: 245 seconds]
Flcn____ has quit [Ping timeout: 256 seconds]
vyorkin has joined #ruby
ghr has joined #ruby
avril14th has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
LouisRoR has joined #ruby
fella7s has quit [Read error: Connection reset by peer]
DadoCe has quit [Ping timeout: 264 seconds]
qulo has joined #ruby
MasterPiece has quit [Ping timeout: 245 seconds]
olivier_bK has joined #ruby
Stalkr_ has joined #ruby
Spami has joined #ruby
fandi has quit [Ping timeout: 245 seconds]
musl has quit [Quit: WeeChat 1.0.1]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
roolo has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
tesuji has joined #ruby
vdamewood has joined #ruby
arup_r has joined #ruby
AlSquire has joined #ruby
rdark has joined #ruby
bronson has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Remote host closed the connection]
shredding has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
elaptics`away is now known as elaptics
mercwithamouth has quit [Ping timeout: 245 seconds]
TheRinger has joined #ruby
vdamewood is now known as vinleod
valeriansaliou has quit [Quit: Be back later ...]
valeriansaliou has joined #ruby
valeriansaliou has quit [Client Quit]
bronson has quit [Ping timeout: 245 seconds]
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
leafybasil has quit [Remote host closed the connection]
MasterPiece has joined #ruby
ghr has joined #ruby
msgodf has joined #ruby
ghr has quit [Max SendQ exceeded]
iwishiwerearobot has joined #ruby
dseitz has quit [Disconnected by services]
ghr has joined #ruby
vinleod is now known as vdamewood
Zai00 has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
rbrs has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
ev has quit [Disconnected by services]
Photism has quit [Quit: Leaving]
Trep has joined #ruby
<recurrence> Thanks certainty : I ended up finding a finance package that worked :)
fella5s has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
<certainty> recurrence: good
Spami has quit [Read error: Connection reset by peer]
Flcn____ has joined #ruby
mocchi has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
recurrence has quit [Quit: recurrence]
vieq has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
charliesome has joined #ruby
tlarevo has quit [Ping timeout: 264 seconds]
WilfNetherton has left #ruby [#ruby]
dseitz_ has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
claptor has quit [Quit: this channel is bakas]
tlarevo has joined #ruby
wolf4ood has joined #ruby
ta_ has joined #ruby
chthon has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
davedev2_ has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
Spami has joined #ruby
jottr_ has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
marr has joined #ruby
parduse is now known as Guest15443
Guest15443 has quit [Ping timeout: 240 seconds]
pardusf has joined #ruby
fandi has joined #ruby
last_staff has quit [Quit: last_staff]
echooo has quit [Quit: echooo]
towski_ has quit [Ping timeout: 245 seconds]
vieq has joined #ruby
banjara has quit [Ping timeout: 244 seconds]
banjara1 has joined #ruby
hephaestus_rg has joined #ruby
whomp has joined #ruby
Stalkr_ has joined #ruby
rodfersou has joined #ruby
Stalkr_ has quit [Client Quit]
hgl has quit [Max SendQ exceeded]
lsmola has joined #ruby
sinkensabe has quit [Remote host closed the connection]
hgl has joined #ruby
DaniG2k has joined #ruby
hgl has quit [Max SendQ exceeded]
<DaniG2k> hey guys
krz has joined #ruby
<certainty> o/
hgl has joined #ruby
whomp has quit [Ping timeout: 265 seconds]
AFKGeek has joined #ruby
silkfox has joined #ruby
nanoyak has joined #ruby
hiyosi has joined #ruby
Trep has quit [Ping timeout: 252 seconds]
leafybasil has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
kl has joined #ruby
ta_ has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
dseitz_ has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara1 has quit [Ping timeout: 256 seconds]
chthon has quit [Quit: Ex-Chat]
baltazore has quit [Read error: Connection reset by peer]
baltazore has joined #ruby
hephaestus_rg has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
blackmesa has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
AFKGeek has quit [Ping timeout: 244 seconds]
behrz has joined #ruby
Nameo0 has quit [Ping timeout: 264 seconds]
chthon has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
gccostabr has joined #ruby
vieq has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
Jackneill has joined #ruby
<avril14th> yo
tkuchiki has quit [Ping timeout: 240 seconds]
greenbagels_ has quit [Read error: Connection reset by peer]
qulo has quit [Ping timeout: 244 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
AFKGeek has joined #ruby
Stalkr_ has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
giuseppesolinas has joined #ruby
livathin_ has joined #ruby
lkba has joined #ruby
baltazore has quit [Remote host closed the connection]
baltazore has joined #ruby
vieq has joined #ruby
sinkensabe has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
livathin_ has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
RealMarc has joined #ruby
konsolebox has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
tkuchiki has joined #ruby
sandelius has joined #ruby
bweston92 has joined #ruby
qulo has joined #ruby
bronson has joined #ruby
goganchic has joined #ruby
Mon_Ouie has joined #ruby
mikecmpbll has joined #ruby
teddyp1c_ has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 256 seconds]
craigp has quit [Ping timeout: 265 seconds]
techsethi_ has joined #ruby
hgl has quit [Max SendQ exceeded]
<techsethi_> Hi Experts, I am having a hard issue debugging this encoding problem. I have "utf-8" data in the table but the table/column is marked latin1. I don't have control to change the column type. I am trying to fetch the data but it is not being rendered as "utf-8"
banister has joined #ruby
rodfersou has joined #ruby
hgl has joined #ruby
MasterPiece has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
<techsethi_> here is my gist https://gist.github.com/techsethi/92a5e81c917b572645d9 please advise.
<techsethi_> thanks in advance !!
unshadow has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<unshadow> Is there a way to create a /dev/listiner device in ruby ? something that will loop on a file and read whatever input it gets
krz has quit [Quit: WeeChat 1.0.1]
whomp has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
renderful has joined #ruby
goganchic has quit []
agjacome has quit [Quit: leaving]
unshadow has quit [Ping timeout: 265 seconds]
whomp has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
silkfox has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
crack_user has joined #ruby
krz has joined #ruby
davedev24_ has joined #ruby
az7ar is now known as az7ar_away
techsethi_ has quit [Ping timeout: 245 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
mengu has joined #ruby
techsethi_ has joined #ruby
MasterPiece has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
DadoCe has joined #ruby
az7ar_away is now known as az7ar
Timgauthier has joined #ruby
az7ar is now known as az7ar_away
jottr has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.0.1]
ta_ has joined #ruby
DadoCe has quit [Ping timeout: 244 seconds]
techsethi_ has quit [Ping timeout: 240 seconds]
Aeoxic has joined #ruby
<Aeoxic> Back again, with another odd question: Is it possible to dynamically unload / reload a class in Ruby?
valeriansaliou has joined #ruby
<Aeoxic> I can't find any concrete method on Google.
<Aeoxic> I can't find any concrete method on Google.
<Aeoxic> oop, sorry, hexchat is bad with focus
<Mon_Ouie> You can't really unload a class in Ruby (you'd have to manually remove the constants and any reference to that class or its instances)
<Aeoxic> So dynamically reloading part of an app isn't really possible?
ta_ has quit [Ping timeout: 265 seconds]
<Mon_Ouie> You can reload one just by re-evaluating the code that defined it. You'd have to remove methods manually but you can add/redefine methods as you want.
<tobiasvl> Aeoxic: what's your usecase?
krz has joined #ruby
<Aeoxic> tobiasvl: naive plugin system
<Mon_Ouie> (e.g. using eval or load)
troulouliou_dev has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeoxic> tobiasvl: Naive as in very simple. Just trying to be able to reload 'em.
tkuchiki_ has joined #ruby
<Aeoxic> Possible in Python pretty easily, trying to replicate in Ruby.
<tobiasvl> but reload what?
valeriansaliou has quit [Ping timeout: 245 seconds]
<tobiasvl> a require?
<tobiasvl> just a class?
<Aeoxic> It's a class within a module in a file.
techsethi has joined #ruby
anarang has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
joonty has joined #ruby
<Aeoxic> Apparently the "in a module" part causes "Object.send(:remove_const, @class_name)" to not work, as symbols cannot into anything with a colon.
tkuchiki has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.0.1]
<tobiasvl> Aeoxic: "symbols cannot into anything with a colon"? the things that start with a colon are symbols
Inoperable has joined #ruby
<Aeoxic> tobiasvl: Yes, but
<Aeoxic> they cannot contain colons in their name.
tkuchiki_ has quit [Ping timeout: 245 seconds]
<Aeoxic> So if you're defining the class by a string, and the class is within a module, it won't work.
<certainty> Aeoxic: yeah you have to remove the constant from the surrounding "scope" so if thing is SomeModule::Thing you have to remove it from SomeModule. SomeModule.send(:remove_const) ...
<Mon_Ouie> Why do you need to remove the existing class? Normally just reloading the existing code is fine
<Aeoxic> Mon_Ouie: Reloading the existing code doesn't appear to work for me.
<Aeoxic> The fn still performs the same as prior to reload.
<Mon_Ouie> Well, why not?
<Aeoxic> certainty: sec @ that
<tobiasvl> Aeoxic: what certainty said is the solution (SomeModule.send(:remove_const)) but note that symbols can contain colons too: :"foo:bar
<Aeoxic> tobiasvl: It refuses to allow that.
AFKGeek has quit [Quit: Fades into the shadows]
<Aeoxic> Sorry, not colons, but ::
<tobiasvl> those are colons
fabrice31 has quit [Ping timeout: 245 seconds]
<Mon_Ouie> >> Object.const_set(:"foo:bar", "nope")
<certainty> but yeah reloading should just work
<eval-in__> Mon_Ouie => wrong constant name foo:bar (NameError) ... (https://eval.in/239534)
<tobiasvl> hmm
<Aeoxic> certainty: Yeah it doesn't.
<Aeoxic> I've loaded the app, tested, modified code, run reload, tested
<Aeoxic> same outcome
terlar has joined #ruby
<Mon_Ouie> How do you reload the code?
<Aeoxic> Initially just brute-force.
<certainty> Aeoxic: did you use require?
<Aeoxic> Loop through all files in ./plugins/*.rb; load file
<Aeoxic> certainty: no
<Aeoxic> 'load'
<Aeoxic> i use require on the plugin handler which doesn't get unloaded
p0wn3d_mhs has quit [Remote host closed the connection]
<Aeoxic> but it does drop its references to instantiated classes before it reloads the code
<certainty> hmm i think we need some code
<Aeoxic> ok
<Aeoxic> one sec, let me uh
<Aeoxic> idk how i'm gonna do this
p0wn3d_mhs has joined #ruby
<certainty> try to find a minimal example that reproduces the problem
<Xnfu> Put it on a gist
ta_ has joined #ruby
dawkirst has joined #ruby
<certainty> Aeoxic: put in comments like "alter this line to that, then reload" or something
<Aeoxic> oh
<Xnfu> Also, :: is called a scope resolution operator
<Aeoxic> this is
<Aeoxic> part of a larger irc network daemon
livathinos has joined #ruby
<Aeoxic> i'm pasting some code around to show you what the problem is but it's not going to be a walk in the park for you to reproduce the problem without my setup
krz has joined #ruby
livathin_ has joined #ruby
krz has quit [Client Quit]
snath has quit [Ping timeout: 250 seconds]
shredding_ has joined #ruby
sigurding has quit [Quit: sigurding]
krz has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
<zenspider> Aeoxic: module X; end; module X::Y; def z; ...; end; end; X.send(:remove_const, :Y); module X::Y; def z; ...second impl...; end; end
<zenspider> should work fine (untested)
livathinos has quit [Ping timeout: 240 seconds]
shredding has quit [Ping timeout: 265 seconds]
shredding_ is now known as shredding
krz has quit [Client Quit]
fabrice31 has joined #ruby
<Aeoxic> What i have right now is more or less
<Aeoxic> plugin manager drops plugin, but when it's reloaded it doesn't re-instantiate
<Aeoxic> lmao
krz has joined #ruby
<Aeoxic> also thanks zenspider
commmmodo has joined #ruby
<zenspider> reinstantiating shouldn't be necessary if you don't drop the class first. Simply reopen it and redefine the methods as necessary.
krz has quit [Client Quit]
<zenspider> that can leave junk behind, but so can leaving instances behind pointing to now-anonymous classes
sinkensabe has quit [Remote host closed the connection]
<zenspider> that said, if this is just a plugin system, then reinstantiating should be fine as they shouldn't have much of any inward or outward references that need fixing
livathin_ has quit [Ping timeout: 265 seconds]
n3phos has joined #ruby
<Aeoxic> I just kinda want the easiest way to do this,.
<Aeoxic> Doesn't need to be 110% robust.
<Aeoxic> I'm happy to handle edge cases.
nvbknh has joined #ruby
towski_ has joined #ruby
<zenspider> then define a reset class method in the upper namespace that nukes all the plugin consts, reloads the files, and reinstantiates everything.
<zenspider> if everything goes through there, it should be clean and easy
devoldmx has quit [Remote host closed the connection]
commmmodo has quit [Ping timeout: 244 seconds]
sk87 has joined #ruby
Aeoxic_ has joined #ruby
ernetas_ has joined #ruby
TheRinger_ has joined #ruby
dc__ has joined #ruby
nvbknh has quit [*.net *.split]
anarang has quit [*.net *.split]
Aeoxic has quit [*.net *.split]
mengu has quit [*.net *.split]
chthon has quit [*.net *.split]
Zai00 has quit [*.net *.split]
msgodf has quit [*.net *.split]
TheRinger has quit [*.net *.split]
pkrzywicki has quit [*.net *.split]
lxsameer has quit [*.net *.split]
Mia has quit [*.net *.split]
tagrudev has quit [*.net *.split]
bluOxigen has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
braincrash has quit [*.net *.split]
hamakn has quit [*.net *.split]
dc_ has quit [*.net *.split]
chipotle has quit [*.net *.split]
bashusr has quit [*.net *.split]
Luyt__ has quit [*.net *.split]
mmealling has quit [*.net *.split]
gregf has quit [*.net *.split]
retornam has quit [*.net *.split]
aef has quit [*.net *.split]
tchebb has quit [*.net *.split]
mbeasley has quit [*.net *.split]
ryotarai has quit [*.net *.split]
marens has quit [*.net *.split]
ukd1 has quit [*.net *.split]
clamstar has quit [*.net *.split]
Gate_ has quit [*.net *.split]
orionstein has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
bhaak has quit [*.net *.split]
chuck has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
bascht has quit [*.net *.split]
ernetas has quit [*.net *.split]
dhruvasagar_ has joined #ruby
Evan_ has quit [*.net *.split]
Axy has joined #ruby
Axy has joined #ruby
chuck has joined #ruby
chuck has quit [Changing host]
chuck has joined #ruby
pkrzywicki has joined #ruby
bhaak_ has joined #ruby
Luyt__ has joined #ruby
Gate has joined #ruby
Gate has joined #ruby
hamakn has joined #ruby
ukd1 has joined #ruby
anarang has joined #ruby
orionstein_ has joined #ruby
tagrudev has joined #ruby
lxsameer has joined #ruby
Xeago has joined #ruby
msgodf has joined #ruby
tvw has joined #ruby
chthon has joined #ruby
orionstein_ is now known as orionstein
marens has joined #ruby
bascht has joined #ruby
Zai00 has joined #ruby
mbeasley has joined #ruby
gregf has joined #ruby
Rylee has quit [Excess Flood]
AFKGeek has joined #ruby
aef has joined #ruby
mengu__ has joined #ruby
chipotle_ has joined #ruby
bluOxigen has joined #ruby
krz has joined #ruby
SirFunk has quit [Ping timeout: 250 seconds]
gf3 has quit [Ping timeout: 250 seconds]
timmow has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
towski_ has quit [Ping timeout: 264 seconds]
Rylee has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
SirFunk has joined #ruby
gf3 has joined #ruby
timmow has joined #ruby
krz is now known as Guest23603
mostlybadfly has joined #ruby
braincrash has joined #ruby
Guest23603 has quit [Client Quit]
ryotarai has joined #ruby
bashusr has joined #ruby
tchebb has joined #ruby
riscky has quit [Quit: riscky]
Evan_ has joined #ruby
SirCmpwn has joined #ruby
yasu___ is now known as yasu
n1lo has joined #ruby
ihlcqe has joined #ruby
ta_ has joined #ruby
baltazore has quit [Remote host closed the connection]
sevenseacat has joined #ruby
krzkrz has joined #ruby
retornam has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
krzkrz has quit [Client Quit]
<Aeoxic_> zenspider certainty: So I've confirmed the class itself is unloaded, but when it comes to reloading it, it seems to be ignoring Class.new
livathinos has joined #ruby
krzkrz has joined #ruby
<aob_> I want to make a big long array of string using %x[ stuff morethings etc ] -- but the list is big and i want to run it over multiple lines
<aob_> what's the right way to do this?
clamstar has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
<aob_> ie i don't want a really really long line
<Aeoxic_> aob_: you can just break it up
<aob_> oh ok
* aob_ tries
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Aeoxic_> zenspider, certainty: Code as requested. Sorry about basically everything in this file - https://gist.github.com/Aeoxic/df347aee6a0130142609
<zenspider> aob_: just try first
<zenspider> ruby usually makes you happy
<Aeoxic_> Unless you're trying weird stuff like I am.
<Aeoxic_> Then it makes you patently upset.
Aeoxic_ is now known as Aeoxic
<zenspider> Aeoxic: Class.new or <Plugin>.new ?
pandaant has joined #ruby
<Aeoxic> zenspider: Line 45.
<Aeoxic> 46 *
<Aeoxic> Also related, line 57.
Takle_ has joined #ruby
<Aeoxic> At line 46, `plugin` would be Helios::Bot for that particular plugin.
<zenspider> Aeoxic: remove 32, change 33 to use accessor above it
<Aeoxic> Come again?
<zenspider> self.inherited: plugins.push child
<zenspider> that's all you need
<Aeoxic> gotcha
<zenspider> so, you have a civar called @plugins
<Aeoxic> yes
<zenspider> that you never clear
<Aeoxic> @plugins in that class is essentially names.
<zenspider> I think
<Aeoxic> oh
<Aeoxic> @plugins is names
<Aeoxic> server.plugins is the actual instantiated classes.
<Aeoxic> That said, @plugins will refer to the classes themselves
<zenspider> ok
<Aeoxic> line 41 isn't clear
fandi has quit [Read error: Connection reset by peer]
<zenspider> @plugins is classes, not names, and you never clear it
<zenspider> so, you're keeping the old classes in it, I think
whomp has joined #ruby
krzkrz has quit [Quit: WeeChat 1.0.1]
doodlehaus has quit [Remote host closed the connection]
sandelius has joined #ruby
<zenspider> inherited(child); child is the class itself. if uninitialize_plugins cleared the array, I think your old classes will finally get dropped
<Aeoxic> I'm not really sure why it's absent, but under line 41 should be @plugins = []
<Aeoxic> it is there in my code :x
banjara1 has joined #ruby
<Aeoxic> https://gist.github.com/Aeoxic/df347aee6a0130142609 -- Updated to reflect that just for clarity.
<zenspider> ALL of your @plugins should drop the '@' and use your accessor
<zenspider> welp... running out of ideas... I'd put a 'p' statement on line 10 and 59 to make sure that your dir glob is actually reloading the files and the initialize is actually not running.
towski_ has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
<zenspider> that dir glob is potentially dangerous because it is relative to where the program is run, not where the code is
<Aeoxic> ಠ_ಠ
<Aeoxic> will fix asap
<zenspider> Dir.chdir File.dirname __FILE__ do ...reload... end
rodfersou has joined #ruby
<zenspider> or just build the paths absolute
<Aeoxic> Just using the accessor ends up with two Helios::Bot in the @plugins
whomp has quit [Ping timeout: 250 seconds]
<certainty> __dir__ should work too, i think. But that's rather recent
zarubin has joined #ruby
banjara has quit [Ping timeout: 250 seconds]
livathin_ has joined #ruby
<zenspider> ugh. they finally added that? :(
<certainty> yeah
silkfox has joined #ruby
<zenspider> I wish they added my suggestions __dir_dir__ __dir_dir_dir__ etc
<Aeoxic> __________________________
<zenspider> and __dur__
<Aeoxic> __python__
<Aeoxic> :(
Takle_ has quit [Remote host closed the connection]
towski_ has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
<Xnfu> __FUCK__
gfawcettpq has quit [Remote host closed the connection]
<zenspider> hah. if only
<zenspider> I've written that so many times in my ruby code
MasterPiece has quit [Quit: Leaving]
sigurding has joined #ruby
Spami has joined #ruby
shazaum has joined #ruby
gfawcettpq has joined #ruby
silkfox has quit [Ping timeout: 256 seconds]
<Xnfu> lel
<Aeoxic> zenspider: ... no p or anything anywhere in bot.rb works
aswen has quit [Ping timeout: 245 seconds]
<Aeoxic> even on initial load
<Aeoxic> it just... doesn't show
<Xnfu> loop { fork { __FILE__ } }
<Xnfu> <3
tlarevo has quit [Remote host closed the connection]
catphish has joined #ruby
<zenspider> Aeoxic: something disconnecting stdout ?
<Aeoxic> zenspider: Other stuff is comin' through.
<zenspider> please tell me you have ACTUAL TESTS and you're not just running this daemon over and over?
<Xnfu> I wouldn't put it past the guy :D
<Aeoxic> I'm kind of
<Aeoxic> not done writing this
<Aeoxic> at all
<Aeoxic> i'd put it at less than 5% done
<zenspider> and? best time to start testing...
<Aeoxic> so no, no tests. I don't even know what functionality I'm adding yet.
ta_ has joined #ruby
<zenspider> that's the point of TDD
<Aeoxic> tbf i could add various tests for this
<zenspider> you figure out while writing the tests
<Aeoxic> i just
<Aeoxic> am very lazy about this particular piece of code
<Aeoxic> ok so it's simply not reloading the damn class
<Aeoxic> i don't think i really have the patience for this
unshadow has joined #ruby
<Xnfu> Don't ever become a software engineer
<Aeoxic> I actually am, just not in Ruby.
<Aeoxic> I'm also generally paid for my work.
* zenspider goes to bed
<Aeoxic> But it's 10pm on a Monday night, not really into the whole 'bashing my head against the wall' thing.
arya_ching has joined #ruby
ajaiswal has quit [Quit: Leaving]
iwishiwerearobot has quit [Quit: Be back later ...]
Darryl__ has joined #ruby
<Xnfu> I'm going to assume "Rust" is your strong language then
RareBlackMagic has joined #ruby
<Aeoxic> i don't engineer in either of the two i advertise as my hobbyist languages.
agjacome has joined #ruby
Takle has joined #ruby
RareBlackMagic has quit [Ping timeout: 250 seconds]
valeriansaliou has joined #ruby
baltazore has joined #ruby
anarang has quit [Ping timeout: 265 seconds]
tlarevo has joined #ruby
Inoperable has quit [Quit: Rectified]
unshadow has quit [Quit: leaving]
Takle has quit [Remote host closed the connection]
aswen has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
DadoCe has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
RareBlackMagic has joined #ruby
RareBlackMagic has left #ruby [#ruby]
bronson has joined #ruby
livathin_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
anarang has joined #ruby
jottr has joined #ruby
oo_ has joined #ruby
anarang has quit [Client Quit]
pu22l3r has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
tlarevo_ has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
Macaveli has joined #ruby
amundj has joined #ruby
n1lo has quit [Quit: Leaving]
tlarevo_ has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 244 seconds]
tlarevo has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
anarang has joined #ruby
dawkirst has quit [Remote host closed the connection]
Grumelo has joined #ruby
sevvie has joined #ruby
jmacdonald has joined #ruby
tlarevo has joined #ruby
n1lo has joined #ruby
dawkirst has joined #ruby
Zamyatin has joined #ruby
n1lo_ has joined #ruby
voodoofish430 has quit [Ping timeout: 250 seconds]
voodoofish430 has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
Aeoxic has quit [Quit: Leaving]
sevvie has quit [Read error: Connection reset by peer]
banjara1 has quit [Quit: Leaving.]
Pupeno has joined #ruby
sevvie has joined #ruby
shredding has quit [Quit: shredding]
n1lo_ has quit [Quit: Leaving]
kasperti_ has joined #ruby
tesuji has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
tesuji has joined #ruby
Inoperable has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
intersect has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
qulo has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
rbrs has quit [Quit: rbrs]
baltazore has quit [Remote host closed the connection]
PierreRambaud has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
baltazore has joined #ruby
jmacdonald has left #ruby ["Textual IRC Client: www.textualapp.com"]
intersect has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
zarubin has quit [Quit: Leaving.]
crack_user has quit [Quit: Leaving.]
valeriansaliou has quit [Quit: Be back later ...]
banjara has quit [Quit: Leaving.]
psy has quit [Remote host closed the connection]
crack_user has joined #ruby
techsethi has quit [Quit: techsethi]
SirCmpwn has quit [Ping timeout: 250 seconds]
arya_ching has quit []
brb3 has joined #ruby
SirCmpwn has joined #ruby
vvivv has joined #ruby
charliesome has quit [Quit: zzz]
whomp has joined #ruby
metadave has joined #ruby
DaniG2k has quit [Quit: leaving]
qulo has joined #ruby
banjara has joined #ruby
max96at|off is now known as max96at
baltazore has quit [Read error: Connection reset by peer]
crack_user has quit [Read error: Connection reset by peer]
baltazore has joined #ruby
mikecmpbll has joined #ruby
whomp has quit [Ping timeout: 244 seconds]
Stoge88 has joined #ruby
WillAmes has quit [Remote host closed the connection]
anaeem1_ has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
WillAmes has joined #ruby
Stoge88 has quit [Client Quit]
aclearman037 has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
silkfox has quit [Ping timeout: 245 seconds]
banister has quit [Read error: No route to host]
Takle has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
keelerm has quit [Quit: WeeChat 1.0.1]
jefus__ is now known as jefus
qulo has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 250 seconds]
keelerm has joined #ruby
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
Inoperable has quit [Quit: Rectified]
sevenseacat has quit [Remote host closed the connection]
codefo has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
kp666 has quit [Remote host closed the connection]
Morkel has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
mhutter has joined #ruby
intersect has quit [Ping timeout: 265 seconds]
MuffinPimp has joined #ruby
ta_ has joined #ruby
VictorBjelkholm has joined #ruby
kl has quit [Ping timeout: 240 seconds]
Freelusion has joined #ruby
zarubin has joined #ruby
qulo has joined #ruby
n1lo has quit [Quit: Leaving]
techsethi_ has joined #ruby
intersect has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
djdarkbeat has quit [Quit: djdarkbeat]
Freelusion has quit [Client Quit]
tlarevo has quit [Remote host closed the connection]
kasperti_ has quit []
craigp has joined #ruby
dawkirst has quit [Remote host closed the connection]
apurcell has joined #ruby
Cyberheb has quit [Quit: Textual IRC Client: www.textualapp.com]
shredding has joined #ruby
sinkensabe has joined #ruby
apurcell has quit [Ping timeout: 244 seconds]
bweston92 has quit [Ping timeout: 264 seconds]
rocknrollmarc has joined #ruby
<rocknrollmarc> hey guys Im writting some tests using ffaker and factory_girl and I was wondering how to do something like time_end { Time.now + 2 }
<rocknrollmarc> ?
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
banjara has quit [Ping timeout: 250 seconds]
<rocknrollmarc> basicaly I want to add a few hours to time_start
<rocknrollmarc> sorry I got a factory with time_start and time_end
bweston92 has joined #ruby
sinkensa_ has joined #ruby
<mhutter> If 2 hours from NOW works you can do Time.now + 2*60*60
<rocknrollmarc> mhutter thanks man
<rocknrollmarc> thats cool
<mhutter> no prob
fryguy9 has joined #ruby
<rocknrollmarc> oh sorry mhutter , do I leave of the {}
dangerousdave has joined #ruby
lw has joined #ruby
<Xnfu> Time.now + (2*60*60)
<rocknrollmarc> :)
<rocknrollmarc> grazie
sinkensabe has quit [Ping timeout: 264 seconds]
blackoperat has joined #ruby
anaeem1 has joined #ruby
byprdct has joined #ruby
fryguy9 has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
techsethi_ has quit [Quit: techsethi_]
<mhutter> no you still need the { }'s
zarubin has quit [Quit: Leaving.]
ta_ has joined #ruby
dawkirst has joined #ruby
evanjs has joined #ruby
whomp has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sanguisdex has joined #ruby
kapil__ has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
sankaber has joined #ruby
bhaak_ is now known as bhaak
jherbst has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
Stalkr_ has joined #ruby
whomp has quit [Ping timeout: 245 seconds]
droidburgundy has joined #ruby
adriancb has joined #ruby
psy has joined #ruby
silkfox has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
youssefchaker has joined #ruby
Spami has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
arup_r has quit []
banjara has joined #ruby
clarkk has joined #ruby
banjara has quit [Client Quit]
commmmodo has joined #ruby
n1lo has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
baltazore has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
<clarkk> when doing a "gem list" under the default gemset, how can you determine which gems in the list are installed in the global gemset?
kotk_ has joined #ruby
kotk has quit [Read error: Connection reset by peer]
n1lo_ has joined #ruby
TheRinger_ has quit [Ping timeout: 255 seconds]
n1lo_ has left #ruby [#ruby]
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
paulfm has joined #ruby
djdarkbeat has joined #ruby
Trep has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t0rc has joined #ruby
sankaber has joined #ruby
commmmodo has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
baltazore has joined #ruby
crack_user has joined #ruby
bronson has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
<avril14th> clarkk: run gem list in both environments and intersect the two results :)
<konsolebox> Array#permutation -> Does anyone know what algorithm this method base itself from?
<avril14th> Hello, in minitest, how can I remove this warning: https://gist.github.com/muichkine/d0938dba940f8c103057 ?
<clarkk> avril14th: well, that's ugly :p
<Xeago> konsolebox: not sure what you mean?
jerius has joined #ruby
kiyote23 has joined #ruby
jeanlinux has joined #ruby
Xeago_ has joined #ruby
commmmodo has joined #ruby
az7ar_away is now known as az7ar
Trep has quit [Ping timeout: 252 seconds]
<Xeago_> konsolebox: permutations are a defined derivative of a set
<konsolebox> Xeago: After much searching I ended with two known algorithms that are used for generating possible permutations: http://en.wikipedia.org/wiki/Heap%27s_algorithm and en.wikipedia.org/wiki/Steinhaus–Johnson–Trotter_algorithm. The result you get from [1, 2, 3, 4].permutation seems different from those
<Xeago_> what do you get from those?
<konsolebox> Actually I find it that Array#permutation produces the reverse output of Hea's algorithm.
sambao21 has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
larissa has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
kiyote23 has quit [Ping timeout: 255 seconds]
<konsolebox> Xeago_: what do you mean?
allcentury has joined #ruby
<Xeago_> there is set set called a permutation of a set
<Xeago_> ie the permutation of [1] is [1]
<Xeago_> whichever algorithm to use should arrive at the same result
<Xeago_> so I'm not why you would want to know?
dblessing has joined #ruby
<Xeago_> You should probably look at the source for it
<konsolebox> Xeago_: The order would differ. I want to know what known algorithm it was made from.
Stalkr^ has joined #ruby
<Xeago_> the order is irrelevant
kl__ has joined #ruby
<Xeago_> permutations are a set
<Xeago_> a set is unordered by definition
Stalkr_ has quit [Read error: Connection reset by peer]
it0a has joined #ruby
Logico has joined #ruby
Logico has left #ruby [#ruby]
lw has quit [Quit: s]
<Mon_Ouie> And the documentation explicitly states that no guarantees are made regarding the order of the result, so you should not rely on it in your code (it may very well change between different versions of Ruby)
Crazy_Atheist has quit [Read error: Connection reset by peer]
<Xeago_> It may very well be different on each invocation
<konsolebox> Xeago_: I already saw the code. There's no algorithm name in it.
Zamyatin has joined #ruby
<Xeago_> if you want to order the result, sort it explicitly according to some identity function
<konsolebox> Mon_Ouie: Yes, but I like the order of the result you get from Array#permutation. I may actually implement my own function but I have to know first the standard algorithm's name.
t0rc has quit [Ping timeout: 264 seconds]
DonOtreply has quit [Quit: DonOtreply]
<Xeago_> konsolebox: it might very well be the first link you said, where it is put on a stack and then returned
<konsolebox> Permutation (class/library) actually produces the same output as Array#permutation.
<mhutter> Xeago_: have a look at the source: https://github.com/ruby/ruby/blob/trunk/array.c#L4775-L4807
Guest9358 has quit [Changing host]
Guest9358 has joined #ruby
<mhutter> eeh i mean konsolebox
<Xeago_> /trunk/ :O
Guest9358 is now known as daynaskully
silkfox has joined #ruby
mercwithamouth has joined #ruby
rocknrollmarc has quit [Ping timeout: 256 seconds]
DonOtreply has joined #ruby
kstuart has quit [Ping timeout: 244 seconds]
mrmargolis has joined #ruby
n008f4g_ has joined #ruby
evanjs has quit [Remote host closed the connection]
evanjs has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
commmmodo has quit [Quit: commmmodo]
cassianoleal has joined #ruby
sankaber has joined #ruby
evanjs has quit [Read error: Connection reset by peer]
athan has joined #ruby
evanjs has joined #ruby
jheg has joined #ruby
fryguy9 has joined #ruby
Takle has joined #ruby
_beechnut has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Crazy_Atheist has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
msmith_ has joined #ruby
keen__________23 has joined #ruby
valeriansaliou has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
keen__________22 has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
Morkel has quit [Client Quit]
rocknrollmarc has joined #ruby
sambao21 has joined #ruby
t0rc has joined #ruby
t0rc has left #ruby [#ruby]
lampd1 has quit []
mercwithamouth has quit [Ping timeout: 264 seconds]
zarubin has joined #ruby
atom3 has quit [Quit: leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
crack_user has quit [Quit: Leaving.]
ziyadb has joined #ruby
pu22l3r has quit [Ping timeout: 256 seconds]
valeriansaliou has quit [Ping timeout: 244 seconds]
antgel has joined #ruby
Hobogrammer_ has joined #ruby
Sid05 has joined #ruby
crack_user has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
<rocknrollmarc> rspec gives me expected false to respond to `false?`
<rocknrollmarc> on a validation of presence for :name ?
codecop has quit [Remote host closed the connection]
<rocknrollmarc> Im doing a user.name = "" user.save.should be_false
<Senjai> rocknrollmarc: Can you paste the expectation
Morrolan has quit [Ping timeout: 250 seconds]
<Senjai> rocknrollmarc: You want user.save.should be false
<Senjai> false.false? isn't a method
ta_ has joined #ruby
<Senjai> be_false calls false? on the return value
Morrolan has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
<Senjai> be_anything calls anything?
<Senjai> and so on
Hobogrammer has quit [Ping timeout: 264 seconds]
<rocknrollmarc> yap
<rocknrollmarc> 1) User should have a name should have no blank name
<rocknrollmarc> Failure/Error: user.save.should be_false
<rocknrollmarc> expected false to respond to `false?`
<rocknrollmarc> # ./spec/app/models/user_spec.rb:24:in `block (3 levels) in <top (required)>'
<rocknrollmarc> thanks works :)
<Senjai> Dont paste multi line stuff to irc plox
<Senjai> rocknrollmarc: YOu should also be using expect syntax, not should
<Senjai> rocknrollmarc: expect(user.save).to be false
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
Zamyatin has joined #ruby
Inoperable has joined #ruby
<rocknrollmarc> I know Senjai Im doing a padrino tutorial with the old should syntax normaly I use expect
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
<Senjai> rocknrollmarc: Just use expect, they're interchangeable
<Senjai> rocknrollmarc: should is REALLY bad, thats why its not being used
<rocknrollmarc> ok
sevvie has joined #ruby
<rocknrollmarc> ok why is that? at work most guys are still using shoulda although i dont
dawkirst has quit [Remote host closed the connection]
doodlehaus has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
dawkirst has joined #ruby
jobewan has joined #ruby
<Senjai> rocknrollmarc: rspec adds the should method to every object ever
<Senjai> rocknrollmarc: thats why "sdfs".should works
<Senjai> rocknrollmarc: What if you wanted to define a method called should in your class?
<Senjai> Or any other method for that matter
<Senjai> Adding a method to everything in the universe is a bad idea
asdasdadsasdda has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
<Senjai> expect() wraps this so rspec doesnt have to modify core ruby classes
pu22l3r has joined #ruby
asdasdadsasdda has quit [Client Quit]
ta_ has quit [Ping timeout: 265 seconds]
Channel6 has joined #ruby
whomp has joined #ruby
<Senjai> people use should still either because they're lazy, or they cannot upgrade rspec to a version that supports expect
<Senjai> or cant
<rocknrollmarc> aha ok thanks for that
<rocknrollmarc> yes its a pitty for newbies as they get confused well I didnt because when I started ruby I started straight with expect
oleo has joined #ruby
<rocknrollmarc> anyone tryed padrino here?
az7ar is now known as az7ar_away
<shevy> the guys in #sinatra tried!
s00pcan_ has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
athan has quit [Read error: Connection reset by peer]
whomp has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
fandi has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
SilkFox_ has joined #ruby
arup_r has joined #ruby
lmickh has joined #ruby
studiotate has joined #ruby
anarang has quit [Quit: Leaving]
phantomtiger has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
<rocknrollmarc> LoL
phux has joined #ruby
Kricir has joined #ruby
<waxjar> i dont get rspec. what's so much better about expect(some.code).to be_false, why not just plain old assert_equal some.code, false?
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
<Xeago_> I believe you can give expect a block and it will execute it
<Xeago_> you can't give assert_equal a block
<Xeago_> nonetheless I don't see the value of it :|
<shevy> lol
Zamyatin has joined #ruby
<shevy> did Xeago_ just explain to waxjar ... and then also support waxjar's position? :D
rbennacer has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
enebo has joined #ruby
<shevy> "You can pass a block - but it is totally useless."
skrite has quit [Remote host closed the connection]
<Xeago_> purposedly english is easier than words following RPN
tkuchiki has quit [Ping timeout: 245 seconds]
phantomtiger has left #ruby [#ruby]
mengu__ has quit [Remote host closed the connection]
<phux> I am executing a php script via backticks in a ruby script (watchr). The execution time is 9 secons via backticks execution. with plain php it takes ~ 2 seconds. Might starting the external cmd in a subshell be the problem? Is there a faster way to start an external bash command and catch its output?
whoisjake has joined #ruby
rbrs has joined #ruby
treehug88 has joined #ruby
az7ar_away is now known as az7ar
evanjs has quit [Remote host closed the connection]
Meeh has quit [Ping timeout: 245 seconds]
<kaspergrubbe> phux: I think backticks use forking, which have some overhead, you might be able to use https://github.com/rtomayko/posix-spawn for faster results
snath has joined #ruby
<phux> thanks for input, kaspergrubbe
mengu has joined #ruby
freerobby has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
virtualize has quit [Ping timeout: 250 seconds]
virtualize has joined #ruby
dfinninger has joined #ruby
evanjs_ has joined #ruby
<kaspergrubbe> phux: its also well described in this book by jstorimer, he explains unix with Ruby code: http://www.jstorimer.com/products/working-with-unix-processes worth a read :-)
BigRonnieRon has joined #ruby
Stalkr_ has joined #ruby
Inoperable has quit [Quit: Rectified]
giuseppesolinas has joined #ruby
<phux> kaspergrubbe: thanks for further input, but I am not a ruby user, I am just abusing the watchr gem for my phpunit test execution :)
<kaspergrubbe> phux: Sure :-) I hope posix-spawn can help you
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
bal has quit [Ping timeout: 250 seconds]
Meeh has joined #ruby
Nameo0 has joined #ruby
<shevy> does it spawn zombies?
Aswebb_ has joined #ruby
<jhass> yes!
jeanlinux has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
shock_one has joined #ruby
mhutter has quit [Quit: Page closed]
<shock_one> > "http://domain.com/ho211540/grand"[/(?:\/ho)\d+(?:\/)/]
nux443 has quit [Quit: leaving]
<shock_one> How would I execute code here?
<shevy> come on man
<shevy> you were so close
<shock_one> >> "http://domain.com/ho211540/grand"[/(?:\/ho)\d+(?:\/)/]
<eval-in__> shock_one => "/ho211540/" (https://eval.in/239594)
<shevy> now you did it!
kasperti_ has joined #ruby
noop has quit [Ping timeout: 256 seconds]
<shock_one> Thank you.So, I'm trying to get only digits. I use a non-capturing group, but it doesn't seem to have any effect.
iamjarvo has joined #ruby
sambao21 has joined #ruby
<shevy> huh
<shevy> well you use two capture groups ()
<shevy> but you dont seem to capture the digits?
apurcell has joined #ruby
Ankhers has joined #ruby
<jhass> shock_one: either use lookaround assertions or a capture group and , 1]
Darryl__ has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
tagrudev has quit [Remote host closed the connection]
<shock_one> jhass: thank you, it worked.
mostlybadfly has joined #ruby
hrs has joined #ruby
<avril14th> Hello, in minitest, how can I remove this warning: https://gist.github.com/muichkine/d0938dba940f8c103057 ?
byprdct has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
amundj has quit [Ping timeout: 244 seconds]
<pontiki> don't assign a class variable in the root context
<jhass> >> "http://domain.com/ho211540/grand"[%r{(?<=ho)\d+(?=/)}] # shock_one just for completeness
<eval-in__> jhass => "211540" (https://eval.in/239596)
apurcell has quit [Ping timeout: 264 seconds]
<avril14th> pontiki: what context then? :)
<shock_one> jhass: that's exactly what I have, even curly brackets. :)
<pontiki> i don't know, what are you actually planning to do with it?
kstuart has joined #ruby
bal has joined #ruby
<pontiki> what class do you think is at the root level?
<jhass> shock_one: ah, guessed you went with the , 1] approach, since that's the easier one :P
sambao21 has quit [Quit: Computer has gone to sleep.]
rotor` has quit [Ping timeout: 244 seconds]
<avril14th> pontiki: the point is simply to have this run once for all the tests. Don't know what's at the root, some minitest context..
Channel6 has quit [Quit: Leaving]
rotor` has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
<bradland> shock_one: Rubular is really handy for regex development: http://www.rubular.com
valeriansaliou has joined #ruby
<shock_one> bradland: ...which mentions neither of the approaches proposed by jhass.
Zamyatin has joined #ruby
<bradland> not for suggestions, but for debugging
<bradland> as in “does my regex match what I think it does"
<shock_one> Well, my IDE can do the same.
Nameo0 has quit [Ping timeout: 264 seconds]
<bradland> ah, nice
<avril14th> nice indeed
<avril14th> I'd be dead by now without rubular
<bradland> only suggested because your first regex probably doesn’t match what you think it does
<pontiki> avril14th: try making it a global above the describe
Zamyatin has quit [Max SendQ exceeded]
<avril14th> shock_one: how do you get that panel in Rubymine?
<pontiki> avril14th: honestly, i don't know at all, maybe ask one of the seattlerb'ers -- zenspider perhaps
<shock_one> Alt+Enter on a regex.
d10n-work has joined #ruby
Zamyatin has joined #ruby
<avril14th> shock_one: hmm, not sure I have the same bindings as you? any menu name?
rocknrollmarc has quit [Ping timeout: 264 seconds]
<shock_one> Click the light bubble.
Zamyatin has quit [Max SendQ exceeded]
shellfu has joined #ruby
<avril14th> then I get nothing about regex
crack_user has quit [Quit: Leaving.]
snath has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
Zamyatin has joined #ruby
<avril14th> shock_one: not sure that's a rubymine plugin you're using?
jenrzzz has joined #ruby
speaking2ode is now known as speakingcode-wor
<shock_one> avril14th: check if you have this intention enabled. https://www.dropbox.com/s/n7k76d6uymci16v/Screenshot%202015-01-05%2017.40.51.png?dl=0
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<avril14th> shock_one: looks like I have 0o
Zamyatin has quit [Client Quit]
athan has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby
spider-mario has joined #ruby
Takle has joined #ruby
Hobogrammer_ has quit [Ping timeout: 244 seconds]
dfinninger has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
omosoj has joined #ruby
aclearman037 has joined #ruby
dawkirst has quit [Quit: Leaving...]
dfinninger has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
jeanlinux has joined #ruby
sambao21 has joined #ruby
thoughnut has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago_ has quit [Remote host closed the connection]
klmlfl has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
az7ar is now known as az7ar_away
valeriansaliou has quit [Quit: Be back later ...]
bal has quit [Quit: bal]
fryguy9 has quit [Quit: Leaving.]
jeanlinux has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
whomp has joined #ruby
dstarh has joined #ruby
charliesome has quit [Quit: zzz]
fryguy9 has joined #ruby
devoldmx has joined #ruby
pardusf has quit []
skrite has joined #ruby
kiyote23 has joined #ruby
mahtennek has joined #ruby
klmlfl_ has joined #ruby
axl_ has joined #ruby
bronson has joined #ruby
<mahtennek> hi any advise on how to build server-side API with OAuth for my web service?
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<Cat_1> That's like the most vague question I have ever heard...
apeiros_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
whomp has quit [Ping timeout: 244 seconds]
<Cat_1> Have you looked at Omniauth?
fantazo has quit [Quit: Verlassend]
kapil__ has quit [Quit: Connection closed for inactivity]
klmlfl has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
<mahtennek> Cat_1: i have to apologize. I am not very familiar with this myself. so hope somebody can help me out
fabrice31 has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
sambao21 has joined #ruby
<mahtennek> i have a web service running, but i want to secure that so that only authenticated users with API_KEY can access my web service.
fabrice31 has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
<Senjai> Cat_1: Dont advocate omniauth xD Use https://github.com/intridea/oauth2
devoldmx_ has quit [Ping timeout: 255 seconds]
<Senjai> mahtennek: Then only let users with a valid API key access your services.
<Senjai> mahtennek: If you have code, we can help you further
<Senjai> but without it, ehhh not so much
<mahtennek> Senjai: so what is the authentication required for this API Key?
<Senjai> mahtennek: If its valid, its authorized, otherwise its not
<mahtennek> Senjai: at the moment I'm trying to figure out how should I write this service
devoldmx has joined #ruby
<Senjai> mahtennek: The first step is to open your editor, and the second step is to write code. We cant do this for you
<Senjai> If you have issues while writing code, we can help you there
<mahtennek> Senjai: yeah i got that
dangerousdave has joined #ruby
<mahtennek> Senjai: what i meant was, the authorization is using OAuth per se, or are we talking about something else
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
<mahtennek> Senjai: I am not too familiar with this API Key, OAuth concept on Sinatra.
SilkFox_ has quit [Ping timeout: 244 seconds]
marr has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 240 seconds]
<Senjai> If you have questions about oauth in general
<Senjai> Google is a handy tool for those things
<mahtennek> okay i have read through. i did those search. the implementation, i am not too familiar here.
<mahtennek> how does that work?
Techguy305 has joined #ruby
parduse has joined #ruby
GaryOak_ has joined #ruby
livathin_ has joined #ruby
<Senjai> Sorry, cant help you further
dfinning_ has joined #ruby
pkrzywicki has quit [Ping timeout: 265 seconds]
<Senjai> I cant sit down and spend time to write out the same things you can find online, sorry
aganov has quit [Quit: Leaving]
<mahtennek> No don't worry. i am not asking you to code it for me, the mechanism of how it works.
livathinos has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 256 seconds]
dfinninger has quit [Ping timeout: 245 seconds]
livathin_ has quit [Ping timeout: 255 seconds]
twistedpixels is now known as zz_twistedpixels
mengu has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kiyote23 has joined #ruby
<shevy> wow
<shevy> in C you can not have a variable name with the same name of a function?
tlarevo has joined #ruby
commmmodo has joined #ruby
crueber has joined #ruby
straydogstudio has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
Techguy305 has quit [Read error: Connection reset by peer]
youssefchaker is now known as ychaker
<Mon_Ouie> You can but then the local variable will shadow the function name
luksaur has joined #ruby
luksaur has joined #ruby
Macaveli has quit [Ping timeout: 250 seconds]
<Mon_Ouie> Function are variables too, with a different type
commmmodo has quit [Client Quit]
mahtennek has quit []
delianides has joined #ruby
kiyote23 has quit [Ping timeout: 264 seconds]
Ankhers` has joined #ruby
rocknrollmarc has joined #ruby
dangerousdave has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
speaking1ode-wor has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
phx669 has joined #ruby
pengin has joined #ruby
commmmodo has joined #ruby
speakingcode-wor has quit [Ping timeout: 255 seconds]
Flcn____ has quit [Quit: Be back later ...]
speaking1ode-wor is now known as speakingcode-wor
commmmodo has quit [Client Quit]
psy has quit [Ping timeout: 255 seconds]
phx669 is now known as pedroandrade
<vvivv> what is differnce between .rvm/rubies/ruby* and .rvm/gems/ruby*/bin
<shevy> the last seems to be for the ruby binary
rocknrollmarc has quit [Ping timeout: 250 seconds]
<shevy> hmm or for binaries of gems. that directory looks weird for sure
commmmodo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Tranquility has joined #ruby
chrishough has joined #ruby
sparr has quit [Changing host]
sparr has joined #ruby
turboTrust has joined #ruby
Soda has joined #ruby
sigurding has quit [Quit: sigurding]
commmmodo has quit [Ping timeout: 255 seconds]
Cache_Money has quit [Quit: Cache_Money]
sambao21 has joined #ruby
whomp has joined #ruby
mgorbach has quit [Ping timeout: 250 seconds]
geggam has joined #ruby
mgorbach has joined #ruby
timonv_ has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
Photism has joined #ruby
pedroandrade has quit [Quit: Leaving...]
pengin has joined #ruby
<claw__> hey there
<claw__> how could i list these classes ?
ychaker is now known as youssefchakker
b4rbz has joined #ruby
pu22l3r has quit []
xxneolithicxx has joined #ruby
pu22l3r has joined #ruby
psy has joined #ruby
allcentury has joined #ruby
<xxneolithicxx> hi all, when you monkey patch a class that inherits from another do you have to specify the inherited class in the monkey patch as well or is just the class name sufficient?
rocknrollmarc has joined #ruby
deric_skibotn has joined #ruby
whomp has quit [Ping timeout: 244 seconds]
jefus_ has joined #ruby
youssefchakker is now known as youssefchaker
<claw__> solved my question Rouge::Lexers.constants
pengin has quit [Ping timeout: 264 seconds]
behrz has quit [Ping timeout: 264 seconds]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
jefus has quit [Ping timeout: 256 seconds]
t0rc has joined #ruby
poguez has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
anarang has joined #ruby
CustosL1men has quit [Ping timeout: 256 seconds]
shredding has quit [Read error: Connection reset by peer]
olivier_bK has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
youssefchaker is now known as ychaker
doodlehaus has joined #ruby
phux has quit [Quit: leaving]
DadoCe has joined #ruby
<rsty1> how to select fields in split() method? like i need 10,17,18,19 but can't split("/")[10,17,18,19] ?
anaeem1 has quit [Ping timeout: 265 seconds]
ctooley has joined #ruby
dcarmich has joined #ruby
snath has joined #ruby
<shevy> xxneolithicxx you modify the class that you modify
<shevy> xxneolithicxx the parent is unaffected by any modifications you to a child class
paulfm has quit [Quit: Goodbye]
<shevy> *you do to
<elaptics> rsty1: what are you trying to split exactly?
<GaryOak_> rsty1: What output are you trying to get?
Takle has joined #ruby
mquin has quit [Read error: Connection reset by peer]
<ctooley> I have a table named “item_group” where the primary key is “name” and a table name “item” with a column named “item_group_name”. I’m trying to make the association in the item.rb model so that item.item_group_name = item_group.name is explicit and not inferred.
<rsty1> 4.2.2.2/:/xmt/rcv//loss/=/6/6/0///min/avg/max/=/84.3/97.3/122
<rsty1> i need 0,84.3,97.3,122
gsd has joined #ruby
sevvie has joined #ruby
anaeem1 has joined #ruby
paulfm has joined #ruby
<ctooley> I’m trying to read through the ActiveRecord documentation on the association and it’s not terribly clear how to acheive most associations when you’re not in charge fo the schema.
sevvie has quit [Read error: Connection reset by peer]
DadoCe has quit [Ping timeout: 264 seconds]
mquin has joined #ruby
behrz has joined #ruby
pengin has joined #ruby
<rsty1> whats the best way to do elaptics/GaryOak_?
rbrs has quit [Remote host closed the connection]
<rsty1> with above output and desired array values
livingstn has joined #ruby
<GaryOak_> "yourvalue".split("=/")[2].split("/") that's quick and dirty
jzinedine has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
<GaryOak_> or you could use a regex
<GaryOak_> and then get that part of the string, and split it
<GaryOak_> or you could cut the end off the string and split that
tyfighter has joined #ruby
<rsty1> kk, thanks. I am used to unix cut/awk
<rsty1> :P
recurrence has joined #ruby
jzinedine has quit [Client Quit]
sevvie has joined #ruby
recurrence has quit [Client Quit]
jenrzzz has joined #ruby
Ankhers` is now known as Ankhers
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
devoldmx has joined #ruby
xxneolithicxx has left #ruby [#ruby]
Aswebb_ has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 244 seconds]
cpt_yossarian has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
apeiros_ has joined #ruby
geggam has joined #ruby
cpt_yossarian has joined #ruby
blackmesa has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Trep has joined #ruby
mattmcclure has joined #ruby
Macaveli has joined #ruby
arup_r has quit [Quit: Leaving.]
ihlcqe has quit [Read error: Connection reset by peer]
Aswebb_ has joined #ruby
SilkFox_ has joined #ruby
sambao21 has joined #ruby
mbeasley has quit [Read error: Connection reset by peer]
qulo has quit [Quit: Leaving]
sevvie has quit [Read error: Connection reset by peer]
mbeasley has joined #ruby
karmatr0n has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
Flcn____ has joined #ruby
whomp has joined #ruby
ptrrr has joined #ruby
french has joined #ruby
msgodf has quit [Remote host closed the connection]
jeanlinux has joined #ruby
brb3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lectrick is now known as pmarreck
Trep has quit [Ping timeout: 252 seconds]
SilkFox_ has quit [Ping timeout: 255 seconds]
sevvie has joined #ruby
byprdct has quit [Ping timeout: 240 seconds]
jheg has quit [Quit: jheg]
jeanlinux has quit [Ping timeout: 250 seconds]
kasperti_ has quit []
iamninja has quit [Quit: ZZZzzz…]
allcentury has quit [Ping timeout: 244 seconds]
lw has joined #ruby
kiyote23 has joined #ruby
gr33n7007h has joined #ruby
apurcell has joined #ruby
Fire-Dragon-DoL has joined #ruby
n008f4g_ has joined #ruby
spyderman4g63 has joined #ruby
econerd4ever has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
lw has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shredding has quit [Quit: shredding]
jherbst has joined #ruby
apurcell has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
chthon has joined #ruby
RareBlackMagic has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
RareBlackMagic has left #ruby [#ruby]
bricker has joined #ruby
banjara has joined #ruby
AlexRussia has joined #ruby
kiyote23 has quit [Ping timeout: 244 seconds]
sargas has joined #ruby
sargas has quit [Changing host]
sargas has joined #ruby
recurrence has joined #ruby
jds has joined #ruby
crack_user has joined #ruby
tus has joined #ruby
timonv_ has joined #ruby
sigurding has joined #ruby
patrick99e99 has joined #ruby
s00pcan_ has quit [Ping timeout: 255 seconds]
towski_ has joined #ruby
bronson has joined #ruby
timonv_ has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
sargas has quit [Quit: This computer has gone to sleep]
mikecmpbll has quit [Quit: ciao.]
geggam has quit [Remote host closed the connection]
_ixti_ has joined #ruby
paulfm_ has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
sargas has joined #ruby
chthon has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 264 seconds]
shuber_ has joined #ruby
paulfm has quit [Ping timeout: 245 seconds]
allcentury has joined #ruby
marr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sk87 has joined #ruby
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
Val__ is now known as rand0mbits
sk87 has quit [Client Quit]
geggam has joined #ruby
razrunelord has joined #ruby
timonv_ has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
<cjm_> Hi Folks, I have a Ruby on Rails application configured to run on passenger under Apache. A request for http://<root>/ should invoke the application, but it does not. My experience with Ruby on or off Rails is not sufficient to understand how this dispatching is supposed to work, so I have no idea what the problem is. Can anybody advise me how to diagnose this? I suspect it is quite simple for someone with experience.
Takle has quit [Remote host closed the connection]
valeriansaliou has joined #ruby
larissa has quit [Ping timeout: 265 seconds]
sshao has joined #ruby
justicefries has joined #ruby
justicefries has quit [Max SendQ exceeded]
valeriansaliou has quit [Ping timeout: 265 seconds]
justicef- has joined #ruby
justicef- is now known as justicefries
lw has joined #ruby
shock_one has quit [Remote host closed the connection]
sinkensabe has joined #ruby
thumpba has joined #ruby
catphish has quit [Quit: Leaving]
bigmac has quit [Read error: Connection reset by peer]
kl__ has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
thisirs has joined #ruby
<GaryOak_> cjm_: Do you have the server running? Also you can try over at #rubyonrails
<cjm_> GaryOak_, Yes. Everything is working except the dispatch to Ruby on Rails... Try http://todo.tryx.org, and you will see a directory listing.
<cjm_> GaryOak_, I asked here because I don't know if I have a Ruby question or a Rails question...
<GaryOak_> It's probably a rails question if the whole application won't run
jimms has joined #ruby
andikr has quit [Remote host closed the connection]
pietr0 has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
Aswebb_ has quit [Remote host closed the connection]
musl has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
evvel2 has quit [Quit: leaving]
musl has quit [Client Quit]
fabrice31 has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
musl has joined #ruby
t0rc has quit [Quit: WeeChat 1.0.1]
<godd2> morning all
justicefries has left #ruby ["Textual IRC Client: www.textualapp.com"]
Rarikon has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
Rarikon has joined #ruby
Photism_ has joined #ruby
Photism has quit [Read error: Connection reset by peer]
shuber_ has joined #ruby
athan has quit [Ping timeout: 265 seconds]
mois3x has joined #ruby
athan has joined #ruby
bennylope has joined #ruby
tlr has joined #ruby
<cjm_> GaryOak_, Thanks... Even that little bit is helpful, when you have nearly zero experience.
fabrice31 has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
pusewicz has quit [Ping timeout: 272 seconds]
PhilK has quit [Ping timeout: 272 seconds]
Gnubie_ has quit [Remote host closed the connection]
Gnubie_ has joined #ruby
codefo has quit [Ping timeout: 244 seconds]
<GaryOak_> cjm_: No problem, it's looks like your apache server is running, I don't know much about passenger though
Seich has quit [Ping timeout: 272 seconds]
pusewicz has joined #ruby
PhilK has joined #ruby
shuber_ has quit [Remote host closed the connection]
<GaryOak_> so it could be a apache/passenger config issue, or a rails issue
tlr has quit [Client Quit]
ltd has quit [Ping timeout: 272 seconds]
Klumben has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
<cjm_> GaryOak_, What you know about passenger and what I know about passenger is equal to what you know about passenger. (-:
ltd has joined #ruby
roolo has quit [Remote host closed the connection]
<GaryOak_> cjm_: haha well you'd better start reading some docs ;)
Seich has joined #ruby
shuber_ has joined #ruby
anaeem1_ has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
anaeem1 has quit [Read error: Connection reset by peer]
<cjm_> GaryOak_, Yeah, I really didn't want to have to debug this. I don't even know if it will do what I want, but I have already invested enough time, that I think I will have to *make* it do what I want...
rpag has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
elaptics is now known as elaptics`away
fryguy9 has quit [Read error: Connection reset by peer]
fryguy91 has joined #ruby
codefo has joined #ruby
<GaryOak_> cjm_: well if you aren't constrained by apache, I'd suggest doing local testing just using the built-in rails server
SilkFox_ has joined #ruby
<cjm_> GaryOak_, Yes. I even have instructions for that, and it is beginning to look very attractive. I want to run under apache for "production", but if it doesn't pass basic functionality tests, then I don't have a production application to run anyway.
<GaryOak_> cjm_: that's the idea, if you know rails is running using the basic server, then you know it should work with something else
bennylope has left #ruby ["Textual IRC Client: www.textualapp.com"]
Zamyatin has joined #ruby
lw has quit [Quit: s]
fryguy91 has quit [Ping timeout: 265 seconds]
fryguy9 has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
shuber_ has quit [Remote host closed the connection]
<_ixti_> Hey everybody. Is there a way to take char code by position like in Javascript: str.charCodeAt(2).
_whitelogger___ has joined #ruby
yo61 has joined #ruby
akitada has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
Trieste has joined #ruby
callenb___ has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
bcavileer_ has joined #ruby
cbetta__ has joined #ruby
jds has joined #ruby
ElderFain has joined #ruby
ElderFain has quit [Changing host]
ElderFain has joined #ruby
jimeh has joined #ruby
spastorino has joined #ruby
SegFaultAX has joined #ruby
leslie has joined #ruby
ziyadb has joined #ruby
george2 has joined #ruby
GGMethos has joined #ruby
jeregrine has joined #ruby
teddyp1c_ has quit [Remote host closed the connection]
Klumben has joined #ruby
yvemath has joined #ruby
cicloid has joined #ruby
kasperti_ has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
ggherdov has joined #ruby
blackjid_ has joined #ruby
poguez has joined #ruby
jhass has quit [Ping timeout: 250 seconds]
suy|BNC has joined #ruby
Junaos has quit [Ping timeout: 250 seconds]
blackjid_ has quit [Max SendQ exceeded]
jhass|off has joined #ruby
teddyp1cker has joined #ruby
Junaos_ has joined #ruby
khem_ has joined #ruby
tus has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 255 seconds]
idoru has quit [Read error: Connection timed out]
ta_ has joined #ruby
hostess has joined #ruby
brb3 has joined #ruby
giuseppesolinas has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kaplejon__ is now known as kaplejon
blackjid_ has joined #ruby
apurcell has joined #ruby
renderful has quit [Remote host closed the connection]
brb3 has quit [Client Quit]
brb3 has joined #ruby
brb3 has quit [Client Quit]
V_Ve has joined #ruby
sinthetix_bsd is now known as djbender
tus has joined #ruby
tus has quit [Changing host]
tus has joined #ruby
pu22l3r has joined #ruby
Guest65496 is now known as _chs_
nanoyak has joined #ruby
fryguy91 has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
lw has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
comma8 has joined #ruby
kstuart has quit [Remote host closed the connection]
V_Ve has quit [Remote host closed the connection]
kstuart has joined #ruby
patric100e99 has joined #ruby
rgs has joined #ruby
fryguy9 has joined #ruby
yvemath has quit [Read error: Network is unreachable]
Hien has joined #ruby
Takle has joined #ruby
Hien has quit [Changing host]
Hien has joined #ruby
omosoj has quit [Ping timeout: 244 seconds]
V_Ve has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
yvemath has joined #ruby
fryguy91 has quit [Ping timeout: 244 seconds]
antgel has joined #ruby
TDJACR has joined #ruby
omosoj has joined #ruby
Aswebb_ has joined #ruby
Gnubie_ has quit [Ping timeout: 255 seconds]
athan has quit [Ping timeout: 265 seconds]
Gnubie_ has joined #ruby
brb3 has joined #ruby
drPoggs has quit [Ping timeout: 244 seconds]
Gnubie_ has quit [Remote host closed the connection]
Gnubie_ has joined #ruby
echevemaster has joined #ruby
renderful has joined #ruby
tvw has quit []
nanoyak has quit [Remote host closed the connection]
sambao21 has joined #ruby
athan has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
nanoyak has joined #ruby
Rahul_Roy_ has joined #ruby
eka has joined #ruby
fryguy9 has quit [Quit: Leaving.]
drPoggs has joined #ruby
V_Ve has quit [Quit: Lingo: www.lingoirc.com]
leafybasil has quit [Remote host closed the connection]
fryguy9 has joined #ruby
commmmodo has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
AlSquire has quit [Quit: This computer has gone to sleep]
yfeldblu_ has quit [Remote host closed the connection]
paulfm has joined #ruby
V_Ve has joined #ruby
_beechnut has quit [Quit: Leaving.]
chrishough has joined #ruby
josephnd1nton has joined #ruby
dopie has quit [Remote host closed the connection]
LouisRoR has joined #ruby
cjz has joined #ruby
eka_ has quit [Ping timeout: 256 seconds]
<cjz> the Selenium Ruby bindings are missing a crucial element – the HtmlUnit driver.
tlarevo has quit [Remote host closed the connection]
paulfm_ has quit [Ping timeout: 256 seconds]
jhass|off is now known as jhass
<cjz> i was told that by someone else, im doing some research to find out if ruby/rails has a selenium like offering for web scraping/testing
ponga has quit [Quit: Leaving...]
tlarevo has joined #ruby
Eiam has joined #ruby
commmmodo has quit [Client Quit]
josephnd1nton has quit [Ping timeout: 250 seconds]
<_ixti_> str[2] works as expected
<_ixti_> but it creates new string
crack_user has quit [Quit: Leaving.]
lw has quit [Quit: s]
wolf4ood has quit [Quit: (null)]
sargas has joined #ruby
n1lo has quit [Quit: Leaving]
dfinning_ has quit [Remote host closed the connection]
codefo has quit [Ping timeout: 255 seconds]
reset has joined #ruby
Gnubie_ has quit [Remote host closed the connection]
ta_ has joined #ruby
Gnubie_ has joined #ruby
_djbkd has joined #ruby
<j2p2> that might be what you want
<cjz> thank you sir, ill ask if thats acceptable
icarus has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Flcn____ has quit [Quit: Be back later ...]
Zamyatin has joined #ruby
Flcn____ has joined #ruby
jottr has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
codefo has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
tlarevo_ has joined #ruby
Zamyatin has joined #ruby
tlarevo has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
<bradland> cjz: see also Capybara (watir and Capybara are the two most popular)
Zamyatin has quit [Max SendQ exceeded]
codeFiend has joined #ruby
lw has joined #ruby
Zamyatin has joined #ruby
codeFiend is now known as aeontech
lw has quit [Max SendQ exceeded]
pengin has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
lw has joined #ruby
pengin has joined #ruby
omosoj has quit [Ping timeout: 264 seconds]
crack_user has joined #ruby
omosoj has joined #ruby
V_Ve has quit [Quit: Lingo: www.lingoirc.com]
thekkid has joined #ruby
claymore has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
Hijiri has joined #ruby
lw has quit [Client Quit]
spyderma_ has joined #ruby
pengin_ has joined #ruby
s00pcan_ has joined #ruby
dfinninger has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rkalfane has joined #ruby
pengin has quit [Ping timeout: 264 seconds]
s00pcan has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
spyderm__ has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
s00pcan has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
weeb1e_ has joined #ruby
weeb1e has quit [Read error: Connection reset by peer]
s00pcan__ has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
spyderma_ has quit [Ping timeout: 244 seconds]
_br_- has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
aclearman037 has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
lw has joined #ruby
doodlehaus has joined #ruby
rodfersou has joined #ruby
s00pcan__ has quit [Remote host closed the connection]
lw has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
SilkFox_ has quit [Ping timeout: 265 seconds]
rsty1 is now known as rsty
lw has joined #ruby
codefo has quit [Ping timeout: 255 seconds]
Zamyatin has joined #ruby
lw has quit [Client Quit]
klmlfl has joined #ruby
leafybasil has joined #ruby
bronson has joined #ruby
codefo has joined #ruby
s00pcan has joined #ruby
rbennacer has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
phantomtiger has joined #ruby
klmlfl has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
french has quit [Remote host closed the connection]
Riking has quit [Ping timeout: 250 seconds]
n1lo has joined #ruby
_br_ has joined #ruby
bluOxigen has joined #ruby
bluOxigen has joined #ruby
s00pcan has quit [Remote host closed the connection]
epx998 has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
veduardo_ has joined #ruby
s00pcan has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icebourg has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
Riking has joined #ruby
sk87 has joined #ruby
pengin_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
kiyote23 has joined #ruby
pengin has joined #ruby
sevvie has joined #ruby
synire has joined #ruby
sk87 has quit [Client Quit]
jottr has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
Hijiri has quit [Ping timeout: 255 seconds]
renderful has quit [Remote host closed the connection]
pengin has quit [Ping timeout: 244 seconds]
kiyote23 has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
jerius_ has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
dman777_alter has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
nanoyak has joined #ruby
idoru has joined #ruby
pwnz0r has joined #ruby
<dman777_alter> https://bpaste.net/show/bb7cd8d5ebbc hello....why is Sidekiq trying to use Ruby 1.9 when I have rbenv pointing to 2.1.2?
razrunelord has quit [Remote host closed the connection]
claymore has joined #ruby
valeriansaliou has joined #ruby
psy has quit [Disconnected by services]
s00pcan has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 264 seconds]
psy_ has joined #ruby
<GaryOak_> dman777_alter: it looks like it's still trying to run sidekiq from the 1.9.1 gems location
max96at|off is now known as max96at
jimms has joined #ruby
<GaryOak_> do you need to reinstall it for 2.1.2?
Sid05 has quit [Ping timeout: 255 seconds]
<dman777_alter> GaryOak_: I'm new to ruby....so I should reinstall sidekick?
renderful has joined #ruby
valeriansaliou has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
mengu has joined #ruby
baweaver has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
econerd4ever has joined #ruby
baweaver has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<GaryOak_> dman777_alter: I'm not entirely sure but bundle might be running using a different ruby version that what you have selected
<dman777_alter> GaryOak_: ya....gem env looks good as it points to 2.1.2
s00pcan has joined #ruby
anarang has quit [Quit: Leaving]
luriv has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
anarang has joined #ruby
mjuszczak has joined #ruby
pengin has joined #ruby
s00pcan has joined #ruby
commmmodo has joined #ruby
<dman777_alter> I ran bundle --path=vendor/bundle....not sure if I should of. What does this do exactly?
lemur has quit [Ping timeout: 244 seconds]
Dwarf has quit [Ping timeout: 244 seconds]
Photism2 has joined #ruby
Photism_ has quit [Read error: Connection reset by peer]
Grumelo has quit [Remote host closed the connection]
jheg has joined #ruby
econerd4ever has quit [Ping timeout: 256 seconds]
devoldmx_ has joined #ruby
econerd4ever has joined #ruby
jack_rabbit has joined #ruby
jaffachief has joined #ruby
ychaker has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan_ has quit [Read error: No route to host]
rodfersou has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 255 seconds]
<GaryOak_> dman777_alter: not sure
rodfersou has joined #ruby
ghr has joined #ruby
JBreit has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
sevvie has quit [Read error: Connection reset by peer]
razrunelord has joined #ruby
msmith_ has quit []
Dwarf has joined #ruby
thumpba has joined #ruby
Hijiri has joined #ruby
kirun has joined #ruby
razrunelord has quit [Client Quit]
<GaryOak_> dman777_alter: try bundle exec ruby -v in your project directory
teddyp1cker has joined #ruby
codefo has quit [Ping timeout: 255 seconds]
<dman777_alter> GaryOak_: hmm...it shows ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
anarang has quit [Quit: Leaving]
dopie has joined #ruby
s00pcan_ has joined #ruby
<GaryOak_> dman777_alter: ok so that means bundle is using the right ruby version
ghr has quit [Ping timeout: 244 seconds]
anarang has joined #ruby
giuseppesolinas has joined #ruby
sevvie has joined #ruby
yfeldblum has joined #ruby
anarang has quit [Client Quit]
youssefchaker_ has joined #ruby
giuseppesolinas has quit [Client Quit]
youssefchaker_ is now known as youssefchaker
sevvie has quit [Read error: Connection reset by peer]
crack_user has quit [Quit: Leaving.]
parduse has quit []
Pupeno_ has joined #ruby
Macaveli has joined #ruby
GaryOak_ has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Client Quit]
shazaum has quit [Quit: This computer has gone to sleep]
x1337807x has joined #ruby
bronson has quit [Remote host closed the connection]
ta_ has joined #ruby
lw has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
exgf has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
rodfersou has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 244 seconds]
Morkel has joined #ruby
sambao21 has joined #ruby
mjuszczak has quit [Read error: Connection reset by peer]
sambao21 has quit [Client Quit]
sevvie has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
mjuszczak has joined #ruby
thoughnut has quit [Ping timeout: 264 seconds]
recurrence has quit [Quit: recurrence]
SilkFox_ has joined #ruby
<ght> Quick question: I have a good-sized Ruby applicationb built out, but suddenly I need to have specific methods increment variable values and pass them back to the main app, without re-designing all my method return statements
<ght> Any way to do this? I know constants are frowned upon
codefo has joined #ruby
Aeoxic has joined #ruby
kyb3r_ has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
nanoyak has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
thoughnut has joined #ruby
bronson has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
shock_one has joined #ruby
SilkFox_ has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
wallerdev has quit [Quit: wallerdev]
spyderm__ has quit [Ping timeout: 264 seconds]
<shevy> you can use constants just fine
veduardo_ is now known as veduardo
sudoman has joined #ruby
sudoman has left #ruby [#ruby]
<exgf> depends rly. make the variables part of an object. pass that object in and modify its state
elaptics`away is now known as elaptics
patric100e99 has quit [Ping timeout: 244 seconds]
<exgf> as a side effect
<Aeoxic> Does `load` function more or less identically to `require` save for `require` checking that the code hasn't been loaded before?
reinaldob has quit [Remote host closed the connection]
veduardo has quit [Quit: WeeChat 0.4.2]
<Aeoxic> I have an interesting issue where a file isn't being loaded using `load`, but it is if I use `require`.
reinaldob has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
thegrid_ has joined #ruby
banjara has quit [Quit: Leaving.]
<thegrid_> hello everyone, can anyone tell me the rails channel?
<thegrid_> is it #ruby_on_rails
<Aeoxic> #rails
banjara has joined #ruby
<shevy> #rubyonrails
jerius_ has quit []
<Aeoxic> #rubyonrails
<Aeoxic> yeah
<shevy> Aeoxic, let's have a look at the source http://www.ruby-doc.org/core-2.2.0/Kernel.html#method-i-load
<thegrid_> maybe you could help me because gem is the problem: http://pastebin.com/neTz0HWz
<shevy> rb_load_internal(path, RTEST(wrap));
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
jerius has joined #ruby
<shevy> return rb_require_safe(fname, rb_safe_level());
pengin has quit [Remote host closed the connection]
<Aeoxic> shevy: So... no? :\
banjara has quit [Client Quit]
zz_twistedpixels is now known as twistedpixels
pengin has joined #ruby
reinaldob has quit [Ping timeout: 245 seconds]
<shevy> yeah they are not the same
mjuszczak has quit []
<Aeoxic> shevy: Alright. Everywhere I read says that they function more or less the same.
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<Aeoxic> But this just... I don't get it.
ta_ has quit [Ping timeout: 265 seconds]
<Aeoxic> Even with a blank .rb with nothing put `p '?'`
<Aeoxic> I get nothing.
<Aeoxic> Change `load` to `require` and it works.
<thegrid_> actualy i have a ruby question: it says gem is not found certificate failure
<shevy> it seems as i rb_require_safe() does a few additional checks, such as rb_set_safe_level_force(safe);
<ght> Question: when I pass a string as a parameter to a method and make changes within the method, those changes are retained after the method ends and the main app resumes operation. However, this does not seem to be the case with integers.
<ght> Is this a known thing?
<ght> Integers passed as function parameters in ruby don't retain changes that take place in methods, but strings do? Why is that?
<shevy> Aeoxic I use require about 99% of the time
lrocknrolmarc has joined #ruby
<Aeoxic> shevy: I have to use `load` for the reloading facility.
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Aeoxic> Writing babby's first plugin system over here.
<thegrid_> actualy i have a ruby question: it says gem is not found certificate failure
<ght> Anyone?
exadeci has joined #ruby
<Aeoxic> thegrid_: You behind a HTTP proxy?
<shevy> ght Integers aren't real objects due to speed reasons
andrewcarter has joined #ruby
<thegrid_> Aeoxic: im using a residential cable line
renderful has quit [Ping timeout: 265 seconds]
<shevy> >> x = 5; def x.hi; puts "hi"; end
<eval-in__> shevy => can't define singleton (TypeError) ... (https://eval.in/239678)
<shevy> what's with the bot
<shevy> ah yes
<shevy> ght ^^^ see above
<ght> shevy: would a dirty workaround be to convert it to string with .to_s, pass it, conver it back to integer with .to_i, make the changes, then convert it back to string with to_s before the method ends?
<shevy> ght not sure what is dirty. what exactly do you need? I mean you can convert a string to an integer and back again
jerius has quit []
<ght> I just need these integers to retain their value within the next 10 minutes, I don't have to time to redesign all my method return statements
pengin has quit [Ping timeout: 264 seconds]
<shevy> huh
jerius has joined #ruby
<ght> gonna try converting them to string before passing to method, then to integer within method, performing changes, then converting them back to string before the method ends
<ght> unless there's some operation in ruby to tell integers to become "real" objects akin to strings
<shevy> integer objects behave in ruby only the way they behave
codefo has quit [Ping timeout: 264 seconds]
<ght> so there's no way to change that behavior, got it
<exgf> lol
devoldmx_ has quit [Remote host closed the connection]
<ght> Thank you for the assistance.
<shevy> you would normally assign to an @instance_variable
<shevy> and use query methods to return their state back to the outside world
<shevy> if it is an important variable that is
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<ght> Example of such?
renderful has joined #ruby
gfawcettpq has quit [Ping timeout: 240 seconds]
<shevy> class Foo; def initialize; @bla = nil; end; def make_me_coffee; @bla = 'black carabino coffee'; return @bla; end; end
<exgf> Object.method_i_want_to_run(ThingWithSideEffects.new(integer_dude); ThingWithSideEffects.integer_dude
lrocknrolmarc has quit [Ping timeout: 244 seconds]
<shevy> now you have two - a return variable, and storage in an @instance variable. on top of that you can add the reader method, like by using: attr_reader :bla
renderful has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
codefo has joined #ruby
renderful has joined #ruby
<ght> god damnit, this isn't working
CustosL1men has joined #ruby
CustosL1men has quit [Changing host]
CustosL1men has joined #ruby
<ght> Yes I know, like I said, I don't have time to redesign all my return statements
<ght> I need this done in like 5 minutes
<ght> hrist.
<ght> Christ*
wolf4ood has joined #ruby
<ght> why in the fuck
dionysus69 has joined #ruby
<shevy> k 5 minutes is over
klmlfl_ has quit [Remote host closed the connection]
tlarevo has joined #ruby
<exgf> Time.now.is_a? MagicTime
Aeoxic has quit [Quit: Leaving]
tlarevo_ has quit [Ping timeout: 256 seconds]
thumpba has quit [Ping timeout: 244 seconds]
<Mon_Ouie> Integers and strings behave in exactly the same way when you pass them to a method and make changes to them
<Mon_Ouie> Or they did, back when it was possible to modify integers in some ways
<arrubin> Modify integers?
<arrubin> 5.inc! ?
<Mon_Ouie> No, but you used to be able to change their instance variables
pwnz0r has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<arrubin> >> 5.frozen?
<eval-in__> arrubin => true (https://eval.in/239679)
pu22l3r has quit [Ping timeout: 264 seconds]
<arrubin> >> "abcd".frozen?
<eval-in__> arrubin => false (https://eval.in/239680)
<Mon_Ouie> Right, that wasn't the case in 1.9
<Mon_Ouie> 19>> 3.frozen?
<eval-in__> Mon_Ouie => false (https://eval.in/239681)
<arrubin> Interesting.
Nameo0 has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
sargas has joined #ruby
whoisjake has quit []
jenrzzz has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dionysus69 has quit [Ping timeout: 256 seconds]
tlarevo has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
snowball1301 has joined #ruby
jollyirc has joined #ruby
maletor has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
paulfm has quit [Quit: Zzzzz...]
paulfm has joined #ruby
n1lo has quit [Quit: Leaving]
Kryptonical has quit [Read error: Network is unreachable]
shuber_ has joined #ruby
Kryptonical has joined #ruby
testnamepleaseig has joined #ruby
commmmodo has quit [Quit: commmmodo]
ghr has quit [Ping timeout: 245 seconds]
testnamepleaseig has quit [Client Quit]
paulfm has quit [Client Quit]
lw has quit [Quit: s]
duncannz has joined #ruby
thumpba has joined #ruby
C1V0 has quit []
klmlfl has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
shuber_ has quit [Remote host closed the connection]
jeanlinux has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
Morkel has quit [Quit: Morkel]
jimms has quit [Remote host closed the connection]
tubuliferous has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
Jackneill has quit [Remote host closed the connection]
Zamyatin has joined #ruby
recurrence has joined #ruby
paulfm has joined #ruby
nanoyak has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
<waxjar> are there any serious problems with rexml (from the standard library)?
Zamyatin has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Musashi007 has quit [Quit: Musashi007]
tuelz has joined #ruby
<rpag> there were a couple of DoS vulnerabilities related to rexml a while ago but they should be fixed if you're up to date
yfeldblu_ has joined #ruby
silkfox has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Quit: Leaving.]
Zamyatin has quit [Client Quit]
renderfu_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
silkfox has joined #ruby
codefo has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
blackmesa has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
meschi__ has joined #ruby
metadave has quit [Ping timeout: 255 seconds]
sevvie has quit [Read error: Connection reset by peer]
renderfu_ has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
renderful has joined #ruby
ghr has joined #ruby
cvtsx1 has quit [Quit: Leaving]
SilkFox_ has joined #ruby
shock_one has quit [Remote host closed the connection]
Zamyatin has joined #ruby
Pupeno_ has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
<zenspider> waxjar: memory. it's horrible. use nokogiri
<zenspider> also speed, but that's secondary
Zamyatin has quit [Max SendQ exceeded]
postmodern has joined #ruby
malcolmva has quit [Quit: Leaving]
malcolmva has joined #ruby
sambao21 has joined #ruby
Zamyatin has joined #ruby
<waxjar> ah, i see. i just need to extract some titles from the <title> elements in HTML documents :/ i've been using nokogiri so far but it's annoying compiling, etc.
giuseppesolinas has joined #ruby
pengin has joined #ruby
ta_ has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 265 seconds]
<waxjar> i'll see hot bad rexml is memory-wise and check out oga otherwise
tlarevo has joined #ruby
konsolebox has quit [Quit: Leaving]
blizzy has quit [Ping timeout: 255 seconds]
sambao21 has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
<zenspider> waxjar: nokogiri compiling is annoying? it should be a total non-issue
ta_ has quit [Ping timeout: 265 seconds]
<zenspider> literally: `gem install nokogiri` or `bundle`. nothing more
dc__ has quit [Remote host closed the connection]
DadoCe has joined #ruby
kl has joined #ruby
mjuszczak has quit []
<waxjar> i run this app on a supercheap vps with only 128MB of memory, it just hangs when compiling nokogiri.
dman777_alter has quit [Quit: Lost terminal]
Junaos_ is now known as Junaos
valeriansaliou has joined #ruby
<waxjar> also, this stuff: WARNING: Nokogiri was built against LibXML version 2.9.2, but has dynamically loaded 2.8.0
Junaos has quit [Changing host]
Junaos has joined #ruby
<zenspider> waxjar: which means you're not installing it the way I said you should
lw has joined #ruby
<zenspider> because nokogiri vendors its own libxml for exactly that reason
<zenspider> if you're not using it, you told it not to
sinequanon has joined #ruby
sinequanon has quit [Client Quit]
bluOxigen has quit [Ping timeout: 240 seconds]
<waxjar> i installed that one a few minutes ago, a regular gem install. it is an older version though (1.6.1)
sinkensabe has quit [Remote host closed the connection]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
jimms has joined #ruby
DadoCe has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
<zenspider> I don't think that's THAT old... need to look
wallerdev has joined #ruby
<zenspider> oh wow. 2013-12-14
<zenspider> much older than I thought
_djbkd has joined #ruby
valeriansaliou has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
Nogbit has joined #ruby
<zenspider> well... 99% of the time, you make your own pain. if you want to run rexml on a machine with so little memory that you can't compile nokogiri... so be it.
nanoyak has quit [Remote host closed the connection]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FelixF has joined #ruby
<waxjar> i don't necessarily want to, just thought it might be easier :)
nanoyak has joined #ruby
alicanyilmaz has joined #ruby
<alicanyilmaz> there is a website which uses https, It has login authendication, i can login it with http parameters like https://foo.com?id=foo&pass=fooo when logged in there is another url which contains the http which i want to get, i will use the http in a mobile app
codefo has joined #ruby
<alicanyilmaz> how can i do it ?
cvtsx has joined #ruby
mois3x has quit [Quit: mois3x]
<jhass> mechanize
ta_ has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<alicanyilmaz> jhass: i need to do it in swift with httpclient
fabrice31 has joined #ruby
alicanyilmaz has quit [Quit: alicanyilmaz]
<jhass> bye
sambao21 has quit [Client Quit]
Zamyatin has joined #ruby
nanoyak has quit [Remote host closed the connection]
commmmodo has joined #ruby
bradland has quit [Quit: bradland]
sevvie has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
elaptics is now known as elaptics`away
fabrice31 has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
bronson has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 245 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
exgf has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
St_Marx has quit [Remote host closed the connection]
Zamyatin has quit [Ping timeout: 265 seconds]
troulouliou_dev has joined #ruby
St_Marx has joined #ruby
VictorBjelkholm has quit [Quit: Leaving]
sevvie has joined #ruby
jollyirc has quit [Ping timeout: 255 seconds]
Macaveli has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
fantazo has joined #ruby
sambao21 has joined #ruby
giuseppesolinas has joined #ruby
bronson has joined #ruby
icebourg has quit [Ping timeout: 244 seconds]
<zenspider> jhass: hah!
sinkensabe has joined #ruby
giuseppesolinas has quit [Client Quit]
econerd4ever has quit [Remote host closed the connection]
shuber_ has joined #ruby
econerd4ever has joined #ruby
icebourg has joined #ruby
Zamyatin has joined #ruby
codefo has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
econerd4ever has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
econerd4ever has joined #ruby
spyderman4g63 has joined #ruby
evanjs_ has quit [Remote host closed the connection]
sargas has quit [Quit: This computer has gone to sleep]
pengin has joined #ruby
evanjs has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Hijiri has quit [Ping timeout: 250 seconds]
Zamyatin has joined #ruby
FelixF has quit [Ping timeout: 246 seconds]
sargas has joined #ruby
jheg has quit [Quit: jheg]
chrishough has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
shuber_ has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 255 seconds]
Zamyatin has quit [Max SendQ exceeded]
pengin has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Remote host closed the connection]
evanjs has quit [Ping timeout: 244 seconds]
Zamyatin has joined #ruby
towski_ has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 245 seconds]
towski_ has joined #ruby
phead has joined #ruby
phead has left #ruby [#ruby]
Pupeno_ has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
paulfm has quit [Quit: Zzzzz...]
Zamyatin has joined #ruby
j2p2 has quit [Ping timeout: 245 seconds]
Pupeno has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
aclearman037 has quit [Quit: I'm out!]
commmmodo has quit [Quit: commmmodo]
<ght> Besides strings, is here any other variable type in Ruby that will retain a value if passed to and changed within a method?
<ght> Without having to have the method return the variable itself?
commmmodo has joined #ruby
Takle has joined #ruby
charliesome has joined #ruby
<jhass> mmh, that's not the right way to think about it
<ght> What is the right way to think about it?
<jhass> everything in ruby is an object
<jhass> strings are too
<jhass> arrays are, numbers are, everything
sinkensabe has quit [Remote host closed the connection]
<ght> Then why can I pass trings to methods as parameters, and append data to them within the method, and those changes are kept after the method has finished execution?
<jhass> variables are references to an object
chipotle_ has quit [Quit: cheerio]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> you pass a reference to a String object
<mozzarella> ght: it modifies the object itself, same for everything
<ght> But if I do the same to an integer, those changes are not kept
whomp has quit [Ping timeout: 256 seconds]
jeanlinux has quit [Ping timeout: 255 seconds]
<jhass> because Fixnums don't provide methods that change the object
<ght> if I pass the integer as a parameter and make changes to it within the method, once control returns to the main app the integer reverts to its original value
shuber_ has joined #ruby
<ght> whereas the string does not
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ght> why is that?
<jhass> and that's why we call them immutable in ruby
ta_ has joined #ruby
<jhass> mainly because of performance
<mozzarella> you can't mutate a number
<ght> ok
thumpba has quit [Remote host closed the connection]
<mozzarella> methods just return new objects
<jhass> not necessarily new ones
decoponyo has quit [Read error: Connection reset by peer]
<ght> I've even tried creating a string instead of an integer, passing it to the method, converting it to an integer with to_i, making changes, then converting it back with to_s and it still doesn't retain the value
roolo has joined #ruby
<jhass> of course not
<jhass> #to_i creates a new object
<jhass> and so does #to_s
sinkensabe has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> it's not the same obejct anymore
decoponio has joined #ruby
<ght> I've also tried utilizing placeholders, like passing a string, assigining an integer the value of string.to_i, making the changes to that temp variable, then converting that temp variable to a string with to_s and assigning the original string parameter this value
<ght> hmm, ok
Parker0 has joined #ruby
_djbkd has quit [Remote host closed the connection]
<jhass> it's hard to give any kind of sane advice if you stay that vague for your usecase
<ght> Then how come, if I pass a string, and perform no to_i cocnversion on it, just leave it as is, and simply assign it the value of another variable.to_s? And the string just still remains the same
<jhass> but there's the concept of simple stuff like a Box class
<ght> Anyway.
<ght> I'll just rewrite my method returns
<jhass> yeah, that sounds better
omosoj has quit [Ping timeout: 255 seconds]
tuelz has quit [Ping timeout: 245 seconds]
<jhass> I couldn't follow you on the last one
Kricir has quit [Remote host closed the connection]
_djbkd has joined #ruby
<ght> is it acceptable to return -1 ?
<ght> for a method?
<ght> I assume so
<jhass> if you like C a lot
thumpba has joined #ruby
<jhass> in ruby we generally return nil or a symbol for special values
ta_ has quit [Ping timeout: 265 seconds]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
<ght> I see
<fryguy9> or raise an exception if it's an exception
shredding has quit [Quit: shredding]
<mozzarella> ght: you know you can pass a hash to a method and modify elements of the hash, right?
sinkensa_ has joined #ruby
<jhass> which doesn't mean it leads to particular clean code
roolo has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
_djbkd has quit [Remote host closed the connection]
<jhass> in general you should avoid input parameters in a nice OO design, IMO
athan has quit [Read error: Connection reset by peer]
josephndenton has joined #ruby
<jhass> that means if you can avoid mutating your arguments, avoid it
sinkensabe has quit [Remote host closed the connection]
<jhass> if you can't, the only purpose of your method should be doing that
<mozzarella> I'm not saying it's clean
SilkFox_ has joined #ruby
<jhass> also that's basically what I was getting at with mentioning the Box class
<pontiki> one wonders how an object gets it inputs without parameters
<ght> mozzarella: I did not know that, no.
<pontiki> or methods get their operands
Zamyatin has joined #ruby
delianides has quit [Remote host closed the connection]
<jhass> er, I used the wrong term, output parameters was the C term I guess, kind of dizzy, sorry
<pontiki> ah so!
<pontiki> agreed there, 100%
<mozzarella> >> h = { result: 0 }; def plusone(h); h[:result] += 1; end; plusone(h); h[:result]
<eval-in__> mozzarella => 1 (https://eval.in/239685)
valeriansaliou has joined #ruby
claymore has quit [Quit: Leaving]
renderful has quit [Remote host closed the connection]
<pontiki> moreover, i very much dislike side-effect changes to object passed in
gkra has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
shuber_ has quit []
Ankhers has quit [Ping timeout: 250 seconds]
gkra has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
Zamyatin has quit [Client Quit]
livingstn has quit []
whomp has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
thoughnut has quit [Quit: leaving]
spyderman4g63 has quit []
ta_ has joined #ruby
teddyp1cker has joined #ruby
Zamyatin has joined #ruby
xfz has quit [Ping timeout: 245 seconds]
klmlfl_ has joined #ruby
treehug88 has quit []
_djbkd has joined #ruby
<apeiros_> +1 @pontiki
thumpba has quit [Remote host closed the connection]
<apeiros_> mutating arguments is IMO generally bad style and should be avoided
<apeiros_> (applies to ruby and OO languages which work similarly as ruby)
maletor has joined #ruby
DadoCe has joined #ruby
treehug88 has joined #ruby
<pontiki> recently i forgot that that happens, and was modifying a hash of options, feeling secure that it wouldn't change outside, which of course, as soon as i saved the file my test failed
ta_ has quit [Ping timeout: 265 seconds]
<pontiki> *bonk*
Zamyatin has quit [Client Quit]
teddyp1cker has quit [Ping timeout: 256 seconds]
keen__________23 has quit [Read error: Connection reset by peer]
<pontiki> or, as it goes, "boot to the head"
klmlfl has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
lw has quit [Quit: s]
Fusl has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 264 seconds]
behrz has quit [Quit: Leaving]
keen__________23 has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
Fusl has joined #ruby
valeriansaliou has quit [Ping timeout: 265 seconds]
pengin has joined #ruby
jasonmit has joined #ruby
freerobby has quit [Quit: Leaving.]
allcentury has quit [Ping timeout: 240 seconds]
tuelz has joined #ruby
_djbkd has quit [Remote host closed the connection]
whomp has joined #ruby
mengu has quit [Remote host closed the connection]
Zamyatin has joined #ruby
Zamyatin has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ta_ has joined #ruby
shellfu is now known as shellfu_afk
x1337807x has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
kamilc__ has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
brb3 has quit [Quit: <.<]
ta_ has quit [Ping timeout: 244 seconds]
skj3gg has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
silkfox has quit [Ping timeout: 245 seconds]
segfalt has joined #ruby
x1337807x has quit [Client Quit]
joonty has quit [Quit: Leaving]
Spami has joined #ruby
nanoyak has quit [Remote host closed the connection]
nanoyak has joined #ruby
n3phos has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0/20141125180439]]
lemur has joined #ruby
duncan_ has joined #ruby
pengin has quit [Remote host closed the connection]
Parker0 has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
pengin has joined #ruby
x77686d has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 244 seconds]
mostlybadfly has joined #ruby
lemur has quit [Ping timeout: 265 seconds]
thegrid__ has joined #ruby
<thegrid__> hello, can anyone tell me what a single "8
<thegrid__> a single "*"
<thegrid__> what the heck is it?
fryguy9 has quit [Quit: Leaving.]
Soda has quit [Remote host closed the connection]
<pontiki> in what context?
bradland has joined #ruby
crueber has quit [Quit: Leaving.]
jack_rabbit has quit [Ping timeout: 250 seconds]
<godd2> thegrid_ a single * can be a few different things. The most common is multiplication, but I doubt you'd ask about that
<apeiros_> it's a character. better answer with better question ;-)
nanoyak has quit [Quit: Computer has gone to sleep.]
<godd2> another is called "splat" which can exlode a list of things
treehug88 has quit []
<godd2> for example, [*1..5] will turn into [1, 2, 3, 4, 5]
<godd2> explode*
nanoyak has joined #ruby
<thegrid__> its used as an argument: http://pastebin.com/h5MYZpZj
<godd2> in regular expressions it can mean "zero or more things", so like /a*/ means zero or more "a" characters in a row
<thegrid__> def name(*val)
<godd2> thegrid_ ah, there it is meant to collect every parameter passed to the function and save it into the array val
<godd2> so if you did name("Jim", "Peters"), then inside that method, val would be ["Jim", "Peters"]
<thegrid__> oh so its just an aray, ruby always keeps me guessing
<thegrid__> thanks, im starting a ror, after some reading. does anyone have any ror they are proud of?
skrite has quit [Remote host closed the connection]
<jhass> *must resist registering startingaror.com*
<pontiki> DOOO EEETTT!!
<godd2> jhass can I have dibs on rorimproudof.com ?
<pontiki> it's a race
<jhass> not anymore
<jhass> we got 700+ tlds now
<pontiki> lol
pengin has quit [Remote host closed the connection]
<godd2> registrars hate him!
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> well, I guess "only" half of it or whatever are live, but anyway
charliesome has quit [Quit: zzz]
<pontiki> what a business opportunity! start a registrar just for joke domains. good for a day, a week, a month
sshao has quit [Remote host closed the connection]
<jhass> and startingaror.ninja actually sounds even better
yfeldblum has joined #ruby
<jhass> rorimproudof.guru
troulouliou_dev has quit [Ping timeout: 245 seconds]
troulouliou_dev has joined #ruby
<shevy> jhass is having fun
it0a has quit [Ping timeout: 264 seconds]
<godd2> rorimproudof.you
Musashi007 has joined #ruby
Flcn____ has quit [Quit: Be back later ...]
jottr has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Musashi007 has quit [Client Quit]
Flcn____ has joined #ruby
anaeem1 has joined #ruby
<godd2> I'll just use namecoin
cjm_ has left #ruby ["Leaving"]
klmlfl_ has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 245 seconds]
<jhass> yeah, the entire new gtld program is a huge joke
bitcycle has joined #ruby
<jhass> don't think such stuff will ever catch on though
troulouliou_dev has quit [Quit: Leaving]
klmlfl has joined #ruby
anaeem1 has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
phutchins has joined #ruby
SparkMasterTape has quit [Read error: Connection reset by peer]
Dopagod has quit [Remote host closed the connection]
b4rbz has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
silkfox has joined #ruby
freerobby has joined #ruby
blizzy has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
kyb3r_ has quit [Quit: Leaving]
Flcn____ has quit [Quit: Be back later ...]
phantomtiger has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensa_ has quit [Remote host closed the connection]
baweaver has quit [Read error: Connection reset by peer]
_djbkd has quit [Remote host closed the connection]
phantomtiger has quit [Client Quit]
baweaver has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
Flcn____ has joined #ruby
St1gma has joined #ruby
spider-mario has quit [Remote host closed the connection]
pu22l3r has joined #ruby
thisirs has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
_djbkd has joined #ruby
SilkFox_ has joined #ruby
LouisRoR has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
evanjs has joined #ruby
AlexRussia has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
mozzarella is now known as sam113101
sam113101 is now known as mozzarella
Spami has quit [Ping timeout: 245 seconds]
Hijiri has joined #ruby
rbennacer has joined #ruby
snowball1301 has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
behrz has joined #ruby
behrz has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
freerobby has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
davedev2_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
robert__ has joined #ruby
rbennacer has quit [Remote host closed the connection]
banister has joined #ruby
ctooley has quit [Quit: ctooley]
behrz has joined #ruby
behrz has quit [Client Quit]
jerius has quit []
klmlfl has quit [Remote host closed the connection]
chrishough has joined #ruby
dfinninger has quit [Remote host closed the connection]
Spami has joined #ruby
fabrice31 has joined #ruby
thumpba has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
meschi__ has quit [Quit: Leaving]
pengin has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
bronson has quit [Remote host closed the connection]
snath has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
meschi_ has joined #ruby
larissa has joined #ruby
gtrak has joined #ruby
mary5030 has quit [Remote host closed the connection]
x77686d has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
olivier_bK has joined #ruby
jakesyl_insomnia has joined #ruby
mary5030 has joined #ruby
x77686d has joined #ruby
nanoyak has joined #ruby
bklane has joined #ruby
davedev24_ has joined #ruby
charliesome has joined #ruby
jobewan has quit [Quit: Leaving]
jottr has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
_djbkd has quit [Remote host closed the connection]
ta_ has joined #ruby
evanjs has quit [Remote host closed the connection]
Tranquility has left #ruby [#ruby]
davedev2_ has quit [Ping timeout: 244 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
snath has joined #ruby
_djbkd has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
hmsimha has joined #ruby
tuelz has quit [Ping timeout: 245 seconds]
lw has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
behrz has joined #ruby
behrz has quit [Client Quit]
nanoyak has joined #ruby
thekkid has quit [Quit: Lost terminal]
chipotle has joined #ruby
vvivv has quit [Quit: Leaving]
max96at is now known as max96at|off
mercwithamouth has joined #ruby
icarus has quit [Remote host closed the connection]
synire has quit [Quit: WeeChat 0.4.2]
x77686d has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
tus has quit [Ping timeout: 245 seconds]
tus has joined #ruby
x77686d has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
DadoCe has joined #ruby
davedev2_ has joined #ruby
mrmargolis has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
apeiros_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 244 seconds]
DadoCe has quit [Ping timeout: 256 seconds]
patric100e99 has joined #ruby
rbennacer has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
jimms has quit []
thumpba has quit [Remote host closed the connection]
sevvie has joined #ruby
pasv^_^ is now known as pasv
pasv has quit [Changing host]
pasv has joined #ruby
sargas has joined #ruby
adriancb has joined #ruby
Hijiri has joined #ruby