xxneolithicxx has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
dfockler has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kinduff>
baweaver: thanks for pointing that out. Been with Rails for 3 years now, I'm looking to get the right path of starting this service thing. Thanks.
<colin_>
I guess I expect everything in the python standard library to be in the ruby standard library, but that's wishful thinking.
frank_o has quit [Ping timeout: 250 seconds]
michas has joined #ruby
axl_ has joined #ruby
dnlbyl has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
axl_ has quit [Client Quit]
ledestin has quit [Remote host closed the connection]
dnlbyl has quit [Client Quit]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
mdz_ has joined #ruby
pontiki has joined #ruby
<pontiki>
hello/
g0rx_ has quit [Ping timeout: 246 seconds]
mdz_ has quit [Ping timeout: 256 seconds]
g0rx_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
fella5s has quit [Read error: Connection reset by peer]
<jason_rad>
Hi guys, learning ruby here ( first language ) and I'm a little confused as to which way things go. For example http://pastie.org/10226029 Do I break down what I want to do in multiple lines, or just create one liners with methods upon methods tied together?
RegulationD has quit [Remote host closed the connection]
harly has joined #ruby
<jason_rad>
I find myself doing a mixture of this especially since I don't realize all the methods to certain objects
jackjackdripper has quit [Ping timeout: 265 seconds]
<havenwood>
jason_rad: Both of the ways you showed leave the file open unless you explicitly: File.close file
<jason_rad>
havenwood: I thought ruby does memory management by itself and I don't ahve to explicitly destroy object
<Ox0dea>
jason_rad: Closing and destroying aren't synonymous.
<jason_rad>
noted
deric_skibotn has quit [Ping timeout: 256 seconds]
<havenwood>
jason_rad: File::open with a block will close the file when the block closes. Without a block it leaves the file open.
<havenwood>
jason_rad: For a simple read, do like my example.
<havenwood>
jason_rad: IO::read
<pontiki>
the file will close when the enclosing scope ends, but it's bad form, especially if all of them are opened in the root scope
<havenwood>
jason_rad: If you can't read the whole file into memory at once, or need other fine grained access, use File::open with a block. For simple stuff IO::read.
<noethics>
i think somehow i went from writing a queue server to a database
<noethics>
i suck
<jason_rad>
havenwood: Thanks for this info. I'm reading learn ruby the hardway. I can grasp the syntax etc, but find myself struggling with I guess the theory on how to tie it together correctly
<harly>
i thought it closed on GC, not scope end? when GC calls finalize.
<Ox0dea>
harly: Why?
<harly>
becuase that's what I thought?
mrsolo has quit [Quit: This computer has gone to sleep]
kinduff has quit [Quit: l8r]
<Ox0dea>
harly: Yes, but there's no precedent for arriving at such a conclusion.
<Ox0dea>
It doesn't make any sense to garbage-collect an open file.
c355E3B has joined #ruby
tibig has quit [Ping timeout: 264 seconds]
<harly>
GC doesn't care if a file is open or not. it cleans up things which are no longer referenced. it calls finalize to give that object an option to do anything it needs to do. which in the case of an open file, is to close it.
mr_goodcat has quit [Ping timeout: 245 seconds]
<harly>
but pontiki said it closes when it falls out of scope. That, I don't know how it would do.
<Ox0dea>
harly: Blocks make object management very easy.
sankaber has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
pulgolino has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
porkqpain is now known as yoongkang
yoongkang has quit []
porkqpain has joined #ruby
porkqpain has left #ruby [#ruby]
bmurt has joined #ruby
jackjackdripper1 has quit [Ping timeout: 255 seconds]
blue_deref has joined #ruby
yoongkang has joined #ruby
snophey has quit [Quit: Leaving]
fabrice31 has joined #ruby
gambl0re has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Agoldfish has quit [Quit: G'Bye]
jason_rad has quit [Quit: leaving]
Limix has joined #ruby
rkazak has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
mh888 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bertocode has joined #ruby
nizmow has quit [Ping timeout: 256 seconds]
amclain has joined #ruby
icbm has joined #ruby
mc_fail_ has joined #ruby
swgillespie has joined #ruby
ghr has joined #ruby
Brozo has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
mc_fail has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby
gusrub has quit [Quit: Leaving]
rodfersou has joined #ruby
shadoi has quit [Quit: Leaving.]
adefa has quit [Ping timeout: 255 seconds]
a346 has quit [Quit: a346]
ghr has quit [Ping timeout: 265 seconds]
Brozo has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
Brozo has quit [Remote host closed the connection]
Brozo has joined #ruby
rodfersou has quit [Quit: leaving]
mh888 has quit [Quit: Leaving.]
LITesterB has joined #ruby
LITesterB has quit [Client Quit]
freerobby has joined #ruby
freerobby has quit [Client Quit]
michas has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
wjimenez5271 has joined #ruby
mh888 has joined #ruby
zendrix has quit [Ping timeout: 265 seconds]
Y4Rv1K has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
CloCkWeRX has quit [Quit: Leaving.]
Ox0dea has left #ruby ["WeeChat 1.3-dev"]
nizmow has joined #ruby
mh888 has left #ruby [#ruby]
mrmargolis has joined #ruby
queequeg1 has quit [Ping timeout: 265 seconds]
Brozo has quit [Remote host closed the connection]
seanstickle has joined #ruby
bmurt has quit []
<seanstickle>
Ahoy hoy
snsei has quit [Remote host closed the connection]
<bootstrappm>
just got out of like 6.5 hours of meetings
<Ox0dea>
Seems like a suitable alternative.
<bootstrappm>
i hurt
fujimura_ has joined #ruby
<diegoviola>
lol
<bootstrappm>
hey zenspider's on that gem
duncannz has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
cryptarium_ has joined #ruby
<shevy>
bootstrappm that's a long meeting
<shevy>
was much wisdom shared in it?
<pontiki>
that's way too long for meetings. i'd be hurting too.
darkf has joined #ruby
Y4Rv1K has joined #ruby
cryptarium has quit [Ping timeout: 256 seconds]
fujimura_ has quit [Ping timeout: 265 seconds]
mfranzwa has left #ruby [#ruby]
<bootstrappm>
it was sprint review + retrospective then eveybody went home and product backlog refinement with my cofounder
Guest17424 has quit [Ping timeout: 272 seconds]
<bootstrappm>
first part was like 3 hours, the product backlog was another 3 - 4
bruno- has joined #ruby
<bootstrappm>
just too much thinking and talking
<bootstrappm>
playign Battle for Wesnoth for a couple minutes to reset
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdz_ has joined #ruby
riotjones has joined #ruby
Y4Rv1K has quit [Remote host closed the connection]
Brozo has quit [Remote host closed the connection]
lkba_ has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
Y4Rv1K has joined #ruby
<shevy>
\o/
<shevy>
take elves, they are best
braincrash has quit [Quit: bye bye]
<bootstrappm>
will do!
mdz_ has quit [Ping timeout: 265 seconds]
Brozo has joined #ruby
adefa has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 256 seconds]
sigden has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
caseypatrickdris has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
adefa has quit [Ping timeout: 245 seconds]
braincras has joined #ruby
gsd has joined #ruby
serivich has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
slawrence00 has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
slawrence00 is now known as webdev99
mc_fail_ has quit [Ping timeout: 255 seconds]
bootstrappm has left #ruby [#ruby]
Channel6 has joined #ruby
CustosLimen has quit [Ping timeout: 245 seconds]
yoongkang has quit [Remote host closed the connection]
A205B064 has quit [Ping timeout: 272 seconds]
broman has quit [Ping timeout: 244 seconds]
mc_fail has joined #ruby
CustosLimen has joined #ruby
Limix has quit [Quit: Limix]
nini1294 has joined #ruby
balazs has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c355E3B has quit [Quit: Connection closed for inactivity]
diegoviola has quit [Quit: WeeChat 1.2]
rodfersou has quit [Remote host closed the connection]
chipotle has joined #ruby
michas has quit [Read error: Connection reset by peer]
jerematic has quit [Remote host closed the connection]
nini1294 has quit [Ping timeout: 255 seconds]
rubie has quit [Remote host closed the connection]
_seanc_ has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
jenrzzz has joined #ruby
yfeldblum has joined #ruby
David_H__ has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
Encapsulation has joined #ruby
deavidsedice has quit [Ping timeout: 265 seconds]
OtterCoder has joined #ruby
jack_rabbit has joined #ruby
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Ping timeout: 246 seconds]
Y4Rv1K has quit [Remote host closed the connection]
Limix has joined #ruby
<shevy>
is there a way to grab the content of a block given to a method, in form of a String? I need to parse a block for certain keywords, before I evalute it via instance_eval
<Ox0dea>
shevy: Alas, no. :(
<shevy>
hmm
<Ox0dea>
>> RubyVM::InstructionSequence.of(-> { |a, b| a + b }).to_a
<ruboto>
Ox0dea # => /tmp/execpad-5bedd0f41fbe/source-5bedd0f41fbe:2: syntax error, unexpected '|' ...check link for more (https://eval.in/376380)
<Ox0dea>
What?
<shevy>
I sort of need some kind of finalizer-hook
<shevy>
but I haven't thought about it completely yet
<Ox0dea>
shevy: at_exit or END?
<shevy>
I hate at_exit...
<shevy>
I remember when several different .rb files have at_exit, it becomes confusing for me what is going on
<Ox0dea>
Wow, I derped on the lambda syntax back there.
<Ox0dea>
>> RubyVM::InstructionSequence.of(-> a, b { a + b }).to_a
<ruboto>
Ox0dea # => ["YARVInstructionSequence/SimpleDataFormat", 2, 2, 1, {:arg_size=>2, :local_size=>3, :stack_max=>2}, ...check link for more (https://eval.in/376381)
<Ox0dea>
shevy: You could try your hand at parsing the block's iseq?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<aoyr115>
Hello, I’m stuck on a problem building a factorygirl object with rspec and ruby and would really appreciate any new ideas. When I run the spec to create a valid factory, I get an argument error of missing keywords, even if I pass in the required keywords to initialize the object in the build(:object)…I’ve tried googling for a while and removing the keyword argument params, with no luck
ponga has joined #ruby
n1x has quit [Max SendQ exceeded]
stardiviner has joined #ruby
arescorpio has quit [Quit: Leaving.]
n1x has joined #ruby
yfeldblum has joined #ruby
bantic has quit [Quit: bantic]
mc_fail_ has joined #ruby
bigmac_ has joined #ruby
nickmm has joined #ruby
keen___________6 has joined #ruby
keen___________5 has quit [Ping timeout: 246 seconds]
sevenseacat has joined #ruby
jerematic has quit [Remote host closed the connection]
mc_fail has quit [Ping timeout: 245 seconds]
fluter has quit [Ping timeout: 272 seconds]
mc_fail has joined #ruby
pengin has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 252 seconds]
mc_fail_ has quit [Ping timeout: 265 seconds]
crazymykl has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
RegulationD has joined #ruby
Y4Rv1K has joined #ruby
leat1 has quit [Ping timeout: 264 seconds]
HotCoder has joined #ruby
rushed has joined #ruby
Y4Rv1K has quit [Read error: Connection reset by peer]
deavid has quit [Ping timeout: 272 seconds]
senayar has quit [Ping timeout: 245 seconds]
sigden has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
Miphix has joined #ruby
thomas is now known as evilthomas
nonparfumee has joined #ruby
bantic has joined #ruby
pengin has quit [Remote host closed the connection]
<Ox0dea>
sandelius: And you're certain you want to serialize complex objects to JSON?
<sandelius>
Ox0dea it's for a REST api.
allomov has joined #ruby
<Ox0dea>
sandelius: With what sort of data does your API respond?
mandarinkin has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
<Ox0dea>
Arrays, numbers, strings, and hashes, presumably?
<sandelius>
Ox0dea Perhaps I should've said that I'm serializing model attributes. It's a SaaS application so it all kind of stuff including relations.
CloCkWeRX has joined #ruby
frank_o has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
atm0sphere has joined #ruby
Miphix has quit [Quit: Leaving]
<atm0sphere>
what is the difference between end and $end?
<sevenseacat>
ones a keyword, one's a global variable
<atm0sphere>
when i run a program it gives an error of $end missing but when i give it shows some another error
<sandelius>
atm0sphere can you gist it?
datanoise has quit [Ping timeout: 250 seconds]
<sevenseacat>
an error like that means you have an extra `end` - its expeting the end of file and not getting it
aapole has joined #ruby
<atm0sphere>
gist?
<sevenseacat>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<baweaver>
wow, that does not like loading images properly. Hm.
dfockler has quit [Ping timeout: 246 seconds]
<baweaver>
side note, chrome hates fixed images
<sandelius>
I've open sourced a rack based framework I've used for a while. Anyone want to take a peek at it, it's here: http://ramverk.org/ A sandbox app can be cloned from here: https://github.com/ramverk/sandbox
ur5us has joined #ruby
<sandelius>
I would really appreciate your thoughts
<sandelius>
The website needs a lot of love though :)
atm0sphere has quit [Ping timeout: 246 seconds]
govg has quit [Read error: Connection reset by peer]
ghr has joined #ruby
<baweaver>
sandelius: Website is actually not bad. Maybe a little less top margins there on the header but not bad by any stretch.
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
serivichi has joined #ruby
<sandelius>
baweaver ohh thanks. Writing docs is not easy. Especially when english isn't your native language
<sandelius>
baweaver the code is prettier though :)
<jgt>
so it doesn’t *need* to support + characters
<jesterfraud>
jgt, I use + signs in my email address to make 'subaddresses' if I don't trust a website
<jgt>
jesterfraud: I don’t care about you, I care about the data I’m operating on
mc_fail has quit [Ping timeout: 272 seconds]
<jesterfraud>
they're not that uncommon
<jesterfraud>
fair enough
<jgt>
they’re non-existent in my data
<sevenseacat>
lol
sigurding has joined #ruby
mc_fail has joined #ruby
ghr has joined #ruby
langland_ has joined #ruby
dzejrou has joined #ruby
ruurd has joined #ruby
<jesterfraud>
Ox0dea, do you know what the story is behind those strings being different, or am I derping and that's just special... yeah, that's special characters.
<jesterfraud>
I'll just be here in the corner
_blizzy_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
idafyaid has joined #ruby
<Ox0dea>
jesterfraud: Single quotes make escape sequences effectively meaningless.
<Ox0dea>
They're "raw" strings, more or less.
<jesterfraud>
yeah, so it's literally '\t'
Langlands has quit [Ping timeout: 256 seconds]
harly has quit [Quit: Leaving]
<jesterfraud>
is there a meaningful difference in runtime if you use "" over '' in code when you don't use special characters? My IDE complains about it
iamninja has quit [Read error: Connection reset by peer]
<sevenseacat>
no disadvantage.
<ruurd>
Ox0dea yep that is why a rubyist should prefer them as long as 'magic' is not necessary...
iamninja has joined #ruby
HoloIRCUser1 has joined #ruby
<Ox0dea>
ruurd: If by "magic" you mean interpolation, then sure.
sandelius has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
<ruurd>
Well if you use "" then you invoke interpolation. Which does not find anything. But still unnecessary.
Langlands has joined #ruby
<Ox0dea>
I'm not sure that's the case, but parse.y is scary.
<ruurd>
interpolation yes, interpretation of special chars yes...
<Ox0dea>
I'm sure there are checks in place to refrain from invoking unnecessarily costly behavior in the parser.
HoloIRCUser1 has quit [Remote host closed the connection]
<ruurd>
it is probably a pretty performant piece of code yes but that does not excuse me to use the proper quotes to begin with...
<ruurd>
From that point: rubocop your code.
<sevenseacat>
I use double quotes always. keep it consistent.
<jesterfraud>
I feel like I've started a "tabs vs spaces" argument
langland_ has quit [Ping timeout: 264 seconds]
<jesterfraud>
or should that a 'tabs vs spaces' argument?
<sevenseacat>
#dangerzone
<sevenseacat>
i see what you did there
<jesterfraud>
Topic for #dangerzone is: That's how you get ANTS!
olistik has quit [Remote host closed the connection]
<Mon_Ouie>
>> puts RubyVM::InstructionSequence.disassemble(lambda { "x" })
<ruboto>
Mon_Ouie # => == disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/execpad-3660d3aa4cd7/source-3660d3aa4cd ...check link for more (https://eval.in/376457)
<ruboto>
Mon_Ouie # => == disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/execpad-9b6d91682850/source-9b6d9168285 ...check link for more (https://eval.in/376458)
<Mon_Ouie>
(They compile to the same code if you don't use string interpolation)
<sevenseacat>
some of the comments are like 'i use single quotes to show there is nothing interesting happening in this string' do people use an editor that doesnt highlight things like interpolation in strings?
__Bn has joined #ruby
<__Bn>
hey
<Ox0dea>
Mon_Ouie just made the benchmarker look quite a fool.
<__Bn>
what are the best screencasts to learn ruby for a beginner?
<sevenseacat>
Mon_Ouie: nice.
<sevenseacat>
i wouldnt say a fool, but thats a good point.
iamninja has quit [Read error: Connection reset by peer]
<jesterfraud>
alexherbo2, I'm not really all that fantastic on Sinatra, but I guess I'm trying to get to the root of the issue so that, at worst, some genius here could answer
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jesterfraud>
alexherbo2, that's actually working
<jesterfraud>
the issue is that by default, curl (and pretty much everything else) won't accept a self-signed SSL certificate
iamninja has joined #ruby
<jesterfraud>
because literally anyone can generate one
<zotherstupidguy>
jesterfraud is that the same-origin dance?
<jesterfraud>
zotherstupidguy, nope
<jesterfraud>
self signed certificates are untrusted
<jesterfraud>
so pretty much every utility will not accept them by default
<alexherbo2>
jesterfraud: i want it works in chrome
<alexherbo2>
:(
<jesterfraud>
regardless of origin
<jesterfraud>
alexherbo2, you might need to buy an SSL cert then
<alexherbo2>
my extension does not work on https page :/
<alexherbo2>
erf
<jesterfraud>
otherwise it's self-signed
<jesterfraud>
and untrusted
<zotherstupidguy>
jesterfraud it doesnt work means you get a warning page and then pass it?
<jesterfraud>
not in alex's case
chussenot has quit [Quit: chussenot]
<jesterfraud>
because he's trying to load content from an unsecure source on a secure page
<jesterfraud>
which, come to think of it, could be a same-origin dance
<jesterfraud>
in his specific scenario (not for the cURL call)
<zotherstupidguy>
i dont remmber much really, but self-singed ssl wasn't a big deal, it is just not practical becauase it scars users.
FernandoBasso has joined #ruby
<jesterfraud>
zotherstupidguy, the problem is more that most utilties won't have anything to do with a self-signed certificate, Chrome and cURL being two of them
<jesterfraud>
which means unless alexherbo2 adds his SSL cert to his trusted certificates, Chrome won't load the page without prompting him
<jesterfraud>
and because he's not visiting the page, but rather loading content from that server, it won't prompt him
workmad3 has joined #ruby
<phale>
oh god
<phale>
bye
phale has left #ruby ["Leaving"]
sigurding has quit [Quit: sigurding]
<jesterfraud>
what was that about? O.o
sarkyniin has joined #ruby
<zotherstupidguy>
not really sure..
<jesterfraud>
alexherbo2, your issues here do not lie with Ruby, so this may not be the right channel to pursue this further.
<jesterfraud>
the Ruby side of the equation is working as intended
<slopjong>
zotherstupidguy, is it correct as i pass "#{ARGV}" to the system command?
icbm has joined #ruby
icbm has quit [Client Quit]
datanoise has joined #ruby
SalexW has joined #ruby
DeBot_ has joined #ruby
MrBeardy has joined #ruby
DeBot_ has quit [Client Quit]
DeBot_ has joined #ruby
<zotherstupidguy>
slopjong ARGV is a hash, right?
<slopjong>
i guess
DeBot_ has quit [Client Quit]
<ytti>
ARGV is an array
<ytti>
maybe you're confusing to ENV
<slopjong>
zotherstupidguy, i want to install some plugins when running specific vagrant commands (up, reload, provision) and the system call should pass the current script's argument to the nested vagrant call
chridal has joined #ruby
<chridal>
HellO!
<slopjong>
this seems necessary since i'm getting vagrant section errors because vagrant seems not to load the plugins during its execution
Fooster has quit [Ping timeout: 255 seconds]
Fooster_ has joined #ruby
<slopjong>
at least not right before Vagrant.configure but before i install the new plugins
DeBot_ has joined #ruby
<slopjong>
ytti, the script's arguments are not related to the environment variable
DeBot_ has joined #ruby
jhass is now known as DeBot
<slopjong>
ytti, the env var is just a flag to skip the installation of the plugins during the nested execution
GriffinHeart has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
<zotherstupidguy>
chridal could you explain what youa re trying to do in plain english?
revath has left #ruby [#ruby]
<zotherstupidguy>
chridal better add it as a comment
k3asd` has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mc_fail_ has joined #ruby
<chridal>
zotherstupidguy: It was only slow because of my system. Have no idea why
olistik has quit [Remote host closed the connection]
victorkohl has joined #ruby
<chridal>
Appreciate your time though
<chridal>
I **
ghr has quit [Ping timeout: 276 seconds]
Langlands has joined #ruby
<slopjong>
zotherstupidguy, the array's elements need to be joined and the following works perfectly: exec "SKIP_VAGRANT_INSTALL_PLUGINS=true vagrant #{ARGV.join(' ')}"
<zotherstupidguy>
slopjong thanks for the feedback :)
GriffinHeart has joined #ruby
mc_fail has quit [Ping timeout: 264 seconds]
langland_ has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 255 seconds]
fujimura has joined #ruby
elev has joined #ruby
elev is now known as Master44
<Master44>
+i
dzejrou has quit [Ping timeout: 264 seconds]
yoongkang has quit [Remote host closed the connection]
<Master44>
what does eql means?
tvw has quit [Remote host closed the connection]
yoongkang has joined #ruby
fujimura has quit [Ping timeout: 244 seconds]
<qsuscs>
is there any difference between "foo" and 'foo' in ruby?
<sevenseacat>
with that content? no.
<zotherstupidguy>
good answer!
<Mon_Ouie>
The #eql? method is used for hash equality, i.e. it's how two objects are compared when they're used as keys in a hash
<zotherstupidguy>
also content vs manipulation matters i guess
<qsuscs>
sevenseacat: so does this mean there can be a difference if i put more than a simple string in the quotes?
jgt has joined #ruby
michas has joined #ruby
<sevenseacat>
yes, if you had something like '#{foo}' that means something different when used in double quotes - look up string interpolation
<Master44>
I dont know just wanted to know the different
<shevy>
there will be a small subset of people who know ffi
<shevy>
Master44 ... is less often used than ..
<atm0sphere>
shevy: what does namerror means?
<Master44>
yes
<shevy>
atm0sphere when something is unkown to ruby
fujimura has quit [Ping timeout: 244 seconds]
<shevy>
>> Foo
<ruboto>
shevy # => uninitialized constant Foo (NameError) ...check link for more (https://eval.in/376510)
<Mon_Ouie>
Paste the exact error message with backtrace
Outlastsheep is now known as zz_Outlastsheep
<shevy>
so the solution is to make it known to ruby atm0sphere
<jimmythehat>
hey all, does anyone know anything about domain extensions? I want to register a .solutions domain for a client but I am unaware of SEO (and other) implications? .today is another domain I want to register a company under but I'm unsure if should go for top level? Apologies if this is the wrong channel...direct me to where I can get answers concerning domain names?
jerematic has quit [Ping timeout: 256 seconds]
<sevenseacat>
seems completely unrelated to ruby
zz_Outlastsheep is now known as Outlastsheep
<Master44>
doesnt have so much to do with ruby lol xd
<Master44>
go to ubuntu or something
<MrBeardy>
jimmythehat: #SEO seems fairly popular
<sevenseacat>
nothing to do with ubuntu either
<Master44>
idc
<Master44>
:D
<MrBeardy>
then don't try to help
<sevenseacat>
it is better to keep your mouth closed and let people *think* you know nothing....
<Master44>
ye
<Master44>
xD
<sevenseacat>
...than to open your mouth and confirm it.
<Master44>
I just got burned lol
senayar has quit [Remote host closed the connection]
<jimmythehat>
thanks all. sevenseacat, bit mean
<Master44>
no comebacks for that one, you win gg
<sevenseacat>
jimmythehat: it wasnt directed at you. if it seemed that way, i apologize.
<sweeper>
the correct ending to that is "open your mouth and remove all doubt" iirc
Ariadeno has joined #ruby
<Master44>
well same thing
<sevenseacat>
sweeper: the original quote makes references to being an idiot too, but I wasnt going to say that :P
<sweeper>
:D
<Master44>
:D
<Master44>
how old are you guys?
<sweeper>
Master44: get off my lawn
<Outlastsheep>
14 'ver 'ere.
<sweeper>
19/f/cali here
<Master44>
how old are the people in this channel? btw
<ag4ve>
i don't really want to update/care about what ruby/gem my system is running - i'd prefer to stay local
someword has quit [Read error: Connection reset by peer]
<havenwood>
ag4ve: rvm rubygems latest
Tobarja has joined #ruby
Sirrr has quit [Quit: Leaving]
someword has joined #ruby
<sevenseacat>
well sorry, but you need to update it.
<ag4ve>
that seems to be working
fabrice31 has quit [Ping timeout: 272 seconds]
gauke has joined #ruby
goodcodeguy has joined #ruby
<ag4ve>
havenwood: thanks (i think - still building)
sleungcy has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
gauke has quit [Client Quit]
yeticry has quit [Ping timeout: 258 seconds]
someword has quit [Client Quit]
ndrei has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
zotherstupidguy has joined #ruby
<frank_o>
Hi! I got this Paperclip model which checks an upload (its temp file) whether it's an animated GIF. If so it sets `attachment_is_animated` in the db to true. But, because this job needs to go into the background, the temp file is probably gone by the time it's needed, so I end up with this InfiniteInterpolationError.
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
jeffc has quit [Max SendQ exceeded]
djbkd has joined #ruby
<atmosx>
athos_diddy: it works fine
huaming has joined #ruby
<atmosx>
athos_diddy: 0 is the position... of the element found.
David_H_Smith has joined #ruby
<athos_diddy>
oh
<athos_diddy>
lol
maxshelley has joined #ruby
<atmosx>
arrays in ruby start by '0'
freerobby has joined #ruby
<athos_diddy>
right
<athos_diddy>
i was thinking it was returning a count but of course it wouldn't
<athos_diddy>
thanks
jeffc has joined #ruby
jenrzzz has joined #ruby
mc_fail has quit [Ping timeout: 250 seconds]
<atmosx>
I can't believe people are using homeopathic medicine when their kid has 39+ fever...
mc_fail has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
<atmosx>
jfc
freerobby has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
timonv has joined #ruby
zubov has quit [Remote host closed the connection]
<havenwood>
"Two @@s are ugly, but remember that class variables are basically global variables with limited scope—so it encourages you not to use it." ~Matz 2006
Jarboe has joined #ruby
Scroff has joined #ruby
crdpink2 has joined #ruby
AmirolAhmad has joined #ruby
<shevy>
lol
<shevy>
matz is funny
crdpink has quit [Ping timeout: 265 seconds]
<shevy>
there is a lot of partial duplication in ruby though
<shevy>
local vars, instance vars (instance level versus class level instance vars), global vars, @@class_vars
rodfersou has joined #ruby
<shevy>
class versus module
<shevy>
aka subclass versis include/extend
<ag4ve>
is there a way to require a newly installed module w/o exiting out of irb?
<havenwood>
ag4ve: Like rerequire an already required file?
<ag4ve>
the module was installed through that whole paste
balazs has joined #ruby
thisirs has quit [Quit: ERC (IRC client for Emacs 25.0.50.3)]
huaming has left #ruby [#ruby]
<ag4ve>
... but wasn't installed when i started that first session
thisirs has joined #ruby
djbkd has quit [Remote host closed the connection]
<havenwood>
ag4ve: Gem.clear_paths
Channel6 has joined #ruby
tuelz2 has joined #ruby
<pipework>
havenwood: o/
<havenwood>
pipework: \o
datanoise has joined #ruby
<jhass>
?pry ag4ve
<ruboto>
ag4ve, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<jhass>
in particular for your usecase: gem-install foo
<havenwood>
ag4ve: Or yeah, from Pry you can: gem-install gem-name-here
MouseTheLuckyDog has joined #ruby
workmad3 has joined #ruby
<havenwood>
ag4ve: `Gem.clear_paths` works in Pry too, if you're installing from outside Pry.
<havenwood>
gem-install does the require too, or at least it tries to based on gem naming conventions
silverdu1t has quit [Remote host closed the connection]
silverdust has joined #ruby
<MouseTheLuckyDog>
What happened to #ruby-lang I ws in it a few days ago?
vivekananda has quit [Quit: Leaving]
<havenwood>
MouseTheLuckyDog: The channels have merged.
fabrice31 has joined #ruby
zipace has joined #ruby
<havenwood>
Welcome to those migrating from #ruby-lang!!
datanoise has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bootstrappm has joined #ruby
<shevy>
yay!
<MouseTheLuckyDog>
I'm calling IO.popen. How can I tell if there is any output that is not white space?
hewenhong has joined #ruby
<shevy>
jhass is the migration boss
<bootstrappm>
morning all
<ag4ve>
ah, thanks y'all
<shevy>
bootstrappm hello DID YOU JUST COME FROM ANOTHER MEETING
<bootstrappm>
hah no, its saturday :D
lolmaus has joined #ruby
<shevy>
what an excuse!
mrmargolis has joined #ruby
fujimura has joined #ruby
<shevy>
MouseTheLuckyDog don't you get a string back? then you could use a regex
k3asd` has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
Fooster has quit [Ping timeout: 246 seconds]
mc_fail_ has joined #ruby
olistik has quit [Ping timeout: 265 seconds]
zz_Outlastsheep is now known as Outlastsheep
Blaguvest has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
codecop has quit [Remote host closed the connection]
atomical has joined #ruby
sleungcy has quit [Quit: Connection closed for inactivity]
silverdu1t has quit [*.net *.split]
rgb-one has joined #ruby
mc_fail has quit [Ping timeout: 276 seconds]
<rgb-one>
What is the name of the Rails channel if there is one on freenode?
<adaedra>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<rgb-one>
Gracias
senayar has joined #ruby
sandelius has joined #ruby
Scroff has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 252 seconds]
mc_fail has joined #ruby
<havenwood>
MouseTheLuckyDog: Is #popen needed? If not, consider something simpler. Or for proper reading advice (and proper closing) say more about what you're doing.
mc_fail_ has quit [Ping timeout: 255 seconds]
f3lp has joined #ruby
<havenwood>
MouseTheLuckyDog: `pwd` =~ /\s/
mary5030 has joined #ruby
<sandelius>
has anyone tried refile? (file upload gem)
rgb-one has quit [Ping timeout: 256 seconds]
Rickmasta has joined #ruby
scripore has joined #ruby
yoongkang has joined #ruby
dcarmich has joined #ruby
RegulationD has joined #ruby
tkuchiki has joined #ruby
jottr has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
CustosLimen has quit [Ping timeout: 244 seconds]
lolmaus has quit [Ping timeout: 256 seconds]
gauke has joined #ruby
<MouseTheLuckyDog>
havenwood, I'm running a program in dry-run mode, I take it's output and grep for an error message. SO the output should either be all whitespace or the error message.
<havenwood>
MouseTheLuckyDog: How long might the output be? Just a few lines?
<havenwood>
MouseTheLuckyDog: Will the error message ever start with whitespace?
<MouseTheLuckyDog>
havenwood, you mean before the grep?
AmirolAhmad has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
AmirolAh_ has joined #ruby
<havenwood>
MouseTheLuckyDog: Is the return status from grep 0 for one case and an error for the other?
<rkazak>
MouseTheLuckyDog: \s+ ?
balazs has quit [Remote host closed the connection]
<havenwood>
MouseTheLuckyDog: Maybe just check the return status instead of the stdout/stderr.
psy_ has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
balazs has joined #ruby
psy_ has quit [Max SendQ exceeded]
affenhoden has joined #ruby
msgodf has quit [Remote host closed the connection]
nahtnam has quit [Quit: Connection closed for inactivity]
<havenwood>
MouseTheLuckyDog: If if you don't mind printing to stdout, "system returns true if the command gives zero exit status, false for non zero exit status"
<dangerousdave>
i did try %x(Setfile -d '#{day}/#{month}/#{year}') file_1/1/2015.jpg)
<dangerousdave>
not luck though
thiagovsk has joined #ruby
<dangerousdave>
havenwood, can I do that in ruby?
<havenwood>
dangerousdave: You can't interpolate with single quotes, change to double.
<dangerousdave>
ah
<dangerousdave>
also put superflous bracket in above example
<dangerousdave>
doh
<dangerousdave>
tried with double quotes, runs, no change though
nini1294 has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
roshanavand has joined #ruby
GriffinHeart has joined #ruby
<Mon_Ouie>
havenwood: I think you're missing the %x(…)
<dangerousdave>
Mon_Ouie, did you mean me?
<Mon_Ouie>
You can interpolate in %x(…), it doesn't matter if you have single, double or no quotes inside that
<havenwood>
Mon_Ouie: Yup
<havenwood>
dangerousdave: No, i just totally disregarded that you were running the command with %x
<havenwood>
dangerousdave: my mistake :)
<havenwood>
Mon_Ouie: Oops! :)
zotherstupidguy has quit [Quit: WeeChat 1.2]
mrsolo has quit [Quit: This computer has gone to sleep]
<dangerousdave>
:-)
<dangerousdave>
either way doesn't work
Scroff has quit [Remote host closed the connection]
segfalt has joined #ruby
djbkd has joined #ruby
<dangerousdave>
havenwood, so it can all be done in ruby?
natevick has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
sinkensabe has joined #ruby
<havenwood>
dangerousdave: Hrm, well it's really easy to bump the ctime and mtime with FileUtils.touch, but it's the birthtime you want to change, right?
GriffinHeart has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 244 seconds]
dseitz has joined #ruby
jpinnix______ has joined #ruby
dangerousdave has joined #ruby
IanVorn has joined #ruby
<dangerousdave>
havenwood, yes, so the photos are ordered in the photomanager correctly
houhoulis has joined #ruby
strmpnk has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
thatkid has quit [Quit: Page closed]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Client Quit]
glowcoil has joined #ruby
dangerousdave has joined #ruby
knowtheory has joined #ruby
<havenwood>
dangerousdave: yeah, so I guess shell out, hem
natevick has quit [Remote host closed the connection]
seph429 has quit [Ping timeout: 248 seconds]
<havenwood>
dangerousdave: system 'Setfile', '-d', "#{day}/#{month}/#{year}", 'file_1/1/2015.jpg'
<havenwood>
dangerousdave: Then check the new birthtime: File.birthtime 'file_1/1/2015.jpg'
cbetta has joined #ruby
<dangerousdave>
trying
Scroff has joined #ruby
<havenwood>
Or if you're not on Ruby 2.2, check the birthtime elsewise.
seph429 has joined #ruby
openmind has quit [Ping timeout: 265 seconds]
<dangerousdave>
Jurassic Park!
<dangerousdave>
havenwood, it worked, many thanks!
<havenwood>
dangerousdave: you're welcome
millerti has joined #ruby
swgillespie has joined #ruby
jeffc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Client Quit]
seph429 has quit [Ping timeout: 248 seconds]
blt has quit [Quit: WeeChat 1.2]
blt has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<miah>
This is UNIX I know this.
jlyndon has joined #ruby
elia has quit [Quit: Computer has gone to sleep.]
_seanc_ has quit [Quit: _seanc_]
seph429 has joined #ruby
jeffc has joined #ruby
mc_fail has quit [Ping timeout: 264 seconds]
HashNuke has joined #ruby
Spami has joined #ruby
sinkensabe has joined #ruby
lavros has quit [Quit: leaving]
mc_fail has joined #ruby
whoojemaflip has joined #ruby
NeverDie has joined #ruby
ghr has joined #ruby
greenbagels has quit [Quit: Leaving]
dangerousdave has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Feverio>
Hmm, a self method in Ruby is like a static method in C++/Java/C#?
<Feverio>
Does it mean that there will only be one instance of that method? A class instance?
ggherdov has joined #ruby
nini1294 has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 255 seconds]
adefa has joined #ruby
<havenwood>
Feverio: Yeah, that's a class instance method. We use `self.boo` instead of `Foo.boo` so you can change class names easier. You can swap `self` for `Foo` and it still works but is less idiomatic.
dmoe has joined #ruby
<Feverio>
havenwood, Yea, great thanks :)
ghr has quit [Ping timeout: 256 seconds]
<Feverio>
havenwood, And when I do, class << self, that means that the following methods under that are going to be class instances?
<havenwood>
Feverio: Yup, put your class instance methods in the `class << self` block and your instance methods outside of it.
<Feverio>
havenwood, Ok great, thank you :) Btw, how is it going with Elixir?
elton has quit [Read error: Connection reset by peer]
symm- has joined #ruby
aryaching has quit []
elton has joined #ruby
elton has quit [Client Quit]
nini1294 has joined #ruby
<Feverio>
Also, suppose I did, class Foo; class << boo; ...., now all the methods under class << boo; are singleton methods to the object boo?
mc_fail has quit [Ping timeout: 256 seconds]
mjc_ has joined #ruby
frankS2 has joined #ruby
<havenwood>
Feverio: Having fun playing with its OTP abstractions and really grok the language in general.
<havenwood>
Tasks, GenEvents, GenServers and Agents, oh my!
adefa has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
holsee_ has joined #ruby
mc_fail has joined #ruby
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
Feverio: Yup, sounds right to me.
pontiki has joined #ruby
<havenwood>
Feverio: Though that last example isn't something you see done.
Nahra has joined #ruby
roolo has joined #ruby
lessless has joined #ruby
thesheff17 has joined #ruby
nini1294 has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
<havenwood>
Feverio: Lots and lots of `class << self` but almost no `class << anything_else`.
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jmcc has joined #ruby
dionysus69 has quit [Client Quit]
daxroc has joined #ruby
mary5030 has quit [Remote host closed the connection]
weemsledeux has joined #ruby
xxneolithicxx has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
hewenhong has quit [Remote host closed the connection]
<havenwood>
Feverio: Alternatively you could define `def version= v` and `def version` inside and outside the `class << self` block.
Kharma has joined #ruby
AndyBotwin has joined #ruby
<havenwood>
Feverio: Or the `def self.version` variant if you prefer.
twistedpixels has joined #ruby
<Feverio>
havenwood, Yea understood it. So I was trying to give the user the current version of my application. In that case, it should be a class instance right?
abuzze has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
<havenwood>
Feverio: Use a constant.
abuzze has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 265 seconds]
j75 has joined #ruby
<havenwood>
Feverio: Commented on the gist above.
<Feverio>
havenwood, Yea but a class constant?
_chs_ has joined #ruby
<Feverio>
Es
<Feverio>
Else there will be a new variable for each class instance.
_chs_ is now known as Guest5307
Mia has joined #ruby
Mia has joined #ruby
fujimura has joined #ruby
<havenwood>
Feverio: In real ruby gems the version is a constant `VERSION` that is defined in the `lib/gem-name/version.rb` file.
<havenwood>
`class X; VERSION = '...' end` or `module X; VERSION = '...' end`
OrbitalKitten has joined #ruby
hewenhong has joined #ruby
<Feverio>
havenwood, Why isn't it a class variable?
psy_ has joined #ruby
<havenwood>
Feverio: Often a frozen String literal. The idea is that a version should be immutable per release.
zipkid has joined #ruby
Axy has quit [Ping timeout: 258 seconds]
<havenwood>
Feverio: Class variables are intentionally ugly to discourage use. Like global variables.
iBloodLust_ has quit [Quit: Page closed]
pskosinski has joined #ruby
<Feverio>
havenwood, You end up with multiple version instances then.
swgillespie has quit [Max SendQ exceeded]
someword has quit [Quit: Leaving.]
fujimura has quit [Ping timeout: 244 seconds]
swgillespie has joined #ruby
<havenwood>
Feverio: Do you want multiple instances with different versions?
<Feverio>
havenwood, No?
<havenwood>
Feverio: So the constant will give a warning if redefined and the frozen string prevents modification.
<Feverio>
havenwood, Still, if it's class specific it shouldn't be an object instance.
<havenwood>
Feverio: I'm not sure I follow there.
<havenwood>
Feverio: Say more?
<Feverio>
havenwood, class X; VERSION = '...'; end
<Feverio>
There will be a new variable instance of VERSION for each object.
TheSavior2 has joined #ruby
<havenwood>
Feverio: No, just one.
<havenwood>
Feverio: Unless I'm misunderstanding what you mean.
<Feverio>
This is int tho, but just think of the scope.
<Feverio>
VERSION here is a class instance. Even if you have 1000 objects, there is only one VARIABLE instance for all those objects.
<TheSavior2>
Download the Website Worth Calculator Nulled attathment on the website followd by images: http://www.websiteadverts.org/forum/showthread.php?tid=16 you might think it's fake, well it's not, after all it's only one click isn't it?
<Feverio>
It's static.
<TheSavior2>
Download the Website Worth Calculator Nulled attathment on the website followd by images: http://www.websiteadverts.org/forum/showthread.php?tid=16 you might think it's fake, well it's not, after all it's only one click isn't it?
TheSavior2 has quit [Client Quit]
IanVorn has joined #ruby
ogpastaling has joined #ruby
postmodern has joined #ruby
dangerousdave has joined #ruby
_seanc_ has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
ebbflowgo has joined #ruby
tuelz2 has quit [Quit: WeeChat 1.1.1]
dzejrou has joined #ruby
timonv has joined #ruby
jxf has joined #ruby
<havenwood>
Feverio: So references to the same constant from multiple instances?
alekst_ has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
<Feverio>
havenwood, Yes. Memory is allocated for only one constant variable, here VERSION. Non-static variables are object-bounded, memory is allocated with each object.
vikram___ has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
kies has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
ebbflowgo has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
ebbflowgo has quit [Client Quit]
djbkd has joined #ruby
apofis has joined #ruby
gregf has joined #ruby
mh888 has joined #ruby
ebbflowgo has joined #ruby
dangerousdave has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apofis has quit [Read error: Connection reset by peer]
mh888 has left #ruby [#ruby]
apofis has joined #ruby
bttf has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
mandarinkin has quit [Ping timeout: 252 seconds]
ebbflowgo has joined #ruby
hewenhong has quit [Remote host closed the connection]
dmmoody has joined #ruby
hewenhong has joined #ruby
<havenwood>
Feverio: I don't see any issue with how Ruby constants work and using them for a module or class version. Are you running into an issue or just imagining there might be one? If the latter, can you demonstrate it in irc or pry?
<havenwood>
s/irc/irb
thisirs has quit [Ping timeout: 250 seconds]
c355E3B has joined #ruby
mandarinkin has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
autrilla has joined #ruby
mrsolo has joined #ruby
AmirolAh_ has quit []
mengu has joined #ruby
balazs has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
ur5us has joined #ruby
mc_fail has quit [Ping timeout: 272 seconds]
securedocs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
mc_fail has joined #ruby
sandstrom has joined #ruby
chris-sonar has joined #ruby
skandi has joined #ruby
balazs has joined #ruby
jenrzzz has joined #ruby
<hectortrope>
Hi I have this error while installing ruby http://ix.io/iXF
edwinvdgraaf has joined #ruby
Ox0dea has joined #ruby
<Ox0dea>
hectortrope: Are you using a rather old machine?
senayar has quit [Remote host closed the connection]
<havenwood>
hectortrope: You could start an issue with ruby-build, since that's what rbenv uses to install Ruby. Or if you don't need rdoc just skip it.
<hectortrope>
havenwood: ok Thanks
mrmargolis has joined #ruby
<Ox0dea>
The process got killed for using too many resources.
jefus has quit [Ping timeout: 252 seconds]
diegoviola has quit [Remote host closed the connection]
<Ox0dea>
I don't think building Ruby will cause that on any modern machine.
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
<bootstrappm>
hectortrope are you on an AWS micro instance?
<existensil>
he said vagrant
<bootstrappm>
woops
<existensil>
might be configured with too little memory
zotherstupidguy has quit [Ping timeout: 272 seconds]
<bootstrappm>
^ thats what i was gonna say
<bootstrappm>
I have one that is one micro instance seeing poorer performance than usual, getting some processes killed for lack of memory
hewenhong has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<hectortrope>
bootstrappm: no vagrant
<hectortrope>
local machine
<bootstrappm>
ok
mc_fail_ has quit [Read error: Connection reset by peer]
<bootstrappm>
amount of memory you set on the vagrant?
<hectortrope>
512mb ram
mdz_ has joined #ruby
jackjackdripper has joined #ruby
<hectortrope>
not enough?
<Ox0dea>
Apparently not.
<existensil>
probably not. I'd at least double it. Or, just skip the rdoc install as suggested previously.
<pontiki>
i've compiled 2.2.0 in 512 on an RPi
<hectortrope>
I run everything from ssh
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
<pontiki>
as it should be one
<pontiki>
done
lalops has joined #ruby
<existensil>
yeah, come to think of it I didn't have any problem doing rvm installs from source on a 512MB rpi
<existensil>
maybe a bug with ruby-build or rdoc
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mc_fail has joined #ruby
mdz_ has quit [Ping timeout: 258 seconds]
kies has quit [Remote host closed the connection]
hewenhong has joined #ruby
elton has joined #ruby
<jhass>
meh
mary5030 has joined #ruby
<jhass>
looks like they're changing host now
hewenhong has quit [Remote host closed the connection]
mrmargolis` has joined #ruby
bruno- has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
mrmargolis` has quit [Remote host closed the connection]
dzejrou has quit [Read error: Connection reset by peer]
apofis has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
zotherstupidguy has quit [Ping timeout: 264 seconds]
kadoppe has quit [Ping timeout: 258 seconds]
endash has joined #ruby
kadoppe has joined #ruby
jottr has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeff_c has joined #ruby
jeff_c has quit [Client Quit]
apofis has quit [Read error: Connection reset by peer]
apofis has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
bootstrappm has quit [Ping timeout: 250 seconds]
bootstrappm has joined #ruby
kies has joined #ruby
Fooster has joined #ruby
ruv has joined #ruby
apofis has quit [Quit: This computer has gone to sleep]
kstuart_ has joined #ruby
Fooster has quit [Ping timeout: 250 seconds]
jeffc has left #ruby ["Quitting..."]
_seanc_ has quit [Quit: _seanc_]
kstuart has quit [Ping timeout: 250 seconds]
jcoe has joined #ruby
sinkensabe has joined #ruby
mikecmpbll has quit [Quit: ciao.]
AlHafoudh has quit [Ping timeout: 264 seconds]
ringarin has joined #ruby
adefa has joined #ruby
adac has quit [Ping timeout: 250 seconds]
maciejczyzewski has joined #ruby
maciejczyzewski has left #ruby [#ruby]
AlHafoudh has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
sarkis has joined #ruby
<sarkis>
hey all - is there a way to set -o StrictHostKeyChecking=no on net-ssh? I can't figure this out
AlHafoudh has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
<ytti>
sarkis, maybe :paranoid => false
<ytti>
it is pretty badly named option
ringarin has quit [Ping timeout: 246 seconds]
<ytti>
i'd call it it :secure => false
<sarkis>
hah
<sarkis>
ytti thanks
adefa has quit [Ping timeout: 244 seconds]
Eiam` has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ogpastaling has quit [Remote host closed the connection]
Fooster has joined #ruby
veleno has joined #ruby
ghr has joined #ruby
Scroff has quit [Remote host closed the connection]
vikaton has quit []
djbkd has quit [Remote host closed the connection]
mc_fail has quit [Ping timeout: 265 seconds]
Scroff has joined #ruby
djbkd has joined #ruby
Scroff has quit [Remote host closed the connection]
Scroff has joined #ruby
mc_fail has joined #ruby
_seanc_ has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 252 seconds]
e1nh4nd3r has joined #ruby
veleno has quit [Quit: veleno]
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
jcoe has joined #ruby
sandelius has joined #ruby
Narzew has joined #ruby
kies has quit [Ping timeout: 264 seconds]
snsei has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
affenhoden has quit [Ping timeout: 276 seconds]
malconis has joined #ruby
bootstrappm has quit [Ping timeout: 258 seconds]
affenhoden has joined #ruby
snsei has quit [Remote host closed the connection]
chipotle has joined #ruby
seanot has joined #ruby
veleno has joined #ruby
seanot has quit [Client Quit]
seanot has joined #ruby
LJT has joined #ruby
snsei has joined #ruby
fujimura has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
<Feverio>
havenwood, Sorry, I fell asleep. The question is, how many instances of a constant variable in a class are produced for x objects?
<Feverio>
If I have 100 objects, are there 100 different VERSION instances for each object?
<Feverio>
Like, 100 VERSION copies.
eggoez has joined #ruby
datanoise has joined #ruby
mrsolo has joined #ruby
<sarkis>
ytti: i set ssh_options { paranoid: false } didn't seem to do it :(
fujimura has quit [Ping timeout: 244 seconds]
roolo has quit [Remote host closed the connection]
<existensil>
depends on what you meant by constant. class User; VERSION="1.0"; end would result in only one VERSION object no matter how many times you call User.new
snsei has quit [Quit: Leaving...I hear my mom calling...]
vin` has joined #ruby
<Ox0dea>
>> class Foo; BAR = at_exit { p 1 }; end; 10.times { Foo.new }
<Feverio>
That's what I was looking for, thought it was object bounded like in C++.
<existensil>
it will cry if you reassign it
<Feverio>
Ox0dea, Static is scope.
<existensil>
but silently let you mutate it
veleno has quit [Quit: veleno]
<Feverio>
existensil, Yea.
kies has joined #ruby
allcentury has quit [Quit: WeeChat 1.1.1]
<Feverio>
That's for all constants or only constants inside classes?
caseypatrickdris has quit [Remote host closed the connection]
doctorly has joined #ruby
bootstrappm has joined #ruby
Jackneill has quit [Remote host closed the connection]
<Ox0dea>
Feverio: Constants get set on self unless you're at the top level.
Cyberheb has quit [Quit: Computer has gone to sleep.]
<existensil>
all constants are the same
<existensil>
regardless of whether they are inside another class/constant
<Ox0dea>
existensil: What do you mean?
<Feverio>
Ox0dea, That's not what I asked. We are talking about memory allocation.
<Feverio>
existensil, Oh okey I see.
<existensil>
a constant is just a static container for an object in ruby. They can exist within Object (global constants) or within other classes/modules
jefus has joined #ruby
seanot has quit []
<existensil>
classes themselves are a static container for an instance of Class
<existensil>
just another constant that points to a Class instance
caseypatrickdris has joined #ruby
<existensil>
the convention of CONSTANTS being all caps and ClassNames being camel case is just a convention. Anything that starts with an upper case letter in Ruby is a constant
micmus has quit [Quit: Leaving]
jefus has quit [Client Quit]
codecop_ has quit [Remote host closed the connection]
<existensil>
well, methods can also be capitalized, hence Kernel.URI and others
<existensil>
you can make an instance of Class without assigning it to a constant
Musashi007 has quit [Quit: Musashi007]
balazs_ has joined #ruby
<Feverio>
Ox0dea, "A constant name starts with an uppercase letter followed by name characters. Class names and module names are constants and follow the constant naming convention."
<existensil>
was just pointing out that traditional classes are just taking an instance of class and assigning it to a constant
greenbagels has joined #ruby
ruv has quit [Ping timeout: 252 seconds]
<Feverio>
It's like saying then, private methods are not private at all :)
<existensil>
difference between constants and methods:
<existensil>
>> class Foo; Bar = "yin"; def self.Bar(*a); "yang"; end; end; [Foo::Bar, Foo.Bar, Foo.const_get(:Bar), Foo::Bar(:a)]
decoponio has quit [Read error: Connection reset by peer]
lele is now known as Guest24
decoponio has joined #ruby
scripore has joined #ruby
doctorly has quit [Ping timeout: 252 seconds]
caseypatrickdris has quit [Remote host closed the connection]
AndyBotwin has quit [Quit: Leaving]
Narzew has quit [Ping timeout: 265 seconds]
duncannz has joined #ruby
balazs has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
endash has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
c355E3B has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Renich has joined #ruby
scripore has quit [Ping timeout: 276 seconds]
vin` has quit [Ping timeout: 256 seconds]
thisirs has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
attlasbot has joined #ruby
malconis has joined #ruby
jaxxstorm has quit [Ping timeout: 265 seconds]
rbowlby has joined #ruby
YamakasY has joined #ruby
jaxxstorm has joined #ruby
<YamakasY>
hi guys... as there is no scl repo for centos 7, is there a rubygems repo for centos 7 somewhere ?
caseypatrickdris has joined #ruby
ur5us has quit [Remote host closed the connection]
Narzew has joined #ruby
caseypatrickdris has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 265 seconds]
michas has joined #ruby
<bootstrappm>
YamakasY: you trying to install a more recent version of ruby on centos_
<bootstrappm>
?
DLSteve has quit [Quit: Leaving]
mrsolo has joined #ruby
<YamakasY>
bootstrappm: yep can do, but if there is some ruby repo, I would be fine
<bootstrappm>
no, i'm confused what you're asking YamakasY ... what do you mean some ruby repo? A repo that has a more recent version of repo? a repo with ruby gems?
<YamakasY>
bootstrappm: yeah that ruby is just upgraded to the latest version
chipotle has quit [Quit: cheerio]
rodfersou has quit [Remote host closed the connection]
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bootstrappm>
YamakasY: so ruby in the package managers (apt-get / yum) usually lags behind current ruby. Recommended way to install ruby is ruby-install, rbenv + ruby-build, etc.
<bootstrappm>
I personally use rvm
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<YamakasY>
bootstrappm: yes I saw... I need to install foreman-proxy on centos 7
<jhass>
eh, if I have to configure I have no issue to add --env-shebang to my gemrc
<YamakasY>
so anyone a clue ?
RegulationD has quit [Ping timeout: 272 seconds]
<postmodern>
jhass, yeah i put --env-shebang --user-install in .gemrc on random ubuntu systems
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
granted I have a bit uncommon setup where I have the system ruby available as an alias of its version
<jhass>
so I can chruby 2.2 and get the system ruby
<jhass>
but currently my issue is that with --user-install --env-shebang gem install installs to different locations under chruby system and chruby 2.2
Musashi007 has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
OrbitalKitten has quit [Client Quit]
idafyaid has quit [Ping timeout: 250 seconds]
bantic has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
OrbitalKitten has joined #ruby
mdz_ has joined #ruby
<YamakasY>
this sucks
<postmodern>
i wonder if we should even bother separate gems by ruby version now that rubygems can compile extensions on-the-fly
<jhass>
as said IMO it should just choose the same gem home --user-install chooses
fujimura has joined #ruby
<jhass>
ideally whatever that is for the actually selected ruby version
mrsolo has quit [Quit: This computer has gone to sleep]
eggoez has joined #ruby
mdz_ has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Client Quit]
segfalt has quit [Ping timeout: 276 seconds]
michas has quit [Read error: Connection reset by peer]
fujimura has quit [Ping timeout: 244 seconds]
segfalt_ has joined #ruby
A124 has joined #ruby
workmad3 has joined #ruby
OrbitalKitten has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
bosma_ has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]