baweaver has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
x1337807x has joined #ruby
baweaver has joined #ruby
x1337807x has quit [Max SendQ exceeded]
cassianoleal has joined #ruby
x1337807x has joined #ruby
supersym has joined #ruby
nkumari has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
rshetty has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
aaronrl has joined #ruby
bMalum has quit [Ping timeout: 240 seconds]
FutureTense has quit [Ping timeout: 244 seconds]
bMalum has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
adriancb has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Dopagod has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
aaronrl has left #ruby [#ruby]
adriancb has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dts has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
MartynKeigher has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
Guest36707 has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 245 seconds]
jbw has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
karmatr0_ has quit [Remote host closed the connection]
nkumari has joined #ruby
JoshGlzBrk has quit [Ping timeout: 272 seconds]
shvelo has quit [Ping timeout: 245 seconds]
tekacs has joined #ruby
tekacs is now known as Guest70651
jbw has joined #ruby
santi2010 has joined #ruby
lukeholder has joined #ruby
Asher has joined #ruby
<santi2010>
Hi guys! Had any of you worked with hebrew characters in ruby? Im dealing with a problem.
tvw has quit []
redjack1964 has quit [Remote host closed the connection]
xymbol has quit [Quit: Be back later ...]
Tranquility has quit [Ping timeout: 272 seconds]
Tranquility has joined #ruby
xymbol has joined #ruby
lbrf has quit [Quit: Be back later ...]
poweratom__ has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
kl has quit [Ping timeout: 245 seconds]
wjimenez_ has joined #ruby
xymbol has quit [Ping timeout: 256 seconds]
parabolize has joined #ruby
rshetty has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<benzrf>
santi2010: oh?
crack_user has quit [Ping timeout: 258 seconds]
cassianoleal has quit [Quit: (null)]
toretore has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
<santi2010>
benzrf: Im using Curb gem and Nokogiri to get some info form a website. The website is in Jewish. But when I show the characters in the console, I dont see them correctly. Im using UTF-8 for enconding. Any idea how to solve that?
<benzrf>
"in jewish"?
wjimenez5271 has quit [Ping timeout: 255 seconds]
<benzrf>
santi2010: how incorrectly
s00pcan has quit [Remote host closed the connection]
<benzrf>
santi2010: backwards?
adriancb has quit [Read error: Connection reset by peer]
<volty>
:)
wjimenez_ has quit [Ping timeout: 255 seconds]
<volty>
check the encoding of the page, first of all (I am not saying that this is the prob)
rshetty has quit [Ping timeout: 250 seconds]
adriancb has joined #ruby
<eam>
I've worked with some hebrew characters in ruby. They're like any other developers
<benzrf>
sdrawkcab
mikepack_ has quit [Remote host closed the connection]
b3itz has joined #ruby
<volty>
santi2010: try copy & paste - from the web page to your console "<pasted>" and see if it prints ok
sklik has joined #ruby
<santi2010>
benzrf: Instead of this סוכן מטפל, I get this: âøéðùèééï
<b3itz>
eam: are you alive?
<benzrf>
santi2010: whoa
dcunit3d has quit [Ping timeout: 244 seconds]
<santi2010>
volty: I already try it, and they printed ok
<santi2010>
benzrf: Any clue?
<Obfuscate>
santi2010: Your terminal needs to have support for utf8, and at least one of your current system LOCALE/LANG encodings should be UTF-8.
ghr has joined #ruby
<volty>
maybe a check point could help
<benzrf>
santi2010: little
cirn0 has joined #ruby
<santi2010>
Obfuscate: If I copy and paste the hebew characters in the terminal, and I do something like this : puts "סוכן מטפל" , I cant see it ok.
<b3itz>
how can i do a rjust range like .to_s.rjust({1,3}, '0')
<Obfuscate>
santi2010: Can or cant?
<b3itz>
such if a number is 4, it will fill in 004
rshetty has joined #ruby
<shevy>
b3itz is that what rjust will do
nonks_ has joined #ruby
<b3itz>
was that a question?
boombadaroomba has quit [Remote host closed the connection]
<shevy>
rpag you are a curious person :) I always try to not have to think why people need something hahaha
rshetty has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
santi2010 has joined #ruby
<santi2010>
Obfuscate, benzrf, volty: If I print a Nokogiri node as raw html, I get something like this: àåøé åøãé
<shevy>
b3itz yes I would really write a method that does that
stunder has quit [Quit: Screw you guys I'm going home]
<shevy>
b3itz poor man solution is to simply .split('.'), properly pad the last entry, then rejoin it again
<b3itz>
shevy: write it in its own def?
<shevy>
sure, a method
<shevy>
def whatever(i); end
<b3itz>
thats exactly what my prof said to do
<shevy>
I think there is another way though
<santi2010>
Obfuscate, benzrf, volty: Did you say something? My chat had a problem and get disconected.
<b3itz>
not the method part
<shevy>
using the IP module
spastorino has joined #ruby
freerobby has joined #ruby
<b3itz>
the 'poor man way'
sevenseacat has left #ruby [#ruby]
parduse has quit [Ping timeout: 255 seconds]
<shevy>
yes, it's to not try to be too clever and instead simply go and solve the problem
<shevy>
regardless of how stupid the solution is
<Obfuscate>
santi2010: Can you see the correct characters when pasting to the terminal?
<shevy>
b3itz you want your method to give you the desired result
<volty>
or with us that do not know how to setup it properly
<b3itz>
shevy: ew dude thats ugly
<shevy>
lol
<santi2010>
volty: Who says?
<shevy>
b3itz ok show me your code that does it
<b3itz>
:)
<shevy>
btw b3itz save such gist in a .rb end ok? then it will be automatically colourized - right now you stored as .txt
<Obfuscate>
santi2010: I have not. Your problem is presumably just an encoding mismatch, so I'd check the help for Encoding, and then try to find out what terrible things are happening inside those libraries.
<volty>
google.com/search?q=nokogiri+hebrew
davedev2_ has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
xymbol has joined #ruby
beef-wellington has joined #ruby
<b3itz>
shevy: whats this splitted[-1,1]
<Obfuscate>
Yes, consulting with google is (hopefully) an obvious step.
<Loplin>
Hello. Has anyone here had luck installing nokogiri on ubuntu 14.04?
<momomomomo>
Loplin: what’s the issue you’re having?
<mozzarella>
yes
<volty>
i have nokogiri. What 14.04 has to tdo it ?
<volty>
with it
<momomomomo>
!gist
<helpa>
http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<volty>
ah, you are trying to install it as an ubuntu package
<momomomomo>
:|
devoldmx has quit [Ping timeout: 258 seconds]
<Loplin>
volty: no, I have tried installing it multiple ways (and multiple versions) through gem install
<momomomomo>
Loplin: !errors
<momomomomo>
Loplin: !code
<helpa>
Loplin: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
<Loplin>
Just a sec
asteros has joined #ruby
<volty>
whatever the prob, a gem install has nothing to do with ubuntu's version
emmesswhy has joined #ruby
emmesswhy has quit [Remote host closed the connection]
<rpag>
!pastie
<rpag>
!paste
<rpag>
w.e
<Loplin>
Gathering relevant things to paste..
mygreekgod has quit [Quit: There is another world]
bklane has quit [Remote host closed the connection]
sklik has quit [Remote host closed the connection]
dts|pokeball has left #ruby [#ruby]
<Loplin>
This is after googling around for a number of hours. Various recommendations included apt-getting build-essentials, libxml2-dev, libxslt-dev, trying various versions, and trying with --use-system-libraries
<Loplin>
gr33n7007h: I did that, and also tried ruby2.0 + ruby2.0dev
econerd4ever has quit [Client Quit]
davasaurous has quit [Remote host closed the connection]
<momomomomo>
not sure why the sudo is there
ghr has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
fabrice31 has quit [Ping timeout: 255 seconds]
<volty>
yes, why did you paste 'sudo' instead of pasting the exact command you gave ?
bricker`work has quit [Ping timeout: 264 seconds]
<momomomomo>
because it’s being installed on system ruby :|
nateberkopec has joined #ruby
<Loplin>
I have trouble copy+pasting on my laptops trackpad... made an error it looks like... I'll recopy that
VBlizzard has joined #ruby
tyfighter has quit [Quit: tyfighter]
<Loplin>
that line was ....# sudo gem install nokogiri
marr has quit [Ping timeout: 272 seconds]
<Loplin>
momomomomo: Yes, it is running on vm, I wasn't concerned about cluttering system
Musashi007 has joined #ruby
<momomomomo>
you probably spent more time messing around with that and apt-get install ruby2 and removing 1.9.1 than might have been needed
<Loplin>
momomomomo: I literally only want to attempt some changes in vagrant, then destroy the vm
<volty>
without -- --use-system-libraries
Sgeo_ has joined #ruby
Blizzy has quit [Ping timeout: 255 seconds]
<Loplin>
volty: That was only the most recent attempt I made, I could give a log of every attempt I've made, including the various versions I've tried, with and without --use-system-libraries if that level is needed
Blizzy has joined #ruby
<Loplin>
momomomomo: Perhaps. I'm not a ruby developer so I am not familiar with the tools and didn't expect this much difficulty
<volty>
whatever your difficulties with pasting it is quite quite strange to paste the ERROR and then checking checking ....
<momomomomo>
with any system language, it’s usually a bad idea to mess with it
VBlizzard has quit [Ping timeout: 258 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 255 seconds]
lucyinthesky has joined #ruby
ghostmoth has joined #ruby
Galas has quit [Quit: Leaving...]
<Loplin>
volty: Not sure what you mean by "checking checking.."?
Sgeo has quit [Ping timeout: 244 seconds]
<Loplin>
momomomomo: Err, I've never had a problem installing to python's system libraries
<momomomomo>
you do when the default python is not the version you need; and then you overwrite it
<Loplin>
momomomomo: unless you mean changing to use ruby2.0, but I tried ruby and ruby-dev first
Sgeo has joined #ruby
<momomomomo>
anyhow, installing ruby2 now on 14.04
byprdct has quit [Ping timeout: 256 seconds]
<momomomomo>
i’ll let you know in a second
<volty>
i can't remember the order of output, but it seems strange that you have 'Failed' and then, on, checking for the rest
<Loplin>
I'll be right back, running low on battery...
<momomomomo>
volty: probably has to do with a bad copy paste
<volty>
naaaa
<volty>
let him paste properly, he can redirect everything to a file, he is not a novice
<Loplin>
Oh... haha, let me recopy.. My terminal messed up after doing an apt-get that messed it up
robustus has joined #ruby
<Loplin>
scrolling back is old data and I forgot abou tthat
TheNet has quit [Remote host closed the connection]
claptor has joined #ruby
<momomomomo>
Loplin: redirect to file, paste file
<Loplin>
but I need to go find an outlet, so I'll be back in about 5 min.
roolo has joined #ruby
<volty>
there are some trolls around breaking eggs with strange problems. I am not stating that he is a troll, I just warn you about their presence
TheNet has joined #ruby
ghostmoth has quit [Client Quit]
nonks_ has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
razieliyo_ has quit [Quit: Saliendo]
<momomomomo>
or whatever ruby manager you wish
TheNet has joined #ruby
<micah>
how can I pull the values for contact_emails if I have a yaml file with environments: development: contact_emails: - email@example.com ? I'm doing @environments.keys.sort.each do |env_name| and then trying to reference the hash with env_name[contact_emails] but that isn't right somehow
<momomomomo>
micah: define “isn’t right somehow”
<Loplin>
momomomomo: I'll give that a try. Is using apt's ruby not recommended then?
<momomomomo>
not unless you know exactly what you’re doing
<micah>
momomomomo: its not finding the value for contact_emails
<gr33n7007h>
Loplin, I'm using apt's version installed fine for me ;)
<jhass>
micah: literally env_name[contact_emails]? because that should be a string key and I guess you didn't do contact_emails = 'contact_emails' somewhere earlier. so env_name['contact_emails']
lucyinthesky has joined #ruby
dda has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
<micah>
jhass: oh huh! that must be it
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
koderok has joined #ruby
Vile` has joined #ruby
koderok has quit [Remote host closed the connection]
dda has joined #ruby
<volty>
ahah, succeeded to consult the meanwhile-log with that crappy trackpad
<micah>
jhass: contact_emails is actually an array, so I think I need to figure out how I can get the values of an array that is in a hash
<volty>
what's the gem command to list the dependencies ?
sinequan_ has quit [Remote host closed the connection]
<jhass>
micah: time to do as you've been told then, share the actual errors you get (those of my suggestion too)
workmad3 has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
pietr0 has quit [Quit: pietr0]
snowpeas has joined #ruby
lucyinthesky is now known as myvoodoodoll
<gr33n7007h>
volty, gem dependency <gem>
b3itz has quit [Ping timeout: 246 seconds]
Tranquility has quit [Quit: Connection closed for inactivity]
mistergibson has joined #ruby
mji has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
<volty>
gr33n7007h: that simple? I never needed it. Thx ;)
<gr33n7007h>
np :)
Sawbones_ has joined #ruby
abuzze has joined #ruby
arescorpio has quit [Remote host closed the connection]
<volty>
any of you that has nokogiri + qtruby installed: please try: require 'Qt'; require 'nokogiri'; Qt::Application.new(ARGV) // and that's all, here it segfaults
supersym has quit [Ping timeout: 244 seconds]
abuzze_ has quit [Ping timeout: 250 seconds]
myvoodoodoll has left #ruby ["Leaving"]
lampd1 has joined #ruby
dda has quit [Quit: logging out.]
fuhgeddaboudit has joined #ruby
TheNet has quit [Quit: Leaving...]
Sawbones_ has quit [Remote host closed the connection]
arescorpio has joined #ruby
wallerdev has quit [Quit: wallerdev]
deric_skibotn has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
<Phrohdoh>
This is frustrating. How do I properly check a bool value of an object type? My Cell type has an :alive attribute (property?) that in the initialize method is set to false, the line world.cells.find_all { |c| c.alive } is throwing an error
troyready has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<Phrohdoh>
How should I fix that query? The error is: undefined method `alive?' for #<Array:0x007f8650a17718> (NoMethodError)
<Phrohdoh>
It persist if I remove the `?`
giuseppesolinas has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
<Phrohdoh>
oh huh wait sorry, world.cells is an array of arrays
mgorbach has quit [Ping timeout: 250 seconds]
mbeasley has joined #ruby
lucyinthesky has joined #ruby
PanPan has joined #ruby
rshetty has quit [Remote host closed the connection]
adriancb has joined #ruby
<Phrohdoh>
Got it, this is an odd syntax :)
Phrohdoh has left #ruby [#ruby]
mgorbach has joined #ruby
karmatr0n has joined #ruby
tyll has joined #ruby
Loplin has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
solidus-river has quit [Ping timeout: 264 seconds]
<benzrf>
convert +antialias -background white -fill black -font ~/.fonts/BUD-Pixel.ttf -pointsize 200 'label:foo -trim out.png
<benzrf>
^why this not work
<benzrf>
er. rather.
<benzrf>
i read image 'label:foo'
<benzrf>
then i add those props to a Draw
<benzrf>
then i do the_draw.draw img
<benzrf>
it does not help
moritzs has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
kl has quit [Ping timeout: 264 seconds]
hydrozen has quit [Client Quit]
asteros has quit [Client Quit]
CrazyM4n has quit [Quit: Lost terminal]
fabrice31 has quit [Ping timeout: 272 seconds]
tejas-manohar has joined #ruby
<tejas-manohar>
hey guys
lucyinthesky has quit [Quit: Leaving]
<tejas-manohar>
is there !== in ruby like there is in js
<tejas-manohar>
or just !=
<Phrohdoh>
!=
<tejas-manohar>
so i can access @vars under all routes and methods in a ruby file (part of sinatra app)
<tejas-manohar>
since its instance var
<tejas-manohar>
?
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
lucyinthesky has joined #ruby
<Phrohdoh>
afaik routes is a rails thing, not pure ruby. But you could access it under a passed reference to the object containing it, or if you pass it (@vars) directly
<jhass>
Phrohdoh: that's because of it's the last expression in your block, so it becomes its return value and anything if false #=> nil
<jhass>
so you add nil's to your array
<Phrohdoh>
yeah just figured that out
goodenough has quit [Remote host closed the connection]
<Phrohdoh>
I forgot that construct of ruby
<Phrohdoh>
fixed it, thanks though :)
ajaiswal has joined #ruby
versatiletech has joined #ruby
<jhass>
replace do |r| with do |x| btw
<Phrohdoh>
no thanks, that throws off coords
<jhass>
> Array.new(3) {|x| x }
djbkd has joined #ruby
<jhass>
> Array.new(3) {|x| x }>
<Phrohdoh>
and r and c make sense
<jhass>
bah, sorry, pebkac
<Phrohdoh>
pebkac?
<jhass>
problem exists between keyboard and chair ;)
<Phrohdoh>
I'm not having an issue here :)
<jhass>
anyway, r and c can't mean anything, they're single letter vars ;P
<Phrohdoh>
sure they can
<jhass>
I'm saying they're bad variable names
<Phrohdoh>
perhaps, but they make sense to me and atm no one else is using the codebase
<sevenseacat>
lol
<jhass>
in the code you posted they look like redundant placeholders because you think you need to specify them
<Phrohdoh>
they're pretty context heavy
<Phrohdoh>
I was told you have to to iterate
<jhass>
one more reason
<pontiki>
row and column?
<Phrohdoh>
yep
lemur has quit [Ping timeout: 264 seconds]
<pontiki>
seems like the obvious meaning, anyway, given GoL
yfeldblum has joined #ruby
<jhass>
I'd still write that out
asteros has joined #ruby
<jhass>
world.cells.each do |arr| arr is not nice too, it describes the datastructure not the value
<jhass>
I'd go with cells there
<Phrohdoh>
but it isn't a cell
<Phrohdoh>
it is an array
preyalone has quit [Quit: Connection closed for inactivity]
<jhass>
it's an array of cells
<jhass>
hence cells
<jhass>
same for c above
<jhass>
see, you're not even consistent there
<Phrohdoh>
I never claimed to be..?
<pontiki>
that might make more sense as `world.rows.each do |row|`
gsd has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
<jhass>
it should be your ethos as a programmer! ;P
jswe has joined #ruby
<jhass>
oh, yeah and ^
<Phrohdoh>
I'd rather learn the language first, then worry about upsetting someone over syntax/var names
<jhass>
I'd say it's an important part
<Blizzy>
is Rubygems DNS still down?
<Phrohdoh>
except rows and cols are numbers, not arrays
<jhass>
so you still know the next day what the hell that is about
asteros has quit [Client Quit]
<Phrohdoh>
I do know :|
<jhass>
that's what you're thinking now
<Phrohdoh>
and if not, my commit messages will hopefully cue me in
<sevenseacat>
lol
commmmodo has quit [Ping timeout: 245 seconds]
<pontiki>
"A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines." :D
<versatiletech>
What is line 3 and 6 in terms of terminology, not what they do? These don't look like class properties. My understanding is that class properties start with @@? http://pastebin.com/mYuk680Q
<sevenseacat>
'instead of giving my variable a meaningful name, ill trawl through commit messages trying to find out what it means'
oo_ has joined #ruby
<Phrohdoh>
sevenseacat: they are meaningful to me in context
<sevenseacat>
yeah, right now
<pontiki>
however, in software development, consistency is the property of holding things together, and is the direct product of work ethic
<Phrohdoh>
they make sense in context
<Phrohdoh>
sure if you read a single line you won't understand
<sevenseacat>
if they didnt mean anything to you right now, i'd be loling even more
<Blizzy>
thanks, jhass.
<jhass>
versatiletech: that are 3 method calls
commmmodo has joined #ruby
<pontiki>
anyway, Phrohdoh, you are free to choose as you see fit
<Phrohdoh>
yep
<jhass>
config, encoding= and filter_parameters=
<jhass>
the later two happening on the object returned by config
<sevenseacat>
but it will hinder the help you get.
<versatiletech>
and in whole what are those lines referred as in reference to a class?
<jhass>
methods
emmesswhy has joined #ruby
commmmodo_ has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
Techguy305 has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
commmmodo has quit [Ping timeout: 256 seconds]
commmmodo_ is now known as commmmodo
goodenough has joined #ruby
<versatiletech>
jhass: http://pastebin.com/35bBPnpy lines 5-7 is a method, so lines 2-3 are also called methods? If I were to do a google search in general terms about lines 2-3 what would I use for keywords?
mgorbach has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: tyfighter]
<jhass>
2/3 are method calls, 5-7 is a method definition
tyfighter has joined #ruby
<jhass>
why don't you ask your actual question?
<versatiletech>
that's my question
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
then why care about google
ejfinneran has quit [Remote host closed the connection]
tyfighter has quit [Client Quit]
<versatiletech>
so if there's more information about it I'd like to investigate. I'm learning ruby. :)
krz has joined #ruby
<versatiletech>
thanks for the help btw
mgorbach has joined #ruby
ebbflowgo has joined #ruby
<pontiki>
versatiletech: skip googling at this stage, acquire a book on programming ruby
krz is now known as Guest74093
rshetty has joined #ruby
<jhass>
or some coherent online resource at least, yeah
<jhass>
don't patchwork it together yet
davedev24_ has quit []
<versatiletech>
thanks I'll keep that in mind. So far I'm getting it. I'm just coming from different languages.
<jhass>
also looks like you're diving straight into rails
Spami has quit [Quit: This computer has gone to sleep]
orionstein is now known as orionsaresh
<versatiletech>
I'm very versed in MVC
<jhass>
most people recommend getting a grab on ruby itself first, so you can tell apart what's rails and what's not
<sevenseacat>
probably not a great idea
<versatiletech>
yeah, I've seen rails adds a lot of stuff to vanilla ruby
<DarthFudd>
Any generic advice about how to avoid using 'eval' in Ruby to (in effect) generate code? Factory classes, perhaps?
<pontiki>
i'd recommend at this stage hopping into hartl's tutorial, which gives an intro to ruby along the way to learning rails
<versatiletech>
awesome
<jhass>
DarthFudd: instance_eval, define_method
<jhass>
DarthFudd: you never need eval until you do templating
<jhass>
and even there eval-less templating langs exist iirc
<DarthFudd>
jhass: Thanks, I'll take a look.
<pontiki>
also, i'd recommend black's book "well-grounded rubyist" for pre-rails intro to ruby
<pontiki>
well, hmm. i thought he did an intro to ruby first.
<pontiki>
i actually have never looked at the tutorial though, so i should stfu
<sevenseacat>
unless thats a recent edition, no he didnt
<sevenseacat>
*new in a recent edition
<pontiki>
idk, it's heresay; someone told me that
braincrash has joined #ruby
<totimkopf>
no, I don't think so. I know Agile rails introduces ruby first but it's not enough in my opinion :)
<KC9YDN>
so, I want to input a certain string from within ruby but only copy whats after the argument
AlexRussia has joined #ruby
<KC9YDN>
so like i have something life if input == "chdir ", I want to take everything that appears after chdir
DivineEntity has quit [Quit: Lost terminal]
<KC9YDN>
s/life/like/
<jhass>
KC9YDN: String#splt
<jhass>
*split
Beoran__ has joined #ruby
<pontiki>
when i started, way back when, AWDWR recommended highly learning ruby first; so i picked up black's "Ruby for Rails" book, which has evolved into "Well-Grounded Rubyist"
Techguy305 has joined #ruby
<KC9YDN>
jhass: is there a way to do that w/o turning it into an array?
jjconti has quit [Remote host closed the connection]
<jhass>
KC9YDN: what's wrong with doing it?
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<krazyj>
parabolize: are you suggesting the second conditional may get inadverently evaluated first, and the whole shebang doesn’t really operate as it might, on first glance?
<krazyj>
s/as it might/as it might look/
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
danijoo has joined #ruby
zemiudo has joined #ruby
zemiudo has quit [Remote host closed the connection]
<parabolize>
try wraping the ternary in parentheses
<krazyj>
parabolize: yeah, that breaks everything
<anafrogue_>
Is the built-in "Digest::MD5.file" method the best way to generate checksums for files?
arup_r_ has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 258 seconds]
jonr22 has quit [Remote host closed the connection]
zemiudo has joined #ruby
ht__th has joined #ruby
zemiudo has quit [Max SendQ exceeded]
Sawbones has joined #ruby
jonr22 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
<anafrogue_>
certainty: when would I want something else?
<bkutil>
parabolize: yeah, the truth table looks different for both expressions
<Areessell>
I think it's generally considered safer to use SHA
<certainty>
anafrogue_: when your requirements change. For example once you want more than one digest algorithm
<certainty>
anafrogue_: it also depends what it is used for. As Areessell pointed out for cryptographic purposes there are better options
<krazyj>
parabolize: ahhhhh thanks!
jonr22 has quit [Ping timeout: 250 seconds]
<anafrogue_>
hmm, I see. I know that MD5 isn't recommended for anything related to password hashing etc, but I'm just looking at storing a file's digest and then checking it again later to make sure that file hasn't changed
timonv_ has quit [Remote host closed the connection]
<arup_r>
shevy: Nested `#any?` might be slow.. I feel.. But I am not able to think of something better
<shevy>
there is no elsunless
amundj has joined #ruby
<arup_r>
Yes.. I don't need else
ta has quit [Remote host closed the connection]
<arup_r>
As Only those 2 conditions will be there..
doodlehaus has joined #ruby
<crome>
elsunless! :D
lbrf has quit [Ping timeout: 240 seconds]
<workmad3>
arup_r: I think shevy was saying you can't easily get rid of the !, because ruby doesn't have an 'elsunless'
xymbol has quit [Ping timeout: 264 seconds]
<workmad3>
arup_r: not criticizing the lack of an 'else' ;)
<arup_r>
Ohh... :-)
BraddBitt has quit [Read error: Connection reset by peer]
<gregf_>
arup_r: you can make categories a class variable?
<arup_r>
Well.. Yes, I can . But how does it help ?
<arup_r>
gregf_: ^
<crome>
I would probably put the conditions in differently named methods so my conditions would read somethihng like this: if category_is_blank; ...; elsif desired_category_is_missing; ...
BraddBitt has joined #ruby
rageberry has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
testcore has quit [Ping timeout: 250 seconds]
<gregf_>
arup_r: you dont need to load that file time and time again?
<shevy>
arup_r if you want to get rid of the ! then your methods used need to return positive values so the if-checks can work
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
Lilian has quit [Ping timeout: 250 seconds]
<arup_r>
gregf_: Yes the file is static
<arup_r>
crome: +1
<workmad3>
arup_r: btw, do you mean 'desired category' or 'required category'?
Takle has quit [Remote host closed the connection]
CpuID has quit [Ping timeout: 255 seconds]
<arup_r>
I am crawling... So I don't know which word will be perfect to write ..
Mia has quit [Read error: Connection reset by peer]
<arup_r>
shevy: didn't get you.. either way I need to use `!`.
Cyberheb has joined #ruby
<crome>
arup_r: you could change is_category_present? to is_category_missing? because that's the actual thing you are testing for. that way you don't need a ! either
Mia has joined #ruby
<[a]foo>
why are the quotatins marks ` ' and not " "? e.g: `error line 2012'
<[a]foo>
quotations*
<arup_r>
crome: You are right.. But then I need to use `!` before the outside `#any?`
<shevy>
[a]foo I think that is default unix start and end notation
<[a]foo>
but why is it like that shevy?
DiamondKoopa has joined #ruby
<shevy>
dunno who set that up
<[a]foo>
weird!
<shevy>
I am also unsure why these are not the same characters
Takle has quit [Ping timeout: 258 seconds]
DaniG2k has joined #ruby
<kl_>
is it possible to have requires only work for a single file?
<crome>
um, what?
<kl_>
That was badly worded. One moment,
<hanmac1>
kl_: require only works for single files or what are you trying todo?
fabrice31 has quit [Remote host closed the connection]
MrIlyas_ has joined #ruby
riceandbeans has quit [Ping timeout: 244 seconds]
doev has joined #ruby
sk87 has joined #ruby
oo_ has quit [Remote host closed the connection]
<gregf_>
arup_r: also make that yaml file into a module, and you can include it whereever(its cross cutting the application). add some methods that help fetch data from the hash
techsethi has joined #ruby
<gregf_>
arup_r: you really need to pay us for advice given ;)
supersymmetry has quit [Ping timeout: 256 seconds]
<shevy>
no
<arup_r>
I'll ... :-)
<shevy>
he needs to stop asking like a noob
MrIlyas has quit [Ping timeout: 240 seconds]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
<shevy>
this man has 120.000 karma on stackoverflow!
wjimenez5271 has quit [Remote host closed the connection]
<shevy>
then you can really optimize for speed
ChoiKyuSang has joined #ruby
<gregf_>
heh, shevy C and ruby. i would imagine ruby guys to pick up C(modern C) but doubt the otherway around ;)
Morkel_ has joined #ruby
<arup_r>
gregf_: Thanks for all your suggestion.. Nice medium to learn..
<gregf_>
arup_r: now about the money :/
<shevy>
gregf_ well, they are often perl users... like git
<gregf_>
heh
<shevy>
when they were young they learned perl
<shevy>
now they are old - and stuck with perl
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
<arup_r>
gregf_: Hire me then!.. Cut it from my salary..
timonv_ has quit [Remote host closed the connection]
<arup_r>
I am a low paid dev.. :-(
ramfjord has joined #ruby
<shevy>
you'll start your own company arup_r
<arup_r>
gregf_: Come over India.. I'll offer you some nice Indian food..ofcourse..
<gregf_>
nah, many perl devs dont use Perl anymore. but yeah, some that do dont want to move away. no, not even use modern Perl
<shevy>
no low paid dev amasses 120.000 karma, you are a boss dude
<shevy>
gregf_ ok for perl, but how about hardcore C users like linus?
Xeago has joined #ruby
shazaum has joined #ruby
<arup_r>
shevy: It is not like you said.. Just 50K +
<gregf_>
C is immortal!
<shevy>
arup_r and that is not much?!
<arup_r>
Yes.. it is.. But there are too many areas I need to improve.. and I'm doing so
<arup_r>
:)
timonv_ has joined #ruby
dumdedum has quit [Remote host closed the connection]
<shevy>
and you are not even old, you'll be a millionaire before hitting 40
<arup_r>
shevy: Thanks for the bless. :-)
<ajaiswal>
arup_r, good going :)
<gregf_>
haha, millionaires come and go. some millionaires make the millions and leave them all behind ;)
<arup_r>
ajaiswal: Are you from India?
<ajaiswal>
arup_r, yep
<arup_r>
From which location?
<ajaiswal>
arup_r, mumbai
<arup_r>
Ok.. My past job was there..
dumdedum has joined #ruby
<arup_r>
Nice City
<ajaiswal>
arup_r, indeed it is.
<arup_r>
I was there for more than 3 years
<shevy>
what is like the best place to work in india?
<arup_r>
Where do you work ?
jheg has quit [Ping timeout: 272 seconds]
<arup_r>
B'lore. Pune.. Mumbai.. Hydrbd
<ajaiswal>
arup_r, i work at andheri east
uber_hulk has quit [Ping timeout: 245 seconds]
<arup_r>
shevy: I mentioned cities
<arup_r>
ajaiswal: comp?
<arup_r>
I was in iGate
<ajaiswal>
arup_r, its a small firm CMIE
<arup_r>
Ok.. me also now in small org too..
postmodern has quit [Quit: Leaving]
<ajaiswal>
arup_r, great.. where are you now currently
<arup_r>
B'lore
<arup_r>
Too much traffic... Waaakk!
<shevy>
hehe
<ajaiswal>
arup_r, hmm.. wanted to come over there... but mumbai seems to be settled and nice..
fabrice31 has joined #ruby
<arup_r>
gregf_: I want to be micro perfect dev as shevy said..
n1lo has joined #ruby
<shevy>
:\
AFKGeek has quit [Quit: Leaving]
<arup_r>
Don't come be there..
<ajaiswal>
arup_r, ha..
<arup_r>
Go to Pune.. Nice city.. too many RoR jobs there too
<ajaiswal>
arup_r, i was in Pune 2 3 years back at RedHat
supersymmetry has joined #ruby
<arup_r>
WooW!!!
goodenough has quit [Remote host closed the connection]
<arup_r>
total exp?
<ajaiswal>
arup_r, not much 4 yrs
AFKGeek has joined #ruby
NoNMaDDeN has joined #ruby
<arup_r>
me too.. But I made myself a SHIT..
<ajaiswal>
arup_r, shit happens
<arup_r>
Now looking toward the God.. If she can help me out again
<ajaiswal>
arup_r, look on the keyboard.. she can help u out... lol
<arup_r>
Yes.. I know..
<arup_r>
What I write today... Very next day it will be changed,, People say it is REFACTORING .. :-)
<arup_r>
So I am concentrating there..
<arup_r>
:)
<arup_r>
How long are you in RoR ? ajaiswal
<ajaiswal>
arup_r, no i'm not in RoR, basically dealing with Puppet and automation stuff..
<arup_r>
Ok.
Stalkr_ has joined #ruby
kaiwren has joined #ruby
<arup_r>
Nice to talk with local fellow over an international channel.. :)
<arup_r>
ajaiswal: :(
<arup_r>
:)
nagaraj has quit [Ping timeout: 245 seconds]
<ajaiswal>
arup_r, send me a request on FB @ashish1099
<arup_r>
FB or twitter
<arup_r>
?
<arup_r>
:-)
<Stalkr_>
I am trying to access a page that requires me to login. If I try to access it, I get redirected. I need to get to the page so I can copy a value at a specific XPath for an API. How would I go about this? Trying to understand Mechanize, but is that a viable solution?
ramfjord has quit [Ping timeout: 272 seconds]
<ajaiswal>
arup_r, anything is fine
uber_hulk has joined #ruby
durnik has quit [Ping timeout: 240 seconds]
shvelo has quit [Ping timeout: 256 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
senera has quit [Ping timeout: 250 seconds]
nagaraj has joined #ruby
noop has quit [Ping timeout: 256 seconds]
jusmyth has joined #ruby
lbrf has joined #ruby
SOLDIERz__ has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
sea_local has quit [Ping timeout: 244 seconds]
lbrf has quit [Ping timeout: 245 seconds]
ajaiswal has quit [Quit: Leaving]
tvw has quit []
Stalkr_ has quit [Ping timeout: 250 seconds]
dumdedum has quit [Quit: foo]
jimms has joined #ruby
SOLDIERz__ has quit [Ping timeout: 256 seconds]
barw has joined #ruby
troulouliou_dev has joined #ruby
doodlehaus has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<barw>
morning folks, quick question...why when we have a rails app with vuln it's possible to get shell and prompt command? which api hooks such thing?
<barw>
does anyone knows it?
jottr_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
sski has joined #ruby
ramfjord has joined #ruby
carif has joined #ruby
jeanlinux has joined #ruby
jottr has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
<adac>
obviouls it doesn't seem to wokr for some reasons. In another rails project it did
WillAmes has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
WillAmes has joined #ruby
_1_stulla has joined #ruby
_1_stulla has quit [Remote host closed the connection]
krzkrz has quit [Quit: WeeChat 1.0.1]
craigp has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
adriancb has joined #ruby
rageberry has joined #ruby
<apeiros_>
adac: no, it should not.
toretore has joined #ruby
<apeiros_>
adac: rails passes that stuff through ERB first. yaml itself doesn't care about <% sequences.
krz has joined #ruby
catphish has joined #ruby
Goodbox has quit [Read error: Connection reset by peer]
<adac>
apeiros, hmm I see. How can I solve this then? By loading the yaml file in a different way perhaps?
tgandrews has joined #ruby
adriancb has quit [Ping timeout: 252 seconds]
<apeiros_>
as I said, it's ERB. so if you want it evaluated, push it through ERB first.
<catphish>
does anyone know why ruby 1.8.7 might be unable to verify an ssl certificate, while 2.1.3 would succeed, given that they're built against the same openssl with the same configuration
<adac>
apeiros, kk. I'll google this. thanks mate!
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusmyth has quit [Quit: Leaving.]
Photism has joined #ruby
<damic>
can you do multiple each loops and modify the original data?
nerdy has quit [Quit: Computer has gone to sleep.]
TPBallbag has joined #ruby
adac has quit [Ping timeout: 252 seconds]
amacou has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samuel02 has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
chu has joined #ruby
adriancb has joined #ruby
dc_ has joined #ruby
kapil__ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lbrf has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
ramfjord has quit [Ping timeout: 256 seconds]
lukeholder has joined #ruby
techsethi has quit [Quit: techsethi]
fantazo has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Remote host closed the connection]
unclouded has quit [Ping timeout: 258 seconds]
spyderman4g63 has joined #ruby
lbrf has quit [Ping timeout: 250 seconds]
Azulinho has joined #ruby
mkaesz has joined #ruby
sanguisdex has quit [Quit: Leaving.]
dc_ has quit [Remote host closed the connection]
adac has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
carif has quit [Ping timeout: 252 seconds]
dc_ has joined #ruby
jonr22 has joined #ruby
Xeago has joined #ruby
mityaz has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
karmatr0n has joined #ruby
psycho_one has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
<damic>
shevy: how would you? and cause i need to loop through data and change parts of it
psycho_one has quit [Client Quit]
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
depesz has joined #ruby
pen has quit []
<depesz>
hi. i have a string with unknown length. what is the simplest, and most-ruby way of splitting it into last two characters, and whatever is before them?
<depesz>
i.e. "ABCDEF" => "ABCD", "EF"
dc_ has quit [Ping timeout: 258 seconds]
moritzschaefer has joined #ruby
fantazo has joined #ruby
iamninja has joined #ruby
adriancb has quit [Remote host closed the connection]
henesy has quit [Ping timeout: 258 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
russt has joined #ruby
russt has quit [Client Quit]
sanguisdex has joined #ruby
iamninja has quit [Client Quit]
<shevy>
damic I'd use a hash and update that hash
sk87 has joined #ruby
<shevy>
damic I don't think you need to use a loop, have you considered using .select ?
ramfjord has joined #ruby
<shevy>
depesz you can use []
<Timgauthier>
naw naw shevy its "for_each"
<depesz>
shevy: how can I get "all but last two" with []?
<shevy>
I guess that makes it easier for online view
<shevy>
like in that github example, where the subsections will become <h*> headers
<shevy>
interesting that markdown is not so old
<shevy>
about 10 years
kl has quit [Read error: Connection reset by peer]
catphish has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
djbkd has quit [Ping timeout: 250 seconds]
<shevy>
haha cool... history in the making
<shevy>
"A standards effort for the Internet media type text/markdown (independent of the syntax) is underway in the IETF. The Internet-Draft is planned to be submitted to the IESG in April 2015."
mary5030 has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<waxjar>
catphish: 1.8.7 is EOL, it's no longer supported or updated
jobewan has quit [Ping timeout: 244 seconds]
adamski2600 has joined #ruby
<catphish>
this is true, but doesn't go far towards explaining why it might be broken :(
psy_ has quit [Read error: Connection reset by peer]
<catphish>
this actually seems to affect a variety of different ruby/openssl combinations, unfortunately this is the only one i've been able to personally reproduce it on
Crazy_Atheist has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
sski has joined #ruby
Crazy_Atheist has joined #ruby
amslazo has joined #ruby
dts has quit [Ping timeout: 252 seconds]
Taranis has quit [Quit: leaving]
Crazy_Atheist has quit [Read error: Connection reset by peer]
orolo has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
Crazy_Atheist has joined #ruby
SCHAAP137 has joined #ruby
moritzschaefer has joined #ruby
FutureTense has quit [Ping timeout: 264 seconds]
<orolo>
i have an array that contains enumerables. i'm able to a.find_index{ |d| d == 'val'} and then get that enumerable but is there a way to do it in one command? what i'm doing feels wrong.
<amslazo>
i've modified a readme and pushed it with git but the changes haven't been made
<amslazo>
the readme file hasn't been uploaded to the repo
<amslazo>
what gives?
last_staff has quit [Quit: last_staff]
AFKGeek has quit [Quit: Fades into the shadows]
treehug88 has joined #ruby
sski has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
skroon has joined #ruby
techsethi has joined #ruby
<skroon>
i'm a bit confused why this doesn't work, it's probably something really stupid, but if someone could help me out please: DateTime.strptime("29-11-2014 13:12:58", "%d-%m-%Y %h:%m:%s")
bal has quit [Quit: bal]
Techguy305 has joined #ruby
<apeiros_>
orolo: find instead of find_index
Techguy305 has quit [Max SendQ exceeded]
<skroon>
ahhh capitalization :-)
<apeiros_>
amslazo: how's that a ruby question?
<skroon>
rubber duck debugging :-)
rippa has joined #ruby
gsd has joined #ruby
joonty has joined #ruby
<apeiros_>
skroon: yeah, %m can't be both, minute and month ;-p
<ericwood>
sterptime is how I pronounce that in my head
<snowyrooftops>
Is rvm as common in the Ruby community as virtualenv is in the Python community? (i.e. Is rvm the defacto standard for virtual environments in Ruby?)
jsilva has joined #ruby
reinaldob has quit [Remote host closed the connection]
<ericwood>
snowyrooftops: there's a few options, rbenv is gaining a lot of ground, you may want to consider it first
<ericwood>
although I don't have much against rvm
kiyote23 has joined #ruby
<apeiros_>
exadeci: instance_variable = instance_variable_get("@#{controller_name.singularize}") # <-- this is superugly. and I'm not even talking about abusing interpolation as a .to_s
dblessing has joined #ruby
<snowyrooftops>
ericwood: Thanks. We have so many choices in Ruby and I'm looking at getting started with Ruby by creating some gems. I didn't want to clutter the system with my 'playground gems'.
kamilc__ has quit [Quit: Leaving...]
<ericwood>
snowyrooftops: follow the rubygems.org tutorials, it'll show you how to avoid that
<apeiros_>
snowyrooftops: it's common, but not a standard by any means.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<chris613>
noob question here, can someone point me to an explanation of 'a == nil' vs 'a.nil?' - is it purely syntactical sugar?
<apeiros_>
snowyrooftops: you should not have dependencies against it. you can have optional dependencies like a .ruby-version file which is understood by most ruby env managers.
shvelo has joined #ruby
diegoviola has joined #ruby
<apeiros_>
chris613: == nil has to perform a comparison. .nil? can return false immediately (except for NilClass#nil?, which of course returns true immediately)
joast has joined #ruby
<apeiros_>
other than that, they *should* be equivalent.
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
foofoobar has joined #ruby
aganov has quit [Quit: Leaving]
fabrice31 has quit [Remote host closed the connection]
<foofoobar>
Hi. I trying to do a „bundle update“ and libv8 fails to update: /usr/local/rvm/gems/ruby-1.9.3-p392/gems/libv8-3.16.14.7/ext/libv8/builder.rb:28:in `make_flags': undefined method `include?' for nil:NilClass (NoMethodError)
lbrf has joined #ruby
<foofoobar>
I tried a lot of hints I found on stackoverflow, but none of this worked.
dc_ has quit [Remote host closed the connection]
tier has joined #ruby
<foofoobar>
Running a linux i686 athlon i386 GNU/Linux
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<foofoobar>
ruby -v: ruby 1.9.3p392
fabrice31 has joined #ruby
livathin_ has quit []
agrinb has joined #ruby
<snowyrooftops>
apeiros_: I hear there's a bundler for handing dependencies, but I haven't practiced enough ruby to get to that point yet. Until then, I'm just planning to use rvm for keeping my in-development ruby gems separated from my regular environment.
<snowyrooftops>
Leaving now.. will go code some Ruby!
gsd has joined #ruby
snowyrooftops has quit [Quit: leaving]
banister has joined #ruby
shredding has joined #ruby
gsd has quit [Client Quit]
Kricir has joined #ruby
uber_hulk has joined #ruby
<shock_one>
So, I'm in a class `GemName::Proxy::ClassName`. How would I get a corresponding instance of `GemName::Strategy::ClassName`. Without active support.
<shock_one>
So, I'm in a class `GemName::Proxy::ClassName`. How would I get a corresponding instance of `GemName::Strategy::ClassName`. Without active support.
<shock_one>
I mean dynamically. I don't know the ClassName.
<apeiros_>
tell us about the problem you want to solve, not about your intended solution. I'm pretty sure there's better ways to achieve what you want.
rshetty has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
pauly_oc has joined #ruby
Techguy305 has joined #ruby
<shock_one>
Each proxy has some strategies, which reside in a corresponding module. I want a proxy to autodiscover its strategies.
dts has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<apeiros_>
and for your way: Class#name + sub/gsub + Object.const_get
dts is now known as dts|pokeball
<apeiros_>
shock_one: why don't you reverse it?
Techguy305 has quit [Max SendQ exceeded]
<foofoobar>
any hints? :/
<exadeci>
apeiros_: The list that the GenericController returns doesn't filter results based on user Abilities (from CanCan)
<apeiros_>
and then you can just do GemName::Name.constants
Techguy305 has joined #ruby
snath has joined #ruby
<shock_one>
I like it, but now I have a nice directory 'proxies' where all of them live. And with this change I would need to change the folder structure.
_ixti_ has quit [Ping timeout: 272 seconds]
<apeiros_>
exadeci: that's a nice non-sequitur
<shock_one>
Actually I want something like GemName::Strategy::const_get(constantized_name_of_class).contants, but I can't find how to do constantized_name_of_class, which also should be unqualified.
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
fabrice31 has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
<exadeci>
apeiros_: I would like to filter results returned by the superclass based on current_user permissions but the superclass does a respond_to
<apeiros_>
shock_one: and camelize you don't need because your names are not underscored.
AxonetBE has quit [Quit: AxonetBE]
shock_one has joined #ruby
shock_one has left #ruby [#ruby]
<apeiros_>
shock_one: so I'll repeat: 17:19 apeiros_: and for your way: Class#name + sub/gsub + Object.const_get
shock_one has joined #ruby
mikedugan is now known as machugga
zemiudo has joined #ruby
machugga is now known as mikedugan
mityaz has quit [Quit: Leaving]
<shock_one>
exadeci, To override respond to and have access to the original method, you can use alias_method_chain
giuseppesolinas has quit [Quit: This computer has gone to sleep]
echevemaster has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<shock_one>
apeiros, sure, it's an obvious solution, but I don't exactly like messing with strings.
rshetty has joined #ruby
<Takumo>
How could I 'destroy' the environment between two tests in a describe?
dkphenom has joined #ruby
timonv_ has quit [Remote host closed the connection]
<Takumo>
I have something I want to test which has different behaviour between two environments, and to test them I need to destroy the application
anaeem1 has quit [Remote host closed the connection]
moritzschaefer has quit [Ping timeout: 244 seconds]
<apeiros_>
shock_one: what do you think constantize et al are?
<apeiros_>
shock_one: if you don't like messing with strings, then you'll not get around restructuring.
<apeiros_>
shock_one: alternatively you can register your stuff. e.g. Proxies = {"proxyname" => ProxyClass} and Strategies = {"strategy" => StrageyClass}
rageberry has quit [Ping timeout: 255 seconds]
<apeiros_>
anyway, "I don't like messing with strings" is another indicator for XY.
* apeiros_
off
apeiros_ has quit [Remote host closed the connection]
<shock_one>
apeiros, I was mistaken, const_get can accept a string, which is fine. In this context by messing I mean doing gsub. I only want GemName::Strategy::const_get(unqualified_class_name), and I feel there is an easy way to get it, which I'm missing.
lucyinthesky has joined #ruby
apeiros_ has joined #ruby
shock_one has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 258 seconds]
shock_one has joined #ruby
shock_one has left #ruby [#ruby]
shock_one has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
<shock_one>
Registering is exactly how it currently works, and it proved to be a pain.
russt has joined #ruby
uber_hulk has quit [Ping timeout: 255 seconds]
paulfm_ has quit [Quit: Zzzzz...]
kiyote23 has quit [Remote host closed the connection]
_ixti_ has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
reinaldob has joined #ruby
ConstantineXVI has joined #ruby
arrubin has quit []
atomical has quit [Ping timeout: 258 seconds]
tcrypt has quit [Remote host closed the connection]
kiyote23 has joined #ruby
tcrypt has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
apeiros_ has quit [Ping timeout: 250 seconds]
moritzschaefer has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
ConstantineXVI has joined #ruby
shock_one has quit [Client Quit]
Xeago has joined #ruby
shock_one has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
yfeldblum has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
uber_hulk has joined #ruby
<exadeci>
shock_one: So I should make a version of my superclass action without respond_to and call it with alias_method ?
paulfm_ has joined #ruby
aspires has joined #ruby
chrishough has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<shock_one>
No, you should redefine respond_to in your subclass and just call the super method: a new version of respond_to will be chosen.
codecop has joined #ruby
paulfm_ has quit [Client Quit]
<shock_one>
OK, super is a keyword, no a method.
econerd4ever has joined #ruby
pengin has joined #ruby
tcrypt has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Remote host closed the connection]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
econerd4ever has quit [Ping timeout: 250 seconds]
ConstantineXVI has quit [Max SendQ exceeded]
<foofoobar>
I trying to do a „bundle update“ and libv8 fails to update: /usr/local/rvm/gems/ruby-1.9.3-p392/gems/libv8-3.16.14.7/ext/libv8/builder.rb:28:in `make_flags': undefined method `include?' for nil:NilClass (NoMethodError)
ConstantineXVI has joined #ruby
<foofoobar>
I tried a lot of hints I found on stackoverflow, but none of this worked.
<foofoobar>
Running a linux i686 athlon i386 GNU/Linux
ConstantineXVI has quit [Read error: Connection reset by peer]
tgandrews has quit [Quit: This computer has gone to sleep]
karmatr0n has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
jfran has joined #ruby
jheg has quit [Quit: jheg]
snath has quit [Remote host closed the connection]
uber_hulk has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
<gregf_>
AxonetBE: you need to use instance_eval
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has quit [Ping timeout: 252 seconds]
Abhijit has joined #ruby
tier has quit [Ping timeout: 264 seconds]
s00pcan has joined #ruby
<linelevel>
Hi, I just installed rvm using the recommended method (`\curl -sSL https://get.rvm.io | bash -s stable --ruby`), and it installed Ruby version 2.1.5, but now when I try to run the script that makes it available to my shell (`source ~/.rvm/scripts/rvm`), I get the error "ruby-2.1.2 is not installed." -- Why is it looking for 2.1.2?
davejlong has joined #ruby
<linelevel>
Any suggestions for how to fix this?
snath has quit [Remote host closed the connection]
<ericwood>
linelevel: rvm use 2.1.5
<ericwood>
or `rvm use 2.1.5 --default` or something like that
sambao21 has joined #ruby
<havenwood>
linelevel: the #rvm channel is very helpful if you keep having issues
<linelevel>
havenwood: Ah, sorry, didn't realize it would have its own channel.
jespada has joined #ruby
<linelevel>
ericwood: Oh, got it. That fixed the problem, but I still have no idea why it was looking for 2.1.2 to begin with.
pietr0 has joined #ruby
<linelevel>
Where would that have been configured?
<ericwood>
¯\_(ツ)_/¯
<havenwood>
linelevel: musta been set as default
<ericwood>
you can set it up in your bash_profile, but I recommend using that default flag to tell it to default to it
<linelevel>
havenwood: This is a fresh Ubuntu 14.04 install.
jonr22 has quit [Ping timeout: 252 seconds]
n1lo has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
sdrew has joined #ruby
Cyberheb has joined #ruby
gsd has joined #ruby
timonv_ has quit [Remote host closed the connection]
aspires has quit []
kaiwren has joined #ruby
wjimenez5271 has joined #ruby
nitrix has joined #ruby
zemiudo has quit [Ping timeout: 240 seconds]
ghostmoth has joined #ruby
einarj has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
uber_hulk has joined #ruby
dopiee has quit [Remote host closed the connection]
aspires has joined #ruby
pietr0 has quit [Quit: pietr0]
uber_hulk has quit [Client Quit]
uber_hulk has joined #ruby
Abhijit has quit [Remote host closed the connection]
mikepack has joined #ruby
n1lo has joined #ruby
jonr22 has joined #ruby
Morkel has quit [Quit: Morkel]
lbrf has joined #ruby
banister_ has joined #ruby
banister has quit [Ping timeout: 258 seconds]
econerd4ever has joined #ruby
amslazo has quit [Quit: chimpout.com]
lbrf has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
noop has joined #ruby
agrinb has joined #ruby
bricker`work has joined #ruby
teddyp1cker has joined #ruby
lolmaus_ has quit [Remote host closed the connection]
mloveless has joined #ruby
lolmaus_ has joined #ruby
tier_ has quit [Remote host closed the connection]
preyalone has joined #ruby
sambao21 has joined #ruby
jimbach has quit [Remote host closed the connection]
rbrs has joined #ruby
ptrrr has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
joonty has quit [Quit: Leaving]
Tricon has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
troyready has joined #ruby
shredding has quit [Quit: shredding]
ivmx has joined #ruby
enebo has joined #ruby
mattmcclure has joined #ruby
sambao21 has quit [Client Quit]
deric_skibotn has joined #ruby
<shevy>
long live ruby linelevel! \o/
timonv_ has joined #ruby
<ericwood>
lol activesupport defines fortnight
<ericwood>
1.fortnight
<ericwood>
:|
qba73 has quit []
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
<terrellt>
This is the library that defines "#fifth"
<terrellt>
I have no surprise.
<michael_mbp>
hey guys
<michael_mbp>
quick q
jherbst has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<shevy>
it's the phpification of ruby
<michael_mbp>
in the context of Object.class_eval { } or model_eval { } when specifying private/protected does it work like normal?
<michael_mbp>
or must we do def foo; ...; end; private :foo ?
<exadeci>
shock_one: I can't get it to work alias_method_chain :result, :respond_to it should call respond_to_with_result ?
<shevy>
you throw EVERYTHING into it
<shevy>
now what's missing is to treat capitalized and lowercased the same
<shevy>
so we can write:
<shevy>
def foo_BAR
<shevy>
and invoke via
<shevy>
FOO_bar
Takle_ has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
Takle has joined #ruby
<shock_one>
No, it calls result_with_respond_to. You mixed up the arguments, exadeci.
Tricon has quit [Remote host closed the connection]
alex88 has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
catphish has quit [Quit: Leaving]
Takle has quit [Ping timeout: 240 seconds]
<banister_>
Sou|cutter: ping
spider-mario has joined #ruby
zemiudo has joined #ruby
shock_one has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
jlast has joined #ruby
mkaesz has quit [Remote host closed the connection]
emmesswhy has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Remote host closed the connection]
St_Marx has joined #ruby
quimrstorres has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
jimbach has joined #ruby
troulouliou_dev has quit [Read error: Connection reset by peer]
Dr3amc0d3r|away has quit [Ping timeout: 240 seconds]
jimbach has quit [Remote host closed the connection]
marchtemp has left #ruby ["WeeChat 0.4.2"]
adriancb has quit [Remote host closed the connection]
jimbach has joined #ruby
Takle has quit [Remote host closed the connection]
mg^ has joined #ruby
sambao21 has joined #ruby
spider-mario has quit [Ping timeout: 244 seconds]
sambao21 has quit [Client Quit]
boombadaroomba has joined #ruby
jlast has quit [Remote host closed the connection]
sambao21 has joined #ruby
rgs has quit [Ping timeout: 264 seconds]
goodenough has joined #ruby
jshultz has joined #ruby
pengin has quit [Remote host closed the connection]
rgs has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<Sou|cutter>
O_O
sea_local has joined #ruby
<banister_>
Sou|cutter you use the Model[] syntax for Arel right?
<banister_>
Sou|cutter i.e order(User[:name].asc)
<Sou|cutter>
yeah, there's a gem that lets you do that
<Sou|cutter>
arel_helpers IIRC
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
lucyinthesky has left #ruby ["Leaving"]
snath has joined #ruby
<banister_>
Sou|cutter yeah, the issue i ran into with that (at least doing it manually) is that it breaks the `[]` array subscript operator for has_manys
alex88 has quit [Remote host closed the connection]
triple_b has joined #ruby
<banister_>
Sou|cutter e.g: user.homeworks[0] #=> no longer returns the first homeowrk
<banister_>
Sou|cutter it returns an arel::attribute
<banister_>
Sou|cutter have you run into that?
cajone has joined #ruby
<Sou|cutter>
oh, no I haven't. I don't regularly use that with AR
<Sou|cutter>
I tend to use .first or .first(5) or enumerable methods
<banister_>
darn, so i have to download the gem and try it myself :P
<banister_>
Sou|cutter yeah, unfortunatley i have colleagues who like using the array subscript for has_manys so i can't use it if it breaks :( i'll have a check, maybe there's a trick the arel_helper author is using to get around that
o0oo0o has joined #ruby
<Sou|cutter>
well you can only include it in certain models
<Sou|cutter>
buut... that's not really a fix
linelevel1 has joined #ruby
msgodf has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
<banister_>
nah he's not doing anything fancy, same issue, oh well
claf has joined #ruby
* claf
<3 ruby
Dr3amc0d3r|away has joined #ruby
jsilva has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
uxp has joined #ruby
linelevel has quit [Ping timeout: 264 seconds]
<Sou|cutter>
banister_: can I blame AR for copying class methods?
<Sou|cutter>
:P
roolo_ has quit [Remote host closed the connection]
work_op_ has joined #ruby
roolo has joined #ruby
<work_op_>
hi, i have a snippet that is supposed to iterate through a puzzle, but it keeps missing the first element, so i suspect its an off-by-one type of problem, but i cant find the error
<work_op_>
@puzzle.each_index{|i| if @puzzle[i] != 0 then @known.store(i.to_s,@puzzle[i]) end}
foofoobar_ has joined #ruby
foofoobar has quit [Ping timeout: 264 seconds]
foofoobar_ is now known as foofoobar
<shevy>
long live ruby!
Hobogrammer has joined #ruby
<shevy>
work_op_ and what is @puzzle? and Array I assume? the iteration will be 0,1,2,3,4,5
<work_op_>
yeah
<work_op_>
i can post the whole thing, its not very long
<eichenwald>
not sure how valid it is dont use windows
zemiudo has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moritzschaefer has joined #ruby
michaeldeol has joined #ruby
<shevy>
what do you guys recommend for tests into test/ ?
lolmaus__ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
samuel02 has quit [Remote host closed the connection]
aspires has quit []
Photism has joined #ruby
klmlfl has joined #ruby
djbkd has quit [Remote host closed the connection]
checkit has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
lolmaus_ has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
geggam has quit [Remote host closed the connection]
aspires has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
lolmaus has joined #ruby
lucyinthesky_ has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
aspires has quit [Client Quit]
jlast has joined #ruby
rkalfane has joined #ruby
lolmaus_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
lolmaus__ has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby
<rpag>
shevy, what do you mean?
aspires has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
rpag I want to add tests for my ftp-wrapper
patrick99e99 has joined #ruby
<shevy>
it has literally 0 tests right now
lolmaus__ has joined #ruby
<patrick99e99>
hey guys, is there a way to make respond_with actually render the errors and status on a show action?
<jhass>
patrick99e99: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
bMalum has quit [Quit: bMalum]
renderful has joined #ruby
zemiudo has quit [Quit: Leaving]
lolmaus has quit [Ping timeout: 240 seconds]
zemiudo has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<rpag>
shevy, i use Minitest::Test.
michaeldeol has quit [Read error: Connection reset by peer]
karmatr0n has quit []
jenrzzz has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
djbkd has joined #ruby
aspires has quit [Client Quit]
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lolmaus_ has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
lbrf has joined #ruby
anaeem1_ has joined #ruby
tier has quit [Remote host closed the connection]
<work_op_>
let it be know that work_op has completed his sudoku brute forcer. i cant test it here because the website has a timeout thats too short, but it DOES work: http://codepaste.net/qthnus
lolmaus__ has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 264 seconds]
tier has joined #ruby
<claf>
work_op_: cool!
<claf>
work_op_: how does it work?
graft_ has joined #ruby
graft_ has joined #ruby
<patrick99e99>
hey guys, is there a way to make respond_with actually render the errors and status on a show action?
AlSquire has joined #ruby
<wallerdev>
patrick99e99: #rubyonrails
mloveless has quit [Remote host closed the connection]
lolmaus__ has joined #ruby
<patrick99e99>
oh I am sorry
<patrick99e99>
I thought I was in there..
baweaver has joined #ruby
<patrick99e99>
damn.
quimrstorres has quit [Remote host closed the connection]
lbrf has quit [Ping timeout: 272 seconds]
elaptics is now known as elaptics`away
chrisja has joined #ruby
aspires has quit []
aspires has joined #ruby
nkumari has quit [Remote host closed the connection]
oleo has quit [Ping timeout: 252 seconds]
<work_op_>
it takes a sudoku puzzle, collects all the known indices, and then iterates through the puzzle changing each unknown element until the puzzle can be considered solved
techsethi has quit [Quit: techsethi]
oleo has joined #ruby
aspires has quit [Client Quit]
aspires has joined #ruby
econerd4ever has quit [Remote host closed the connection]
quimrstorres has joined #ruby
econerd4ever has joined #ruby
work_op_ has quit []
nkumari has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
Mothore has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
n1lo has quit [Quit: Leaving]
n1lo has joined #ruby
zemiudo has quit [Ping timeout: 255 seconds]
orolo has quit [Read error: Connection reset by peer]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
orolo has joined #ruby
uber_hulk has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
phoenix__ has joined #ruby
tgandrews has joined #ruby
sambao21 has joined #ruby
dseitz has joined #ruby
louism2wash has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
jlast has quit [Ping timeout: 240 seconds]
lolmaus__ has joined #ruby
AlexRussia has joined #ruby
sk87 has joined #ruby
_ritchie has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<_ritchie>
I have an rvm question that no one has responded to in #rvm: on one of my machines when I run some commands (e.g. use, gemset list...) I see this sed error "sed: -e expression #1, char 11: unterminated address regex" 6 times, have any of you seen that before?
exadeci has quit [Quit: Connection closed for inactivity]
sk87 has quit [Client Quit]
michaeldeol has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
tier has quit [Remote host closed the connection]
davejlong has quit []
knutmithut has joined #ruby
jalopezsilva has joined #ruby
pandaant has joined #ruby
shazaum has quit [Quit: Leaving]
jlast has joined #ruby
adriancb has quit [Remote host closed the connection]
matcouto has joined #ruby
<knutmithut>
Hey guys, what's the best way to get the caller's instance within a rails model? i'd like to prevent having an extra parameter in each method and class
noop has quit [Ping timeout: 258 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
bMalum has quit [Quit: bMalum]
posixpascal has joined #ruby
tier has joined #ruby
banister has joined #ruby
aspiers has joined #ruby
jalopezsilva has quit [Ping timeout: 264 seconds]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdrew has joined #ruby
reinaldob has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
preyalone has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
sambao21 has joined #ruby
<michael_mbp>
hey guys
<michael_mbp>
in the context of Object.class_eval { } or model_eval { } when specifying private/protected does it work like normal?
<michael_mbp>
or must we do def foo; ...; end; private :foo ?
louism2wash has quit [Quit: This computer has gone to sleep]
adriancb has joined #ruby
spyderma_ has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zemiudo has joined #ruby
kaiwren has quit [Quit: kaiwren]
michaeldeol has joined #ruby
zemiudo has quit [Client Quit]
Mothore_ has joined #ruby
jlast_ has joined #ruby
Tricon has joined #ruby
spyderma_ has joined #ruby
Hijiri has joined #ruby
philpd has joined #ruby
jlast__ has joined #ruby
benzrf|offline is now known as benzrf
Rahul_Roy_ has joined #ruby
Mothore has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier_ has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
baweaver has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
qox31 has quit [Ping timeout: 258 seconds]
ikaros has quit [Quit: Ex-Chat]
jlast_ has quit [Ping timeout: 250 seconds]
qox31 has joined #ruby
qox31 has quit [Read error: Connection reset by peer]
dr4__ has joined #ruby
fabrice31 has joined #ruby
agrinb has joined #ruby
doug2 has joined #ruby
<doug2>
fog... can I use with an IAM profile without creds?
<doug2>
I can with python boto
rodfersou has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
andikr has quit [Remote host closed the connection]
tier has quit [Ping timeout: 272 seconds]
qox31 has joined #ruby
j_mcnally has joined #ruby
dr4_ has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
sambao21 has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
nkumari has joined #ruby
mikepack_ has joined #ruby
econerd4ever has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
adac has joined #ruby
chinmay_dd has quit [Quit: Leaving]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philpd has left #ruby [#ruby]
ramfjord has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
lbrf has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
Tricon_ has joined #ruby
econerd4ever has quit [Ping timeout: 256 seconds]
arup_r has quit [Quit: Leaving.]
iamninja has joined #ruby
geggam has joined #ruby
Fire-Dragon-DoL has joined #ruby
ghr has joined #ruby
centrx has joined #ruby
davedev2_ has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
lbrf has quit [Quit: Be back later ...]
diegoviola has quit [Remote host closed the connection]
sk87 has joined #ruby
ldnunes has quit [Quit: Leaving]
diegoviola has joined #ruby
Soda has quit [Remote host closed the connection]
parabolize has joined #ruby
adriancb has quit [Remote host closed the connection]
Xeago has joined #ruby
lbrf has joined #ruby
greenbagels has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
aspires has quit []
NoNMaDDeN has quit [Remote host closed the connection]
mloveless has joined #ruby
shock_one has quit [Remote host closed the connection]
Tenjjin has joined #ruby
Tenjjin has quit [Client Quit]
phutchin1 has quit [Ping timeout: 264 seconds]
Tranquility has joined #ruby
hobodave has joined #ruby
xxneolithicxx has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
<xxneolithicxx>
hi all, in the stock ruby that comes with linux does ERB support the terminator -%> ? I see it in a bunch of examples online but it doesnt wok for me at all (it throws syntax errors).
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
Musashi007 has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodenough has joined #ruby
blackmesa has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
evanjs has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
AndyBotwin has joined #ruby
tgandrews has joined #ruby
maletor has joined #ruby
xxneolithicxx has left #ruby [#ruby]
baweaver has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
nkumari has joined #ruby
<parabolize>
"All party organs and public security authorities should make a list of residents named Kim Jong-un … and train them to voluntarily change their names." https://en.wikipedia.org/wiki/Kim_Jong-un#Name lol
AlexRussia has joined #ruby
djbkd has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
xxneolithicxx has joined #ruby
agrinb has joined #ruby
ycodr has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
yourname has joined #ruby
ycodr has joined #ruby
wjimenez_ has joined #ruby
adriancb has quit [Remote host closed the connection]
jheg has joined #ruby
nkumari has quit [Remote host closed the connection]
ivmx has left #ruby [#ruby]
<shevy>
quite a persona cult
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
sargas has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
adac has quit [Ping timeout: 252 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
bobdobbs` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
nkumari has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bobdobbs has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aclearman037 has quit [Quit: I'm out!]
mengu has quit [Ping timeout: 245 seconds]
tesaf has quit [Quit: Lost terminal]
whoisjake has quit []
davasaurous has joined #ruby
redjack1964 has joined #ruby
dts|pokeball has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
agrinb has joined #ruby
fabrice31 has joined #ruby
djbkd has joined #ruby
giuseppesolinas has joined #ruby
michaeldeol has joined #ruby
jonahR has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
sklik has quit [Remote host closed the connection]
michaeldeol has quit [Read error: Connection reset by peer]
dts|pokeball has joined #ruby
econerd4ever has quit [Ping timeout: 252 seconds]
omarkj has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
<omarkj>
Hey, I'm wondering if there are any persistent hash functions that come with Ruby ? By persistent I mean a hash function that will return the same value independently of the underlying hardware/runtime.
<omarkj>
I can't seem to find any that do that.
banister is now known as banisterfiend
<godd2>
where did Ruby get the idea of the inline if?