havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Register and Identify with NickServ to talk || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
kies has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
jalopez has quit [Ping timeout: 272 seconds]
SpikeMaster has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
in0perable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
SpikeMaster has left #ruby [#ruby]
bensarz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bensarz has joined #ruby
<Ox0dea> bithon: $ gem uni `gem dep foo | cut -d\ -f3`
<Ox0dea> That might do in a pinch.
chouhoulis has joined #ruby
bensarz has quit [Client Quit]
marcdel has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
theRealGent has joined #ruby
<theRealGent> Is there something like a thread dump in ruby? I’m trying to find out what line of code a module is blocking on.
solocshaw has quit [Ping timeout: 272 seconds]
DarkElement has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
<Ox0dea> theRealGent: strace your process?
wolffles has quit [Quit: wolffles]
kies^ has joined #ruby
<theRealGent> Ox0dea: I feel like that would be too low level. Would that even alert me to what ruby line its on? Or just what syscall its blocked on?
kies has joined #ruby
<Ox0dea> theRealGent: The latter. :<
<Ox0dea> But it might be enough?
thone has quit [Quit: Lost terminal]
<theRealGent> Ox0dea: I’m running JRuby! jstack to the rescue!
<theRealGent> It’s stuck on RubyKernel.sleep
<Ox0dea> theRealGent: Did you invoke Kernel#sleep without an argument?
<theRealGent> Ox0dea: Not me, I’m trying to investigate a gem.
<theRealGent> stompgem
ta has joined #ruby
<theRealGent> It’s hanging on connect (I’m testing the scenario of connecting to a port with no service running on it)
bradleyprice has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<theRealGent> Ox0dea: And unfortunately, the rest of this stack trace is unreadable to me. I have no idea where in the actual gem it might be blocked.
<theRealGent> Stacktrace: http://pastebin.com/uqEyjXgL
<ruboto> theRealGent, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<theRealGent> oops :3
<Ox0dea> theRealGent: Can't say. :< Object.wait() is a JRuby thing (with which I'm unfamiliar).
<Ox0dea> >> 'img001.png
<ruboto> Ox0dea # => /tmp/execpad-66186e636b8b/source-66186e636b8b:2: unterminated string meets end of file ...check link for more (https://eval.in/494004)
<Ox0dea> Grr.
<Ox0dea> >> 'img001.png'.succ == 'img002.png'
<ruboto> Ox0dea # => false (https://eval.in/494005)
<theRealGent> Yeah it’s a java lock thing.
<theRealGent> But what’s weird is I have no stacktrace lines from the actual module I’m working on
ta has quit [Ping timeout: 276 seconds]
<theRealGent> Idk why this would not work… https://github.com/stompgem/stomp/blob/dev/lib/stomp/client.rb#L90
mary5030 has joined #ruby
sankaber has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
tectonic has quit []
JoshGlzBrk has joined #ruby
DLSteve has joined #ruby
atumzin has quit [Ping timeout: 260 seconds]
atumzin has joined #ruby
ruid has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
atumzin has quit [Changing host]
atumzin has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
wolffles has joined #ruby
hahuang61 has joined #ruby
dwfait has quit [Quit: dwfait]
Yzguy has joined #ruby
arescorpio has joined #ruby
Rodya_ has quit [Quit: Leaving...]
davedev24 has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: Zzz...]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atumzin has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
<theRealGent> is it possible to make ruby-install install the ruby development header files and such?
<theRealGent> A gem install is trying to find a file at .rubies/jruby-1.7.16/lib/native/include/ruby/ruby.h
<theRealGent> I’m pretty sure if I installed it with a package manager, it wouldnt place the files in that location.
Shidash has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
chipotle has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
brusora has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
mezcan has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 276 seconds]
existensil has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
devoldmx has quit [Remote host closed the connection]
Spleeze has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
hahuang61 has joined #ruby
speakingcode has quit [Remote host closed the connection]
wolffles has quit [Quit: wolffles]
baweaver has joined #ruby
Suntzu has joined #ruby
chouhoulis has joined #ruby
robh71 has joined #ruby
wolffles has joined #ruby
robh71 has quit [Max SendQ exceeded]
kegan_ has quit []
kfpratt has joined #ruby
djbkd has quit [Quit: Leaving...]
kfpratt has quit [Remote host closed the connection]
Spleeze has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
ta has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
TomPeed has joined #ruby
jalopez has joined #ruby
marr has quit []
pawnbox has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
kirun has quit [Quit: Client exiting]
djbkd has joined #ruby
dfinninger has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
rgrmatt has joined #ruby
dfinninger has quit [Remote host closed the connection]
quaristice has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
_seanc__ has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
cpup has quit [Ping timeout: 260 seconds]
m8 has quit [Quit: Sto andando via]
_seanc_ has quit [Ping timeout: 256 seconds]
_seanc__ is now known as _seanc_
nerium has joined #ruby
cpup has joined #ruby
mary5030 has quit [Remote host closed the connection]
theRealGent has quit [Quit: theRealGent]
mary5030 has joined #ruby
theRealGent has joined #ruby
Jardayn has quit [Quit: Leaving]
nerium has quit [Client Quit]
hahuang61 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
senayar has quit [Remote host closed the connection]
Encapsulation has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
lessless has joined #ruby
nerium has joined #ruby
seitensei has joined #ruby
skingsbu has joined #ruby
skingsbu has quit [Client Quit]
shinnya has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
kfpratt has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
framling has joined #ruby
shellie_ has joined #ruby
roshanavand has joined #ruby
rgrmatt has quit [Remote host closed the connection]
dwfait has joined #ruby
rgrmatt has joined #ruby
stannard has joined #ruby
scripore has joined #ruby
scottschecter has quit [Quit: Leaving]
roshanavand has quit [Ping timeout: 255 seconds]
yes`r has quit [Ping timeout: 260 seconds]
dorei has quit []
mary5030 has quit [Remote host closed the connection]
bensarz has joined #ruby
rgrmatt has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
devoldmx has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 250 seconds]
ayle has joined #ruby
ElFerna has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
yfeldblum has joined #ruby
mary5030 has quit [Remote host closed the connection]
jalopez has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
tvw has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
chouhoulis has joined #ruby
gokul has joined #ruby
aspire has quit [Quit: Leaving]
<dwfait> I notice that issues are disabled on github.com/ruby/ruby. Where would I go to get wider help for something I think is an issue? bugs.ruby-lang.org?
chouhoulis has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
<cscheib> dwfait: yes
Yzguy has joined #ruby
hagabaka has quit [Read error: Connection reset by peer]
rgrmatt has joined #ruby
hagabaka has joined #ruby
<headius> theRealGent: that would be a C ext most likely, and JRuby does not support C exts
<theRealGent> headius: it does it if you enable it.
<headius> not in 1.7
<headius> we removed it
<headius> it never worked very well and it was very slow
Channel6 has joined #ruby
phineasgage has joined #ruby
davejlong has joined #ruby
kobain has quit [Read error: Connection reset by peer]
brackson has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
phineasgage has quit [Ping timeout: 252 seconds]
KennethS_ has joined #ruby
djbkd has joined #ruby
<brackson> How can I limit the number of HTTP requests that a certain function in my Sinatra app can MAKE (not receive) to a website?
<brackson> The function tries to find a valid Imgur image link by making many random requests to random image filenames.
YourKicks has joined #ruby
bensarz has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #ruby
<jhass> measure time taken and sleep for the rest?
<brackson> what do you mean?
ElFerna has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<jhass> what do you mean by limit then? if not over a certain time period
gokul has quit [Remote host closed the connection]
Channel6 has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 250 seconds]
rgrmatt has joined #ruby
<brackson> I mean limit the number of requests that I make, as in 1000/day.
dwfait_ has joined #ruby
haraigo has joined #ruby
<Aria> Track how many you've made, delay or abort if you're over.
pawnbox has quit [Ping timeout: 260 seconds]
atomica__ has quit [Ping timeout: 245 seconds]
<Aria> There's no shortcut there.
<domgetter> brackson: keep a log of how many requests you're making, and conditionally do the rest of the function if the count is < 1000 in the last 24 hours
dwfait_ has quit [Client Quit]
Feyn has joined #ruby
<brackson> what's a recommended way to track them?
charliesome has joined #ruby
dwfait has quit [Ping timeout: 250 seconds]
<domgetter> Are you trying to make sure you don't get billed for some API service?
ayle has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<domgetter> That is, what's your motivation for rate-limiting yourself?
Contigi has joined #ruby
chipotle has quit [Quit: cheerio]
<brackson> domgetter: Pretty much
kobain has joined #ruby
<domgetter> If you have access to a database and are allowed to make a simple table, I would do that so that you could query to see how many times youve used the function in the last 24 hours
haraigo has quit [Ping timeout: 240 seconds]
harai has joined #ruby
<brackson> dogmetter: that's what i'll do, thanks
devoldmx has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<domgetter> plus later you can look at your usage patterns and analyze in different ways.
charliesome has joined #ruby
rgrmatt has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
quaristice has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
brackson has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
ElFerna has quit [Ping timeout: 260 seconds]
auzty has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
kfpratt has quit [Remote host closed the connection]
chipotle has joined #ruby
davejlong has quit []
colegatron has quit [Ping timeout: 250 seconds]
A124 has quit [Read error: Connection reset by peer]
KennethS_ has quit [Remote host closed the connection]
speakingcode has joined #ruby
A124 has joined #ruby
Gnut has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
FooMunki has quit [Quit: FooMunki]
YourKicks has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
chouhoulis has joined #ruby
djbkd has joined #ruby
mary5030 has quit [Remote host closed the connection]
JakFrist has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
kristofferR has joined #ruby
harai54 has joined #ruby
speakingcode has quit [Ping timeout: 246 seconds]
colegatron has joined #ruby
harai has quit [Ping timeout: 240 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
speakingcode has joined #ruby
wildlander has quit [Quit: Saliendo]
existensil has joined #ruby
ta has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
poguez_ has joined #ruby
wolffles has quit [Quit: wolffles]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Ping timeout: 255 seconds]
yes`r has joined #ruby
Apocalypse has joined #ruby
djbkd_ has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
jgt1 has quit [Ping timeout: 272 seconds]
djbkd_ has quit [Ping timeout: 265 seconds]
colegatron has quit [Ping timeout: 276 seconds]
krz has joined #ruby
mkosaki has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
harai54 has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
theRealGent has quit [Quit: theRealGent]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
kotk has joined #ruby
kotk_ has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
RegulationD has joined #ruby
mymosh77 has quit [Quit: ZNC - http://znc.in]
senayar has joined #ruby
colegatron has joined #ruby
seitensei has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
pdoherty has joined #ruby
Feyn has quit [Ping timeout: 245 seconds]
cpup has quit [Ping timeout: 276 seconds]
senayar has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
theRealGent has joined #ruby
krobzaur has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
dwfait has joined #ruby
yes`r has quit [Ping timeout: 260 seconds]
nerium has quit [Quit: nerium]
arescorpio has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
pawnbox has joined #ruby
cpup has joined #ruby
harai54 has joined #ruby
baweaver has joined #ruby
blackjid has quit [Max SendQ exceeded]
Kabaka has joined #ruby
mary5030 has joined #ruby
nerium has joined #ruby
blackjid has joined #ruby
haraigo has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
kotk_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
baweaver has quit [Ping timeout: 245 seconds]
harai54 has quit [Ping timeout: 256 seconds]
ruby-lang315 has joined #ruby
braincrash has quit [Quit: bye bye]
ruby-lang315 has quit [Client Quit]
Kabaka has quit [Ping timeout: 246 seconds]
kotk has quit [Ping timeout: 264 seconds]
Wsewolod has quit [Quit: Leaving]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
_RG has joined #ruby
chouhoulis has joined #ruby
snarkanoid has quit [Ping timeout: 246 seconds]
andywojo has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
lictor36 has joined #ruby
_RG has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Ping timeout: 265 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
ta has joined #ruby
yes`r has joined #ruby
tectonic has joined #ruby
ta has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.2]
rippa has joined #ruby
djbkd_ has joined #ruby
theRealGent has quit [Quit: theRealGent]
Niall has quit [Read error: Connection reset by peer]
djbkd_ has quit [Ping timeout: 260 seconds]
peeja has joined #ruby
roshanavand has joined #ruby
chipotle has quit [Quit: cheerio]
roshanavand has quit [Ping timeout: 250 seconds]
yes`r has quit [Ping timeout: 260 seconds]
kfpratt has joined #ruby
baweaver has joined #ruby
tectonic has quit []
mary5030 has quit [Remote host closed the connection]
riskish has joined #ruby
pawnbox has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
chipotle has joined #ruby
riskish has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
ramortegui has quit [Remote host closed the connection]
peeja has quit [Ping timeout: 260 seconds]
lictor36 has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 255 seconds]
dwfait has quit [Quit: dwfait]
dwfait has joined #ruby
dwfait has quit [Client Quit]
Meliodas has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Kabaka has joined #ruby
norc has joined #ruby
tildes has joined #ruby
baweaver has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 256 seconds]
norc is now known as Guest3286
duckpuppy has joined #ruby
cpup has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
speaking1ode has joined #ruby
yes`r has joined #ruby
Channel6 has joined #ruby
osiutino has joined #ruby
kfpratt has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
chouhoulis has joined #ruby
the_nick_me has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
chouhoulis has quit [Ping timeout: 240 seconds]
Guest3286 has quit [Ping timeout: 252 seconds]
chipotle has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
ta has joined #ruby
wnd has quit [Read error: Connection reset by peer]
wnd has joined #ruby
lessless has quit [Ping timeout: 256 seconds]
houhoulis has quit [Remote host closed the connection]
kfpratt has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 255 seconds]
djbkd_ has joined #ruby
djbkd_ has quit [Ping timeout: 245 seconds]
dingman has joined #ruby
dravine_ has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
dravine has quit [Ping timeout: 265 seconds]
dravine_ is now known as dravine
darkf has joined #ruby
_blizzy_ has quit [Quit: Leaving]
agent_white has joined #ruby
The_Phoenix has joined #ruby
DavidDudson has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 264 seconds]
DavidDudson has quit [Client Quit]
pawnbox has joined #ruby
duckpuppy has joined #ruby
seitensei has joined #ruby
Kabaka has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
seitensei has quit [Ping timeout: 272 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
Channel6 has quit [Ping timeout: 260 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
cyfr0n has quit [Ping timeout: 272 seconds]
Wsewolod has joined #ruby
Kabaka has quit [Ping timeout: 272 seconds]
devbug has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
hagabaka has quit [Ping timeout: 265 seconds]
speaking1ode has quit [Ping timeout: 245 seconds]
astrobunny has joined #ruby
bkxd has joined #ruby
dseitz has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
shinnya has joined #ruby
andywojo has joined #ruby
krobzaur has quit [Ping timeout: 240 seconds]
flughafen has quit [Ping timeout: 246 seconds]
Channel6 has joined #ruby
baweaver has quit [Remote host closed the connection]
chouhoulis has joined #ruby
andywojo has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
lessless has joined #ruby
poguez_ has joined #ruby
SOLDIERz has joined #ruby
Channel6 has quit [Quit: Leaving]
flughafen has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
thejamespinto has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kfpratt has joined #ruby
colegatron has quit [Ping timeout: 276 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slact has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.1/20151221065651]]
hahuang61 has joined #ruby
symm- has quit [Quit: Leaving...]
kknight has joined #ruby
Averna has joined #ruby
kfpratt has quit [Ping timeout: 256 seconds]
djbkd_ has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
ryez has joined #ruby
djbkd_ has quit [Ping timeout: 264 seconds]
colegatron has joined #ruby
lemur has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
howdoi has joined #ruby
tildes has joined #ruby
pawnbox has quit [Remote host closed the connection]
puria has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
moei has quit [Quit: Leaving...]
YaknotiS has quit [Ping timeout: 276 seconds]
Averna has quit [Ping timeout: 256 seconds]
kknight has quit [Ping timeout: 256 seconds]
YaknotiS has joined #ruby
claw has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
djbkd has quit [Quit: Leaving...]
Kabaka has joined #ruby
tildes has quit [Ping timeout: 245 seconds]
YaknotiS has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
claw has joined #ruby
Averna has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
duckpuppy has joined #ruby
tagrudev has joined #ruby
marcdel has quit [Ping timeout: 276 seconds]
tectonic has joined #ruby
solars has joined #ruby
marcdel has joined #ruby
djbkd has quit []
Averna has quit [Ping timeout: 264 seconds]
YaknotiS has joined #ruby
agent_white has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Axy has joined #ruby
Axy has joined #ruby
abra0 has quit [Ping timeout: 276 seconds]
smactive has joined #ruby
Mia has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
chouhoulis has joined #ruby
ur5us has joined #ruby
Gnut has quit [Ping timeout: 250 seconds]
abra0 has joined #ruby
nerium has quit [Quit: nerium]
djbkd has joined #ruby
Symbiosisz2 has quit [Ping timeout: 276 seconds]
Symbiosisz2 has joined #ruby
smactive has quit [Ping timeout: 276 seconds]
Averna has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
rrichardsr3 has joined #ruby
djbkd has quit []
DarkElement has joined #ruby
thejamespinto has joined #ruby
timonv has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
<DarkElement> Nokogiri question: If I have an html div like this: <div><span></span>Text I need<span></span></div>, How can I get the text I need?
<DarkElement> I already have the div element, wondering how to access the text in it
<DarkElement> Ah, I should try .text, I thought the spans would screw it up
<DarkElement> yea thanks DarkElement good stuff
ta has joined #ruby
codecop has joined #ruby
thejamespinto has quit [Ping timeout: 250 seconds]
kfpratt has joined #ruby
DarkElement has quit [Quit: Leaving]
duckpuppy has joined #ruby
ta has quit [Ping timeout: 255 seconds]
timonv has quit [Ping timeout: 255 seconds]
kfpratt has quit [Ping timeout: 276 seconds]
Salehi has joined #ruby
rrichardsr3 has quit [Ping timeout: 256 seconds]
lemur has quit [Remote host closed the connection]
vikaton has quit [Quit: Connection closed for inactivity]
rrichardsr3 has joined #ruby
Averna has quit [Ping timeout: 255 seconds]
rrichardsr3 has quit [Max SendQ exceeded]
rrichardsr3 has joined #ruby
GGMethos has quit [Ping timeout: 240 seconds]
Apocalypse has quit [Ping timeout: 260 seconds]
Kamilion has quit [Ping timeout: 244 seconds]
ceej has quit [Ping timeout: 246 seconds]
rideh has quit [Ping timeout: 250 seconds]
cout has quit [Ping timeout: 245 seconds]
demophoon has quit [Ping timeout: 240 seconds]
AustinMatherne has quit [Ping timeout: 256 seconds]
constantinexvi has quit [Ping timeout: 264 seconds]
epochwolf has quit [Ping timeout: 250 seconds]
cschneid has quit [Ping timeout: 250 seconds]
bradland has quit [Ping timeout: 260 seconds]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
KennethSteel has joined #ruby
akem has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
icarus has joined #ruby
juddey has joined #ruby
cyberfawkes has left #ruby [#ruby]
mark2 has joined #ruby
adgtl has quit [Remote host closed the connection]
gizmore has joined #ruby
constantinexvi has joined #ruby
epochwolf has joined #ruby
rideh has joined #ruby
bradland has joined #ruby
ceej has joined #ruby
cout has joined #ruby
demophoon has joined #ruby
haxrbyte has joined #ruby
GGMethos has joined #ruby
dtordable has quit [Remote host closed the connection]
gizless has quit [Ping timeout: 276 seconds]
rrichardsr3 has quit [Read error: Connection reset by peer]
Apocalypse has joined #ruby
cschneid has joined #ruby
AustinMatherne has joined #ruby
duckpuppy has quit [Ping timeout: 265 seconds]
mcmire has joined #ruby
dtordable has joined #ruby
kp666 has quit [Quit: Leaving]
jgt1 has joined #ruby
rrichardsr3 has joined #ruby
Juanchito has joined #ruby
Gnut has joined #ruby
the_nick_me has quit [Remote host closed the connection]
haxrbyte has quit [Quit: Leaving...]
jbrhbr has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
juddey has quit [Ping timeout: 240 seconds]
rrichardsr3 has joined #ruby
andywojo has joined #ruby
Kamilion has joined #ruby
Dimik has joined #ruby
mcmire has quit [Quit: leaving]
Amnez777 has quit [Ping timeout: 260 seconds]
icarus has quit [Quit: leaving]
bkxd has joined #ruby
chouhoulis has joined #ruby
rrichardsr3 has quit [Ping timeout: 246 seconds]
andywojo has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
elliot_ has joined #ruby
juddey has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
elliot_ has left #ruby [#ruby]
chouhoulis has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
dn` has joined #ruby
mcmire_ has joined #ruby
Wsewolod has quit [Ping timeout: 250 seconds]
Anderson69s_Deb has quit [Remote host closed the connection]
moeabdol has joined #ruby
mcmire_ has left #ruby [#ruby]
roshanavand has quit [Remote host closed the connection]
<jidar> what's the most correct way for loading a local file's class? "require './foo.rb'" ?
pawnbox_ has quit [Remote host closed the connection]
mcmire_ has joined #ruby
mcmire_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
blackmesa has joined #ruby
livcd has joined #ruby
mcmire_ has joined #ruby
dtordable has quit [Ping timeout: 264 seconds]
<livcd> is there a way to display dependencies for a remote gem ?
mcmire_ has quit [Client Quit]
skade has joined #ruby
Xiti has quit [Quit: Xiti]
kfpratt has joined #ruby
mcmire has joined #ruby
<mcmire> so i found a bug in ruby and i'm trying to make a bugfix... does anyone know how to run the tests? i've try ./configure and then make test but all i'm seeing is that no tests were run, which seems weird to me
roshanavand has joined #ruby
yes`r has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
KennethSteel has quit []
kfpratt has quit [Ping timeout: 272 seconds]
Hounddog has joined #ruby
axsuul has joined #ruby
<mcmire> @livcd yes you can say `gem specification -r GEM_NAME` to look up the gemspec for that gem, which will contain the dependencies
<mcmire> alternatively, rubygems.org also lists the deps for a gem
baweaver has joined #ruby
dkelman has joined #ruby
pawnbox has quit [Remote host closed the connection]
blaxter has joined #ruby
yes`r has joined #ruby
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
baweaver has quit [Ping timeout: 265 seconds]
Amnez777 has joined #ruby
the_nick_me has joined #ruby
mcmire has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ChameleonSix has joined #ruby
marcdel has quit [Ping timeout: 255 seconds]
ChameleonSix has left #ruby [#ruby]
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
AlexRussia has joined #ruby
azgil has joined #ruby
yashinbasement has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
adgtl has joined #ruby
nerium has joined #ruby
haxrbyte has joined #ruby
dkelman has quit [Read error: Connection reset by peer]
gambl0re has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
adgtl_ has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
adgtl has quit [Ping timeout: 240 seconds]
steffkes has joined #ruby
dkelman has joined #ruby
dkelman has quit [Client Quit]
jgt2 has joined #ruby
FernandoBasso has joined #ruby
jgt1 has quit [Ping timeout: 260 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
vdamewood has joined #ruby
roshanavand has quit [Remote host closed the connection]
cajone is now known as cajone_afk
edwinvdgraaf has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
jbrhbr has quit [Quit: Leaving.]
whiteline has quit [Ping timeout: 240 seconds]
marr has joined #ruby
roshanavand has joined #ruby
Ishido has joined #ruby
thejamespinto has joined #ruby
tectonic has quit []
haraigo has quit [Ping timeout: 240 seconds]
ta has joined #ruby
thejamespinto has quit [Ping timeout: 260 seconds]
<azgil> Moores law hits the roof
devoldmx has quit [Remote host closed the connection]
<azgil> need a small home quantum computer
haxrbyte has quit [Quit: Leaving...]
ta has quit [Ping timeout: 255 seconds]
Gnut has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
blackmesa has joined #ruby
ta has joined #ruby
xet7 has joined #ruby
adgtl_ has quit []
TheHodge has joined #ruby
seitensei has joined #ruby
dionysus69 has joined #ruby
Salehi has quit [Ping timeout: 256 seconds]
Salehi has joined #ruby
nerium has quit [Quit: nerium]
ur5us has quit [Remote host closed the connection]
Anderson69s_Deb has joined #ruby
seitensei has quit [Ping timeout: 260 seconds]
skade has joined #ruby
norc has joined #ruby
duckpuppy has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
niceperl has joined #ruby
kalopsian has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
duckpuppy has quit [Ping timeout: 265 seconds]
IdanM has joined #ruby
roshanavand has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
jgt3 has joined #ruby
slackbotgz has joined #ruby
rahul_j has joined #ruby
roshanavand has joined #ruby
jgt4 has joined #ruby
jgt2 has quit [Ping timeout: 276 seconds]
andywojo has joined #ruby
Lildirt has quit [Ping timeout: 246 seconds]
mdw has joined #ruby
jgt3 has quit [Ping timeout: 272 seconds]
whiteline has joined #ruby
xcesariox has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
chouhoulis has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
yashinbasement has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
ta has quit [Remote host closed the connection]
SenpaiSilver has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
blt has joined #ruby
Salehi has quit [Remote host closed the connection]
sandstrom has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
devoldmx has joined #ruby
kfpratt has joined #ruby
wolffles has joined #ruby
Gnut has joined #ruby
ElFerna has joined #ruby
rahul_j has quit [Quit: rahul_j]
devoldmx has quit [Ping timeout: 260 seconds]
Lildirt has joined #ruby
kfpratt has quit [Ping timeout: 250 seconds]
rahul_j has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has quit [Ping timeout: 245 seconds]
PedramT has joined #ruby
slackbotgz has quit [Remote host closed the connection]
<adaedra> It's quiet in here.
agit0 has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
roshanavand has quit [Remote host closed the connection]
lenwood has joined #ruby
robbyoconnor has quit [Client Quit]
blackgoat has joined #ruby
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby
kalopsian has joined #ruby
ItSANg___ has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
ryez has quit [Ping timeout: 252 seconds]
blackgoat has quit [Ping timeout: 246 seconds]
rahul_j has quit [Quit: rahul_j]
yes`r has quit [Ping timeout: 260 seconds]
kalopsian has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
tvw has joined #ruby
c0m0 has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 260 seconds]
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
HANJIN has joined #ruby
krz has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 265 seconds]
PedramT has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Max SendQ exceeded]
whiteline has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
PedramT has joined #ruby
robbyoconnor has joined #ruby
the_nick_me has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 272 seconds]
PedramT has joined #ruby
niceperl has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
the_nick_me has joined #ruby
beast has joined #ruby
arup_r has joined #ruby
slugabed has joined #ruby
The_Phoenix has quit [Read error: No route to host]
scepticulous has joined #ruby
The_Phoenix has joined #ruby
thejamespinto has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
lenwood has quit [Remote host closed the connection]
thejamespinto has quit [Ping timeout: 265 seconds]
andriusms has joined #ruby
araujo has quit [Read error: Connection timed out]
kfpratt has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
The_Phoenix has quit [Read error: No route to host]
araujo has quit [Max SendQ exceeded]
PedramT has quit [Ping timeout: 256 seconds]
kfpratt has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
The_Phoenix has joined #ruby
prestorium has joined #ruby
bithon has quit [Ping timeout: 260 seconds]
seitensei has joined #ruby
seitensei has joined #ruby
devoldmx has joined #ruby
VaibhavRajput has joined #ruby
VaibhavRajput has left #ruby [#ruby]
lenwood has joined #ruby
roshanav_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
seitensei has quit [Ping timeout: 240 seconds]
lubekpl has joined #ruby
moeabdol has joined #ruby
krz has quit [Read error: Connection reset by peer]
whiteline has joined #ruby
kalopsian has joined #ruby
c355e3b has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
duckpuppy has joined #ruby
PedramT has joined #ruby
lenwood has quit [Remote host closed the connection]
bithon has joined #ruby
p0wn3d_ has joined #ruby
HANJIN has quit [Quit: HANJIN]
kalopsian has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
banister has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 256 seconds]
devbug has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
osiutino has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
futilegames has joined #ruby
ellistaa has joined #ruby
<ellistaa> is a module the same thing as an abstract class in java?
<adaedra> not really
jgt4 has quit [Quit: WeeChat 1.3]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
<ellistaa> i’m reading design patterns & i’m trying to understand what they mean by abstract class
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
blackmesa has joined #ruby
the_nick_me has quit [Remote host closed the connection]
dionysus69 has joined #ruby
PedramT has joined #ruby
Sembei has quit [Quit: WeeChat 1.4-dev]
ElFerna has joined #ruby
mdw has joined #ruby
andywojo has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
the_nick_me has joined #ruby
<bithon> 1
jbrhbr has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<adaedra> usually, an abstract class is a class you can't instantiate because of the presence of unimplemented methods
andywojo has quit [Ping timeout: 246 seconds]
krz has joined #ruby
PedramT has quit [Remote host closed the connection]
chouhoulis has joined #ruby
ellistaa has quit [Quit: ellistaa]
roshanavand has joined #ruby
PedramT has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
ellistaa has joined #ruby
<ellistaa> adaedra: what is an unimplemented method
robbyoconnor has joined #ruby
<adaedra> A method without implementation: you say the method exist, but the class don't know how to do it.
pawnbox has quit [Remote host closed the connection]
jbrhbr has quit [Ping timeout: 240 seconds]
<adaedra> So the implementation is left to a class inheriting from the abstract class.
Yanko_ has joined #ruby
PedramT has quit [Remote host closed the connection]
Yanko_ has quit [Client Quit]
PedramT has joined #ruby
pawnbox has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
<ellistaa> that doesn’t make sense
<ellistaa> are you saying its like a person classs having a method called greet & the greet method is empty?
<adaedra> It's not possible in Ruby (except throwing NotImplemented or something), but yeah, a method which has no code at all (not even empty: nothing.)
toretore has joined #ruby
sankaber has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<ellistaa> weird
<adaedra> To follow you example, you could have an abstract class Person which declares a greet() method but doesn't implement it; you would have to derivate from Person (i.e. NicePerson) and implement the greet() method there. This way, you can handle Person objects you can greet, without knowing who really implements it, since they are in fact specialized objects.
<adaedra> It's for when you want to define WHAT a class can do but leave HOW to do it to specialized classes.
<adaedra> Also, a class with only unimplemented methods is an interface.
lubekpl has joined #ruby
mdw_ has joined #ruby
<ellistaa> oh i see
<ellistaa> interesting
futilegames has quit [Quit: futilegames]
<ellistaa> we dont’ really have this in ruby do we? is that because ruby is interpreted?
mdw has quit [Ping timeout: 240 seconds]
<adaedra> yes and no
r0bby_ has joined #ruby
r0bby_ has quit [Client Quit]
<adaedra> we don't have a way of creating an abstract method – you define and implement at the same time
lxsameer has quit [Ping timeout: 276 seconds]
<ellistaa> hm what’s the value of both?
<adaedra> ?
mymosh has joined #ruby
<ellistaa> what’s the value of an abstract class & what’s the value of defining and implementing at the same time
robbyoconnor has quit [Ping timeout: 250 seconds]
colegatron has quit [Ping timeout: 245 seconds]
<adaedra> Abstract classes permits to have homogenous objects filling interface conditions (provide a set of methods) without having to care about actual implementation.
<adaedra> For the latter, that's a matter of preference.
robbyoconnor has joined #ruby
<adaedra> Ruby dynamism makes it viable, I guess.
<ellistaa> adaedra: thhanks
lxsameer has joined #ruby
<adaedra> Also, Ruby cares less about type checking.
kfpratt has joined #ruby
<norc> There is some cases where you do interfaces without implementation in Ruby though. Say you provide an abstract library which calls a parser object, now for different formats you might write your own parser class.
<norc> But the interface is set by the way the abstract library uses that parser object (duck typing)
sdothum has joined #ruby
roshanav_ has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
kobain has joined #ruby
ellistaa has quit [Quit: ellistaa]
codecop has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
stannard has joined #ruby
kfpratt has quit [Ping timeout: 260 seconds]
shanemcd has quit [Read error: Connection reset by peer]
ellistaa has joined #ruby
shanemcd has joined #ruby
codecop has joined #ruby
stannard has quit [Ping timeout: 255 seconds]
colegatron has joined #ruby
icbm has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
ellistaa has quit [Quit: ellistaa]
dtordable has joined #ruby
scripore has joined #ruby
PedramT has quit [Ping timeout: 256 seconds]
ElFerna has quit [Ping timeout: 265 seconds]
PedramT has joined #ruby
DotMH has joined #ruby
jbrhbr has joined #ruby
santaclaus1 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
aryaching has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
andriusms has quit [Read error: Connection reset by peer]
FooMunki has joined #ruby
rooltak has joined #ruby
bithon has quit [Quit: WeeChat 1.3]
blt has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
DoubleMalt has joined #ruby
andywojo has joined #ruby
aryaching has quit []
dorei has joined #ruby
anisha has joined #ruby
anisha has quit [Client Quit]
blackmesa has joined #ruby
sgambino has joined #ruby
<dtordable> Hello ladies and gentleman
bkxd has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
andywojo has quit [Ping timeout: 255 seconds]
DotMH has quit [Ping timeout: 246 seconds]
shellie_ has quit [Quit: .]
bkxd has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
anisha has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
shellie_ has joined #ruby
chouhoulis has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
dtordable has quit [Ping timeout: 264 seconds]
Marsupermammal has joined #ruby
aryaching has joined #ruby
anisha has joined #ruby
thejamespinto has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
ruid has quit [Ping timeout: 256 seconds]
codehotter has joined #ruby
<codehotter> I need a patch for a gem that will be released in the next version but I need now. What's a good way to put this temporary hack in my code? Can I create a gem based on the upstream code, with a version higher than the current, but lower than the next upstream version?
shinnya has joined #ruby
<codehotter> can I create say 2.1.1.5 to update 2.1.1 and be updated by 2.1.2?
thejamespinto has quit [Ping timeout: 276 seconds]
anisha has quit [Quit: This computer has gone to sleep]
Spleeze has quit [Ping timeout: 240 seconds]
<apeiros> codehotter: yes
<toretore> yes, just edit the spec and build locally
aef has quit [Remote host closed the connection]
<apeiros> if you use a gemfile - we use the :git or :github version for such gems in our projects
ellistaa has joined #ruby
<codehotter> I would like bundle outdated to notify me of upstream 2.1.2
aef has joined #ruby
<codehotter> Even though I am using my patched 2.1.1
pawnbox has quit [Remote host closed the connection]
mdw has joined #ruby
mdw_ has quit [Ping timeout: 276 seconds]
ellistaa has quit [Client Quit]
hightower4 has joined #ruby
<hightower4> Hey, is there a practical difference in saying class X < Y ... end versus X = Class.new Y do ... end ?
arup_r has joined #ruby
PedramT_ has joined #ruby
wolffles has quit [Quit: wolffles]
PedramT has quit [Ping timeout: 246 seconds]
kfpratt has joined #ruby
<apeiros> hightower4: I don't understand your question
the_nick_me has quit [Remote host closed the connection]
PedramT_ has quit [Remote host closed the connection]
mdw has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
<hightower4> Is there any practical difference between these two syntaxes?
<hightower4> Or the effect is completely the same and synonymous?
pawnbox has joined #ruby
kalopsian has joined #ruby
<apeiros> the latter works with a closure
<apeiros> i.e. within the class body you can access local variables of the surrounding scope
<apeiros> otherwise they're iirc identical in effect
pawnbox has quit [Remote host closed the connection]
<hightower4> Right, sure. Ok, thanks
pawnbox has joined #ruby
kfpratt has quit [Ping timeout: 264 seconds]
dtordable has joined #ruby
anisha has joined #ruby
mdw has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
atomical has joined #ruby
kalopsian has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
seitensei has joined #ruby
ElFerna has joined #ruby
duckpuppy has joined #ruby
davedev24 has joined #ruby
PedramT has joined #ruby
Jardayn has joined #ruby
mary5030 has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
seitensei has quit [Ping timeout: 256 seconds]
lessless has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 256 seconds]
auzty has quit [Quit: Leaving]
PedramT has quit [Ping timeout: 255 seconds]
kalopsian has joined #ruby
stannard has joined #ruby
davedev2_ has joined #ruby
<GinoManWorks> How impossible would it be to compile ruby into a native executable?
<apeiros> GinoManWorks: it is possible with limitations
<apeiros> things like rubymotion generate binary code
<GinoManWorks> I guess any code that uses "eval" would be out?
<GinoManWorks> unless you embed a ruby interpreter
<apeiros> you can also create an application which embeds the dynamical ruby code
davedev__ has joined #ruby
ESpiney has joined #ruby
beardnbeauty has joined #ruby
<GinoManWorks> hmmm
dtordable has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<apeiros> I'm not aware of all limitations, sorry. take a look at the specific products which offer compilation.
dtordable has joined #ruby
stannard has quit [Ping timeout: 265 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Ping timeout: 240 seconds]
dtordable has quit [Remote host closed the connection]
yes`r has joined #ruby
dtordable has joined #ruby
beardnbeauty has left #ruby [#ruby]
Melpaws has joined #ruby
roshanavand has quit [Remote host closed the connection]
<Melpaws> can some one tell me what is wrong with this payload for json . Its not using the global variables correctly (just take it literal)
puria has joined #ruby
<GinoManWorks> I know this is a rubinius question, but rubinius uses llvm; does it compile the ruby down to llvm bytecode or is it a special bytecode?
Mekkis has quit [Max SendQ exceeded]
Mekkis has joined #ruby
SOLDIERz has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 272 seconds]
skakri has quit [Ping timeout: 246 seconds]
<c355e3b> GinoManWorks: i would ask in their gitter.im channel
<apeiros> Melpaws: single quoted strings don't interpolate
<Melpaws> hm
<apeiros> also: globals = eeeeeeeeeeeeeee(…)eeeew
<Melpaws> lol
<apeiros> Melpaws: replace '' with %{}
roshanavand has joined #ruby
<apeiros> %{{"auth": { … }}
<GinoManWorks> c355e3b: they have an IRC bridge, is that the freenode #rubinius channel?
<apeiros> {} are allowed without escaping in the content as long as they're balanced
blackmesa has joined #ruby
sankaber has quit [Remote host closed the connection]
skakri has joined #ruby
sankaber has joined #ruby
ruurd_ has joined #ruby
krobzaur has joined #ruby
<Melpaws> so like so @ apeiros :
<apeiros> correct
<apeiros> or use ruby 2.3 and a <<~ heredoc
<apeiros> then you can have nicer indentation
<apeiros> oh, you also forgot the # in front of $
<apeiros> #$var or #{$var}, just plain $var won't interpolate anywhere
<apeiros> #{} should imo be preferred
Yzguy has joined #ruby
vikaton has joined #ruby
chouhoulis has joined #ruby
PedramT has joined #ruby
Industrial has left #ruby ["Leaving"]
ruurd_ has quit [Client Quit]
tagrudev has quit [Remote host closed the connection]
ESpiney has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 276 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aef has quit [Remote host closed the connection]
aef has joined #ruby
steffkes has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
dlitvak has quit [Remote host closed the connection]
IdanM has left #ruby ["Textual IRC Client: www.textualapp.com"]
roshanavand has quit [Read error: Connection reset by peer]
roshanav_ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
moeabdol has quit [Ping timeout: 255 seconds]
TomPeed has joined #ruby
atumzin has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
mdw has joined #ruby
aef has quit [Remote host closed the connection]
aef has joined #ruby
Melpaws has quit [Quit: Leaving.]
howdoi has quit [Quit: Connection closed for inactivity]
kobain has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
sankaber has quit [Remote host closed the connection]
moeabdol has joined #ruby
sankaber has joined #ruby
nerium has joined #ruby
govg has joined #ruby
whippythellama has joined #ruby
skade has joined #ruby
monthy has joined #ruby
hinbody has joined #ruby
Encapsulation has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
ESpiney has joined #ruby
skade has quit [Ping timeout: 272 seconds]
toretore has quit [Ping timeout: 255 seconds]
kfpratt has joined #ruby
Cihan has quit []
FooMunki has left #ruby [#ruby]
kobain has joined #ruby
<norc> apeiros: Were you the one with the gist about unicoding issues?
kfpratt has quit [Ping timeout: 245 seconds]
roshanav_ has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
azgil has quit [Quit: Leaving]
Averna has joined #ruby
rahul_j has joined #ruby
duckpuppy has joined #ruby
PedramT has joined #ruby
DexterLB has joined #ruby
skade has joined #ruby
polishdub has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
rahul_j has quit [Client Quit]
PedramT has quit [Remote host closed the connection]
skade has quit [Client Quit]
PedramT has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
cashnguns has joined #ruby
civos has quit [Quit: Leaving]
stannard has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rahul_j has joined #ruby
Yzguy has joined #ruby
trwyth has joined #ruby
lubekpl has joined #ruby
PedramT has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
the_nick_me has joined #ruby
roshanav_ has joined #ruby
trwyth has quit [Client Quit]
Melpaws has joined #ruby
tommylommykins has quit [Quit: Lost terminal]
roshanavand has quit [Ping timeout: 255 seconds]
trwyth has joined #ruby
irk has quit [Ping timeout: 265 seconds]
roshanav_ has quit [Ping timeout: 260 seconds]
irk has joined #ruby
Outlastsheep has quit [Ping timeout: 265 seconds]
tommylommykins has joined #ruby
arup_r has quit []
PedramT has joined #ruby
solars has quit [Ping timeout: 260 seconds]
scripore has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has joined #ruby
blackmesa has joined #ruby
chouhoulis has joined #ruby
RegulationD has joined #ruby
Hammy_Work has joined #ruby
norc has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
kirun has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
hagabaka has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
thejamespinto has joined #ruby
nerium has quit [Quit: nerium]
RegulationD has quit [Ping timeout: 272 seconds]
B1n4r10 has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
freerobby has joined #ruby
abyss has quit [Ping timeout: 250 seconds]
dhollinger has joined #ruby
thejamespinto has quit [Ping timeout: 246 seconds]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
akem2 has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
diego1 is now known as diegoviola
akem has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 246 seconds]
mrtomme has quit [Ping timeout: 246 seconds]
mrtomme has joined #ruby
tildes has joined #ruby
nerium has joined #ruby
cyfr0n has joined #ruby
Averna has quit [Quit: Ex-Chat]
CloCkWeRX has joined #ruby
abyss has joined #ruby
blackmesa has joined #ruby
tildes has quit [Ping timeout: 272 seconds]
aspire has joined #ruby
akem2 has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
Wsewolod has joined #ruby
symm- has joined #ruby
kfpratt has joined #ruby
kobain has joined #ruby
babblebre has joined #ruby
blackjid has quit [Max SendQ exceeded]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
blackjid has joined #ruby
beast has quit [Quit: Leaving]
spider-mario has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
kfpratt has quit [Ping timeout: 265 seconds]
devoldmx has joined #ruby
adgtl has joined #ruby
seitensei has joined #ruby
cyfr0n has quit [Ping timeout: 255 seconds]
dtordable has quit [Ping timeout: 276 seconds]
PedramT has quit [Remote host closed the connection]
lipoqil has quit [Quit: Connection closed for inactivity]
Gnut has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
peeja has joined #ruby
kfpratt has joined #ruby
seitensei has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 276 seconds]
mark2 has left #ruby [#ruby]
PedramT has joined #ruby
cyfr0n has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Melpaws has quit [Quit: Leaving.]
dfinninger has joined #ruby
RegulationD has joined #ruby
benhuda has joined #ruby
TomyLobo has joined #ruby
kfpratt has quit [Ping timeout: 265 seconds]
hagabaka has quit [Ping timeout: 265 seconds]
PedramT has quit [Ping timeout: 264 seconds]
JakFrist has joined #ruby
ascarter has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
FooMunki has joined #ruby
<TomyLobo> i want to make a simple ruby script that runs a (starbound) server and then sends it commands via a socket, while interpreting a fixed set of specially prefixed commands itself. i've found a number of gems that deal with interactive CLI commands: highline, ripl, cliqr, readline. Which would be best suited?
kfpratt has joined #ruby
gambl0re has joined #ruby
arthurix has joined #ruby
B1n4r10 has joined #ruby
ellistaa has joined #ruby
Outlastsheep has joined #ruby
ellistaa has quit [Client Quit]
The_Phoenix has joined #ruby
dtordable has joined #ruby
dtordable has quit [Client Quit]
ellistaa has joined #ruby
B1n4r10_ has joined #ruby
lubekpl has joined #ruby
akem has joined #ruby
ellistaa has quit [Client Quit]
B1n4r10 has quit [Ping timeout: 264 seconds]
depesz has joined #ruby
TheBrayn has quit [Quit: ZNC - http://znc.in]
TheBrayn has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
<depesz> hi. i have array of hashes, and each hash, under specific key ("instances") has array of elements. sometimes one element, sometimes more. is there any simple way to get "all_instances" array that will contains all instances from all hashes in the original array ?
cdg has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
<havenwood> TomyLobo: You might consider Slop if simple option parsing suffices for your case.
blackmesa has quit [Quit: WeeChat 1.3]
chouhoulis has joined #ruby
thejamespinto has joined #ruby
cdg has quit [Remote host closed the connection]
<havenwood> depesz: Maybe #flat_map will do?
<TomyLobo> havenwood, i want the program to persist and ask for commands
cdg has joined #ruby
TheBrayn has quit [Client Quit]
dtordable has joined #ruby
<depesz> havenwood: it's possible. checking
adgtl_ has joined #ruby
<havenwood> TomyLobo: ahh, right
Gnut has joined #ruby
_blizzy_ has joined #ruby
TheBrayn has joined #ruby
spt0 has joined #ruby
<_blizzy_> hmm, how do I do this. I'm making a ruby version manager for windows, however, it would require a gem. however, that wouldn't work
adgtl_ has quit [Read error: No route to host]
<depesz> havenwood: looks perfect, thanks
adgtl__ has joined #ruby
<_blizzy_> as you would need ruby to install the gem, but the gem to use the version manager to install ruby
rahul_j has quit [Quit: rahul_j]
AlexRussia has joined #ruby
rahul_j has joined #ruby
scepticulous has quit [Ping timeout: 255 seconds]
s00pcan_ has quit [Ping timeout: 246 seconds]
adgtl has quit [Ping timeout: 245 seconds]
trwyth has joined #ruby
Lildirt has quit [Ping timeout: 245 seconds]
ellistaa has joined #ruby
s00pcan_ has joined #ruby
kaleido has joined #ruby
cajone_afk is now known as cajone
rahul_j has quit [Client Quit]
kies^ has joined #ruby
Lildirt has joined #ruby
rahul_j has joined #ruby
dfinninger has quit [Remote host closed the connection]
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Remote host closed the connection]
Wsewolod has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HANJIN has joined #ruby
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> _blizzy_: Making an installer or a switcher?
<_blizzy_> havenwood, both. it can install and switch
<_blizzy_> which is why I'm using ocra to make it into a exe
<_blizzy_> oh, if I use ocra, then it'll bundle the gem
mercwithamouth has joined #ruby
<havenwood> _blizzy_: uru is one option on windows (written in Go): https://bitbucket.org/jonforums/uru
Lildirt has quit [Ping timeout: 245 seconds]
<mercwithamouth> does anyone know if there's a standalone ruby repl that works like Mancy for javascript?
<_blizzy_> havenwood, yeah true, but I'm also doing this to learn.
<havenwood> _blizzy_: Or you could try Traveling Ruby.
<bougyman> mercwithamouth: pry.
santaclaus1 has quit [Remote host closed the connection]
<mercwithamouth> well i mean like not terminal based
Lildirt has joined #ruby
<mercwithamouth> just looking for something i can install fast on my work computer to toy around with on breaks without getting too intrusive
<bougyman> rubymine has some of that bloat.
B1n4r10_ has quit [Ping timeout: 255 seconds]
adgtl has joined #ruby
<mercwithamouth> hmm i suppose i'm making it too difficult. i do have a linux laptop i can just load up my tools on...
<havenwood> _blizzy_: Consider making the installer and switcher separate tools! :)
vdamewood has quit [Quit: Life beckons.]
<_blizzy_> havenwood, true.
<_blizzy_> I guess it would be a good idea also to be able to install devkit from my program.
adgtl__ has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
arup_r has joined #ruby
<havenwood> _blizzy_: You might also consider fetching your Ruby versions and checksums from the ruby-versions metadata repo: https://github.com/postmodern/ruby-versions
dfinninger has joined #ruby
howdoi has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<_blizzy_> thanks for thel ink, havenwood
<_blizzy_> *the link
ElFerna has quit [Ping timeout: 265 seconds]
Wsewolod has joined #ruby
kmckelvin has quit [Ping timeout: 260 seconds]
gambl0re has quit [Ping timeout: 250 seconds]
s00pcan_ has quit [Ping timeout: 260 seconds]
ellistaa has quit [Quit: ellistaa]
the_nick_me has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
jobewan has joined #ruby
quangv has joined #ruby
phutchins has joined #ruby
atomical has quit [Ping timeout: 265 seconds]
quangv has quit [Client Quit]
krz has quit [Quit: WeeChat 1.2]
<codehotter> is there a shorthand for var = bla ? bla : []
duckpuppy has joined #ruby
kfpratt has quit [Remote host closed the connection]
wolffles has joined #ruby
tildes has joined #ruby
<codehotter> What about a shorthand for if bla and bla.include?(sth)
<havenwood> codehotter: var = bla || []
pl1ght has quit [Ping timeout: 260 seconds]
<havenwood> codehotter: bla&.include(sth)
<adaedra> \o/
<havenwood> include?*
<codehotter> havenwood: Thanks! I love ruby
<havenwood> codehotter: The latter is the lonely person operator, introduced in 2.3. No prob!
<adaedra> ->&.
<adaedra> ooops, stabbed the lonely person.
pl1ght has joined #ruby
duckpuppy has quit [Ping timeout: 255 seconds]
<Papierkorb> my spaceship will rescue that person! <=>
<havenwood> >> ->(){}&.()
<ruboto> havenwood # => /tmp/execpad-a8e0475439d4/source-a8e0475439d4:2: syntax error, unexpected '.' ...check link for more (https://eval.in/494337)
<havenwood> Oh, right, not 2.3...
<havenwood> #=> nil
<adaedra> /o\
Guest30656 has left #ruby [#ruby]
inanepenguin has joined #ruby
shanemcd has quit [Remote host closed the connection]
futilegames has joined #ruby
inanepenguin has quit [Client Quit]
adgtl_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dionysus69 has joined #ruby
sp1rs has joined #ruby
ellistaa has joined #ruby
ElFerna has joined #ruby
musl has joined #ruby
chipotle has joined #ruby
adgtl has quit [Ping timeout: 250 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<codehotter> havenwood: wait, not 2.3? Then? Not yet?
<codehotter> Wait, latest release is 2.2.
lacuna has joined #ruby
<havenwood> codehotter: aye, eval.in hasn't been updated to 2.3.0 yeta
<havenwood> codehotter: But 2.3 is out!
<shevy> codehotter upgrade today!
Begi has joined #ruby
<codehotter> I'm a little new to all this. How stable is a release? Can I safely update all my production apps to use ruby 2.3?
<codehotter> Should I wait a few days? Months? Years?
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
ElFerna has quit [Ping timeout: 264 seconds]
depesz has left #ruby ["WeeChat 1.4-dev"]
<havenwood> codehotter: Some folk wait till the first TEENY release after a MINOR but 2.3.0 is stable.
solocshaw has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Quit: Leaving.]
moeabdol has quit [Ping timeout: 255 seconds]
<_blizzy_> damnit, why doesn't rubyinstaller just use a normal zip file
<_blizzy_> instead of 7zip >.>
nertzy has joined #ruby
<adaedra> because 7z > zip
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_> yeah but it makes it hard to open it without additional software
<adaedra> You can include 7za I think if you want to be able to handle them
trwyth has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
solocshaw has joined #ruby
kfpratt has joined #ruby
dfinninger has quit [Remote host closed the connection]
scripore has joined #ruby
dfinninger has joined #ruby
<shevy> codehotter depends on the quality of your ruby code really, if it is of good quality then upgrading is trivial
SCHAAP137 has joined #ruby
edwinvdgraaf has quit []
scripore has quit [Client Quit]
Encapsulation has quit [Ping timeout: 246 seconds]
wolffles has quit [Quit: wolffles]
trwyth has quit [Client Quit]
banister has joined #ruby
amclain has joined #ruby
zack6849 has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
synthroid has quit [Remote host closed the connection]
fernandomm has joined #ruby
trwyth has joined #ruby
fernandomm has quit [Client Quit]
sneakerhax has quit [Ping timeout: 265 seconds]
dopie has quit [Client Quit]
<shevy> and of course how much code depends on it too :)
trwyth has quit [Client Quit]
Xiti has joined #ruby
<shevy> I had migration pain only from 1.8 to 1.9; and to some extent lateron due to Encoding. Past that point it was no longer difficult
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
kmckelvin has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
dopie has joined #ruby
kfpratt has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 272 seconds]
cpup has joined #ruby
AlexRussia has joined #ruby
arup_r has quit [Remote host closed the connection]
agit0 has joined #ruby
B1n4r10 has joined #ruby
mdw has joined #ruby
lubekpl has quit [Ping timeout: 240 seconds]
nerium has quit [Quit: nerium]
sp1rs has quit [Ping timeout: 240 seconds]
mdw has quit [Client Quit]
pietr0 has joined #ruby
dtordable has quit [Read error: Connection reset by peer]
TomPeed has joined #ruby
RegulationD has quit [Remote host closed the connection]
robh71 has joined #ruby
mistermocha has joined #ruby
arup_r has joined #ruby
adgtl_ has quit []
wolffles has joined #ruby
mdw has joined #ruby
shanemcd has joined #ruby
jobewan is now known as jobewan_away
jobewan_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zack6849 has joined #ruby
zack6849 has joined #ruby
shanemcd has quit [Ping timeout: 255 seconds]
ico has joined #ruby
redeeem has joined #ruby
<TomyLobo> i want to make an interactive prompt in ruby. kinda like irb, except each line isn't a ruby expression but a command that i would like to handle. is there a gem for that which takes the parsing and help generation and all that stuff off of me?
<TomyLobo> i just tried cliqr, but it seems like i'm abusing instead of using a tool there
norc has joined #ruby
<tubbo> TomyLobo: you don't necessarily need a gem, like you could use `gets`
<tubbo> but there's also highline, https://github.com/JEG2/highline
framling has quit [Ping timeout: 240 seconds]
B1n4r10 has quit [Read error: Connection reset by peer]
<TomyLobo> well highline isnt really more helpful than gets :)
B1n4r10 has joined #ruby
<TomyLobo> in my case
<TomyLobo> this has to work with multicraft in the end, so i cant use anything that doesnt work with a cat on both ends, basically :)
<TomyLobo> cat|./foo.rb|cat
<TomyLobo> it can't spam the prompt all the time, for instance
<TomyLobo> or try to position stuff on the terminal
<norc> >> require 'ripper'; puts Ripper.sexp('a = (if 1 then 2 else 3)')
<ruboto> norc # => ...check link for more (https://eval.in/494369)
<norc> What the heck?
ElFerna has joined #ruby
<norc> Is this a bug in Ripper?
redeeem has quit [Quit: Page closed]
trwyth has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
trwyth has quit [Client Quit]
<norc> Oh Im silly.
<norc> >> require 'ripper'; puts Ripper.sexp('a = (if 1 then 2 else 3 end)')
<ruboto> norc # => program ...check link for more (https://eval.in/494374)
devoldmx has joined #ruby
<norc> I feel like Ripper should throw an exception on parse errors. =S
seitensei has joined #ruby
<norc> >> a = puts((1 if false))
<ruboto> norc # => ...check link for more (https://eval.in/494378)
<norc> >> a = puts(1 if false)
<ruboto> norc # => /tmp/execpad-201be5235605/source-201be5235605:2: syntax error, unexpected modifier_if, expecting ')' ...check link for more (https://eval.in/494379)
tectonic has joined #ruby
<shevy> TomyLobo that sounds less than a prompt and more like a pipe; in your case, you'd have to match whether it is the last element, before showing that prompt
trwyth has joined #ruby
<TomyLobo> shevy well in the end it is a prompt, but it shows up on a web page
<TomyLobo> ok let me clarify
morfin60 has joined #ruby
<TomyLobo> it is a prompt (interface) but there should be no prompt (text)
<shevy> lol
ElFerna has quit [Ping timeout: 250 seconds]
<TomyLobo> anyway, i think i'll just pipe gets into the rcon interface i'm wrapping here
<TomyLobo> it's a silly game server i'm wrapping
morfin has quit [Read error: Connection reset by peer]
<TomyLobo> it has an rcon interface, but no console on stdin/stdout or anything
devoldmx has quit [Ping timeout: 265 seconds]
seitensei has quit [Ping timeout: 246 seconds]
c0m0 has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
<TomyLobo> but multicraft expects such a console, so i'm putting some ruby between multicraft and that game server :)
jbrhbr has quit [Quit: Leaving.]
tectonic has quit []
rahul_j has quit [Quit: rahul_j]
wolffles has quit [Ping timeout: 255 seconds]
axsuul has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
last_staff has quit [Client Quit]
cdg has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
blaxter has quit [Quit: foo]
gambl0re has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
jbrhbr has joined #ruby
wolffles has joined #ruby
mdw has joined #ruby
jbrhbr has quit [Client Quit]
DavidDudson has joined #ruby
JoshGlzBrk has joined #ruby
mistermocha has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 245 seconds]
akem has quit [Remote host closed the connection]
jbrhbr has joined #ruby
shanemcd has joined #ruby
jbrhbr has quit [Client Quit]
jbrhbr has joined #ruby
idefine has joined #ruby
s1kx has joined #ruby
shanemcd has quit [Ping timeout: 245 seconds]
Hounddog has quit [Ping timeout: 250 seconds]
rkazak has joined #ruby
benhuda has joined #ruby
hxegon has joined #ruby
blt has joined #ruby
hxegon has quit [Client Quit]
hxegon has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
jobewan is now known as jobewan_away
zdman135 has joined #ruby
redeeem has joined #ruby
ramfjord has joined #ruby
robh71 has joined #ruby
jobewan_away is now known as jobewan
redeeem has quit [Client Quit]
jobewan has quit [Client Quit]
redeeem has joined #ruby
sanguisdex has joined #ruby
__chris has joined #ruby
wolffles has quit [Quit: wolffles]
<__chris> Do subclasses also inherit the parents included modules?
dfinninger has quit [Remote host closed the connection]
redeeem_ has joined #ruby
redeeem_ has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
redeeem has quit [Quit: Page closed]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tref has joined #ruby
<Tref> hey guys, why does enumerable not have bang methods?
arup_r has joined #ruby
dingman has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
<Tref> Im trying to use map! on a nokogiri node set and im wondering why map is available but not map!
[Butch] has joined #ruby
shanemcd has joined #ruby
domgetter has joined #ruby
Begi has quit [Ping timeout: 250 seconds]
<hxegon> __chris https://eval.in/494385
mistermocha has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
<__chris> Thanks hxegon
<hxegon> __chris no problem
RegulationD has joined #ruby
mistermocha has quit [Remote host closed the connection]
kfpratt has joined #ruby
pskosinski has quit [Quit: No Ping reply in 180 seconds.]
<hxegon> Tref so you're getting a NoMethodError when you call #map! ?
<Tref> hxegon: yeah
<Tref> I mean if you look at the docs there is no map! method
<Tref> only map
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Tref> I mean obviously I could create a new var for the result of map but im just wondering why there’s no method there
pskosinski has joined #ruby
codecop has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
<hxegon> Tref can't figure out myself, but I looked and there is a #nokogiri channel here :)
<shevy> trivial explanation: they might have forgotten to add it
<hxegon> Tref shevy quite possible. I would check the channel and open an issue if they don't know.
ramfjord has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<Tref> well theres no map method in nokogiri
<Tref> the NodeSet module just includes Enumerable
juddey has joined #ruby
Danishman has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Jardayn has quit [Quit: Leaving]
Jardayn has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
<hxegon> Tref Probably not intentional to not have #map! then. Open a new issue up and see what they say
shanemcd has quit [Remote host closed the connection]
bb010g has joined #ruby
BackEndCoder has joined #ruby
jobewan has joined #ruby
sneakerhax has joined #ruby
colegatron has joined #ruby
snarkanoid has joined #ruby
mimic289 has joined #ruby
duckpuppy has joined #ruby
<hxegon> by the way, morning shevy :D
<shevy> hey
<shevy> how did you know that I woke up not long ago?
<hxegon> shevy reading 'what is monad?' articles over and over apparently gave me psychic powers shevy
<shevy> ack
<shevy> did you understand them?
<hxegon> I feel close, but it's like sand running through my fingers.
<domgetter> They're just monoids in the category of endofunctors. What's the big deal?
preyalone has joined #ruby
mimic289 has quit [Ping timeout: 252 seconds]
<hxegon> aww man, why didn't they just say that domgetter!? it's so clea- and I lost it.
trwyth has joined #ruby
<domgetter> Just take the lambda cube, turn it on its side, say a few incantations, and you'll get it
<preyalone> Help, I can see my new specs v0.21 on rubygems.org, but when I run `gem install specs`, it grabs an older version, v0.20. https://rubygems.org/gems/specs
<shevy> hxegon hehe
axsuul has joined #ruby
puria has quit [Quit: Leaving]
<hxegon> I can point to something and say, that is a monad sometimes, but not that is not a monad
<domgetter> preyalone: how long ago did you push?
duckpuppy has quit [Ping timeout: 260 seconds]
dtordable has joined #ruby
ellistaa has quit [Quit: ellistaa]
<domgetter> hxegon: most of the enumerable methods are "monadic" in that they return something that is enumerable
peeja has quit [Ping timeout: 245 seconds]
<domgetter> I always feel nice and safe chaining those puppies
<domgetter> preyalone: if it's only been a few minutes, it's probably a caching issue on the gem server. try gem install specs -v 0.21
hagabaka has joined #ruby
axsuul has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
jobewan is now known as jobewan_away
jobewan_away is now known as jobewan
<preyalone> ERROR: Could not find a valid gem 'specs' (= 0.21) in any repository
<shevy> preyalone I sometimes have this with internet-connection problems
ss_much has joined #ruby
<domgetter> hmm. I just ran gem list specs -r
<shevy> sometimes it may take a bit before it gets synced to the main server
<domgetter> and v 0.21 came up in the list
<preyalone> does gem have an equivalent to apt-get update, that forcibly updates its cache of available package versions?
ElFerna has quit [Ping timeout: 255 seconds]
<domgetter> gem update specs
<shevy> preyalone you can go to https://rubygems.org/gems/specs/versions/0.21 and download manually; or try a "wget https://rubygems.org/downloads/specs-0.21.gem", then a "gem install ./specs-0.21.gem"
agit0 has quit [Read error: Connection reset by peer]
<domgetter> preyalone: what does `gem list specs -r` say?
stannard has quit [Remote host closed the connection]
dfinninger has joined #ruby
blt has quit [Quit: WeeChat 1.3]
haraigo has joined #ruby
<preyalone> lol, even so, gem install still can't find version 0.21 https://www.irccloud.com/pastebin/Psxg1Wg8/
<ruboto> preyalone, we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/4a6cd2993b59eb24ff8c
<ruboto> irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
stannard has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> preyalone yeah it requires syncing; can you not download the gem via wget?
<domgetter> shevy: prey made the gem, it's just a sanity check I think
<domgetter> I'm pretty sure if you wait a bit, the website and the server will become consistent
<preyalone> i'll make some tea. 6 months ago, the sync felt instantaneous but i understand why this happens in order to scale rubygems
haraigo has quit [Read error: No route to host]
<domgetter> Welcome to the world of eventual consistency :)
Trynemjoel has quit [Ping timeout: 264 seconds]
haraigo has joined #ruby
DoubleMalt has joined #ruby
tmtwd has joined #ruby
robh71 has joined #ruby
Asher has quit [Quit: Leaving.]
haraigoshi has joined #ruby
benhuda has quit [Ping timeout: 265 seconds]
<shevy> well it's indeed sorta strange
<shevy> my gems are available almost instantly
<shevy> perhaps the name itself is a weird one?
DotMH has joined #ruby
<shevy> I mean "specs"
Asher has joined #ruby
benhuda has joined #ruby
synthroid has quit [Remote host closed the connection]
haraigo has quit [Ping timeout: 256 seconds]
<preyalone> could be a bug in rubygems 2.5.1, part of the new ruby 2.3 released Christmas 2015?
monthy has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
<preyalone> system Mac OS X El Capitan rubygems can find and install specs -v 0.21, but not rvm installed ruby 2.0, gems 2.4.3
<preyalone> gem sources => https://rubygems.org/
<shevy> pretty weird
baroquebobcat has joined #ruby
Spleeze has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
snockerton has joined #ruby
DotMH has quit [Ping timeout: 272 seconds]
axsuul has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
naftilos76 has joined #ruby
c355e3b has joined #ruby
synthroid has joined #ruby
arup_r has quit []
jbrhbr has quit [Quit: Leaving.]
_blizzy_ has quit [Read error: Connection reset by peer]
Tref has quit [Quit: Tref]
_blizzy_ has joined #ruby
DavidDudson has joined #ruby
toretore has joined #ruby
tomphp has joined #ruby
mcmire has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
norc_ has joined #ruby
_blizzy_ has joined #ruby
symm- has quit [Quit: Leaving...]
symm- has joined #ruby
Darin_ has joined #ruby
dotix has joined #ruby
djbkd has joined #ruby
kadoppe has quit [Ping timeout: 265 seconds]
Darin_ has quit [Client Quit]
<shevy> "gem install specs -v 0.21" still does not work
redeeem has joined #ruby
<shevy> are you sure it does not have to do with the name?
ruby-lang387 has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
howdoi has quit [Quit: Connection closed for inactivity]
trwyth has joined #ruby
redeeem has left #ruby [#ruby]
<shevy> well actually
kadoppe has joined #ruby
<shevy> the fact that one can download it via the link directly
<dotix> hey guys, is it normal to create classes dynamically and use const_set ?
<shevy> but not via gem install on the commandline
<shevy> that sounds like a bug indeed
ruby-lang387 has left #ruby [#ruby]
<shevy> dotix you can define constants?
darkf has quit [Quit: Leaving]
<greenhat> was seeing the same issue with rgeo-geojson - cannot install the latest but it is listed on the website
norc_ has quit [Changing host]
norc_ has joined #ruby
norc_ has quit [Changing host]
norc_ has joined #ruby
<norc_> dotix: Normal, no. Possible, yes.
<shevy> greenhat I see
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dotix> shevy not really, I'm interested for something like: you have a module and a method like A.new_with_json(path) and it would be nice to return a A::B (where B is the class) . Class name will be determined based on the filename in the path.
ruby-lang516 has joined #ruby
dionysus70 has joined #ruby
cpup has quit [Ping timeout: 246 seconds]
mrtomme has quit [Ping timeout: 246 seconds]
j0bk has quit [Ping timeout: 246 seconds]
Junaos has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
<dotix> That module A basically can create classes with some methods in them, or inherit them from a Base, doesn't matter. I'm courios if it's a good practice or not
j0bk_ has joined #ruby
cpup has joined #ruby
Junaos has joined #ruby
robh71 has joined #ruby
<norc_> dotix: It really depends, generally generating classes dynamically is not good practice thoguh.
<naftilos76> Hi is there a way to compile an executable from a ruby script other than the project: https://github.com/ryanbooker/rubyscript2exe which is for 1.8.7 only?
celly has joined #ruby
<norc_> I mean it can be a neat way of solving certain problems.
<norc_> naftilos76: Cross platform? Or do you have a specific target in mind?
DoubleMalt has quit [Remote host closed the connection]
<naftilos76> linux 64
<naftilos76> norc_,
yfeldblum has quit [Ping timeout: 250 seconds]
ruby-lang516 has quit [Client Quit]
FernandoBasso has quit [Ping timeout: 256 seconds]
<naftilos76> norc_, do you have anything in mind?
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc_> naftilos76: There is several solutions
<naftilos76> norc_, the only one i found so far is the one ^
<naftilos76> norc_, can you pls give me a link or two?
<norc_> naftilos76: I think the most flexible solution would be to use jruby with warbler.
<norc_> If Java works for you.
devoldmx has joined #ruby
wolffles has joined #ruby
<naftilos76> does that make the ruby code to java? and then it can be compiled into a binary executable?
mrtomme has joined #ruby
seitensei has joined #ruby
tbuehlmann has joined #ruby
<norc_> naftilos76: It just packages the Ruby application into a Jar, which can be run from any JRE.
dtordable has quit [Ping timeout: 265 seconds]
<naftilos76> ok i see, never used java...
dopie has quit [Quit: Lost terminal]
<c355e3b> oh man warbler is great
<naftilos76> norc_, thanks though
mistermocha has joined #ruby
spt0 has quit [Ping timeout: 264 seconds]
koba has joined #ruby
koba is now known as ta0
dtordable has joined #ruby
shanemcd has joined #ruby
ico has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
dopie has joined #ruby
<norc_> naftilos76: Aside from that, there is a handful of solutions like ruby_ship
devoldmx has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
tildes has quit [Ping timeout: 265 seconds]
<norc_> None of them are stellar though, because it is so easy to install Ruby under Linux systems - even as a local user.
<naftilos76> norc_, let me google that
seitensei has quit [Ping timeout: 264 seconds]
Marsupermammal has joined #ruby
<havenwood> naftilos76: Traveling Ruby is another to look at.
symm- has quit [Quit: Leaving...]
hinbody has quit [Quit: leaving]
djbkd has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
p0wn3d_ has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
hinbody has joined #ruby
FernandoBasso has joined #ruby
skcin7 has joined #ruby
paha80 has joined #ruby
roshanavand has joined #ruby
dfinninger has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
shellie_ has quit [Remote host closed the connection]
hakat has joined #ruby
marcdel has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<naftilos76> havenwood, thanks seem like the best solution for me.
tmtwd has quit [Ping timeout: 246 seconds]
<naftilos76> havenwood, do you know if the executable is easily reversable?
idefine has joined #ruby
<havenwood> naftilos76: It's not obfuscated at all.
yfeldblum has joined #ruby
dfinninger has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
<havenwood> naftilos76: It's not Ruby but you might like looking at Crystal-lang, which has a Ruby-like syntax and nice modern stdlib and compiles to machine code: http://crystal-lang.org
trwyth has joined #ruby
<naftilos76> havenwood, i have already invested too much time in ruby
mcmire has joined #ruby
<naftilos76> i can't just switch langs!
<havenwood> naftilos76: As a Rubyist I find it trivial to write simple Crystal scripts.
axsuul has quit [Ping timeout: 246 seconds]
<c355e3b> naftilos76: if you want a secure ruby app distribution, your looking at an appliance situation.
<naftilos76> havenwood, let me have a look at crystal then
shinnya has quit [Ping timeout: 276 seconds]
dfinninger has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 276 seconds]
<mcmire> has anyone tried to compile ruby trunk lately? i just did and i'm getting an error: unable to open output file 'enc/ascii.o': 'No such file or directory'. i followed the directions here: https://github.com/ruby/ruby/blob/trunk/doc/contributing.rdoc#running-tests
PedramT_ has joined #ruby
asam has joined #ruby
trwyth has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
B1n4r10 has joined #ruby
roshanavand has quit [Remote host closed the connection]
kalopsian has quit [Ping timeout: 245 seconds]
PedramT has quit [Ping timeout: 272 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
ta0 has quit [Remote host closed the connection]
djbkd has joined #ruby
ta0 has joined #ruby
roshanavand has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
asam has quit [Quit: Page closed]
diegoviola has quit [Ping timeout: 240 seconds]
ico has joined #ruby
mistermocha has joined #ruby
<naftilos76> havenwood, it is just amazing how people create new compilers and languages just like that! Crystal looks nice. Thanks.
kalopsian has joined #ruby
marcdel has joined #ruby
mistermocha has quit [Remote host closed the connection]
<havenwood> naftilos76: You're welcome.
<havenwood> mcmire: PASS all 1010 tests
n_blownapart has joined #ruby
ahmedsaleh has joined #ruby
mistermocha has joined #ruby
davedev__ has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
scripore has joined #ruby
rodfersou has joined #ruby
ahmedsaleh has quit [Quit: WeeChat 0.4.2]
<mcmire> when i check the enc folder inside of my build directory, there is indeed no ascii.o. i'm not all that familiar with C and make and all that, and this is my first time building ruby. what would be a reason that ascii.o wouldn't get created?
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
shanemcd has joined #ruby
shanemcd has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
<mcmire> if it helps any, when i ran ./configure i do see several lines that look like "checking for somethingsomething.......no", but ./configure doesn't give an error at the end, so i'm not sure if that's the issue or not.
andywojo has joined #ruby
<mcmire> also i'm using os x el capitan, using clang to compile
roshanavand has quit [Remote host closed the connection]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
futilegames has quit [Quit: futilegames]
ur5us has joined #ruby
<mcmire> oh... if i'm building ruby inside of a custom directory like build/, it's saying that build/enc needs to exist.
zack6849 has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
roshanavand has quit [Remote host closed the connection]
tectonic has joined #ruby
<shevy> I have not tried it but with default configure, using a custom directory like build/ works fine
dionysus69 has quit [Ping timeout: 240 seconds]
<shevy> svn checkouts tend to be weirder for me sometimes
celly has quit [Remote host closed the connection]
dfinninger has joined #ruby
gccostabr has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
ElFerna has joined #ruby
jonnyro has joined #ruby
mistermocha has quit [Remote host closed the connection]
bradleyprice has joined #ruby
mistermocha has joined #ruby
Guest38 has joined #ruby
JoshGlzBrk has joined #ruby
duckpuppy has joined #ruby
<mcmire> which neither ./configure nor make does on its own. sigh.
nerium has joined #ruby
lightstalker has quit [Quit: WeeChat 0.4.2]
mistermocha has quit [Remote host closed the connection]
naftilos76 has quit [Quit: Αποχώρησε]
duckpuppy has quit [Ping timeout: 265 seconds]
synthroid has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
pwned_ has left #ruby [#ruby]
synthroid has joined #ruby
djbkd_ has joined #ruby
davedev2_ has joined #ruby
tvw has quit [Remote host closed the connection]
dmonster has joined #ruby
dotix has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 250 seconds]
<mcmire> ok, so precreating those directories worked, but i'm still getting the same kind of errors from make. it's trying to link miniruby, whatever that is, and now it doesn't know what dmyext.o or miniprelude.o are. they do exist in the root directory, but i guess they aren't getting copied to build/.
djbkd_ has quit [Ping timeout: 265 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colegatron has quit [Ping timeout: 260 seconds]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
azgil has joined #ruby
tmtwd has joined #ruby
axsuul has joined #ruby
norc_ has quit [Ping timeout: 252 seconds]
norc has quit [Ping timeout: 252 seconds]
blackgoat has joined #ruby
dotix has joined #ruby
monsieurp has quit [Quit: Lost terminal]
__chris has quit [Quit: Leaving]
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
atomical has quit [Ping timeout: 240 seconds]
gccostabr has quit [Ping timeout: 255 seconds]
ta0 has quit [Ping timeout: 276 seconds]
prestorium has quit [Quit: Leaving]
ChameleonSix has joined #ruby
<ChameleonSix> hello does anyone know a channel for life advice
hagabaka has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
paha80 has quit [Quit: Textual IRC Client: www.textualapp.com]
marcdel has quit [Ping timeout: 265 seconds]
dotix has quit [Ping timeout: 260 seconds]
colegatron has joined #ruby
stannard has quit [Remote host closed the connection]
<havenwood> !kick ChameleonSix "You've been warned repeatedly about off-topic questions. Try the #ruby-offtopic channel."
ChameleonSix was kicked from #ruby by ruboto ["You've been warned repeatedly about off-topic questions. Try the #ruby-offtopic channel."]
<hxegon> ...
<havenwood> (Also good for hangman.)
<havenwood> hxegon: hi
ChameleonSix has joined #ruby
<ChameleonSix> Yeah sorry
<hxegon> havenwood hey.
<hxegon> I feel like I just witnessed some sort of irc koan
<ChameleonSix> ?
<havenwood> ChameleonSix: Go through the Koans!: http://rubykoans.com
<hxegon> Cham6: does a dog have ruby-nature? havenwd: nothing.
kfpratt has quit [Remote host closed the connection]
<ChameleonSix> why?
<havenwood> ChameleonSix: That you might be enlightened.
<ChameleonSix> Oh tnx
robh71 has joined #ruby
ramfjord has joined #ruby
<ChameleonSix> I will bookmark it
<ChameleonSix> im too tired now
n_blownapart has quit [Remote host closed the connection]
atomical has joined #ruby
robh71 has quit [Client Quit]
<ChameleonSix> Anything else?
<ChameleonSix> Book recomendations about metasploit?
<ChameleonSix> (ruby)
<hxegon> TIME IS A FLAT CIRCLE
<havenwood> ChameleonSix: Go through the Koans a few times first.
<ChameleonSix> alright
<ChameleonSix> is it truly good
<adaedra> You won't know if you don't do them.
n_blownapart has joined #ruby
<hxegon> ChameleonSix no one can tell you what the matrix is friend.
andywojo has quit [Ping timeout: 246 seconds]
<ChameleonSix> hmm
<ChameleonSix> i will try it in the morning
FooMunki has quit [Quit: FooMunki]
Dimik has joined #ruby
marcdel has joined #ruby
FooMunki has joined #ruby
n_blownapart has quit [Remote host closed the connection]
FooMunki has quit [Client Quit]
PedramT_ has quit [Remote host closed the connection]
PedramT has joined #ruby
<ChameleonSix> can you recommend any good hacking books
<Radar> ChameleonSix: Sotp
<Radar> stop*
<ChameleonSix> ?
<Radar> Go through Ruby Koans first to gain an understanding of the Ruby language.
<ChameleonSix> I understand it
<Radar> Then, when you're done, take the next step
<Radar> you are trying to move your right foot while your left foot is still in the air
<ChameleonSix> hmm ok
hinbody has quit [Quit: leaving]
stannard has joined #ruby
<adaedra> If you understand it, koans should be a piece of cake.
<ChameleonSix> nice advice
pawnbox has joined #ruby
AlphaAtom has joined #ruby
<ChameleonSix> first things come first i guess
<ChameleonSix> you cant run before learning how to walk
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: Leaving...]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ChameleonSix> nix is linux and mac osx
robh71 has joined #ruby
unreal has quit [Ping timeout: 255 seconds]
tbuehlmann has left #ruby [#ruby]
<hxegon> ChameleonSix they are both derivative.
<ChameleonSix> this kaons is like bible
<ChameleonSix> koans*
<hxegon> ChameleonSix no, koans are by there nature contradictory to the nature of western religion
unreal has joined #ruby
<ChameleonSix> ok
<hxegon> in that christianity, islam etc. are preached, vs being contemplative like a koan
benhuda has joined #ruby
<slash_nick> then koans are like the Dhammacakkappavattana Sutta?
<ChameleonSix> Im an atheist
<hxegon> ChameleonSix buddhism doesn't claim a deity, so no conflict there.
shanemcd has joined #ruby
<ChameleonSix> what does .to_s precicely do
<adaedra> I thought you knew Ruby.
<slash_nick> ChameleonSix: s is for string
<hxegon> slash_nick koans came way after that bidness
<ChameleonSix> oh ok
dstarh has joined #ruby
<ChameleonSix> .new creates a new object?
<ChameleonSix> if im right
<adaedra> That's not the koans you need, it's a getting started tutorial.
<hxegon> >> String.new # ChameleonSix try this stuff out in pry or irb before asking plz
<ruboto> hxegon # => "" (https://eval.in/494451)
<ChameleonSix> yes yes
<ChameleonSix> ik
colegatron has quit [Ping timeout: 272 seconds]
<ChameleonSix> Cya tomorrow
<hxegon> love and peace
ChameleonSix has left #ruby [#ruby]
lipoqil has joined #ruby
redeeem has joined #ruby
shanemcd has quit [Ping timeout: 255 seconds]
atomical_ has joined #ruby
jottr has joined #ruby
devoldmx has joined #ruby
slash_nick is now known as \nick
dtordable has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
seitensei has joined #ruby
dtordable has joined #ruby
wolffles has left #ruby [#ruby]
FooMunki has joined #ruby
wolffles has joined #ruby
devbug has joined #ruby
atomical has quit [Ping timeout: 245 seconds]
jottr has quit [Client Quit]
jottr has joined #ruby
idefine_ has joined #ruby
synthroid has quit []
symm- has joined #ruby
idefine has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 265 seconds]
seitensei has quit [Ping timeout: 240 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
redeeem has quit [Quit: Page closed]
<shevy> hxegon hipster!
colegatron has joined #ruby
idefine has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
<hxegon> shevy or a trigun fan
<shevy> if I consider http://www.biophp.org/minitools/melting_temperature/ ugly, is something wrong with me? I am trying to just extract the algorithm they are using... but the sheer spaghetti code so distracts me
wolffles has left #ruby [#ruby]
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
selfflow has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> shevy: The PHP is strong with this one
\nick is now known as slash_nick
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
<shevy> yeah... one can get to the meaning ... but my eyes feel disturbed... perhaps I should write a php_cleaner.rb file ...
<Zarthus> shevy: needs more &nbsp;
djbkd has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
<shevy> hehe
<Zarthus> shevy: it starts with error_reporting(0); turn it on.
snockerton1 has joined #ruby
<Zarthus> shevy: it throws undefined variable $_GET['primer'] immediately when you open the page.
robh71 has joined #ruby
<Zarthus> So uh. Yeah. This was made by someone with no love for writing good code.
idefine has quit [Read error: Connection reset by peer]
selfflow has left #ruby [#ruby]
idefine_ has joined #ruby
toretore has quit [Ping timeout: 255 seconds]
<shevy> yeah it's sorta strange... I mean I remember from my old php code that php isn't as pretty as ruby, but that seems really spaghetti code on a higher level
Smcnaughts has joined #ruby
snockerton has quit [Ping timeout: 265 seconds]
<Zarthus> pretty typical PHP code, it's why it has a bad reputation
<Zarthus> partially, anyways.
<Papierkorb> tbh that kind of code is frowned upon in the php community
ruby-lang878 has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
<Zarthus> Papierkorb: yes, but it is also common.
<Papierkorb> Looks like some math guy just wrote it down
icarus has joined #ruby
idefine has joined #ruby
<Papierkorb> It's really common for that kind of people to produce pretty messy code
<Papierkorb> Although that one in particular goes a bit over board ;)
mdw has quit [Quit: Sleeping Zzzzz]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
saltsa has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 276 seconds]
jottr_ has joined #ruby
skcin7 has joined #ruby
volty has joined #ruby
baweaver has quit [Remote host closed the connection]
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 255 seconds]
ESpiney has quit [Quit: Leaving]
Smcnaughts has left #ruby [#ruby]
Smcnaughts has joined #ruby
Smcnaughts has left #ruby [#ruby]
PedramT has quit [Ping timeout: 260 seconds]
moei has joined #ruby
moei has quit [Remote host closed the connection]
moei has joined #ruby
darin_thompson has joined #ruby
shellie_ has joined #ruby
whippythellama has quit [Ping timeout: 240 seconds]
<darin_thompson> Hello?
shellie_ has quit [Client Quit]
shellie_ has joined #ruby
ruby-lang878 has quit [Ping timeout: 252 seconds]
ElFerna has quit [Ping timeout: 265 seconds]
<darin_thompson> I was having some issues with registering my name, I am hoping my messages are being sent now.
<mcmire> yes, we can see your messages.
<darin_thompson> ok, good. No more clutter.
atumzin has quit [Read error: Connection reset by peer]
redeeem has joined #ruby
atumzin has joined #ruby
<mcmire> :+1:
<darin_thompson> So, I am trying to get better at programming Ruby. I can hack a site together with Rails and gems, with some basic functionality and bootstrap styling, but I have a project in mind but no idea how to start.
<darin_thompson> I want to program the Farkle dice game.
ElFerna has joined #ruby
yfeldblum has joined #ruby
<mcmire> is ruby your first language, or have you been programming previously?
elaptics`away is now known as elaptics
<darin_thompson> Ruby is my first.
<slash_nick> sounds like fun!
Melpaws has joined #ruby
lele has quit [Quit: Coyote finally caught me]
volty has quit [Ping timeout: 260 seconds]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darin_thompson> I have done an online bootcamp and know what Ruby is and am comfortable with the parts of Ruby. (i.e. I know what a class is and hashes are) but I don't know what to do with it.
volty has joined #ruby
<kaleido> the generic answer is
lele has joined #ruby
<kaleido> think of something you do every day, and try to automate it
<shevy> toilet!
<kaleido> start making it ugly
<darin_thompson> I know that answer, but my current job has nothing to do with computers.
moeabdol has quit [Ping timeout: 256 seconds]
<kaleido> and youll figure out how to make it more elegant
<mcmire> i'm not familiar with that game, but i would say to start off with, identify a tiny version of the game that you can start working on. oftentimes people try making these giant plans up front and that tends to be intimidating. but if you have a small piece then you can finish that in a reasonable amount of time, and then start building upon that.
snockerton1 has quit [Quit: Leaving.]
<shevy> darin_thompson simplest thing is - if you know that you can automate something, it does not matter what it is, on a computer, just focus and do that, the rest will come on its own
redeeem_ has joined #ruby
aef has quit [Remote host closed the connection]
redeeem_ has quit [Client Quit]
<kaleido> i am by no means "good" at it, but ive written some pretty simple web apps using sinatra and cuba
<dtordable> Yeah, toilet!
<kaleido> they start out looking like php, but ive managed to clean them up pretty nicely. by my standards anyways :)
rkazak has quit [Quit: Sleep.....ing....]
<darin_thompson> How do I automate High Value Asset escorts in the Persian gulf?
B1n4r10 has quit [Ping timeout: 246 seconds]
<kaleido> and by php i mean they looked like sloppy written feces wrapped in cow dung
<darin_thompson> haha
<shevy> darin_thompson do you use computers for any of it?
<kaleido> darin_thompson, doesnt have to be work related necessarily
<darin_thompson> No. I use a 50.Cal heavy Barrel Machine Gun and an M4 Carbine
<kaleido> oh my
<kaleido> forget ruby, lets talk guns awhile
<kaleido> :D
<shevy> darin_thompson so you are trolling
aef has joined #ruby
andywojo has joined #ruby
zdman135 has quit [Remote host closed the connection]
<shevy> the lone guy out in the desert fully armed - but no computer anywhere
<darin_thompson> No. Not at all. I started doing what I do now, because up front I was told I was going to be working with computers. <--- not truth
<kaleido> oh, you believed the recruiter :(
<darin_thompson> So, when I am not doing what I do, I am programming.
rkazak has joined #ruby
<mcmire> that's really awesome, major props, both for what you do and for learning ruby :)
<kaleido> my cousin believed the recruiter, but instead of being an MP he was a "cannon cocker"
<darin_thompson> Everyday people tell me Im too smart to be doing what I do. And I agree with them. haha. Thanks a lot. haha
Cihan has joined #ruby
<kaleido> although his service did get him some points when he was applying to be a sheriff
mloy has quit [Ping timeout: 260 seconds]
<shevy> kaleido a sheriff like those in Rambo I!
<darin_thompson> Thats definitely what a lot of people end up doing.
<dtordable> Lol
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darin_thompson> For awhile I was thinking about doing private contracting, but after being in the military I want a job less "stressful"
<dtordable> I got fired from Spain military
<darin_thompson> Ole!
zdman135 has joined #ruby
stannard has quit [Remote host closed the connection]
<dtordable> Can't fuck so that
snockerton has joined #ruby
* hxegon thinks dtordable has his/her priorities straight.
<dtordable> But got fired because of an illness
<dtordable> Me?
<shevy> dtordable hah I had to go through a psychological review because I stated that I had difficulties with "authority"
<darin_thompson> Ok, so I have a Ruby question actually now.
andywojo has quit [Ping timeout: 276 seconds]
<hxegon> darin_thompson about bang methods :D
<hxegon> ?
mloy has joined #ruby
<darin_thompson> haha
<darin_thompson> I see what you did there...
<dtordable> shevy yeah, may I help? LOL
celly has joined #ruby
CihanKaygusuz has quit []
<darin_thompson> I was creating a generic Person class and wanted to create a get_name method. But when I try to print the greeting it doesn't pick up the name variable. I have to set the name as an argument when instantiating the new object.
ramfjord has quit [Ping timeout: 240 seconds]
<hxegon> darin_thompson try not to use get_* methods, just make it #name.
dotix has joined #ruby
<shevy> darin_thompson store it in @name
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> then it will be available
<hxegon> darin_thompson if you don't put @ in front of variable name, you can't use it outside the scope. In this case that is get_name.
<darin_thompson> so @name = gets.chomp?
<shevy> darin_thompson yes that would be one way
<hxegon> yup
<darin_thompson> And I thought that's why you set @name to name in the initialize method
CihanKaygusuz has joined #ruby
<shevy> yes, it has an initial value there
diegoviola has quit [Quit: WeeChat 1.3]
robh71 has joined #ruby
<shevy> but you modify the variable "name" in another method, which is local; if you want to invoke the method, you could try self.name = gets
<darin_thompson> Oh, that's too confusing. haha
<mcmire> you might not need the @name = name in your initializer. that isn't serving a purpose right now.
polishdub has quit [Quit: Leaving]
<darin_thompson> I see. I just see everyone doing that, but I guess they aren't doing exactly what I am trying to do either.
icarus has quit [Quit: leaving]
robh71 has quit [Client Quit]
idefine_ has quit [Remote host closed the connection]
<shevy> eh you almost got it, it's a tiny thing there really
idefine has joined #ruby
celly has quit [Ping timeout: 246 seconds]
snockerton has quit [Remote host closed the connection]
<shevy> you can also put the method calls that you do, into "def initialize", so that you don't have to manually call them. Usually "NameOfClass.new" should be enough to invoke it
<mcmire> yeah, sometimes you will see something where the name is passed to the initializer. so Person.new(name), for instance. in that case, then you'd take name as an argument to the initializer and then set @name = name inside of #initialize. but in this case you're doing something different.
gambl0re has quit [Ping timeout: 256 seconds]
<darin_thompson> Oh, so in initialize you would have Person.new.get_name?
<darin_thompson> if I were to use that same method?
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
<mcmire> you can do that, although i would keep the initializer simple. oftentimes you don't want the initializer to do things like get input from the user. design-wise it makes things complicated and more difficult to work with later.
<darin_thompson> So you think it's better to just do @name = gets.chomp and then puts "Hello #{@name}"?
<hxegon> darin_thompson in the same function?
<darin_thompson> No.
snockerton has joined #ruby
<darin_thompson> get_name is the gets.chomp greeting is the puts @name
<jidar> what's the most correct way for loading a local file's class? "require './foo.rb'" ?
<darin_thompson> I've got it working now. Just clarifying.
<hxegon> jidar require_relative might be what you're looking for
stannard has joined #ruby
<hxegon> darin_thompson btw, if you want to conditionally define it https://eval.in/494497
<mcmire> yeah - so - what i might do is rename "get_name" to "get_name_from_user" or "ask_user_for_name". you don't want to rename it to "name" because then it would override the name method you've created by saying attr_accessor :name
snockerton has quit [Client Quit]
<shevy> darin_thompson just "get_name" should be enough, no need for Person.new when you are inside of the class; you only need that outside of your class, if you instantiate a new object
<hxegon> mcmire good point.
<mcmire> and then change @name = gets.chomp inside of get_name or whatever you want to name it, and then you're done
<darin_thompson> ok. That's sounds better.
<shevy> right now you manually call methods on your object there, like "darin.get_name", but you can put that part into your class, which will make using your class easier in the long run. for this code you showed, it may not matter much, but if you build larger things, it will be easier to keep things simple and the whole logic in the class itself
<darin_thompson> You guys are too smart. This is awesome.
<_blizzy_> is there any way to extract files from a installer using ruby?
dtordable has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
sandstrom has quit [Quit: My computer has gone to sleep.]
dtordable has joined #ruby
<mcmire> _blizzy_ by "installer" what do you mean?
<_blizzy_> mcmire, like the ruby installer for windows
<hxegon> >> foo ||= gets.chomp # more concise way of writing 7-10 in my example
<ruboto> hxegon # => undefined method `chomp' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/494498)
<hxegon> why would that work /me
zenlot3 has joined #ruby
<shevy> _blizzy_ I guess you have to extract first anyway
<_blizzy_> shevy, hmm, ok.
<shevy> most of the windows things follow some installer as part of an .exe if you got one... I forgot the name
pawnbox has quit [Remote host closed the connection]
zenlot2 has quit [Ping timeout: 245 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
nerium has quit [Quit: nerium]
duckpuppy has joined #ruby
<jidar> hxegon: think this is what I was looking for, thanks,
senayar has joined #ruby
senayar has joined #ruby
uxp has quit [Read error: Connection reset by peer]
uxp has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
ElFerna has joined #ruby
<shevy> Can't find 'rubygems-update' in any repo. Check `gem source list`.
<shevy> :(
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
kith has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
TheHodge has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
kfpratt has joined #ruby
dotix has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
gccostabr has joined #ruby
jschmid has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
volty has quit [Quit: Konversation terminated!]
pawnbox has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
<darin_thompson> @shevy you were saying something about calling a method on the instance of the class?
kfpratt has quit [Ping timeout: 255 seconds]
snockerton has joined #ruby
stannard has quit [Remote host closed the connection]
atumzin has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
tvw has joined #ruby
dfinninger has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 245 seconds]
<Phage> Can anyone help me with this issue? https://gist.github.com/phildk/83ac562271bf022090e4
<mcmire> Phage what's the issue?
<havenwood> Phage: json.keys #=> ["kind", "data"]
<Phage> It doesn't return the value of the key "id"
<Phage> havenwood: what?
<mcmire> ^ what havenwood said
Begi has joined #ruby
nerium has joined #ruby
<Phage> I'm not sure I understand?
<mcmire> there is no "id" key
<mcmire> the only two keys in that JSON data are "kind" and "data"
atumzin has quit [Read error: Connection reset by peer]
kies^ has quit [Ping timeout: 250 seconds]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
axsuul has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<Phage> mcmire: havenwood thanks, sorry for my stupidity :p
<mcmire> no worries.
colegatron has quit [Ping timeout: 260 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whippythellama has joined #ruby
Begi2 has joined #ruby
ta has joined #ruby
freerobby has quit [Quit: Leaving.]
axsuul has quit [Ping timeout: 240 seconds]
Begi has quit [Ping timeout: 264 seconds]
JakFrist has joined #ruby
moeabdol has joined #ruby
<shevy> darin_thompson yes, you are doing this right now: cat = Cat.new; cat.name = 'Tom'; mouse = Mouse.new; mouse.name = 'Jerry' ... could be easier if you do it: cat = Cat.new 'Tom'
<darin_thompson> Oh, I see.
aaeron has joined #ruby
<darin_thompson> I thought you meant something like, darin = Person.new would automatically run the get_name_from_user method.
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy> yeah
rkazak has quit [Quit: Sleep.....ing....]
SCHAAP137 has quit [Remote host closed the connection]
saltsa has joined #ruby
<shevy> you put that method into initialize() for instance
<shevy> I usually have a method called run() that handles that logic for me and I use that from within def initialize()
aaeron has quit [Client Quit]
aaeron has joined #ruby
<darin_thompson> I honestly don't know how I would do that.
moeabdol has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
JakFrist has quit [Ping timeout: 272 seconds]
Yzguy_ has joined #ruby
Yzguy has quit [Read error: Connection reset by peer]
<darin_thompson> But it's 2:30AM over here, so I am heading to sleep. Thanks for all the help, and I will definitely be on here more often now that I have it working.
dtordable has quit [Remote host closed the connection]
dtordable has joined #ruby
pawnbox has joined #ruby
colegatron has joined #ruby
<shevy> you just put get_name_from_user into def initialize
Begi2 has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
<darin_thompson> It's that simple?
<shevy> yeah
jottr_ has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
<darin_thompson> Ok, when I did that, the greeting doesn't work properly now.
rkazak_ has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
<shevy> darin_thompson for instance https://gist.github.com/shevegen/3d2fe0f86f2b70e0c1c0
Jackneill has quit [Ping timeout: 276 seconds]
atomical_ has quit [Quit: Textual IRC Client: www.textualapp.com]
skcin7 has joined #ruby
andywojo has joined #ruby
mary5030 has quit [Remote host closed the connection]
<darin_thompson> So, the order in which you have your initialize method set up affects the outcome of the program?
dotix has joined #ruby
baweaver has joined #ruby
skcin7 has quit [Client Quit]
vikas027 has joined #ruby
aaeron has quit [Quit: aaeron]
<shevy> the order is important
VeryBewitching has joined #ruby
Renich has joined #ruby
andywojo has quit [Ping timeout: 265 seconds]
<shevy> usually build from simple to more complex
<shevy> while keeping things simple
<VeryBewitching> G'day folks.
<shevy> you can think of your class as the factory, the methods are the different steps in the factory
<shevy> you build a car... first attach the base skeleton... then the wheels... and so on... last comes the colour painting
redeeem has quit [Ping timeout: 252 seconds]
<shevy> and the test/ directory will be the monkeys that you put into your car
<shevy> to drive it
<darin_thompson> Right. But I tried it and called the get_name method before @name = name and the string was blank during the greeting method.
dotix has quit [Ping timeout: 260 seconds]
<darin_thompson> haha. True.
<darin_thompson> But if you set your variables first, then all should be good.
baweaver has quit [Ping timeout: 272 seconds]
atumzin has quit [Read error: Connection reset by peer]
<shevy> yeah
<shevy> you have only two important variables there
<shevy> @name and @age
CloCkWeRX has joined #ruby
atumzin has joined #ruby
<darin_thompson> But if they aren't called first or set first I should say. Then the methods won't work properly.
idefine has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Ping timeout: 255 seconds]
Jardayn has quit [Quit: Leaving]
<shevy> yeah
<shevy> well, I usually also use a method called reset()
<shevy> which sets the default state (but can also be used to .reset() on the object to reset it to its default state again)
<darin_thompson> That's what I thought. It's working now though. Like a charm. It's the small things that count.
<shevy> \o/
Trynemjoel has joined #ruby
<darin_thompson> I think that's beyond me. But if you know anyone willing to trade some remote training for free work let me know. I want to learn bad.
devoldmx has joined #ruby
seitensei has joined #ruby
BTRE has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
<darin_thompson> Thanks again @shevy for your help. I am out for real this time
seitensei has quit [Ping timeout: 245 seconds]
senayar has quit [Remote host closed the connection]
mcmire has quit [Quit: zzz]
BTRE has joined #ruby
lacuna has quit [Remote host closed the connection]
darin_thompson has quit [Ping timeout: 252 seconds]