hashpuppy has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Read error: Connection reset by peer]
uokesita has joined #ruby
Aryasam_ has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
luckyruby has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
momomomomo has joined #ruby
cody-- has joined #ruby
jalcine_ has quit [Excess Flood]
jalcine has joined #ruby
burlyscudd has joined #ruby
endash has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
amacgregor_ has joined #ruby
b00stfr3ak has joined #ruby
amacgregor__ has joined #ruby
_HolyCow has joined #ruby
fixl has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Ping timeout: 264 seconds]
ewnd9_ has joined #ruby
bricker`LA has joined #ruby
amacgregor_ has quit [Ping timeout: 265 seconds]
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
hanmac has joined #ruby
T_T has quit [Remote host closed the connection]
i_s has joined #ruby
radic has joined #ruby
Ox6abe has quit [Ping timeout: 272 seconds]
Ox6abe_ has joined #ruby
zachrab has quit [Remote host closed the connection]
nari has joined #ruby
awarner_ has joined #ruby
radic_ has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
awarner has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
vadviktor has quit [Read error: Connection reset by peer]
peterhu has quit [Ping timeout: 272 seconds]
vadviktor has joined #ruby
Xeago has joined #ruby
jonathanwallace has joined #ruby
b00stfr3ak has quit [Read error: Operation timed out]
byprdct has joined #ruby
byprdct has quit [Client Quit]
Xeago has quit [Ping timeout: 246 seconds]
AlexH2 has joined #ruby
hanmac has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
AlexH2 is now known as LiVECrys
Heero has joined #ruby
skyjumper has left #ruby [#ruby]
Aryasam has quit [Ping timeout: 252 seconds]
cogent has joined #ruby
zeade has joined #ruby
Aryasam has joined #ruby
DanKnox_away is now known as DanKnox
DanKnox is now known as DanKnox_away
Mars` has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
Mars` has joined #ruby
i_s has joined #ruby
hogeo has joined #ruby
Mars`_ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars` has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 265 seconds]
mayorga has quit [Ping timeout: 265 seconds]
zeade has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
mando has quit [Remote host closed the connection]
hogeo has quit [Read error: Connection reset by peer]
mando has joined #ruby
T_T has joined #ruby
marcdel_ has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
T_T has quit [Remote host closed the connection]
mando has quit [Ping timeout: 264 seconds]
volty has quit [Quit: Konversation terminated!]
volty has joined #ruby
glaksmono has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
Jdubs has joined #ruby
zeade has joined #ruby
Alina-malina has quit [Ping timeout: 248 seconds]
volty has quit [Client Quit]
ce_afk is now known as cescalante
Atrumx has quit [Ping timeout: 245 seconds]
popl has joined #ruby
popl has joined #ruby
cogent has quit [Ping timeout: 246 seconds]
cogent_ has joined #ruby
hogeo has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
Jdubs has quit [Ping timeout: 240 seconds]
zeade has quit [Quit: Leaving.]
<milardovich>
Hey guys, let's suppose I have an array with these numbers: [1,2,3] and I want to create a new array with the values 1-x (being x every value of the first array)
<milardovich>
Is there a ruby-ish way to do that?
coderhs has joined #ruby
burlyscudd has joined #ruby
<milardovich>
As an example, if I had [1,2,3] I should get [0,-1,-2]
Aryasam has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
Aryasam has joined #ruby
marwan_ has joined #ruby
cescalante is now known as ce_afk
<uokesita>
milardovich [1,2,3].map {|x| 1-x }
ehaliewicz has joined #ruby
marwan_ has quit [Client Quit]
burlyscudd has quit [Ping timeout: 246 seconds]
<milardovich>
uokesita, thanks, but if for example I want to do something like 1-(x/k) being k an integer constant (an x an integer as well) how can I get a float value?
<milardovich>
Because I only get 1 in all fields
endash has joined #ruby
rezzack has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
<MrZYX>
krz: try def initialize; @foo = 'foo'; end. @foo outside and inside a method are different variables
<popl>
^
fgh2 has quit [Read error: Connection reset by peer]
fgh2 has joined #ruby
<jrobeson>
hmm.. seems like you're going a little crazy deep into ruby without quite mastering the basics .
<krainboltgreene>
Er, what?
<krz>
ty
<krainboltgreene>
He's just not understanding the difference between instance and class scope.
<krainboltgreene>
Nor is this "crazy deep".
<jrobeson>
seems like one should ease into that..
<jrobeson>
i was being a bit hyperbolic
<krainboltgreene>
I noticed.
<popl>
don't be :P
<jrobeson>
krz, are you still working on the same thing ?
wesside has joined #ruby
<jrobeson>
from the last week? or is this new?
<krz>
jrobeson: no
<jrobeson>
oh good
<krz>
thanks krainboltgreene popl. that works
<jrobeson>
thought you were still stuck on that.
<krz>
on what?
<krainboltgreene>
krz: I have a directory in ~/code called /proofs , just for this sort of thing.
Mars` has quit [Remote host closed the connection]
<krainboltgreene>
krz: Keep asking questions.
<jrobeson>
whatever it was that you were stuck on.. i didn't look at your code.. just say you asking about it
<jrobeson>
about modules accessing class vars or whatnot
Mars` has joined #ruby
<krz>
that was with an orm i was playing around with for rethinkdb
<jrobeson>
ah that's right
<krz>
learnt a lot on that
<jrobeson>
so where did you end up tacking on the uhmm.. i forget .. :(
<jrobeson>
i remember you were trying to add something to where it wasn't naturally :(
vx9 has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<krz>
yea i forget as well. the orm was more of a case study and excercise. it was also a good insight on peering into other developer's orm source code
fgh2 has quit [Read error: Connection reset by peer]
fgh2 has joined #ruby
<krz>
i like how they used modules (mongoid, mongomapper, nobrainer) instead of inheritance (AR)
<jrobeson>
well are you actually using your modications? or just the orm itself?
<jrobeson>
ah i hadn't heard of nobrainer
<krz>
no orm for rethinkdb
<krz>
no=new
nari has joined #ruby
<jrobeson>
aha.. that would explain that
<krz>
only scratches the surface. missing quite a bit of features. given that rethinkdb is still in development
<jrobeson>
krz, i'm defniitely not a fan of the inheritance approach .. or not really the moduel approach..
<jrobeson>
however.. they are all certainly actually usable comapred to rom-rb :(
<jrobeson>
i wish i had time to really contribute to that
Mars` has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
<popl>
what are you doing right now jrobeson? ;)
<jrobeson>
popl, learning about linux serial port programming
<jrobeson>
because the ruby-serialport gem does not work under rubinus 2.0
<jrobeson>
it has a native C extension that does not compile .. and my C is quite poor .. AND rusty..
fgh2 has quit [Read error: Connection reset by peer]
<krz>
im gonna have to look at rom-rb source code soon. looks interesting
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jrobeson>
krz, so do you have any experience with datamapper type ORMs?
fgh2 has joined #ruby
<jrobeson>
you'd get a nice overview by looking at java hibernate or doctrine2
<krz>
ive used doctrine on php in the past
<jrobeson>
not doctrine.. doctrine2
<jrobeson>
HUGE difference
<jrobeson>
if you've already used php then starting with that would be a good look
jibi has joined #ruby
<jrobeson>
of course there might be a more equivalent python version i'm unaware of that would probably best easier to understand, but i haven't looked
fgh2 has quit [Read error: Connection reset by peer]
fgh2 has joined #ruby
<krz>
the ORM excise i was into was more about getting into ruby more. understanding the concepts of inheritance / modules / singletone methods / variable scopes / metaprogramming, etc. i thought id practice a bit more after reading Practical Object Oriented Design in Ruby. so i thought trying to build an ORM would give me that practice
<jrobeson>
that's a big practice..
<jrobeson>
not the first project i would choose.
burlyscudd has quit [Ping timeout: 245 seconds]
<jrobeson>
well i guess depending on your definition of ORM that is..
Aryasam has quit [Ping timeout: 245 seconds]
fgh2 has quit [Read error: Connection reset by peer]
<krz>
ive used AR a lot in rails project. and several ORM's from other db solutions. i was always quite intrigued on how these gems were coded
<krz>
i did learn quite a lot, to be honest
fgh2 has joined #ruby
<jrobeson>
perhaps i'm just thinking of the crazy full project portable ORMS
<jrobeson>
i can't see how you would have gotten away without learning anything.. if you actually made some of it work
jbpros has joined #ruby
<krz>
yea, nohing like that. a fully portable ORM (like AR) takes a lot of time
<krz>
i referred more towards the nobrainer gem, and mongoid at the time
<jrobeson>
hmm.. and AR still doesn't use actual foreign keys either :(
<krz>
mongoids source code is definitely more mature than nobrainer
<krz>
both orms are not exactly portable, since they only support one kind of db
<jrobeson>
glad i never have to work with mongo
<krz>
i like the fact that the FK constraints are delegated on the app layer though
<krz>
rethinkdb has plenty of interesting things though
jbpros has quit [Client Quit]
fgh2 has quit [Read error: Connection reset by peer]
fgh2 has joined #ruby
joshAnderson99 has joined #ruby
Zolo has joined #ruby
joshAnderson99 has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 240 seconds]
fgh2 has quit [Read error: Connection reset by peer]
fgh2 has joined #ruby
beilabs has quit [Ping timeout: 252 seconds]
fgh2 has quit [Read error: Connection reset by peer]
jetblack has quit [Ping timeout: 252 seconds]
fgh2 has joined #ruby
krainboltgreene has quit []
beilabs has joined #ruby
banister`sleep has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
noname001__ has joined #ruby
fgh2 has quit [Read error: Connection reset by peer]
yzzz has joined #ruby
fwmath has joined #ruby
carraroj has joined #ruby
carraroj has quit [Client Quit]
astrobun_ has joined #ruby
lyanchih has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
another_eddie has joined #ruby
<another_eddie>
Hi everybody... The gem Capistrano is only for Ruby >= 1.9 or it works also with Ruby 2.0? Thank you in advance...
vlad_starkov has joined #ruby
postmodern has quit [Quit: Leaving]
lyanchih has quit [Quit: lyanchih]
<ecksit>
another_eddie, >= 1.9 includes 2.0
nari has quit [Ping timeout: 245 seconds]
<astrobun_>
huh, the channel has a ruby icon on it
SHyx0rmZ has joined #ruby
Elhu has joined #ruby
<another_eddie>
|ruby-2.0.0-p247| … ERROR: Could not find a valid gem 'capistrano' (>= 0)
<another_eddie>
ecksit: thanks... my question is because, using rvm I can easy install capistrano with ruby 1.9 but with 2.0 I have this:
Elhu has quit [Client Quit]
<krz>
consider this: end
<krz>
er
<ecksit>
are you using a gem file or just trying to install it like `gem install capistrano` ?
<krz>
why isnt the a method being created dynamically?
<another_eddie>
ecksit: just 'gem install capistrano'
<apeiros>
krz: the body of a module/class is executed immediately. I'd expect your code to raise a NoMethodError on line 2 because @array is nil.
<apeiros>
krz: also define_method is for classes, yet you want to call it on an instance (since you assign @array in the instance, not in the class itself)
atSetKey has quit [Remote host closed the connection]
hamakn has joined #ruby
Squarepy has joined #ruby
<krz>
apeiros: checking
threesome has joined #ruby
Xeago has joined #ruby
<krz>
apeiros: i get NoMethodError: undefined method efine_method' for #<Foo:0x..
<apeiros>
`efine_method`, seriously? :)
<krz>
`define_method*
schaerli has joined #ruby
<krz>
tmux shannigans
<apeiros>
right, that'd be the other part - define_singleton_method
<apeiros>
"krz: also define_method is for classes"
<apeiros>
forgot to change that part
<krz>
ok works nicely
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
nari has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
user258467 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tatsuya_o has joined #ruby
burlyscudd has joined #ruby
jrhe has joined #ruby
Mars` has joined #ruby
Zai00 has joined #ruby
ShawnMcCool has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
<ShawnMcCool>
Hey guys, real quick question. I'm just building some Ruby classes to play with the language. What's the preferred unit-testing tool for non-web related Ruby? I'm just interested in knowing what is considered to be 'the current hotness', i guess
<apeiros>
test/unit (comes with ruby), minitest, rspec
jrhe has quit [Client Quit]
<apeiros>
personally I dislike rspec, but it has a large following
<ShawnMcCool>
ok, thanks, i'll start with test/unit
timonv has joined #ruby
VTLob has joined #ruby
ismlages has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
helloworld has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
joshAnderson99 has joined #ruby
gregf_ has quit [Quit: leaving]
<ShawnMcCool>
apeiros: i'll go ahead and ask since you offered it up a bit. is there a quantifiable reason why you dislike rspec?
<apeiros>
ShawnMcCool: it introduces levels of unnecessary complexity
relix has joined #ruby
relix has quit [Remote host closed the connection]
<apeiros>
(I wonder why I always write 'unecessary' at first try, instead of 'unnecessary'…)
<ShawnMcCool>
i do the same thing, i now KNOW how to spell that word because i've found myself unsure so many times in teh past
ehaliewicz has quit [Ping timeout: 272 seconds]
<apeiros>
to continue: besides the complexity, it also requires you to basically learn an additional language
<ShawnMcCool>
so, it's like a testing dsl
<apeiros>
and the last thing can be blamed on its immaturity (and might be a thing of the past): it quickly changed/changes its API
<apeiros>
ShawnMcCool: I take no issue in providing a testing dsl. but I do take issue if its vocabulary is huge.
<ShawnMcCool>
ok, fair points. thanks for sharing.
<apeiros>
you're welcome
ecksit has quit [Quit: Computer has gone to sleep.]
<apeiros>
assuming you're using rspec - is it still changing its API on an almost monthly base? or has it stabilized by now?
<MrZYX>
monthy basis is harsh and it does follow semver (now) afaik
<MrZYX>
but there are still changes
<MrZYX>
for example they're deprecating the .should syntax now in favor of expect(whatever).to whatever
<MrZYX>
so they don't need to add new methods to basically every object that exists anymore
another_eddie has quit [Remote host closed the connection]
another_eddie has joined #ruby
another_eddie has quit [Remote host closed the connection]
another_eddie has joined #ruby
lemonsparrow is now known as Guest27553
fwmath has quit [Ping timeout: 252 seconds]
<joshAnderson99>
hi, the gem group seems to be asleep at the moment, but having encountered what might be a common problem thought i might ask here. trying to install ruby-debug on windows, using these commands:
<joshAnderson99>
it would be nice to have debugging. encountered by others?
<apeiros>
MrZYX: ah yeah, that'd have been another complaint - rspec uses (or used, now) an invasive dsl
another_eddie has quit [Ping timeout: 272 seconds]
relix has joined #ruby
dzhulk has joined #ruby
MrZYX|off has joined #ruby
dangerousdave has joined #ruby
heftig_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
MrZYX has quit [Ping timeout: 264 seconds]
MrZYX|off is now known as MrZYX
timonv has joined #ruby
tatsuya_o has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
atSetKey has joined #ruby
newbiehacker has joined #ruby
<ShawnMcCool>
in ruby do people create methods like 'get_url' or do they prefer like.. 'url'?
rjhunter has joined #ruby
tatsuya_o has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 272 seconds]
<apeiros>
get_/set_/is_foo are generally written as foo, foo= and foo?
<ShawnMcCool>
thank you
<apeiros>
so yes, `url` is preferred, prefixes are rather nonstandard
Es0teric has joined #ruby
atSetKey has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
fgo has quit [Remote host closed the connection]
nerocrux has joined #ruby
nerocrux has quit [Remote host closed the connection]
fwmath has joined #ruby
AmericusFedora has joined #ruby
Lewix has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
rubyracer has joined #ruby
mengu has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
razi has joined #ruby
arietis has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
fwmath has quit [Ping timeout: 245 seconds]
razi has quit [Ping timeout: 272 seconds]
Mo0O has joined #ruby
<Mo0O>
hi there
stefff has joined #ruby
<Mo0O>
a `bundle install` return me `An error occurred while installing bcrypt-ruby (3.1.1), and Bundler cannot continue` but `gem install bcrypt-ruby -v '3.1.1'` succeeded
astrobun_ has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
Deele has joined #ruby
d45h has joined #ruby
burlyscudd has joined #ruby
gyzmodo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has quit [Read error: Connection reset by peer]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
d45h has quit [Ping timeout: 245 seconds]
another_eddie has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
Xeago has quit [Remote host closed the connection]
<ShawnMcCool>
another stupid question. should i: assert_instance_of Video, Video.new('foo') or: assert_instance_of(Video, Video.new 'foo')?
Xeago has joined #ruby
diegoviola has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ewnd9_ has quit [Ping timeout: 240 seconds]
maz-dev has quit [Remote host closed the connection]
maz-dev has joined #ruby
tatsuya__ has joined #ruby
_bart has joined #ruby
colonolGron has joined #ruby
hamakn has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
Macaveli has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
jbpros has joined #ruby
astrobunny has joined #ruby
mengu has quit [Remote host closed the connection]
Ahti333_ has joined #ruby
phantasm66 has joined #ruby
mengu has joined #ruby
Xeago has joined #ruby
dzhulk has quit [Quit: Leaving.]
Ahti333 has quit [Ping timeout: 265 seconds]
Ahti333_ is now known as Ahti333
jbpros has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 240 seconds]
<Ahti333>
what is the best way to discuss ideas with the ruby dev team? file a bug?
eka has joined #ruby
<NinjaPenguin>
Ahti333: I think sharing ideas is not a bug, so no. How about send them an e-mail?
DonRichie has joined #ruby
sevenseacat has joined #ruby
another_eddie has joined #ruby
decoponio has joined #ruby
Ahti333 has quit [Ping timeout: 264 seconds]
atSetKey has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
helloworld has joined #ruby
Ahti333 has joined #ruby
timonv has joined #ruby
nemysis has joined #ruby
Fredericks has joined #ruby
lkba has joined #ruby
atSetKey has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
Ahti333 has quit [Ping timeout: 252 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
ewnd9_ has joined #ruby
jbpros has joined #ruby
Kar- has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
funburn has joined #ruby
schaerli has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *poof*]
schaerli has joined #ruby
Ahti333 has joined #ruby
matchaw has quit [Ping timeout: 248 seconds]
threesome has quit [Ping timeout: 240 seconds]
hashpuppy has joined #ruby
another_eddie has quit [Remote host closed the connection]
horofox has joined #ruby
<MrZYX>
ShawnMcCool: largely personal preference, but as far I as I can tell the former is preferred by the majority
another_eddie has joined #ruby
<ShawnMcCool>
thanks
schaerli has quit [Ping timeout: 246 seconds]
Paradox has quit [Ping timeout: 264 seconds]
basmoura has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
hiyosi has joined #ruby
<Mo0O>
a `bundle install` return me `An error occurred while installing bcrypt-ruby (3.1.1), and Bundler cannot continue` but `gem install bcrypt-ruby -v '3.1.1'` succeeded
<Mo0O>
no idea?
newbiehacker has quit [Ping timeout: 264 seconds]
<joshAnderson99>
anyone know how to match end characters of a string, i've used "filename.ends_with('sgm')" but oddly it doesn't recognise ends_with, or endswith.
tatsuya__ has quit [Ping timeout: 265 seconds]
brightcohen has joined #ruby
jbpros has quit [Quit: jbpros]
<sevenseacat>
ends_with?
timonv has quit [Remote host closed the connection]
<apeiros>
joshAnderson99: the '?' is part of the method name.
<apeiros>
you can't just leave it off
banisterfiend has joined #ruby
timonv has joined #ruby
joshAnderson99 has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
forced_request has joined #ruby
matchaw has joined #ruby
joshAnderson99 has joined #ruby
swistak35 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
someish has joined #ruby
fgo has joined #ruby
<joshAnderson99>
question posted to lang instead, probably more apporpriate there.
jonathanwallace has joined #ruby
<sevenseacat>
uh...
<sevenseacat>
we already answered it, and it's quite relevant here
burlyscudd has quit [Ping timeout: 245 seconds]
<joshAnderson99>
ok.. so apeiros mentioned.. lost msgs due to dropped connection.
spider-mario has joined #ruby
<sevenseacat>
`ends_with?` is the method you want
<joshAnderson99>
would you be good enough to paste the answer. .unless there's some way i can do it here.
<sevenseacat>
the question mark is part of the method name.
<joshAnderson99>
i thought i tried that. will try with the ?
<joshAnderson99>
same sort of error:
<joshAnderson99>
in `block in <main>': undefined method `ends_with?' for "all-exchanges-strings.lc.txt":String (NoMethodError)
kofno has quit [Ping timeout: 240 seconds]
<apeiros>
sevenseacat is obviously kinder than me.
<joshAnderson99>
i dont really mind, it's more the correctness of the answer, really.
<sevenseacat>
thats a word that doesnt usually get applied to me
<joshAnderson99>
or brevity of resolution
<joshAnderson99>
well, today's ur lucky day
<sevenseacat>
oh, ends_with? is part of activesupport
<joshAnderson99>
kind one
justsee has quit [Ping timeout: 264 seconds]
<joshAnderson99>
i came across that name on a page somewhere. a require.
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<joshAnderson99>
is activesupport in ruby, and just requires a require? or need to install it.
nmirc has joined #ruby
basmoura has quit [Ping timeout: 246 seconds]
<sevenseacat>
no, its a separate gem
<sevenseacat>
part of the rails stack that can be used standalone
<joshAnderson99>
is there a lower level way of doing it? i believe there is, perl like perhaps, if you know it off hand.
<joshAnderson99>
ok
<nmirc>
Çäðàñòè!
<joshAnderson99>
haven't tried rails yet.. but standalone is good.
<MrZYX>
ends_with? may be part of AS, but core has end_with?
<sevenseacat>
oh really?
<joshAnderson99>
really.. a fine distinction. shall try.
<sevenseacat>
nice
arietis has quit [Quit: Computer has gone to sleep.]
<joshAnderson99>
worked. an error, but not the one related to testing end of string. thanks zyx. and to kind and less so alike.
Beoran__ has quit [Read error: Operation timed out]
someish has quit [Quit: someish]
someish has joined #ruby
astrobunny has joined #ruby
<another_eddie>
Hi everybody... The gem Capistrano is only for Ruby >= 1.9 or it works also with Ruby 2.0? I'm asking because 'gem install capistrano' returns : Could not find a valid gem 'capistrano' (>= 0) with ruby 2.0 ... Thank you in advance...
<Morrolan>
Ah, you're talking about the development environment. And here I was thinking you were using modified hosts file for production. :P
<uffs>
yeah
<Morrolan>
But yea, a locally hosted DNS server is probably worth a try. Might make management easier, and cleaner.
airstream66 has quit []
io_syl has joined #ruby
fwmath has joined #ruby
pragmatism has joined #ruby
newbiehacker_ has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
threesome has joined #ruby
goganchic has joined #ruby
fwmath has quit [Ping timeout: 240 seconds]
fwmath has joined #ruby
relix has joined #ruby
Banistergalaxy has joined #ruby
sevenseacat has quit [Quit: Leaving.]
SHyx0rmZ has joined #ruby
nisstyre has joined #ruby
tsykoduk is now known as zz_tsykoduk
schaerli has joined #ruby
nouitfvf_ has joined #ruby
zz_michael_mbp is now known as michael_mbp
IceyEC has quit [Quit: IceyEC]
beilabs has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
horofox has joined #ruby
Davey has joined #ruby
burlyscudd has joined #ruby
nouitfvf has quit [Ping timeout: 245 seconds]
jbpros has quit [Quit: jbpros]
musty has joined #ruby
horofox has quit [Client Quit]
lyanchih has joined #ruby
freerobby has quit [Quit: Leaving.]
burlyscudd has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
<michael_mbp>
hmm
freerobby has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
peterhu has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
lkba has joined #ruby
Senjai has joined #ruby
<michael_mbp>
anyone around?
johnmilton has joined #ruby
matchaw has quit [Remote host closed the connection]
astrobunny has joined #ruby
_bart has quit [Remote host closed the connection]
volty has quit [Quit: Konversation terminated!]
tethra__ has quit [Ping timeout: 245 seconds]
matchaw has joined #ruby
musty has quit [Changing host]
musty has joined #ruby
jalcine_ is now known as jalcine
Banistergalaxy has joined #ruby
Squarepy has quit [Quit: Leaving]
Davey has quit [Quit: Computer has gone to sleep.]
astrobunny has quit [Ping timeout: 264 seconds]
<Moogly2012_>
yup
S0da has joined #ruby
musty_ has joined #ruby
Lewix has quit [Remote host closed the connection]
musty has quit [Read error: Connection reset by peer]
ShawnMcCool has joined #ruby
<ShawnMcCool>
i have a class that has a behavior that's based on the time, if i want to unit test this class, i need to abstract out the time methods. my first thought is to create a class that sends the time methods so that i can just mock it. is there any kind of better way to approach this in ruby?
astrobunny has joined #ruby
<waxjar>
dont have the behavior of a class change based on the time?
<ShawnMcCool>
well, it's tracks the playback of a video
<ShawnMcCool>
there's a necessary temporal component
<ShawnMcCool>
it compares the start time, versus the current time
Elhu has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
<pontiki>
ShawnMcCool: Timecop is what you want
atno has quit [Remote host closed the connection]
<ShawnMcCool>
thanks
claymore has joined #ruby
Elhu has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
musty_ has quit [Quit: Lost terminal]
colonolGron has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
atSetKey has joined #ruby
tomasso has joined #ruby
johnmilton has quit [Quit: Leaving]
johnmilton has joined #ruby
Ox6abe has quit [Ping timeout: 272 seconds]
rorra_ has quit [Quit: rorra_]
atSetKey has quit [Ping timeout: 246 seconds]
rgbdev has quit [Ping timeout: 245 seconds]
guns has joined #ruby
zz_tsykoduk is now known as tsykoduk
atno has joined #ruby
Moogly2012_ has quit [Quit: Moogly2012_]
tsykoduk is now known as zz_tsykoduk
rgbdev has joined #ruby
Moogly2012_ has joined #ruby
jalcine is now known as jalcine_
Lewix has joined #ruby
rylev has quit [Remote host closed the connection]
<CheckDate>
but i need something that i could free already scripts by people maybe then later own expand on them or make my own
<Moogly2012_>
CheckDate: you could check out Rails or Sinatra if you want to write your own, as for using one, search for a Ruby CMS on google, should land you a few results
JohnBat26 has joined #ruby
cogent has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Monie has joined #ruby
<CheckDate>
does anyone here know sites about documentries and how to make one ?
Guest32807 has quit [Remote host closed the connection]
Matt123 has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
rgbdev has joined #ruby
randomnick_ has joined #ruby
jamesfung14 has quit [Quit: Leaving]
RatSalad has joined #ruby
obs has joined #ruby
gener1c has quit [Remote host closed the connection]
heidi has joined #ruby
katsrc has joined #ruby
kofno has joined #ruby
boxmein has joined #ruby
fwmath has quit [Ping timeout: 246 seconds]
petey has joined #ruby
jlebrech has quit [Ping timeout: 246 seconds]
katsrc has quit [Remote host closed the connection]
schaerli has joined #ruby
johnmilton has joined #ruby
skaflem has quit [Quit: Leaving]
kofno has quit [Ping timeout: 246 seconds]
ukd1 has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
jdenen has joined #ruby
tatsuya_o has joined #ruby
zachrab has quit [Remote host closed the connection]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
zachrab has joined #ruby
schaerli has joined #ruby
jdenen has quit [Remote host closed the connection]
mercwith1mouth has joined #ruby
zachrab has quit [Read error: Connection reset by peer]
kurt21 has quit [Quit: Leaving.]
Xeago has joined #ruby
Jdubs has joined #ruby
tatsuya_o has quit [Read error: Operation timed out]
IceDragon has joined #ruby
ukd1 has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
atSetKey has joined #ruby
pen has quit [Read error: No route to host]
tatsuya_o has joined #ruby
siwica has joined #ruby
pen has joined #ruby
wow000 has quit [Ping timeout: 240 seconds]
heidi has quit [Quit: Leaving.]
schaerli has quit [Ping timeout: 265 seconds]
dangerousdave has joined #ruby
Seich has joined #ruby
siwica has left #ruby [#ruby]
brennanMKE has quit [Remote host closed the connection]
atSetKey has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
RatSalad has quit [Quit: Leaving]
astrobunny has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
Macaveli has joined #ruby
renanoronfle has joined #ruby
kurt21 has joined #ruby
DaZ has quit [Read error: Connection reset by peer]
justinweiss has quit [Ping timeout: 240 seconds]
Moogly2012_ has quit [Quit: Moogly2012_]
brennanMKE has quit [Ping timeout: 245 seconds]
DaZ has joined #ruby
justinweiss has joined #ruby
raphaelivan has joined #ruby
end_guy has quit [Remote host closed the connection]
zarubin has joined #ruby
astrobunny has joined #ruby
carlyle has joined #ruby
mlpinit_ has joined #ruby
end_guy has joined #ruby
Xeago_ has joined #ruby
ShawnMcCool has quit [Quit: Konversation terminated!]
Jdubs has quit [Remote host closed the connection]
mlpinit_ has quit [Ping timeout: 240 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
Jdubs has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
Mars` has joined #ruby
tjad_ has joined #ruby
tjad has quit [Ping timeout: 264 seconds]
guns has quit [Read error: Operation timed out]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
raphaelivan has quit [Quit: Leaving.]
schaerli has joined #ruby
Jdubs has quit [Ping timeout: 246 seconds]
carlyle has quit [Ping timeout: 245 seconds]
threesome has quit [Ping timeout: 252 seconds]
michas has joined #ruby
lnormous has joined #ruby
rylev has joined #ruby
ewnd9_ has quit [Ping timeout: 240 seconds]
leynos has joined #ruby
<michas>
Hi, a while ago I used some ruby module which supplied a shell like DSL. What is the name of the module?
petey has joined #ruby
BraddPitt has quit [Read error: Connection reset by peer]
BraddPitt has joined #ruby
ukd1 has joined #ruby
petey has quit [Remote host closed the connection]
Moogly2012_ has joined #ruby
Seich has joined #ruby
drocsid has quit [Ping timeout: 240 seconds]
_bart has joined #ruby
petey has joined #ruby
pushpak has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
Elhu has joined #ruby
TheMoonMaster has joined #ruby
majjoha has joined #ruby
gmas has joined #ruby
majjoha has left #ruby [#ruby]
schaerli has quit [Remote host closed the connection]
bricker`1A has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
tomasso has quit [Ping timeout: 252 seconds]
petey has quit [Ping timeout: 245 seconds]
thehodapp has joined #ruby
rorra has quit [Quit: rorra]
n_blownapart has joined #ruby
frustrum has joined #ruby
frustrum has quit [Client Quit]
ShawnMcCool has joined #ruby
Moogly2012_ has quit [Read error: Connection reset by peer]
enebo has joined #ruby
ukd1 has quit [Ping timeout: 264 seconds]
rumours has joined #ruby
Kar- has joined #ruby
<ShawnMcCool>
I have this short class and it uses open() to pull down a payload from an api. What's the standard ruby approach to unit-testing behavior like this? I could make a class that exists only to abstract this functionality, but I have a feeling that you guys have a more clever way.
petey has joined #ruby
Mitchellvanw has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kracekumar has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Quit: Leaving.]
petey has quit [Ping timeout: 240 seconds]
petey has joined #ruby
brianpWins has joined #ruby
vasilakisFiL has joined #ruby
<vasilakisFiL>
hey I need some help here if anyone knows: I have built a website with widgets using shopify's dashing and I want to create some tests using capybara.. what I thought is to start throu rake in the background the website (dashing start) and then start the tests.
Jdubs has joined #ruby
n_blownapart has quit [Remote host closed the connection]
<vasilakisFiL>
the thing is how to start through rake a background system call ?
petey has quit [Ping timeout: 240 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
mercwith1mouth has quit [Ping timeout: 252 seconds]
drumsrgr8forn8 has joined #ruby
jrhe has joined #ruby
Jdubs has quit [Remote host closed the connection]
uokesita has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
Seich has joined #ruby
fijimunkii has joined #ruby
lukec has quit [Quit: lukec]
Jdubs has joined #ruby
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
Ahti333 has quit [Ping timeout: 246 seconds]
atSetKey has joined #ruby
Es0teric has joined #ruby
Ahti333 has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Stalkr^ has quit [Quit: Leaving...]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Read error: Operation timed out]
enebo has quit [Quit: enebo]
peterhu has quit [Ping timeout: 264 seconds]
ericmathison has joined #ruby
_bart has quit [Remote host closed the connection]
atSetKey has quit [Ping timeout: 252 seconds]
_bart has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
drocsid has joined #ruby
brennanMKE has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
sivoais has quit [Ping timeout: 268 seconds]
horofox has joined #ruby
_bart has quit [Ping timeout: 246 seconds]
Spami has quit [Quit: This computer has gone to sleep]
brennanMKE has quit [Ping timeout: 246 seconds]
rins has joined #ruby
mercwith1mouth has joined #ruby
michael_mbp is now known as zz_michael_mbp
Spami has joined #ruby
<vasilakisFiL>
actually does anyone know how I can run capybara with dashing ?
workmad3 has joined #ruby
goganchic has quit [Ping timeout: 252 seconds]
rins has quit [Ping timeout: 272 seconds]
thehodapp has quit [Quit: Leaving.]
thehodapp has joined #ruby
thehodapp has left #ruby [#ruby]
thehodapp has joined #ruby
leynos has joined #ruby
Scriptwriter has joined #ruby
gmas has quit [Ping timeout: 272 seconds]
<Scriptwriter>
join #apache
ace_striker_ has joined #ruby
mercwith1mouth has quit [Ping timeout: 246 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
thehodapp has quit [Client Quit]
agjacome has joined #ruby
mercwith1mouth has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
drumsrgr8forn8 has joined #ruby
Jdubs has quit [Remote host closed the connection]
frustrum has joined #ruby
brianpWins has quit [Quit: brianpWins]
enebo has joined #ruby
mlpinit has joined #ruby
Jdubs has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
mercwith1mouth has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
mlpinit has quit [Ping timeout: 272 seconds]
tatsuya_o has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
atSetKey_ has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
weems has quit [Ping timeout: 272 seconds]
decoponio has quit [Quit: Leaving...]
rubyracer has joined #ruby
Zolo has quit [Remote host closed the connection]
Zolo has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Adr1an00 has joined #ruby
Adr1an00 has quit [Client Quit]
Mars` has quit [Ping timeout: 252 seconds]
weems has joined #ruby
ZenGuy311 has quit [Ping timeout: 245 seconds]
peterhu has joined #ruby
rubyracer has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
<shevy>
damn
<shevy>
.count counts every occurance of a character?
<shevy>
"abcdefa".count 'ab' # => 3
<shevy>
I'd need it to count the full occurance... "ab" in this example :(
Mars` has quit [Remote host closed the connection]
<Jdubs>
hmmm
Mars` has joined #ruby
<Jdubs>
why not write a regex for it and count the matching groups?
fwmath has quit [Ping timeout: 272 seconds]
<Jdubs>
@shevy btw
<shevy>
yeah
<shevy>
is just not as beautiful
<shevy>
"one word is one word, never be three words".scan(/wo/).size # => 3
rylev has joined #ruby
Mars`_ has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
<CheckDate>
i think i am gonna read ruby and rails
<CheckDate>
anyone know of a good book
schaerli has quit [Ping timeout: 252 seconds]
<CheckDate>
i would use preprepared scripts mostly but being to manupilate thenm and debugg
<CheckDate>
is somethingi dlike to do
<Jdubs>
shevy, just monkey patch your own string.shevycount function :P
<shevy>
hehe
<shevy>
CheckDate I am wondering about that as well
Lewix has joined #ruby
<shevy>
reading most ruby on rails tutorials is soooo boring :(
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
mlpinit has joined #ruby
lukec has joined #ruby
nfk has joined #ruby
<Jdubs>
hmmm
<shevy>
atmosx wake up man... how are you coming along with your bio-things in rails?
<Jdubs>
CheckDate: check out "rails for zombies" on google
<kke>
is there some nice gem for running external programs? (like capturing exit codes, stdout/err, building parameters, defining maximum running time, ...)
arietis has joined #ruby
colonolGron has quit [Quit: leaving]
<CheckDate>
so ruby on its own is just a scriting language like python ?
relix has joined #ruby
<CheckDate>
byt ruby has bettr api develoment for wb applications than python ?
byprdct has joined #ruby
sivoais has joined #ruby
<kke>
hmm maybe cheetah
Elhu has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
<MrZYX>
CheckDate shevy I can recommend the "the rails way" series, not sure if there's a rails 4 version already though
frustrum has quit [Quit: WeeChat 0.4.1]
hidensoft has quit [Ping timeout: 265 seconds]
Stalkr^ has joined #ruby
cescalante is now known as ce_afk
Notte has joined #ruby
<shevy>
ok
<shevy>
CheckDate really, I think ruby and python are for the most part rather equivalent in where you use them
JohnBat26 has quit [Read error: Operation timed out]
rylev has quit [Ping timeout: 245 seconds]
<shevy>
python has more users and developers, ruby has the more elegant code (unless written by a monkey)
freerobby has quit [Quit: Leaving.]
<geggam_>
performance in ruby leave something to be desired
<CheckDate>
so i could find the same use when it comes to writting webaps with pythong or ruby
<CheckDate>
is what id like ti know
ce_afk is now known as cescalante
freerobby has joined #ruby
<CheckDate>
i cant do ,net..its to stupid for be ..java is to technical and a waste of time
volty has joined #ruby
<CheckDate>
PHP i heard is dead
<FMJaggy>
such sweeping statements
nouitfvf_ has quit [Read error: Connection reset by peer]
<geggam_>
CheckDate, use what you can code secure and functionally
<geggam_>
the rest is opinions..
<geggam_>
s/is/are
nouitfvf has joined #ruby
<CheckDate>
maybe ill stick with python then
peterhu has joined #ruby
<shevy>
CheckDate seems a valid decision
<CheckDate>
because i also want to write system programms and not just web development
lnormous has quit [Quit: Leaving]
<Jetchisel>
the next php will have a light webserver built in... so much for being dead :P
<geggam_>
chef is ruby... chef runs systems at scale
<FMJaggy>
for me it's less about the language and what the language gives access to, python has sqlalchemy/reportlab, ruby has rails/rubymotion, php natively is the simplest path to web content, etc...
<geggam_>
technically chef is erlang postgres and several other things
apeiros has joined #ruby
<workmad3>
geggam_: chef is written in ruby, but it makes use of components written in other languages for certain things
<workmad3>
geggam_: but those components are run as-is, no custom code :)
<workmad3>
geggam_: and it would be erlang (for rabbit), java (for solr), C/C++ (I think... for postgres) and ruby (for all the chef stuff) and C (for ohai) :)
peterhu has quit [Ping timeout: 240 seconds]
Jdubs_ has joined #ruby
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
poisonarms has quit [Quit: Computer has gone to sleep]
boxmein is now known as secondbox
secondbox is now known as boxmein
justsee has quit [Ping timeout: 240 seconds]
Seich has joined #ruby
<atmosx>
shevy: hey you here?
mercwith1mouth has quit [Ping timeout: 272 seconds]
kitak has quit [Read error: Connection reset by peer]
Mitchellvanw has quit [Quit: Dozing off...]
kitak has joined #ruby
<shevy>
atmosx kinda, bit sleepy already though
sniffingcats has quit [Quit: Til rivido Idisti!]
<atmosx>
shevy: Nothing new actually (yet). I will begin from next week though, I'm studying a new HTML & CSS book to fix a bit the outcome of my projects. I'm thinking of using sinatra instead of rails for that project as I need only an admin panel a database etc.
<atmosx>
shevy: okay then, we'll talk tomorrow or whenever I'm online :-P My girlfriend is gonna stay with me till Christmass, so I'm overly happy but rarely on IRC :-P (or sitting on the macbook anyway)
zevs04 has quit [Quit: leaving]
<atmosx>
shevy: are you gonna do some related project?
zevs04 has joined #ruby
<shevy>
atmosx not sure yet but someone in reallife asked whether I could do something related to a webshop
zevs04 has quit [Client Quit]
<atmosx>
shevy: The hardeste part is the checkout process.
<shevy>
so that's one reason why I dig into rails
<atmosx>
shevy: why don't you costumize Spree?
<shevy>
Spree?
<atmosx>
Yes it's an e-commerce pacakge for rails/ruby developers
<atmosx>
and there's a new payment framwork with ready-to-roll library that everybody is going crazy about lately... so you're all set.
<atmosx>
If you have time and hacking-mood I'd say go with padrino, but then you have to write almost everything, whiel spree needs only customization.
<jrobeson>
i wouldn't recommend starting ecommerce system from scratch unless you need only the most minimal features
<shevy>
right now this is all over the top of my head :D
<atmosx>
jrobeson: shevy knows ruby very well though, it's not the *avg* guy that will jump into rails
<atmosx>
shevy: rails is a set of keywords and that's about it.
sam113101 is now known as sam113101_afk
<jrobeson>
it's not about rails.. it's about ecommerce systems atmosx
<jrobeson>
i've never in fact done one in ruby.. only in other languages. and i don't think ruby would really help with the hard parts :)
<atmosx>
shevy: rails is *easy* if you spent time, Micheal Heart's tutorial is awesome. It's just boring to death but awesome.
<shevy>
hehehe
<atmosx>
jrobeson: on an eshop?
<atmosx>
jrobeson: or generally speaking?
<shevy>
boring to death but awesome... how can this combination be :D
<atmosx>
shevy: awesome because is clear, boring to death becuase tries to explain what classes are, constants, instances, objects etc. It's for total newbies.
<atmosx>
how helpers work etc. Helpers = files that contain modules or classes you load and use.
<jrobeson>
ecommerce generally is hard since there is a much huger incentive to make sure it's as correct as you can get
<jrobeson>
if you accidentally charge people extra money.. it's a big deal
<atmosx>
jrobeson: And what are the hard parts?
<atmosx>
programming-wise
<jrobeson>
when dealing with money .. people aren't as forgiving as say a twitter crash
<jrobeson>
workflow and security
<jrobeson>
order management, payment management
<jrobeson>
taxes
<shevy>
hehe
<jrobeson>
secure coupons..
cody-- has joined #ruby
<jrobeson>
it's hard for ecommerce because you really really have to make it easy for the customers to use.. so you get good conversion.. however.. that is certainly not in line with the best security practices when dealing with such important data
<jrobeson>
so you really really really have to think hard about the compromises
<jrobeson>
if you've dealt with things like hipaa, and sox .. then perhaps it is no problem for you.. but most people don't have to deal with those things
Ahti333 has quit [Read error: Operation timed out]
<atmosx>
jrobeson: how much do you charge for a small eshop?
Ahti333 has joined #ruby
butblack has joined #ruby
cody-- has quit [Client Quit]
maz-dev has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
i8igmac has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
CheckDate has quit []
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
i8igmac has joined #ruby
zevs04 has joined #ruby
pwh_ has joined #ruby
Newbcake has joined #ruby
fwmath has quit [Ping timeout: 246 seconds]
horofox has quit [Quit: Leaving.]
kirun has quit [Quit: Client exiting]
pwh_ has quit [Client Quit]
timonv has quit [Ping timeout: 246 seconds]
NealJ has quit [Ping timeout: 245 seconds]
ShawnMcCool has quit [Quit: Konversation terminated!]
pwh has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
tjad_ has quit [Ping timeout: 240 seconds]
jhn has joined #ruby
apeiros has joined #ruby
freerobby has quit [Quit: Leaving.]
sam113101_afk is now known as sam113101
polaco is now known as polaco_zZz
NealJ has joined #ruby
<jrobeson>
atmosx, too laughably little to mention.. let's just say there was a business conflict :(
Newbcake has quit [Ping timeout: 246 seconds]
<atmosx>
jrobeson: okay
ce_afk is now known as cescalante
zevs04 has quit [Quit: leaving]
jrhe has quit [Quit: jrhe]
astrobunny has quit [Ping timeout: 272 seconds]
justsee has joined #ruby
zevs04 has joined #ruby
mmm has quit [Remote host closed the connection]
mmm has joined #ruby
Lewix has quit [Remote host closed the connection]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
<sedeki>
i fucked up my ruby installation on my macbook air. $ ruby: <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
<sedeki>
$ gem: /usr/bin/gem:8:in `require': no such file to load -- rubygems (LoadError)
cescalante is now known as ce_afk
<atmosx>
sedeki: how did you install ruby on the macbook air?
<sedeki>
it was installed
<sedeki>
i think
<sedeki>
no
horofox has joined #ruby
<sedeki>
i downloaded the tarball
horofox has quit [Client Quit]
<atmosx>
sedeki: and you install it without defining a path?
<sedeki>
right
<atmosx>
paste the result of 'which ruby'
<atmosx>
and 'which gem'
<sedeki>
./usr/local/bin/ruby
<sedeki>
./usr/bin/gem
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
(a larval zebrafish actually, not an adult fish)
NealJ has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
petey has quit [Ping timeout: 245 seconds]
Ox6abe has joined #ruby
dzhulk has quit [Quit: Leaving.]
Newbcake has quit [Ping timeout: 245 seconds]
mercwith1mouth has joined #ruby
habstinat has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
TheNotary has joined #ruby
airdisa has joined #ruby
uokesita has joined #ruby
<TheNotary>
I have a hex dump of a zip file as a string https://gist.github.com/anonymous/6955935 possibly that's a 'byte array'? How can I write those bytes to a file to recreate the zip file from code?
Jetchisel has joined #ruby
dangerousdave has quit [Ping timeout: 272 seconds]
Xaitec has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
zz_tsykoduk is now known as tsykoduk
<bnagy>
>> "00 0b".split.map {|s| s.to_i(i6).chr}
<eval-in>
bnagy => undefined local variable or method `i6' for main:Object (NameError) ... (https://eval.in/54224)
<TheNotary>
I'm trying to just jam a .zip file into one of my unit tests so it can be written to /tmp on the file and tested upon with out me having to add more clunky files to the gem's file structure
sedeki has quit [Quit: Computer has gone to sleep.]
predator217 has joined #ruby
kayloos has joined #ruby
kayloos has quit [Remote host closed the connection]
astrobunny has joined #ruby
kayloos has joined #ruby
<bnagy>
TheNotary: try joining that array before you write it
kevinykchan has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
kevinykchan has quit [Client Quit]
astrobun_ has joined #ruby
sedeki has joined #ruby
<TheNotary>
bnagy: Perfect, ty!
sedeki has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
astrobunny has quit [Ping timeout: 272 seconds]
alexju has joined #ruby
pwh has joined #ruby
jrhe has joined #ruby
havenwood has quit [Remote host closed the connection]
randomnick_ has quit [Quit: Leaving]
butblack has joined #ruby
butblack has quit [Client Quit]
zachrab has quit [Read error: Connection reset by peer]
AlSquire has quit [Quit: This computer has gone to sleep]
astrobun_ has quit [Ping timeout: 246 seconds]
zachrab has joined #ruby
nfk has quit [Quit: yawn]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
astrobunny has joined #ruby
scottstamp has joined #ruby
johnmilton has quit [Remote host closed the connection]