<ddd>
its just a set of scripts that help you follow a certain paradigm of management
KA_ has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
<ddd>
its nothing special, and as breakingthings said, it has nothing at all to do with ruby or jquery, or anything like that at all. its just a set of scripts that sets some config variables and defines branch names and the like.
<chris2>
i know i know
Rarrikins has joined #ruby-lang
Rarrikins_h has joined #ruby-lang
ryanf has joined #ruby-lang
Rarrikins has quit [Ping timeout: 248 seconds]
<emocakes>
i have ine for php...
Jake232 has quit [Quit: Computer has gone to sleep.]
jbsan has joined #ruby-lang
pythonsnake is now known as ||
|| is now known as pythonsnake
srbaker has joined #ruby-lang
xyzodiac has joined #ruby-lang
jtoy has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
pythonsnake is now known as _
_ is now known as pythonsnake
ronaldo__ has joined #ruby-lang
srbaker has quit [Ping timeout: 256 seconds]
srbaker has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
emocakes has quit [Quit: emocakes]
srbaker has quit [Ping timeout: 255 seconds]
thoughtfulgoblin has joined #ruby-lang
<thoughtfulgoblin>
hey
<thoughtfulgoblin>
i'm using bundler.. but it can't seem to find any of my gems
<thoughtfulgoblin>
even though they are all installed
<thoughtfulgoblin>
Could not find awesome_print-1.1.0 in any of the sources, Run `bundle install` to install missing gems.
<thoughtfulgoblin>
i've run bundle update and bundle install but no luck.. i'm also using sam stevensons rbenv if that makes a difference
KA_ has quit [Quit: KA_]
sush24_ has quit [Quit: This computer has gone to sleep]
<apeiros_>
thoughtfulgoblin: funny, I somehow manage to get around that requirement
<thoughtfulgoblin>
rvm gave me nightmares on our server
<thoughtfulgoblin>
rbenv is a lot simpler
<thoughtfulgoblin>
once i work out how to use it that is.. wink wink :)
mwjcomputing has joined #ruby-lang
<apeiros_>
don't know how you can get simpler than copy & paste 2 lines of bash… but well…
<apeiros_>
whatever works for you
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
<darix>
there are still people living happily without either
<stevechiagozie>
thoughtfulgoblin: have you run `rbenv rehash`?
<thoughtfulgoblin>
all working now, yeah. I was having some problems with gems but I reinstalled the version of ruby and deleted the non-rbenv ones and it started working
<thoughtfulgoblin>
was probably some path problem
<stevechiagozie>
indeed. glad to hear all is well.
Nisstyre-laptop has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
pkrnj has joined #ruby-lang
jacktrick has joined #ruby-lang
havenn has quit [Ping timeout: 248 seconds]
bzalasky has joined #ruby-lang
srbaker has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.3.9.2]
glebm has quit [Quit: Computer has gone to sleep.]
arooni-mobile has quit [Quit: Leaving]
Rarrikins has joined #ruby-lang
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
Rarrikins_h has quit [Ping timeout: 252 seconds]
mwjcomputing has quit [Quit: Leaving]
agarie has quit [Remote host closed the connection]
srbaker has quit [Ping timeout: 252 seconds]
havenn has joined #ruby-lang
srbaker has joined #ruby-lang
ronaldo__ has quit [Quit: eyb]
havenn has quit [Ping timeout: 240 seconds]
saward has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
jacktrick has quit [Quit: Leaving]
KA_ has quit [Quit: KA_]
srbaker has joined #ruby-lang
intellitech has quit [Ping timeout: 252 seconds]
intellitech has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sailias has quit [Quit: Leaving.]
headius has quit [Quit: headius]
srbaker has quit [Ping timeout: 276 seconds]
srbaker has joined #ruby-lang
headius has joined #ruby-lang
wyhaines has joined #ruby-lang
gix has quit [Ping timeout: 276 seconds]
KA_ has joined #ruby-lang
havenn has quit [Ping timeout: 272 seconds]
gix has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
blahwoop has quit [Ping timeout: 255 seconds]
Aria has quit [Remote host closed the connection]
Rarrikins has quit [Ping timeout: 260 seconds]
Sinestro has joined #ruby-lang
scottschecter has joined #ruby-lang
jtoy has quit [Quit: jtoy]
hack has joined #ruby-lang
jbsan has quit [Ping timeout: 260 seconds]
jbsan has joined #ruby-lang
havenn has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
srbaker has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
jacktrick has joined #ruby-lang
breakingthings has quit []
havenn has quit [Ping timeout: 272 seconds]
toretore has quit [Quit: Leaving]
havenn has joined #ruby-lang
Nisstyre has quit [Read error: Connection reset by peer]
Rarrikins has joined #ruby-lang
dhsmith has quit [Remote host closed the connection]
srbaker has quit [Ping timeout: 255 seconds]
hack is now known as megha
srbaker has joined #ruby-lang
saward_ has joined #ruby-lang
saward has quit [Ping timeout: 265 seconds]
saward_ is now known as saward
saward_ has joined #ruby-lang
saward has quit [Ping timeout: 240 seconds]
saward_ is now known as saward
xyzodiac has quit [Quit: Computer has gone to sleep.]
Rarrikins has quit [Ping timeout: 276 seconds]
srbaker has quit [Ping timeout: 252 seconds]
Rarrikins has joined #ruby-lang
srbaker has joined #ruby-lang
S1kx has quit [Quit: Leaving]
xyzodiac has joined #ruby-lang
sailias has joined #ruby-lang
saward has quit [Ping timeout: 272 seconds]
sailias has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby-lang
larrylv has joined #ruby-lang
v0lta has quit [Ping timeout: 272 seconds]
jon__50 has joined #ruby-lang
madish has joined #ruby-lang
jon__50 has quit [Remote host closed the connection]
skepti has joined #ruby-lang
sepp2k has joined #ruby-lang
jef_abraham has joined #ruby-lang
<whitequark>
wtf
<whitequark>
hash = {}
<whitequark>
hash[key] and hash[key.hash] give different results
<imperator>
why would they?
v0lta has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 272 seconds]
<whitequark>
imperator: that's what I am trying to figure out
<whitequark>
key = ["string", (a compound object < Object with overridden #hash)]
<imperator>
i mean "wouldn't"
<whitequark>
oh, it turns out that Object#eql? is an alias for #equal?
<whitequark>
imperator: I meant that I either used the `key' for a key or `key.hash', in the whole program
<whitequark>
and it worked differently
<imperator>
guess i dunno the internals of Hash to know why the hash of a value should equal its value from Hash's perspective
<whitequark>
imperator: in the _whole program_
<whitequark>
in other words, I do sed s,key,key.hash, and the program behaves differently
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
jxie has joined #ruby-lang
skepti has quit [Remote host closed the connection]
<heftig>
whitequark: the hash may not be unique
<whitequark>
heftig: thanks. already figured it out through
banister`sleep has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
thoughtfulgoblin has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
skepti has joined #ruby-lang
richardburton has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
<mytrile>
Hey, guys. How can I convert this array [["one", "some"], ["one", "string"], ["two", "another"], ["two", "string"]] to [["one", "some string"], ["two", "another string"]] ?
<andrewvos>
The fuck?
robbyoconnor has joined #ruby-lang
<injekt>
lol
<andrewvos>
That hurts my brain.
<injekt>
mytrile: where did you get 'some string' and 'another string' from?
sush24 has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
<mytrile>
injekt: [["one", "some"], ["one", "string"]] => [["one", "some string"]], combining last array elements with exactly the same first array element
<injekt>
ah
sail has joined #ruby-lang
richardburton1 has joined #ruby-lang
alexander__ has joined #ruby-lang
jef_abraham has quit [Quit: jef_abraham]
richardburton has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
nazty has quit [Ping timeout: 260 seconds]
hack is now known as megha
vlad_starkov has joined #ruby-lang
stiang has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
<badeball>
%w(\ /) -> [" /"], but %w(\\ /) -> ["\\", "/"]. how can I create an array consisting of the two types of slashes, using the % notation?
sepp2k1 has quit [Read error: Connection reset by peer]
<rue>
badeball: That’s correct?
<rue>
puts "\\" # => \
sush24 has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
<heftig>
badeball: the latter is what you want
nkr has quit [Quit: leaving]
ebouchut has joined #ruby-lang
stiang has quit [Quit: stiang]
<badeball>
oh lawd, I'm an idiot. fooling around in irb and it did not occur to me that the content I'm seing is #inspected.
sush24 has quit [Ping timeout: 260 seconds]
headius has joined #ruby-lang
sush24 has joined #ruby-lang
Rarrikins_d has quit [Ping timeout: 246 seconds]
apeiros_ has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
tenderlove has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
apeiros_ has joined #ruby-lang
<injekt>
:)
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
megha has quit [Ping timeout: 272 seconds]
lsegal has joined #ruby-lang
KA_ has quit [Quit: KA_]
`\ is now known as thisnickissolong
aef has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 272 seconds]
blacktulip has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
thisnickissolong is now known as nottoolongnickth
wyhaines has joined #ruby-lang
bluepojo has joined #ruby-lang
nottoolongnickth is now known as pythonsnake
atadesk has quit [Quit: Leaving.]
sulo has quit [Remote host closed the connection]
Guest53544 has quit [Max SendQ exceeded]
Guest53544 has joined #ruby-lang
workmad3 has joined #ruby-lang
v0lta has quit [Quit: Verlassend]
megha has joined #ruby-lang
andreygribanov has joined #ruby-lang
bluepojo has quit [Quit: Leaving.]
ebouchut has quit [Quit: This computer has gone to sleep]
tenderlove has quit [Remote host closed the connection]
andreygribanov has left #ruby-lang [#ruby-lang]
ddd has quit [Quit: Leaving.]
ddd has joined #ruby-lang
gaveen has quit [Quit: Leaving]
sulo has joined #ruby-lang
norc has joined #ruby-lang
norc has quit [Changing host]
norc has joined #ruby-lang
<norc>
Hi. I'm looking for a library that lets me mess with dates and times properly.
swav has joined #ruby-lang
<norc>
Something beyond representation, like where I take an object, and tell it to go one day back or forth, and the month changes if needed etc.
macmartine has joined #ruby-lang
<injekt>
norc: you want active support
<norc>
injekt: That sounds like massive overkill... :|
<injekt>
norc: not if you only include what you need
<injekt>
active support is an overkill if you require it all
will has joined #ruby-lang
will is now known as Guest80915
wyhaines has quit [Ping timeout: 248 seconds]
Sinestro has joined #ruby-lang
skepti has joined #ruby-lang
<chris2>
"DHH doesn't know what people were doing in Ruby before he started using it." hahaha
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
skepti has quit [Client Quit]
Guest80915 has quit [Quit: Leaving]
will_ has joined #ruby-lang
swav_ has joined #ruby-lang
will_ has quit [Read error: Connection reset by peer]
swav has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
erichmenge_ has joined #ruby-lang
gix has joined #ruby-lang
Nisstyre has joined #ruby-lang
esad has joined #ruby-lang
Musfuut has quit [Read error: Operation timed out]
Spaceghost|cloud has quit [Read error: Operation timed out]
whitequark has quit [Read error: Operation timed out]
cyndis has quit [Read error: Operation timed out]
herpless has quit [Ping timeout: 252 seconds]
cyndis has joined #ruby-lang
erichmenge has quit [Quit: Arrivederci!]
erichmenge_ is now known as erichmenge
Musfuut has joined #ruby-lang
Musfuut is now known as Guest73945
herpless_ has joined #ruby-lang
whitequark has joined #ruby-lang
<whitequark>
norc: require 'date'
<whitequark>
see #next_day, #>>, etc.
<whitequark>
inkjet: quite often stdlib already has everything you need. that, and plain ruby too (AS::Concern, I'm looking at you.)
erichmenge has quit [Quit: Arrivederci!]
erichmenge has joined #ruby-lang
tenderlove has quit [Ping timeout: 252 seconds]
<injekt>
whitequark: sure, it depends how much abstraction you're looking for. If these things couldn't be done in ruby then they wouldn't exist in AR :)
<whitequark>
injekt: AS quite often reinvents the wheel for no reason except...
<whitequark>
hm
<whitequark>
for no reason.
mpan has joined #ruby-lang
<injekt>
eh, it's an abstraction, it hardly reinvents the wheel at all, it just writes a lot of code for you
<norc>
whitequark: Meh it's not powerful enough. I found chronic which seems to be sufficient for my tasks.
<whitequark>
norc: chronic solves a different task
<injekt>
norc: I would have recommended chronic but it sounded like you wanted a programmable api
<injekt>
^^
<norc>
injekt: well, I can write a dirty wrapper around chronic
<injekt>
uh
ebouchut has joined #ruby-lang
<injekt>
why would you do that?
<norc>
Because I want to hack this together quickly. ;-)
<injekt>
be careful, chronic bites back ;)
<whitequark>
yeah, and then we wonder why a freshly started rails app uses 2G of RAM
<norc>
whitequark: it's not a full blown app
<whitequark>
norc: whatever. the problem is in the approach.
cyndis has quit [Read error: Operation timed out]
<injekt>
it depends on exactly what you're trying to do, we still dont know
justinra_ has joined #ruby-lang
Guest73945 has quit [Read error: Operation timed out]
sush24 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
justinram has quit [Ping timeout: 276 seconds]
cyndis has joined #ruby-lang
volta has quit [Quit: Bye]
mpan has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
Guest73945 has joined #ruby-lang
sush24 has joined #ruby-lang
wyhaines has joined #ruby-lang
JohnBat26 has joined #ruby-lang
madish_ has joined #ruby-lang
Guedes0 has joined #ruby-lang
madish has quit [Ping timeout: 255 seconds]
wyhaines has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
wyhaines has joined #ruby-lang
madish_ has quit [Ping timeout: 264 seconds]
stevechiagozie has joined #ruby-lang
tenderlove has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
mytrile has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
Spaceghost|cloud has joined #ruby-lang
xalei has joined #ruby-lang
hramrach has joined #ruby-lang
<hramrach>
hello
<hramrach>
how do I tell what interpreter is running?
<mistym>
hramrach: RUBY_ENGINE
<hramrach>
in `<main>': undefined method `RUBY_ENGINE' for main:Object (NoMethodError)
<mistym>
RUBY_ENGINE is a constant, not a method. It contains a string which will contain "ruby" for mri, "macruby" for macruby, etc.
<hramrach>
I want which exact ruby is running
<mistym>
As in version, rather than which interpreter?
<hramrach>
so that if user runs "ruby script.rb" I get "ruby" or "/usr/bin/ruby"
<mistym>
Oh, I see.
<mistym>
$0
nazty has joined #ruby-lang
<hramrach>
and when user runs "/home/user/my_stuff/ruby/bin/ruby script.rb" I get "/home/user/my_stuff/ruby/bin/ruby"
<hramrach>
$0 gives "script'rb"
Mon_Ouie has joined #ruby-lang
<hramrach>
ultimately I need this: ldd `which ruby` | grep libc\.so
wyhaines has quit [Remote host closed the connection]
<hramrach>
Ridders24: it is very much specific to ApacheLogRegex and the value it returns
<hramrach>
but you probably want to add commas or extract evey expression separately
KA_ has joined #ruby-lang
<hramrach>
urls.add(l["%h", .. or urls.add(l["%h"]) ; urls.add(l[ ..
<Ridders24>
hramrach: i tried it with commas and i get the error wrong number of arguments (3 for 1)
lcdhoffman has joined #ruby-lang
<hramrach>
then the latter
<Ridders24>
same result
benanne has joined #ruby-lang
<hramrach>
it cannot possibly tell you you passed 3 arguments when you didn't
<hramrach>
and in the latter example you are passing one argument all the way
thisirs has quit [Read error: Connection reset by peer]
<Ridders24>
sorry the last one one gives me results for just %h
<hramrach>
yes, it does
<hramrach>
that's what l is capable of
tonni_ has joined #ruby-lang
mjio has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<Ridders24>
but it doesnt include %t and %r
tonni has quit [Ping timeout: 260 seconds]
<hramrach>
you can include with separate set.add(l["%t"])
richardburton has joined #ruby-lang
sulo has joined #ruby-lang
<hramrach>
or set.add %w( %h %t %r ).map{|e| l[e]}.join(' ')
xalei has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
sulo has quit [Read error: No route to host]
Rarrikins_a has joined #ruby-lang
<Ridders24>
im struggling with this, just cant seem to get this to work
jonahR has joined #ruby-lang
Rarrikins has quit [Ping timeout: 255 seconds]
<hramrach>
Ridders24: the problem is that it's not obvious what teh code is supposed to do
<hramrach>
you can make it syntactically correct but it does not automatically make sense
<Ridders24>
it normally outputs just one expression from a server log, i need to output more than one expression for a specified line
<hramrach>
%w( %h %t %r ).map{|e| l[e]}.join(' ') does not?
yfeldblum has quit [Ping timeout: 260 seconds]
<Ridders24>
hramrach: just ignore me, it works fine..helps if its saved before running XD
<Ridders24>
thanks
jonahR has quit [Ping timeout: 265 seconds]
tonni has joined #ruby-lang
tonni_ has quit [Ping timeout: 240 seconds]
blacktulip has quit [Remote host closed the connection]
hramrach has left #ruby-lang ["WeeChat 0.3.9.2"]
workmad3 has joined #ruby-lang
tonni_ has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 240 seconds]
megha has quit [Read error: Operation timed out]
yfeldblum has joined #ruby-lang
jonahR has joined #ruby-lang
asaaki has quit [Quit: Verlassend]
megha has joined #ruby-lang
macmartine has joined #ruby-lang
mjio has quit []
Darkspiel has joined #ruby-lang
KA_ has quit [Quit: KA_]
davidbalbert is now known as davidbalber|away
KA_ has joined #ruby-lang
itsmeduncan has joined #ruby-lang
bzalasky has joined #ruby-lang
dhsmith has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
<soahccc>
Is there a way to stub ruby into a package for a specific platform? I only found some older scripts but they aren't working so well.
Aria has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<banisterfiend>
soahccc: for gems u mean?
mjio has joined #ruby-lang
Ridders24 has quit [Quit: Leaving]
wallerdev has joined #ruby-lang
<soahccc>
banisterfiend: No I actually would like to distribute a ruby application and therefore I would like to provide a "extract'n'run" bundle for some platforms.
<soahccc>
I tried to just build ruby into a directory which works unless you move it resp. change the directory which isn't that portable :)
<mistym>
soahccc: I've used ocra to do that on Windows.
TerabyteST has quit [Quit: terabytest]
serhart1 has joined #ruby-lang
<soahccc>
Hmmm *nix systems are actually more important :)
<manveru>
soahccc: i think shoes can do that
hakunin has quit [Remote host closed the connection]
<manveru>
if you happen to need a gui
hakunin has joined #ruby-lang
zigidias has quit [Ping timeout: 256 seconds]
imajes has quit [Excess Flood]
<soahccc>
Hmm I don't really need a GUI I think but Shoes looks nice, I will keep that in mind. I actually need a standalone ruby executable (doesn't have to be a self extracting or single file thing)
imajes has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
<mistym>
soahccc: ocra works with unix too, I think. I just never needed to on Windows. But that's overkill if you're not packaging a specific script or the like.
solars has quit [Ping timeout: 246 seconds]
<soahccc>
well I can package it. found the outdated rubyforge page :(
<soahccc>
oh well github version also says "only windows"
serhart1 has quit [Ping timeout: 252 seconds]
serhart has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]