thesheff17 has quit [Remote host closed the connection]
prk has joined #ruby
TomRone has joined #ruby
sayan has joined #ruby
hellboy2k8 has joined #ruby
rippa has joined #ruby
axeman- has joined #ruby
axeman- has quit [Remote host closed the connection]
EGZ has joined #ruby
akashj87_ has joined #ruby
EGZ has quit [Client Quit]
akashj87__ has joined #ruby
akashj87 has quit [Ping timeout: 256 seconds]
sayan has quit [Read error: Connection reset by peer]
akashj87_ has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
nlv has quit [Ping timeout: 256 seconds]
axeman- has joined #ruby
sideshowcoder has quit [Read error: Operation timed out]
slash_nick has joined #ruby
lyanchih has joined #ruby
mad_hatter_ has joined #ruby
krombr has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
sideshowcoder has joined #ruby
rickruby has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
big-red has joined #ruby
ttt has joined #ruby
kraljev3 has joined #ruby
big-red has quit [Changing host]
big-red has joined #ruby
big-red has quit []
corehook has joined #ruby
bluOxigen has joined #ruby
ttt has quit [Remote host closed the connection]
gtc has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
t_p has joined #ruby
dallasm has quit [Remote host closed the connection]
jacobbednarz has quit [Quit: Computer has gone to sleep.]
<BonSequitur>
What's the correct way to package non-Ruby third-party libraries with a gem? E.g., if a gem uses some third-party CSS?
umren has joined #ruby
<BonSequitur>
(Or it generates HTML that depends on JQuery, or it binds to a Python library, &c., &c.)
Azulinho has quit [Ping timeout: 276 seconds]
cj3kim has joined #ruby
sayan has joined #ruby
Kricir has quit [Remote host closed the connection]
akells` has joined #ruby
thoraxe has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Azulinho has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
big-red has joined #ruby
nlv has joined #ruby
bricker`LA has quit [Quit: leaving]
nomenkun has quit [Remote host closed the connection]
hiyakash_ has joined #ruby
Eldariof-ru has quit [Ping timeout: 276 seconds]
ThePicard has joined #ruby
akells` has quit [Ping timeout: 245 seconds]
w|t has joined #ruby
hiyakashi has quit [Ping timeout: 256 seconds]
ThePicard has quit [Client Quit]
thoraxe has joined #ruby
lele has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
big-red has quit []
ThePicard has joined #ruby
vlad_starkov has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
tyl_ has joined #ruby
tyl has quit [Read error: Connection reset by peer]
tyl_ is now known as tyl
Davey has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Remote host closed the connection]
<shevy>
BonSequitur: that is a good question, I am still trying to find out myself
cj3kim has joined #ruby
<shevy>
it seems gems are too ruby centric
<BonSequitur>
Well, if it was something with an established install method, I'd be tempted to just tell users to install it manually using that package manager.
<shevy>
hehe
<shevy>
I always assume that my users are clever people
<BonSequitur>
But there isn't one, so I guess the best option is to outright include a copy of jquery with it?
<shevy>
dunno, if that works, sure why not
<shevy>
it's not as if the size difference makes a big difference, I have a cheap computer and the main hdd has 500 gigabytes
<BonSequitur>
Yeah, jquery is 34kb.
<Quadlex>
Is this intended to be a offline server?
<BonSequitur>
It's not a server application. :P It's a thing I built for myself that I'm thinking might be useful to others.
vlad_starkov has quit [Ping timeout: 276 seconds]
<shevy>
BonSequitur: just make it into a gem
<shevy>
when it becomes sufficiently useful for others, they will start to use it
<Quadlex>
BonSequitur: Wil the systems using it be connected to the iternet?
LennyLinux has joined #ruby
<Quadlex>
Because you could just load JQuery from Google
druonysus has quit [Ping timeout: 256 seconds]
<BonSequitur>
True.
sayan has quit [Read error: Connection reset by peer]
<BonSequitur>
It's a tool whose user-facing front-end is a web page (Not meant to be served to the Internet, though). It uses JQuery and FontAwesome for some gui elements.
<Quadlex>
Hm.
<Quadlex>
Package jquery in /vendor and make sure your gemspec includes it
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
Xeago has joined #ruby
jsaak_ has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
decentrality has joined #ruby
Zespre has quit [Quit: leaving]
Zespre has joined #ruby
megha has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
wudofyr__ has quit [Ping timeout: 248 seconds]
yellow5 has quit [Ping timeout: 245 seconds]
altamic has joined #ruby
axeman- has quit [Remote host closed the connection]
mad_hatter_ has quit [Ping timeout: 256 seconds]
eykosioux has joined #ruby
supki_ is now known as supki
Spami_ has joined #ruby
Nimsical has joined #ruby
Hanmac1 has joined #ruby
Zolo has quit [Remote host closed the connection]
<Xeago>
Good morning #ruby!
Zolo has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
crazedpsyc is now known as testone
testone is now known as crazedpsyc
ravster has left #ruby [#ruby]
nettoweb has joined #ruby
axeman- has quit [Remote host closed the connection]
eka has quit [Client Quit]
krombr has joined #ruby
axeman- has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
nomenkun_ has quit [Remote host closed the connection]
connor_goodwolf has quit [Ping timeout: 252 seconds]
mixel has quit [Quit: mixel]
dross has quit [Ping timeout: 252 seconds]
wsterling has joined #ruby
crazymykl has joined #ruby
jyp has quit [Ping timeout: 245 seconds]
devoldmx3 has quit [Ping timeout: 256 seconds]
wsterling has quit [Ping timeout: 248 seconds]
mattgarrison has joined #ruby
chrishunt has joined #ruby
apeiros has quit [Remote host closed the connection]
danslo has joined #ruby
falood has quit [Remote host closed the connection]
tylersmith has joined #ruby
Banistergalaxy has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
Eldariof-ru has joined #ruby
altamic has joined #ruby
Yakko has joined #ruby
machuga is now known as machuga|away
mad_hatter_ has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
apeiros has joined #ruby
Alina-malina has quit [Quit: Leaving]
moos3 has quit [Quit: Computer has gone to sleep.]
cj3kim has joined #ruby
danslo has quit [Quit: danslo]
evenix has joined #ruby
rickruby has joined #ruby
yashshah has joined #ruby
altamic has quit [Quit: altamic]
axeman- has quit [Remote host closed the connection]
nettoweb has quit [Quit: nettoweb]
jacktrick has quit [Quit: Leaving]
nobitanobi has joined #ruby
evenix has quit [Remote host closed the connection]
pagios has joined #ruby
evenix has joined #ruby
evenix has quit [Read error: Connection reset by peer]
Cultofmetatron has joined #ruby
ravster has joined #ruby
<pagios>
hi trying to call a command `sh /tmp/full.gst #{channel}` i am getting :q!
<pagios>
/tmp/full.gst: 2: /tmp/full.gst: gst-launch-1.0: not found
Ortuna has joined #ruby
<pagios>
if i try to execute from shell as sh /tmp/.. it works fine what am i missing
rickruby_ has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
choobie has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
jgrevich has joined #ruby
io_syl has joined #ruby
havenwood has joined #ruby
<ravster>
hey all, I'm using jruby, should I use the json or the json-jruby gem?
<ravster>
json-jruby doesn't seem to be maintained.
<heftig>
pagios: probably a bad PATH
<havenwood>
ravster: Use the JSON module that ships with Ruby.
Dummies_freelanc has joined #ruby
blaxter has joined #ruby
<ravster>
havenwood: okay, so I don't have to add anything to my gemfile?
<havenwood>
ravster: (Don't use Ruby 1.8.)
<ravster>
havenwood: yeah, using jruby 1.7.3
<havenwood>
ravster: Perfect. :)
<havenwood>
ravster: Just: require 'json'
<ravster>
havenwood: will do, thanks
danslo has joined #ruby
ramblex has joined #ruby
girija has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
saarinen has joined #ruby
hamakn has quit [Remote host closed the connection]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
jonathanwallace1 has quit [Ping timeout: 260 seconds]
ner0x has joined #ruby
<jokke>
hey, i want to store a tree structure in a yaml file. The problem: my tree nodes have references to their parents, those i don't want to have in my yaml file, because they can be set from the parent node. any ideas how to achieve this?
subbyyy has quit [Ping timeout: 256 seconds]
danslo has quit [Quit: danslo]
Alina-malina has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
jimg has quit [Ping timeout: 248 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
jamie_ca_ has joined #ruby
jamie_ca_ has quit [Client Quit]
JZTech101 has quit [Read error: Connection reset by peer]
machuga|away is now known as machuga
RiftyMcF3arless has quit [Ping timeout: 256 seconds]
hackeron has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
enebo has joined #ruby
dhruvasagar has joined #ruby
timonv has quit [Remote host closed the connection]
crazymykl has quit [Ping timeout: 256 seconds]
hackeron has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
<joshu>
I'm trying to get a variable rendered in my erb template like this From: <%= @from %>
<joshu>
From: renders but the @from variable is not passed in and I don't know why
<ravster>
when using nokogiri, I get a return-value of "<foo>bar</foo>". How do I extract the "bar" from that? I figure there is a better way than regexps.
<sam113101>
is tk the prefered GUI toolkit for interpreted languages?
<canton7>
ravster, oops, take out the *
n1x has joined #ruby
chessguy has quit [Remote host closed the connection]
<ravster>
canton7: do we have to have the .parse? I don't see that in their tutorials.
nobitanobi has quit [Ping timeout: 256 seconds]
<canton7>
that was an example of starting with a string, and parsing it
bluOxigen has quit [Ping timeout: 256 seconds]
jgrevich has quit [Ping timeout: 240 seconds]
<jokke>
there was some method yaml calls when serializing an object and one that it calls when it creates an object. I can't find what they are anywhere..
guiocavalcanti has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
neataroni has quit [Ping timeout: 248 seconds]
fschuindt has quit [Quit: Computer has gone to sleep.]
L8D has left #ruby [#ruby]
<waxjar>
i think yaml uses Marshal jokke
<jokke>
waxjar: you sure?
<waxjar>
no :p
<jokke>
because yaml is readable and marshal is not
akashj87_ has quit [Quit: Leaving]
<ravster>
canton7: awesome. thanks. I got it working with content().
<waxjar>
ah, of course.
<apeiros>
no, yaml does not use marshal
<peta_>
crap … setup a VPN tunnel into USA and couldn't await it to finally watch HBO Go … but WHAT HAPPENED?? It turns out that I need credentials from a cable tv provider
biz has joined #ruby
<peta_>
oops
<peta_>
wrong tab
saarinen has quit [Quit: saarinen]
enebo has quit [Quit: enebo]
bluOxigen has joined #ruby
enebo has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
ariedler has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
curtis has quit [Ping timeout: 248 seconds]
Hanmac has quit [Ping timeout: 248 seconds]
<canton7>
ravster, cool
girija has quit [Ping timeout: 252 seconds]
enebo has quit [Client Quit]
blueOxigen has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
tjbiddle has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
curtis has joined #ruby
saarinen has joined #ruby
yshh_ has joined #ruby
<jokke>
finally!
<r0bglees0n>
waxjar: ruby serialized in YAML are just YAML directives that the YAML parser knows how to re-construct into ruby objects.
<yangchenyun>
I've gripped the source code but there are too many noises for `__LINE__` appearance, I am wonder anyone could help me point to the source code and provide a clue to understand it.
Peej has quit [Remote host closed the connection]
yshh has quit [Ping timeout: 276 seconds]
eykosioux has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
Kabaka has joined #ruby
otters has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
<jokke>
nah that's deprecated..
bluOxigen has joined #ruby
otters has joined #ruby
<jokke>
encode_with and init_with
<jokke>
those were the methods i was looking for
splittingred has joined #ruby
Peej has joined #ruby
machuga is now known as machuga|away
n1x has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
d2dchat has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 264 seconds]
JZTech101 has quit [Remote host closed the connection]
curtis has quit [Ping timeout: 264 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
amesha has quit [Read error: Operation timed out]
amesha has joined #ruby
JZTech101 has joined #ruby
amesha has quit [Max SendQ exceeded]
amesha has joined #ruby
curtis has joined #ruby
<joshu>
I have this in a method header_renderer = ERB.new(IO.read("config/fax_send.header.erb")) and the erb looks like this: From: <%= @from %>
<joshu>
when I do puts header_renderer.result() the @from variable is not rendered
<joshu>
just From:
<apeiros>
it is rendered. it's just nil.
<apeiros>
and nil renders as an empty string.
Ortuna has quit [Quit: Computer has gone to sleep.]
<MrZYX>
how do you expect the class ERB to catch your classes instance methods?
<MrZYX>
ERB can't even (easily) figure out where it's called from...
<apeiros>
see ERB#result for more information
<apeiros>
you want to pass it a binding
hoyang has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
axeman- has quit [Remote host closed the connection]
RagingDave has joined #ruby
ebouchut has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
bashdy has joined #ruby
icecandy has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
<yangchenyun>
Exact questions are posted on stackoverflow
<yangchenyun>
Could any one help to take a loot?
tylersmith has joined #ruby
sambao21 has joined #ruby
mockra_ has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
eka has joined #ruby
My_Hearing has quit [Read error: Operation timed out]
jeremywrowe has joined #ruby
Hanmac has joined #ruby
<r0bglees0n>
yangchenyun: hi
<r0bglees0n>
yangchenyun: it is because your expression expands across multiple lines
<yangchenyun>
here~
<r0bglees0n>
yangchenyun: if you condense the expression to one line it is '12' as expected
blaxter_ has joined #ruby
<yangchenyun>
But it happens a lot when we are writing code.
mockra has quit [Ping timeout: 276 seconds]
<yangchenyun>
I want to know the precise behaviour of these methods.
<yangchenyun>
In order to make the error report correctly.
<r0bglees0n>
yangchenyun: yeah, but it is setting __LINE__, which tracks the current line in the file
Nisstyre has joined #ruby
<r0bglees0n>
if you count up from 12, your expression ends on line 15
icco has quit [Ping timeout: 256 seconds]
emmanuelux has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 248 seconds]
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
<yangchenyun>
What do you mean by "it is setting __LINE__"?
icco has joined #ruby
chee has joined #ruby
<yangchenyun>
I notice this behavior
<yangchenyun>
If i set to 0, it report 3
sepp2k has quit [Remote host closed the connection]
<r0bglees0n>
yeah, because your expression goes across three lines
My_Hearing has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
blaxter_ is now known as blaxter
<r0bglees0n>
__LINE__ tracks the current line number in the file.
`damien has joined #ruby
ravster has left #ruby [#ruby]
<r0bglees0n>
when you pass a line number to *_eval, you are setting __LINE__ and the line is increased with the same semantics.
Spami has quit [Quit: This computer has gone to sleep]
<r0bglees0n>
you can also set __LINE__ & __FILE__ in eval().
breadtk has quit [Ping timeout: 264 seconds]
brotatos has quit [Ping timeout: 256 seconds]
My_Hearing has quit [Read error: Connection reset by peer]
<r0bglees0n>
yangchenyun: anyway, a = "non_exist"; instance_eval(a, "blah", 12) - raises on 12. if your string ends on 15, raises on 15.
ariedler has quit [Remote host closed the connection]
breadtk has joined #ruby
My_Hearing has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
iamjarvo has quit [Quit: Leaving.]
nomenkun has joined #ruby
banisterfiend has joined #ruby
<yangchenyun>
So __LINE__ is reset to the line_no passed to *_eval method.
<r0bglees0n>
yeah
tjbiddle_ has joined #ruby
danslo has quit [Quit: danslo]
<yangchenyun>
it make sense.
<yangchenyun>
Could we found any source code to support our observation?
<r0bglees0n>
i wouldnt be sure where to look to be honest
<pagios>
i noticed that when my bash command is executed in a non-console "?" via the rub y script , it fails with some execeptions , if i start it in the background of a console for example /dev/pts1 the script works fine, so why is it failing when no console is there? than\ks
bradhe has quit [Remote host closed the connection]
lupine has quit [Ping timeout: 264 seconds]
rambler has left #ruby [#ruby]
<r0bglees0n>
yangchenyun: you can reproduce the __LINE__ stuff pretty easily by doing "p __LINE__" on a new line a few times and pass to instance_eval
<yangchenyun>
I tried that out. I think this is should be that behavior.
<yangchenyun>
Thanks for sorting that out for me!
Leighton has quit [Quit: Leaving]
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
ramblex has quit [Quit: Leaving]
tommyvyo has quit [Quit:]
RiftyMcF3arless has quit [Ping timeout: 264 seconds]
sasai has joined #ruby
<r0bglees0n>
yangchenyun: sure
mockra has joined #ruby
RiftyMcF3arless has joined #ruby
sasai is now known as randomlogin
icco has quit [Read error: Operation timed out]
mockra_ has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
yashshah has quit [Ping timeout: 248 seconds]
yashshah has joined #ruby
icco has joined #ruby
sja has joined #ruby
<breakingthings>
Does anyone have experience setting up Faye as rack middleware (for a rails app)? I'm a bit lost.
johnrlive has joined #ruby
marr has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 260 seconds]
bradhe has quit [Remote host closed the connection]
codelurker has joined #ruby
robottinosino has joined #ruby
subbyyy has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
jbpros has joined #ruby
adambeynon has joined #ruby
rambler has joined #ruby
<rambler>
how do i concat a puts string w/variables?
<rambler>
puts item + ":" + bucket.index(item)
cj3kim has joined #ruby
<shevy>
test
browndawg has quit [Quit: Leaving.]
<rambler>
?
<r0bglees0n>
rambler: you'll have to cast each argument to a string, easier option is puts "#{item}:#{bucket.index(item)}"
<r0bglees0n>
that'll call to_s for you
<rambler>
ty
<r0bglees0n>
sure
jbpros has quit [Client Quit]
krombr has quit [Quit: krombr]
<rambler>
how would i do it the lengthy explcit way? ( puts item.to_s + ":" + bucket.index(item).to_s
<rambler>
?
<r0bglees0n>
yeah
Fretta has joined #ruby
grobb has joined #ruby
TomHoss has joined #ruby
ColKurtz has joined #ruby
<rambler>
in the rubyweekend class right now
ner0x has quit [Remote host closed the connection]
<r0bglees0n>
oh cool
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
akells` has joined #ruby
brotatos has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
codelurker has quit [Quit: Leaving]
<TomHoss>
Anyone know if it's possible to stream media through my server from an external url which is an flv file?
<TomHoss>
Xaego: I don't own the server that the video file is on, so how would ssh be used?
ravster has joined #ruby
<rambler>
if you dont have shell access, it wouldn't be used.
<TomHoss>
Yea, I'm trying to take a media file from a url I don't own and stream it through mine
<TomHoss>
I'm able to stream from my server by curling and piping to ffmpeg when I present a webm url, but with an flv url the whole file will download first, since the server isn't streaming it
platzhirsch has joined #ruby
<rambler>
you could grab it and store it locally
<TomHoss>
Yea… but that adds a lot of overhead, to download the whole thing, and then restream it
<TomHoss>
Would be better to just let a stream of data flow through
<TomHoss>
I'm not sure if it's possible though given that the server I'm fetching from isn't streaming it
eykosioux has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mockra has quit [Ping timeout: 264 seconds]
altamic has quit [Quit: altamic]
`damien has quit [Quit: `damien]
chile_andes has joined #ruby
<rambler>
hmm, could you grab the file and split it into chunks over to ffmpeg?
<rambler>
contact the site owner, maybe you can get a nfs share from them to read it from
ferdev has joined #ruby
dr_bob has joined #ruby
forced_request has joined #ruby
_cheney3 has quit [Read error: Connection reset by peer]
kpshek has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
rickruby has joined #ruby
<TomHoss>
Yea could grab the file, but I don't really want to download the whole thing first. I guess maybe there's no way around that
dirtrock has joined #ruby
<rambler>
if you could mount a nfs share from the resource you could probably do what you're seeking, i'm not certain though.
My_Hearing has quit [Quit: WeeChat 0.4.0]
<TomHoss>
okay thanks
dirtrock has left #ruby [#ruby]
jonathanwallace1 has quit [Ping timeout: 240 seconds]
axeman- has joined #ruby
yashshah has quit [Ping timeout: 260 seconds]
rickruby has quit [Ping timeout: 264 seconds]
kpshek has quit []
pcarrier_ has quit [Quit: Computer has gone to sleep.]
Guedes has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
amesha has quit [Read error: Connection timed out]
amesha has joined #ruby
Ibuprofen has quit [Quit: leaving]
saarinen has quit [Quit: saarinen]
DanKnox_away is now known as DanKnox
subbyyy has joined #ruby
Guedes has joined #ruby
big-red has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
rawler has joined #ruby
agjacome has joined #ruby
saarinen has joined #ruby
Guedes has quit [Ping timeout: 264 seconds]
bigmac has joined #ruby
horofox_ has joined #ruby
jonathanwallace1 has joined #ruby
Rumsteak has joined #ruby
chaitime has left #ruby [#ruby]
splittingred has quit [Quit: splittingred]
rakl has joined #ruby
_maes_ has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
rakun has joined #ruby
curtis has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
bricker`LA has joined #ruby
rakl has quit [Quit: sleeping]
TomHoss has quit [Quit: TomHoss]
subbyyy has quit [Ping timeout: 256 seconds]
amesha has quit [Read error: Operation timed out]
amesha has joined #ruby
mattgarrison has quit [Quit: mattgarrison]
_maes_ has joined #ruby
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
spydersc has left #ruby ["WeeChat 0.3.8"]
Eldariof-ru has quit [Ping timeout: 264 seconds]
rickmasta has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
rambler has left #ruby [#ruby]
pskosinski has quit [Remote host closed the connection]
alexmreis has left #ruby [#ruby]
ColKurtz has quit [Quit: sleeping]
rickruby has joined #ruby
pskosinski has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
icole has joined #ruby
rakl has joined #ruby
guiocavalcanti has quit [Ping timeout: 248 seconds]
icecandy has joined #ruby
marr has joined #ruby
rakl has quit [Client Quit]
Akuma has quit [Ping timeout: 245 seconds]
ColKurtz has joined #ruby
momomomomo has joined #ruby
atno has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
horofox_ has quit [Quit: horofox_]
iamjarvo has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
rakl has joined #ruby
Kricir has joined #ruby
rambler has joined #ruby
<rambler>
how do i add multiple items to an array with <<
rakl has quit [Client Quit]
<rambler>
foo_array << "three", "four"
mixel has joined #ruby
Akuma has joined #ruby
bakingbread has joined #ruby
<rambler>
nm got it
hamburge_ has joined #ruby
havenwood has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.4.0]
futilegames has left #ruby [#ruby]
atmosx has joined #ruby
<shevy>
hehehe
dross has joined #ruby
<shevy>
you can also always apply .flatten in case you are unsure about having several arrays within an array
connor_goodwolf has joined #ruby
kidoz has joined #ruby
tylersmith has quit [Remote host closed the connection]
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guiocavalcanti has joined #ruby
DrHeiter23 has joined #ruby
<DrHeiter23>
how can I use gsub to replace a double quote " with two double quotes "" I have tried 'my "test" string'.gsub('"','""') but that puts in escaped double quotes instead of 2 double quotes in a row
amesha has quit [Read error: Connection timed out]
arya has joined #ruby
<shevy>
dumdedum
amesha has joined #ruby
<ColKurtz>
setting up my dev environment on osx to start toying with ruby — any opinions on whether to use rvm or rbenv?
havenwood has joined #ruby
kobain has quit [Remote host closed the connection]
pinpin404 has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
<ericmathison>
ColKurtz: chruby
<ColKurtz>
ohai ericmathison
chandankumar has quit [Quit: Leaving]
<ericmathison>
:)
<MrZYX>
ColKurtz: choose whatever you like most
havenwood has quit [Remote host closed the connection]
LennyLinux has joined #ruby
havenwood has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
<MrZYX>
the difference between RVM, Rbenv and chruby really comes down to personal preference
SDr has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
choobie has quit [Ping timeout: 246 seconds]
havenwood has quit [Read error: Connection reset by peer]
atno has joined #ruby
<ColKurtz>
I suppose I'll leave rvm in-tact until I know enough to develop a preference. I was just reading and rbenv sounded a little appealing. thanks guys
havenwood has joined #ruby
<epitron>
try them all!
a_a_g has quit [Quit: This computer has gone to sleep]
suporte85 has quit [Read error: Connection reset by peer]
threesome has quit [Ping timeout: 256 seconds]
<ColKurtz>
yes, that would probably be best
AgentWillyWonka has joined #ruby
suporte85 has joined #ruby
jbpros has quit [Quit: jbpros]
akells` has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
akells` has joined #ruby
<atmosx>
I haven't tried anything else because rvm works fine
<atmosx>
I use it everywhere, with cron without etc. never system-wide
ipalaus has quit [Ping timeout: 252 seconds]
<havenwood>
<3 chruby, looking forward to 0.4.0 release :)
<r0bglees0n>
rbenv solves a problem rvm couldn't solve without rewriting git as a shell function, so thats why im using rbenv/ruby-build
kjellski has quit [Quit: Leaving]
ipalaus has joined #ruby
arya has quit [Ping timeout: 248 seconds]
bnagy has quit [Ping timeout: 245 seconds]
bnagy has joined #ruby
arya has joined #ruby
centr0 has quit [Quit: centr0]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
Kricir has quit [Remote host closed the connection]
pyx has joined #ruby
jamesfung14 has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
Kar- has quit [Remote host closed the connection]
_maes_ has quit [Read error: Connection reset by peer]
BonSequitur has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
_maes_ has joined #ruby
<atmosx>
nice
<ColKurtz>
yeah I ended up scrapping rvm and i'm setting up rbenv now
<ColKurtz>
lol
<atmosx>
havenwood r0bglees0n what editor do you use to code in ruby?
<havenwood>
atmosx: Usually TM2
bnagy has quit [Ping timeout: 245 seconds]
<ColKurtz>
sublime :D
arya has quit [Ping timeout: 248 seconds]
jesly has joined #ruby
baroquebobcat has joined #ruby
big-red has left #ruby [#ruby]
<havenwood>
r0bglees0n: You use emacs, right?
danslo has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<havenwood>
atmosx: From command line I use vim, but for projects I like TextMate. :)
<atmosx>
havenwood: ah I used to use TM, I dumped to use just vim
<atmosx>
dump-it
<atmosx>
emacs? I KNEW IT
<atmosx>
haha
akells` has quit [Remote host closed the connection]
arya has joined #ruby
<jesly>
any folks here into jenkins plugin development ? i needed some help + guidance ..
jesly has left #ruby [#ruby]
jesly has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
amesha has quit [Read error: Connection timed out]
Hanmac has joined #ruby
amesha has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
lkba has joined #ruby
mixel has quit [Quit: mixel]
saarinen has quit [Quit: saarinen]
cod_slayer has joined #ruby
Animawish has joined #ruby
grobb has quit [Quit: grobb]
mikepack has joined #ruby
cod_slayer has left #ruby [#ruby]
nfk has quit [Quit: yawn]
bnagy has joined #ruby
iamjarvo has quit [Quit: Leaving.]
r0bglees0n has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby
DrHeiter23 has quit [Quit: DrHeiter23]
krombr has joined #ruby
<shevy>
emacs never lets you out again
chrishunt has joined #ruby
mercwithamouth has joined #ruby
chrishunt has quit [Client Quit]
kurttt has joined #ruby
skattyadz has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
chrisja has joined #ruby
momomomomo has joined #ruby
<banisterfiend>
shevy: C-x C-c
momomomomo has quit [Client Quit]
bradhe has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
nyuszika7h has quit [Read error: Connection reset by peer]
ioNull has quit [Quit: Computer has gone to sleep.]
pierre1 has joined #ruby
momomomomo has joined #ruby
r0bglees0n has joined #ruby
nyuszika7h has joined #ruby
workmad3 has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
Josh_groban has joined #ruby
kurttt has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
<Josh_groban>
How do I tell if a class has inherited from an other class?
<havenwood>
Josh_groban: The result would be different though: [String, Enumerable, Comparable, Object, Kernel]
slainer68 has joined #ruby
DarthGandalf has joined #ruby
nettoweb has joined #ruby
pcarrier_ has joined #ruby
<momomomomo>
havenwood: that and more info is at the SO link I posted :p
nettoweb has quit [Client Quit]
tockitj has quit [Ping timeout: 248 seconds]
bnagy has quit [Ping timeout: 246 seconds]
hamburge_ has quit [Quit: hamburge_]
pierre1 has quit [Remote host closed the connection]
pierre1 has joined #ruby
hamburger2000 has joined #ruby
pierre1 has quit [Read error: Connection reset by peer]
sjhuang has quit [Read error: Connection reset by peer]
pierre1 has joined #ruby
pierre1 has quit [Read error: Connection reset by peer]
blaxter has quit [Ping timeout: 248 seconds]
pierre1 has joined #ruby
akells` has quit [Ping timeout: 248 seconds]
pierre1 has quit [Read error: Connection reset by peer]
pierre1 has joined #ruby
fantazo has quit [Remote host closed the connection]
amesha has quit [Read error: Connection timed out]
nobitanobi has joined #ruby
axeman- has quit [Remote host closed the connection]
<jokke>
do you guys know of an easy way to display a nested array in lines so that the more nested it becomes the more whitespace is added before each line..
amesha has joined #ruby
<MrZYX>
awesome_print does that iirc
<jokke>
awesome_print
<jokke>
:)
<jokke>
alright i'll have a look, thanks!
bnagy has joined #ruby
sjhuang has joined #ruby
DrHeiter23 has joined #ruby
kwi2k has joined #ruby
axeman- has joined #ruby
pierre1 has quit [Remote host closed the connection]
pyx has quit [Quit: WeeChat 0.4.0]
pierre1 has joined #ruby
<rgrinberg>
is there an idiomatic way of doing functional updates to objects in ruby?
kurttt has quit [Read error: Connection reset by peer]
rickmasta has quit [Remote host closed the connection]
<rgrinberg>
basically a shorthand for clone and then assigning to a field
kurttt has joined #ruby
pinpin404 has joined #ruby
pierre1 has quit [Read error: Connection reset by peer]
pierre1 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
pierre1 has quit [Remote host closed the connection]
pierre1 has joined #ruby
cj3kim has joined #ruby
wargasm has quit [Ping timeout: 264 seconds]
brunoro has joined #ruby
momomomomo has quit [Quit: momomomomo]
pierre1 has quit [Remote host closed the connection]
amesha has quit [Read error: Connection timed out]
GeissT_ has joined #ruby
amesha has joined #ruby
<tjbiddle>
Anyone ever seen an RVM install take 20+ minutes? Was compiling for at least that - just restarted hoping it was a fluke. Doing so on an EC2 micro instance.
arya has joined #ruby
love_color_text has quit [Remote host closed the connection]
Astralum has joined #ruby
<havenwood>
tjbiddle: They running micro instances on Raspberry Pis now?
kirun has quit [Quit: Client exiting]
ariedler has joined #ruby
<tjbiddle>
havenwood: No kidding.
GeissT has quit [Ping timeout: 248 seconds]
<Fretta>
A call to Dir.entires creates a nice list of files. What is the default for sorting?
<MrZYX>
as returned from the filesystem iirc
bigmac has quit [Ping timeout: 276 seconds]
<Fretta>
MrZYX: got it, thanks
hamburger2000 has quit [Quit: hamburger2000]
hamburger2000 has joined #ruby
hamburger2000 has quit [Remote host closed the connection]
Josh_groban has quit [Quit: Page closed]
mneorr_ has joined #ruby
ariedler has quit [Remote host closed the connection]
<tjbiddle>
havenwood: Second run finished - still took ~10 mins.
<Bauer>
hello guys, I just compiled and installed (using make install) ruby 2.0.0-p195 on Centos machine, which already had Ruby 1.8.5 installed - however ruby -v still shows old Ruby
nomenkun has quit [Remote host closed the connection]
<Bauer>
I am not sure how to make the new ruby show up?
bradhe has joined #ruby
<Bauer>
and remove the old ruby if that is simplest way
tyl has joined #ruby
icole has quit [Remote host closed the connection]
randomlogin has quit [Ping timeout: 264 seconds]
pcarrier_ has quit [Ping timeout: 264 seconds]
axeman- has quit [Remote host closed the connection]
pcarrier_ has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
eka has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 264 seconds]
RagingDave has quit [Quit: Ex-Chat]
IceDragon has joined #ruby
tyl has quit [Ping timeout: 248 seconds]
tyl has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
alexgordon has joined #ruby
randomlogin has joined #ruby
spider-mario has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 248 seconds]
dustint has joined #ruby
chrishunt has joined #ruby
ferdev has quit [Quit: ferdev]
<fryguy>
Bauer: add it to your path
ferdev has joined #ruby
mklappstuhl has joined #ruby
<MrZYX>
more importantly add it before the other one to your path
gr4yscale has joined #ruby
amesha has quit [Read error: Connection timed out]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
havenwood has quit [Remote host closed the connection]
Davey has joined #ruby
alexwh has left #ruby [#ruby]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
Hanmac1 has joined #ruby
roadt has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
mockra has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
mockra_ has quit [Ping timeout: 256 seconds]
chessguy has joined #ruby
postmodern has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
amesha has quit [Read error: Connection timed out]
amesha has joined #ruby
niklasb has joined #ruby
lunarjar has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
amesha has quit [Client Quit]
chrisja has quit [Quit: leaving]
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
Daemoen has quit [Ping timeout: 264 seconds]
nkts has joined #ruby
lunarjar has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
ravster has left #ruby [#ruby]
nomenkun has joined #ruby
cj3kim has quit [Remote host closed the connection]
ToApolytoXaos has quit [Quit: Leaving]
horofox_ has joined #ruby
davedev24 has joined #ruby
cj3kim has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
mockra_ has joined #ruby
iamjarvo has quit [Quit: Leaving.]
mockra has quit [Ping timeout: 260 seconds]
d11wtq has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 264 seconds]
d11wtq has joined #ruby
breakingthings has quit [Quit: breakingthings]
arya has quit [Ping timeout: 248 seconds]
joshcheek has joined #ruby
Apocalypse has joined #ruby
Kricir has quit [Remote host closed the connection]
Neomex has joined #ruby
arya has joined #ruby
skattyadz has quit [Quit: skattyadz]
bigmac has joined #ruby
suporte85 has quit [Quit: Saindo]
mad_hatter_ has quit [Quit: Leaving.]
randomlogin has quit [Read error: Connection reset by peer]
jyp has quit [Ping timeout: 264 seconds]
predator217 has quit [Ping timeout: 246 seconds]
ColKurtz has quit [Quit: sleeping]
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
alexgordon has quit [Quit: Computer has gone to sleep.]
predator117 has joined #ruby
slainer68 has quit [Remote host closed the connection]
krombr has quit [Remote host closed the connection]
`p has quit [Ping timeout: 256 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
chrisramon has quit [Quit: chrisramon]
suporte85 has joined #ruby
undersc0re97 has quit [Quit: WeeChat 0.4.0]
mockra_ has quit [Ping timeout: 256 seconds]
mockra has joined #ruby
<pskosinski>
"ąęó".scan(/./) returns array correctly… I am opening UTF-8 file, reading a line to a var, then var.scan and I'm getting invalid byte sequence in UTF-8 Any tip what to do?
<MrZYX>
ensure that your system locale is set to a utf8 variant