<mhahn>
is there no way to get STDIN without user pressing enter?
<mhahn>
on 1.8.7?
<apeiros>
curses, ncurses
<apeiros>
or get a ruby version which isn't over half a decade old
<apeiros>
steven: not following what you mean
davetherat has quit [Remote host closed the connection]
InFlames has quit [Quit: This computer has gone to sleep]
davetherat has joined #ruby
chipotle_ has quit [Quit: cya]
jlast has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
_Renegade has quit [Quit: _Renegade]
toastynerd has joined #ruby
bricker is now known as bricker`away
mklappst_ has joined #ruby
guns has quit [Ping timeout: 264 seconds]
<steven>
apeiros: don't worry about it, I got everything the way I needed - thank you!
fuzzyhorns has joined #ruby
<apeiros>
ok, yw :)
iaj has quit [Ping timeout: 248 seconds]
14WAAY40K has quit [Ping timeout: 245 seconds]
Apane101 has quit []
18VAA89XV has quit [Read error: Operation timed out]
zomgbie has quit [Ping timeout: 248 seconds]
mklappstuhl has quit [Ping timeout: 252 seconds]
cburyta has joined #ruby
DonRichie has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 260 seconds]
wmoxam has joined #ruby
Apane has joined #ruby
DonRichie has joined #ruby
<Apane>
Are Ruby devs solely based in Ruby development? Or do they dabble in Rails as well? Trying to gather a consensus
jdunck has quit [Quit: Computer has gone to sleep.]
F1skr has quit [Quit: WeeChat 0.4.1]
kil0byte_ has joined #ruby
iamjarvo has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 264 seconds]
<Xeago>
is responder a word?
arya has joined #ruby
<Xeago>
as in the response is done by the responder
<apeiros>
dictionary says yes
jcromartie has joined #ruby
<Xeago>
alright, fair enough
choobie has quit [Ping timeout: 248 seconds]
bubblehead has joined #ruby
<sam113101>
what's the other way of doing module Test; class << self; define everything; end; end?
iamjarvo has joined #ruby
iaj has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
fuzzyhorns has quit [Remote host closed the connection]
dukedave has joined #ruby
mklappst_ has quit [Remote host closed the connection]
spoonman has quit [Quit: WeeChat 0.4.0]
itsdavem has joined #ruby
v0n has joined #ruby
coreinfo99 has joined #ruby
ctp_ has joined #ruby
ctp has quit [Read error: Connection reset by peer]
<Spooner>
sam113101, You can also do module Test def self.whatever; end; def self.other;end; end
<sam113101>
Spooner: I know, but there was something else
v0n has quit [Ping timeout: 248 seconds]
jude0 has joined #ruby
vwoo_ has joined #ruby
cj3kim has joined #ruby
bitcycle has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 252 seconds]
<sam113101>
something that tells that every method is going to be "static"
<Spooner>
Well, it is more that you are defining the methods on the class's metaclass.
<sam113101>
yeah
tylersmith has quit [Remote host closed the connection]
<digitalcake>
just getting my head in to BDD and I wanted a quick require of my first feature. I feel like I'm missing some thing with my given step https://gist.github.com/digitalcake/5733311
Guest has joined #ruby
<digitalcake>
review = require
arya has quit [Ping timeout: 248 seconds]
<digitalcake>
not sure how I ended up typing that.
brennanM_ has quit [Remote host closed the connection]
<digitalcake>
I feel like my given is not writen correctly cause the step feel like it wouldn't set the stage to anything.
vwoo_ is now known as vwoo
<jude0>
So i did a "gem install therubyracer" on linux, and it seemed to install. When i run in irb "require 'v8' " i get "LoadError: no such file to load -- ref" any pointers?
<Spooner>
sam113101, Well, you can also do (class << self; self; end).send(:define_method, :bleh) {} or (class << self; self; end).class_eval { def bleh; end }
brennanMKE has joined #ruby
<sam113101>
it was a function inside the module definition
<sam113101>
module Test; module_with_only_class_methods; end
<sam113101>
something like that
brennanMKE has quit [Remote host closed the connection]
<sam113101>
I can't remember ;_;
<Spooner>
You mean #module_function?
<sam113101>
let me try
cj3kim has quit [Remote host closed the connection]
echevemaster has quit [Remote host closed the connection]
<bnagy>
Boohbah: arch is the one that just got rid of /usr/bin/bash right?
<bnagy>
hahah hahahaha hahahahahahah
<bnagy>
tools
orien has quit [Quit: Computer has gone to sleep.]
<Boohbah>
what
<Boohbah>
in arch, /bin is a symlink to /usr/bin
<Boohbah>
problem?
Caelum has joined #ruby
guns has quit [Quit: guns]
<Boohbah>
bnagy: what do you use?
<bnagy>
sry /bin/bash
bubblehead has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
<bnagy>
unix
<Fire-Dragon-DoL>
bnagy: looks you are right, I'm trying to emulate code of other classes but I did it wrong
wald0 has joined #ruby
tomsthumb has quit [Quit: Leaving.]
<Boohbah>
bnagy: i doubt it
<wald0>
this can be a stupid question but, by learning ruby i can be able to write things in "ruby on rails" or it requires really to learn more another thing ?
<Boohbah>
many who use rails don't know ruby...
lucianosousa has joined #ruby
sleetdrop has joined #ruby
nicslim has quit [Quit: nicslim]
angusiguess has quit [Ping timeout: 248 seconds]
ivanoats has joined #ruby
Nisstyre-laptop has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
ananthakumaran has joined #ruby
Davey has joined #ruby
jonathanwallace has joined #ruby
iamjarvo has quit [Quit: Leaving.]
zomgbie has joined #ruby
ffranz has quit [Quit: Leaving]
<wald0>
the thing is that i want to learn ruby, and be also able to make a plugin for redmine (made on ruby-on-rails if im not wrong)
Michae___ has quit [Remote host closed the connection]
<jude0>
so i set $GEM_HOME to /var/lib/gems/1.8/ still having trouble figuring out how to get irb to load gems
Michae___ has joined #ruby
Michae___ has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
Michae___ has joined #ruby
<bnagy>
jude0: your life will be much easier if you install a recent ruby as your normal user
<bnagy>
check out chruby and ruby-install or rbenv or whatever
<jude0>
which version? i did install rbenv but wasn't able to figure it out
Astral_ has joined #ruby
<bnagy>
latest stable MRI 1.9.3 is the most conservative choice
zomgbie has quit [Ping timeout: 260 seconds]
nacsurte has quit [Ping timeout: 260 seconds]
jimg has joined #ruby
cofin has quit [Quit: cofin]
brianherman has quit [Read error: Connection reset by peer]
<jude0>
$ rbenv version
<jude0>
system (set by /home/user/.rbenv/version)
<jude0>
#is that right?
Astralum has quit [Ping timeout: 264 seconds]
takezawa has joined #ruby
Michae___ has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
ctp_ has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
takeru has joined #ruby
Opettaja has joined #ruby
<jude0>
$ rbenv versions #return nothing
jimg has quit [Ping timeout: 276 seconds]
harrymoreno_ has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno_ is now known as harrymoreno
dcope has quit [Changing host]
dcope has joined #ruby
takeru has quit [Ping timeout: 248 seconds]
<Fire-Dragon-DoL>
wald0: you have to learn both, first learn ruby than ruby on rails
<Fire-Dragon-DoL>
wald0: you may not have a DEEP ruby knowledge but you need to know it
Fire-Dragon-DoL has quit [Quit: Leaving.]
dr_neek has quit [Ping timeout: 248 seconds]
icole has quit [Remote host closed the connection]
angusiguess has joined #ruby
<bnagy>
jude0: you need to install another ruby and then select it with rbenv
<bnagy>
there are instructions on the site. You can use ruby-build or compile by hand, whichever
<bnagy>
or ruby-install
chandankumar has quit [Quit: Leaving]
emergion has joined #ruby
dr_neek has joined #ruby
dcope has left #ruby [#ruby]
emergion has quit [Client Quit]
ivanoats has quit [Remote host closed the connection]
ppppaul has quit [Ping timeout: 256 seconds]
<jude0>
i was missing a : in my export path :-( derp
ppppaul has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 260 seconds]
kil0byte_ has quit [Remote host closed the connection]
ivanoats has joined #ruby
sailias has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
slash_nick has quit [Ping timeout: 252 seconds]
itsdavem has quit [Remote host closed the connection]
ppppaul has quit [Ping timeout: 256 seconds]
zomgbie has joined #ruby
ppppaul has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
alsdjflkasdkfj has quit [Ping timeout: 264 seconds]
arya has quit []
<jude0>
thanks for the help bnagy, i figured it out with ruby-switch
Dha has joined #ruby
alsdjflkasdkfj has joined #ruby
osvico has joined #ruby
zomgbie has quit [Ping timeout: 248 seconds]
ngoldman has joined #ruby
IceDragon has quit [Quit: Space~~~]
ngoldman has quit [Client Quit]
mun has quit [Ping timeout: 248 seconds]
johnrlive has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
<bnagy>
I had never heard of that
<bnagy>
it looks like a terrible idea, but whatever
mansi has quit [Remote host closed the connection]
johnrlive has quit [Ping timeout: 252 seconds]
<bnagy>
like... they have update-alternatives already why on earth would they make a package just to switch system rubies?
Opettaja has quit [Read error: Connection reset by peer]
nazty has quit [Read error: Connection reset by peer]
Opettaja has joined #ruby
sailias has quit [Quit: Leaving.]
sleetdrop has joined #ruby
chrishough has quit [Quit: chrishough]
Bosox20051 has quit [Remote host closed the connection]
chrishough has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno_ is now known as harrymoreno
vwoo has quit [Quit: Computer has gone to sleep.]
unstable has joined #ruby
vwoo_ has joined #ruby
freerobby has quit [Quit: Leaving.]
<lucianosousa>
bnagy: like rvm or rbenv?
sayan has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
SW_ has joined #ruby
<bnagy>
lucianosousa: I don't know what you mean
itsdavem has joined #ruby
gmci has joined #ruby
Dha has quit [Ping timeout: 250 seconds]
SW_ has quit [Remote host closed the connection]
jcromartie has quit [Quit: Computer has gone to sleep.]
Guga_ has quit [Quit: ~]
devoldmx3 has joined #ruby
zomgbie has joined #ruby
ehaliewicz has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
sam113101 has quit [Quit: WeeChat 0.4.0]
zomgbie has quit [Ping timeout: 260 seconds]
<Boohbah>
how can i easily rescue all errors raised by a particular module?
sam113101 has joined #ruby
ehaliewicz has quit [Read error: No route to host]
<bnagy>
not quite sure what you want there...
unstable has left #ruby [#ruby]
ivanoats has quit [Remote host closed the connection]
<bnagy>
like you want to rescue RuntimeError if it comes from the module but not from some other random code?
<Boohbah>
if i don't specify an error in the rescue clause, will i rescue all errors raised in the begin block?
<bnagy>
almost all of them
<bnagy>
all the ones you can deal with, anyway
<Boohbah>
ahh, that's what i want to do then, thanks
<bnagy>
cool
icole has joined #ruby
tommyvyo has joined #ruby
admitted_limited has quit [Quit: admitted_limited]
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
fierycatnet has quit [Ping timeout: 252 seconds]
Dummies_freelanc has quit [Ping timeout: 276 seconds]
emergion has joined #ruby
fierycatnet has joined #ruby
Jackneill has joined #ruby
fridim_ has joined #ruby
ppppaul has quit [Ping timeout: 260 seconds]
lucianosousa has quit [Quit: lucianosousa]
jonahR has joined #ruby
senj has quit [Quit: so it goes]
kofno has quit [Ping timeout: 276 seconds]
senj has joined #ruby
senj has quit [Remote host closed the connection]
BizarreCake has joined #ruby
tylersmith has joined #ruby
Spaceghost|work has joined #ruby
itsdavem has quit [Remote host closed the connection]
pipework has quit [Ping timeout: 276 seconds]
tylersmith has quit [Ping timeout: 260 seconds]
devyn has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
yacks has quit [Quit: Leaving]
Nisstyre-laptop has quit [Quit: Leaving]
evenix has joined #ruby
Tectonic has joined #ruby
harrymoreno_ has joined #ruby
angusiguess has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
zomgbie has joined #ruby
evenix has quit [Ping timeout: 276 seconds]
freerobby has quit [Ping timeout: 248 seconds]
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
Dha has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
<Dha>
Guys, what is the issue with this code
<Dha>
#!/usr/bin/ruby class Rubyist attr_accessor :hello def say_hello(*names) names.each do |name| self.send(:hello, name) end end end all_names = ["dhaval", "joshi"] ruby = Rubyist.new ruby.say_hello(all_names) put ruby.inspect
alsdjflkasdkfj has quit [Ping timeout: 260 seconds]
<Dha>
AH, that worked.. yum i am assigning values. . Thanks ..
<r0bgleeson>
youre welcome
<r0bgleeson>
peace & <3
harrymoreno has quit [Ping timeout: 248 seconds]
johnrlive has joined #ruby
zomgbie has quit [Ping timeout: 264 seconds]
a_a_g has quit [Quit: Leaving]
admitted_limited has joined #ruby
fwaokda has quit [Ping timeout: 264 seconds]
<Dha>
I tried to understand this self .. but i am still confuse .... what self is used for is . .when i call method in same class i have to give self.method ?
codesoda has quit [Remote host closed the connection]
harrymoreno has joined #ruby
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
orien has joined #ruby
Dummies_freelanc has joined #ruby
<r0bgleeson>
dha: 'self' to an instance of whatever object the scope is in. you don't need to use self all the time, it is implicit, but there are cases when you have to
<Dha>
any example ?
<Dha>
like when i should use that
<Dha>
i know when i define class method i use that ..
fridim_ has quit [Ping timeout: 276 seconds]
pitzips has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
elliptical has joined #ruby
timkohru_ has joined #ruby
timkohr__ has joined #ruby
ellipse has quit [Ping timeout: 256 seconds]
alsdjflkasdkfj has joined #ruby
timkohrumel has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
mansi has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
BizarreCake has quit [Read error: Connection reset by peer]
timkohru_ has quit [Ping timeout: 260 seconds]
statarb3 has quit [Quit: Leaving]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
harrymoreno has quit [Quit: harrymoreno]
dhruvasagar has joined #ruby
freerobby has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
vlad_starkov has joined #ruby
zomgbie has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
zomgbie has quit [Ping timeout: 276 seconds]
sie has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
kevinykchan has joined #ruby
eldariof has joined #ruby
devyn has joined #ruby
sguselnikov has joined #ruby
ericmathison has joined #ruby
sguselnikov has quit [Client Quit]
tomzx_mac has quit [Ping timeout: 256 seconds]
arietis has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
beneggett has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
itsdavem has joined #ruby
toastynerd has quit [Quit: Leaving]
JimmyNeutron has joined #ruby
Vivekananda has joined #ruby
codesoda has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
<ellipse>
RVM or Bundler are the easiest ways by far.
<MrZYX>
there's a --user-install option to the gem install command
<spoonman>
ellipse: i want to learn how the things work before using these tools
hhtp has joined #ruby
Dummies_freelanc has joined #ruby
tmhr has quit [Remote host closed the connection]
<spoonman>
MrZYX: in fact i installed using a .gemrc file but its not finding the binaries
mansi has quit [Ping timeout: 264 seconds]
<spoonman>
MrZYX: i installed rspec in ~/.gems but its not finding the rspec binary file
itsdavem has joined #ruby
crazymykl has quit [Ping timeout: 246 seconds]
<MrZYX>
surely that path isn't in your $PATH
eka has joined #ruby
<spoonman>
MrZYX: yeah, but what do i have to add to the PATH for all the gems to work?
r0bgleeson has quit [Ping timeout: 252 seconds]
ezotrank has joined #ruby
<spoonman>
MrZYX: another thing is: gem uninstall rspec says that rspec is not installed but gem list says its installed
ananthakumaran has joined #ruby
cougarten has joined #ruby
<MrZYX>
add $HOME/.gems/abi_version_of_your_ruby/bin to your path
<MrZYX>
and uninstall takes that same user install option
<spoonman>
MrZYX: it installed in $/HOME/.gems/gems/rspec-*
sr78ger has quit [Quit: Qui]
crazymykl has joined #ruby
<spoonman>
i cant understand these tools they are too complicated i search google and everyone seems to have a different problem
freerobby has joined #ruby
reduzate68 has quit [Quit: reduzate68]
kofno has joined #ruby
<bnagy>
spoonman: use chruby then
<bnagy>
it's just a path switcher, basically
<cougarten>
hi, I used rubyinstaller on windows7 x64 and have troubles building the mysql2 for ruby-2.0.0-p195 (i think i did the same thing for ruby-2.0.0-p0 before and it worked). the errors: http://pastie.org/private/nlw01em5dqt7ez74qmetcg thank you very much!
Ortuna has quit [Quit: Computer has gone to sleep.]
GeissT has quit [Ping timeout: 248 seconds]
hhtp has quit [Ping timeout: 264 seconds]
palmiveined28 has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
itsdavem has quit [Ping timeout: 260 seconds]
<spoonman>
bnagy: i'll take a look, but first i'll try to resolve my current problem
Guga_ has joined #ruby
<spoonman>
bnagy: pretty sure i will run into problems when i use chruby anyway
bubblehe_ has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
<cougarten>
hehe, if no one want's to touch a windows problem... i can understand...
mixel has joined #ruby
<bnagy>
cougarten: holy shit dude, it was like 3 wall minutes
<bnagy>
calm down
<cougarten>
bnagy, sorry, it was just ment as a joke, didn't want to be impatiant or pushy
jcromartie has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
<bnagy>
I didn't even know they had an x64 MRI
palmiveined28 has quit [Quit: palmiveined28]
unreflectively64 has joined #ruby
<cougarten>
bnagy, they seem to have. my ubuntu VM was crashing so often and had a little to little ram,so i wanted to go native with windows (need it for adobe stuff)
<MrZYX>
dualboot?
razi has joined #ruby
<bnagy>
do other native gems compiler?
<cougarten>
MrZYX, I do frontend development and do a lot of design, would really such to restart just to fix a pixel in Photoshop
<bnagy>
*compile
<cougarten>
json did i think
jamesaxl has quit [Ping timeout: 260 seconds]
<MrZYX>
mmh
<cougarten>
MrZYX, need to wait for steam to port photoshop or some other wonder :)
<MrZYX>
I guess I'd still do a headless VM and SSH in or something, suppose you just need to run some ruby app to do your frontend dev against...
<bnagy>
cougarten: ohhhand it looks like it can't find the mysql dlls
<bnagy>
checking for main() in -llibmysql... no
<cougarten>
bnagy, i even dropped libmysql.dll in ruby/bin
gyre007 has joined #ruby
Dummies_freelanc has left #ruby [#ruby]
<cougarten>
bnagy, and it is of course in d:\connector-6.0.2\lib
atno__ has joined #ruby
unreflectively64 has quit [Ping timeout: 252 seconds]
<bnagy>
well it's extconf that has to find it - try playing with paths and stuff
<cougarten>
ah but i will try to do a few more arguments, one second...
<bnagy>
some gems have an ext dir where you can put binary libs
<cougarten>
so copy libmysql.dll to D:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\mysql2-0.3.11\ext or D:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\mysql2-0.3.11\ext\mysql2
<cougarten>
?
jimg has joined #ruby
<bnagy>
dunno sorry. Need to cook dinner.
<cougarten>
ok, thanks a lood
<cougarten>
enjoy
<bnagy>
'lucj
<cougarten>
~a lot
<bnagy>
*luck
<bnagy>
dammit
<bnagy>
food
<cougarten>
(:
milardovich has joined #ruby
Sherwyn has quit [Remote host closed the connection]
Kar- has joined #ruby
dfdf has quit [Ping timeout: 256 seconds]
Eaven has quit [Ping timeout: 256 seconds]
jds_ has quit [Ping timeout: 252 seconds]
gromil18 has quit [Client Quit]
hamed_r has joined #ruby
aoki71 has joined #ruby
tmhr has joined #ruby
danslo has quit [Read error: Connection reset by peer]
danslo_ has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
cougarten has quit [Read error: Connection reset by peer]
mun has joined #ruby
BSaboia has joined #ruby
Animawish has quit [Quit: Animawish]
tmhr has quit [Ping timeout: 276 seconds]
aoki71 has quit [Ping timeout: 252 seconds]
Sherwyn has joined #ruby
aoki71 has joined #ruby
_Renegade has quit [Quit: _Renegade]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
fshaikh has joined #ruby
fshaikh has quit []
jonathanwallace has quit [Read error: Operation timed out]
cha1tanya has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
justsee has joined #ruby
freerobby has joined #ruby
dhruvasagar has joined #ruby
gyre007 has quit [Remote host closed the connection]
dfdf has joined #ruby
gyre007 has joined #ruby
danshultz has quit [Remote host closed the connection]
pinpin404 has joined #ruby
johnrlive has joined #ruby
hogeo has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
mixel has quit [Quit: mixel]
freerobby has quit [Ping timeout: 260 seconds]
geoffw8_ has joined #ruby
<geoffw8_>
.map goes through every thing in an array doesn't it
<geoffw8_>
its not like a "find method"
<geoffw8_>
which to be fair I guess has to go through everything ayway
butblack has left #ruby [#ruby]
johnrlive has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
gyre007 has quit [Ping timeout: 260 seconds]
GeissT has joined #ruby
gyre007 has joined #ruby
gmci has quit [Ping timeout: 264 seconds]
mixel has joined #ruby
Evixion has joined #ruby
<canton7>
geoffw8_, #map is for transforming each element of an array into something else. are you after #select or #find ?
<geoffw8_>
i thought #map was a synonym of #select
gmci has joined #ruby
<geoffw8_>
canton7: essentially what i have is a big collection of objects of stores that I want to say "get only the ones out that match this smaller list"
<canton7>
no, select is a filter
<geoffw8_>
ok.
osvico has joined #ruby
<geoffw8_>
that I did not know
<geoffw8_>
select is probably the route
<geoffw8_>
thanks canton7
sepp2k has quit [Quit: Leaving.]
<canton7>
(in C#, LINQ's Select is equivalent to ruby's #map, and LINQ's Where is equivalent to ruby's #select, if that's what's confusing you)
angusiguess has joined #ruby
m8 has joined #ruby
foofoobar has joined #ruby
itsdavem has joined #ruby
<foofoobar>
Hi. I want to make a static page which has a few pages (/about /imprint /contact /foo /bar /etc). I dont want to put header,content,footer in each file because when I change the header I have to edit all
<foofoobar>
so I'm thinking of a static page generator
<foofoobar>
I found jekyll, but it is very blog orientated, am I right?
sayan has quit [Read error: Connection reset by peer]
machuga|away is now known as machuga
aoki71 has quit [Ping timeout: 276 seconds]
ananthakumaran has quit [Quit: Leaving.]
ChristianS has quit [Excess Flood]
casheew has quit [Read error: Connection reset by peer]
orien has quit [Quit: Computer has gone to sleep.]
marcgg has quit [Ping timeout: 240 seconds]
marcgg has joined #ruby
freerobby has joined #ruby
IPGlider has quit [Quit: IPGlider]
milardovich has quit [Quit: Leaving]
takeru has joined #ruby
JZTech101 has joined #ruby
foofoobar has quit [Quit: Changing server]
freerobby has quit [Ping timeout: 256 seconds]
<cougarten>
how do i set the debug flag for sass with ruby 2.0.0, rails 3.2.x? it doesn't use compass i think. I added: >>require 'sass/plugin'; Sass::Plugin.options[:debug_info] = true<< to my enviroment.rb but the compiled CSS is without debug
fwaokda has joined #ruby
aoki71 has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<cougarten>
bnagy, I found out, that i installed the p0 with railsinstaller and it worked a little better (removing the precompiled package and then sucessfully compiling it myself)
<cougarten>
bnagy, just have to live with different ruby versions in the team now...
sayan has joined #ruby
corehook has quit [Read error: Connection reset by peer]
dealfishes00 has joined #ruby
dfdf has quit [Remote host closed the connection]
_Renegade has joined #ruby
peta_ has joined #ruby
kofno has quit [Remote host closed the connection]
jds_ has joined #ruby
_Renegade has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
statarb3 has quit [Quit: Leaving]
peta_ has quit [Client Quit]
jimg has joined #ruby
tommyvyo has joined #ruby
MrZYX is now known as MrZYX|off
braoru has quit [Ping timeout: 252 seconds]
butblack has joined #ruby
[0x1a] has quit [Quit: Connection closed for inactivity]
jimg has quit [Ping timeout: 252 seconds]
johnrlive has joined #ruby
razi has quit [Ping timeout: 252 seconds]
itsdavem has quit [Remote host closed the connection]
itsdavem has joined #ruby
pitzips has joined #ruby
<MarcWeber>
I want to file a bug agains rake dsl which ships with ruby 1.9.3 - where is the best place to do so?
<MarcWeber>
Its about file not deleting/renaming the target file if the builder fails.
<MarcWeber>
This way the build job does not restart which is bad.
<MarcWeber>
If rake fails, it should fail at the same point if you run it a second time.
elliptical has joined #ruby
ellipse has quit [Read error: Connection reset by peer]
jamesaxl has quit [Read error: Connection reset by peer]
adkron has quit [Ping timeout: 252 seconds]
butblack has left #ruby [#ruby]
browndawg has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
workmad3 has joined #ruby
pitzips has quit [Read error: Connection reset by peer]
ioNull has joined #ruby
angusigu1ss has joined #ruby
freerobby has joined #ruby
cads has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 260 seconds]
usse has joined #ruby
phipes has joined #ruby
sailias has joined #ruby
itsdavem has quit [Remote host closed the connection]
itsdavem has joined #ruby
BizarreCake has quit [Ping timeout: 261 seconds]
freerobby has quit [Ping timeout: 248 seconds]
usse has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
snearch has quit [Quit: Verlassend]
vlad_starkov has quit [Remote host closed the connection]
lunarjar has quit [Ping timeout: 240 seconds]
fivethreeo has quit [Read error: Connection reset by peer]
<joshu_>
I'm working on a project where I have one file in lib/<online_service>/myscript.rb which is hosted by the online_service and separately from the rest of my sinatra app which is on heroku. Everything will be in a git repo. At the moment I upload myscript.rb to the online service via their web interface. The only other option is to use webdav to upload the file. I was thinking if writing a rake task to upload the file via webdav would be more
<joshu_>
efficient. Not sure if a git hook would work. Not really sure about either option. Thoughts please?
itsdavem has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
jimg has joined #ruby
itsdavem has joined #ruby
stef_204 has joined #ruby
<LennyLinux>
joshu_: i'd rather using a YAML file and you should write encrypted name and pass
Hanmac has quit [Ping timeout: 248 seconds]
<joshu_>
LennyLinux so a YAML file. What do you mean by "write encrypted name and pass"? Within the YAML file?
ravster has joined #ruby
<LennyLinux>
joshu_: yes. But right now i don't know where you should put the encypt/decrypt token
hogeo has quit [Remote host closed the connection]
wsterling has quit [Remote host closed the connection]
itsdavem has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 256 seconds]
endozoic73 has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
<joshu_>
ok I will need to google using a YAML file as a starting point. Btw do you know why my rake task only shows the curl upload progress bar and not the response as I have the "-i" flag? It works when run outside of rake?
<platzhirsch>
I want to access a hash with keys which go to depth 3, for instance: record[field][i][subfield] sometimes such a depth is not available
<platzhirsch>
do you think it's a good idea to use exception handling for this case instead of a long if statement checking all the different cases?
ntus1017 has joined #ruby
<_rgn>
no
<LennyLinux>
joshu_: well, that article isn't actually exposing any flaw of YAML, that's just an opinion. And as a few comments are saying YAML is portable and safer than using plain ruby
<joshu_>
LennyLinux ok was just curious
<LennyLinux>
that's a good thing for sure
dmiller has joined #ruby
lkba has joined #ruby
elliptical is now known as ellipse
<LennyLinux>
platzhirsch: many before you have gone through that. You should google about it
<platzhirsch>
LennyLinux: okay I will look for that, thanks
ntus1017 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<LennyLinux>
joshu_: should be ok
timonv has joined #ruby
<joshu_>
LennyLinux thanks. Just can't figure out why curl doesn't show the response when using rake
browndawg1 has joined #ruby
tommyvyo has joined #ruby
hellohey has joined #ruby
banghouse2 has joined #ruby
<joshu_>
because at the moment I have no idea if the rake task is successful or not
sambao21 has quit [Quit: Computer has gone to sleep.]
<hellohey>
Hi, I have a very stupid question.. I just purhcased a mabook pro to quiet my wife, and i downloaded sublime text and infact this question might not even have to do with OS but, here goes, whenever I build I just get a successful (and finished in %time) but I dont get any outputs, why?
banghouse2 is now known as banghouse
dmiller has quit [Remote host closed the connection]
browndawg2 has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
<joshu_>
hellohey what are you building?
_Renegade has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
<hellohey>
A random .rb file
<hellohey>
Was just playing around to familiarize myselves
<joshu_>
and you're going to Tools > Build?
angusiguess has joined #ruby
browndawg1 has quit [Ping timeout: 264 seconds]
ppppaul has joined #ruby
RurouniJones has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<hellohey>
Yeah, command + b
<joshu_>
did you save the file before building hellohey ?
JumpMast3r has joined #ruby
<hellohey>
gonna doublecheck so im not lying, sec
vlad_sta_ has joined #ruby
<hellohey>
nope.... silly me
<hellohey>
thanks
<hellohey>
Actually it wasnt tagged .rb
<hellohey>
Its set to autosave on build but it was just me...
milardovich has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
jimg has joined #ruby
viszu has joined #ruby
mist has quit [Quit: restarting]
hellohey has quit [Quit: Page closed]
vlad_starkov has quit [Ping timeout: 248 seconds]
`p has quit [Remote host closed the connection]
tylersmith has joined #ruby
schaerli has quit [Remote host closed the connection]
itsdavem has quit [Remote host closed the connection]
mrmist has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
elliptical has joined #ruby
itsdavem has joined #ruby
Michae___ has quit [Remote host closed the connection]
io_syl has joined #ruby
Michae___ has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
mrmist has quit [Quit: leaving]
bionhart has joined #ruby
jacobw has quit [Ping timeout: 251 seconds]
dmiller has joined #ruby
ellipse has quit [Ping timeout: 248 seconds]
tommyvyo has quit [Quit:]
sayan has quit [Quit: Leaving]
nacsurte has joined #ruby
brennanMKE has quit [Remote host closed the connection]
ArchBeOS has quit [Remote host closed the connection]
Astral__ has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
wsterling has joined #ruby
Michae___ has quit [Read error: Connection reset by peer]
Micha____ has joined #ruby
jacobw has joined #ruby
generalissimo has joined #ruby
Soeki has joined #ruby
itsdavem_ has joined #ruby
randomlogin has quit [Read error: Connection reset by peer]
mrmist has joined #ruby
ariedler has joined #ruby
Astral_ has quit [Ping timeout: 260 seconds]
dmiller has quit [Read error: Connection reset by peer]
itsdavem has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
wsterling has quit [Ping timeout: 264 seconds]
<Soeki>
hello guys, maybe someone here can help me with this question: if I have a file with these indexes 1, 1.1, 1.1.1, 1.1.1.1 - 2, 2.1, 2.1.1 how can I iterate through the represented levels?
banister_ has quit [Remote host closed the connection]
<fryguy>
Soeki: going to need a better example than that
dmiller has quit [Remote host closed the connection]
citizensinspace has joined #ruby
iamjarvo has joined #ruby
<ariedler>
Soeki: that is normal sorted order....
moos3 has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
iamjarvo has quit [Client Quit]
<Soeki>
im doin some coding on a balanced scorecard related school project. on that format top lvls 1 - 4 are perspective objects, next sublevel 1.1-1.4 are objectives that belong to their parent perspectives
<Soeki>
and so forth
mansi has joined #ruby
<Soeki>
i know i should somehow work with the indexes and make some sort of nested loops on them
cougarten has joined #ruby
<elliptical>
recursion?
<fryguy>
Soeki: still need a lot more detail than that
<Soeki>
but im kinda lost as to what to use in ruby in order to split those strings
jagadeesh has quit [Quit: Lost terminal]
marcgg has quit [Read error: No route to host]
<elliptical>
s.split('.') ?
marcgg has joined #ruby
<fryguy>
Soeki: start with expected inputs, expected outputs, write some tests, and work from there
drfreeze has joined #ruby
iamjarvo has joined #ruby
itsdavem_ has quit [Remote host closed the connection]
thebastl has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
iamjarvo has quit [Client Quit]
drfreeze_ has quit [Ping timeout: 260 seconds]
<Soeki>
hmm i think s.split could work
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
machuga is now known as machuga|away
<Soeki>
sweet, it actually returns an array
wallerdev has quit [Quit: wallerdev]
Evixion has joined #ruby
Fire-Dragon-DoL has joined #ruby
jonahR has joined #ruby
bionhart has quit [Remote host closed the connection]
thebastl has quit [Remote host closed the connection]
<spoonman>
but instead of interpreting '~' as my home it creates a directory named '~' for the gem binaries and ".gems" for the gem libs
<spoonman>
this mess with the gems installations
wargasm has joined #ruby
JZTech101 has quit [Ping timeout: 264 seconds]
Shrink has quit [Ping timeout: 256 seconds]
rbwsam has joined #ruby
mroth has joined #ruby
itsdavem has joined #ruby
icole has joined #ruby
ariedler has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dukedave has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
knirhs has quit [Ping timeout: 246 seconds]
<premera>
Hello, I am recovering a redhat server that "allegedly" had a website running on it, I have found this folder that has references to ruby, but I am cluless about ruby myself. Does the directory listing tell anybody how to start the application, I also see references to "spree", dir listing: https://gist.github.com/anonymous/5b072584ab8705281dc0
yashshah has quit [Ping timeout: 259 seconds]
<premera>
also how do you run a typical ruby web application, does it have usually a webserver in front of it handling http requests or is it acting itself as a full webserver ? (I do not see apache installed on that machine)
brennanMKE has joined #ruby
knirhs has joined #ruby
wallerdev has quit [Quit: wallerdev]
brennanMKE has quit [Read error: Connection reset by peer]
RurouniJones has quit [Remote host closed the connection]
<fryguy>
premera: need to see the contents of those files, but there is probably a server file in script/ that will start the server
<fryguy>
looks like it's an older rails installation
rbwsam has quit [Quit: Leaving.]
m8 has quit [Quit: Sto andando via]
adramalech has joined #ruby
<fryguy>
premera: ruby itself usually acts as an application server, and has a webserver in front of it for handling non-applicaton requests (images, etc). think about how you would deploy tomcat or similar, and that's SIMILAR to how you'd deploy ruby web applications typically
<fryguy>
tomcat can be fully self-contained, but it usually has a webserver in front of it
timkohrumel has quit [Read error: Connection reset by peer]
timkohru_ has joined #ruby
<fryguy>
oh ok, it's a rails 3 install. it should be executable. try running "rails s" from that main directory
[0x1a] has joined #ruby
<fryguy>
well, hrmm, maybe don't do that, i don't know how the environments are set up
kevinykchan has quit [Read error: Connection reset by peer]
<premera>
me neither, thats the problem :-) Will give it a try anyway
<platzhirsch>
is someone familiar with ick or andand?
_Renegade has quit [Quit: _Renegade]
dmiller has quit [Ping timeout: 256 seconds]
<platzhirsch>
nevermind
JZTech101 has joined #ruby
yashshah has joined #ruby
nitinjulka has joined #ruby
icole has quit [Remote host closed the connection]
devoldmx3 has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
jimg has joined #ruby
_Renegade has joined #ruby
<spoonman>
how can i debug 'gem install'
<fryguy>
spoonman: what's wrong
sgupta has joined #ruby
<spoonman>
its creating a folder named '~' in my home directory
schaerli has joined #ruby
<fryguy>
what is
<spoonman>
fryguy: ?
<premera>
@fryguy, thanks a lot, it worked, something launched, its listening on port 3000, was expecting 80 but will poke around more. Is there a standard way to put it in the background ? or just standard linux wrappers ?
rbwsam has joined #ruby
<fryguy>
spoonman: what is creating that directory
rbwsam has left #ruby [#ruby]
browndawg2 has left #ruby [#ruby]
<spoonman>
fryguy: gem install
<fryguy>
spoonman: which gem
<spoonman>
fryguy: any gem
<fryguy>
spoonman: show us
ngoldman has joined #ruby
felixjet has quit [Quit: felixjet]
<spoonman>
i have a .gemrc file with this "gemhome: ~/.gems"
nitinjulka is now known as max123
<fryguy>
premera: -d to run in background, port 3000 is the standard port for rails applications in development mode. take a look at the RAILS_ENV environment variable (and the corresponding environments in the environments directory in config/) to see how things are set up for different areas
<spoonman>
instead of interpreting the ~ as my home its creating a ~ folder
jimg has quit [Ping timeout: 256 seconds]
<premera>
kk, thanks
knirhs has quit [Ping timeout: 248 seconds]
wsterling has joined #ruby
<fryguy>
spoonman: so, sounds like you know what the problem is and how to fix it then
<spoonman>
fryguy: thats why i want to debug gem install
<fryguy>
spoonman: just use $HOME
icole has joined #ruby
<spoonman>
yeah it works but i would like it to work with ~/.gems
schaerli has quit [Remote host closed the connection]
<Morrolan>
premera: For production you'll probably want Apache or nginx in front of Rails' application server.
<fryguy>
spoonman: why
slash_nick has quit [Ping timeout: 256 seconds]
<spoonman>
fryguy: i want to learn
sgupta has quit [Ping timeout: 260 seconds]
<premera>
@Morrolan, yeah I understand that, I am just recovering a machine, no clue whats in there, so was wondering if apparent lack of apache should be alarming or not
<Morrolan>
premera: Ah. :)
max123 has left #ruby [#ruby]
<Morrolan>
If it was a low-traffic application for internal use they probably just used it 'out of the box'. :)
mikewintermute has joined #ruby
quest88 has joined #ruby
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
<premera>
yeah, the firewall had only 22,80 and 3000 ports open, so not sure if 80 was in use but that I can ask users, how they were accessing the website
wsterling has quit [Ping timeout: 276 seconds]
itsdavem has quit [Remote host closed the connection]
<spoonman>
fryguy: im new to the ruby ecosystem, how can i debug this?
wmoxam has joined #ruby
<fryguy>
spoonman: start looking at the source code, write some tests, use a gdb-based debugger like you would in other languages, consider using something like pry, use the repl that's provided for you.
marcgg has quit [Write error: Connection reset by peer]
freerobby has joined #ruby
jamesaxl has joined #ruby
marcgg has joined #ruby
<spoonman>
fryguy: ok, thanks
Micha____ has quit [Remote host closed the connection]
Michae___ has joined #ruby
freerobby has quit [Client Quit]
Giorgio has joined #ruby
Micha____ has joined #ruby
Michae___ has quit [Read error: Connection reset by peer]
krainboltgreene has joined #ruby
Ortuna has joined #ruby
altivec has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
<adramalech>
hello! had a question about trying to get 2d/3d GUI framework for 1.9/2.0 can anybody suggest a good one? most of them I encountered are dead...
jonathanwallace has quit [Quit: WeeChat 0.4.0]
tjbiddle has joined #ruby
<Hanmac>
adramalech: i used gosu for 2d and i make an ogre binding for 3d ... (but mines is not finish yet)
corehook has joined #ruby
_Renegade has quit [Quit: _Renegade]
<adramalech>
okay... yea I was looking for a good binding.. I saw GTK3, and a GTK2... looking for something cross platform...
Soekis has joined #ruby
altivec has quit [Client Quit]
<adramalech>
and the binding api I searched wasn't really live
tjbiddle_ has joined #ruby
viszu has quit [Quit: Leaving.]
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
jonathanwallace has joined #ruby
Soeki has quit [Ping timeout: 256 seconds]
Soekis is now known as Soeki
tomzx_mac has joined #ruby
mikewintermute has joined #ruby
Iszak has joined #ruby
<joshu_>
if you are restricted to using a single file for a ruby app what's the best way to organise the code? Does it make sense to have multiple classes for instance?
<adramalech>
well if you use OOP, than it does
nomenkun has joined #ruby
<adramalech>
it depends on if your making something you want to make "extensibile" code
<adramalech>
using one source code file is just formatting. Making multiple classes is semantics.
randomlogin has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
randomlogin has quit [Client Quit]
IceDragon has joined #ruby
quest88 has quit [Quit: quest88]
sabinee has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
Xeago has joined #ruby
_Renegade has joined #ruby
brennanMKE has joined #ruby
BSaboia has joined #ruby
lushious has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
ngoldman has quit [Read error: Connection reset by peer]
ngoldman has joined #ruby
pierre1 has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Speed has joined #ruby
ngoldman_ has joined #ruby
dhruvasagar has quit [Ping timeout: 243 seconds]
anderson has joined #ruby
IceDragon has joined #ruby
jbpros has joined #ruby
mikewintermute has joined #ruby
ngoldman has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
lucianosousa has joined #ruby
Neomex has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
randomlogin has joined #ruby
Iszak has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Read error: Connection reset by peer]
<Spooner>
Well, there you are using CRuby, not JRuby.
<nebrera_>
ahm
<nebrera_>
how do you know it ?
<nebrera_>
the error says jruby/jrubyc (LoadError)
<Spooner>
The path says ruby1.9.3
<nebrera_>
and on the file red_storm.rake I see: equire 'jruby/jrubyc'
<havenwood>
nebrera_: yeah, cause MRI can't find jruby/jrubyc since it isn't JRuby.
<Spooner>
Yes, but you need to run the gem with JRuby.
danslo has joined #ruby
<Spooner>
Not with MRI/CRuby.
<nebrera_>
I see
srji has joined #ruby
<Spooner>
Are you sure you want to be playing with something like RedStorm before you know the difference between JRuby and CRuby?
<havenwood>
nebrera_: I'd suggest considering using a tool to select the Ruby you desire. Have you taken a look at chruby, rbenv, or RVM?
danslo has quit [Client Quit]
<nebrera_>
ok
<Spooner>
havenwood, The pastie showed RVM was being used.
<nebrera_>
I understand
<nebrera_>
I use rvm
<havenwood>
Spooner: Aha, nice.
<Spooner>
havenwood, Which was how I knew it was CRuby (due to rvm ruby path in error message).
tjbiddle has joined #ruby
tjbiddle_ has quit [Ping timeout: 260 seconds]
Elico has quit [Quit: Elico]
<Spooner>
But, more simply, if you are using CRuby, you can't run RedStorm (and, unless you are using JRuby, it is completely useless to you).
<nebrera_>
have you ever used red storm ?
araujo has quit [Read error: Connection reset by peer]
<Spooner>
No. I only use CRuby.
araujo has joined #ruby
<Spooner>
Which is dumb, because CRuby sucks (Though, ironically, works best of Windows and with extensions).
Unknown45787 has joined #ruby
timkohru_ has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
alsdjflkasdkfj has quit [Ping timeout: 276 seconds]
itsdavem has joined #ruby
timkohrumel has joined #ruby
mikepack has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
locriani has joined #ruby
locriani has quit [Remote host closed the connection]
Zeeraw has joined #ruby
jds_ has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 276 seconds]
itsdavem has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 248 seconds]
Michae___ has quit [Ping timeout: 264 seconds]
mljsimone|bnc is now known as mljsimone
cougarten has quit [Ping timeout: 256 seconds]
Jackneill has quit [Ping timeout: 248 seconds]
itsdavem has joined #ruby
generalissimo has joined #ruby
Michae___ has joined #ruby
moos3 has joined #ruby
mljsimone is now known as mljsimone|bnc
apeiros has quit [Remote host closed the connection]
ry4nn has quit [Remote host closed the connection]
b0oh has joined #ruby
r0bgleeson has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
<joshu_>
anyone use sublime text for ruby dev?
jds_ has quit [Ping timeout: 260 seconds]
<codesoda>
joshu_: VIM ftw!
<codesoda>
ha ha
brennanMKE has quit [Remote host closed the connection]
Xavierstein has joined #ruby
<joshu_>
codesoda ok well if there are any sublime users I've got a question. I keep switching to Termina.app to run rake tasks and my code in general. Do you sublime users do this within sublime?
brennanMKE has joined #ruby
denver has quit [Remote host closed the connection]
<Xavierstein>
Would this be the appropriate place to ask a question about the imgur ruby gem?
<Xeago>
joshu_: it is quite common to frequently switch between editor and shell
moos3 has quit [Quit: Computer has gone to sleep.]
<joshu_>
Xeago ok just thought I'd ask for any different workflows ;)
fomatin has quit [Quit: Computer has gone to sleep.]
<joshu_>
so Spooner I'm using the better syntax, e.g. task :call, [:number] do |t, args|
mun has left #ruby [#ruby]
jpastore has joined #ruby
<joshu_>
if the task is run like this: rake call without the :number argument. How can I get the task to abort. Do I just add abort?
fomatin has joined #ruby
danslo has joined #ruby
BSaboia has quit [Ping timeout: 276 seconds]
<jpastore>
Hi, I'm totally new to ruby. I am actually trying to translate an API example I found into another language. can someone explain a line of code to me? t = Time.now.gmtime.strftime("%Y-%m-%dT%H:%M:%S") # does the %dT put a hard T between date and time or does %dT mean something?
<Xeago>
a hard T
<Xeago>
there is a timezone format that looks like that
<jpastore>
thanks
<Xeago>
2013-06-18T12:34:55
<jpastore>
yea teh API calls needs a recent timestamp
<Spooner>
No: abort "\nA number is required to run task" if args[:number].nil?
<Morrolan>
.nil? is just the name of the method which returns 'true' if it is nil, it's not a ternary operator, if that's what you thought it was.
Alina-malina has quit [Read error: Connection reset by peer]
[Neurotic]_ has joined #ruby
<Spooner>
joshu_, Basic Ruby syntax ;)
Alina-malina has joined #ruby
Soekis has joined #ruby
iamjarvo has joined #ruby
Xavierstein has quit [Quit: Page closed]
banister_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
<joshu_>
ok thanks Spooner Morrolan
Soeki has quit [Ping timeout: 256 seconds]
jimg has joined #ruby
angusigu1ss has joined #ruby
hackeron_ has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
Nahra_ has joined #ruby
iamjarvo has joined #ruby
spacebug_ has joined #ruby
Asher1 has joined #ruby
schaerli has joined #ruby
wald0 has quit [Quit: leaving]
yashshah has joined #ruby
kenichi_ has joined #ruby
ichilton_ has joined #ruby
MrZYX is now known as MrZYX|off
supki_ has joined #ruby
rmnuvg_ has joined #ruby
ihme-TTilus has joined #ruby
elliottcable is now known as ELLIOTTCABLE^
jimg has quit [Ping timeout: 248 seconds]
TomRone has joined #ruby
adiectio_ has joined #ruby
parus_ has joined #ruby
Inside has quit [Disconnected by services]
Inside_ is now known as Inside
Inside has quit [Changing host]
Inside has joined #ruby
Caelum_ has joined #ruby
klipeto has joined #ruby
Matip has joined #ruby
bsdbandi1 has joined #ruby
predator217 has joined #ruby
nimor has quit [Read error: No buffer space available]
Whooop has joined #ruby
Mattix has quit [Quit: Leaving]
Michae___ has quit [Remote host closed the connection]
mahlon__ has joined #ruby
Whooop has joined #ruby
Whooop has quit [Excess Flood]
Michae___ has joined #ruby
_Renegade_ has joined #ruby
alex88_ has joined #ruby
casheew_ has joined #ruby
skasio_ has joined #ruby
Whooop has joined #ruby
Whooop has quit [Excess Flood]
denken_ has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
itsdavem_ has joined #ruby
Blue_Ice_ has joined #ruby
_Renegade has quit [Quit: _Renegade]
_Renegade_ is now known as _Renegade
Whooop has joined #ruby
Whooop has quit [Excess Flood]
postmodern has joined #ruby
r0bby has quit [Ping timeout: 264 seconds]
[Neurotic] has quit [Ping timeout: 246 seconds]
ekarlso has quit [Ping timeout: 246 seconds]
hackeron has quit [Ping timeout: 246 seconds]
Nahra has quit [Ping timeout: 246 seconds]
fridim_ has quit [Ping timeout: 246 seconds]
gregorg has quit [Ping timeout: 246 seconds]
jpastore has quit [Ping timeout: 246 seconds]
jacobw has quit [Ping timeout: 246 seconds]
angusiguess has quit [Read error: Connection reset by peer]
ekarlso has joined #ruby
thejefflarson___ has quit [Ping timeout: 246 seconds]
nightfly has quit [Ping timeout: 246 seconds]
itsdavem has quit [Ping timeout: 246 seconds]
Asher has quit [Ping timeout: 246 seconds]
kenichi has quit [Ping timeout: 246 seconds]
ichilton has quit [Ping timeout: 246 seconds]
alex88 has quit [Ping timeout: 246 seconds]
Blue_Ice has quit [Ping timeout: 246 seconds]
sepp2k1 has quit [Ping timeout: 246 seconds]
IceDragon has quit [Ping timeout: 246 seconds]
wu_1mao has quit [Ping timeout: 246 seconds]
rmnuvg has quit [Ping timeout: 246 seconds]
TomRone_ has quit [Ping timeout: 246 seconds]
supki has quit [Ping timeout: 246 seconds]
spacebug has quit [Ping timeout: 246 seconds]
TTilus has quit [Ping timeout: 246 seconds]
araujo has quit [Ping timeout: 246 seconds]
bmn has quit [Ping timeout: 246 seconds]
silky__ has quit [Ping timeout: 246 seconds]
madhatter has quit [Ping timeout: 246 seconds]
ekarlso has quit [Ping timeout: 246 seconds]
mahlon_ has quit [Ping timeout: 246 seconds]
bsdbandit has quit [Ping timeout: 246 seconds]
Sou|cutter has quit [Ping timeout: 246 seconds]
companion has quit [Ping timeout: 246 seconds]
ohcibi has quit [*.net *.split]
sweet_kid has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
riku has quit [*.net *.split]
ShapeShifter499 has quit [*.net *.split]
Dwarf has quit [*.net *.split]
Whoop has quit [*.net *.split]
sebastianb has quit [*.net *.split]
dubios has quit [*.net *.split]
kalleth has quit [*.net *.split]
G has quit [*.net *.split]
Spitfire has quit [*.net *.split]
pcarrier has quit [*.net *.split]
tekacs has quit [*.net *.split]
asellus has quit [*.net *.split]
tessi has quit [*.net *.split]
alex88_ is now known as alex88
tessi- is now known as tessi
tessi has quit [Changing host]
tessi has joined #ruby
Whooop has joined #ruby
Whooop has quit [Excess Flood]
Soekis is now known as Soeki
itsdavem_ has quit [Remote host closed the connection]
Drakevr has quit [Remote host closed the connection]
uxp has quit [Remote host closed the connection]
predator117 has quit [Remote host closed the connection]
Michae___ has quit [Read error: Connection reset by peer]
Alina-malina has quit [Quit: Leaving]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
casheew has quit [Write error: Broken pipe]
skasio has quit [Write error: Broken pipe]
schaerli has quit [Remote host closed the connection]
bw_ has quit [Write error: Broken pipe]
denken has quit [Write error: Broken pipe]
adiectio has quit [Write error: Broken pipe]
Proshot has quit [Write error: Broken pipe]
klip has quit [Write error: Broken pipe]
Alina-malina has joined #ruby
anderson has quit [Write error: Broken pipe]
Caelum has quit [Write error: Broken pipe]
parus has quit [Write error: Broken pipe]
ShapeShifter499 has joined #ruby
riku has joined #ruby
dubios has joined #ruby
Dwarf has joined #ruby
sebastianb has joined #ruby
G has joined #ruby
Spitfire has joined #ruby
pcarrier has joined #ruby
asellus has joined #ruby
18WADFR2B has joined #ruby
JaTochNietDan has joined #ruby
tekacs has joined #ruby
sweet_kid has joined #ruby
kalleth has joined #ruby
ohcibi has joined #ruby
Michae___ has joined #ruby
jds_ has joined #ruby
jamesaxl has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
bmn_ has joined #ruby
ShapeShifter499 has quit [Max SendQ exceeded]
Nisstyre-laptop has quit [Excess Flood]
swistak35 has quit [Excess Flood]
tethra has quit [Excess Flood]
sindork_ has quit [Ping timeout: 320 seconds]
uxp has joined #ruby
dv_ has quit [Ping timeout: 258 seconds]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
companion has joined #ruby
swistak35 has joined #ruby
Nisstyre-laptop has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
sindork has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
tethra has joined #ruby
yashshah has quit [Write error: Connection reset by peer]
ekarlso has joined #ruby
yashshah has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
jamesaxl has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
raddazong has joined #ruby
JZTech101 has quit [Ping timeout: 269 seconds]
corehook has quit [Ping timeout: 269 seconds]
yacks has quit [Ping timeout: 243 seconds]
mtlatif__ has joined #ruby
[Neurotic]_ is now known as [Neurotic]
tjbiddle has quit [Quit: tjbiddle]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
corehook has joined #ruby
jacobw has joined #ruby
jpastore has joined #ruby
gregorg has joined #ruby
bw_ has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
fridim_ has joined #ruby
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
yacks has joined #ruby
dv_ has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
chrishough has joined #ruby
Whoop has joined #ruby
JZTech101 has joined #ruby
jds_ has quit [Ping timeout: 248 seconds]
silky__ has joined #ruby
ShapeShifter499 has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
araujo has joined #ruby
nightfly has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
timkohrumel has quit [Remote host closed the connection]
IceDragon has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
kleinerdrache has quit [Quit: Ex-Chat]
Todd has quit [Ping timeout: 248 seconds]
wu_1mao has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
timkohrumel has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
sepp2k has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Todd has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Michae___ has quit [Remote host closed the connection]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
fridim_ has quit [Ping timeout: 276 seconds]
Michae___ has joined #ruby
mikepack has quit [Read error: No route to host]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Sou|cutter has joined #ruby
Michae___ has quit [Read error: Connection reset by peer]
wesside_ has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Michae___ has joined #ruby
wesside has quit [Ping timeout: 256 seconds]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<apeiros>
wtf, chanserv off?
Evixion has quit [Read error: Connection reset by peer]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
rippa has quit [Ping timeout: 240 seconds]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
solars has joined #ruby
adiectio_ is now known as adiectio
Whoop has joined #ruby
Whoop has quit [Excess Flood]
rpgsimmaster has quit [Ping timeout: 256 seconds]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
jonasac has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
rpgsimmaster has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
bionhart has joined #ruby
<Xeago_>
online but not responding :O
Whoop has joined #ruby
Whoop has quit [Excess Flood]
rippa has joined #ruby
MrZYX|off is now known as MrZYX
harrymoreno has joined #ruby
adramalech has quit [Quit: Lost terminal]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
<Xeago_>
confirmed in #freenode
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<Morrolan>
Looking at the current situation that's no wonder. :P
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<Morrolan>
Seems most of the ungraceful quits are Whoop's, though.
Whoop has joined #ruby
Whoop has quit [Excess Flood]
adiectio has quit [Quit: leaving]
niko has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
JStoker_ has joined #ruby
fridim_ has joined #ruby
<Xeago_>
#freenode is kinda busy at the moment.. :\
<apeiros>
yeah, wanted to ban Whoop
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<apeiros>
but thanks to unresponding chanserv…
ananthakumaran has quit [Quit: Leaving.]
ToApolytoXaos has quit [*.net *.split]
JStoker has quit [*.net *.split]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
nebrera_ has quit [Quit: nebrera_]
<Morrolan>
apeiros: Time to do it the old-fashiond way, then? ;)
<Xeago_>
apparently services are under ddos
<Morrolan>
s/ond/oned/
<apeiros>
Morrolan: which would be?
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<Morrolan>
/mode #ruby +b, I'd say? (Possibly with extban, if Freenode supports it.)
<apeiros>
um, yeah…
<apeiros>
it's a *tiny* bit difficult without op…
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<Morrolan>
Oh, whoops.
<apeiros>
which is what I need chanserv for
<Morrolan>
You've got a point. ;)
<tomaw>
he should be fixed now
<apeiros>
:)
<apeiros>
nope
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<Xeago_>
nah still 30sec interval on the mark
<apeiros>
will try again in 5
aruntomar has quit [Remote host closed the connection]
<Xeago_>
chanserv rejoined
Whoop has joined #ruby
Whoop has quit [Excess Flood]
aruntomar has joined #ruby
dayepa has quit [Remote host closed the connection]
aruntomar has quit [Remote host closed the connection]
aruntomar has joined #ruby
dayepa has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
mikepack has joined #ruby
ToApolytoXaos has joined #ruby
JStoker_ is now known as Guest25439
nebrera_ has joined #ruby
Sherwyn has joined #ruby
Iszak has quit [Quit: Computer has gone to sleep.]
johnrliv_ has joined #ruby
johnrlive has quit [Read error: Operation timed out]
Guest25439 has quit [Changing host]
Guest25439 has joined #ruby
Guest25439 is now known as JStoker
Xeago_ is now known as Xeago
workmad3 has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
fridim_ has quit [Ping timeout: 248 seconds]
mikepack has joined #ruby
macuser has joined #ruby
macuser is now known as Guest18820
pinpin404 has joined #ruby
<joshu_>
I have abort "A number is required to run task" unless args[:number1] which works if I only have one argument. But if I have 2 and I want to make sure that both are provided can I still use unless something like unless args.all
<atmosx>
joshu_: why don't you try
<atmosx>
it's fairly easy test
<joshu_>
I have it didn't work
kofno has joined #ruby
<joshu_>
The abort is executed even if I both args are specified
bionhart has quit [Remote host closed the connection]
<Spooner>
unless args.empty?
<canton7>
if args.empty?
<Spooner>
Oops, yes.
<canton7>
:P
<Spooner>
Or unless args.size == 2
jds_ has joined #ruby
<Spooner>
But I think the args are always there, even if they are nil. Can't remember.
<atmosx>
or unless args[:number1] ||/&& args[:number2]
<atmosx>
you might wanna put a () there
Proshot has joined #ruby
<Proshot>
join /join #rubyonrails-nl
nomenkun has quit [Remote host closed the connection]
<apeiros>
proshot an arrow to his knee
jamesfung14 has joined #ruby
* atmosx
takes a bow
<joshu_>
hmm so far unless args.empty?, if args.empty? and unless args.size == 2 don't work
nebrera_ has quit [Quit: nebrera_]
<atmosx>
unless don't.work?
<joshu_>
no atmosx those three options never execute abort oddly enough
Michae___ has quit [Remote host closed the connection]
poga_ has joined #ruby
<Morrolan>
The keys are probably present no matter whether the argument was specified or not, the corresponding values will then just be 'nil'.
Michae___ has joined #ruby
iamjarvo has quit [Quit: Leaving.]
<joshu_>
only one that seems to work so far is unless args[:number1] && args[:number2]
bionhart has joined #ruby
<joshu_>
which is fine but if I had more arguments it would probably not be a good idea to use that syntax
<Morrolan>
'unless args.any? { |key, value| value.nil? }' is probably closer to what you want?
poga has quit [Ping timeout: 264 seconds]
jpastore has quit [Quit: Ex-Chat]
<Morrolan>
Or even 'unless args.values.any?(&:nil?)'
johnrliv_ has quit [Remote host closed the connection]
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
<joshu_>
Morrolan unfortunately just tested with rake and neither one worked :( maybe it's something to do with rake
devoldmx3 has joined #ruby
<joshu_>
anyway thanks for everyone's input
citizensinspace has joined #ruby
<Morrolan>
joshu_: Add a 'p args' (or 'puts args.inspect') somewhere in that task, the output which it writes to stdout is probably going to be helpful in debugging this.
<joshu_>
ok Morrolan one sec
_Renegade has quit [Quit: _Renegade]
ferdev has joined #ruby
milardovich has joined #ruby
<joshu_>
Morrolan output without any arguments {}
Soekis has joined #ruby
<joshu_>
Morrolan one argument {:number1=>"1"}
<joshu_>
Morrolan two arguments {:number1=>"1", :number2=>"2"}
devoldmx has quit [Ping timeout: 248 seconds]
atmosx has quit [Quit: And so the story goes…]
jbueza has quit [Quit: Leaving.]
<Morrolan>
Ah, yes, with an empty hash the 'any?' block will return 'false'. So changing it to 'unless args.empty? || args.values.any?(&:nil?)' should help.
<Morrolan>
Oh, wait, if it behaves like that, the second condition will not work as desired, either.
<joshu_>
Morrolan undefined method `any?' for nil:NilClass
<Morrolan>
'unless [:key1, :key2, :key3].all? { |key| args.keys.include? key }' is worth a shot.
Asher1 has quit [Quit: Leaving.]
kofno has quit [Remote host closed the connection]
<Morrolan>
(Replacing the [:key1, :key2, :key3] array with the arguments which you want the user to supply.)
srji_ has joined #ruby
<joshu_>
sure going to test now brb
kofno has joined #ruby
Soeki has quit [Ping timeout: 260 seconds]
Soekis is now known as Soeki
<Morrolan>
Also, everyone else who is listening in on this conversation: Feel free to chime in if something which I say doesn't make sense, I'm not in top shape at the moment. ;)
<joshu_>
Morrolan new error undefined method `include?' for nil:NilClass
<joshu_>
seems as if rake doesn't play nice
momomomomo has quit [Read error: No route to host]
<Morrolan>
Huh, I wonder why args.keys returns 'nil'.
srji has quit [Ping timeout: 248 seconds]
<joshu_>
yeah did a p args.key and it's always nil even with args
<joshu_>
*args.keys
<Morrolan>
'unless args.keys.nil? || [:key1, :key2, :key3].all? { |key| args.keys.include? key }' then. ('unless args.empty? || ... would probably work, too, but I don't want to assume anything about this hash at the moment.)
ToApolytoXaos has quit [Quit: Leaving]
ToApolytoXaos has joined #ruby
<Morrolan>
Oh, one moment, there's an 'unless' there, not an 'if'.
milardovich has quit [Quit: Leaving]
nkts has joined #ruby
<Morrolan>
in this case 'unless args.keys && [:key1, :key2, :key3].all? { |key| args.keys.include? key }'
kofno has quit [Ping timeout: 264 seconds]
<Morrolan>
Got a feeling I should go to bed. :P
<Xeago>
Morrolan: I think there are some 'binary' operations you can do on array
pinpin404 has quit [Quit: Screw you guys i'm going home ! KMP !]
Kar- has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
nezumi has joined #ruby
bionhart has quit [Remote host closed the connection]
nebrera_ has joined #ruby
pinage404 has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
fridim_ has joined #ruby
nomenkun has joined #ruby
pinage404 has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
DrCode has joined #ruby
codecop has quit [Remote host closed the connection]
ivanoats_ has joined #ruby
d2dchat has joined #ruby
ivanoats has quit [Ping timeout: 248 seconds]
pinage404 has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
whowantstolivef1 has quit [Ping timeout: 248 seconds]
ToApolytoXaos has quit [Quit: Leaving]
phipes has joined #ruby
<joshu_>
I come across these two variations of syntax quite a bit and I'm unsure which is preferred or if they are equal. The first is {allow_signals: yes, something_else: "1234"}
<joshu_>
and the second is {:allow_signals => yes, something_else => "1234}
palantir_ has joined #ruby
<momomomomo_>
joshu new syntax is the former, old syntax is the latter - it's preference at this point, I'm not sure if the old syntax will ever be deprecated
jimg has joined #ruby
<joshu_>
momomomomo_ thanks do the two syntaxes have any specific names?
JZTech101 has quit [Ping timeout: 256 seconds]
<havenwood>
joshu_: => is a hash rocket
<joshu_>
havenwood haha cool :D
Dummies_freelan1 has quit [Ping timeout: 240 seconds]
Dummies_freelan2 has quit [Ping timeout: 256 seconds]
<Apane>
There has been an error while running configure. Halting the installation."
<havenwood>
joshu_: Some people don't like how it looks when key and value are symbols. I don't mind. { aim: :pretty_good }
pinage404 has joined #ruby
<Apane>
Any idea on how I can get this working
agjacome has joined #ruby
<joshu_>
ah I see havenwood
rickruby has joined #ruby
anonyme has quit [Quit: Screw you guys i'm going home ! KMP !]
<havenwood>
Apane: What does _configure.log file it mentions say? You might try #rvm as well.
kirun has quit [Quit: Client exiting]
<joshu_>
wait havenwood I'm confused by what you said. In my example, {allow_signals: yes, something_else: "1234"} the keys are not symbols, right no colon prefix and no hash rocket.
mansi has quit [Ping timeout: 245 seconds]
<havenwood>
joshu_: They key are symbols. E.g.: { aim: true } == { :aim => true }
<havenwood>
joshu_: The ':' moves from the left of the symbol to the right. Only for symbols, which are frequently used as hash keys.
<joshu_>
havenwood ok makes sense now
<momomomomo_>
joshu_: with the new syntax, symbols (usually represented as :key) which are keys are represnted like :key
* apeiros
still sad that {"complex-symbol": value} is not valid :(
Nahra_ has quit [Quit: leaving]
<apeiros>
still have to use hash-rocket for that
<havenwood>
apeiros: yeah, that is disconcerting
<Apane>
havenwood: ran brew doctor basically I have to re-route some paths.
<havenwood>
hrm, would be nice for 2.1 - guess it isn't a common use-case :O
<Apane>
havenwood, any idea how to do this "Consider amending your PATH so that /usr/local/bin
<Apane>
occurs before /usr/bin in your PATH."
<havenwood>
Apane: OS?
<Apane>
OS moutain lion
<Apane>
10.8.3
<havenwood>
Apane: Oh, brew... of course. I'm slow today.
<apeiros>
havenwood: actually it is. think rails + haml
<havenwood>
Apane: Yeah, just edit /etc/paths
<apeiros>
%sometag{"data-foo": value}
tjbiddle has joined #ruby
<havenwood>
apeiros: oooh, hrm yeah
<apeiros>
ok, well, not *that* common
<apeiros>
but in that niche, it is common
<havenwood>
solution, don't use HAML :P
<apeiros>
also json exchanges
wsterling has joined #ruby
<apeiros>
aaahaha… no.
joofsh has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
justsee has joined #ruby
nebrera_ has quit [Ping timeout: 276 seconds]
justsee has quit [Changing host]
justsee has joined #ruby
vlad_starkov has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
pierre1 has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
ariedler has joined #ruby
adramalech has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
takeru has quit [Remote host closed the connection]
braoru has quit [Ping timeout: 248 seconds]
d2dchat has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
tjbiddle_ has joined #ruby
nebrera_ has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
Fire-Dragon-DoL has joined #ruby
icole has quit [Remote host closed the connection]
Quintus_q has quit [Quit: Valete!]
Markvilla has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
Markvilla has quit [Max SendQ exceeded]
Markvilla has joined #ruby
dmiller has joined #ruby
Davey has joined #ruby
platzhirsch1 has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
<Apane>
who else is running mIRC on OSX with Wine?
nebrera_ has quit [Client Quit]
Soeki has quit [Ping timeout: 276 seconds]
rickruby has quit [Remote host closed the connection]
citizensinspace has joined #ruby
solars has quit [Ping timeout: 245 seconds]
pierre1 has joined #ruby
ip_ has joined #ruby
alsdjflkasdkfj has quit [Read error: Connection reset by peer]
Michae___ has joined #ruby
talntid2 has joined #ruby
ELLIOTTCABLE^ has quit [Remote host closed the connection]
Soeki has joined #ruby
ELLIOTTCABLE has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
dmiller has quit [Ping timeout: 248 seconds]
talntid has quit [Ping timeout: 256 seconds]
generalissimo has quit [Remote host closed the connection]
fierycatnet has joined #ruby
chase-work has joined #ruby
<fryguy>
Apane: LOL
alexwh has left #ruby [#ruby]
wsterling has quit [Remote host closed the connection]
senj has joined #ruby
pinage404 is now known as pinage404afk
pinage404afk is now known as pinage404
<pinage404>
good night
senj has quit [Quit: so it goes]
senj_ has joined #ruby
nomenkun has joined #ruby
<konr>
I wrote a validator in rails: "validates :title, :description, presence: true". The rightmost part syntax is confusing. Is there an implicit pair of brackets?
<havenwood>
konr: Rails channel is #RubyOnRails.
Iszak has joined #ruby
<konr>
havenwood: it's about syntax, not rails
<havenwood>
konr: Yeah, called a naked hash.
predator117 has joined #ruby
cj3kim has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 264 seconds]
<konr>
havenwood: can I deliberately put brackets there?
pinage404 is now known as zz_pinage404
<momomomomo_>
konr: yes
<havenwood>
konr: You can leave the curly braces, but it is idiomatic to remove them.
oddalot-pc is now known as oddalot
<konr>
thanks!
timkohrumel has quit [Remote host closed the connection]
benlieb has quit [Read error: Connection reset by peer]
benlieb_ has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
predator217 has quit [Ping timeout: 245 seconds]
slash_nick has joined #ruby
slash_nick has joined #ruby
takeru has joined #ruby
chrishough has quit [Quit: chrishough]
cj3kim has joined #ruby
LennyLinux has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
JZTech101 has joined #ruby
cofin has quit [Quit: cofin]
lucianosousa has joined #ruby
takeru has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
bionhart has joined #ruby
senj_ has quit [Quit: so it goes]
slash_nick has quit [Ping timeout: 256 seconds]
joofsh has quit [Remote host closed the connection]
benlieb_ has quit [Quit: benlieb_]
emmanuelux has quit [Ping timeout: 256 seconds]
emmanuel__ has joined #ruby
gyre007 has joined #ruby
ariedler has quit [Remote host closed the connection]
cofin has joined #ruby
ctp has quit [Read error: Operation timed out]
mansi has joined #ruby
xardas has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
ntus1017 has joined #ruby
haxrbyte has joined #ruby
takeru has joined #ruby
gyre007 has quit [Ping timeout: 255 seconds]
takeru has quit [Remote host closed the connection]
ip_ has quit [Ping timeout: 245 seconds]
ctp has joined #ruby
alsdjflkasdkfj has joined #ruby
verto has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
InFlames has quit [Quit: This computer has gone to sleep]
Godd2 has joined #ruby
vwoo has joined #ruby
<Godd2>
I'm a little confused on how to add a child class in a different file.