<havenwood>
Sxcd6: You could save it locally and run `ruby trust.rb` or run `irb` and paste it.
<havenwood>
Sxcd6: It'd work but I imagine you might get the same SSL error.
SCHAAP137 has quit [Ping timeout: 244 seconds]
<Sxcd6>
run 'ruby trust.rb' from the command prompt?
dnicole has quit [Ping timeout: 260 seconds]
<havenwood>
Sxcd6: You could download it and copy it there yourself instead of using the script. Sec, let me find the gist.
<havenwood>
Sxcd6: or type `irb` from the command line and try pasting the gist contents
<Sxcd6>
thanks for your help I'm lost
griffindy has quit [Read error: Connection reset by peer]
nadir has joined #ruby
<havenwood>
Sxcd6: That gist I wrote above was an attempt to copy the right file to the right place, but I think you might get the same SSL error preventing you from using Ruby to download it. Maybe give it a try? Does it work?
<havenwood>
Sxcd6: It's more likely to work and fancy to boot.
rakm has left #ruby [#ruby]
<havenwood>
albeit beta
gusrub has quit [Remote host closed the connection]
h1fuelcell has quit [Remote host closed the connection]
<Sxcd6>
I'm using notepad+ and have it set to EOL for unix
ace05 has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
Channel6 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sxcd6>
I think I made an error saving the file from notepad+, saved as a text file not .perm. Still getting the error openssl::x509
Rodya_ has quit [Ping timeout: 256 seconds]
<Sxcd6>
Can I uninstall ruby from the control panel and start over?
jottr_ has joined #ruby
Jameser has joined #ruby
gusrub has joined #ruby
solocshaw has joined #ruby
jottr_ has quit [Client Quit]
Salve has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
minimalism has joined #ruby
gusrub has quit [Ping timeout: 276 seconds]
<Sxcd6>
reinstalled Ruby and told it to associate .rb files. Then saved the pem file and ran the rubygem setup.rb file. Ran gem install ... and got the msg 1 gem installed
Salve has quit [Ping timeout: 256 seconds]
Madplatypus has joined #ruby
TreyG has joined #ruby
Rodya_ has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
TreyG_ has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
blackwind_123 has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
Snowy has quit [Remote host closed the connection]
User458764 has joined #ruby
Snowy has joined #ruby
claudiuinberlin has joined #ruby
SesMan has joined #ruby
phredus has quit [Read error: Connection reset by peer]
Salve has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
phredus has joined #ruby
meshsmith has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
xall_ has joined #ruby
aries_liuxueyang has joined #ruby
xall has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
aupadhye has joined #ruby
pawnbox has joined #ruby
rajdesai has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
jaiks has joined #ruby
aries_liuxueyang has joined #ruby
jenrzzz has joined #ruby
latpaw has joined #ruby
zacstewart has joined #ruby
_sfiguser has quit [Ping timeout: 245 seconds]
xall has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
<irisseries>
quick questions?is there editors people use to keep code kinda neat or do most just use texteditors
Snowy has quit [Remote host closed the connection]
<_ht>
irisseries: I use vim, which seems to understand Ruby quite fine
Snowy has joined #ruby
teledyn has joined #ruby
Silthias1 has joined #ruby
<teledyn>
anyone familiar with textbook "Starting out with Java" by Gaddis? I'm looking for a similar textbook in Ruby. have some familiarity with programming
<teledyn>
have already studied php, python, and java
Silthias has quit [Ping timeout: 245 seconds]
<teledyn>
so would like a good reference text that has for example chapter on strings, one on arrays, one on classes, etc.
palms has joined #ruby
ace05 has quit [Ping timeout: 245 seconds]
rajdesai has quit [Read error: Connection reset by peer]
mluts has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
Dimik has quit [Ping timeout: 244 seconds]
allomov has quit [Remote host closed the connection]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 250 seconds]
rajdesai has joined #ruby
Chair has joined #ruby
habitullence has joined #ruby
palms has quit [Ping timeout: 260 seconds]
bturker has quit [Ping timeout: 256 seconds]
_sfiguser has joined #ruby
rajdesai has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
Burgestrand has joined #ruby
habitullence_ has joined #ruby
habitullence has quit [Ping timeout: 256 seconds]
habitullence_ is now known as habitullence
aries_liuxueyang has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
joast has quit [Ping timeout: 250 seconds]
Salve has joined #ruby
djbkd has quit [Remote host closed the connection]
mvxlr has joined #ruby
zmo_ has quit [Changing host]
zmo_ has joined #ruby
zmo_ is now known as zmo
Salve has quit [Ping timeout: 245 seconds]
aries_liuxueyang has joined #ruby
Guest10530 is now known as CrazEd
CrazEd is now known as Guest74985
marens has joined #ruby
harai has quit [Ping timeout: 250 seconds]
aries_liuxueyang has quit [Ping timeout: 244 seconds]
zacstewart has quit [Ping timeout: 260 seconds]
jsrn_ has joined #ruby
xall_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
jaguarmagenta has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
kloeri_ is now known as kloeri
nettoweb has joined #ruby
allomov has joined #ruby
<xall_>
teledyn: idk about that book, though i've been reading Eloquent Ruby and recommend it. it's really brief
ruby-lang505 has joined #ruby
<xall_>
if you understand concepts, it's a good way to see how Ruby does things
nankyokusei has joined #ruby
marr has joined #ruby
roamingdog has joined #ruby
vuoto has joined #ruby
Snowy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<ruby-lang505>
Hello i transfer app from one server to another ,everyting is working exept when open admin panel give me error :undefined method `read' for #<String:0x7f0159dcc9e8> ....sorry i'm noob in ruby.
salut has joined #ruby
Beams has joined #ruby
Pupeno has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
joconcepts has joined #ruby
roamingdog has quit [Ping timeout: 265 seconds]
<xall_>
ruby-lang505: nobody can help without a gist. that error means you're calling read on an object that doesn't have read defined
joconcep- has joined #ruby
joconcep- has quit [Client Quit]
joconcepts_ has quit [Ping timeout: 260 seconds]
auxbuss has joined #ruby
auxbuss has quit [Client Quit]
ben__ has joined #ruby
symm- has quit [Quit: Leaving...]
joconcepts has quit [Ping timeout: 250 seconds]
allomov has quit [Remote host closed the connection]
allomov has joined #ruby
ben__ has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
xall_ has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
xall_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
llaine has joined #ruby
flying has joined #ruby
ziarkaen has joined #ruby
yardenbar has joined #ruby
sagax has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
Salve has joined #ruby
yardenbar has quit [Max SendQ exceeded]
yardenbar has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
agent_white has quit [Write error: Connection reset by peer]
agent_white has joined #ruby
hutch34 has joined #ruby
pandaant has joined #ruby
Salve has quit [Ping timeout: 252 seconds]
borodin has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
KnownSyntax has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
allomov has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
xall_ has quit [Ping timeout: 245 seconds]
xall_ has joined #ruby
tvw has joined #ruby
troulouliou_div2 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
xall has joined #ruby
ziarkaen_ has joined #ruby
lenwood has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
astrobunny has quit []
Pupeno has quit [Quit: Leaving...]
Guest74985 is now known as CrazEd
vqrs has quit [Ping timeout: 250 seconds]
CrazEd is now known as Guest29164
aries_liuxueyang has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Quit: WeeChat 1.5]
astrobunny has joined #ruby
Pupeno has joined #ruby
SCHAAP137 has joined #ruby
Burgestrand has joined #ruby
vqrs has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Client Quit]
sylario has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
ziarkaen has quit [Disconnected by services]
ziarkaen_ has quit [Quit: leaving]
ziarkaen has joined #ruby
face has quit [Disconnected by services]
aries_liuxueyang has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Salve has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aries_liuxueyang has joined #ruby
Salve has quit [Ping timeout: 260 seconds]
ben__ has joined #ruby
Jameser_ has quit [Ping timeout: 250 seconds]
jaruga___ has joined #ruby
RobertBirnie has joined #ruby
lenwood has joined #ruby
ben__ has quit [Ping timeout: 256 seconds]
meshsmith has joined #ruby
pawnbox has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 250 seconds]
meshsmith has quit [Remote host closed the connection]
zacstewart has joined #ruby
palms has joined #ruby
ace05 has joined #ruby
pawnbox has joined #ruby
xall_ has joined #ruby
Cohedrin has joined #ruby
xall has quit [Ping timeout: 250 seconds]
ace05 has quit [Ping timeout: 244 seconds]
phredus has quit [Read error: Connection reset by peer]
phredus has joined #ruby
Kero has left #ruby [#ruby]
Kero has joined #ruby
nettoweb1 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
ebbflowgo has joined #ruby
mvxlr has joined #ruby
ebbflowgo has quit [Ping timeout: 256 seconds]
latpaw has quit [Ping timeout: 260 seconds]
trifling-jest has joined #ruby
trifling-jest has quit [Client Quit]
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
yardenbar has joined #ruby
Salve has joined #ruby
bturker has joined #ruby
Guest29164 is now known as CrazEd
brendan- has joined #ruby
CrazEd is now known as Guest91557
Beams_ has joined #ruby
Beams has quit [Remote host closed the connection]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 250 seconds]
astrobunny has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 276 seconds]
troulouliou_div2 has quit [Quit: Leaving]
astrobunny has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
coffeebeanzz has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aidalgol has quit [Remote host closed the connection]
Robtop__ has quit [Read error: Connection reset by peer]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
zacstewart has quit [Ping timeout: 250 seconds]
yardenbar has joined #ruby
pwnd_nsfw has joined #ruby
aries_liuxueyang has joined #ruby
addisaden has joined #ruby
nankyokusei has joined #ruby
JeanCarloMachado has joined #ruby
latpaw has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
FastJack_ has quit [Quit: leaving]
coffeebeanzz has quit [Quit: Leaving]
spt0 has joined #ruby
TheWhip has joined #ruby
Hyuk has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tlaxkit has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
mvxlr has joined #ruby
dionysus69 has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
ace05 has joined #ruby
hutch34 has joined #ruby
vuoto has quit [Remote host closed the connection]
zacstewart has joined #ruby
Salve has joined #ruby
ace05 has quit [Ping timeout: 252 seconds]
palms has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
Salve has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
Guest91557 is now known as CrazEd
CrazEd is now known as Guest51480
jenrzzz has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
sdothum has joined #ruby
johnmilton has quit [Remote host closed the connection]
brendan- has joined #ruby
gingray has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Immune_ has quit [Ping timeout: 260 seconds]
fergal has joined #ruby
<teledyn>
xall i guess you're not here but thanks for the reference
mvxlr has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby
<fergal>
is there a way to find out how many projects use a certain gem?
<MoocherDK>
Hey all.. I've been looking around. Is there a way to "natively" skip a rake task? I have a build task, that depends on some files. If I call the build task it still runs - even if the files haven't changed.... A workaround is having a dummy file that depends on the build file.. and do the build in that task.. And the Build command only depend on that... But that seems very wrong..
ace05 has quit [Ping timeout: 250 seconds]
<MoocherDK>
.. The build itself does not produce a file itself.. So I cant use that as a dependency
tk__ has joined #ruby
<dminuoso_>
MoocherDK: How about you put the code into a method, test the condition and call the implementation if the test succeeds?
JeanCarloMachado has quit [Ping timeout: 250 seconds]
<MoocherDK>
dminuoso_: I'vw thought about that too.. But it "feels" wrong.. For files it's all in the denpendency part. This seems to take the whole dependency into the methods.
<MoocherDK>
My "best" guess is having a dependecy, that tells me if I should be skipped. But I can't seem to find a nice way of doing this
<MoocherDK>
My build is docker images. And there is no reason to run the build if the dockerfile hasn't changed. And no reason to push to the server, if there was no changes to the image
nankyokusei has joined #ruby
TheWhip has quit []
gingray has joined #ruby
<lupine>
MoocherDK: one option frequently used in makefiles is a stamp file
<lupine>
MoocherDK: one option frequently used in makefiles is a stamp file
<MoocherDK>
lupine: Yeah, thats where I am now. That build depends on the stampfile.. and it is the stampfile task that handles the build.. But it just feels so wrong
<lupine>
whoops
sparch has joined #ruby
latpaw has quit [Ping timeout: 256 seconds]
<lupine>
MoocherDK: you need somewhere to store the state. if you're not writing any files at all, where else can it go?
brendan- has joined #ruby
sepp2k has joined #ruby
tyang has joined #ruby
catphish has joined #ruby
roamingdog has joined #ruby
Guest51480 is now known as CrazEd
Pupeno has quit [Remote host closed the connection]
CrazEd is now known as Guest13113
Salve has joined #ruby
postmodern has quit [Remote host closed the connection]
bw_ has quit [Quit: Changing server]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<MoocherDK>
lupine: I guess you are right... The I keep the stamp files
sonne_ has joined #ruby
sonne has quit [Read error: Connection reset by peer]
Jameser has joined #ruby
vondruch has left #ruby [#ruby]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
emilkarl has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
JeanCarloMachado has joined #ruby
emilkarl has joined #ruby
vondruch_ has joined #ruby
ben__ has joined #ruby
halfdan has quit [Quit: Connection closed for inactivity]
<apeiros>
jokke: if I'd get a penny for every "but I'm not using rails", where it is utterly irrelevant that you're just using a part of the rails project…
ace05 has joined #ruby
hutch34 has joined #ruby
alibby has joined #ruby
Jameser has quit [Max SendQ exceeded]
Derperperd has quit [Quit: Derperperd]
Jameser has joined #ruby
chouhoulis has joined #ruby
brendan- has joined #ruby
spt0 has quit [Ping timeout: 256 seconds]
jaiks has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 252 seconds]
ace05 has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<linduxed>
so to get a list of all "tails" of a list, i do the following:
cdg has joined #ruby
ziarkaen has joined #ruby
<dminuoso_>
ary.map(&:last)
chouhoulis has joined #ruby
<dminuoso_>
Seeing as you are still typing your solution must be convoluted.
<dminuoso_>
Technodrome: That's sad. In reality everytime you do something like "def self.foo" or "class << self" you are interacting with singleton classes.
<Technodrome>
dminuoso_ the wording used to describe it seems to be, Object specific classes
Rodya_ has joined #ruby
<ljarvis>
*wonders if anyone can tell*
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
ebbflowgo has joined #ruby
jaiks has quit [Ping timeout: 245 seconds]
<dminuoso_>
ljarvis: I can.
<ljarvis>
sshh
<dminuoso_>
:P
<Technodrome>
dminuoso_ even I am a bit iffy on this topic, i always thought they were for creating methods to a specific instance more or less, how they work with Classes to create class methods, kinda confuses me
<dminuoso_>
Technodrome: Technically there is non such thing as "class methods"
<Technodrome>
just methods specific to the Class object's defined singleton?
<dminuoso_>
Technodrome: Precisely.
<Technodrome>
thank you, completely cleared up
<Technodrome>
lol
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Technodrome>
i keep forgetting a class is "just an object" too
Ropeney has joined #ruby
<dminuoso_>
Technodrome: Yeah, and as such that object has a singleton class. :)
MoocherDK has quit [Ping timeout: 260 seconds]
Ropeney has quit [Read error: Connection reset by peer]
<Technodrome>
dminuoso_ i think all the articles explaining it, and being like , you can use eigenclasses for "class methods" as well , made my mind go, is there something special going on with class << self in a class rather than an instance?
lxsameer has quit [Quit: WeeChat 1.5]
<dminuoso_>
Technodrome: class << self opens the singleton class of self.
<dminuoso_>
Technodrome: You could also do: class << obj; stuff; end.
<Technodrome>
then again, i guess they are just trying to say , "this is how you create a class method like concept in other languages "
<Technodrome>
dminuoso_ self in this case, being the class
<ruby[bot]>
dminuoso_: # => /tmp/execpad-d80748e8bb27/source-d80748e8bb27:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/666082)
<Technodrome>
look how small the pickaxe section is
Guest13113 is now known as CrazEd
<dminuoso_>
Technodrome: The real notion of "instance methods" and "class methods" is just related to how method lookup works in Ruby.
CrazEd is now known as Guest52647
<dminuoso_>
Though technically they are the same - just with different receivers.
Asher has joined #ruby
<dminuoso_>
Technodrome: If you want you can skip the lexing/parsing introductions and hop right into the VM in the book.
spt0 has joined #ruby
tubbo has quit [Ping timeout: 245 seconds]
<dminuoso_>
Technodrome: After covering that book, you will also suddenly understand how and why modules work.
frankiee_ has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaiks has joined #ruby
p1k has quit [Quit: WeeChat 1.5]
brendan- has joined #ruby
p1k has joined #ruby
<sparch>
dminuoso, VM stands for what?
<sparch>
^ dminuoso_
<dminuoso_>
sparch: virtual machine
DLSteve has joined #ruby
<sparch>
dminuoso_, the book you talking is the same Technodrome said?
<dminuoso_>
sparch: We were talking about the book called "Ruby Under a Microscope"
<sparch>
nice
<sparch>
thanks!
Silthias has joined #ruby
tubbo has joined #ruby
Silthias1 has quit [Ping timeout: 250 seconds]
tonini has quit [Quit: Connection closed for inactivity]
jackjackdripper1 has joined #ruby
Burgestrand has joined #ruby
<Technodrome>
i'm going to start reading it here soon dminuoso_ , no work for a few days
pawnbox has quit [Remote host closed the connection]
<Technodrome>
its amazing, you can use ruby without really understanding some of these concepts, kinda like how smalltalk was
<Technodrome>
so many people used it without really knowing what the VM was doing
griffindy has joined #ruby
jackjackdripper has quit [Ping timeout: 256 seconds]
<dminuoso_>
Technodrome: That book led me on a road that ended up in me hacking in Ruby, then writing my own language - and then writing my own kernel. I love it.
<Technodrome>
something tells me what modules when included in a class, do something similar as a singleton class
<dminuoso_>
No.
griffindy has quit [Client Quit]
ta_ has quit [Remote host closed the connection]
<Technodrome>
its just a guess :)
<dminuoso_>
Only classes can have methods.
<dminuoso_>
That kind of means a module must be a class too.
saslam has joined #ruby
<Technodrome>
but when you include it, doesn't it sorta just stick like a "hidden anonymous class" on top of the inheritance chain?
<dminuoso_>
Not ontop!
<dminuoso_>
It directly inserts the class into the inheritance chain.
<frankiee_>
When do I fire a remote Ruby developer?
<Technodrome>
or maybe i meant the bottom, top would be Object here right?
nankyokusei has joined #ruby
<frankiee_>
It's like we make a deal, he's gonna work so and so for this and this price. He does a little bit of work and then disappears for months and ignore my emails.
<dminuoso_>
frankiee_: I try to not fire people before 10.
aupadhye has quit [Ping timeout: 244 seconds]
<frankiee_>
On social media I see he's active with his own side projects. A lot of them using a lot of the same designs and libraries I use.
<Technodrome>
dminuoso_ what has more precedence , a class method defined in a module then included , or the singleton class of that class?
<frankiee_>
dminuoso_: lol
<dminuoso_>
Technodrome: Now you're talking. ;-)
<dminuoso_>
>> module M; end; class A; include M; end; puts A.ancestors
<Technodrome>
i mean, you'll never see a singleton object class when looking at ancestors etc
<dminuoso_>
right
<Technodrome>
its already assumed it has one
<Technodrome>
(which i guess every object does) hehe
<dminuoso_>
Yes.
<dminuoso_>
Almost.
griffindy has quit [Ping timeout: 276 seconds]
palms has joined #ruby
<Technodrome>
now will prepend in a module with a class method, override the class method on A's eigenclass?
<Technodrome>
err hide i should say
<dminuoso_>
15:50 < dminuoso_> Technodrome: obj.method does obj.singleton_class > obj.ancestors
<dminuoso_>
if the method is not in objects singleton class, it will check its classes ancestors.
<dminuoso_>
so more correctly:
mim1k|work has joined #ruby
<dminuoso_>
obj.method looks up in obj.singleton_class, and then in obj.class.ancestors
<Technodrome>
but that prepend thing, put M before A
pandaant has quit [Remote host closed the connection]
<Technodrome>
almost like it was skipping the whole A lookup chain by looking at M first
<dminuoso_>
Technodrome: still, the singelton class is always checked first.
<Technodrome>
of A right?
<Technodrome>
not M
<dminuoso_>
No, the object.
<dminuoso_>
the receiver
<dminuoso_>
whatever that may be
<Technodrome>
in this case A
<dminuoso_>
In which case?
<dminuoso_>
a = A.new; a.method #=> then no!
<dminuoso_>
A.method #=> then yes.
<Technodrome>
yes A.method, class method
<dminuoso_>
Precisely.
<Technodrome>
so the eigenclass "class method" will override anything
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Technodrome>
on that object
<dminuoso_>
Technodrome: And I lied too btw, becuase in reality things are more complicated.
<Technodrome>
you lied? :( lol
<dminuoso_>
15:54 < dminuoso_> so more correctly:
<dminuoso_>
Yes.
User458764 has joined #ruby
wugy has quit []
<dminuoso_>
Technodrome: But honestly this takes diagrams to explain.
<Technodrome>
but that book will help me right?
<dminuoso_>
Absolutely.
<Technodrome>
i'll try to crush out alot tonight, taking my time
<Technodrome>
this is probably one of the more complex areas of ruby, even people at work doing rails for 5 years+ , "eigenclass" what?
<dminuoso_>
Technodrome: The issue is that the reality requires differentiating between ruby classes which are objects, and RClass (which has the actual methods)
<dminuoso_>
Technodrome: Also note the hint that singleton classes are only created on demand - but thats technically just an optimization detail.
rajdesai has quit [Read error: Connection reset by peer]
dviola has joined #ruby
<Technodrome>
is self really a method call here? what is it ?
rajdesai has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
rajdesai has quit [Read error: Connection reset by peer]
<Technodrome>
is the empty class with self, returning self? I thought it would just throw it away
<dminuoso_>
self is special.
jaiks has joined #ruby
ChiefAlexander has joined #ruby
<dminuoso_>
Technodrome: It's a keyword in fact.
rajdesai has joined #ruby
<dminuoso_>
>> self = 1
<ruby[bot]>
dminuoso_: # => /tmp/execpad-b129a1260b77/source-b129a1260b77:2: Can't change the value of self ...check link for more (https://eval.in/666109)
<dminuoso_>
Uh bad example.
rajdesai has quit [Read error: Connection reset by peer]
pragmaticus has joined #ruby
Hyuk has joined #ruby
<Technodrome>
but when its in the class, what is actually happening? is it returning self ?
<dminuoso_>
inside a class self is the class *object* itself
<Technodrome>
when you call eigenclass now, are you just getting the value of self back?
rajdesai has joined #ruby
<Technodrome>
I see
ace05 has quit [Ping timeout: 245 seconds]
<dminuoso_>
inside a method self is the *object* of the class being defined on itself
<Technodrome>
so in this case, anytime you call that, you are going to get back the object callers eigenclass ?
ziarkaen has quit [Ping timeout: 250 seconds]
<dminuoso_>
call what?
jphase has quit [Ping timeout: 265 seconds]
<Technodrome>
inside a method self is the *object* of the class being defined on itself
<Technodrome>
I don't quite get that
<dminuoso_>
methods belong to classes, classes can have instances
lenwood has joined #ruby
<dminuoso_>
inside a method "self" refers to the instance of the class its being defined on.
<dminuoso_>
so class Foo; def method; self; end; end returns the object instance itself
<Technodrome>
yes not the class
<Technodrome>
but outside of the method definition, its the class right?
<dminuoso_>
outside the method definition WHERE?
<dminuoso_>
This is a very important question, because ruby change the meaning of "self" depending on where you are.
<Technodrome>
just like that example, the only thing in the class definition
<dminuoso_>
inside a class definition? then its the class object itself.
<Technodrome>
yes, not the instance
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso_>
>> module M; class C; include M; end; C.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<ruby[bot]>
dminuoso_: # => /tmp/execpad-abb546a9c420/source-abb546a9c420:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/666120)
<dminuoso_>
>> module M; end; class C; include M; end; C.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<Technodrome>
I still don't get it though, i can put self in a class, and thats the only thing, i thought ruby would just "throw away self" , but in that example its changing something
<dminuoso_>
>> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; C.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<ruby[bot]>
dminuoso_: # => uninitialized constant C (NameError) ...check link for more (https://eval.in/666129)
<dminuoso_>
>> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; Derived.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<dminuoso_>
Bah I hit the rate limit.
Blueby has quit [Ping timeout: 250 seconds]
rajdesai has quit [Ping timeout: 256 seconds]
<Technodrome>
that was going to be a good one
<Technodrome>
i guess my main question on that was class <<self; self; end;
<Technodrome>
is that returning self?
jaiks has quit [Ping timeout: 256 seconds]
<Technodrome>
i didn't know classes could "return" so to speak
Blueby has joined #ruby
<dminuoso_>
Technodrome: A class definition is also an expression, and the return value is the last expression inside the class definition.
<Technodrome>
i had no idea
<Technodrome>
i thought the interpreter would just throw it away
<dminuoso_>
>> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; Derived.new.singleton_class.ancestors.inspect
<dminuoso_>
>> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; Derived.singleton_class.ancestors.inspect
<ruby[bot]>
dminuoso_: # => "[#<Class:Derived>, #<Class:Base>, #<Class:Object>, #<Class:BasicObject>, Class, Module, Object, Ker ...check link for more (https://eval.in/666141)
<dminuoso_>
Technodrome: So as you can see, Ruby makes some slight distinction based on whether the receiver is a class or not.
<dminuoso_>
This is done to implement 'inheritance of "class methods"'
pawnbox has joined #ruby
<dminuoso_>
And this is what I meant with lying.
harfangk has joined #ruby
andikr has quit [Remote host closed the connection]
shinnya has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<Technodrome>
I see, can you explain that last example a bit
<dminuoso_>
Technodrome: No, as every time I would have to leave out certain details and admit I was lying again.
<dminuoso_>
Read the book. ;-)
<Technodrome>
in that last thing, it seems like the singleton class has the superclass of Derived in its inheritance
agent_white has quit [Read error: Connection reset by peer]
<Technodrome>
is that what you meant for class methods
<Technodrome>
(i know , i am, I am just being impatiant)
<dminuoso_>
&ri method_lookup_chain
<_derpy>
No results
<dminuoso_>
mm okay this SO answer sucks
<dminuoso_>
Im trying to look for something useful
<dminuoso_>
Read the book.
<dminuoso_>
Once you figure out the thing with RObject and RClass things become easy to explain.
<Technodrome>
i'll read, hopefully i won't have more questions than answers , i hope its solid
elementaru has joined #ruby
<dminuoso_>
Technodrome: It's 100% correct - though its very compact.
bigkevmcd has quit [Quit: Outta here...]
<Technodrome>
there isn't "too much" on this on google
<Technodrome>
makes me wonder how many people really have these concepts mastered
<dminuoso_>
Technodrome: Also note that the code excerpt do not match current Ruby any more - but conceptually its all the same still.
jphase has joined #ruby
agent_white has joined #ruby
jphase has quit [Changing host]
jphase has joined #ruby
agent_white has joined #ruby
agent_white has quit [Changing host]
<dminuoso_>
so if you happen to take ruby source code while reading it, pick 2.1 I think they used - or just accept the fact that there's going to be some minor differences
bruseleno has joined #ruby
roamingdog has quit [Remote host closed the connection]
tk__ has quit [Quit: ばいばい]
roamingdog has joined #ruby
failshell has joined #ruby
jaiks has joined #ruby
ben__ has quit [Remote host closed the connection]
Filiphe has joined #ruby
Pupeno has joined #ruby
Guest52647 is now known as CrazEd
bigkevmcd has joined #ruby
<Technodrome>
dminuoso_ have they just optimized it or something?
CrazEd is now known as Guest44913
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben__ has joined #ruby
<Technodrome>
ruby is a great language, you can be quite productive even with limited knowledge, it was never like that with my last C job
<dminuoso_>
Technodrome: some refactorings
bruseleno has quit [Quit: Page closed]
<Technodrome>
that might be one of the only ruby books to cover this topic in depth
<dminuoso_>
after that book you can easily dive into the source code yourself
hutch34 has quit [Ping timeout: 260 seconds]
pokalyis has joined #ruby
Jameser has joined #ruby
Xeago has joined #ruby
hutch34 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
conta has quit [Remote host closed the connection]
fergal_ has joined #ruby
fergal_ has quit [Client Quit]
tildes has quit [Ping timeout: 256 seconds]
Pupeno has quit [Ping timeout: 250 seconds]
<Technodrome>
dminuoso_ i hope so, my C is getting a bit rusty these days, but i just would like to understand it more than do anything
bob434 has quit [Quit: This computer has gone to sleep]
Blueby has quit [Ping timeout: 245 seconds]
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
kyle__ has quit [Remote host closed the connection]
kyle has joined #ruby
bob434 has joined #ruby
kyle is now known as Guest92915
Blueby has joined #ruby
<Technodrome>
dminuoso fun fact, if you notice most ruby books, it seems like singletons / class methods etc is the last page of the book in many cases
Guest92915 is now known as kyle__
<apeiros>
jokke: no it's not. but hey, your problem if you think you know better where to get help best.
rippa has joined #ruby
csk has joined #ruby
Jameser_ has joined #ruby
<jokke>
apeiros: ok. What about AS is specific to rails and only makes sense in rails applications?
<apeiros>
jokke: intentionally missing the point?
<apeiros>
it's not that AS is rails specific. it's that AS is maintained as part of rails.
<apeiros>
same for AR
<catphish>
they are the components of rails
<jokke>
well... i'm not expecting to find any rails core devs in #RubyOnRails
<catphish>
its lot like rails is just s framework that took those individual libraries and put them together
<apeiros>
but you're expecting to find them here?
<apeiros>
because if not, that's a void argument
<jokke>
no, and that's why it's totally irrelevant where i post my question
Blueby has quit [Quit: Blueby]
Jameser has quit [Ping timeout: 252 seconds]
<apeiros>
jokke: then I suggest you go to #computing or #programming
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
because somehow that might fit too.
<catphish>
there are rails contributors in #rubyonrails, whether or not they want to help is another matter :)
<jokke>
since it's a basic "i use this lib in ruby and have a problem with it" question
<apeiros>
jokke: anyway, as said - your problem if you think you know better where to get help best.
<catphish>
i'd just ask in both places, and tolerate the abuse :)
<apeiros>
catphish: don't forget the cross-post announcement then, though. otherwise "the abuse" will be a kick.
<catphish>
what announcement?
<jokke>
turned out i didn't get any help in #RubyOnRails either and figured it out my self. The solution was _not to use AS at all_ and use built in ruby methods. A solution any one here with any intention in helping a fellow coder out could have helped me get to.
<apeiros>
jokke: yeah, being snotty is always a good way to be memorized as somebody whom best not to help.
<catphish>
^ this
marr has quit [Ping timeout: 260 seconds]
<jokke>
the fact that i tried to solve my problem with AS didn't make it an AS problem is all i'm trying to say
<catphish>
take being redirected as a polite hint
<apeiros>
jokke: that part is valid, yes.
<catphish>
or ask how to solve the problem another way, without first alienating everyone
abernstein has quit [Quit: abernstein]
conta has joined #ruby
<jokke>
i need to be able to construct a time object that has the same zone as another. i construct it from a unix timestamp
<jokke>
this was my question
wldcordeiro has joined #ruby
polishdub has joined #ruby
<jokke>
i don't know how that alienates anyone
malconis has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<catphish>
it doesn't afaik
<catphish>
get the timezone from the first, pass it into the constructor of the second
nankyokusei has quit [Remote host closed the connection]
<jokke>
catphish: i can't use the constructor for unix timestamps
<catphish>
actually, Time.at doesn't accept a zone, i guess you can set it rhough
<jokke>
i'd need to use at
Blueby has joined #ruby
<catphish>
use at, then set the zone?
malconis has joined #ruby
<jokke>
i can set the zone?
<jokke>
how?
<catphish>
actually that was indeed the obvious question
malconis has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
pontiki has quit [Remote host closed the connection]
<catphish>
i have no idea why Time even stores the zone, seems pretty inflexible
<catphish>
good luck
aganov has quit [Remote host closed the connection]
nankyokusei has joined #ruby
exchgr has joined #ruby
<jokke>
catphish: basically i want to "snap" a time object to a given amount of seconds (always back in time). so that 17:07:14 snap(5) would become 17:07:10
<jokke>
my solution was a core extension Time#snap_seconds(amount = 1) which does this:
ledestin has quit [Read error: Connection reset by peer]
vondruch_ is now known as vondruch
csk has joined #ruby
cjbischof_ has joined #ruby
malconis has joined #ruby
habitullence has quit [Quit: habitullence]
null_ref has joined #ruby
startupality has joined #ruby
<catphish>
personally, i don't use timezones until dates are presented to users, keeping everything in UTC makes such calculations trivial by working on Time#to_i
csk has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
<catphish>
your way seems fraught with danger, but i couldn't commend on whether it's correct or not
<jokke>
mmh
<elomatreb>
catphish: You still have to deal with them though, mainly on input which can be a real pain
<jokke>
time is always a pain
<elomatreb>
You can't really expect users to enter everything in UTC
<catphish>
time can be a pain, but by converting everything to UTC as soon as possible, and to zoned output as late as possible, you avoid many hurdles
<catphish>
unit time is a wonderful thing
<catphish>
*unux
<catphish>
*whatever
<jokke>
:)
<jokke>
yeah
jaequery has joined #ruby
<jokke>
but as you saw from my example it's not trivial to convert a time to a zoned output (when the zone comes from the input)
<elomatreb>
Well, until 2038 (on many systems) ;)
<jokke>
in a perfect world we'd have metric time and no leap years and seconds
<jokke>
:)
[0x1a] has quit [Changing host]
[0x1a] has joined #ruby
[0x1a] has joined #ruby
Derperperd has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
<jokke>
screw the celestial cycles. we all work indoors anyway, who cares if it's light or dark outside :)
<Ben_1>
for any reason gem install passenger --no-rdoc --no-ri --local --source http://rubygems.org fails with the following error message: ERROR: Could not find a valid gem 'passenger' (>= 0) in any repository
User458764 has joined #ruby
<Ben_1>
someone an idea why this happens?
<workmad3>
Ben_1: `--local` would prevent rubygems from looking at a non-local source
Rodya__ has quit [Remote host closed the connection]
claudiuinberlin has quit []
jackjackdripper has joined #ruby
<Ben_1>
workmad3: thought local is for installing the gem only local for that user
conta has joined #ruby
<workmad3>
Ben_1: nope, --local is for only considering local sources
<workmad3>
Ben_1: you're thinking of --user-install
<workmad3>
Ben_1: btw, `gem help install` gives you all of this info... docs are great :)
<elomatreb>
Sorry about that, I confused them too
arup_r has quit []
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
<Ben_1>
np elomatreb and thanks for clarification workmad3 :)
<elomatreb>
You can create a .gemrc file in your homedir specifying that option to always install locally
aufi has joined #ruby
xall has joined #ruby
brendan- has joined #ruby
AndrewIsHere has joined #ruby
holmser has quit [Ping timeout: 276 seconds]
xall_ has quit [Ping timeout: 259 seconds]
cdg has joined #ruby
Snowy has quit [Remote host closed the connection]
Salve has joined #ruby
Snowy has joined #ruby
djbkd has joined #ruby
Salve has quit [Remote host closed the connection]
Beams_ has quit [Quit: .]
Salve has joined #ruby
Ishido has joined #ruby
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
Ben_1 has left #ruby [#ruby]
malconis_ has quit [Read error: Connection reset by peer]
Snowy has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
_sfiguser has quit [Remote host closed the connection]
lenwood has joined #ruby
SeepingN has joined #ruby
malconis has joined #ruby
aufi has quit [Quit: Leaving]
User458764 has joined #ruby
weaksauc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
xall has quit [Ping timeout: 256 seconds]
xall has joined #ruby
eez77 has joined #ruby
mikecmpbll has joined #ruby
gusrub has quit [Remote host closed the connection]
ferr has quit [Quit: WeeChat 1.5]
Salve has quit [Remote host closed the connection]
govg has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
benlieb has joined #ruby
whathappens has joined #ruby
chihhsin has quit [Quit: leaving]
lacour has joined #ruby
chihhsin has joined #ruby
JoshS has quit [Read error: Connection reset by peer]
frankiee_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
jaequery has joined #ruby
pawnbox has quit [Remote host closed the connection]
benlieb has quit [Ping timeout: 260 seconds]
xall_ has joined #ruby
rontec76 has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 260 seconds]
elenatanasoiu has quit [Ping timeout: 260 seconds]
bturker has quit [Ping timeout: 256 seconds]
Salve has joined #ruby
postmodern has joined #ruby
vuoto has joined #ruby
pawnbox has joined #ruby
splud_ has joined #ruby
failshell has quit []
ben__ has joined #ruby
fergal has quit [Quit: fergal]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
startupality has quit [Quit: startupality]
Guest2078 is now known as CrazEd
ben__ has quit [Ping timeout: 260 seconds]
CrazEd is now known as Guest11127
chadwtaylor has joined #ruby
startupality has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
ta_ has joined #ruby
gusrub has joined #ruby
Anon5235 has joined #ruby
nonnatus has joined #ruby
gusrub has quit [Remote host closed the connection]
kegster has left #ruby [#ruby]
Salve has quit [Remote host closed the connection]
tlaxkit has quit [Read error: Connection reset by peer]
<Joel>
I don't see mustache as a direct requirement of fpm, how can I figure out which sub gem is pulling it in?
Anon5235 has left #ruby [#ruby]
helpa-bot has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
helpa has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
nankyokusei has quit []
tlaxkit has joined #ruby
Devalo has quit []
<dionysus69>
I was looking at some webpage and it had this "people".pluralize and it output "peoples"
<dionysus69>
I opened up console I did the same and it output people without the "s"
PlasmaStar has quit [Ping timeout: 244 seconds]
<dionysus69>
so which one is the correct? :D is pluralize method built on "correct" english language principles and if yes why has it changed?
xall has joined #ruby
rajdesai has joined #ruby
ben__ has joined #ruby
xall_ has quit [Ping timeout: 245 seconds]
ben__ has quit [Remote host closed the connection]
ben__ has joined #ruby
<SeepingN>
it depends on how you are using the word
<SeepingN>
there are lots of people at this meeting
PlasmaStar has joined #ruby
<SeepingN>
Africa is home to many peoples of various descent.
<dionysus69>
yes I understand, I have seen uses of peoples in historical texts etc but why does rails console pluralize method output two different results
<dionysus69>
NoMethodError: undefined method `pluralize' for "people":String
<dionysus69>
getting error in IRB
<dionysus69>
I was able to check in rails console
<eam>
dionysus69: it's part of rails, not ruby
<sparch>
this is helper from rails, not part of ruby
PlasmaStar has joined #ruby
<dionysus69>
oh I thought it would be part of ruby :D my bad
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.5]
cdg has quit [Remote host closed the connection]
mrwn has joined #ruby
njs126 has joined #ruby
Salve has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChiefAlexander has quit [Remote host closed the connection]
Cohedrin has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
troulouliou_dev has joined #ruby
Joel has left #ruby ["Leaving"]
nonnatus has joined #ruby
nankyokusei has joined #ruby
benlieb has joined #ruby
claudiuinberlin has joined #ruby
ChiefAlexander has joined #ruby
jackjackdripper has joined #ruby
hahuang65 has joined #ruby
banisterfiend has joined #ruby
frankiee_ has quit [Quit: leaving]
agit0 has joined #ruby
blob_ is now known as blob
blob is now known as fatbob
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
mweshi has joined #ruby
ace05 has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
smlocal has joined #ruby
Guest74211 has quit [Ping timeout: 260 seconds]
jackjackdripper1 has quit [Client Quit]
zeroDi has joined #ruby
pur33val has joined #ruby
eez77 has joined #ruby
eez77 has quit [Max SendQ exceeded]
<pur33val>
hi, does anyone know if theres a way to override the {} method in ruby to have custom order?
eez77 has joined #ruby
ace05 has quit [Ping timeout: 250 seconds]
mweshi has quit [Quit: Gone fishing!]
jackjackdripper has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
dojo2 has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
xall_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
allomov has joined #ruby
AlexRussia has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
tlaxkit has quit [Quit: tlaxkit]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
allomov has quit [Remote host closed the connection]
bocaneri has quit [Read error: Connection reset by peer]
elenatanasoiu has joined #ruby
JeanCarloMachado has quit [Ping timeout: 250 seconds]
pragmaticus has quit [Remote host closed the connection]
dojo2 has quit [Ping timeout: 250 seconds]
<heftig>
pur33val: the what method?
jenrzzz has joined #ruby
Jackneill_ has joined #ruby
nankyokusei has quit [Remote host closed the connection]
eez77 has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
JeanCarloMachado has joined #ruby
<atmosx>
Are there any practical advantages using puma/thin/unicorn over standard rack (webrick) for ruby web apps when they're behind a rev-proxy? Except say obvious staff (e.g.puma concurrency model).
mrwn has quit [Ping timeout: 260 seconds]
whathappens has quit [Read error: Connection reset by peer]
<Papierkorb>
websocket support, also webrick was always slower for me for any work load
xall has joined #ruby
<Papierkorb>
and using puma or thin is so easy...
AlexRussia has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
lenwood has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
Dohplay has quit [Read error: Connection reset by peer]
<atmosx>
Papierkorb: so speed, concurrency, cleaner interface (start/stop/status report)
<atmosx>
in the case of then we have event-driven I/O IIRC
splud_ is now known as splud
chouhoulis has joined #ruby
TomyLobo has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Papierkorb>
I don't use the cli interface stuff. systemd takes care of that for me
<atmosx>
+ long connection support without a reverse proxy
<havenwood>
atmosx: hot restarts, less memory at load, not crashing with normal use, streaming, etc
<DonDS>
good evening, i tried ruby some years ago and liked it. but due tho i am not a programming type i forgot almost all of my skills. therefore i have a rather simple question: I wan
ruby-lang214 has quit [Ping timeout: 260 seconds]
<DonDS>
want to make array[lenght] whereas it gives me array[0,1,2,3,......,lenghth]. Is there some elegant way to do that?
xall_ has joined #ruby
<SeepingN>
a[0..len]
banisterfiend has joined #ruby
<al2o3-cr>
don't forget to splat :)
<DonDS>
SeepingN: Am i understanding right that a[0..3] gives me [0,1,2,3]?
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<DonDS>
the more i understand the more i like
chadwtaylor has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
<DonDS>
sorry for not having much time, but thank you so much lot.
<djellemah>
It's rare to need to create an array of a specific size though. Most likely, what you're looking for will be in Enumerable. Which is included in Array.
<DonDS>
karma++ @ SeepingN, djellemah, al2o3-cr
<DonDS>
will be back another time when therefore i have more time. roby rocks!
<DonDS>
have a nice day!
Blueby has quit [Ping timeout: 245 seconds]
DonDS has quit [Quit: /aWay keyboard won't register a keystroke]
ben__ has quit [Remote host closed the connection]
brendan- has joined #ruby
chadwtaylor has quit [Ping timeout: 256 seconds]
rontec76 has joined #ruby
yardenbar has joined #ruby
xall has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
whathappens has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
miqlas-H has joined #ruby
whathappens has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
aeterne has quit [Ping timeout: 260 seconds]
<atmosx>
who's roby?
pawnbox has quit [Remote host closed the connection]
ben__ has joined #ruby
DLSteve has joined #ruby
sepp2k has quit [Quit: Leaving.]
conta has quit [Ping timeout: 260 seconds]
<sparch>
I think it was a typo for ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
yardenbar has quit [Ping timeout: 244 seconds]
magellanicloud has joined #ruby
chadwtaylor has joined #ruby
Snowy has joined #ruby
ur5us has joined #ruby
xall_ has joined #ruby
fergal has joined #ruby
startupality has quit [Quit: startupality]
whathappens has quit [Read error: Connection reset by peer]
sparch has quit [Quit: escrevi e saí correndo pau no cu de quem está lendo]
elenatanasoiu has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
xall has quit [Ping timeout: 245 seconds]
pokalyis has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
brendan- has joined #ruby
rontec76 has quit [Ping timeout: 250 seconds]
gusrub has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
polyidus has quit [Quit: ZZZzzz…]
eez771 has quit [Ping timeout: 252 seconds]
eez77 has joined #ruby
eez77 has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
MichaeK has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<MichaeK>
Hi, I have a function `lambda{|x| puts JSON.pretty_generate(x.as_json) }`. Is there a way for me to define it so it can be called like `obj.my_func`?
djbkd has quit [Ping timeout: 250 seconds]
lenwood has quit [Ping timeout: 260 seconds]
Dohplay has joined #ruby
gusrub has joined #ruby
brendan- has joined #ruby
symm- has joined #ruby
jackjackdripper has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
LambdaSix has quit [Ping timeout: 256 seconds]
LambdaSix has joined #ruby
matp has joined #ruby
Dimik has joined #ruby
roamingdog has joined #ruby
polyidus has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
cdg has joined #ruby
biberu has quit []
<djellemah>
MichaeK: def obj.my_func; puts JSON.pretty_generate(as_json) end # singleton method, which has some consequences
jackjackdripper has joined #ruby
johnmilton has joined #ruby
xall_ has joined #ruby
skweek has joined #ruby
sepp2k has joined #ruby
Rodya_ has joined #ruby
<MichaeK>
djellemah: like what?
Rodya_ has quit [Ping timeout: 245 seconds]
roamingdog has quit [Remote host closed the connection]
csk has joined #ruby
Rodya_ has joined #ruby
Derperperd has quit [Quit: Derperperd]
eelster has joined #ruby
djbkd has joined #ruby
eelster has left #ruby [#ruby]
roamingdog has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
pur33val has quit [Quit: Page closed]
whathappens has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
ldnunes has quit [Quit: Leaving]
howdoi has quit [Quit: Connection closed for inactivity]
rontec76 has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
Rafcio has joined #ruby
<Rafcio>
hey guys aws s3 questions here.. not sure if anyone here can help, but is there a way to make old public files set to private ?
dojo2_ has joined #ruby
polyidus has joined #ruby
<djellemah>
MichaeK: It will generate a singleton class (aka eigenclass) for obj if there isn't one already. It will make obj not Marshal-able. IIRC it will also clear the method cache for obj.
roamingdog has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<Papierkorb>
?crosspost
<ruby[bot]>
Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<Papierkorb>
?crosspost Rafcio
<ruby[bot]>
Rafcio: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<Rafcio>
sorry guys just looking for help
gusrub has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
Salve has quit []
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
tyang has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 260 seconds]
peaches is now known as note
tubuliferous has joined #ruby
pibby has quit [Quit: leaving]
note is now known as naughtynote
pibby has joined #ruby
dnicole has quit [Remote host closed the connection]
ace05 has quit [Ping timeout: 256 seconds]
naughtynote is now known as notes
DrCode has joined #ruby
kafloopascope has joined #ruby
ace05 has joined #ruby
pibby has quit [Client Quit]
rontec76 has quit [Remote host closed the connection]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
rontec76 has joined #ruby
dojo2_ has quit [Remote host closed the connection]
pibby has joined #ruby
pibby has quit [Client Quit]
bweston92 has joined #ruby
roamingdog has joined #ruby
claudiuinberlin has quit []
pibby has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
brendan- has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
jphase_ has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
jphase_ has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nettoweb1 has quit [Ping timeout: 252 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
polyidus has joined #ruby
brendan- has joined #ruby
llaine has quit [Ping timeout: 260 seconds]
inra has joined #ruby
alibby has quit [Ping timeout: 252 seconds]
palms has quit [Quit: Leaving]
tdy has joined #ruby
palms has joined #ruby
nettoweb has quit [Ping timeout: 244 seconds]
sagax has joined #ruby
inra has quit [Remote host closed the connection]
nettoweb has joined #ruby
Pupeno has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
dionysus69 has joined #ruby
djbkd has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Rafcio has quit [Quit: Rafcio]
jenrzzz has joined #ruby
brendan- has joined #ruby
jphase has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
snath has joined #ruby
snath has left #ruby [#ruby]
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
weaksauce has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Jackneill_ has quit [Remote host closed the connection]
Snowy has joined #ruby
Hiro` has joined #ruby
chadwtaylor has quit [Ping timeout: 260 seconds]
gingray has quit [Ping timeout: 245 seconds]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
whathappens has quit [Client Quit]
firstdayonthejob has joined #ruby
magellanicloud has quit [Quit: Leaving]
Rodya_ has quit [Ping timeout: 256 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
djbkd has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
Bellthoven has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
ben__ has quit [Remote host closed the connection]
palms has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
NeverTired has joined #ruby
mrwn has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 260 seconds]
gusrub__ has joined #ruby
workmad3 has joined #ruby
roamingdog has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
dnicole has joined #ruby
MichaeK has quit [Quit: Page closed]
gusrub has quit [Ping timeout: 250 seconds]
dinoangelov has joined #ruby
gusrub__ has quit [Ping timeout: 276 seconds]
freeze_ is now known as freeze
kafloopascope has left #ruby ["Leaving"]
workmad3_ has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
dnicole has quit [Ping timeout: 260 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 250 seconds]
bob434 has joined #ruby
bauruine has quit [Read error: Connection reset by peer]
dinoangelov has quit [Quit: (null)]
nettoweb1 has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
danmcguire has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
<danmcguire>
I know I can just use `inject` but why doesn't `[1,2,3].each_with_object(0) {|o,i| o += i}` return 6?
bauruine has joined #ruby
<danmcguire>
is it because += doesn't actually mutate the object in place?
<SeepingN>
√
gusrub has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
hanshenrik has joined #ruby
hanshenrik has left #ruby ["Leaving"]
elenatanasoiu has quit [Ping timeout: 250 seconds]
malconis has quit [Read error: Connection reset by peer]
nonnatus has joined #ruby
bauruine has joined #ruby
<fergal>
hi guys, i have the following code: https://gist.github.com/anonymous/33c570e19c259919fad491e8a7a2dfcc can someone explain to me whats happening here? are “program” and “command” hashes? is it possible to invoke the “second” command from within the “init” command?
dasher00 has quit [Ping timeout: 260 seconds]
pokalyis has quit [Read error: Connection reset by peer]
rontec76 has quit [Remote host closed the connection]
pokalyis has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
Pazzaz has quit [Quit: Leaving]
jackjackdripper has quit [Quit: Leaving.]
ChiefAlexander has quit [Remote host closed the connection]
Pazzaz has joined #ruby
gusrub has joined #ruby
Snowy has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
roamingdog has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 250 seconds]
Pazzaz has quit [Remote host closed the connection]
jcao219 has joined #ruby
Pazzaz has joined #ruby
Xeago has joined #ruby
Trynemjoel2 has quit [Ping timeout: 246 seconds]
gusrub has quit [Ping timeout: 245 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 260 seconds]
saslam has quit [Ping timeout: 260 seconds]
davixx has joined #ruby
davix has quit [Disconnected by services]
davixx is now known as davix
davix1 has joined #ruby
elenatanasoiu has joined #ruby
dnicole has joined #ruby
Trynemjoel has joined #ruby
gusrub has joined #ruby
moei has joined #ruby
mikeiniowa has joined #ruby
brendan- has joined #ruby
chadwtaylor has joined #ruby
ace05 has quit [Remote host closed the connection]
<davix>
I have a predefined list (list = {"a" => "x", "b" => "y"} etc) I have defined a Class, and in this class i have initialized two variables (to represent list name and key). now I would like to call a method from this function to act on each item in this least with .each. how can I do it? http://pastebin.com/emaZySbz
roamingdog has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
chadwtaylor has quit [Remote host closed the connection]
irisseries has joined #ruby
chadwtaylor has joined #ruby
roamingdog has joined #ruby
threh has joined #ruby
hutch34 has joined #ruby
davix has quit [Quit: WeeChat 1.6]
xall has quit [Ping timeout: 256 seconds]
chadwtaylor has quit [Remote host closed the connection]
cloaked1 has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
dnicole has joined #ruby
cloaked1 has joined #ruby
wldcordeiro has joined #ruby
nettoweb has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
agent_white has quit [Quit: Lost terminal]
dnicole has quit [Ping timeout: 256 seconds]
rcvalle has quit [Quit: rcvalle]
wldcordeiro has quit [Client Quit]
wldcordeiro has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
tubuliferous has joined #ruby
Bellthoven has joined #ruby
geo_ has joined #ruby
chadwtaylor has joined #ruby
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
renderful has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 245 seconds]
xall has joined #ruby
xall has quit [Excess Flood]
gizmore has joined #ruby
purr is now known as ELLIOTTCABLE
xall has joined #ruby
nonnatus has joined #ruby
jerikl has joined #ruby
ICantCook has quit [Quit: bye]
xall has quit [Read error: Connection reset by peer]
ben______ has joined #ruby
<jerikl>
Is anyone aware of a way to get the Nokogiri XML Builder to open and close an empty element in output vs. using an empty closed element? i.e. “<Location></Location>” instead of “<Location/>” (https://gist.github.com/langhorst/e4d504cdcc16cf75d93798eb3ca44bf2)
shinnya has joined #ruby
<jerikl>
I believe older versions of Nokogiri would behave this way, but I’m not 100% on that.
smlocal has quit []
nettoweb1 has quit [Ping timeout: 260 seconds]
spt0 has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]