<theharshest>
one noob question here - I want to change a gem so that it uses application.yml of the project which is using the gem instead of its own application.yml. how to achieve that?
Deele has quit [Ping timeout: 255 seconds]
neiled has joined #ruby
neiled has quit [Max SendQ exceeded]
benlieb has quit [Quit: benlieb]
sailias has joined #ruby
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
sailias has quit [Remote host closed the connection]
Shidash has joined #ruby
awc737 has joined #ruby
<wallerdev>
theharshest: monkeypatch the place where it loads application.yml
Wolland has joined #ruby
sailias has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
pasties has quit [Read error: Connection reset by peer]
<theharshest>
wallerdev: any example or link please? I'm absolutely new to ruby.
<wallerdev>
whats the gem?
earthquake has quit [Quit: earthquake]
robustus has quit [Ping timeout: 252 seconds]
mgberlin has joined #ruby
neiled has joined #ruby
neiled has quit [Max SendQ exceeded]
<theharshest>
wallerdev: It is a local gem, I'm using it in another project by giving its path in Gemfile
<wallerdev>
well you could just replace the application.yml then if youre the only one using that gem
robustus has joined #ruby
<theharshest>
wallerdev, ok
foo-bar- has quit [Remote host closed the connection]
K3dare has quit [Ping timeout: 240 seconds]
hgl has joined #ruby
thecoolguy has joined #ruby
<thecoolguy>
Is there a way to auto document a ruby script in windows ?
bmurt has joined #ruby
<wallerdev>
auto document?
<wallerdev>
usually the important part of documentation is that you say what isnt obvious
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
K3dare has joined #ruby
freerobby has joined #ruby
mrmargolis has joined #ruby
icarus has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
<agent_white>
Herro
maestrojed has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
sent-hil has quit [Quit: Connection closed for inactivity]
sdrew has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<thecoolguy>
well i mean it does the basics and i just have to fill in what the method does
maloik_ has quit [Ping timeout: 264 seconds]
maloik has joined #ruby
djbkd has quit [Remote host closed the connection]
edgarjs is now known as edgarjs_afk
Pulpie has left #ruby [#ruby]
<thecoolguy>
also
oo_ has joined #ruby
<thecoolguy>
how do a licence my code
cpjk_ has joined #ruby
<thecoolguy>
its suppose to be a tutorial code
cpjk_ has left #ruby [#ruby]
moted has quit [Quit: moted]
northfurr has joined #ruby
alexju has quit [Remote host closed the connection]
j_mcnally has joined #ruby
awkwords has joined #ruby
adelcampo has quit [Quit: adelcampo]
freerobby has joined #ruby
francisfish has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
hamakn has quit [Remote host closed the connection]
<thecoolguy>
Anyone here ?
thumpba has joined #ruby
tus has quit []
freerobby has quit [Client Quit]
codezomb has joined #ruby
edgarjs_afk is now known as edgarjs
dapz has joined #ruby
Hanmac1 has joined #ruby
reset has quit [Ping timeout: 240 seconds]
frankjpinto has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
dapz has quit [Client Quit]
GriffinHeart has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
kireevco has joined #ruby
SilkFox_ has joined #ruby
_2_panda3 has joined #ruby
<_2_panda3>
hi
edgarjs is now known as edgarjs_afk
Ankhers has quit [Remote host closed the connection]
_2_panda3 has quit [Client Quit]
strelok has joined #ruby
chrishough has quit [Quit: chrishough]
<thecoolguy>
I need to post a tutorial on how to use a certain api. What are some good blogs i could post it in ?
johnrover has quit [Quit: johnrover]
<strelok>
for(int x = xstart; x < xend + 2; x++) {
<strelok>
for(int y = ystart; y < yend + 2; y++) {
<strelok>
}
<strelok>
Array[y][x] = 1
<strelok>
}
<strelok>
how would one do this in ruby ^
SilkFox_ has quit [Ping timeout: 252 seconds]
kireevco has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
pencilcheck has joined #ruby
snath has joined #ruby
alexju has joined #ruby
arya_ has joined #ruby
<ericwood>
okay first of all,
<ericwood>
!paste
mrmargolis has quit [Remote host closed the connection]
<thecoolguy>
ericwood any ideas ?
<ericwood>
no
foo-bar- has joined #ruby
<strelok>
i only know how to use the each method to loop through arrays of arrays
<strelok>
but i dont know how to use that to draw a rectangle in the array
stytown has joined #ruby
<strelok>
like i can with a c style for loop
<ericwood>
strelok: you can but you can do things like step() in ruby
<koyd>
single hash is for project channels, double hash for discussion/topic channels
francisfish has joined #ruby
northfurr has joined #ruby
grieg_ has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frankjpinto_ has joined #ruby
bluOxigen has joined #ruby
<t3i>
I'm confused by threads, I'm on OSX 10.8 running ruby 2.0.0-p481. I'm running a script that benchmarks running code with 1,2,3 and then 4 threads. As I understand it, the threads will use my cpus so as the threads increase the benchmark time should decrease. I tested it with rbx-2.2.7 and it works as expected, but not with ruby-2.0.0. I thought ruby >= 1.9 would do this too?
francisfish has quit [Ping timeout: 264 seconds]
frankjpinto has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
Spami has joined #ruby
foo-bar- has joined #ruby
mikepack has joined #ruby
mmorsi has joined #ruby
foo-bar- has quit [Read error: Connection reset by peer]
dapz has joined #ruby
foo-bar- has joined #ruby
Photism has quit [Quit: Leaving]
hgl has quit [Remote host closed the connection]
foo-bar-_ has joined #ruby
hgl has joined #ruby
anaeem1 has joined #ruby
adantj has joined #ruby
CaptainJet has quit []
bradhe has joined #ruby
johnrover has quit [Ping timeout: 240 seconds]
johnrover_ has joined #ruby
<adantj>
which feels more standard, to have a controller action like new render the edit view, or to have a _form partial and two views as new and edit?
foo-bar- has quit [Ping timeout: 248 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
dapz has quit [Client Quit]
<adantj>
on the edit view there would be checks to see if the current object is a new record or not
dapz has joined #ruby
johnrover_ has quit [Client Quit]
dc_ has quit []
<t3i>
to answer my own question MRI does not use more than 1 core
foo-bar-_ has quit [Ping timeout: 264 seconds]
Soliah has quit [Read error: Connection reset by peer]
<t3i>
adantj: that should probably be a rails question, but if you have too many checks you should probably split them out
<t3i>
into their own partials
<t3i>
which way will there be less duplication?
anaeem1 has quit [Ping timeout: 248 seconds]
mocchi_ has quit [Ping timeout: 255 seconds]
<t3i>
how big is the form partial?
dapz has quit [Client Quit]
<sevenseacat>
depends on the level of duplication, yes - some forms might be one way, some forms might be the other
<t3i>
i was going to add the "It depends ™" message
<adantj>
the form is huge, and I like the later, having separate new/edit views and having a _form partial
sdwrage has quit [Ping timeout: 240 seconds]
<adantj>
sorry, I thought I was on the rails channel, mb
tmcgoo has joined #ruby
johnrover has joined #ruby
Soliah has joined #ruby
dapz has joined #ruby
<t3i>
adantj: can you break the for partial out so the new stuff is it's own partials and the edit stuff is in edit partials?
<t3i>
is in*
mocchi has joined #ruby
<adantj>
Yeah that can be done, I'm on a team and trying to build a case against doing it all in a single view
sdwrage has joined #ruby
<adantj>
but wanted to see if the way the other members of the team have written it was reasonable
<t3i>
the _form partial is the normal starting point, but if it's getting to messy you would normally move to something else
<adantj>
gotcha
timonv has joined #ruby
<t3i>
:-)
thesheff17_ has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
GriffinHeart has quit [Remote host closed the connection]
<adantj>
I think it's suprising to use the new action with the edit view. Like it's not thinking of the Principle of least surprise.
oo_ has joined #ruby
Soliah has quit [Read error: Connection reset by peer]
Soliah has joined #ruby
mr_foobar_baz has joined #ruby
godd2 has quit [Remote host closed the connection]
mr_foobar_baz has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
Royalb15 has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
CorpusCallosum has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
oo_ has quit [Ping timeout: 240 seconds]
Dr3amc0d3r|away has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
<t3i>
adantj: you could still use the form partial but have other partials nested inside it.
Atrumx has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
<t3i>
is there any stuff in the form partial that is identical in both new and edit?
<adantj>
yes
chrishough has quit [Quit: chrishough]
JoshGlzBrk has joined #ruby
<t3i>
adantj: so that could stay in the form partial and then you unique stuff can be extracted to other partials
yfeldblu_ has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
CorpusCallosum has quit [Ping timeout: 248 seconds]
adantj has quit [Ping timeout: 255 seconds]
nanodano has joined #ruby
GriffinHeart has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
arup_r has left #ruby [#ruby]
djbkd has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
FLeiXiuS`` has joined #ruby
x1337807x has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
aspires has joined #ruby
timgauthier has joined #ruby
Kricir has joined #ruby
thomasxie has joined #ruby
crus has joined #ruby
ascarter has joined #ruby
johnrover has quit [Quit: johnrover]
SilkFox_ has joined #ruby
stytown has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
dapz has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
CorpusCallosum has joined #ruby
Rakko has joined #ruby
mgberlin_ has joined #ruby
benzrf is now known as benzrf|offline
frankjpinto__ has joined #ruby
benzrf|offline is now known as benzrf
stytown has quit [Quit: stytown]
theharshest has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
mgberlin has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
aspires has quit []
frankjpinto_ has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
northfurr has quit [Quit: northfurr]
anarang has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brunops has quit [Quit: leaving]
thejamespinto has quit []
relix has joined #ruby
yohanobs_ has joined #ruby
Hanmac has joined #ruby
zkay11 has quit [Quit: Leaving.]
Hanmac1 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik1_ has joined #ruby
aganov has joined #ruby
dideler has quit [Ping timeout: 255 seconds]
northfurr has joined #ruby
Soda has quit [Remote host closed the connection]
frankjpinto_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poindontcare has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poindontcare has joined #ruby
x1337807x has joined #ruby
frankjpinto__ has quit [Ping timeout: 240 seconds]
t3i has quit [Quit: t3i]
charliesome has joined #ruby
dc_ has joined #ruby
FLeiXiuS`` has quit [Ping timeout: 255 seconds]
lewix has quit [Remote host closed the connection]
theharshest has quit [Quit: This computer has gone to sleep]
tobago has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
lewix has joined #ruby
lnoskhen has joined #ruby
dapz has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Doppp has quit [Ping timeout: 245 seconds]
dapz has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
mike24 has joined #ruby
FLeiXiuS`` has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
dapz has joined #ruby
dapz has quit [Client Quit]
dapz has joined #ruby
Morkel has joined #ruby
mikepack has quit [Remote host closed the connection]
yfeldblum has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
timonv has joined #ruby
kalusn has joined #ruby
mikepack has joined #ruby
kyb3r_ has joined #ruby
arup_r has joined #ruby
kalusn has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
gimpygoo has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
arya_ has quit [Ping timeout: 240 seconds]
noopq has joined #ruby
SilkFox_ has quit [Ping timeout: 256 seconds]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dagobert has joined #ruby
noopq has quit [Ping timeout: 240 seconds]
fluve has joined #ruby
Apocalypse has quit [Ping timeout: 240 seconds]
mrmargolis has joined #ruby
starkhalo has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
washtubs has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby
Dagobert has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
mrmargolis has quit [Ping timeout: 264 seconds]
Gooder has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
Macaveli has joined #ruby
francisfish has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Remote host closed the connection]
FLeiXiuS has joined #ruby
Dr3amc0d3r|away has joined #ruby
<FLeiXiuS>
Anyone know if event machine will allow multithreaded queuing?
ta has quit [Ping timeout: 240 seconds]
frankjpinto__ has joined #ruby
anarang has quit [Ping timeout: 248 seconds]
apeiros has quit [Remote host closed the connection]
Photism has joined #ruby
james2395 has joined #ruby
foo-bar- has joined #ruby
frankjpinto_ has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
<mozzarella>
why can't I see the doc of Digest::MD5?
<FLeiXiuS>
j_mcnally, Yeah I have seen it. Not sure if it has everything I need.
foo-bar- has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
<FLeiXiuS>
I'm writing a socket server for a usb serial device. I want the socket server to accept multiple connections but queue the messages being sent to the serial device
alexju has quit [Remote host closed the connection]
suffice has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
Wolland has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Wolland has joined #ruby
robbyoconnor has joined #ruby
nisstyre has quit [Ping timeout: 272 seconds]
quazimodo has quit [Ping timeout: 264 seconds]
eval-in__ has joined #ruby
eval-in_ has quit [Ping timeout: 255 seconds]
klaut has joined #ruby
wildroman2 has joined #ruby
JBreit has joined #ruby
netf has joined #ruby
mehlah has joined #ruby
mehlah has quit [Client Quit]
anaeem1 has joined #ruby
suffice has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
vyorkin has joined #ruby
penzur has quit [Ping timeout: 245 seconds]
gil has joined #ruby
_ has joined #ruby
anaeem1 has quit [Client Quit]
wildroman3 has joined #ruby
wildroman2 has quit [Read error: No route to host]
wildroman3 has quit [Remote host closed the connection]
_ is now known as Guest11873
JBreit has left #ruby [#ruby]
wildroman2 has joined #ruby
poppingtonic has joined #ruby
x1337807x has joined #ruby
claymore has joined #ruby
penzur has joined #ruby
francisfish has joined #ruby
GriffinHeart has joined #ruby
poppingt` has joined #ruby
jprovazn has joined #ruby
kireevco has quit [Quit: Leaving.]
poppingt` has left #ruby [#ruby]
Guest11873 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 264 seconds]
francisfish has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
poppingtonic has quit [Ping timeout: 248 seconds]
anaeem1_ has joined #ruby
Dagobert has joined #ruby
lukebyrne has joined #ruby
NinoScript has quit [Ping timeout: 245 seconds]
Royalb15 has quit [Quit: Leaving]
penzur has quit [Ping timeout: 248 seconds]
NinoScript has joined #ruby
scotty45 has joined #ruby
<scotty45>
is ruby gud
<Dagobert>
yep
<shevy>
scotty45 YES
yohanobs_ has quit [Read error: Connection reset by peer]
james2395 has quit [Ping timeout: 256 seconds]
<shevy>
scotty45 did you start to learn it?
<scotty45>
no
senayar has joined #ruby
rdark has quit [Quit: leaving]
ndrei has quit [Ping timeout: 264 seconds]
<agent_white>
scotty45: Ruby is like opening a pack of "baseball chewing gum" instead of those "blocks of gum".
<agent_white>
You could use your fingers to make it into a block, or you could eat it upside-down, or sideways, or with each strand.
ndrei has joined #ruby
<agent_white>
scotty45: -- don't ask if "it's good" until you try it.
<shevy>
man
<scotty45>
baseball gum is grows
<shevy>
I hate chewing gum
<scotty45>
ruby must be bad
<shevy>
scotty45 ruby is like poetry
<scotty45>
soz
<scotty45>
just joking
<agent_white>
scotty45: Then use your fingers and make it into a block. Or be like shevy and eat your fingers instead.
<shevy>
where you communicate with the computer in elegance
<scotty45>
uhm
<shevy>
my fingers are only on the keyboard, nowhere else
<shevy>
don't listen to what he does with his fingers scotty45
<shevy>
in the future we'll even get rid of the keyboard altogether
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
penzur has joined #ruby
<shevy>
then we code just by issuing thoughts
* agent_white
waves his hands until his arms are numb
<agent_white>
Nah... then when Mr.Bossman comes up we'll accidentally google "wtf is this goon doing hovering over me"
<scotty45>
can i check how many meters i've scrolled with my mouse wheel somewhere on my operating system
<scotty45>
i bet its like miles
Macaveli has joined #ruby
<scotty45>
im running windows 7
doev has quit [Ping timeout: 240 seconds]
Jam_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doev has joined #ruby
dangerousdave has joined #ruby
coderhs has joined #ruby
ta has quit [Ping timeout: 240 seconds]
nanodano has quit [Quit: Leaving.]
northfurr has quit [Quit: northfurr]
<shevy>
scotty45 you'd have to intercept the event
<shevy>
in xorg you can probably do so by wrapping around the xev functionality
ephemerian has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jeaye has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
<jeaye>
Hitting an odd error with the simplest of extensions. On OSX, I cloned and built ruby with no problems, then set up a one-liner ruby extension and it just segfaults. All details should be included: https://gist.github.com/jeaye/ea3c96ad9e4c74bfacf3
FLeiXiuS has quit [Changing host]
FLeiXiuS has joined #ruby
<jeaye>
Ideas?
<scotty45>
im running NetBSD
<scotty45>
on a toaster
nisstyre has joined #ruby
<scotty45>
i can only build toastt
wildroman2 has joined #ruby
p0sixpscl has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mikepack_ has quit [Remote host closed the connection]
wildroman2 has joined #ruby
penzur has quit [Ping timeout: 240 seconds]
vyorkin has quit [Ping timeout: 255 seconds]
<shevy>
netbsd died years ago
<shevy>
(void)c;
<shevy>
is this valid jeaye?
<jeaye>
Sure it is.
<shevy>
I thought that if you define as int main, you'd have to return an int?
Audace has joined #ruby
<jeaye>
main implicitly returns an int, and that cast is a nop expression to remove the unused variable warning.
ta has joined #ruby
<scotty45>
how do i check what users are banned in a given channel
<jeaye>
/ban
kalusn has joined #ruby
<sevenseacat>
"am i still banned?"
<scotty45>
uhm who would i be asking that if im banned tho
<scotty45>
i want to see all the users that are banned
IceDragon has quit [Quit: Space~~~]
penzur has joined #ruby
<jeaye>
shevy: I've updated the gist with less ambiguous code; the problem remains.
vinian has joined #ruby
vinian has quit [Max SendQ exceeded]
vinian has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
<gr33n7007h>
Say I have a method like: def hello(*person, &say)... blah blah does the ampersand make the say a proc object ?
qwyeth has quit [Ping timeout: 240 seconds]
dumdedum has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
lewix has quit [Remote host closed the connection]
Alina-malina has joined #ruby
hgl_ has joined #ruby
theRoUS has quit [Quit: Coyote finally caught me]
bigkevmcd has joined #ruby
kaspergrubbe has joined #ruby
sk87 has joined #ruby
Jon` has quit [Read error: Connection reset by peer]
adelcampo has joined #ruby
jgt has quit []
hgl has quit [Ping timeout: 248 seconds]
<shevy>
well that C code just looks weird
<shevy>
did you try on your own or did you follow a tutorial jeaye?
<shevy>
for instance, I dont see where you use any Init_* functions
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
there are not many C gurus here. apeiros is one ... havenwood ... and bnagy but he is not here
Guest38441 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 248 seconds]
<jeaye>
Ah, yes.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jeaye>
shevy: So, that's perfectly valid C (well, C++ in my case). But you hit the nail on the head with the Init_*
<jeaye>
I either need to provide an Init_* and call into my shared object from ruby, or I need to initialize my own ruby interpreter.
<jeaye>
(using ruby_init(); ruby_run(); et cetera)
<shevy>
\o/
<jeaye>
cheers
<shevy>
all I remember is that years ago I followed a jukebox tutorial
havenwood has quit [Remote host closed the connection]
<shevy>
and it had the weird Init stuff
<shevy>
but it actually worked for me
average has quit [Quit: leaving]
<jeaye>
Right, right.
<shevy>
I never learned C properly though, it still bites me today :(
<jeaye>
My entry point is C++ though, not Ruby. So I'll need to spawn a Ruby interpreter and call into that.
<jeaye>
shevy: Never too late.
Lingo has joined #ruby
jackneill has joined #ruby
oo_ has quit [Remote host closed the connection]
bato has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
oh wait that is good
<shevy>
if you know C++ then you will find a man for your job here
<workmad3>
jheg: irb is a great place to try stuff out btw
bergelmir has joined #ruby
<bergelmir>
i've created my own gem, executed 'rake build' and 'rake install', i can find the gem by running 'gem list | grep <gemname>' but if i run irb and require it, i get "cannot load such file"
lukebyrne has joined #ruby
sk87 has joined #ruby
timonv has joined #ruby
razum2um has quit [Quit: Leaving.]
razum2um has joined #ruby
Joulse has quit [Quit: Joulse]
<jheg>
workmad3: thanks
lukebyrne has quit [Read error: Connection timed out]
sevenseacat has quit [Quit: Leaving.]
Atttwww has quit [Ping timeout: 240 seconds]
lukebyrne has joined #ruby
<bergelmir>
are there any restrictions on how to name a gem?
<bergelmir>
"dummy" works fine, "dummy_foo" works fine, "dummy-foo" doesn't work
<bergelmir>
but if i check 'gem list' there are gems with dashes
grieg_ has joined #ruby
dgaffney has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
dgaffney has joined #ruby
n3byt3 has joined #ruby
<Hanmac>
hm no, "dummy-foo" should work too ... except that you might need to escape it in the bash ... thats why it should be avoided
ferr has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
Guest9344 has joined #ruby
Hanmac1 has joined #ruby
Joulse has joined #ruby
james2395 has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: chrishough]
oo_ has quit [Remote host closed the connection]
<bergelmir>
Hanmac1: require "rspec-expectations" works fine
oo_ has joined #ruby
jottr has joined #ruby
<bergelmir>
i can't find the difference :(
<shevy>
bergelmir this depends on the name of the file
<Hanmac1>
wait a minute ... do you have problems with gem install or require of the gem?
<shevy>
require 'foo-bar' should look for a file called foo-bar.rb
<shevy>
require 'foobar' should look for foobar.rb
<shevy>
require 'foo/bar' should look for foo/bar.rb
carraroj has joined #ruby
<bergelmir>
ahahahahaha
<bergelmir>
require "dummy/foo" :)
<shevy>
bergelmir in the case of gem authors, if they were not lazy bastards, they will tell you how to use their gem
<shevy>
good!
* Hanmac1
Hanmac
Hanmac1 is now known as Hanmac
lkba has joined #ruby
* Hanmac
is now known as "YetAnotherLazyBastard"
oo_ has quit [Remote host closed the connection]
<shevy>
yeah
<bergelmir>
thanks guys!
oo_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
funktor has joined #ruby
karupa is now known as zz_karupa
<Cork>
is it possible to replace a module method by overriding it with a module redefinition?
<Hanmac>
yes
<Cork>
i'm trying to do module Shellwords; def shelljoin(array); end; end
<Cork>
but the original method is still used
alem0lars has quit [Quit: Going AFK...]
<Cork>
what am i missing?
<DefV>
maybe Shellwords module isn't loaded yet when you define your module?
<Cork>
no i do it in irb
<Cork>
and i run and actually use Shellwords before
<arup_r>
wasamasa: That's cool. But I want to delete it too.. So you meant, first count, then delete and then return the count .. right ?
roolo has joined #ruby
<wasamasa>
arup_r: well, say that beforehand
goganchic has quit []
<wasamasa>
arup_r: also, sounds like you're mixing up your concerns
<wasamasa>
arup_r: give us moar context what this thing is supposed to do as it sounds like a xy-problem
<shevy>
I am concerned about you wasamasa
<arup_r>
wasamasa: bad method name I see...
<arup_r>
The method will delete the items and return the count of items deleted.. That's it
krz has joined #ruby
<AlexRussia>
shevy: how i could understand, how to generate documentation without diaspora sources? :)
jhass|off is now known as jhass
<AlexRussia>
jhass: good morning
<shevy>
AlexRussia wat?
schaary|afk is now known as schaary
<ddv>
you have to read the documentation on how to generate the documentation
codecop_ has joined #ruby
<shevy>
lol
funktor has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
codecop has quit [Quit: Išeinu]
codecop_ has quit [Read error: Connection reset by peer]
codecop has joined #ruby
<arup_r>
wasamasa: Am I clear now ?
jottr has joined #ruby
<wasamasa>
arup_r: I just wanted to know why you'd want to have both at the same time
gruz0[russia] has joined #ruby
<arup_r>
Well. I have a need, where I want remove some unwanted things from the collection. But If I use Array#delete it will delete, but not give me the count at the same time. Thus I thought I will write my own , which will delete first and give me the count. But the code I
<arup_r>
wrote, not looks good
<apeiros>
>> ary = %w[a b a d t r]; before = ary.size; ary.delete('a'); before - ary.size
<jheg>
yeah I need to take the letters of all the strings in an array sort them and then compare against other strings to see if they contain the same letters
codecop has quit [Quit: Išeinu]
<apeiros>
I'm not sure you understood my question :)
<arup_r>
if only letter use
codecop has joined #ruby
<apeiros>
the above methods give you all *characters*. if you only need *letters*, you need a different solution.
<apeiros>
the solution then depends on what you consider to be a letter (e.g. different scripts)
Takle has quit [Remote host closed the connection]
<jheg>
oh right well I guess I do need chars in case of hyphens and the like
<arup_r>
sorry 'ae1234'.scan(/[a-z]/i)
codecop has quit [Client Quit]
codecop has joined #ruby
<apeiros>
e.g. scan(/\p{L}/) uses unicode's definition of letter
anarang has quit [Ping timeout: 264 seconds]
foo-bar- has joined #ruby
jonathan_alban has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
codecop has quit [Client Quit]
claymore has joined #ruby
phoo1234567 has quit [Quit: Leaving]
codecop has joined #ruby
User458764 is now known as User458764_NotHe
<AlexRussia>
jhass: how to generate docs for diaspora code?
<Hanmac>
my letters does have character ;P
foo-bar- has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
<shevy>
my letters got attitude
workmad3 has quit [Ping timeout: 256 seconds]
<arup_r>
If I write class Foo; include Enumerable; end This code include all methods from Enumerable. But suppose I want to include #all?, #any? .. What's the way to include only required methods ?
ldnunes has joined #ruby
moritzs has joined #ruby
<arup_r>
But not all
alem0lars has joined #ruby
phoo1234567 has joined #ruby
phoo1234567 has quit [Read error: Connection reset by peer]
User458764_NotHe has quit [Ping timeout: 255 seconds]
Neomex has quit [Quit: Leaving]
Shidash has joined #ruby
<shevy>
not sure this is possible
<shevy>
include works in an all-or-nothing manner as far as I know
<shevy>
would be interesting to support :: notation ... like: include Enumerable::all?
phoo1234567 has joined #ruby
<shevy>
arup_r did you suggest this to ruby-core yet?
SilkFox_ has quit [Ping timeout: 240 seconds]
phoo1234567 has quit [Max SendQ exceeded]
<arup_r>
No.. This is the need I just faced.. I think I should first ask in Ruby-talk.. Does it sound good ?
phoo1234567 has joined #ruby
bubbajones has joined #ruby
<shevy>
dunno
<shevy>
let's ask apeiros
<arup_r>
apeiros: What's your opinion ?
<apeiros>
on?
JasmeetQA1 has quit [Read error: Connection reset by peer]
<apeiros>
ah, partial include
<arup_r>
Yes.. :-)
<apeiros>
you can do it hackishly via instance_method + define_method. but IMO if you have .each, just include all of Enumerable. what's the point of not including all?
iceyec has joined #ruby
<shevy>
oh
<shevy>
that name already exists? partial include?
iceyec has quit [Client Quit]
<arup_r>
apeiros: problem is I don't want my class object to have idea about all methods, but I also want to take advantage of #all? and #any? but not the others..
<arup_r>
shevy: No this is his understanding our point..
<apeiros>
arup_r: that does not answer the question *why* you don't want it to have all the methods
iceyec has joined #ruby
<apeiros>
you only repeated *that* you don't want it
sk87 has joined #ruby
ndrei has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<jhass>
arup_r: ^ I can't think of a reason to do partial includes. If you have the need for your own modules to do that, the should be more than one module.
<arup_r>
Right now I am thinking to implement a class... which needs only those 2 methods.. But I am not aware of.. if the object sometimes calls those other, what would happen. To answer you I need to think broadly
Noob101 has quit [Ping timeout: 246 seconds]
<jhass>
it's tricky anyway, how'd you know which other methods of the module the method you want depends on?
<apeiros>
the point is: *you* only need those 2 methods
<apeiros>
and if you include Enumerable, users of the class expect all methods. and *you* can't possibly anticipate all of *their* use cases.
<apeiros>
and if you don't use the other methods - well, they don't hurt being around unused.
<apeiros>
it doesn't have any impact on performance or memory requirement
<arup_r>
An Account class, how will be benefited having reduce method.. It is out of my usecase.. :-)
<apeiros>
and it doesn't have any impact on documentation either, because you don't document inherited methods
anaeem1_ has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 240 seconds]
<apeiros>
arup_r: you are saying you can anticipate *everybodys* use-case for all times?
<apeiros>
you must be a prophet
decoponio has joined #ruby
<apeiros>
anyway, you asked me for my opinion. I've given my opinion along with the rationales.
maximski has quit []
iamjarvo has joined #ruby
<arup_r>
Okay.. In Rails they do the same with method :resources It takes an argument like :only, :except
<jhass>
that's not even remotely comparable
<arup_r>
apeiros: Thanks
sailias has joined #ruby
alem0lars has joined #ruby
<apeiros>
a) rails is not a role model for good code in *so* many areas
<apeiros>
b) that case might differ wildly from yours
<apeiros>
(note to a) - there are places where rails code very good, or sometimes even excellent)
<arup_r>
apeiros: Correct.
anarang has joined #ruby
System123 has quit [Remote host closed the connection]
Takle has joined #ruby
<arup_r>
The things is suppose If I allow sort_by from Enumerable, I need to implement #<=>, for #grep I need to implement #=== .... But this all I don't need.. That's why I thought I will put restrictions... May be thinking is vague.. But That's how I thought.
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
deric_skibotn has quit [Ping timeout: 260 seconds]
<Hanmac>
arup_r: for Enumerable you need each on the Container, but <=> on the elements, (just think that the elements need to be Comparable)
pewp3w has joined #ruby
<apeiros>
arup_r: nonsense
AlexRussia has joined #ruby
<arup_r>
Me? I accept..
<pewp3w>
hi all getting this error when i run the brew command
<jheg>
basically the code is sorting letters from strings in an array and then putting the into a hash k,v pair based on if the anagram of its letters already exists in the hash
mikespla_ has joined #ruby
<jheg>
I get the first part. Its testing if the key already exists and if so append the word to the value of that key which is an array
pasties has joined #ruby
exgf has joined #ruby
<jheg>
but I don't understand how the new key is created if it doesn't which is what line 81 and 82 does
iceyec has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
<jheg>
I'm struggling to see how result[key] creates a new key just from result[key]
alem0lars has quit [Quit: Going AFK...]
Doppp has joined #ruby
<DefV>
jheg: what?
<jheg>
ha
<DefV>
>> result = {}; result['f'] = ['foo']; result
<workmad3>
jheg: err... because that's what Hash#[]= is *for*? :)
<DefV>
but the code is bad
<DefV>
it should just be
<DefV>
result = Hash.new {|h,k| h[k] = []}; words.each {|word| key = ...; result[key] << word }
<jheg>
I understand that result[key] = value adds value to the key (i think)
<DefV>
allthough that probably blows your mind
<jheg>
but I didn't understand how the key is created from that
<DefV>
you're approaching this wrong
<DefV>
result[key] sets the value of key to whatever you assign it
<DefV>
but the code assigns it an array with 1 vallue
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<jheg>
I get the second part
<DefV>
and the if checks "if there's already an array in there, just append this word to that array"
<DefV>
if there's not
<jheg>
and I get that
<DefV>
just create an array with 1 word
<DefV>
and assign it to that key in the hash
lxsameer has quit [Quit: Leaving]
<jheg>
thats the bit thats confusing me
<DefV>
I can see that
<jheg>
'and assign it to that key in the hash
<jheg>
'
<jheg>
ha
britneywright has quit [Ping timeout: 240 seconds]
johnrover has quit [Quit: johnrover]
<DefV>
do you know what a hash is?
<DefV>
it's key-value association
<DefV>
a = {'mykey' => 'yourvalue'}
<workmad3>
jheg: 'some_hash["foo"]' <-- that accesses the key "foo" in the hash... 'some_hash["foo"] = "bar"' <-- that assigns the value "bar" to the key "foo" inside the hash (and inserts the key into the hash if it's not already present)
<DefV>
a['mykey'] => 'yourvalue'
puppeh has left #ruby ["Leaving..."]
<DefV>
a['newkey'] => 'value'
<jheg>
ah thats helped workmad3
<jheg>
it was the assigning that was confusing me
<jheg>
so if I am referencing a key that doesn't exist it will auto assign it to the hash?
<workmad3>
jheg: drop that 'auto assign' and change it to just 'assign'
<jheg>
yep ok
mbwe has quit [Quit: WeeChat 0.4.2]
<workmad3>
jheg: and yes... and if you assign to a key that *does* exist, you'll overwrite the value there
johnrover has joined #ruby
qwyeth has joined #ruby
<workmad3>
jheg: e.g. 'some_hash["foo"] = "fizz"; some_hash["foo"] = "buzz"' <-- that will end up with {"foo" => "buzz"} in the hash
<jheg>
yep makes sense phew
sdwrage has joined #ruby
alem0lars has joined #ruby
<jheg>
DefV: result = Hash.new {|h,k| h[k] = []}; words.each {|word| key = ...; result[key] << word }
<jheg>
blew my mind :)
<jheg>
thanks for explaining it though
johnrover has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
Snarkz has joined #ruby
mrmargolis has joined #ruby
codecop has quit [Quit: Išeinu]
tmtwd has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zly has quit [Changing host]
zly has joined #ruby
jheg has quit [Quit: jheg]
Zenigor has joined #ruby
oo_ has quit [Remote host closed the connection]
K3dare has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
K3dare has joined #ruby
johnrover has joined #ruby
iceyec has quit [Quit: iceyec]
ta has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 264 seconds]
ta has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
mattstratton has quit [Remote host closed the connection]
diegoviola has joined #ruby
northfurr has joined #ruby
Channel6 has joined #ruby
britneywright has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
CorpusCallosum has joined #ruby
ta has quit [Ping timeout: 245 seconds]
mijicd has quit [Remote host closed the connection]
johnrover has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
tokik has joined #ruby
adantj has joined #ruby
ffranz has joined #ruby
djcp has joined #ruby
djcp has left #ruby [#ruby]
klaut has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
vifino has joined #ruby
apeiros has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
apeiros has joined #ruby
alexju has joined #ruby
manlio has quit [Remote host closed the connection]
lectrick has quit [Changing host]
lectrick has joined #ruby
apeiros has quit [Remote host closed the connection]
mark_locklear has joined #ruby
apeiros has joined #ruby
iceyec has joined #ruby
hamakn has joined #ruby
sailias has joined #ruby
<lectrick>
Anyone else still annoyed by the lack of consistency in "bang" methods vs. not? I think it's serious enough that all mutating or outside-state-effecting methods should be bang methods... which is why I originally whipped this up: https://gist.github.com/pmarreck/7919142
addisaden has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
tmtwd has joined #ruby
manlio has joined #ruby
mikespla_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie>
That's never what it was meant to be. foo! indicates that foo is a more "dangerous" variant of foo
<Mon_Ouie>
It makes no sense if there is no foo in the first place
alexju has quit [Remote host closed the connection]
kith_ has joined #ruby
ylluminate_ has joined #ruby
hakunin_ has joined #ruby
timonv_ has joined #ruby
CingulateCortex has joined #ruby
voodoofish4301 has joined #ruby
<Mon_Ouie>
I don't think it helps make things more readable anyway, it just helps to use the same method name for the mutating and non-mutating variants of the same method
james2395 has joined #ruby
tjr9898 has joined #ruby
patronus_ has joined #ruby
uxp_ has joined #ruby
SilverKey has joined #ruby
addisaden has quit [Client Quit]
musl_ has joined #ruby
mattp_ has joined #ruby
freerobby has quit [Quit: Leaving.]
alexju has joined #ruby
<lectrick>
Mon_Ouie: And that's what I think is wrong. There is in fact an entire class of bugs that is based on mutability issues. This is exactly why certain programmers are fleeing to the functional, immutable languages right now.
BombAw has joined #ruby
SJrX has joined #ruby
wmoxam_ has joined #ruby
_688as_ has joined #ruby
saltsa has joined #ruby
okinomo_ has joined #ruby
nwkr has joined #ruby
Snickers_ has joined #ruby
ejnahc_ has joined #ruby
<lectrick>
Mon_Ouie: Have you seen Rich Hickey's talk about how mutable variables introduce a hidden "time argument" (since the value of that location in memory is dependent on the time you read it) which is what blows up concurrency?
<lectrick>
You won't really understand why until you've seen a bug where an argument is passed to a method and then that method performs a mutating operation on that argument which modifies it back in the sender
<lectrick>
(a mutating operation with a method that doesn't end in a bang, I mean)
funktor has joined #ruby
pipecloud has joined #ruby
pipecloud has joined #ruby
pipecloud has quit [Changing host]
Kilo`byte has joined #ruby
mocchi_ has joined #ruby
moshee has joined #ruby
<wasamasa>
no, it's just inconsistent if you don't remove the methods without a bang that still mutate
teejar_ has joined #ruby
aep_ has joined #ruby
Rickmast- has joined #ruby
wiscasss has joined #ruby
mgorbach_ has joined #ruby
Kov|kasumi has joined #ruby
quantsini_ has joined #ruby
ViperChi- has joined #ruby
<lectrick>
helpa: the github repo was taken down? lol
JZTech102 has joined #ruby
Sigma00_ has joined #ruby
kayloos has joined #ruby
Prawnzy_ has joined #ruby
NuckingFuts has joined #ruby
<lectrick>
wasamasa: I agree
C0deMaver1ck_ has joined #ruby
<wasamasa>
which you can't do unless you start a new language
blackjid has joined #ruby
iamjarvo has joined #ruby
<wasamasa>
or something dsl-like so it's just block-specific
<olivier_bK>
how to add newline in yaml file ?
<lectrick>
wasamasa: But then you'd break all your gem code. So you could use refinements. I think. And start arguments over it lol
<wasamasa>
lectrick: anyways, I can't find this clojure-like for ruby anymore
<apeiros>
gah, and require 'yaml' of course won't work…
<olivier_bK>
ok
<apeiros>
Cork: doesn't sound like pretty printing to me
<Cork>
apeiros: ya, the comment directly after contradicted that quite a bit
CorpusCallosum has joined #ruby
<apeiros>
rule no. 17 in irc: people don't have a f'ing clue how to phrase problems
yfeldblu_ has quit [Ping timeout: 255 seconds]
<apeiros>
(yes, that includes me)
ringaroses2 has quit [Read error: Connection reset by peer]
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
xaxisx has quit [Quit: xaxisx]
CingulateCortex has joined #ruby
joonty has joined #ruby
<apeiros>
olivier_bK: note for the future: when nobody replies to your question, don't just repeat it. chance is your original question was not understandable.
havenwood has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: ZNC - http://znc.in]
<Hanmac>
>> require "yaml"
CorpusCallosum has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
havenwood has joined #ruby
jobewan has joined #ruby
tobago has quit [Remote host closed the connection]
Doppp has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
devdazed has joined #ruby
LadyRainicorn has joined #ruby
aganov has quit [Quit: Leaving]
alem0lars has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
rayners has joined #ruby
machete has quit [Ping timeout: 256 seconds]
jeaye has joined #ruby
machete has joined #ruby
arya_ has joined #ruby
xaxisx has joined #ruby
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
<olivier_bK>
apeiros, i know but a lot of people have been disconnected
<olivier_bK>
apeiros, :)
<olivier_bK>
thanks i've solved my problem
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikesplain has joined #ruby
machete has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
mengu has quit []
tmtwd has quit [Ping timeout: 240 seconds]
machete has joined #ruby
saarinen has joined #ruby
mikespla_ has quit [Ping timeout: 264 seconds]
pskrz has quit [Ping timeout: 240 seconds]
whowantstolivefo has joined #ruby
nfk has quit [Ping timeout: 240 seconds]
tesuji has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
Doppp has quit [Ping timeout: 256 seconds]
awkwords has joined #ruby
blueOxigen has quit [Read error: Connection reset by peer]
Alina-malina has quit [Read error: Connection reset by peer]
peret has joined #ruby
coderhs has joined #ruby
Alina-malina has joined #ruby
tmtwd has joined #ruby
Takle has quit [Remote host closed the connection]
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
mikesplain has joined #ruby
jeaye has quit [Quit: movie]
Jam___ has joined #ruby
drawingthesun has quit [Read error: Connection reset by peer]
Rainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
BadQuanta has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ascarter has joined #ruby
iceyec has joined #ruby
elikem has joined #ruby
tjr9898 has joined #ruby
jheg has quit [Quit: jheg]
pskrz has joined #ruby
ringarin has joined #ruby
saarinen has quit [Quit: saarinen]
iceden has quit [Ping timeout: 240 seconds]
sunya7a has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
arup_r has joined #ruby
iceden has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Read error: No route to host]
iamjarvo has joined #ruby
bal has quit [Quit: bal]
jprovazn has quit [Quit: Leaving]
sunya7a has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
oo_ has joined #ruby
mark_locklear has joined #ruby
xaxisx has quit [Quit: xaxisx]
mmorsi has quit [Quit: Leaving.]
bluOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
alem0lars has quit [Quit: alem0lars]
xaxisx has joined #ruby
lmickh has joined #ruby
anarang has quit [Quit: Leaving]
Rainicorn has quit [Ping timeout: 240 seconds]
CingulateCortex has quit [Ping timeout: 240 seconds]
adelcampo has joined #ruby
yfeldblum has joined #ruby
LadyRainicorn has joined #ruby
adelcampo is now known as doritostains
jottr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
maestrojed has joined #ruby
<arup_r>
Hi..
<arup_r>
Can you tell me how to select all files from a directory, which has a word like 'test' but not the stating or ending word ?
yfeldblum has quit [Ping timeout: 272 seconds]
jgt has joined #ruby
<pontiki>
arup_r: do you know regular expressions?
fabrice31 has quit [Remote host closed the connection]
<elaptics>
arup_r: take a look at Dir.glob
yfeldblum has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 245 seconds]
Hien has quit [Quit: leaving]
Hien has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geggam has joined #ruby
maoko has quit [Ping timeout: 240 seconds]
dideler has joined #ruby
CaptainJet has joined #ruby
wildroman2 has quit [Remote host closed the connection]
dik_dak has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
ferr has quit [Ping timeout: 256 seconds]
BadQuanta has quit [Remote host closed the connection]
charliesome has joined #ruby
Heskie has quit []
fumk has quit [Remote host closed the connection]
stytown has joined #ruby
iceyec has quit [Quit: iceyec]
Takle has quit [Remote host closed the connection]
alex88 has quit [Quit: Leaving...]
macaveli_ has joined #ruby
stytown has quit [Client Quit]
<macaveli_>
Can anyone explain the differences please global variables are prefixed with $, instance variables are prefixed with @, and class variables are prefixed with @@
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
tmtwd has quit [Ping timeout: 245 seconds]
fumk has joined #ruby
wildroman2 has joined #ruby
ta has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<pontiki>
global variables are available everywhere, instance variables are available anywhere in the instance, class variables are availalbe to all instances of a class
Jam___ has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
relix has joined #ruby
rippa has joined #ruby
<macaveli_>
So in ruby on rails env @@ is used in enheritated classes?
<macaveli_>
@ is used in views for example
<pontiki>
you've just introduced yet another concept of inheritance
aspires has joined #ruby
<macaveli_>
What do you mean pontiki?
iamjarvo has quit [Read error: Connection reset by peer]
codeurge has joined #ruby
ntz has joined #ruby
<ntz>
hello
<pontiki>
the first question you asked had nothing to do with inheritance
iamjarvo has joined #ruby
oo_ has quit [Remote host closed the connection]
frellnet has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<macaveli_>
I dont really understand what you mean with instances of a class :)
<Mon_Ouie>
Foo.new is an instance of Foo
iamjarvo has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<Mon_Ouie>
"foo" is an instance of String
maximski has quit []
tmtwd has joined #ruby
iamjarvo has joined #ruby
<ntz>
can anybody tell me howto tell to File::Stat to not transform what it reads and print it raw like this: # perl -e 'my $file = "/etc/hosts"; print join(";", $file, stat("$file")), "\n"'
<Mon_Ouie>
There's a relation with subclasses and the answer to your question though, since class variables are the same for a class, its intances, its subclasses, and all instances of those
<ntz>
File::Stat in this (retarded) language just does postprocessing of times, modes, ....
coderhs has quit [Ping timeout: 240 seconds]
<pontiki>
leave if you don't like ruby, it's as simple as that
anaeem1 has quit [Remote host closed the connection]
<pontiki>
otherwise, stop being abusive
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
jfran_ has joined #ruby
jfran has joined #ruby
anaeem1_ has joined #ruby
<macaveli_>
In my head i have a class with method index and create if I create variable $foo i can use it in the whole class correct?
<ntz>
pontiki: okay, please don't take it personally, it's irc and my opinion about ruby is not meant to harm you
dideler has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Global variables are the same throughout the *entire* program
<pontiki>
ntz: don't take it personally, but i have no wish to help you
|337 has joined #ruby
<macaveli_>
Alright so variables in a class only should be defined witgmhmmm
<macaveli_>
With @
moted has joined #ruby
<ntz>
pontiki: I'm fine with that because I don't believe that you could do it .. otherwise you did it already :D\
<macaveli_>
Or @@
<|337>
Does anyone fancy writing me an irc bot in ruby for free?
<pontiki>
no, i was about to actually go find out
oo_ has joined #ruby
_maes_ has joined #ruby
dideler has joined #ruby
foo-bar- has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
<macaveli_>
Anyone have an use case example of usage for $ @ @@ on gist?
mikepack has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<macaveli_>
Would appreciate that a lot!..
Wolland has joined #ruby
<pontiki>
there already are a few out there, 337
anaeem1_ has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkxploit has joined #ruby
<macaveli_>
Link please? Lol I develop ruby on rails all the time and I just use things without knowing what they mean i feel like such a cowboy lol
<Mon_Ouie>
It depends on what you want still. If you want the variable to be the same for each instance of your class, you'd use @foo; if you wan the variable to be the same for every instance (etc.) you'd use @@foo.
Wolland has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Another thing (probably more commonly used than class variables) is an instance variable when self is a Class (that way it won't be shared with subclasses)
<ntz>
anyway, thanks for help, tyme for plan B
<ntz>
**time
|337 has left #ruby [#ruby]
Takle has joined #ruby
banister has joined #ruby
dideler has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
Zenigor has joined #ruby
<pontiki>
macaveli_: the pickaxe book explains this pretty well
jottr_ has quit [Ping timeout: 245 seconds]
ntz has left #ruby [#ruby]
ixti has joined #ruby
omosoj has joined #ruby
Wolland has quit [Remote host closed the connection]
Kricir has joined #ruby
macaveli_ has quit [Ping timeout: 246 seconds]
Wolland has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
tungd has joined #ruby
Joulse has quit [Ping timeout: 245 seconds]
Wolland has quit [Read error: Connection reset by peer]
Joulse has joined #ruby
<havenwood>
macaveli_: Practically, use instance variables.
edmellum has quit [Quit: Connection closed for inactivity]
sailias has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
icarus_ is now known as icarus
doev has quit [Quit: Verlassend]
elico has quit [Quit: Leaving.]
<pontiki>
haha, see what i mean?
elico has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
jdj_dk has quit [Remote host closed the connection]
<pontiki>
i had no idea ? would fence * like that
charlied3 has joined #ruby
tmtwd has joined #ruby
maletor has joined #ruby
Asher has quit [Quit: Leaving.]
wmoxam_ is now known as wmoxam
Notte has quit [Remote host closed the connection]
wmoxam has joined #ruby
wmoxam has quit [Changing host]
jarto has joined #ruby
Jam___ has joined #ruby
xaxisx has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
_688as_ has left #ruby [#ruby]
chipotle has joined #ruby
Alayde has joined #ruby
oo_ has quit [Ping timeout: 260 seconds]
maestrojed has joined #ruby
wallerdev has quit [Quit: wallerdev]
duper has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
User458764 is now known as User458764_NotHe
ta has joined #ruby
yfeldblum has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 260 seconds]
Soda has quit [Remote host closed the connection]
larsam has quit [Read error: Connection reset by peer]
edgarjs is now known as edgarjs_afk
edgarjs_afk is now known as edgarjs
klaut has quit [Remote host closed the connection]
duper has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
User458764_NotHe has quit [Ping timeout: 272 seconds]
<ceej>
afternoon, when using Gem::Specification.find_by_name is there anyway to specify the source? it looks like the only way is to add the source first then search
timonv has joined #ruby
timonv_ has joined #ruby
Hobogrammer has joined #ruby
ta has quit [Ping timeout: 256 seconds]
benzrf|offline is now known as benzrf
Soda has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
funktor has quit [Remote host closed the connection]
Alayde has left #ruby ["WeeChat 0.3.8"]
timonv has quit [Ping timeout: 240 seconds]
xaxisx has quit [Quit: xaxisx]
baroquebobcat has joined #ruby
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
kaspergrubbe has joined #ruby
manlio has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
Takle has quit [Remote host closed the connection]
xaxisx has joined #ruby
tectonic has joined #ruby
rdark has quit [Quit: leaving]
vyorkin has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
jimbauds has joined #ruby
djbkd has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
ta has joined #ruby
wallerdev has joined #ruby
elikem has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
oo_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikespla_ has joined #ruby
terrellt has joined #ruby
kalusn has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
xaxisx has quit [Quit: xaxisx]
chipotle has joined #ruby
orionstein is now known as orionstein_away
oo_ has quit [Ping timeout: 256 seconds]
einarj has quit [Remote host closed the connection]
orionstein_away is now known as orionstein
Morkel has joined #ruby
dumdedum has quit [Ping timeout: 240 seconds]
nanoyak_ has joined #ruby
Snarkz has joined #ruby
iceyec has quit [Quit: iceyec]
djbkd has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
Takle has joined #ruby
iamjarvo has joined #ruby
ta has joined #ruby
mikecmpbll has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
mconnolly has joined #ruby
IceDragon has joined #ruby
Killerkeksdose_ has quit [Ping timeout: 240 seconds]
ta has quit [Read error: Connection reset by peer]
Killerkeksdose has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
frankjpinto has joined #ruby
tungd has quit [Ping timeout: 256 seconds]
certainty has joined #ruby
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xaxisx has joined #ruby
vt102 has joined #ruby
tjr9898 has joined #ruby
joelroa has joined #ruby
iceyec has joined #ruby
djbkd has joined #ruby
Spami has joined #ruby
CodeLicker is now known as CodeLicker|artic
omosoj has quit [Ping timeout: 245 seconds]
elikem has joined #ruby
CodeLicker|artic is now known as Code|articling
xaxisx has quit [Client Quit]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<arup_r>
Ohh! Dir::[] why not you telling me, how can I use it.. :(
sheperson has joined #ruby
kirun has joined #ruby
havenwood has quit [Remote host closed the connection]
charliesome has joined #ruby
xaxisx has joined #ruby
ameech has quit []
havenwood has joined #ruby
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omosoj has joined #ruby
timonv_ has quit [Remote host closed the connection]
St_Marx has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
<shevy>
arup_r Dir['*.porn'].size
djbkd has quit [Remote host closed the connection]
<shevy>
if you have to do something more complicated than that
<shevy>
then you are doing it wrong
<shevy>
:P
bradleyprice has joined #ruby
apeiros has joined #ruby
<arup_r>
shevy: Lollz
krz has quit [Read error: Connection reset by peer]
CorpusCallosum has quit [Ping timeout: 240 seconds]
Phonetiki has joined #ruby
<Phonetiki>
hey
dblessing has quit [Quit: dblessing]
bradleyprice has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
tmtwd has joined #ruby
djbkd has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
sdwrage_ has joined #ruby
sdwrage has quit [Ping timeout: 240 seconds]
Phonetiki has quit [Client Quit]
LadyRainicorn has quit [Quit: Bye]
jottr_ has quit [Ping timeout: 260 seconds]
<theharshest>
how can I access a variable defined in a module, in class defined in the same module?
saarinen has quit [Quit: saarinen]
dangerousdave has quit [Read error: Connection reset by peer]
mg^ has joined #ruby
<havenwood>
theharshest: like you would if the class wasn't in the module
dangerousdave has joined #ruby
<theharshest>
havenwood: So I would define it as @var1 or var1? then use "attr_accessor :var1" and then use Module1.var1 in classes?
benzrf is now known as benzrf|offline
blackmes1 has quit [Ping timeout: 255 seconds]
sdwrage_ has quit [Client Quit]
User458764 has joined #ruby
moritzs has joined #ruby
malditogeek has quit [Quit: Leaving.]
mosoj has joined #ruby
xaxisx has quit [Quit: xaxisx]
jackneill has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
<havenwood>
theharshest: Is that how you're currently using the module? An `attr_accessor` in `class << self`?
CorpusCallosum has joined #ruby
<theharshest>
havenwood: Now I have changed it to setter and getter in module and then classes use them to get the variable value.
<havenwood>
theharshest: Hard to say how it makes sense to put it together, but just being in a namespace doesn't give special access to instance variables.
francisfish has joined #ruby
<theharshest>
havenwood: I see
nobitanobi has joined #ruby
chipotle has quit [Quit: cya]
<nobitanobi>
morning
senayar has joined #ruby
omosoj has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
endash has joined #ruby
mconnolly has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
<havenwood>
theharshest: make it flat and simple if you can :)
<havenwood>
nobitanobi: g'morning
<nobitanobi>
Any RESTful advocate in this room? :D
<arup_r>
Did any one ever use module_function ? A bit confusing it is...
x1337807x has joined #ruby
<theharshest>
havenwood: I'm absolutely new to ruby and making changes in an existing repo. Nothing is easy as of now :P
<havenwood>
theharshest: aha!
User458764 is now known as User458764_NotHe
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 240 seconds]
kalusn has quit [Remote host closed the connection]
mconnolly has joined #ruby
xaxisx has joined #ruby
<havenwood>
nobitanobi: lets just say we don't use SOAP :P
<apeiros>
CORBA ftw!
elikem has joined #ruby
Takle has quit [Remote host closed the connection]
<nobitanobi>
havenwood: great! I have been breaking my head over an architecture problem
jgt has quit []
workmad3 has quit [Ping timeout: 245 seconds]
jackneill has joined #ruby
Ankhers has joined #ruby
<nobitanobi>
I have an application that let's user create Ads - They can do a POST to /ads with a JSON with ads attributes and I respond with a Created and the ID of this new resource. However, the actual building of the Ad is done in a background process (image processing, uploading of the image, etc...)
User458764_NotHe has quit [Ping timeout: 256 seconds]
CodeBunny has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros>
time to explore forces based algorithm for my battleship AI :D
razum2um has quit [Quit: Leaving.]
djcp has joined #ruby
xaxisx has quit [Client Quit]
volk_ has joined #ruby
AlSquire has joined #ruby
<volk_>
hey guys im wondering how to stub a variable in a module with rspec.
<volk_>
i cant figure it out
baroquebobcat has joined #ruby
<nobitanobi>
Now, we also have the concept of an Order. The user should be able to say, hey, I want to create an Order with these Ads. So, I let the user do a POST to /orders and within the JSON they can put all the Ads. So with a single POST, there are actually N+1 resources created (The order itself, and all the Ads)
djcp has left #ruby [#ruby]
User458764 has joined #ruby
jdj_dk has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
<CodeBunny>
Does anyone know how to clear local storage in webdriver?
mconnolly has quit [Ping timeout: 240 seconds]
<nobitanobi>
So, the problem comes with scaling this approach. Since a single POST request can create several resources (inserting into DB), it is slow when we grow that number (I am using Rails ActiveRecord) of contained Ads. I would like to know what is a RESTful way of dealing with this kind of problem.
<nobitanobi>
CodeBunny: what do you mean by local storage/
treehug88 has quit [Ping timeout: 240 seconds]
<CodeBunny>
local storage, as opposed to cookies
<nobitanobi>
you don't mean HTML5 concept of local storage right?
<nobitanobi>
CodeBunny: I am not sure then. Try to run that from within the Phantom itself?
<volk_>
arup_r: is the model a module
<arup_r>
yes.. :p
garethrees has quit [Ping timeout: 240 seconds]
<volk_>
thanks let me try this out
obs has quit [Quit: Konversation terminated!]
stytown has quit [Quit: stytown]
Notte has joined #ruby
heftig has joined #ruby
<arup_r>
volk_ it should work.
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
gruz0[russia] has joined #ruby
User458764 is now known as User458764_NotHe
chrishough has joined #ruby
<havenwood>
nobitanobi: so your resource is a collection of other resources, which is a valid resource.
<nobitanobi>
yep havenwood
<havenwood>
nobitanobi: i think more of a db question
<nobitanobi>
is that right?
<nobitanobi>
I thought that from a RESTful point of view, when you do a POST to a resource, you are just creating that resource
<nobitanobi>
not 'sub resources'
<nobitanobi>
because at the end of the day, with just one POST, you will be returning several Ids, for everything that has been created.
<havenwood>
nobitanobi: well, you're in this case creating a resource that is a collection of other resources
<havenwood>
which is sound
<nobitanobi>
and that is 'correct'? From a restful point of view?
francisfish has quit [Remote host closed the connection]
<nobitanobi>
I mean, you need to really optimize the DB to let it deal with creating N resources in just one single HTTP request
cearls has joined #ruby
<havenwood>
nobitanobi: here, i'll quote the sacred thesis..
<nobitanobi>
oh, I stopped at chapter 4
edmellum has joined #ruby
jheg has joined #ruby
djbkd has quit [Remote host closed the connection]
<havenwood>
'Any information that can be named can be a resource: a document or image, a temporal service (e.g. "today's weather in Los Angeles"), a collection of other resources, a non-virtual object (e.g. a person), and so on.'
<havenwood>
nobitanobi: in your case, "a collection of other resources"
<nobitanobi>
interesting
<nobitanobi>
really interesting
User458764_NotHe has quit [Ping timeout: 256 seconds]
<nobitanobi>
but that means that you need to deal with limits
<havenwood>
whether you decide to persist it flatly or relationally is a db question
mikepack has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 240 seconds]
<nobitanobi>
havenwood: right
stytown has joined #ruby
sandelius has joined #ruby
codecop has joined #ruby
Aryasam has joined #ruby
<nobitanobi>
havenwood: Right now I do an insert for each resource of that collection of resources, and obviously when there are 10.000 of those, the HTTP request takes more than 1 second.
<jheg>
A few of you guys helped me out this afternoon. I'm writing a personal blog to chart for learning (for personal reference as much as anything) I plan to thank anyone that helps me along the way so workmad3 DefV apeiros if you have any sites you want me to link to lemme know - and thanks again :)
graydot has joined #ruby
afhammad has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
stytown has quit [Client Quit]
<havenwood>
nobitanobi: hem, maybe consider a 202 response
<nobitanobi>
havenwood: so an idea that I had is, let the User create an Order (without any Ads on it), and then they can create each Ad separately referencing that Order
afhammad has quit [Client Quit]
<nobitanobi>
and then they can do a PUT to Order, telling it that the order is completed, so I know I can process it.
afhammad has joined #ruby
<havenwood>
nobitanobi: i mean is the issue that the POST response is taking too long?
<nobitanobi>
yes havenwood that is the issue
<nobitanobi>
that an Order conceptually can have thousands of Ads
arya_ has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
<nobitanobi>
basically they will give me the information from their adwords account
<nobitanobi>
so they will get a campaign with all the ads and boom
<nobitanobi>
havenwood: even now, I respond with a 202
<nobitanobi>
because the Ads are created but not finished building
<havenwood>
nobitanobi: ah
<nobitanobi>
but I need to give them the Ids of those ads
<nobitanobi>
so they can do the mapping of secuentally saying
<havenwood>
nobitanobi: so respond with a 202 when the order is created, then create all those ads
<nobitanobi>
ok, the first ad I posted was this, this is the ID I got back
<nobitanobi>
but then how will the User know, which ad is which
ReBoRN- has joined #ruby
Heskie has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
oh, i see - the response contains the sub-resource ids?
<nobitanobi>
yes
<nobitanobi>
because there is no other way for them to map...
<nobitanobi>
unless they provide an ID
<nobitanobi>
it's a really complex problem from my point of view :/
x1337807x has joined #ruby
xaxisx has quit [Quit: xaxisx]
<theharshest>
havenwood: I want to pass the configs from my project (i.e. config/application.yml) to a gem that is project is using. Some of the files in gem would be using that config. Can you suggest me something here?
ghr has joined #ruby
<havenwood>
nobitanobi: what about those newly created resources is in the response? the name or id?
sigurding has joined #ruby
<havenwood>
nobitanobi: trying to think how you might get just the minimum necessary for the 202? dunno if there's a rails specific solution.
pwk has joined #ruby
<nobitanobi>
havenwood: Right now I return the representation of the Order, and nested each representation of the Ad (basically just the ID and the status)
stytown has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi>
havenwood: what do you mean by the minimum necessary?
<havenwood>
and the ID and status are needed right away?
graydot has quit [Read error: Connection reset by peer]
gruz0[russia] has quit [Quit: Leaving]
<nobitanobi>
havenwood: the ID yes.
<nobitanobi>
I mean, that is the way they can identify the Ad
<nobitanobi>
because they will say, ok, the first Ad I put in my Order has this ID
x1337807x has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
<nobitanobi>
the second one has this other ID
<nobitanobi>
so they know they can do /orders/:id/ad/:id
<havenwood>
so i guess what i mean is is there any way to create the order and IDs then return the 202 before actually populating the IDs
<nobitanobi>
and check whats going on
<havenwood>
i really don't know, just spit balling
<nobitanobi>
oh I see
Wolland has quit [Remote host closed the connection]
<nobitanobi>
havenwood: that's interesting...
tmtwd has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
<nobitanobi>
since I am using the DB ids as the representations of the resources, I return that as the IDs
<nobitanobi>
they must be unique obviously.
adelcampo has quit [Quit: adelcampo]
zorak has quit [Ping timeout: 256 seconds]
kbarry has joined #ruby
<havenwood>
theharshest: I don't follow. I got that you have a YAML file but not what you're trying to do with it.
<havenwood>
and a gem is involved?
<arup_r>
Guys.. This is working. Dir["#{__dir__}/*test*.rb"] - Dir["#{__dir__}/{test*,*test}.rb"] # can it be combined, so that in one iteration I can get the result
nfk has joined #ruby
<kbarry>
Looking for a little ruby-foo. I am trying to put "-- --use-system-libraries" in the form is a hash
<kbarry>
and apparenlt ' :-- :--use-system-libraries ' is incorrect
<havenwood>
arup_r: yes, do you understand what `{test*,*test}` means?
<theharshest>
havenwood: So I have a yaml file and I can access it CONFIGs in the project files, but now I want a gem (that is project is using) to use these CONFIGs
jonathan_alban has joined #ruby
emptyflask has joined #ruby
<arup_r>
havenwood: That's why I wrote it.. But now I am not able to move ahead.
Wolland has quit [Ping timeout: 255 seconds]
<havenwood>
theharshest: when you say `CONFIG` do you mean `ENV['CONFIG']` or a namespaced constant like `Project::CONFIG`?
<havenwood>
arup_r: look at the `{p,q}` example ("More than two literals may be specified.")
<havenwood>
theharshest: so require the file where that constant is declared and use it thusly
xaxisx has joined #ruby
iceyec has quit [Quit: iceyec]
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<theharshest>
havenwood: but gem won't know the location of that file because the config file is project specific and its location can vary depending on the project which is using the gem
<arup_r>
Haha.. I I want... al those files, which has *test* word in middle but not start/end with *test*. I can't put it inside {,}.. then it will give all matches.
sigurding has quit [Ping timeout: 260 seconds]
iceyec has joined #ruby
<havenwood>
arup_r: *?test?*
<havenwood>
arup_r: i linked the glob docs earlier, read them carefully!
<havenwood>
arup_r: google up on globbing
Snarkz has joined #ruby
grieg_ has quit [Quit: Leaving]
mconnolly has quit [Quit: mconnolly]
bedouin is now known as delyan
carraroj has joined #ruby
<banister>
apeiros ping
<apeiros>
plemp
<banister>
apeiros i need your help, can i PM you?
<havenwood>
arup_r: `*` glob is like regexp `.*` and `?` glob is like regexp `.{1}`
<apeiros>
sure. slightly busy, though
<arup_r>
havenwood: I am screaming here.. Can you here me?
<havenwood>
arup_r: so zero or more of any character with exactly one character minimum
<havenwood>
arup_r: learn globs
sigurding has joined #ruby
<havenwood>
go forth and prosper with your globs
<arup_r>
havenwood: It works... I am reading http://mywiki.wooledge.org/glob ... Couldn't think of the one you gave me.. Amazing..!!! :-)
Asher has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
adelcampo has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi>
havenwood: just so I can do more research, do you say this is called collection of resources?
<arup_r>
havenwood: Could you help me to understand the solution you gave *?test means .. what ?
<havenwood>
arup_r: i explained above
kirun has joined #ruby
sandelius has joined #ruby
mrmargolis has quit [Remote host closed the connection]
_maes_ has joined #ruby
mehlah has quit [Quit: Leaving...]
carraroj has quit [Quit: Konversation terminated!]
n_blownapart has joined #ruby
<arup_r>
Not getting how it eliminates test* pattern...
graft has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
jdj_dk has quit [Remote host closed the connection]
iceyec has quit [Quit: iceyec]
atmosx has quit [Remote host closed the connection]
mikespla_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
atmosx has joined #ruby
<havenwood>
nobitanobi: or maybe a resource composed of a resource and collection of sub-resources
<nobitanobi>
havenwood: I don't think batch would help in this problem though. I would need to have created an Order first, and then launch a batch of Ads referencing that Order.
<havenwood>
nobitanobi: aye
<nobitanobi>
havenwood: anyway, I really appreciate your help. I have been suggested to somehow get the request, return a URL where they can see the status
<nobitanobi>
and do everything in a background.
xaxisx has quit [Quit: xaxisx]
mikespla_ has joined #ruby
<nobitanobi>
My concern with that approach is that they won't know the Ids of the 'sub resources'.
<nobitanobi>
so they won't know which one is which
qwyeth has quit [Remote host closed the connection]
xaxisx has joined #ruby
dblessing has joined #ruby
iceyec has quit [Client Quit]
<Wolland>
marksoo: why don't you just take an array as an arg?
iceyec has joined #ruby
<marksoo>
umm how would i do that
<marksoo>
add(allergens)
marr has joined #ruby
<nobitanobi>
havenwood: btw, thanks a lot for your help. You and shevy have helped me to grow as a programmer :)
adelcampo has quit [Quit: adelcampo]
oo_ has joined #ruby
<marksoo>
right now the app takes two numbers but there are multiple allergens
mikesplain has quit [Ping timeout: 252 seconds]
adelcampo has joined #ruby
djbkd has quit [Remote host closed the connection]
<marksoo>
i want them to insert as many numbers they can
<marksoo>
its limited to two :/
banister is now known as banisterfiend
adelcampo has quit [Client Quit]
KensoDev has joined #ruby
<Wolland>
puts "Enter two allergen numbers"
<Wolland>
puts "First number"
<Wolland>
allergens = []
<Wolland>
allergens << gets.chomp
<Wolland>
puts "Second number"
<Wolland>
allergens << gets.chomp
<Wolland>
<Wolland>
add(allergens)
<arup_r>
havenwood: Understood now.. Very easy.. hehe :)
<marksoo>
what if they have more than 2 allergens lol
<Wolland>
you can add this to a while loop and wait for them to hit enter without providing a number
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Wolland>
so just ask them 1 question, loop it, and add it to allergens array that is outside of the loop
<marksoo>
i already have allergen hash
<marksoo>
populated with allergens
sdwrage has joined #ruby
<Wolland>
call it whatever makes sense
<Wolland>
user_allergens = [] ... whatever
ta has joined #ruby
<marksoo>
i need the user to type in any amount of numbers then add it up
oo_ has quit [Ping timeout: 252 seconds]
<marksoo>
did you look at my code?
johnrover has joined #ruby
<Wolland>
yep
Xeago has quit [Remote host closed the connection]
senayar has joined #ruby
<marksoo>
im confuse lol
vyorkin has quit [Ping timeout: 260 seconds]
orionstein is now known as orionstein_away
<marksoo>
how does an array and loop get multiple numbers then use the add method
KensoDev has quit []
KensoDev has joined #ruby
havenwood has quit [Remote host closed the connection]
ziyadb has joined #ruby
<Wolland>
one sec
<shevy>
marksoo wat
timonv has joined #ruby
<marksoo>
not you shevy
mrmargolis has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
saarinen has quit [Quit: saarinen]
mikepack has joined #ruby
chrishough has joined #ruby
Notte has quit []
sailias has quit [Quit: Leaving.]
ta has quit [Remote host closed the connection]
<marksoo>
Wolland: I need to run.. thanks
<Wolland>
wait
ta has joined #ruby
<marksoo>
okay lol
xaxisx has quit [Quit: xaxisx]
Asher has quit [Quit: Leaving.]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
blackmes1 has joined #ruby
isthisreallife has joined #ruby
isthisreallife has left #ruby [#ruby]
mikepack has quit [Remote host closed the connection]
xaxisx has joined #ruby
marksoo has quit [Quit: Page closed]
mikepack has joined #ruby
DrShoggoth has joined #ruby
ylluminarious is now known as ylluminarious|aw
Hanmac has joined #ruby
ringarin has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
endash has joined #ruby
x1337807x has joined #ruby
orionstein_away is now known as orionstein
andrewhl has joined #ruby
ascarter has joined #ruby
kalusn has joined #ruby
charlied3 has quit [Quit: WeeChat 0.4.2]
djbkd has joined #ruby
phinfonet has quit []
connor_g1odwolf is now known as connor_goodwolf
charlied3 has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
tmtwd has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
codecop has quit [Ping timeout: 264 seconds]
kalusn has quit [Ping timeout: 256 seconds]
mbwe has joined #ruby
xaxisx has joined #ruby
jrhe has joined #ruby
xaxisx has quit [Client Quit]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
Jam___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mauromorales has joined #ruby
xaxisx has joined #ruby
eka has joined #ruby
Wolland has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
Wolland has joined #ruby
treehug88 has joined #ruby
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alvaro_o has joined #ruby
mconnolly has joined #ruby
elaptics is now known as elaptics`away
m8 has joined #ruby
larsam has joined #ruby
Takle has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Takle_ has quit [Read error: Connection reset by peer]
KensoDev has quit []
roshanavand has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 264 seconds]
tjr9898 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
codecop has joined #ruby
stytown has quit [Quit: stytown]
echevemaster has quit [Remote host closed the connection]
timgauthier has joined #ruby
jaimef has quit [Excess Flood]
ferr has quit [Ping timeout: 255 seconds]
jaimef has joined #ruby
<arup_r>
Hashes allow an alternate syntax form when your keys are always symbols. Instead of options = { :font_size => 10, :font_family => "Arial" } You could write it as:options = { font_size: 10, font_family: "Arial" }
Xeago has quit [Remote host closed the connection]
<apeiros>
misses a "only [A-Za-z_]\w*: are eligible for this syntax"
<claw>
hey i have the function server.start which never ends. How to call it async as subprocess ?
Asher has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has quit [Ping timeout: 240 seconds]
james2395 has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Client Quit]
oo_ has joined #ruby
User458764 has joined #ruby
kyb3r_ has joined #ruby
<apeiros>
claw: I *think* you use that term "async" wrong
sigurding has quit [Quit: sigurding]
ferr has joined #ruby
<apeiros>
but well, lets see - Kernel#fork creates a subprocess without blocking the parent. so technically that's an answer fitting your question.
djbkd has quit [Remote host closed the connection]
<pontiki>
spawn would probably be the better substitute, however
Neomex has joined #ruby
<apeiros>
if he wants to run ruby code, then I'd argue that
arup_r1 has joined #ruby
Eyes has quit [Remote host closed the connection]
<apeiros>
and since he says he wants to run that method (not function, ruby doesn't have functions), it pretty much seems like he wants to run ruby code
<eam>
not entirely without blocking the parent
<eam>
fork() has to pause the parent while the second process is constructed
arup_r has quit [Ping timeout: 240 seconds]
<arup_r1>
Am I wrong ?
pygospa has joined #ruby
<apeiros>
eam: pause is not block
<apeiros>
eam: block in this context means "waits until child is done"
<eam>
ok, but it does block until the child is constructed
ghr has quit [Ping timeout: 252 seconds]
kalusn has joined #ruby
<eam>
on systems with slow tlb implementations (VMs) that can take quite a while
<apeiros>
yes. just as File.read_nonblock takes time to actually read stuff etc.
<arup_r1>
This is one of the most confusing doco, like Proc#arity
djbkd has joined #ruby
<eam>
like half a second
ringarin has quit [Ping timeout: 252 seconds]
yetanotherdave has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 245 seconds]
Eyes has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
arup_r1 has left #ruby [#ruby]
chrishough has joined #ruby
sunya7a has joined #ruby
arup_r1 has joined #ruby
roshanavand has joined #ruby
cearls has quit [Remote host closed the connection]
johnrover has quit [Quit: johnrover]
cearls has joined #ruby
hgl has joined #ruby
kalusn has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
saarinen has joined #ruby
<apeiros>
eam: it sounds more impressive if you say: for over 1'500'000'000 ticks!
x1337807x has joined #ruby
JoshGlzBrk has joined #ruby
tjr9898 has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
timonv has quit [Remote host closed the connection]
johnrover has joined #ruby
hgl has quit [Ping timeout: 240 seconds]
sdwrage has quit [Ping timeout: 240 seconds]
sdwrage_ has joined #ruby
cearls has quit [Ping timeout: 264 seconds]
roshanavand has quit [Read error: No route to host]
User458764 has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
roshanavand has joined #ruby
wallerdev has quit [Quit: wallerdev]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vifino has quit [Quit: Ze Cat now leaves...]
moritzs has quit [Ping timeout: 240 seconds]
pc_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
tjr9898 has joined #ruby
cearls has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
charlied3 has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
dwayhs has joined #ruby
testcore has joined #ruby
<claw>
apeiros, fork does not work for me
<claw>
i tried Thread.new but is not handling ctrl+c
<claw>
application is still running even if i hit ctrl+c
<apeiros>
claw: you're aware that "doesn't work" is as useless a problem description as possible, yes?
arup_r1 has left #ruby [#ruby]
xaxisx has quit [Quit: xaxisx]
benzrf|offline is now known as benzrf
aspires has quit []
<claw>
apeiros, it executes the things inside fork but the not beyond
Aryasam has quit [Read error: No route to host]
sdwrage has joined #ruby
DivineEntity has quit [Quit: Lost terminal]
sdwrage_ has quit [Ping timeout: 240 seconds]
pc_ has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
<apeiros>
and that'd be the text of the documentation of fork when used in block-form. better, but still not really a description of your problem.
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
sunya7a has quit [Ping timeout: 264 seconds]
iceyec has quit [Quit: iceyec]
sdwrage_ has joined #ruby
n_blownapart has quit [Remote host closed the connection]
iceyec has joined #ruby
aspires has joined #ruby
awc737 has joined #ruby
Audace has joined #ruby
james2395 has joined #ruby
Audace has quit [Max SendQ exceeded]
sdwrage has quit [Ping timeout: 245 seconds]
spearen has joined #ruby
tmtwd has quit [Ping timeout: 245 seconds]
testcore has quit [Ping timeout: 264 seconds]
<spearen>
can somebody tell me what => means in this context ? {"ValidValues"=>"5|4|3|2|1|0"}
<pontiki>
HASHROCKET
<spearen>
ok, that gives me enough to work with. thx pontiki
<wasamasa>
so these are equivalent in newer ruby versions, huh?
<pontiki>
since 1.9 i think?
<gzl>
yeah.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<wasamasa>
I'm just having a hard time seeing people use both variants
<pontiki>
they usually pick one or the other
testcore has joined #ruby
<pontiki>
github ruby style prefers the hash rocket form
<gzl>
there might be some legacy code that was written pre-1.9 and then the newer stuff uses the new style.
dangerousdave has quit [Read error: Connection reset by peer]
baweaver has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
baweaver has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
maximski has quit []
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
tmtwd has joined #ruby
<existensil>
well all use hashrockets when our keys are strings instead of symbols, like in spearen's example
<pontiki>
the group i'm working with has adopted the GH ruby style guide on all their projects, buts also all p.much private repos, so very unlikely to be seen
<pontiki>
for my personal stuff, i preferred the new style, but working on their code so much, i've dropped back
testcore has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
elikem has joined #ruby
<existensil>
We use the GH style guide at work, but I deviate there and pick whichever looks more beautiful in the context
<existensil>
subjective, but it's always looked clean enough to survive a code review
Ankhers has quit [Remote host closed the connection]
<existensil>
:-P
<pontiki>
if i slip up and put one in, it always gets dinged
<spearen>
so in my example I have an object vv whose content = {"ValidValues"=>"5|4|3|2|1|0"} and the .class = Array how do I extract the values 5|4|3|2|1|0 ?
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
Martxel has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
rayners has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
Heskie has quit []
<benzrf>
j_mcnally: probably
<benzrf>
the point wasnt to be useful
<benzrf>
the point was to be amusing to make
terrell_t has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
wookiehangover has joined #ruby
bradleyprice has joined #ruby
terrellt has joined #ruby
baroquebobcat has joined #ruby
benzrf is now known as benzrf|offline
keystonelemur has quit [Remote host closed the connection]
codecop has quit [Quit: Išeinu]
teedd has joined #ruby
reset has joined #ruby
moted has quit [Quit: moted]
ghr has joined #ruby
edgarjs is now known as edgarjs_afk
nowthatsamatt has quit [Quit: nowthatsamatt]
terrellt has quit [Ping timeout: 256 seconds]
<teedd>
Hey guys, a TDD-in-Ruby question - I find that my first tests would normally require too much production code to make it pass. As an outside-in discipline, when using abstraction, it seems inevitable for me
<teedd>
How might I avoid this / you guys go about it?
andrewjanssen has quit [Quit: Leaving...]
DivineEntity has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
kalusn has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
terrellt has joined #ruby
workmad3 has joined #ruby
edgarjs_afk is now known as edgarjs
andrewlio has quit [Quit: Leaving.]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
snath has quit [Ping timeout: 256 seconds]
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
hgl has joined #ruby
edgarjs is now known as edgarjs_afk
kalusn has quit [Ping timeout: 240 seconds]
Audace has joined #ruby
kireevco has quit [Quit: Leaving.]
tjr9898 has joined #ruby
Martxel has quit [Ping timeout: 240 seconds]
klaas has joined #ruby
dangerousdave has quit [Ping timeout: 255 seconds]
hgl has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
nanoyak has quit [Quit: Computer has gone to sleep.]
x1337807x has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
jaimef has quit [Excess Flood]
jaimef has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
tomblomfield has joined #ruby
riotjones has joined #ruby
Code|articling has quit [Ping timeout: 256 seconds]
edgarjs_afk is now known as edgarjs
Code|articling has joined #ruby
saarinen has quit [Quit: saarinen]
tjr9898 has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 272 seconds]
ephemerian has quit [Quit: Leaving.]
mikepack has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 255 seconds]
tjr9898 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
testcore has joined #ruby
anaeem1 has quit [Remote host closed the connection]
x1337807x has joined #ruby
tmcgoo has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mauromorales has quit [Quit: WeeChat 0.4.3]
awkwords has quit [Ping timeout: 240 seconds]
geggam has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
chipotle has joined #ruby
mauromorales has joined #ruby
wallerdev has quit [Quit: wallerdev]
mauromorales has quit [Client Quit]
jheg has quit [Quit: jheg]
johnrover has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
Dreamer3 has joined #ruby
funburn has joined #ruby
Code|articling has quit [Read error: Connection reset by peer]
mconnolly has joined #ruby
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
aspires has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
aspires has joined #ruby
andrewjanssen has joined #ruby
Code|articling has joined #ruby
CaptainJet has quit [Ping timeout: 264 seconds]
mauromorales has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
bato has joined #ruby
Atrumx has quit [Quit: exit]
Deele has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
jonathan_alban has quit [Ping timeout: 252 seconds]
jobewan has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
omosoj has quit [Ping timeout: 252 seconds]
<xybre>
teedd: I write a few high level tests to tell me when I'm done, and then I either spike out a prototype or I sketch out a plan for what I'm building, going back to tweak my expectations as necessary. Then once I have my head around the problem domain its much easier to write tightly focused tests that don't rely on anything else.
blackmes1 has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
Aryasam has joined #ruby
tjr9898 has joined #ruby
moted has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
wallerdev has joined #ruby
davedev24_ has quit []
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
ffranz has quit [Quit: Leaving]
volk_ has quit [Quit: volk_]
djbkd has quit [Remote host closed the connection]
<jay__>
So i'm going to be working with ruby 1.8 and rails 2.3, do you think using vagrant is the best way to do some sort of version control, or rvm? I currently use brew to install ruby
ringarin has quit [Client Quit]
charlied3 has quit [Ping timeout: 252 seconds]
kireevco1 has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
alexju has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
mauromorales has quit [Quit: WeeChat 0.4.3]
<koyd>
jay__: rvm should work fine, no need to go further. But maybe your question is more suited to #rubyonrails
tjr9898 has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
Darkchaos2 has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
andrewhl has quit [Quit: andrewhl]
stytown has quit [Quit: stytown]
qsun has quit [Ping timeout: 260 seconds]
senayar has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
benzrf|offline is now known as benzrf
qsun has joined #ruby
<benzrf>
vagrant sounds like overkill
oo_ has joined #ruby
<benzrf>
jay__: i like chruby myself
tjr9898 has joined #ruby
stytown has joined #ruby
<postmodern>
benzrf, plus there's docker.io now
<jay__>
cool, i'll check them out
<postmodern>
and foreman
<workmad3>
jay__: I'd suggest that you start off by digging out old blog articles on setting up bundler with rails 2.3 and create a Gemfile for the project that consists of a known, working set of all gems required by the project
havenwood has joined #ruby
<workmad3>
jay__: with explicit versions
ghr has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
tjr9898 has quit [Remote host closed the connection]
<jay__>
ok, thanks
earthquake has joined #ruby
<bato>
well look at that
<bato>
tacking on ".to_json" at the end does make wonders.
<bato>
i kinda feel like i found the konami code for that lib
binaryhat has quit [Remote host closed the connection]
<pontiki>
i'd use vagrant just to keep that stuff off my own system...
<pontiki>
^^vv<><>BA(start)
binaryhat has joined #ruby
Hanmac1 has joined #ruby
charlied3 has joined #ruby
e4xit_ has joined #ruby
<workmad3>
I wonder if there are unicode code-points of those characters that ruby can use in method names...
mikecmpbll has quit [Ping timeout: 256 seconds]
oo_ has quit [Ping timeout: 272 seconds]
e4xit has quit [Ping timeout: 255 seconds]
e4xit_ is now known as e4xit
<workmad3>
would love to have a Konami module with a ^^vv<><>AB(start) method
emptyflask has quit [Ping timeout: 256 seconds]
Hanmac has quit [Ping timeout: 255 seconds]
<bato>
↑↑↓↓←→←→BA
ghr has quit [Ping timeout: 260 seconds]
<bato>
you're welcome to try with those
Takle has quit [Remote host closed the connection]
<workmad3>
bato: works :D
mikecmpbll has joined #ruby
<workmad3>
with that, bed
djbkd has quit [Remote host closed the connection]