fayimora has quit [Read error: Connection reset by peer]
slacker_ has joined #ruby
fayimora has joined #ruby
td123 has quit [Ping timeout: 245 seconds]
QaDeS_ has quit [Quit: Ex-Chat]
sailias has joined #ruby
EstanislaoStan has joined #ruby
cpruitt has quit [Quit: cpruitt]
voodoofish430 has quit [Quit: Leaving.]
CheeToS has joined #ruby
mockra has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
<EstanislaoStan>
Is there a way to do this without a hash? I'd really like to be able to put the variable I want filled with the string in as an argument, but it doesn't work. I know I can do it with a hash but if I want to puts variable that isn't as convenient. http://pastie.org/4174716
<banisterfiend>
EstanislaoStan: what's your question fren
khakimov has quit [Quit: Computer has gone to sleep.]
fayimora has quit [Ping timeout: 264 seconds]
ken_barber1 has quit [Remote host closed the connection]
ken_barber has joined #ruby
<EstanislaoStan>
I'm trying to put my variable I want filled with a string as an argument for a method I created. But that doesn't work.
fayimora has joined #ruby
ken_barber has quit [Remote host closed the connection]
<apeiros_>
EstanislaoStan: you can't change local variables form another scope
<apeiros_>
(and yes, that's a feature)
<apeiros_>
EstanislaoStan: that's what return values are there for
<EstanislaoStan>
return values?
apok has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
<apeiros_>
EstanislaoStan: methods return a value
<apeiros_>
either by explicitly calling `return "some value"`, or simply the last evaluated expression
noganex has quit [Read error: Operation timed out]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
sistematico has quit [Ping timeout: 246 seconds]
noganex has joined #ruby
ringotwo has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
radic has joined #ruby
fayimora has joined #ruby
manizzle has quit [Quit: Leaving]
musicman has joined #ruby
andrewhl has joined #ruby
sailias has joined #ruby
Guest94339 has quit [Ping timeout: 244 seconds]
sistematico has joined #ruby
sistematico has quit [Changing host]
sistematico has joined #ruby
AlbireoX has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
walbert has quit []
sistematico has left #ruby [#ruby]
emmanuelux has quit [Read error: Connection reset by peer]
sailias has quit [Read error: Operation timed out]
Guest17011 has quit [Read error: Connection reset by peer]
Guest61957 has joined #ruby
unixabg has joined #ruby
<unixabg>
xclite: Greetings, I found the issue with webrick and the convert jpeg to mpeg as non-root.
theoros is now known as fleoros
<unixabg>
It was that when I launched the app as non root the default was via /etc/init.d was to write the ffmpeg log was to /
hunglin has quit [Ping timeout: 244 seconds]
<unixabg>
so by changing the default dir for the app via start-stop-daemon to include --chdir /tmp , has corrected the issue.
univers has quit [Remote host closed the connection]
ukd1 has joined #ruby
<unixabg>
I just wanted to follow up since I finally figured out the issue.
<unixabg>
Thanks.
apeiros_ has quit [Remote host closed the connection]
ukd1 is now known as Guest79795
apok has quit [Quit: apok]
musicman has quit [Remote host closed the connection]
Guest79795 has quit [Read error: Connection reset by peer]
musicman has joined #ruby
ukd1_ has joined #ruby
fbernier has joined #ruby
sailias has joined #ruby
sailias has quit [Client Quit]
ananthakumaran has joined #ruby
cbuxton has quit [Quit: Leaving.]
eywu has quit [Ping timeout: 244 seconds]
davidokner has quit [Ping timeout: 246 seconds]
hemanth has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
hemanth has joined #ruby
fayimora has quit [Client Quit]
zodiac1111 has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
VegetableSpoon has joined #ruby
<EstanislaoStan>
What's the best practice for when I have a really long string in my code that extends far to the right? Should I just start on a new line when it gets close to going past the right side of the page?
<cirwin>
EstanislaoStan: yeah
<musicman>
EstanislaoStan: in Ruby, a \ at the end of the line makes the interpreter ignore the new line, so you can split it up that way.
<EstanislaoStan>
musicman, could you show me an example?
banisterfiend has quit [Remote host closed the connection]
<EstanislaoStan>
I'm not sure if I can start a new line in the middle of a string that way.
<musicman>
puts "this is \
<musicman>
an example of a split line."
<davidcelis>
i wouldn't construct a string that way; use HEREDOCs
<musicman>
those two lines will output a single line. take away the \, and it outputs two lines.
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<seanstickle>
socrampy: nokogiri
<seanstickle>
And a lot of patience
<seanstickle>
Because that is a pretty shitty HTML page
ipoval has joined #ruby
dbgster has joined #ruby
mikepack has quit [Remote host closed the connection]
<socrampy>
thats why i come for help, because of the page.. :/ really sucks
<Azure>
I have some code that recursively uses hsh#inject to process a large hash (with subhashes), and for whatever reason, I've been getting the dreaded "stack level too deep" error.
cakehero has quit [Quit: Computer has gone to sleep.]
austinbv1 has joined #ruby
marcoshack has quit [Remote host closed the connection]
Tricks has joined #ruby
Siphonblast has joined #ruby
apok has joined #ruby
cirwin has quit [Ping timeout: 240 seconds]
laen_ has joined #ruby
jgill has quit [Quit: jgill]
ipoval has quit [Quit: ipoval]
seanstickle has quit [Quit: seanstickle]
croz has quit []
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
tommyvyo has quit [Ping timeout: 265 seconds]
gtuckerkellogg has joined #ruby
tommyvyo has joined #ruby
yannis has joined #ruby
ryanf has quit [Quit: broken pipes |||]
umttumt has quit [Remote host closed the connection]
zcdny has quit [Quit: Leaving]
Faris has joined #ruby
adeponte has joined #ruby
remmy444 has joined #ruby
tommyvyo has quit [Ping timeout: 244 seconds]
Faris has left #ruby [#ruby]
tommyvyo has joined #ruby
austinbv1 has quit [Ping timeout: 248 seconds]
kaneda has joined #ruby
kaneda is now known as Guest21635
ryanf has joined #ruby
tewecske has joined #ruby
Faris1 has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
quest88 has quit [Quit: quest88]
socrampy has quit [Quit: Page closed]
mvangala_home has quit [Ping timeout: 252 seconds]
sonkei has quit [Quit: WeeChat 0.3.8]
macmartine has quit [Quit: macmartine]
iori has joined #ruby
sonkei has joined #ruby
dankest has joined #ruby
macmartine has joined #ruby
dankest has quit [Client Quit]
anothervenue has joined #ruby
yonggu has joined #ruby
rippa has joined #ruby
cirwin has joined #ruby
sonkei has quit [Quit: WeeChat 0.3.8]
austinbv1 has joined #ruby
yonggu has quit [Remote host closed the connection]
yonggu has joined #ruby
sonkei has joined #ruby
bambanx has quit [Ping timeout: 255 seconds]
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby
umttumt has joined #ruby
cherrypeel has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
Chryson has quit [Quit: Leaving]
havenn has joined #ruby
shadow_fox has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tjko has joined #ruby
freeayu has joined #ruby
otters has quit [Ping timeout: 260 seconds]
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
Hanmac1 is now known as Hanmac
tjko has quit [Quit: Leaving.]
whitedawg has joined #ruby
mohits has joined #ruby
cherrypeel has quit [Quit: Leaving]
shadow_fox has quit [Quit: Leaving.]
austinbv1 has quit [Ping timeout: 240 seconds]
araujo has quit [Quit: Leaving]
trend has joined #ruby
graspee has quit [Quit: leaving]
VegetableSpoon has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 244 seconds]
trend has left #ruby [#ruby]
otters has joined #ruby
TheFuzzball has quit [Ping timeout: 265 seconds]
TheFuzzball has joined #ruby
yugui is now known as yugui_zzz
shadow_fox has joined #ruby
RainbowDashh has joined #ruby
<laen_>
I'd like to define my own "+" method on a Class. What's the syntax? Just "def +(obj1,obj2)" ?
<banisterfiend>
laen_: no
<banisterfiend>
laen_: just def +(obj)
shadow_fox has left #ruby [#ruby]
<banisterfiend>
laen_: the first object is implied
<laen_>
Excellent, thanks!
ipoval has joined #ruby
<laen_>
Oh, that makes sense. Object+Object is actually Object.+(Object).
maletor has joined #ruby
<Hanmac>
hihi it will be funny when you try to define the []= method :P
brianpWins has joined #ruby
djdb has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
thecreators has quit [Remote host closed the connection]
jgrevich has joined #ruby
davidokner has joined #ruby
<davidokner>
Hi, I'm trying to figure out how to create a main file and a class file and use require to add the class file to my main file.
wvms has quit [Quit: wvms]
Tulak has joined #ruby
<davidokner>
I'm using rubymine and created a file called main and another that I told RubyMine was a class file.
<davidokner>
I put require "circle" at the top of my main file, but it isn't working
<davidokner>
I have a file circle.rb in my project.
iori has quit [Remote host closed the connection]
<cirwin>
davidokner: the current directory is not on the PATH by default
<cirwin>
so you have to require './circle'
nachtwandler has joined #ruby
<Hanmac>
davidokner, is your ruby version 1.9.*?
<Hanmac>
if yes you need require_relative
Tulak has quit [Client Quit]
<davidokner>
Hanmac: WOW, that worked as soon as I did that. Thanks!
<davidokner>
I am using Jruby at the moment latest. I put require "./circle" and it worked
<davidokner>
I'm just starting to learn. I'm trying to create some test files to test my memory after using RubyMonk.com
<Hanmac>
"./circle" may work too, but if you start your ruby program from an different space it may be getting errors
<davidokner>
Are you saying to use single quotes?
<Hanmac>
no, i mean you should use require_relative, when its avalable
<davidokner>
Oh ok
<banisterfiend>
davidokner: be careful about Hanmac though, he sometimes gives useful information but often he's drunk and tells lies to noobs.
<Hanmac>
sample ... i have a dir test with file1.rb and file2.rb ... file1 requires file2 with require "./file2" ... if i am in dir test i do ruby file1.rb and all is fine, but when i in the parent dir of test, and there is a file2.rb too, ruby test/file1.rb does not work because it requires the wrong file
Morkel has joined #ruby
freeayu has quit [Quit: 离开]
<davidokner>
I switched it to require_relative
<davidokner>
The one ruby that is complicated to install on OSX is Iron Ruby.
yonggu has left #ruby [#ruby]
<davidokner>
I tried to find instructions for that.
<Hanmac>
... isnt iron ruby only for windows?¿
<davidokner>
That were up-to-date so I could just follow it.
<davidokner>
Yeah, but there is some mono implementation that lets you do it. I don't know if you can run the program, I don't get it exactly.
havenn has quit [Remote host closed the connection]
<macmartine>
davidokner: scrap .net :)
ukd1_ has quit [Ping timeout: 255 seconds]
<davidokner>
The Mono Developer IDE is available for windows, OSX, openSUSE, Debian and Ubuntu
<davidokner>
And somehow you are supposed to be able to do Iron Ruby in there.
<davidokner>
Well if I wanted to program games, which I'm not ready to do I'd do it for .net
nilg has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
<davidokner>
I was just curious to see if I could install it.
ukd1 is now known as Guest30599
igotnolegs has quit [Quit: Computer has gone to sleep.]
subbyyy has quit [Quit: Leaving.]
nilg has joined #ruby
<bnagy>
wait wat?
<bnagy>
I thought IronRuby was a) dead and b) for .net framework
selvakumaran has joined #ruby
Faris1 has left #ruby [#ruby]
CheeToS has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
perry is now known as perryh_away
Guest30599 has quit [Ping timeout: 246 seconds]
Markvilla has joined #ruby
perryh_away is now known as perryh
<davidokner>
No IronRuby got switched to open source
<davidokner>
I think you can develop Iron Ruby on OSX using the MonoDevelop IDE for OSX
perryh is now known as perry
Markvilla has quit [Client Quit]
<davidokner>
The problem is getting mono setup on OSX
<bnagy>
and how are you going to run .net apps?
<davidokner>
The Mono Runtime lets you run them on OSX
<bnagy>
o_0
<davidokner>
It is sort of like Java
<davidokner>
It doesn't compile it to native
<davidokner>
You have to have the code though or it has to be made for Mono I think.
Hanmac has quit [Ping timeout: 246 seconds]
<davidokner>
You can't just run a windows program. I'm still trying to understand it
macmartine has quit [Read error: Connection reset by peer]
flak is now known as Guest50786
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<ryanf>
bnagy: mono is an implementation of the CLR
davidw has joined #ruby
<ryanf>
so theoretically you can compile c# code or whatever against mono instead of normal .net
davidw is now known as Guest28164
<ryanf>
I don't know many details but I'm sure there are .net apis that they don't support
artOfWar has quit []
RainbowDashh has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<davidokner>
I'd like to know if you compile against the mono API if the windows .net will compile it the rest of the way so it won't be CLI and it will be faster.
<davidokner>
I mean mono framework CLR
<bnagy>
.net uses an IL
<davidokner>
I don't know what .il is
<davidokner>
oh found it
<bnagy>
it's an intermediate language, like java bytecode I guess
<davidokner>
.net -> CLI -> IL
<bnagy>
ie any compiler that produces pure IL and you should be fine
<bnagy>
as long as the VMs are compatible anyway
<davidokner>
CLI should be slower than IL right?
<bnagy>
what's CLI?
<davidokner>
It would be nice if a software developer could release in CLI and windows would have a CLI to IL automatic compiler that runs during install.
RainbowDashh has quit [Ping timeout: 246 seconds]
<davidokner>
The game for example would require you to install .net for windows and then it would compile the CLI to IL during install for better performance if you have windows.
<bnagy>
I have no idea what you're talking about anymore
<davidokner>
If you could do that, then people might not buy windows as much.
<davidokner>
I was thinking that Java would be great for creating apps like you see for smart phones, but for cross platform and downloaded by website URL, instead of app store.
<banisterfiend>
bnagy: Yeah.
<bnagy>
I have cured myself of rvm, I don't want to get any on me anymore
<bnagy>
davidcelis: yeah some smartphone makers think that too
<davidokner>
RVM was the only way I could install ruby, even though I didn't want multiple versions.
<davidokner>
cRuby that is. For jRuby and MacRuby it is easy
<davidokner>
As far as IDE's go. I see Visual Study for Iron Ruby, Xcode for MacRuby and RubyMine for JRuby.
<davidokner>
netbeans dropped support.
<davidokner>
I could see apps replacing standard websites in a lot of cases using Java platform.
schovi has joined #ruby
<davidokner>
Getting away from the Document Object Model.
<davidokner>
Unless you are showing a document.
davidokner has left #ruby ["thanks everybody"]
Guest50786 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kylemcgill has quit [Remote host closed the connection]
jarray52 has left #ruby [#ruby]
schovi has quit [Remote host closed the connection]
yxhuvud has joined #ruby
manizzle has joined #ruby
jerius has quit [Quit: leaving]
kylemcgill has joined #ruby
jianxioy has joined #ruby
jamesaxl has joined #ruby
CheeToS has joined #ruby
kylemcgill has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 248 seconds]
jerius has joined #ruby
araujo has joined #ruby
perry is now known as perryh_away
monkegjinni has joined #ruby
jerius is now known as jerius_
bier|tp has quit [Read error: Operation timed out]
jerius_ is now known as jerius
mengu has joined #ruby
fixl has quit [Remote host closed the connection]
schovi has joined #ruby
Niamkik has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
snearch has joined #ruby
Ducklings has joined #ruby
Ducklings has left #ruby [#ruby]
zaamkablam has joined #ruby
jerius has quit [Quit: leaving]
zodiac1111 has joined #ruby
jerius has joined #ruby
workmad3 has joined #ruby
Faris has joined #ruby
jacobw has quit [Quit: leaving]
eurbach has joined #ruby
eurbach has left #ruby [#ruby]
williamcotton has joined #ruby
kaspernj has joined #ruby
bier|tp has joined #ruby
savage- has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
djdb has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
kylemcgill has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
dbck has joined #ruby
_axx has quit [Ping timeout: 248 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 250 seconds]
ciopte7 has quit [Quit: ciopte7]
Faris has left #ruby [#ruby]
Hanmac1 is now known as Hanmac
werdnativ has quit [Quit: werdnativ]
schovi has quit [Remote host closed the connection]
ciopte7 has joined #ruby
<shevy>
the-newsman for most normal methods, they reside in a specific class. like on Array, Hash and so on. for these, the official docu should list all available methods (with a few exceptions of methods that are redirected and reside in other classes)
dekroning has joined #ruby
schovi has joined #ruby
schovi has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
darthdeus has joined #ruby
<dekroning>
hi
maletor has quit [Quit: Computer has gone to sleep.]
tvw has quit [Remote host closed the connection]
maletor has joined #ruby
maletor has quit [Client Quit]
kaspernj has quit [Read error: Operation timed out]
amberis has quit [Killed (idoru (Spam is off topic on freenode.))]
<Spooner>
apeiros_ My keys (ssh for command line and pageant for Tortoise) magically stopped working recently, so I was looking up how to use https instead (literally now :P)
<bnagy>
Spooner: smartgit for windows can use 'normal' ssh keys, btw
<apeiros_>
Spooner: aha! 'Good to know: You need git 1.7.10 or newer to use the credential helper' - that explains why I didn't know about it
<apeiros_>
Spooner: thanks for pointing that out :)
<bnagy>
the interface is a bit scary though
n1x has joined #ruby
<apeiros_>
Spooner: hm, looks like it only worked on OSX?
<bnagy>
allegedly you can import and convert your SSH keys to ppk, but I couldn't get it to work :/
<dekroning>
anyone know how I could instantiate a MiniTest::Unit::TestCase my self, and run the tests? I would like to trigger it manually in my code without using 'minitest/autorun'
<Spooner>
apeiros_: There is a windows version of it, apparently, provided by github
<apeiros_>
Spooner: and *nix?
<apeiros_>
(we have all 3, since we don't force the OS on our devs)
<Spooner>
No idea. I need to reinstall my linux VM :)
<apeiros_>
ok
<apeiros_>
will investigate
<apeiros_>
got a starting point. and osx+win is probably already enough
<bnagy>
apeiros_: ssl vpn to EC2, route to github through that, use git like god intended :P
<Spooner>
bnagy: Might try smartgit, but I'm just trying github for windows. Maybe that will be magic :)
<bnagy>
or make your network admins not be retarded
<workmad3>
banisterfiend: that's an awesome ramble comment :)
<apeiros_>
bnagy: who's that god you're speaking of?
<workmad3>
apeiros_: Torvalds
<banisterfiend>
workmad3: can u +1 something for me?
<bnagy>
seriously though, who the hell blocks outbound ssh?
<bnagy>
I mean... srsly.
<workmad3>
bnagy: paranoid sysadmins that want to be able to see your traffic?
<bnagy>
which is why https works?
waltz_ has quit [Remote host closed the connection]
<workmad3>
bnagy: or paranoid bastion sysadmins who don't want to allow SSH tunnelling of a connection from inside a network to outside?
<apeiros_>
bnagy: I think my workplace blocks *all* traffic that isn't outbound http, https or smtp
<apeiros_>
bnagy: and I can even understand the rationale - if you don't have the manpower, you better just close every possible hole.
<bnagy>
they allow outbound smtp??
<shevy>
banisterfiend still stalking eh?
<apeiros_>
bnagy: hm, actually only from their own exchange
<apeiros_>
so no, workplace computers are only allowed outbound http/https :)
nari_ has joined #ruby
<banisterfiend>
shevy: i just came across it on reddit :) what were you smoking? :)
<bnagy>
honestly, that makes zero sense
<apeiros_>
shevy has an admirer :D
<bnagy>
force everyone to use browser versions of everything, thus maximising the use of the app most likely to be compromised
<workmad3>
apeiros_: is that outbound to any other machine, or outbound to things outside your workplace network?
<shevy>
banisterfiend, dunno really. hate just flows into my fingers, then I feel better afterwards
<apeiros_>
workmad3: outside the workplace network
<apeiros_>
within there's only limitations as to what machines you can reach
freeayu has quit [Ping timeout: 244 seconds]
<bnagy>
I am so happy I don't do that crap for a living anymore
<apeiros_>
i.e. most workplace machines can't reach the db & webservers
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
jamesaxl has joined #ruby
umttumt has quit [Remote host closed the connection]
bashdy has joined #ruby
<Spooner>
Wow, "github for windows" is pretty nice and idiotproof :)
iori has joined #ruby
nari_ has quit [Ping timeout: 240 seconds]
<bnagy>
does support not-github?
<myth17>
has anyone had some prior experience with the ice_cube gem?
venkatk_ has joined #ruby
venkatk_ has quit [Client Quit]
<Spooner>
bnagy : I can view other repos, but it can only push to github.
<bnagy>
lame
<Spooner>
It manages user/password & creates and uploads an ssh key, which makes it a lot lower barrier to entry. It isn't a fully-featured git gui, but what it does do, it seems to do cleanly and well.
<workmad3>
Spooner: would it not support non-github push if you set up the SSH key yourself?
<Spooner>
No, when I opened a non-github local repo (just for version control; I don't have a private github, so I haven't got it on a remote repo), it just offered to upload it as a new github project. However, I don't have any non-github hosted repos, so maybe it would support that.
bitsar has joined #ruby
ph^ has joined #ruby
ChampS666 has joined #ruby
thecreators has quit [Remote host closed the connection]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
JustinCampbell has joined #ruby
<banisterfiend>
workmad3: nice comment :)
<workmad3>
banisterfiend: I +1'd with a suggestion to automate binstubs with a BUNDLE_BIN directory instead of an intrusive rubygems modification plugin :)
<banisterfiend>
yeah, very good :) it's always more effective to add a thought out comment rather than just a +1
<workmad3>
banisterfiend: also, I figure that the auto bundle-exec thing has been there for a while now, so offering a solution that is less intrusive to rubygems while still maintaining the behaviour for general users is better than just removing it entirely :)
<workmad3>
banisterfiend: about all I can think is that if you're not in the root dir with the bundle bin directory then it won't work where the rubygems-bundler thing will
<workmad3>
banisterfiend: but I'm not sure how common a use-case that is personally... I certainly don't try to run my scripts outside of the project root because 90% of the time they won't work anyway :)
abra has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
fayimora has joined #ruby
justinmcp has quit [Remote host closed the connection]
fayimora_ has joined #ruby
arturaz has quit [Remote host closed the connection]
<yonatane>
yes, i meant https repository
snearch has quit [Quit: Verlassend]
<yonatane>
but since i'm doing this for capistrano i'd like a solution for its current way of working with shell commands
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
mnaser has joined #ruby
djdb has joined #ruby
fridim__ has quit [Ping timeout: 264 seconds]
fayimora has quit [Ping timeout: 246 seconds]
hemanth has quit [Read error: Connection reset by peer]
chson has quit [Remote host closed the connection]
abra has joined #ruby
ub|k has joined #ruby
preller has joined #ruby
Kwpolska has joined #ruby
dbgster has joined #ruby
Jb_ has joined #ruby
apok has joined #ruby
mpereira has joined #ruby
fbernier has quit [Ping timeout: 264 seconds]
bglusman has joined #ruby
umttumt has joined #ruby
savage- has joined #ruby
<apeiros_>
Tasser: wassup?
<apeiros_>
ah, segfault? not sure I can be of much help. I can try to reproduce to see whether it's a common issue or only related to your executable
<apeiros_>
(or platform)
Markvilla has quit [Quit: Markvilla]
dbck has quit [Ping timeout: 240 seconds]
fayimora has joined #ruby
seanstickle has joined #ruby
dbck has joined #ruby
itnomad has quit [Quit: Leaving]
jfoley has quit [Quit: jfoley]
Guest45702 has joined #ruby
TheVoid has quit [Ping timeout: 245 seconds]
Niamkik has quit [Quit: leaving]
BeLucid_ has quit [Ping timeout: 248 seconds]
Dreamer3 has joined #ruby
kvirani has joined #ruby
kvirani has quit [Remote host closed the connection]
wvms has joined #ruby
liluo has joined #ruby
liluo has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
fayimora has quit [Read error: Connection reset by peer]
execute has quit [Ping timeout: 265 seconds]
fayimora has joined #ruby
freeayu has quit [Quit: 离开]
mnaser has joined #ruby
mickn has quit [Remote host closed the connection]
execute has joined #ruby
neku|away is now known as neku
execute is now known as _axx
Guest45702 has quit [Ping timeout: 244 seconds]
Niamkik has joined #ruby
Niamkik has quit [Excess Flood]
ipoval has quit [Quit: ipoval]
fbernier has joined #ruby
Markvilla has joined #ruby
quest88 has joined #ruby
austinbv1 has joined #ruby
<Spooner>
There is a gem called perlin_noise which is required as 'perlin'. I want to make a gem called perlin, but I'm worried that making it required as 'perlin' would cause problems... any best practice there?
<apeiros_>
talk to the author on why he messes with his users :-p
<apeiros_>
I'd expect a gem called perlin_noise to define a namespace PerlinNoise and be required as either perlinnoise (ruby convention) or perlin_noise (rails convention)
jwang has joined #ruby
<Spooner>
Yes, _I_ would expect that too :)
Tulak has joined #ruby
mohits has quit [Ping timeout: 252 seconds]
<apeiros_>
that's why - talk to the author. maybe he makes the change.
<Spooner>
Amusingly the other gem project is "perlin-noise" and my project is "ruby-perlin"...
<apeiros_>
(unlikely, but still worth a try, and you do all users of perlin_noise a favor)
<Spooner>
The problem is that no-one in the world would use perlin_noise (pure ruby) over this new gem (C ext)... :$
<Spooner>
I'll ask though. Thanks.
fayimora has quit [Ping timeout: 250 seconds]
<apeiros_>
Spooner: except jruby users?
<apeiros_>
pure-ruby has its advantages
<Spooner>
Oh yes, there is that, but then there isn't ambiguity in the name.
<Mon_Ouie>
JRuby supports MRI/YARD's C API (at least partially)
<Spooner>
Rubinius doesn't though, does it, Mon_Ouie ?
Niamkik has joined #ruby
Niamkik has quit [Excess Flood]
<Mon_Ouie>
It did before JRuby
dkissell_ has joined #ruby
fayimora has joined #ruby
neku has quit [Ping timeout: 252 seconds]
dkissell has quit [Ping timeout: 248 seconds]
dkissell_ is now known as dkissell
rasmusth has quit [Ping timeout: 260 seconds]
Ethan has joined #ruby
plastics has joined #ruby
rasmusth has joined #ruby
tomb___ has quit [Quit: Computer has gone to sleep.]
KarlHungus has quit [Read error: Connection reset by peer]
KarlHungus has joined #ruby
zodiac1111 has quit [Ping timeout: 255 seconds]
Niamkik has joined #ruby
wubino has quit [Quit: Leaving]
<Tasser>
apeiros_, strings from erb segfault my ruby
qwerxy has joined #ruby
<apeiros_>
Tasser: do you have it down to a simple reproducable case? I'd run it here to check whether it segfaults my ruby too…
<apeiros_>
also, did you run it in different rubies?
<Tasser>
apeiros_, uhm, nope, just the one here
wallerdev has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
minijupe has joined #ruby
<Tasser>
apeiros_, ehm, it kind of depends on the code before and after...
mvangala_home has joined #ruby
kevinbond has joined #ruby
mvangal__ has joined #ruby
<apeiros_>
o0
<apeiros_>
whoops
<apeiros_>
meant: :-S
RainbowDashh is now known as TwilightSparkle
TwilightSparkle is now known as TwilightSparklee
tomb___ has joined #ruby
TwilightSparklee is now known as RainbowDashh
fayimora has joined #ruby
mvangala_home has quit [Ping timeout: 246 seconds]
williamcotton has joined #ruby
jeff_sebring has joined #ruby
<Tasser>
only before, that is
shevy2 has joined #ruby
<Tasser>
err wait, it works now
<Tasser>
looks like I did some ugly circular dependencies
shevy has quit [Ping timeout: 265 seconds]
fayimora has quit [Ping timeout: 245 seconds]
MarcWeber has joined #ruby
ukd1 has joined #ruby
ukd1 is now known as Guest22472
andrewhl has joined #ruby
berkes has quit [Ping timeout: 264 seconds]
nowthatsamatt has joined #ruby
fayimora has joined #ruby
nowthatsamatt has left #ruby [#ruby]
friskd has joined #ruby
subbyyy has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
friskd has quit [Remote host closed the connection]
hemanth has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
manizzle has quit [Remote host closed the connection]
akem has joined #ruby
baroquebobcat has joined #ruby
richo has joined #ruby
richo has quit [Changing host]
richo has joined #ruby
Eldariof-ru has joined #ruby
kaneda_ has joined #ruby
Guest21635 has quit [Ping timeout: 252 seconds]
fayimora has quit [Ping timeout: 264 seconds]
berkes has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
kaneda_ has quit [Ping timeout: 240 seconds]
fbernier has quit [Ping timeout: 245 seconds]
Tryke has left #ruby [#ruby]
apok has quit [Quit: apok]
uris has joined #ruby
fangmai has joined #ruby
wallerdev has quit [Quit: wallerdev]
<fangmai>
hey guys, what's the difference between Hash.new() and Hash.new([]). I get that the later is an array...but, what's going on?
magz has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Mon_Ouie>
The latter isn't an array, it's a hash
<fangmai>
yeah...
<Mon_Ouie>
A hash where the default value is an array
<fangmai>
aaahhhh.
<fangmai>
.default value.
<Mon_Ouie>
Incidentally, it will always be the *same* array
<Mon_Ouie>
So it you do hash[a] << 1; hash[b] will be [1]
anothervenue has quit [Ping timeout: 246 seconds]
<Mon_Ouie>
Which probably isn't what you want
<fangmai>
yeah, thanks. Was at the end of the about_hashes koan when I ran into it and didn't understand the behavior. thanks.
remmy444 has quit [Remote host closed the connection]
magz has quit [Quit: Leaving]
grantbdev has joined #ruby
anothervenue has joined #ruby
baroquebobcat has joined #ruby
fbernier has joined #ruby
kaneda has joined #ruby
kaneda is now known as Guest81306
workmad3 has quit [Ping timeout: 252 seconds]
savage- has quit [Remote host closed the connection]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
grantbdev has quit [Quit: Leaving]
berkes has quit [Quit: Ex-Chat]
zchr has joined #ruby
zchr has quit [Excess Flood]
slicslak has joined #ruby
zchr has joined #ruby
digitalcakestudi has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
qwerxy has quit [Quit: offski]
zchr has joined #ruby
Guest81306 has quit [Ping timeout: 252 seconds]
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
kaneda__ has joined #ruby
zchr has joined #ruby
zchr has quit [Excess Flood]
kaneda_ has quit [Ping timeout: 265 seconds]
minijupe has quit [Quit: minijupe]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
nyuszika7h has joined #ruby
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
gizmore has joined #ruby
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
<gizmore>
Is here someone who maintains the gentoo ebuild for mod_ruby? it seems to fail due to a tiny path error
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
slicslak has quit [Ping timeout: 244 seconds]
zchr has joined #ruby
zchr has quit [Excess Flood]
ringotwo has quit [Remote host closed the connection]
twock has quit [Quit: Lost terminal]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
zchr has joined #ruby
zchr has quit [Excess Flood]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
zchr has joined #ruby
zchr has quit [Excess Flood]
<apeiros_>
gizmore: I think ged is the mod_ruby maintainer, maybe he knows
Tulak has quit [Quit: Leaving.]
<gizmore>
ged: in case you are reading, instaling mod_ruby 1.3.0 on gentoo fails here, due to an absolute path /1.9.1 - http://pastebin.com/CbyrdXs5 thanks in advanve :)
ringotwo has joined #ruby
ringotwo has quit [Remote host closed the connection]
ph^ has joined #ruby
arkiver has joined #ruby
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
cheese1756 has joined #ruby
RainbowDashh has joined #ruby
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
imami|afk is now known as banseljaj
plastics has quit [Ping timeout: 264 seconds]
<Azure>
Re: my "stackleveltoodeep" error from yesterday
yannis has quit [Ping timeout: 265 seconds]
<Azure>
I pinpointed the problem...ish.
qwerxy has joined #ruby
<Azure>
I was calling a couple of lambdas in a hash, and when I took out the first call/lambda, it errored out on the second call/lambda.
ringotwo has joined #ruby
slicslak has joined #ruby
RainbowDashh has quit [Ping timeout: 246 seconds]
zchr_ has joined #ruby
zchr_ has quit [Excess Flood]
andrewhl has quit [Ping timeout: 264 seconds]
RainbowDashh has joined #ruby
resure has joined #ruby
qwerxy has quit [Client Quit]
nachtwandler has quit [Ping timeout: 246 seconds]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
<shevy2>
the classical lambda bomb
shevy2 is now known as shevy
Chryson has joined #ruby
resure has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
<pooya72_>
hi everybody. Does anyone know if Shoes supports right to left text formatting?
<pooya72_>
As in Arabic/Hebrew
mvangal__ has quit [Ping timeout: 244 seconds]
ianbrandt has quit [Quit: ianbrandt]
pooya72 has quit [Ping timeout: 252 seconds]
pooya72_ is now known as pooya72
<offby1>
Azure: I was wondering why you were using lambdas and "call".
ph^ has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
<offby1>
that new pointy-arrow syntax makes it look like Perl 6
<Azure>
That's what I was using in some earlier code, and I decided to reuse it.
<pooya72>
Well, I guess another question. What's an easy to use GUI other than shoes?
<offby1>
slippers?
olrrai has joined #ruby
<pooya72>
wacka wacka wacka!
<offby1>
somehow I doubt I'm the first to make that "joke"
<offby1>
call it a crazy hunch
graspee has left #ruby [#ruby]
Squee-D has quit [Quit: The computer fell asleep]
<Azure>
Converting them to proper methods doesn't help. Hm.
perryh_away is now known as perryh
<pooya72>
offby1: try googling for ruby shoes. it's not a fun experience.
digitalcakestudi has quit [Ping timeout: 244 seconds]
<offby1>
already did; found the relevant site instantly ... wasn't painful at all
<offby1>
of course I ignored all the links _after_ the relevant site.
Markvilla has quit [Quit: Markvilla]
banghouse has joined #ruby
havenn has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<shevy>
pooya72 ruby-gtk in some ways
<shevy>
pooya72 shoes died when _why quitted
<pooya72>
shevy: I thought other maintainers picked it up?
<shevy>
sure
<shevy>
I couldn't even get shoes to work
<pooya72>
shevy: hence the whole hacety-hack thing
<shevy>
it's like an emotionless copy paste
<shevy>
I think it would have been better to just leave it the way how _why left it
<shevy>
pooya72 ruby-qt works also partially. and ruby-tk, but it's ugly
Markvilla has joined #ruby
<pooya72>
shevy: really? Worked fine for me so far.
khakimov has joined #ruby
<pooya72>
shevy: yeah, I was trying to teach some kids programming. Shoes was very easy. But english isn't their first language.
<offby1>
I suspect that the average rubyiest isn't much interested in writing old-skool GUI apps, and hence the tools are inferior.
brianpWins has quit [Quit: brianpWins]
<pooya72>
maybe. I just tried green_shoes. The utf-8 fonts work great, but I guess it's based on GTK+ and so it's but ugly on the mac.
arkiver has quit [Quit: Leaving]
Markvilla has quit [Client Quit]
slicslak has joined #ruby
mohits has joined #ruby
<pooya72>
offby1: or maybe most people that want to write serious apps just go native.
<pooya72>
serious gui apps.
<offby1>
_if_ I wanted to write a serious GUI app, I'd spend a fair amount of time looking for something in ruby/perl/python that would save me from having to go native.
<offby1>
that is, if the platform wasn't simply iOS.
fayimora has joined #ruby
fayimora has quit [Client Quit]
tk___ has quit [Quit: ばいばい]
xbigdanx has joined #ruby
<pooya72>
offby1: I heard Qt is the best cross platform. There is a port of MacRuby for the iOS.
sepp2k has quit [Read error: Connection reset by peer]
oponder has joined #ruby
EzeQL has joined #ruby
cakehero has quit [Quit: Leaving...]
<ryanair>
I've worked with the socksify gem before to send HTTP connections through a socks proxy. Now I want to send HTTP connections through a socks proxy and then through an HTTP proxy.
rbanffy has quit [Client Quit]
<ryanair>
I think I need to change the request generated by Net::HTTP::Get
havenn has quit [Remote host closed the connection]
wpaulson has joined #ruby
dr0p has quit [Quit: Wychodzi]
balki_ is now known as balki
rippa has quit [Ping timeout: 265 seconds]
cousine has joined #ruby
cousine has quit [Remote host closed the connection]
havenn has joined #ruby
MarcWebe1 has joined #ruby
palmfrond has joined #ruby
<palmfrond>
re
<palmfrond>
i'm making a portable C library named "Number Machine". i think i've decided to prefix my library's public api with "numbermachine_" and prefix the private external api as "nm_". RFC? (it's a long public api prefix, but it'll avoid conflicts)
<palmfrond>
i bother asking in here because i'll layer a ruby implementation on top of it when i'm done and i want my conventions to translate well
MarcWeber has quit [Ping timeout: 245 seconds]
myth17 has quit [Quit: Leaving]
kjellski has joined #ruby
kevinbond has quit [Quit: kevinbond]
pooya72 has quit [Quit: pooya72]
MarcWebe1 has quit [Ping timeout: 246 seconds]
<cirwin>
palmfrond: I'd invert the convention — having a long prefix gets very tiring. In ruby you'll put all your functions into a module/class (probably called NumberMachine), so they won't have any prefix directly
wpaulson has quit [Ping timeout: 245 seconds]
kjellski has quit [Client Quit]
<palmfrond>
cirwin, that's how i initially had it, but "nm_" being public would be begging for collision no?
quest88 has quit [Quit: quest88]
<cirwin>
objective-C libraries use two letter prefixes, and it's pretty rare to get conflicts
<cirwin>
for any given other library there's alike a 1/676 chance it'll have the same prefix as you
wpaulson has joined #ruby
<cirwin>
and probably a smaller chance that it'll have functions with the same name
qwerxy has quit [Quit: offski]
<heftig>
assuming prefixes are evenly distributed
<palmfrond>
lol
digitalcakestudi has quit [Ping timeout: 246 seconds]
<palmfrond>
and anyway, this is C, not obj-C
<palmfrond>
but i'll make a objc framework too later on
<cirwin>
palmfrond: they have the same namespacing problems
kjellski has joined #ruby
<palmfrond>
yea
pooya72 has joined #ruby
<cirwin>
and I'd guess the typical C program uses many fewer libraries than the typical objective-C one
havenn has quit [Remote host closed the connection]
qwerxy has joined #ruby
<palmfrond>
true
<palmfrond>
hmm
jeff_sebring has quit [Quit: Leaving]
td123 has joined #ruby
BeLucid has joined #ruby
balki_ has joined #ruby
Occult has joined #ruby
balki has quit [Read error: Operation timed out]
<offby1>
What is the point of rspec's "let" form? Can I not just create instance variables instead? See https://gist.github.com/3025697 for an example
kenichi has quit [Remote host closed the connection]
havenn has joined #ruby
Niamkik has quit [Quit: leaving]
nachtwandler has quit [Quit: leaving]
<apeiros_>
offby1: rspecs main purpose is to invent yet another language for you to learn before you can actually test your software
<samuelj>
Hey everyone, How come my local gems list is really small, but after running bundle install the list is huge?
palmfrond has left #ruby ["palmfrond waves good bye"]
<samuelj>
There seems to be a discrepancy
gmci has quit [Ping timeout: 240 seconds]
<offby1>
in rails, at least, there are _two_ files that list gems: a short one which you edit by hand, and in which you mention just the gems you know that you want; and a big one that's automatically generated, and includes every single gem (and their versions), including all the dependencies. Maybe you're mixing the two files up?
<yxhuvud>
you can tell bundler to install locally in the directory you are (or somewhere else), but generally bundler does a normal gem installation
advorak has quit [Quit: This computer has gone to sleep]
<samuelj>
I'm not working in rails. I've just deleted Gemfile.lock
tfitts has quit [Ping timeout: 245 seconds]
gmci has joined #ruby
wpaulson has quit [Ping timeout: 250 seconds]
wpaulson has joined #ruby
<samuelj>
and run bundle install which has reinstalled my dependencies
<apeiros_>
rails is unrelated to that
LyonJT has quit [Quit: Leaving...]
emmanuelux has joined #ruby
advorak has joined #ruby
havenn has quit [Remote host closed the connection]
<samuelj>
Ok, so I've made a bit of a dunce mistake - there's a diff between gem list local and gem list --local
<samuelj>
ha
advorak has quit [Remote host closed the connection]
<shevy>
bundle likes to install everything
<shevy>
Hanmac is a big fan of bundler
gmci has quit [Ping timeout: 250 seconds]
wpaulson has quit [Ping timeout: 264 seconds]
twock has joined #ruby
wpaulson has joined #ruby
jethrogb has joined #ruby
<jethrogb>
is there a short way to pass a method as a block? i feel ruby should be able to do this
<jethrogb>
e.g. shorten this:
<jethrogb>
[1,2,3].each &method(:print)
fayimora has joined #ruby
MarcWeber has joined #ruby
<jethrogb>
or [1,2,3].each { |i| print i }
<jethrogb>
i want to type something like [1,2,3].each &print # <- this does NOT work
KindOne has quit [Changing host]
KindOne has joined #ruby
<offby1>
jethrogb: I've wondered that too
JustinCampbell has joined #ruby
<apeiros_>
puts [1,2,3]
<offby1>
ruby's distinction between methods and other kinds of callable things makes me vaguely uneasy
advorak has joined #ruby
<apeiros_>
though, not exactly the same
<offby1>
not at all
<apeiros_>
since print like that will print "123"
saschagehlich has quit [Read error: Connection timed out]
<offby1>
that makes one call, and passes an array; jethrogb wants to make many calls
<apeiros_>
whereas puts will print "1\n2\n3\n"
<jethrogb>
apeiros_: yes, thanks, but this is of course an example and i'm not actually trying to print 123
saschagehlich has joined #ruby
<apeiros_>
well then - no, there isn't.
<apeiros_>
you can make one.
<apeiros_>
also there's some library to facilitate chains in blocks
<apeiros_>
anyway, ruby doesn't offer any syntactical way to shorten that.
<jethrogb>
ok then
td123 has quit [Quit: WeeChat 0.3.8]
MarcWeber has quit [Ping timeout: 250 seconds]
marcoshack has quit [Remote host closed the connection]
MarcWeber has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
CheeToS has joined #ruby
fayimora has joined #ruby
tfitts has joined #ruby
sailias has joined #ruby
Ethan has joined #ruby
plastics has joined #ruby
kirun has quit [Quit: Client exiting]
virunga_ has quit [Read error: Connection reset by peer]
MarcWeber has quit [Ping timeout: 265 seconds]
MarcWebe1 has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
ebanoid has quit []
apeiros_ has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 265 seconds]
savage- has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
gregorg_taf has joined #ruby
tfitts has quit [Ping timeout: 265 seconds]
zigidias has joined #ruby
vlad_starkov has joined #ruby
pooya72 has quit [Quit: pooya72]
ringotwo has quit [Remote host closed the connection]
khakimov has joined #ruby
advorak has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 264 seconds]
tfitts has joined #ruby
dbck has quit [Quit: Bye!]
TheFuzzball has quit [Quit: Leaving...]
bashdy has joined #ruby
ericcoleman has joined #ruby
Risk has joined #ruby
Risk has left #ruby [#ruby]
<wargasm>
test
jethrogb has left #ruby [#ruby]
umttumt has joined #ruby
plastics has quit [Ping timeout: 240 seconds]
jfoley has quit [Quit: jfoley]
<offby1>
exam
baroquebobcat has quit [Quit: baroquebobcat]
Foxandxss has joined #ruby
<deryl>
failed
chico_chicote has joined #ruby
qwerxy has quit [Quit: offski]
Spooner_ has joined #ruby
Spooner has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
Asher has quit [Quit: Leaving.]
<offby1>
derailed
Spooner_ is now known as Spooner
indeterminate has quit [Ping timeout: 265 seconds]
silentpost has quit [Ping timeout: 255 seconds]
Asher has joined #ruby
<shevy>
passed
friskd has joined #ruby
GuidovanPossum has joined #ruby
chrisg has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Ping timeout: 246 seconds]
umttumt has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
Bosma has joined #ruby
chrisg has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
subbyyy has joined #ruby
ryanair has quit [Quit: Leaving]
heftig has quit [Quit: leaving]
sailias has quit [Quit: Leaving.]
heftig has joined #ruby
savage- has quit [Remote host closed the connection]
seanstickle has joined #ruby
digitalcakestudi has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
twock has quit [Quit: Lost terminal]
lambdan has quit [Ping timeout: 265 seconds]
<novochar>
how do you search an array for a string?
yxhuvud has quit [Ping timeout: 255 seconds]
<novochar>
i'm attempting to search a model for an instance of a url
<Asher>
array.include?( string )
<novochar>
nice
<Asher>
for an exact string match
<novochar>
current_user.list.items.all.find(params[:link]) didn't do what i expected it to do, it returned all the items from the user's list