gja has quit [Quit: This computer has gone to sleep]
<reppard>
could someone give me a recommendation on stubbing TCPSocket
macuser is now known as Guest96218
aspires has joined #ruby
Tarential has quit [Excess Flood]
Guest96218 has quit [Remote host closed the connection]
<reppard>
i have a class that opens a TCPSocket object and I would like to test without actually hitting tcpsockets constructor method
Tarential has joined #ruby
i_s_ has joined #ruby
<reppard>
i am going at this with minitest
i_s has quit [Ping timeout: 256 seconds]
<csffsc_>
cool
<csffsc_>
I haven't done what you are trying to do..
<csffsc_>
but I'm learning OO, trying to convert a 7-8function script
|jemc| has quit [Ping timeout: 256 seconds]
zz_tsykoduk is now known as tsykoduk
Davey has quit [Quit: Computer has gone to sleep.]
<reppard>
csffsc_: good luck =)
<csffsc_>
not particularly sure how to group things - some variables need to be made availiable
<csffsc_>
to other functions
<csffsc_>
yeah
<csffsc_>
I'm reading a pragmatic object oriented design book
<reppard>
i recommend the ruby pickaxe book
<csffsc_>
ah yes, only have the electronic copy
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<reppard>
i read the whole chapter on testing today but the examples are really simplistic. i don't really know how to apply that info to more complicated classes that construct standard lib objects
<reppard>
which i guess...could me i am going at the design all wrong
osvico has joined #ruby
ChronocityLC has joined #ruby
<reppard>
i have a SocketReader class. In the initialize method i set @socket = TCPSocket.new(host,port)
<reppard>
which will obviously try to open a socket
<reppard>
how do i mock or stub that? =)
marcdel has joined #ruby
habanany has joined #ruby
habanany has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 248 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
<csffsc_>
uh
rm_dro is now known as obs
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
Lewix has quit [Remote host closed the connection]
nkts has quit [Quit: x]
radic has joined #ruby
Lewix has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
stkowski has joined #ruby
lfox has quit [Quit: ZZZzzz…]
DonRichie has quit [Quit: Verlassend]
<reppard>
well, i know how to use sockets. i am trying to test classes that open sockets...without having to hit an actual server or open a local server
<csffsc_>
yeah, understand why you want to test it, however I dont have any experience with it
radic_ has quit [Ping timeout: 272 seconds]
<csffsc_>
I'm sure there are gems that automate network / socket testing
tsykoduk is now known as zz_tsykoduk
<reppard>
i guess i sorta just wanted to take the pure approach and stick with testing everything with minitest
gyzmodo has joined #ruby
|jemc| has joined #ruby
nari has joined #ruby
Aryasam has quit [Ping timeout: 265 seconds]
MrPoT4tO has joined #ruby
mrpot4to_ has joined #ruby
nari has quit [Ping timeout: 240 seconds]
i_s_ has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
<csffsc_>
any luck?
araujo has quit [Quit: Leaving]
<reppard>
nah
<reppard>
not yet
<reppard>
haha
<reppard>
i mean
<reppard>
i could easily create a port to connect to locally
<reppard>
something just feels hacky about that
T__T has joined #ruby
Bira has joined #ruby
<jrobeson>
reppard, i'm only familiar with web based service testing atm in ruby :(
<heidar>
Is there a way of getting this on one line? count = ARGV[3] || 10; count = count.to_i
<sam113101>
count = (ARGV[3] || 10).to_i
bigkevmcd has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
<heidar>
cheers
vipjun has joined #ruby
WillAmes has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 248 seconds]
WillAmes has joined #ruby
tomoyuki28jp has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<tomoyuki28jp>
I've been trying to install ruby 2.0.0-p247 on my Mac 10.8.5 by using rbenv 0.4.0. I've tried all the ways found online, but readline does not work fine. (I cannot type utf-8 characters on irb) Any idea how I can make it work?
vlad_starkov has joined #ruby
chrishough has quit [Quit: chrishough]
thesheff17 has quit [Ping timeout: 272 seconds]
gmas has quit [Ping timeout: 272 seconds]
ayaz has joined #ruby
DanKnox is now known as DanKnox_away
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leonidlm has joined #ruby
<tobiasvl>
tomoyuki28jp: sounds like it's just a charset mismatch somewhere?
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcope has quit [Ping timeout: 256 seconds]
roolebo has quit [Ping timeout: 245 seconds]
roolebo has joined #ruby
flops has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
jbpros has joined #ruby
flops has joined #ruby
marcdel has joined #ruby
agent_white has quit [Quit: leaving]
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
a1ph4g33k has quit [Quit: Leaving]
roolebo has quit [Ping timeout: 272 seconds]
soheil has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
roolebo has joined #ruby
jrhe has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
gyre007 has joined #ruby
astrobunny has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
nonamehero has joined #ruby
sensen_ has joined #ruby
Lewix has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
julweber has joined #ruby
MrV has joined #ruby
coderhs has joined #ruby
gverri_ has joined #ruby
ghr has joined #ruby
gverri_ has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 248 seconds]
soheil has quit [Ping timeout: 272 seconds]
csffsc has joined #ruby
tvw has joined #ruby
julweber has quit [Ping timeout: 256 seconds]
<MrV>
Hiya, I have a fresh install of ruby/rbenv etc on my OSX, and am getting sudo password prompt on bundle install, anyone got any ideas on why?
Lewix has quit [Ping timeout: 272 seconds]
csffsc has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
<pontiki>
hi jrobeson o/
<jrobeson>
pontiki!
dcope has joined #ruby
<jrobeson>
are you unsick yet?
<pontiki>
yeah
<pontiki>
thanks :)
<jrobeson>
ok.. well let's try to reach a bit farther then
<jrobeson>
are you well? :)
<pontiki>
as well as can be expected :)
MrV has quit [Ping timeout: 272 seconds]
|jemc| has quit [Ping timeout: 248 seconds]
<jrobeson>
i wish i could say the same .. soon i hope
flops has quit [Read error: Connection reset by peer]
<jrobeson>
assuming that "as well as can be expected" is better than how i'm doing
flops has joined #ruby
<pontiki>
hope so!
<jrobeson>
up to any shenanigans ?
<pontiki>
meh, not really
<pontiki>
this past week has been pretty lazy
<jrobeson>
maybe you need some :)
<pontiki>
i sorted through my paintings
<pontiki>
decided i am going to make a sort of art blog
<pontiki>
jekyll-based, so far
<jrobeson>
neat
<jrobeson>
reminds me to check if they ever finished octopress 3..
<pontiki>
i put my stuff on DA mostly, but i don't like their UI
<pontiki>
not yet, still in the works
<pontiki>
sooonnn....
<pontiki>
i might bump the art blog to octopress
<pontiki>
right now i'm spending most of my time playing with semantic-ui
<jrobeson>
octopress blog hasn't been updated since 2011 :(
<jrobeson>
hmm?
<pontiki>
it's a ui toolkit like twitter bootstrap
Lewix has joined #ruby
<jrobeson>
assuming it's better than jquery-ui then?
<pontiki>
but the classes are a bit more semantic
<pontiki>
not sure yet
timonv has joined #ruby
julweber has joined #ruby
<pontiki>
lemme throw it out so you can see what the class names look like
<pontiki>
if you're interested...
<jrobeson>
sure why not
<pontiki>
k, one sec
julweber has quit [Read error: Connection reset by peer]
timonv has quit [Read error: Connection reset by peer]
amacgregor__ has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<jrobeson>
i was so disheartened that i put a project aside for a few days because i coudn't get my live/push updates to work .. after they had been working fine
tharindu has quit [Quit: Leaving...]
sevenseacat has quit [Quit: Leaving.]
<jrobeson>
i had refactored some of the internals and thought that was causing it.. instead it looks like i had commented out a module include :(
<jrobeson>
fooey :(
sevenseacat has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
crus` has quit [Read error: Connection reset by peer]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
einarj has joined #ruby
wildroman has quit []
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
wildroman has joined #ruby
ephemerian has joined #ruby
wildroman has quit [Client Quit]
KevinSjoberg has joined #ruby
tziOm has joined #ruby
gverri_ has joined #ruby
gverri_ has quit [Client Quit]
wildroman has joined #ruby
dennus has joined #ruby
zz_michael_mbp is now known as michael_mbp
sergicles has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
blackmesa has quit [Quit: WeeChat 0.4.1]
funburn has joined #ruby
soheil has joined #ruby
sergicles has quit [Remote host closed the connection]
sergicles has joined #ruby
sensen_ is now known as sensen
funburn has quit [Client Quit]
fixl has joined #ruby
<sergicles>
how can i setup a ruby project directory, or config rather that would make all gems to do with this project to be installed into "this" directory
<sergicles>
?
<sergicles>
(not rails)
dhruvasagar has joined #ruby
yacks has quit [Quit: Leaving]
tjad has joined #ruby
Nolic has quit [Quit: Quitte]
<flops>
sergicles: you could do rvm use 2.0.0@the_project_name --create
adambeynon has joined #ruby
<sergicles>
flops: not quite what i mean, but it'll do
timonv has quit [Remote host closed the connection]
<flops>
sergicles: So you want to install the gems into the same directories as the app?
noop has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<sergicles>
flops: ye, just a small throwaway projects, don't really need the gems pass that… p.s. ruby newbie here. o essentially create a dir, write come code, have gems install in same dir, maybe dir/vendor or whatever
vlad_starkov has joined #ruby
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
blackmesa has joined #ruby
<sergicles>
flops: actually, nm, go the different route, bundler will do
havenwood has joined #ruby
<flops>
ok
<flops>
you can set the gemdir with rvm though
sayan has quit [Remote host closed the connection]
gokul has joined #ruby
<flops>
sergicles: ^
gokul is now known as Guest23901
soheil has quit [Ping timeout: 245 seconds]
<sergicles>
flops: thanks, will investigate
AxonetBE has quit [Quit: AxonetBE]
Guest23901 has left #ruby [#ruby]
workmad3 has joined #ruby
funburn has joined #ruby
peterdecroos has quit [Remote host closed the connection]
noname001__ has joined #ruby
peterdecroos has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
tomoyuki28jp has joined #ruby
rickruby has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 265 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
bluenemo has joined #ruby
peterdecroos has quit [Ping timeout: 272 seconds]
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
gyre007 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
maZtah is now known as Guest
astrobunny has joined #ruby
julweber has quit [Ping timeout: 241 seconds]
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
sr78ger has joined #ruby
Kneferilis has joined #ruby
aryaching has quit []
MrV has joined #ruby
gja has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
barratt has joined #ruby
soba_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
soba has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
mengu has quit [Remote host closed the connection]
includex has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
ewnd9 has joined #ruby
rickruby has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
dv__ is now known as dv_
heftig has quit [Quit: Quitting]
svector has joined #ruby
mengu has quit [Ping timeout: 265 seconds]
relix has joined #ruby
gverri has joined #ruby
gverri has quit [Client Quit]
BizarreCake has quit [Ping timeout: 248 seconds]
<leonidlm>
Hi folks. I have a design question - I want to implement a class which will help my program to access hdfs filesystem.
<leonidlm>
Should I extend the ruby's File class or write from scratch / other preferred ways ?
<hoelzro>
I would *not* extend the File class
<hoelzro>
I would, however, implement the same interface that File exposes
threesome has joined #ruby
<hoelzro>
does anyone know if there are helper mixins for such a thing?
<workmad3>
leonidlm: as hoelzro says, make use of the IO interface
<leonidlm>
hoelzro, I see. thanks!
<workmad3>
leonidlm: in fact, if you want to subclass from something, subclass from IO ;)
syltm has joined #ruby
<leonidlm>
workmad3, thx. How in ruby I "implement the same interface"? Just do it, or I need to set like in java that it "implements" ...
Guest is now known as maZtah
<hoelzro>
leonidlm: you just define the same methods
<workmad3>
leonidlm: just have the same methods with the same signatures
mrsolo has quit [Quit: This computer has gone to sleep]
<avril14th>
this turns me nuts
<workmad3>
avril14th: you've just run foul of ActiveSupport::Concern doing dependency management behind the scenes
Faris has quit [Ping timeout: 272 seconds]
<avril14th>
that's a lot of concepts I don't get in one single sentance
<avril14th>
what am I doing wrong? :)
<workmad3>
avril14th: when you use 'included do ... end', that block gets captured and then evalled at the right place in a dependency tree with 'base.class_eval(&blk)'
<workmad3>
avril14th: it's not you doing anything wrong
<workmad3>
avril14th: well... maybe it is, sort of ;)
<avril14th>
OKAY
<workmad3>
avril14th: but basically... that 'def' is happening as though it's being written directly in the base class
kitak has quit [Remote host closed the connection]
xk_id has joined #ruby
sayan has quit [Excess Flood]
colonolGron has quit [Quit: Lost terminal]
sayan has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 265 seconds]
jrhe has quit [Quit: jrhe]
monkegjinni has joined #ruby
Michael_ has joined #ruby
wildroman has quit [Remote host closed the connection]
sayan has quit [Max SendQ exceeded]
wildroman has joined #ruby
sayan has joined #ruby
nomenkun has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 256 seconds]
kaspergrubbe has joined #ruby
TMM has quit [Read error: Operation timed out]
wildroman has quit [Ping timeout: 240 seconds]
TMM has joined #ruby
jonathanwallace has joined #ruby
aagdbl has joined #ruby
_JamieD_ has joined #ruby
Giorgio has quit [Ping timeout: 256 seconds]
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
siwica has quit [Remote host closed the connection]
lembacon has quit [Quit: Leaving...]
pschneider has joined #ruby
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
mercwithamouth has joined #ruby
dv__ has joined #ruby
Michael_ has quit [Ping timeout: 272 seconds]
Giorgio has joined #ruby
dv_ has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
tkuchiki has quit [Remote host closed the connection]
klaut has joined #ruby
MrZYX|off is now known as MrZYX
eka has joined #ruby
noop has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
tkuchiki has joined #ruby
ravster has joined #ruby
julweber has quit [Ping timeout: 256 seconds]
rickruby has quit [Remote host closed the connection]
mercwithamouth has quit [Client Quit]
heftig has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
jrhe has joined #ruby
dEPz has quit [Remote host closed the connection]
ldnunes has joined #ruby
ehaliewicz has quit [Ping timeout: 248 seconds]
ij has joined #ruby
<ij>
How do I prevent methods defined in a .rake's namespace do task do #here end end from leaking into global namespace?
julweber has joined #ruby
stunthamster has joined #ruby
flops has joined #ruby
tomoyuki28jp has quit [Ping timeout: 240 seconds]
objectiveous has joined #ruby
Domon has quit [Remote host closed the connection]
noop has joined #ruby
rahulkmr has quit [Ping timeout: 240 seconds]
Desert_eagle has quit [Remote host closed the connection]
objectiveous has quit [Client Quit]
xk_id has quit [Quit:
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
rahulkmr has quit [Max SendQ exceeded]
dzhulk has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
rahulkmr has joined #ruby
niklasb has joined #ruby
kaspergrubbe has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby
rahulkmr has joined #ruby
phantomcircuit has quit [Ping timeout: 248 seconds]
dzhulk1 has quit [Ping timeout: 272 seconds]
krz has quit [Quit: krz]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
objectiveous has joined #ruby
krz has joined #ruby
phantomcircuit has joined #ruby
rahulkmr1 has joined #ruby
amacgregor has joined #ruby
xk_id has joined #ruby
end_guy has joined #ruby
krz has quit [Client Quit]
rahulkmr has quit [Ping timeout: 256 seconds]
bigkevmcd has quit [Ping timeout: 272 seconds]
objectiveous has quit [Client Quit]
rickmasta has quit [Quit: Leaving...]
jhaals has joined #ruby
postmodern has quit [Quit: Leaving]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
bluenemo has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
krz has quit [Client Quit]
dzhulk has quit [Quit: Leaving.]
funburn has joined #ruby
dzhulk has joined #ruby
rahulkmr1 has quit [Ping timeout: 256 seconds]
funburn has quit [Client Quit]
Astral_ has joined #ruby
bigkevmcd has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
funburn has quit [Client Quit]
skaflem has quit [Quit: This computer has gone to sleep]
user258467 has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
wildroman has joined #ruby
wildroman has quit [Read error: Connection reset by peer]
skaflem has joined #ruby
pschneider has left #ruby [#ruby]
wildroman has joined #ruby
Giorgio has quit [Ping timeout: 248 seconds]
Astralum has joined #ruby
Ox6abe has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
hogeo has quit [Read error: Connection reset by peer]
Astral_ has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
hogeo has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
hogeo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
bluenemo has joined #ruby
osvico has joined #ruby
ChronocityLC has joined #ruby
himsin has quit [Quit: himsin]
hogeo has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
hogeo has joined #ruby
ewnd9 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
mercwithamouth has joined #ruby
rahulkmr has quit [Ping timeout: 248 seconds]
drumsrgr8forn8 has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
ewnd9 has joined #ruby
tomoyuki28jp has joined #ruby
<tomoyuki28jp>
I've been trying to install ruby 2.0 on my mac by rbenv. When I run irb with the '--noinspect' option, I can use utf-8 characters, otherwise I cannot. How can I fix it?
hogeo has quit [Ping timeout: 248 seconds]
user258467 has quit [Quit: Leaving...]
<tomoyuki28jp>
Printing utf-8 characters from a ruby script also not working properly.
gja has quit [Quit: This computer has gone to sleep]
kil0byte has quit [Ping timeout: 272 seconds]
jrhe has joined #ruby
SilverKey has quit [Quit: Sleep now]
ChronocityLC has quit [Ping timeout: 272 seconds]
dbRenaud has quit [Changing host]
dbRenaud has joined #ruby
nomenkun has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
osvico has quit [Ping timeout: 245 seconds]
xk_id has quit [Quit:
ewnd9 has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
ewnd9 has joined #ruby
<ij>
tomoyuki28jp, add that # encoding: utf-8 line at the beginning or after shebang
<tomoyuki28jp>
ij: It's already there.
<ij>
hmm
<workmad3>
tomoyuki28jp: what does 'not working properly' mean?
<tomoyuki28jp>
workmad3: p "日本語" => "\u65E5\u672C\u8A9E"
<Xeago>
would you recommend ruby-install or ruby-build when using chruby?
<Xeago>
workmad3: ^^?
<workmad3>
tomoyuki28jp: that's correct
<workmad3>
Xeago: I use ruby-install
<workmad3>
tomoyuki28jp: you're inspecting the output... the output of inspect on UTF-8 characters shows the unicode escape codes, not the glyphs themselves
dhilipsi_ has joined #ruby
Liothen has quit [Quit: System of a down……]
<tomoyuki28jp>
workmad3: uhm? ruby 1.9 + readline used to output the original characters.
<workmad3>
tomoyuki28jp: hmm... pass then
<workmad3>
tomoyuki28jp: it's not a ruby problem though
tatsuya_o has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Remote host closed the connection]
<tomoyuki28jp>
workmad3: Whose problem is that then?
Hanmac has joined #ruby
ewnd9 has joined #ruby
<workmad3>
tomoyuki28jp: your terminals
allsystemsarego has joined #ruby
dhilipsiva has quit [Ping timeout: 256 seconds]
rorra has joined #ruby
<tomoyuki28jp>
workmad3: So should I change my terminal setting?
<workmad3>
tomoyuki28jp: probably... but you'd be better off googling that
<tomoyuki28jp>
workmad3: my terminal's character encoding is set to utf-8 already though.
mvangala has quit [Read error: Connection reset by peer]
andikr has quit [Read error: Connection reset by peer]
svector has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Remote host closed the connection]
mvangala has joined #ruby
ewnd9 has joined #ruby
havenwood has joined #ruby
ewnd9 has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
ewnd9 has joined #ruby
svector has joined #ruby
julweber has joined #ruby
svector has quit [Max SendQ exceeded]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
<tomoyuki28jp>
workmad3: ah, p '日本語' does not work, but puts '日本語' works
Ox6abe has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
svector has joined #ruby
<tomoyuki28jp>
I spent a whole day...
Ox6abe has joined #ruby
<tomoyuki28jp>
Thanks a lot for your help.
svector has quit [Max SendQ exceeded]
<workmad3>
tomoyuki28jp: difference between "str" and "str".inspect ;)
havenwood has quit [Ping timeout: 248 seconds]
svector has joined #ruby
<tomoyuki28jp>
workmad3: thanks a lot for your help!
sensen has quit [Ping timeout: 272 seconds]
svector has quit [Max SendQ exceeded]
siwica has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
svector has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
syltm has quit [Ping timeout: 248 seconds]
<apeiros>
tomoyuki28jp, workmad3: "str".inspect depends on some settings too, though. i.e. for me p '日本語' is just the same as puts (with added " quotes)
jhaals has joined #ruby
<workmad3>
apeiros: yeah, it did for me too, which confused me when I checked it out :)
<apeiros>
wouldn't remember on what it depends. my first guess would have been $stdout.external_encoding, but then why does puts work fine?
havenwood has joined #ruby
<apeiros>
tomoyuki28jp: what do `$stdout.external_encoding` and `Encoding.default_external` return for you?
Ox6abe has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
mklappstuhl has joined #ruby
<apeiros>
wow, this is IMO buggy though: `Encoding.default_external = 'binary'; p '日本語'` !> Encoding::CompatibilityError: inspected result must be ASCII only or use the same encoding with default external
<andrewvos>
snappy: Try using slop. It's pretty amazing
tomoyuki28jp has quit [Ping timeout: 272 seconds]
includex has joined #ruby
timonv has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
sayan has joined #ruby
jdenen has joined #ruby
mojjoujo has joined #ruby
timonv has joined #ruby
juan_ has joined #ruby
MrV has joined #ruby
shashin has joined #ruby
ewnd9 has joined #ruby
shredding has joined #ruby
Rashmi has quit [Quit: Leaving]
aagdbl has quit [Ping timeout: 272 seconds]
ij has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
neonlex has joined #ruby
astrobunny has joined #ruby
neonlex has quit [Client Quit]
svector has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
endash has joined #ruby
jlebrech has joined #ruby
Soda has quit [Remote host closed the connection]
svector has joined #ruby
jbpros has joined #ruby
sdouglas has quit [Quit: sdouglas]
burlyscudd has joined #ruby
sayan has quit [Quit: Leaving]
cads has quit [Ping timeout: 272 seconds]
jrhe has quit [Quit: jrhe]
sr78ger has quit [Ping timeout: 248 seconds]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
gja has quit [Quit: This computer has gone to sleep]
iamjarvo_ has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
<avril14th>
workmad3: maybe one question about the help you gave me this morning on ActiveSupport::Concern. A behavior I don't understand: https://gist.github.com/muichkine/693304c71f9c7be888af (forked from your gist)
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
angusiguess has joined #ruby
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
burlyscudd has joined #ruby
pranny has joined #ruby
tomzx_mac has joined #ruby
<avril14th>
If I may
tvw has joined #ruby
T__T has joined #ruby
Mon_Ouie has joined #ruby
rorra has quit [Quit: rorra]
fuhgeddaboudit has joined #ruby
<Hanmac>
avril14th: #rubyonrails ?
<avril14th>
true
rickmasta has joined #ruby
jerius has joined #ruby
garbagecollectio has joined #ruby
fafa has quit [Ping timeout: 248 seconds]
garbagecollectio has quit [Client Quit]
LeBop has joined #ruby
mklappst_ has joined #ruby
tvw has quit []
samsonasu has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
dv__ is now known as dv_
Giorgio has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
T__T has quit [Read error: Connection reset by peer]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<LeBop>
which transforms to sudo chef-solo -c #<Vagrant::Config::V2::DummyConfig:0x0000000454eb48> -j #<Vagrant::Config::V2::DummyConfig:0x00000004550650> --override-runlist
sensen has joined #ruby
<LeBop>
instead of my variables, I get those references....
<LeBop>
how do I replace the references with the actual variable value?
h_kon has quit [Remote host closed the connection]
<workmad3>
avril14th: a method in a module doesn't override a method in a class
lfox has joined #ruby
ij has joined #ruby
<Hanmac>
avril14th: thats the difference between "include" & "prepend"
devdazed has joined #ruby
* avril14th
kernels error with no dump
ananthakumaran has quit [Quit: Leaving.]
ehc has joined #ruby
blaxter_ is now known as blaxter
<avril14th>
isn't include "like if the module was your parent class"
<avril14th>
that's how I got it
<workmad3>
LeBop: why aren't you letting vagrant kick off chef-solo?
<workmad3>
avril14th: yes
<workmad3>
avril14th: so think... if you define a method 'foo' in a parent class, then define a method 'foo' in a child class then call 'foo' on an instance of the child class... which one gets called? ;)
fgo has joined #ruby
alexju has joined #ruby
<avril14th>
the children one
<avril14th>
?
asobrasil has joined #ruby
<workmad3>
avril14th: yes
<avril14th>
well that's exactly why I don't get my problem
<avril14th>
I get parent one called
<avril14th>
and children one never
shredding has quit [Quit: shredding]
<avril14th>
but I guess my problem lies in my use of instance.class.send(:include)
xk_id has joined #ruby
<workmad3>
avril14th: err no
g0bl1n has joined #ruby
<workmad3>
avril14th: you're getting the child one called
snovak has joined #ruby
<avril14th>
well I breakpoint the children one it gets never called
<avril14th>
worse
<workmad3>
avril14th: the module plays the role of the parent, the included class the role of the child
<Hanmac>
>> module P; end; module I;end; class C; include I;prepend P; self.ancestors end;
<avril14th>
I tried instance.method(:organizations).source_location and got the parent one
NinjaPenguin has joined #ruby
<workmad3>
avril14th: and your comment is '#This never calls TwoPartiesTransaction::organizations but Transaction::organizations even though it should have been overrode. Why?'
<workmad3>
avril14th: the 'parent' is the module
<Hanmac>
avril14th: as you see, Prepended modules are before, included modules are after the class
<workmad3>
avril14th: the 'child' is Transaction
<avril14th>
that is damn right
msuszczy has joined #ruby
<workmad3>
avril14th: and your comment says that Transaction::organizations (the 'child') gets called
<Hanmac>
avril14th: dont use class.include …. use tr.extend
<workmad3>
hanmac: because blowing your ruby method lookup cache on every object instantiation is fun, right? :)
<avril14th>
and we agree that if I include the model in a children class of Transaction (SomeTransaction < Transaction), Transaction is parent to module?
<workmad3>
avril14th: no
sailias has joined #ruby
<workmad3>
avril14th: other way around
phantasm66 has joined #ruby
<avril14th>
module is parent to SomeTransaction
<avril14th>
but child to Transaction
<avril14th>
or parent to both?
jrhe has joined #ruby
<workmad3>
avril14th: look at .ancestors
<workmad3>
avril14th: and that doesn't match what your gist shows ;)
rickmasta has quit [Quit: Be back later]
<workmad3>
avril14th: or even what your gist says ;)
<avril14th>
yes that's an extra question
<avril14th>
:)
rickmasta has joined #ruby
rcedillor has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<workmad3>
avril14th: right... the module will be inserted into ancestors between SomeTransaction and Transaction
<avril14th>
agreed
<workmad3>
(moving away from 'parent' and 'child' now :) )
varfoo has quit [Quit: WeeChat 0.4.0]
<avril14th>
so I get it now
rahulkmr has joined #ruby
<Hanmac>
workmad3 if he only uses for one object its ok
rahulkmr has quit [Max SendQ exceeded]
<workmad3>
hanmac: :)
ValicekB has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<avril14th>
(1..BigDecimal('+Infinity')).each{ |workmad| workmad.send("Tĥank you so much.") }
aganov has quit [Remote host closed the connection]
patjoh has joined #ruby
amacgregor has joined #ruby
Ox6abe has joined #ruby
jprovazn has quit [Quit: Odcházím]
michael_mbp is now known as zz_michael_mbp
<workmad3>
LeBop: meh, looks like a really weird way to use chef IMO... however, you'll likely need to either dig through vagrant source or ask in #vagrant
astrobunny has joined #ruby
mengu has quit [Ping timeout: 248 seconds]
<LeBop>
well... I want to simulate aws OpsWorks
<workmad3>
LeBop: and possibly look at some other vagrant plugins to see how they get that sort of info
<LeBop>
where you can run a command manually at any time
slashdot has joined #ruby
<LeBop>
my project is a fork from vagrant-exec
<workmad3>
LeBop: that still seems like a weird way to use chef :)
kil0byte has quit [Read error: Connection reset by peer]
rahulkmr has quit [Ping timeout: 265 seconds]
zeade has joined #ruby
<workmad3>
LeBop: right... so #vagrant, or dig through vagrant code
wildroman has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LeBop>
ok, thanks
Koshian is now known as Koshian
TheNumb has joined #ruby
Mon_Ouie has joined #ruby
nisstyre has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
sniffingcats has quit [Read error: Operation timed out]
ldnunes has quit [Quit: Leaving]
carlyle has joined #ruby
pleal has joined #ruby
wildroma_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
Intrepidd has quit [Remote host closed the connection]
dhilipsi_ has quit [Remote host closed the connection]
cescalante is now known as ce_afk
qinix has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
dhilipsiva has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 248 seconds]
csffsc has joined #ruby
freezey has quit [Remote host closed the connection]
slashdot has quit [Quit: Leaving]
LeBop has left #ruby [#ruby]
cooldman224 has joined #ruby
NinjaPenguin has left #ruby ["Leaving"]
goto has joined #ruby
freezey has joined #ruby
alup has quit [Quit: Leaving]
csffsc has quit [Ping timeout: 240 seconds]
mrnugget has quit [Quit: mrnugget]
csffsc has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
csffsc has quit [Remote host closed the connection]
smoothbutta has quit [Remote host closed the connection]
habanany has joined #ruby
csffsc has joined #ruby
joaoh82 has quit [Remote host closed the connection]
joaoh82 has joined #ruby
csffsc_ has joined #ruby
gverri_ has joined #ruby
gverri_ has quit [Client Quit]
whunt has joined #ruby
sniffingcats has joined #ruby
astrobun_ has joined #ruby
iamjarvo has joined #ruby
jerrad has joined #ruby
jerrad has quit [Client Quit]
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
csffsc has quit [Ping timeout: 272 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
ghargoil has joined #ruby
coderhs has joined #ruby
tharindu has quit [Quit: Leaving...]
kil0byte_ has quit [Ping timeout: 265 seconds]
<ghargoil>
I have a noob question regarding ruby modules -- I defined a module Xyz, included it in another file, but I want to access a method in Xyz called abc
<ghargoil>
how do I do that?
<ghargoil>
(cause right now, it says no such method Xyz::abc )
vky has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
nari has joined #ruby
<hoelzro>
did you require() the file?
klaut has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
T__T has joined #ruby
<ghargoil>
oops looked away for a sec
<ghargoil>
reading
<ghargoil>
so I required the file, yes
<workmad3>
ghargoil: did you include the module in a class?
<ghargoil>
nope
volty has joined #ruby
<csffsc_>
I have a procedural script, inside one of my functinos I need to make two objects available globally.. Ruby tends to make the last object available - how can I make more?
<workmad3>
>> module Foo; def bar(); puts "hello"; end; end; class Bar; include Foo; end; Bar.new.bar
sjltaylo_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csffsc_>
okay, I sopose I'll read up elsewhere then
* shevy
pokes workmad3
bricker`LA has joined #ruby
<Jehanzaib>
hello
<shevy>
ghargoil Foo::bar() is really ugly, Foo.bar() is a bit better, Foo.bar is picture perfect
mercwithamouth has joined #ruby
Xeago has joined #ruby
sambao21 has joined #ruby
<shevy>
I keep on mixing up hoelzro and havenwood ... :\
<havenwood>
:O
burlyscudd has joined #ruby
* Jehanzaib
poke shevy
kpshek has joined #ruby
<shevy>
csffsc_ you can do explicit returns, you can return anything from within a method. volty showed the example with arrays. but you could also return a hash, and that hash stores your objects, for instance
radic has quit [Disconnected by services]
radic_ has joined #ruby
iamjarvo_ has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
MrBoolean has joined #ruby
* Jehanzaib
greets everyone in the channel
rahulkmr has joined #ruby
<havenwood>
helloo
rahulkmr has quit [Max SendQ exceeded]
ldnunes has joined #ruby
* Jehanzaib
hello havenwood
gyre007 has joined #ruby
<csffsc_>
shevy: okay, I would be returning a hash & array, so if those two were combined, I would need to modify anotherpart of the code I would assume
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
Jehanzaib has left #ruby [#ruby]
<shevy>
well can you not store your objects in a reference csffsc_ ?
rahulkmr has joined #ruby
wildroma_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
<havenwood>
csffsc_: get your code refactored?
<havenwood>
csffsc_: You were going to put it in a module or class, right?
goto has quit [Changing host]
goto has joined #ruby
ssvo has joined #ruby
iamjarvo_ has quit [Read error: Connection reset by peer]
<havenwood>
mm, coffee... ;)
iamjarvo has joined #ruby
rahulkmr has joined #ruby
<volty>
Curious, after having read, time ago, in this chan, talking without nor head nor tail, about 'design patterns' i got the book (not paid). To me it seems full of nonsense, of programming techniques repackaged under new terms, a book that stars with a very stupid pretext about a very very stupid man that could make thousands of classes instead of handling the variations (of value-attribute) and behavior just with data (
<volty>
associations, hashes, arrays ...)
rahulkmr has quit [Max SendQ exceeded]
<csffsc_>
havenwood: I was reading about it last night yes - (Practical Object-Oriented Design in Ruby)
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<havenwood>
haven't read it, but sounds like something i've heard recommended
wildroman has joined #ruby
duke_nukem has quit [Quit: leaving]
dagobah has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 245 seconds]
<volty>
there I read a very dishonest premise that decorator is not inheritance (since the behavior isn't in the base class!!!!?) but composition
MrBoolean has quit [Read error: Connection reset by peer]
MrBoolean has joined #ruby
<csffsc_>
havenwood: it's good, however, it's not written so one can simply convert a procedural script to OO... so I was following the examples in the book instead
<csffsc_>
for instance, I'm not sure if the entire script would be one class, or if I would have 3, Formatting input, Hnadling Data, Formatting output
iamjarvo has quit [Remote host closed the connection]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
jhaals has joined #ruby
habanany has quit [Ping timeout: 265 seconds]
rahulkmr has joined #ruby
iamjarvo has joined #ruby
aapzak has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<volty>
so have you any url for me that could 'enlighten' me about all this that I just call ' hype about patterns ', pompous classifying and renaming of the common sense ?
<havenwood>
csffsc_: I guess first pick if module or class is appropriate. Use a module, unless you need to initialize and use some instance specific state, then class.
<terrellt>
I haven't read that one, but "Design Patterns: Elements of Reusable Object-Oriented Software" is pretty fantastic.
<havenwood>
csffsc_: Okay, so start by putting your existing methods in that class namespace.
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<havenwood>
class BlackJack; ...; end
ghr has quit [Quit: Computer has gone to sleep.]
<csffsc_>
okay
lurch_ has quit [Quit: lurch_]
iamjarvo has quit [Ping timeout: 272 seconds]
habanany has quit [Read error: Operation timed out]
Spami has joined #ruby
<havenwood>
csffsc_: And make a new `def initialize` method where you initialize the instance methods that are the reason you're using a class not a module.
echevemaster has joined #ruby
boxmein has joined #ruby
habanany has joined #ruby
kofno has joined #ruby
gverri_ has joined #ruby
gverri_ has quit [Client Quit]
<volty>
terrellt: thx, going to see
<havenwood>
csffsc_: Then fix up the existing methods to use the new @royals (or whatever) instance variables.
<havenwood>
csffsc_: And shorten all lines to 80 or fewer characters. Once it is working again, you'll be in a place to start thinking about refactoring.
AndChat|87561 has joined #ruby
<havenwood>
csffsc_: Having tests makes refactoring much easier!
AndChat|87561 has quit [Remote host closed the connection]
<csffsc_>
I created the class; Class BlackJack
<havenwood>
class BlackJack
<csffsc_>
although I'm getting errors; uninitialized constant BlackJack (NameError)
rgbdev has joined #ruby
<csffsc_>
ah
blaxter has quit [Quit: foo]
dash_ has joined #ruby
leonidlm has quit [Read error: Operation timed out]
habanany has quit [Read error: Operation timed out]
<havenwood>
csffsc_: `class Array` is syntactic sugar, on the next line indent and put all your methods, then follow with an unindented `end`. Like: https://gist.github.com/havenwood/7059881
jrhe has joined #ruby
moted has quit [Quit: moted]
interactionjaxsn has quit [Remote host closed the connection]
asym has joined #ruby
interactionjaxsn has joined #ruby
interactionjaxsn has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
<csffsc_>
yeah, I'm getting errors whenever the methods are relying upon an object that is being served from outside of the class (I think thats the proper way to describe it)
zeade has quit [Quit: Leaving.]
<havenwood>
csffsc_: conference call, be back later
<csffsc_>
ok
<havenwood>
nvm, held off for 10min
<havenwood>
csffsc_: Show the code where you've wrapped your methods in the new class namespace?
<havenwood>
csffsc_: Name it with `.rb` for syntax highlighting. :P
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
Tearan has joined #ruby
mrsolo has joined #ruby
<havenwood>
csffsc_: no parens on methods without arguments in Ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csffsc_>
okay
moted has joined #ruby
varfoo has joined #ruby
rgbdev has quit [Ping timeout: 272 seconds]
<Morrolan>
Line 31 will fail. Calls a function which is defined inside the class, you can't just call that one.
DropsOfSerenity has joined #ruby
nari has quit [Ping timeout: 240 seconds]
freezey has quit [Remote host closed the connection]
akemrir has quit [Quit: WeeChat 0.4.2]
seanz has joined #ruby
<seanz>
Potentially heated question: python is known as a "batteries included" language. Does ruby have a similar reputation?
khushildep has quit [Ping timeout: 256 seconds]
jbpros has joined #ruby
<seanz>
Things like python's built-in iterators. I'm considering ruby as a language, but I want to know what to expect when switching.
<havenwood>
csffsc_: And when you then call those methods down below outside the class, you'll need to do something like: black_jack = BlackJack.new; hand = black_jack.format_input(ARGV[0])
<canton7>
I think you'll struggle to find much in core python which isn't in core ruby (or doesn't have an alternative)
<havenwood>
canton7: Blocks?
TMM has quit [Quit: Ex-Chat]
<havenwood>
canton7: Oh, i read that wrong. Hehe.
<canton7>
havenwood, that's in ruby, not python?
<canton7>
:P
<havenwood>
canton7: I thought you were saying other way around.
lfox has joined #ruby
bean_ has quit [Quit: Computer has gone to sleep.]
<canton7>
like ruby doesn't have list comprehensions... but it has Enumerable, which provides an arguably shorter and cleaner alternative
<havenwood>
seanz: Ruby has what Python does plus more. Maybe not quite as easy to learn, but quite powerful. Ruby, you'll shoot your eye out!
<RubyPanther>
seanz: Ruby tries to do what is expected, "the principle of least surprise." So if not having batteries would be surprising, then they're included. Personally, I've never used batteries in my code.
<canton7>
(bear in mind that the "principle of least surprise" applies to someone versed in the language, not a notice. Matt's point was that, even after 3 years of full-time use, C++ still surprised him)
<havenwood>
RubyPanther: Yeah, i'd worry about a battery dependency, cause then i gotta worry about charging it, and is it safe to throw them in the garbage collector?
<RubyPanther>
Yeah, also note that the Ruby stdlib is designed to be least surprising... on unix
jbpros has quit [Client Quit]
timonv has quit [Remote host closed the connection]
<volty>
on the «reputation» (of ruby) you can talk with your gossiping neighbur
<RubyPanther>
which often means being a very thin wrapper around the C lib
<RubyPanther>
canton7: C++ is still surprising to people who use it for 10+ years and are experts, because everybody agrees using all of it is bad and nobody agrees which parts are good
vky has quit [Remote host closed the connection]
robawt has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<catphish>
does anyone know if it's possible to set the source IP of a udp packet when a udp socket is bound to 0.0.0.0
<havenwood>
seanz: I'd for sure recommend Ruby! Wonderful lang and easy to be productive, lots of gems, good community.
heftig has quit [Quit: Quitting]
barratt has quit [Ping timeout: 272 seconds]
<volty>
I like ruby as much as I like the pythoners
lyanchih has joined #ruby
<volty>
but you cannot have everything :( :)
MrV has quit [Quit: MrV]
beilabs has quit [Ping timeout: 265 seconds]
<RubyPanther>
catphish: possible is a strong word
<havenwood>
Rubyists, Clojurians, Pythonistas, Scalites, oh my! (Rank them, be careful, there are right and wrong answers. Grading will be severe.)
<seanz>
havenwood: I've seen some really nice web products come out of ruby, which caught my attention.
<seanz>
GitHub, GitLab being two of them.
<havenwood>
seanz: mmm, <3 Githubs
<robawt>
also logstash (jruby) chef's DSL & puppet
sambao21 has quit [Quit: Computer has gone to sleep.]
<catphish>
ruby is responsible for a lot of SaaS
chrisja has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mklappstuhl has quit [Remote host closed the connection]
shashin has quit [Quit: shashin]
boxmein is now known as [boxmein]
Voodoofish430 has joined #ruby
<volty>
the mine was only about chan people, about common sense and humanity
freezey has joined #ruby
MrZYX|off is now known as MrZYX
iamjarvo has joined #ruby
mansi has joined #ruby
vky has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
visof has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
<robawt>
what's a good way to get started with gems?
dhruvasagar has joined #ruby
[boxmein] has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
<catphish>
making them>
<catphish>
*?
sniffingcats has quit [Quit: Til rivido Idisti!]
lfox has left #ruby [#ruby]
leokaito has quit []
sambao21 has joined #ruby
astrobun_ has quit [Ping timeout: 240 seconds]
<catphish>
RubyPanther: yes it is :)
carlyle has quit [Remote host closed the connection]
visof has quit [Remote host closed the connection]
Soda has joined #ruby
froy has joined #ruby
bean_ has joined #ruby
Giorgio has joined #ruby
aapzak has joined #ruby
<RubyPanther>
catphish: one way to achieve the effect would be to bind to the IP you want, and then redirect the inbound traffic on the other ones
<preview>
billiam: maybe a shell script that switches ruby versions with rbenv/rvm and runs the same script with each
stkowski has joined #ruby
<havenwood>
preview: chruby!
<billiam>
havenwood: thanks.
<billiam>
preview: yeah, using chruby now, it's just tedious getting all these ruby versions installed for a one-time test.
<preview>
havenwood: oh shit, chruby is post-rbenv? I hadn't heard of it.
carraroj has joined #ruby
<RubyPanther>
catphish: I'd worry about Ruby being poorly suited for that before I'd worry about a big NAT table. And anyways, NAT shouldn't mean you have lots of extra interfaces... usually it means you have less. And you can use wildcards in the firewall, assuming IP tables or something with modern features
mac_ has joined #ruby
tatsuya_o has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
<volty>
terrellt: thx, gang of four's is very clean and straitforward, I'll have only to get used to terms - if I read it (to find something new or just survay) // «Head First Design Patterns» is rubbish, starting with their stupid starting example (extended 'drinks' and 'coffees') and the starting, pompous, wrong, premises (it's not inheritance because the behavior is defined later - extremelly stupid assertion)
<volty>
thx again
alex__c2022 has joined #ruby
<havenwood>
preview: Yup, indeed. Really nice combo is ruby-install with chruby. Here's a little review (except he's using ruby-build not ruby-install): http://pbrisbin.com/posts/chruby/
<catphish>
RubyPanther: not sure why ruby would be poorly suited, dns is very simple :)
stonecolddevin has joined #ruby
kpshek has joined #ruby
codelette has joined #ruby
csffsc has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
p8952 has joined #ruby
<volty>
maybe the correct question should be: purely suited rispect to what (else lang) ?
T__T has quit [Remote host closed the connection]
kaspergr_ has quit [Read error: Connection reset by peer]
bean_ has quit [Quit: Computer has gone to sleep.]
<preview>
havenwood: Wow, it doesn't get much simpler than that.
kaspergrubbe has joined #ruby
Stygia has quit [Quit: Leaving]
sambao21 has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
<havenwood>
preview: Yup. :) Compared to RVM's ~20,000 lines of code chruby's ~90 lines seems itsy bitsy.
polaco is now known as polaco_zZz
kaspergrubbe has quit [Read error: Operation timed out]
heidi has quit [Quit: Leaving.]
pleal_ has joined #ruby
polaco_zZz is now known as polaco
s0ber has quit [Remote host closed the connection]
jrhe has quit [Ping timeout: 245 seconds]
<yxhuvud>
catphish: depends on use case. We implement dns servers that we expect to be required to be able to use up a gigabit line.. scaling ruby to that point for dns would take a bit too much work.
pleal has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 240 seconds]
<catphish>
yxhuvud: i agree, i don't expect ruby to be able to push a gig of dns packets, but i'm inclined to try now :)
enebo has joined #ruby
ahawkins has quit [Quit: leaving]
DrShoggoth has joined #ruby
iamjarvo has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
ccooke_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
p8952 has quit [Ping timeout: 272 seconds]
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
verazabeida has joined #ruby
cody-- has joined #ruby
ccooke has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
lyanchih has quit [Quit: lyanchih]
shaunbak_ has quit [Remote host closed the connection]
shaunbaker has joined #ruby
pwh has joined #ruby
Underbyte has quit [Quit: Leaving...]
thirdender has joined #ruby
nobitanobi has joined #ruby
echevemaster has quit [Quit: Leaving]
p8952 has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
freezey has joined #ruby
asym has quit [Ping timeout: 248 seconds]
<nobitanobi>
Hi. I am trying to use Image Science gem in my Ruby 2.0.0 - I have added a Gemfile in my project with image_science and I am doing a test where I just do a require 'rubygems'; require 'image_science' and when trying to run it I get: https://gist.github.com/novito/7087466
<nobitanobi>
any thoughts?
cody-- has quit [Ping timeout: 256 seconds]
Monie has joined #ruby
pleal_ has quit [Read error: Connection reset by peer]
heidi has joined #ruby
pleal has joined #ruby
pragmatism has joined #ruby
<Mon_Ouie>
FreeImage.h: No such file or directory — looks like you didn't install FreeImage
rezzack has joined #ruby
<havenwood>
nobitanobi: After adding it to your Gemfile, did you?: bundle
<nobitanobi>
havenwood: yes.
shaunbaker has quit [Ping timeout: 272 seconds]
<nobitanobi>
I'm looking at what Mon_Ouie suggested.
<nobitanobi>
I thought adding the image_science gem would install all dependencies
volty has quit [Quit: the log file is growing too much :)]
<Mon_Ouie>
It can't install a C library
<nobitanobi>
right...
<yxhuvud>
thirdener: I'd look at chruby if I were you, and at rebuilding the versions that fedora packages for centos if you *really* cannot stand having non-rpm installations. whatever you do, don't use the 1.8.7 that is preinstalled.
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
Astralum has quit [Ping timeout: 240 seconds]
<nobitanobi>
thanks Mon_Ouie
<thirdender>
got it... thanks yxhuvud :-)
<havenwood>
thirdender: I'd recommend using ruby-install to install the Ruby of your choice. Then use chruby to select that Ruby as your default or switch to others if you wanna have moar Rubies.
<havenwood>
thirdender: RVM and chruby are friendly and devs share ideas, but yeah, competitors in terms of which to choose.
<havenwood>
thirdender: Yup, exactly.
iamjarvo has quit [Remote host closed the connection]
<thirdender>
friendly open source competition is good :-)
<thirdender>
cool, thanks all :-)
mark_locklear has quit [Ping timeout: 245 seconds]
<thirdender>
company server, don't want to screw it up... :-p
c0rn has joined #ruby
cads has joined #ruby
iamjarvo has joined #ruby
jmccune has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
random_ has joined #ruby
rgbdev has joined #ruby
jmccune has quit [Client Quit]
random_ has left #ruby [#ruby]
freezey has quit [Ping timeout: 265 seconds]
theoretick is now known as theoretick_
p8952 has joined #ruby
theoretick_ is now known as theoretick
<havenwood>
Need to add JEG's endorsement of chruby to the Endorsements section. Think if a Ruby Rogue chooses chruby/ruby-install as a 'pick' you should ask permission to use the quote?
theoretick is now known as theoretick_
jkline has joined #ruby
ccooke_ is now known as ccooke
Hobogrammer has joined #ruby
danman has joined #ruby
dorei has joined #ruby
sambao21 has joined #ruby
<havenwood>
kinda a public endorsement, but don't wanna go rampaging about quoting people without permission
<havenwood>
or do i... :O
* havenwood
rampages off in search of coffee.
lethjakm1 has joined #ruby
catphish has quit [Quit: Leaving]
<lethjakm1>
hey, does anyone know of a good bluetooth gem that I can communicate with bluetooth devices?
tharindu has quit [Quit: Leaving...]
lethjakm1 is now known as lethjakman
soheil has joined #ruby
PhilK_ is now known as PhilK
cody-- has joined #ruby
theoretick_ has quit [Ping timeout: 245 seconds]
jlebrech has quit [Quit: Konversation terminated!]
<relix>
hanmac, so basically open a TempFile, write data out, execute binary, rewind, read data, close?
mercwithamouth has joined #ruby
<nobitanobi>
havenwood: I moved to Chunky PNG. Thanks :)
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<havenwood>
nobitanobi: Good deal. :)
pleal has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
twoism has quit [Remote host closed the connection]
<Hanmac>
relix i think that would be the best, you come back again if it does not fit what you want
twoism has joined #ruby
asym has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
theRoUS has quit [Client Quit]
Uranio has quit [Quit: while you reading this, a kitty dies]
fuhgeddaboudit has joined #ruby
nomenkun_ has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
ewnd9 has quit [Ping timeout: 272 seconds]
centipedefarmer has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
nomenkun_ has quit [Remote host closed the connection]
IceDragon has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
<relix>
hanmac yep, thanks!
end_guy has joined #ruby
zz_michael_mbp is now known as michael_mbp
Uranio has joined #ruby
colonolGron has joined #ruby
31NAART4C has joined #ruby
31NAART4C has quit [Max SendQ exceeded]
shredding has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Client Quit]
theRoUS has joined #ruby
kaspergrubbe has joined #ruby
Squarepy has quit [Ping timeout: 245 seconds]
Squarepy_ has joined #ruby
<lethjakman>
what's the difference between rc2 and -p247?
monkegjinni has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
<Hanmac>
lethjakman: rc means release canidate … so its < p0 < p247
rgbdev has joined #ruby
krz has quit [Quit: krz]
gioele has joined #ruby
theRoUS has quit [Client Quit]
Astral_ has quit [Read error: Operation timed out]
Quest has joined #ruby
<Quest>
whats the correct command. sass --watch --expanded file.scss?
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
wildroman has quit [Remote host closed the connection]
spider-mario has joined #ruby
theRoUS has quit [Client Quit]
nilved has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
Banistergalaxy has quit [Ping timeout: 245 seconds]
Skylab has joined #ruby
<gioele>
hi, I have a problem with encodings: I have a file `enc.rb` with just `p 'è'`, encoded in UTF-8. When I run `ruby -E utf-8:utf-8 enc.rb` it fails with a "invalid multibyte char (US-ASCII)" error. Instead, if I use the old `ruby -Ku enc.rb` it works fine
<gioele>
isn't `-E utf-8:utf-8` equivalent to `-Ku`?
<Quest>
whats the correct command. sass --watch --expanded file.scss?
c0rn has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Ping timeout: 252 seconds]
<Hanmac>
Quest: the correct command is "/join #sass"
<Quest>
did that
<apeiros>
gioele: -E is only about input/output, not the source file itself
<dorei>
gioele: try putting # encoding: UTF-8 at the top of the file
<apeiros>
gioele: put # encoding: UTF on top
<Quest>
there is no man. no docs. nothing. no one in #sass
<apeiros>
blah, what dorei said :)
<lethjakman>
hanmac: oh so it's older!
<lethjakman>
or newer?
c0rn has joined #ruby
theRoUS has quit [Client Quit]
<lethjakman>
what does p stand for?
<gioele>
apeiros, dorei: I am just trying to understand, I do not want to modify the file or add a BOM
nilved has joined #ruby
theRoUS has joined #ruby
astrobunny has joined #ruby
<Hanmac>
lethjakman: rc is older, try to use an higher "patch"-version … (or do it like me and use daily)
<apeiros>
gioele: that's not a BOM
<lethjakman>
ahh ok thank you
Tuxist has quit [Remote host closed the connection]
verazabeida has joined #ruby
<dorei>
gioele: your .rb file contains utf-8 chars, u have to inform mri about that
<apeiros>
gioele: BOM means "Byte Order Mark", and is something completely different.
<apeiros>
and for the rest, again what dorei said :)
<gioele>
apeiros: "or" a BOM. Using a BOM works as well
jblack has joined #ruby
<gioele>
dorei: in 1.8.7 you did inform ruby using -K, now -K has been removed, how do you do that from the command line
<apeiros>
gioele: anyway, you must. it's not valid.
<apeiros>
gioele: you can't.
aspires has joined #ruby
jrhe has quit [Read error: Operation timed out]
<apeiros>
with 2.0, utf-8 is the default, but for 1.9, you have to specify it.
<shredding>
does anyone know guard?
<apeiros>
that is - either you specify the encoding or you use escape sequences (\uHHHH)
segfalt has joined #ruby
verazabeida has quit [Remote host closed the connection]
<apeiros>
though, with the latter the encoding of the string will be set wrongly
jkline has quit [Quit: jkline]
rahulkmr has quit [Ping timeout: 245 seconds]
zz_scottstamp is now known as scottstamp
centipedefarmer has quit [Remote host closed the connection]
ShellFu has joined #ruby
amacgregor has joined #ruby
deception has joined #ruby
momomomomo has joined #ruby
zigomir has joined #ruby
theRoUS has quit [Quit: Leaving]
kil0byte has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ghargoil has left #ruby [#ruby]
Xeago has joined #ruby
<sorbo_>
can you not set a default value for the last parameter in a method? I can't tell if ruby is yelling at me for that, or something unrelated (but making it _look_ like it's taht)
<sorbo_>
s/taht/that
cooldman224 has quit [Ping timeout: 272 seconds]
<sorbo_>
e.g. my_meth(one, two, three='')
momomomomo has quit [Client Quit]
<DropsOfSerenity>
sorbo_ def my_method(one, two, three = "")
<ph8>
hi all. I'm a passing ruby enthusiast, i work as a .NET developer so that's where most of my focus is day-to-day. I'm debugging someone else's Ruby app, without them around to help me. It all comes down to a 'check_setup?' call that i can't find anywhere - i want to know what it's checking! I think it might have something to do with rake, but i can't find any rakefiles in the app directory, is there anywhere t
<ph8>
his magic 'check_setup' method might be hiding, or is it some kind of default?
shaunbaker has quit [Remote host closed the connection]
aspires has quit [Quit: sudo making a sandwich]
<flops>
ph8: find . | xargs grep check_setup
brianpWins has joined #ruby
marcdel has joined #ruby
dzhulk has joined #ruby
<flops>
If this doesn't find it, it's most likely in a 'required' gem...
Skylab has quit [Quit: Skylab]
<ph8>
aha, required gem sounds right
orien has quit [Quit: Computer has gone to sleep.]
<ph8>
where might i find where those are stored?
zz_tsykoduk is now known as tsykoduk
<flops>
this depends on your setup
gyre007 has quit [Ping timeout: 245 seconds]
<ph8>
that cmd returned loads of references like :flags => [:check_setup, :check_upgrade]
Michael__ has quit [Remote host closed the connection]
<ph8>
but no 'def check_setup' lines
<ph8>
like this: def_command :set_basedir_permissions, :flags => [:check_setup, :check_upgrade, :allow_while_disabled]
<flops>
ph8: find . | xargs grep check_setup?
allaire has joined #ruby
<ph8>
yes that command
<flops>
I forgot the '?'
Michael__ has joined #ruby
<ph8>
ohhh
<flops>
You should add the ?
<ph8>
sec
<ph8>
oh that returns nothing
<ph8>
maybe i'll go lower! do it from /
tatsuya_o has quit [Remote host closed the connection]
<flops>
nooooop
<flops>
sure you can do it but it will take some tinme
jhaals has joined #ruby
tatsuya_o has joined #ruby
<SloggerKhan>
I'm having a problem where, when I assign a model instance to a foreign key has_one relation name, it tries to update the wrong table with bad SQL. http://pastebin.com/Fdj4x0NK
<flops>
the file which is referencing the check_setup? does it 'require' something or does it inherit from another class?
krawchyk has quit [Ping timeout: 248 seconds]
<ph8>
sec i'll look, there is some inheritance going on but not too crazy
perl9 has joined #ruby
adambeynon has joined #ruby
MrWharfsnort has joined #ruby
<ph8>
so i'm in a 'QuestionnaireController' which inherits from 'Controller' it has a line 'delegate_to_model :needs_setup?, :needs_update?' - does delegate_to_model mean anything special in ruby-land?
<flops>
Is it a rails application? Seems like...
<ph8>
it it has only 3 requires and includes' 'Abstract'
<ph8>
i think it is, but i'm running it from the command line, it's possible this is a shared class with the web ui
<ph8>
(as in there is a built in command line utility using this code)
julweber has joined #ruby
T__T has joined #ruby
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
Michael__ has quit [Ping timeout: 264 seconds]
Michael__ has joined #ruby
SilverKey has joined #ruby
nateberkopec has quit [Quit: Leaving...]
tatsuya_o has quit [Ping timeout: 268 seconds]
perl9 has left #ruby [#ruby]
<flops>
ph8: I think the easiest way is to find out where your gems are stored and grep again there
<flops>
most likely in /usr/lib/ruby/1.9..../gemsets
<ph8>
i think this all ships as a package, it doesn't use OS packages - i'll look under the install dir sec
<ph8>
(thanks for your help btw)
sniffingcats has joined #ruby
sambao21 has joined #ruby
<flops>
actually /usr/lib/ruby/.../rubygems
<flops>
well ok
<flops>
maybe you are using rvm
<flops>
if that's the case it's probably in your home dir (~/.rvm/)
cody-- has joined #ruby
jkline has quit [Quit: jkline]
<ph8>
i didn't see the installer using any package managers, it's a very 'controlled' product - i found /opt/product/common/ruby/rubygems
<ph8>
but this would have been in my previous grep
flower-pot has quit [Quit: leaving]
<ph8>
so not very hopefuly
<ph8>
* hopeful
carraroj has quit [Quit: Konversation terminated!]
KayJails has joined #ruby
kil0byte has joined #ruby
<flops>
can't help you then
<ph8>
guess i'll have to call support!
<ph8>
many thanks for your efforts
<ph8>
really hard to find
dash_ has quit [Quit: dash_]
Spami has quit [Ping timeout: 272 seconds]
Al_ has joined #ruby
<andrewvos>
Is default create for touch 0644?
<ph8>
iirc yes
mayorga has joined #ruby
<andrewvos>
Thanks
Uranio has quit [Quit: while you reading this, a kitty dies]
buibex has joined #ruby
gyzmodo has quit []
zarubin has joined #ruby
<ph8>
i think it might depend on your 'umask' andrewvos
aspires has joined #ruby
buibex has quit [Remote host closed the connection]
<andrewvos>
ph8: Yeah but just wondering about the default
<havenwood>
gebbione: User installs don't need sudo system installs do. How did you install Ruby?
<gebbione>
havenwood, i dont remember
<gebbione>
but to do any install or update i have to provide sudo or i get permission error
pleal has joined #ruby
kofno has joined #ruby
Michael__ has quit [Remote host closed the connection]
kreeves has joined #ruby
swingha has quit [Quit: WeeChat 0.4.2]
nateberkopec has joined #ruby
<havenwood>
gebbione: Do a user install imho.
Michael__ has joined #ruby
<havenwood>
gebbione: Use RVM if you want kitchen sink or ruby-install with chruby otherwise.
michael_mbp is now known as zz_michael_mbp
workmad3 has quit [Ping timeout: 268 seconds]
sambao21 has joined #ruby
_JamieD_ has quit [Ping timeout: 245 seconds]
SilverKey has quit [Quit: Sleep now]
nisstyre has quit [Quit: Leaving]
<gebbione>
i installed rvm
sambao21 has quit [Client Quit]
<gebbione>
made no difference for capistrano
saarinen has joined #ruby
<havenwood>
gebbione: rvm current
<gebbione>
installed with apt-get
<havenwood>
boo hiss
<gebbione>
current is system
<havenwood>
gebbione: then you're not using an rvm ruby
<havenwood>
gebbione: if you're on debian, can use update-alternatives - or you should simply not use apt
SilverKey has joined #ruby
mrsolo has joined #ruby
<havenwood>
gebbione: Basically, chruby + ruby-install is preferred, rvm is pretty simple but if you go this way don't involve apt, or apt-get with update-alternatives.
nisstyre has joined #ruby
juarlex_ has quit [Read error: Connection reset by peer]
<havenwood>
^ imho
Michael__ has quit [Remote host closed the connection]
<havenwood>
gebbione: Stable Ruby is 2.0.0-p247. I have no idea where cap bugs lie. Using latest cap?
kofno has joined #ruby
<gebbione>
yes i just installed it
<gebbione>
i also tried 3.... pre
<gebbione>
after i saw that bug on their forum
<gebbione>
saying pre was fixing it
<gebbione>
but i m not familiar with this ruby/gems dependencies stuff
<havenwood>
gebbione: maybe try #capistrano - i'm not a user so i'm afraid i've got nothing
apeiros has quit [Ping timeout: 260 seconds]
awc737 has quit [Excess Flood]
mansi has quit [Ping timeout: 256 seconds]
<shevy>
I finally realized... in case I have a faulty backup or something and my ruby source files get scrambled, it's best to always update the latest ruby projects to rubygems.org
luckyruby has quit [Remote host closed the connection]
Xeago has joined #ruby
luckyruby has joined #ruby
_JamieD_ has joined #ruby
paddyez has joined #ruby
<paddyez>
hi
marcdel has joined #ruby
<paddyez>
if I have a partial is there some way to determine the number of the loop?
mac_ has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 240 seconds]
awc737 has joined #ruby
kevind has quit [Quit: kevind]
<sam113101>
rails?
<paddyez>
yes rails
ffranz has quit [Ping timeout: 272 seconds]
<havenwood>
#rubyonrails
<paddyez>
thanks
peterhu has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 248 seconds]
gstamp has joined #ruby
<nilved>
paddyez: even if there isn't, you could just unroll it to an each loop.
peterhu has joined #ruby
awarner has quit [Remote host closed the connection]
siwica has joined #ruby
estebanrules has quit [Read error: Connection reset by peer]
awarner has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
drumsrgr8forn8 has joined #ruby
<shevy>
what even is a partial
mac_ has joined #ruby
johnnyfuchs has joined #ruby
<nilved>
shevy: a rails contruct for small HTML files that you include in other, larger ones.
diegoviola has quit [Ping timeout: 248 seconds]
<shevy>
hmm
peterhu has quit [Read error: Connection reset by peer]
estebanrules has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
predator117 has joined #ruby
carlyle has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
peterhu has joined #ruby
apeiros has joined #ruby
_JamieD_ has quit [Ping timeout: 264 seconds]
cads has quit [Ping timeout: 272 seconds]
<csffsc>
havenwood: I'm trying to replace an item inside an array from another
_dma has quit [Remote host closed the connection]
<csffsc>
array[1] = second_array.pop
pleal has quit [Remote host closed the connection]
<csffsc>
it works, but doesnt seem to make the change permant?
<havenwood>
csffsc: the change in second_array?
pleal has joined #ruby
<csffsc>
changing the first
<csffsc>
changing position1 of array
<havenwood>
csffsc: Array[1]'s value doesn't change?
<csffsc>
with whats comming out of the second
<csffsc>
the opposite
<csffsc>
when you change an array
<csffsc>
you do
<havenwood>
csffsc: you're pop isn't modifying the receiver?
krawchyk has joined #ruby
<csffsc>
array[position] = "newvalue"
<havenwood>
your*
<csffsc>
right?
<havenwood>
yup
<csffsc>
cards: [11, 10]
<csffsc>
C: 1
<csffsc>
Royal_keys ["J"]
<csffsc>
Cards: [11, "J"]
<csffsc>
Cards: [nil, "J"]
<havenwood>
brb
<csffsc>
so it works, and on the second call, it's lost
kayloos has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
peterhu has quit [Read error: Connection reset by peer]
ericmathison has joined #ruby
peterhu has joined #ruby
<gebbione>
havenwood, btw in the capistrano channel they told me to fix it this way