Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
joneshf-laptop has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
doctorly has joined #ruby
MatthewsFace has joined #ruby
blandflakes has joined #ruby
joneshf-laptop has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
<doctorly>
I have been having a lot of problems trying to get things happening inside of specific slots while using Green Shoes. Has anyone had similar problems? Would it be worth switching over to standard shoes, or will I likely have the same problems?
baweaver has joined #ruby
CloCkWeRX has joined #ruby
swills has quit [Quit: leaving]
swills has joined #ruby
<doctorly>
Also, has anyone used standard shoes and not had similar issues?
<zenspider>
I dunno if anyone here has an answer to that... good luck
d10n-work has quit [Quit: Connection closed for inactivity]
<zenspider>
If (and I don't know) there is a shoes channel, you'll prolly want to ask there
<zenspider>
otherwise, I'd say file a bug so the maintainer can help directly
<doctorly>
Has anyone used a gui toolkit that is easy?
<baweaver>
_why is the maintainer, so that might be added fun.
<baweaver>
not in ruby
<zenspider>
uh, no.
jfarmer has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<baweaver>
do you _need_ a gui?
<doctorly>
baweaver: _why maintained standard, but it was handed off
arturmartins has quit [Quit: Leaving...]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<doctorly>
Haha literally nobody is on any of their irc chans
<doctorly>
Thanks for the help though guys, I am going to have to do something else I think
jenrzzz has quit [Ping timeout: 265 seconds]
<zenspider>
Again, file a bug. you're likely not alone. if anything, it sounds like a doco issue
AndroidLoverInSF has joined #ruby
startupality has quit [Quit: startupality]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
jfarmer has joined #ruby
jfarmer has quit [Client Quit]
rbowlby_ has joined #ruby
Rickmasta has joined #ruby
husanu has quit [Remote host closed the connection]
Channel6 has joined #ruby
husanu has joined #ruby
commondream has joined #ruby
baweaver has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
rbowlby has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
Alina-malina has joined #ruby
jpfuentes2 has joined #ruby
commondream has quit [Remote host closed the connection]
<Ox0dea>
average: Have you tried asking in /r/lobsters?
eggoez has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
ruby-lang595 has joined #ruby
<ruby-lang595>
hola
<average>
Ox0dea: no but..
<average>
Ox0dea: i dunno
<Ox0dea>
Go for it.
fgo has joined #ruby
scottstamp has joined #ruby
bf4 has quit [Ping timeout: 250 seconds]
<ruby-lang595>
alchemy_cms
<average>
Ox0dea: i'd like an invitation though if you can give me one
jonr22 has quit []
<ruby-lang595>
has anyone ever heard of alchemy cms
<pontiki>
i'm afraid to ask...
swgillespie has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
fgo_ has quit [Ping timeout: 256 seconds]
jpfuentes2 has joined #ruby
<havenwood>
ruby-lang595: Have questions about alchemy_cms?
bkxd has quit [Ping timeout: 256 seconds]
sdwrage_ has quit [Quit: Leaving]
<havenwood>
ruby-lang595: Since it's a Rails app your question might be best in the #RubyOnRails channel.
ruby-lang595 has left #ruby [#ruby]
average has left #ruby [#ruby]
mfranzwa has quit [Quit: mfranzwa]
[k- has joined #ruby
nwhirschfeld has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
startupality has joined #ruby
bf4 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
eggoez has joined #ruby
nwhirschfeld has joined #ruby
swills has quit [Quit: leaving]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikai has quit [Quit: No Ping reply in 210 seconds.]
darkf has joined #ruby
rikai has joined #ruby
oo_ has quit [Remote host closed the connection]
cmisenas has joined #ruby
pontiki has quit [Quit: <poit>]
havenn has joined #ruby
nateberkope has quit [Quit: Leaving...]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ddarkpassenger has joined #ruby
sfarley has quit [Remote host closed the connection]
oo_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
michael_mbp has quit [Excess Flood]
vikaton has joined #ruby
krowv has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
scx_ has joined #ruby
ddarkpassenger has quit [Client Quit]
ndrei has joined #ruby
michael_mbp has joined #ruby
c0ncealedx64 has quit [Quit: WeeChat 1.2]
c0ncealed has joined #ruby
scx has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
braincras has quit [Quit: bye bye]
ddarkpassenger has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
Yiota has joined #ruby
chinmay_dd has joined #ruby
sfarley has joined #ruby
braincrash has joined #ruby
sfarley has quit [Remote host closed the connection]
urbanmonk has joined #ruby
chinmay_dd has quit [Ping timeout: 276 seconds]
nickfausnight has quit [Quit: Connection closed for inactivity]
j4cknewt has joined #ruby
danielpclark has quit [Ping timeout: 246 seconds]
chris_8086 has joined #ruby
guest123_ has joined #ruby
<guest123_>
is this the proper place for a rails question?
<Ox0dea>
?rails guest123_
<ruboto>
guest123_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
scripore has quit [Quit: This computer has gone to sleep]
arooni-mobile has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
guest123_ has left #ruby [#ruby]
bf4 has quit [Quit: leaving]
j4cknewt has quit [Ping timeout: 248 seconds]
Aswebb_ has joined #ruby
towski_ has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
Aswebb_ has quit [Ping timeout: 252 seconds]
arutemu has joined #ruby
sargas has joined #ruby
sarkyniin has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
oo_ has quit [Remote host closed the connection]
t0rrieri has joined #ruby
crdpink has joined #ruby
danielpclark has joined #ruby
crdpink2 has quit [Ping timeout: 248 seconds]
wldcordeiro has joined #ruby
auzty has joined #ruby
Adran is now known as ChairmanZero
ChairmanZero is now known as Adran
gix has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
arutemu has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
aryaching has quit [Ping timeout: 272 seconds]
gix has joined #ruby
cmisenas has quit [Quit: cmisenas]
sinkensabe has joined #ruby
michael_mbp has quit [Excess Flood]
psyprus has quit [Ping timeout: 248 seconds]
psyprus has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
tubuliferous_ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
scripore has joined #ruby
michael_mbp has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
inoic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
KC9YDN is now known as Comandante
Comandante is now known as Ethan
Ethan is now known as KC9YDN
revath has joined #ruby
shadoi has quit [Quit: Leaving.]
gianlucadv has joined #ruby
oo_ has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
kies has quit [Ping timeout: 252 seconds]
Soda has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
revath has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
oo_ has quit [Ping timeout: 244 seconds]
<shevy>
we can define methods like: class Foo; def self.bar and also module Foo; def self.bar <--- how do we call these methods in general? "class method" just does sound wrong for when it is a method on a module
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
keen___________3 has joined #ruby
<[k->
module class methods? :>
keen___________2 has quit [Ping timeout: 265 seconds]
<shevy>
so, anyone else other than Ox0dea have a suggestion how to call class methods on modules?
<[k->
class methods on modules
<shevy>
yeah that's what I was coming up with as well :)
urbanmonk has left #ruby [#ruby]
baweaver_ has quit [Ping timeout: 248 seconds]
<[k->
:>
<shevy>
but I wonder from where that term originated
yfeldblum has quit [Remote host closed the connection]
<shevy>
take the old "principle of least surprise" - I think that came heavily through the pickaxe rather than from matz http://www.artima.com/intv/rubyP.html
<shevy>
Yukihiro Matsumoto: "Actually, I didn't make the claim that Ruby follows the principle of least surprise"
<shevy>
or wording such as File.exists? versus File.exist?
<jfarmer>
I have 100% had to do that to fix a bug before.
theery has joined #ruby
<shevy>
actually there could be worse bug finding ways than that
arutemu has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
t0rrieri has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
hanmac has joined #ruby
t0rrieri has quit [Ping timeout: 250 seconds]
revath has joined #ruby
arutemu has quit [Ping timeout: 272 seconds]
scx_ is now known as scx
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 255 seconds]
<jfarmer>
Yeah
<jfarmer>
In my case, the bug was a website of mine that was getting flagged as virus-ridden by Clam AV. There happened to be a particular byte sequence in the outputted HTML that matched some fingerprint.
<jfarmer>
Found it exactly by deleting half the output, seeing if it still matched, etc.
<ruboto>
flughafen # => undefined method `size54' for "'23456789TQKA'.chars.product([S,H,D,C]).map(&:join)":String (NoMethod ...check link for more (https://eval.in/387933)
<shevy>
it's too early in the morning to code flughafen
<baweaver>
Well at least use symbols: '23456789TJQKA'.chars.product(%w[♥ ♦ ♣ ♠]).map(&:join)
<yayfoxes>
ok, but then how do I um...work with that file after opening it?
<_blizzy_>
data = File.open("file.txt","r"0
<_blizzy_>
*)
<_blizzy_>
do something with data
<yayfoxes>
wow!
<Radar>
_blizzy_: which bug would that be/
wallerdev has quit [Quit: wallerdev]
<_blizzy_>
Radar, the @team one, which I still haven't fixed.
<Ox0dea>
>> File.read($0)
<ruboto>
Ox0dea # => "p begin\n File.read($0)\nrescue Exception\n puts \"\#{$!} (\#{$!.class})\"\n $stdout.flush\n ra ...check link for more (https://eval.in/387957)
<Radar>
_blizzy_: Do you have a way for me to reproduce the problem yet?
<yayfoxes>
_blizzy_: blizzy: so I write this new text file concatenate.rb
<[k->
have you tried refactoring :p
<_blizzy_>
I still am refactoring
<_blizzy_>
Radar, not yet.
<_blizzy_>
I think I found a fix however.
shoutsid has quit [Ping timeout: 252 seconds]
<yayfoxes>
how do I read command line arguments in a manner akin to GNU getopt?
<shevy>
single character: should be via getch / STDIN.getch / or possibly use io-console; you may have to require it first before .getch works or so, require 'io/console'
<shevy>
This one is also cool: row, col = STDIN.winsize
SolarSailor has quit [Ping timeout: 272 seconds]
dudedudeman has quit [Ping timeout: 264 seconds]
<_blizzy_>
Radar, it would be hard to recreate the error.
<_blizzy_>
unless you actually ran the bot itself.
<sevenseacat>
its now been a day and a half.
sandstrom has joined #ruby
fantazo has joined #ruby
<[k->
your code again, please?
<[k->
I shall try my best to be a compiler
gauke has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 246 seconds]
AndroidLoverInSF has quit [Ping timeout: 276 seconds]
<_blizzy_>
sevenseacat, yep.
olistik has quit [Remote host closed the connection]
<_blizzy_>
this is one hell of a bug.
<sevenseacat>
its likely not.
<_blizzy_>
then it must be something I'm overlooking.
olistik has joined #ruby
<[k->
sometimes, people get tired of looking for bugs
<sevenseacat>
likely so.
<[k->
they just do a full rewrite
<sevenseacat>
have you considered testing your code?
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
pandaant has joined #ruby
<jesterfraud_work>
is there a way to mock an object with expectations, but provide equality logic?
Atomic_Work has quit [Ping timeout: 250 seconds]
AndroidLoverInSF has joined #ruby
<sevenseacat>
see one of the problems with writing such a big slab of code like that is that it is indeed impossible to test anything
<jesterfraud_work>
I'm trying to expect an action mailer (deliver later) action, but the reference I build the expectation with for the objects passed in doesn't match the reference that actually happens, despite them being the 'same object' in terms of ID
<apeiros>
_blizzy_: weren't you the one who wondered why long methods are bad?
<_blizzy_>
apeiros, yes.
<apeiros>
_blizzy_: long methods being hard to debug would be one major reason
<_blizzy_>
apeiros, oh.
<apeiros>
and them being hard to test too
lxsameer has joined #ruby
<Ox0dea>
_blizzy_: Doesn't that make sense?
<_blizzy_>
sevenseacat, well I've been 'refactoring' for the past day.
<apeiros>
smaller methods which focus on a single thing can relatively easy be tested
<sevenseacat>
you cant test your code because it's so tied up to the web service
<sevenseacat>
your idea of refactoring is very different than mine
<_blizzy_>
Ox0dea, yes.
<Ox0dea>
_blizzy_: Are you particularly attached to your code at this point?
<_blizzy_>
Ox0dea, yes. :/
olistik has quit [Ping timeout: 256 seconds]
<Ox0dea>
Why?
micmus has joined #ruby
<_blizzy_>
because I've worked hard on it. It took me a week to get to this point.
<Ox0dea>
Why does that give the code worth?
<_blizzy_>
because time and effort.
<sevenseacat>
sunk cost fallacy
* [k-
imagines _blizzy_ looking at his code in the future, not a tear dropped
hectortrope has joined #ruby
<_mh_>
moin
<[k->
morning
iamdoo2 has joined #ruby
<Ox0dea>
_blizzy_: Isn't it great that we can learn from the experiences of others?
<_blizzy_>
Ox0dea, yeah.
commondream has joined #ruby
* sevenseacat
mumbles something about killing your darlings
alicanyilmaz has quit [Quit: alicanyilmaz]
arturaz has joined #ruby
<Ox0dea>
Only that their siblings may be ever better.
bayed has joined #ruby
<[k->
everyone here agrees that your code needs 'serious' refactoring :/
<[k->
do you want/need help with that?
doublemalt_ has quit [Ping timeout: 244 seconds]
<_blizzy_>
I've been refactoring for the past day though. :/
<Ox0dea>
It should be junked and begun anew once the prorammer has better learnt his craft.
<_blizzy_>
I'm not restarting this project.
<Ox0dea>
You spell your doom.
<_blizzy_>
ok. c:
<[k->
_blizzy_ you can by all means continue. when you complete the project, however, we wish you would try to rewrite it differently
<lemur>
Y'know a lot of programmers want to burn some of their old creations with fire right?
<_blizzy_>
[k-, I'm rewriting it atm.
<[k->
I wish I could burn some
<_blizzy_>
but not from scratch. I'm changing things around, making it more 'ruby'
<[k->
so embarrassing >.<
<_mh_>
I'd rather say I've not yet met one that doesn't want to kill some of their own abominations eventually ;)
<_mh_>
esp. if they have to keep maintaining them.
<sevenseacat>
_blizzy_: but you're not doing that
<_blizzy_>
sevenseacat, I am.
<lemur>
_mh_: mainly because they end up in production
<sevenseacat>
Ruby is an object-oriented language - you are not making things more object oriented
<shevy>
_blizzy_ what helped me is to try to have things as small and minimal as possible
<sevenseacat>
you're pulling out helper methods that rely on global state
<[k->
I think you need one of Sandi Metz videos
<shevy>
_blizzy_ like building with lego bricks
<lemur>
sevenseacat: how far back was the link to it?
commondream has quit [Ping timeout: 265 seconds]
<sevenseacat>
oh sometime yesterday
<lemur>
...dang nick
<_mh_>
lemur: best teacher to coding standards though... wondering half a day 'who wrote this **** piece of code' and then 'fuck, that's me'
<sevenseacat>
_blizzy_: can you give us an updated link to your code?
<shevy>
lemur I know you are a beaver in disguise!
lemur is now known as baweaver
<shevy>
:D
<Ox0dea>
Very sneaky.
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
<[k->
(let me find the one that she did refactoring)
<_blizzy_>
she
<baweaver>
secondary nick
<baweaver>
lemur was my original forum alias
<Ox0dea>
_blizzy_: Sandi Metz is female.
<_blizzy_>
Ox0dea, oh.
<shevy>
_mh_ oh yeah that's how I end up with some comments... I need to explain to my future self why I went that specific way in code, so I can avoid a "wtf was I thinking back then" moment later in time
<_mh_>
shevy: I suppose that can help, but most of the time, in a few years, stuff you write today you'll consider 'bad' or 'outdated' or 'wth was I thinking'
<[k->
found it
<sevenseacat>
the first thing I would do is move all of the websocket stuff out into its own class - nearly every single one of your methods deals with formatting data either received by or sent to a websocket
<shevy>
\o/ you are catifying the code now _blizzy_
<_blizzy_>
shevy, is that good or bad.
Xeago has joined #ruby
<shevy>
it's good. cats are good
<_blizzy_>
oh.
<shevy>
monkeys are bad, hence the term monkeypatching!
<_mh_>
patching monkeys should be illegal
<shevy>
yeah
<Ox0dea>
String#flip should be in core, though. :)
<shevy>
I remember matz showed a picture of a duck typing
terlar has joined #ruby
<baweaver>
I might make a Pokemon system in Ruby later for jollies.
<sevenseacat>
and then that makes your code easier to test, because in tests you can simply swap out the websocket class with a different class with stubbed implementations
<_mh_>
Ox0dea: agreed.
<Ox0dea>
baweaver: I have considered it on several occasions.
<_blizzy_>
so, if you was the owner of my project, what would you do next
<danielpclark>
ooh
<_blizzy_>
other than rewriting it
spider-mario has joined #ruby
<danielpclark>
grr, let me switch to IRB
<[k->
I would forget about it
<_blizzy_>
hmm.
<sevenseacat>
you ripped out the websocket stuff already?
<[k->
this never happened before! :>
* [k-
goes on with my life
User458764 has joined #ruby
tvw has joined #ruby
<_blizzy_>
no. I should rip out the ws stuff? what do you mean by that?
lavros has joined #ruby
rubie has joined #ruby
skade has quit [Client Quit]
<_mh_>
_blizzy_: the change sevenseacat suggested about 15 mins ago?
<_blizzy_>
_mh_, sorry then. may you reexplain it then please.
dgutierrez1287 has quit [Ping timeout: 246 seconds]
<sevenseacat>
you said you could do it but now you have no idea what i meant?
<_blizzy_>
I forget easily.
<sevenseacat>
good. scroll up and re-read then.
<_mh_>
06:52 < sevenseacat> the first thing I would do is move all of the websocket stuff out into its own class - nearly every single one of your methods deals with formatting data either received by or sent to a websocket
Jackneill has joined #ruby
unshadow has joined #ruby
<apeiros>
_blizzy_: if you forget easily, then taken notes
<_blizzy_>
ok.
<sevenseacat>
once that's done, I think it would be easier to see what your app actually does, because atm I don't know what it does.
<_blizzy_>
I'm making a class called Chat
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 256 seconds]
<yayfoxes>
ok can somebody please help me go through and rate books? Learn to Program, by Chris Pine isn't bad, so skip that book
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat>
if you name books that people here have read, I'm sure they can give you their opinions.
<yayfoxes>
I love Ruby seems to be another good book, at first glance
husanu has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<sevenseacat>
read and/or write
<sevenseacat>
*wrote
<danielpclark>
After looking at the source for the method I replicated the results. Here it is.
<yayfoxes>
I'm reading I Love Ruby, my opinion is in a sec
<_blizzy_>
I'm still confused. you say put websocket related stuff in there. so battle related websocket stuff? or just stuff in general.
jesterfraud_work has quit [Ping timeout: 246 seconds]
<danielpclark>
Thought the problem was not getting a count of 52 cards... guess I misunderstood
<_blizzy_>
*websocket stuff in general.
baweaver has quit [Remote host closed the connection]
<Ox0dea>
danielpclark: Golf is about making as short a solution as possible.
<[k->
I'm going to cut my hair soon ;-;
<_blizzy_>
aw.
<sevenseacat>
_blizzy_: all of the code to deal with translating readable stuff into the format to be sent over the websocket, and anything to deal with interpreting what the websocket receives into meaningful data
lkba has quit [Ping timeout: 256 seconds]
<_blizzy_>
sevenseacat, ok.
<danielpclark>
Is an Array of results okay for the golf challenge?
<sevenseacat>
uh.... I don't know what direction you're going in.
<_blizzy_>
the right direction hopefully.
<_blizzy_>
I mean.
<_blizzy_>
the direction you want me to go in.
<_blizzy_>
about ripping out the ws stuff
<_blizzy_>
and putting it into one class.
iamdoo2 has quit [Remote host closed the connection]
<sevenseacat>
not quite what I meant
<_blizzy_>
oh.
<_blizzy_>
._. I can't win
towski_ has quit [Ping timeout: 272 seconds]
<sevenseacat>
I meant building a websocket adapter for your code, not just moving all of your existing methods into a new class.
<Ox0dea>
> using a compass to find enlightenment
<sevenseacat>
_blizzy_: how hard with your code would it be to print output to a console, instead of sending it over a websocket?
<sevenseacat>
printing nice output to a console
<sevenseacat>
not the same text you're sending over the websocket
<_blizzy_>
so a parser?
shoutsid has joined #ruby
<sevenseacat>
sort of
dchoi has quit []
dchoi has joined #ruby
datanoise has quit [Ping timeout: 252 seconds]
<sevenseacat>
if the format of the input you were receiving from your websocket changed, how much of your code would you have to change?
<ljarvis>
moin
<sevenseacat>
likely a lot, right?
hotpancakes has quit []
<_blizzy_>
yes.
<_blizzy_>
OK I get it now
<_blizzy_>
:)
<sevenseacat>
if that was all encapsulated in one place, your adapter class, you'd only have to change it there.
<sevenseacat>
or if you wanted to print nice messages to a console, you could swap the adapter for one that printed messages like "you did a mega attack on Foobar!" (i have no idea if thats an actual output)
white_bear has joined #ruby
<Ox0dea>
_blizzy_: What do you have against Hoopa and Volcanion?
arturmartins has quit [Quit: Leaving...]
<_blizzy_>
Ox0dea, um, nothing.
<_blizzy_>
why?
<Ox0dea>
Then why aren't they in data/pokemon.txt?
<_blizzy_>
oh.
que__ has quit [Quit: Page closed]
<_blizzy_>
I didn't add them yet. I used a generator to generate the pkmn list.
<_blizzy_>
since typing out 721 names would take a while.
arount has joined #ruby
<Ox0dea>
Have you thought about how you're going to handle Flabébé?
arturmartins has joined #ruby
<_blizzy_>
not yet.
arount has left #ruby [#ruby]
<sevenseacat>
lol
Iskarlar has quit [Ping timeout: 252 seconds]
<maloik>
Ox0dea: made me lol :D
Xeago has quit [Read error: Connection reset by peer]
<sevenseacat>
Ox0dea: you really are a font of obscure knowledge.
ndrei has joined #ruby
<_blizzy_>
I knew someone in here understood what I was talking about.
<_blizzy_>
:)
workmad3 has joined #ruby
Iskarlar has joined #ruby
dchoi has quit [Remote host closed the connection]
dchoi has joined #ruby
dchoi has quit [Client Quit]
symm- has quit [Ping timeout: 276 seconds]
dchoi has joined #ruby
vondruch has joined #ruby
dchoi has quit [Client Quit]
dchoi has joined #ruby
Iskarlar has quit [Client Quit]
danielpclark has quit [Ping timeout: 272 seconds]
dchoi has quit [Client Quit]
dchoi has joined #ruby
dchoi has quit [Client Quit]
arup_r has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
shock_one has joined #ruby
ruu has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
Iskarlar has joined #ruby
sandstrom has joined #ruby
arup_r_ has joined #ruby
aapole has quit [Ping timeout: 264 seconds]
ryba has joined #ruby
ghostpl has joined #ruby
k3asd` has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
<apeiros>
`render text: "OK"` --> Completed 200 OK … (views 17ms) - where the hell does that spend 17ms? :D
bosma is now known as yolofxtato
yolofxtato is now known as bosma
arup_r_ has quit [Client Quit]
arup_r has joined #ruby
<Silex>
apeiros: production?
<ljarvis>
apeiros: rails?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Iskarlar has joined #ruby
anne-marie_ has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Helheim has quit [Remote host closed the connection]
<sevenseacat>
also, your rearrangements havent addressed any of the questions i posed earlier
<sevenseacat>
because you're just moving code around, not refactoring it
nickfausnight has quit [Quit: Connection closed for inactivity]
Scroff has joined #ruby
c0m0 has joined #ruby
<_blizzy_>
I have
<_blizzy_>
I put all the websocket stuff in one class now
djbkd has quit [Ping timeout: 248 seconds]
<_blizzy_>
so I can easily change websocket modules if I have to.
zeroDivisible has joined #ruby
doertedev has joined #ruby
tvw has quit []
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat>
I'm also fairly certain you're not actually running any of this code you're writing
<sevenseacat>
because there are some huge glaring typos in it
<_blizzy_>
I am running it
arturmartins has quit [Quit: Leaving...]
bkxd has quit [Ping timeout: 256 seconds]
<_blizzy_>
it connects to said websocket
<_blizzy_>
I've fixed the typos.
<sevenseacat>
which ones?
joonty has joined #ruby
<_blizzy_>
the ones you posted.
bkxd has joined #ruby
<sevenseacat>
i posted indentation issues, not typos
<sevenseacat>
you're not setting any of your instance variables anywhere.
<sevenseacat>
hence, running the code will cause a lot of problems.
<_blizzy_>
I've also fixed the indentation issues.
olistik has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
ndrei has joined #ruby
<apeiros>
Silex: na, dev
ghostpl has joined #ruby
rbowlby has quit [Remote host closed the connection]
<apeiros>
[k-: probably :D
<apeiros>
ljarvis: yes, rails
<sevenseacat>
I keep finding more and more issues just with this BattleParser class
<ddfreyne>
yorickpeterse: There's no point in adding gem checksums to the ruby-lint gem repository if you’re not signing your Git commits
<sevenseacat>
there's no possible way it can work. for anything.
<ddfreyne>
yorickpeterse: Anyone could commit in your name.
<_blizzy_>
well, it runs.
<_blizzy_>
it just crashes when a battle happens.
<[k->
that is why you should use nice variable names
<sevenseacat>
if by run you mean it loads without error, then sure
eGGsha has joined #ruby
<sevenseacat>
but it wont work. for anything.
<_blizzy_>
ok.
<[k->
@variables default to nil
<_blizzy_>
thanks for allt the help so far :)
<[k->
so it still runs
<sevenseacat>
you're not setting any of the instance variables, for a start.
shock_one has quit [Remote host closed the connection]
<sevenseacat>
so all of the methods you're calling on them, will crash.
towski_ has quit [Remote host closed the connection]
<_blizzy_>
I'm not setting them in initialize?
<sevenseacat>
you dont have an initialize method.
<_blizzy_>
oh. I typoed
<sevenseacat>
hence i said glaring typos.
<_blizzy_>
you could of pointed them out. c:
<sevenseacat>
so I think you're wasting my time now.
<sevenseacat>
you said the code worked.
<_blizzy_>
but I'm trying.
rbowlby has joined #ruby
<_blizzy_>
yes, the code runs.
<_blizzy_>
without errors.
towski_ has joined #ruby
<_blizzy_>
I'm trying my best to let you help me.
<sevenseacat>
except for the part where it crashes
lordkryss has joined #ruby
<_blizzy_>
ok but I'm trying.
<_blizzy_>
everyone makes mistakes.
<[k->
that is not how you test if a program is correct...
towski_ has quit [Remote host closed the connection]
<Ox0dea>
Isn't it, though?
towski_ has joined #ruby
<[k->
only syntactical wise
<[k->
maybe if it was Haskell, sure
Bounga has joined #ruby
<sevenseacat>
yeah you're trying alright
<[k->
but not ruby
krz has quit [Read error: Connection reset by peer]
towski_ has quit [Remote host closed the connection]
<Ox0dea>
I thought trying duper hard made the code at least 2x gooder.
<_blizzy_>
I give up.
Iskarlar has quit [Read error: No route to host]
<[k->
good!
Iskarlar_ has joined #ruby
<[k->
now you can start from scratch!
<_blizzy_>
I'm not
<[k->
yay!
Rickmasta has joined #ruby
<[k->
:(
vikaton has quit [Quit: Connection closed for inactivity]
<_blizzy_>
I mean I give up with trying to get help from here.
<[k->
that's mean :(
<sevenseacat>
so you really did just waste my time. thanks!
<_blizzy_>
but I haven't so far even heard a "you're trying! good job" or "you're getting there"
<_blizzy_>
all I hear is complaint after complaint.
<ljarvis>
_blizzy_: you can't be angry with people in here, lots of people have tried very hard to help but it's been incredibly difficult
<sevenseacat>
because you're not getting there
<_blizzy_>
but I am.
<sevenseacat>
no you're not.
<_blizzy_>
ljarvis, I am trying.
* [k-
pats sevenseacat
<_blizzy_>
IMO I am.
Xeago has joined #ruby
<[k->
then there is no use asking for help
<[k->
since you got where you want
<_blizzy_>
I've made great progress. I've been 'refactoring', making my code more OOP.
krz has joined #ruby
<ljarvis>
_blizzy_: You've been asked a few times to delete lots of code and create a very minimal example but i've seen no evidence that you've tried that
<yorickpeterse>
morning
<sevenseacat>
criticism of your code != complaint
<[k->
morning
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<_blizzy_>
ljarvis, because there are other ways of doing things.
<sevenseacat>
oh christ.
<Silex>
apeiros: well, give it a try with production
<ljarvis>
eh
<[k->
_blizzy_ please
<ljarvis>
well that's me out then
<Silex>
apeiros: dev being slow is not really a surprise as it reloads almost everything all the time
<[k->
_blizzy_ I recommend you watch the video now
<apeiros>
Silex: well, it says in *views* it takes 17ms
<sevenseacat>
you're running out of people to help you because you insist, just like this, that you already know better
<apeiros>
and that's just a plain render text
<apeiros>
there's nothing to reload
<apeiros>
nothing to process
<_blizzy_>
I don't know better.
<Silex>
apeiros: are you sure of that?
ndrei has quit [Ping timeout: 244 seconds]
<apeiros>
Silex: errr, yes?
<sevenseacat>
then when people asked you to make a minimal example, why did you point blank refuse?
<apeiros>
unless it lies about what it measures…
towski_ has joined #ruby
kalx has joined #ruby
<Silex>
I can imagines tons of things to load to render text
<_blizzy_>
I don't point black refuse.
<sevenseacat>
because 'there are other ways to do things'
kalx has left #ruby [#ruby]
<apeiros>
Silex: do tell?
<ljarvis>
Silex: the metric is view loading...
<_blizzy_>
because you really can't make a minimal example. the minimal example would be going to the website
<_blizzy_>
making an account
<_blizzy_>
connecting the bot
<Ox0dea>
Pfft.
<_blizzy_>
and then battling.
<sevenseacat>
you really can. its called separation of concerns.
<ljarvis>
that shouldn't differ with plain text rendering
Iskarlar_ has quit [Client Quit]
<Silex>
apeiros: e.g reload all the renderers, even to finally only use the one that renders text
<sevenseacat>
you have no separation of concerns at the moment. everything is tied up together.
<Ox0dea>
_blizzy_: That is, in fact, a maximal example.
<maciejczyzewski>
hi folks!
<sevenseacat>
hence we're trying to get you to split them out into minimal examples/.
<_blizzy_>
sevenseacat, I'm splitting it
<apeiros>
Silex: renderers are not part of the reload cycle in rails
<_blizzy_>
just like you said to.
Zai00 has joined #ruby
<_blizzy_>
I'm splitting it into a seperate web socket class
<apeiros>
haml, slim, erb are libs, they get loaded once
<_blizzy_>
so if I change websocket modules, I easily can.
Xeago has quit [Remote host closed the connection]
Iskarlar has joined #ruby
<Silex>
apeiros: trace it then? see where it spends time
workmad3 has joined #ruby
<apeiros>
Silex: eh, not wasting time on this
<ljarvis>
apeiros: it's 17ms just give up
<Silex>
apeiros: well you already are atm :)
<apeiros>
it just caught my eye
<ljarvis>
:D
<Silex>
apeiros: as I said, try in production
<Ox0dea>
sevenseacat: Thank you for trying.
<sevenseacat>
o/
<_blizzy_>
yeah, thanks for all the help, sevenseacat
<_blizzy_>
you really got me far. :) really, thanks.
<_blizzy_>
no sarcasm.
<apeiros>
Silex: not running this locally in production. far too much config to change.
marr has joined #ruby
<apeiros>
and I'm not sure I'll remember to check the logs once it runs on production :)
<_blizzy_>
well, time to continue this project.
roolo has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
<Silex>
apeiros: what? what kind of setup do you have where switching to production takes more than 15 seconds?
nutha has joined #ruby
<ljarvis>
apeiros: obs you should be using node
serivich has joined #ruby
sulky has joined #ruby
lavros has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
lessless has joined #ruby
<_blizzy_>
node isn't that bad
towski_ has quit [Remote host closed the connection]
<_blizzy_>
Silex, did you know that there's a php framework named after you? :)
datanoise has joined #ruby
MatthewsFace has joined #ruby
<adaedra>
<_blizzy_> node isn't that bad
lavros has joined #ruby
<_blizzy_>
well it's not.
<adaedra>
different people, different tastes :°
<_blizzy_>
imo it's not.
<sevenseacat>
lawl
<_blizzy_>
what's funny. c:
<adaedra>
"imo", we're getting there.
<_blizzy_>
ok.
lkba has joined #ruby
lva has joined #ruby
<adaedra>
:)
<_blizzy_>
:)
<ljarvis>
aaaaaaaa
<ljarvis>
god dammit
<maloik>
bbbbbbbbbb
<ljarvis>
maloik: nou
<_blizzy_>
c?
<maloik>
oh, not that game :(
<Silex>
_blizzy_: yes
<adaedra>
Who give the d?
<_blizzy_>
heh.
lkba_ has quit [Ping timeout: 250 seconds]
<Silex>
_blizzy_: all of a sudden I was ungooglable
<_blizzy_>
lol.
<adaedra>
ljarvis: what happen?
<_blizzy_>
you're still googlable.
<ljarvis>
adaedra: terminal crapped itself
<adaedra>
the command is reset, not aaaaaaa
jenrzzz has quit [Ping timeout: 272 seconds]
withnale_ has joined #ruby
oo_ has quit [Remote host closed the connection]
gagrio|MRG is now known as gagrio
<jhass>
would be a good alias though
<adaedra>
alias merde=reset
<[k->
I think every programmer should learn java
<adaedra>
I think not
<[k->
then they will know why everyone loves ruby
<sevenseacat>
adaedra: lol
<_blizzy_>
I find Java ok.
<Silex>
apeiros: Rendered text template (0.0ms)
<Silex>
in development
<Silex>
(fyi)
<sevenseacat>
you find everything okay
<sevenseacat>
except ruby
<[k->
there is a saying that you can't find happiness if you don't experience hardships
<adaedra>
:D
<_blizzy_>
no I like ruby.
<adaedra>
you find it ok?
<_blizzy_>
no.
<ljarvis>
java is awesome. haters
<_blizzy_>
it's my favorite language.
<[k->
ljarvis: nou
<Silex>
all languages sucks for one reason or another
<_blizzy_>
yep.
<adaedra>
^
<sevenseacat>
except php. *runs like hell*
<ljarvis>
except my pet language
<_blizzy_>
lol.
<_blizzy_>
I'm ok with PHP.
* [k-
shoots sevenseacat
<adaedra>
sevenseacat: indeed. it sucks for all the reasons.
jenrzzz has joined #ruby
<_blizzy_>
it's also one of my favorite languages.
<sevenseacat>
adaedra: precisely :P
<_mh_>
php...
* sevenseacat
resists the urge to recommend _blizzy_ write the bot in one of those other languages
* _mh_
goes back to hiding in a corner somewhere till php passes.
<adaedra>
_blizzy_: I liked PHP, until I had to work with it.
<ruboto>
jhass, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
serivich has quit [Ping timeout: 265 seconds]
<jhass>
ok!
<ljarvis>
lots of friendly fire going on
<[k->
this actually looks readable
<[k->
well done, c#!
<_blizzy_>
because it's C#
<_blizzy_>
the scala one is readable also
<adaedra>
so you see sharp?
<_blizzy_>
I wear glasses
* adaedra
runs
<_blizzy_>
so no.
sandstrom has joined #ruby
<[k->
the Scala one is not readable
<_blizzy_>
how is it not?
serivich has joined #ruby
<shevy>
it's ugly
<_blizzy_>
I bet if I post it in the scala channel
<_blizzy_>
people will say it is
<shevy>
they are ugly too
<[k->
lol
<_blizzy_>
ok this shows the ruby community
<_blizzy_>
in a nutshell.
<[k->
shevy, tsk tsk
<sevenseacat>
again with the community accusations
arturmartins has joined #ruby
<Ox0dea>
Gotta offload that incompetence somewhere.
<apeiros>
_blizzy_: what I see is a community which shows tremendous patience with you
<apeiros>
_blizzy_: and you're paying that patience back by accusing them. how rude.
<_blizzy_>
I never said anything bad
oo_ has joined #ruby
<_blizzy_>
I said this shows the ruby community
<_blizzy_>
you can take that as good or bad
danielpclark has quit [Remote host closed the connection]
<adaedra>
…
<apeiros>
_blizzy_: oh stop bullshitting us.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
that's insulting.
<_blizzy_>
but is it true?
<shevy>
it is true that the ruby community is awesome
<sevenseacat>
apeiros is the most levelheaded person here. this is interesting.
ndrei has quit [Ping timeout: 255 seconds]
<apeiros>
if you can't support what you just said, you apologize. you don't weasel out.
<_blizzy_>
I'm not weaseling out
<ljarvis>
right, enough of this shit. If you want to discuss Ruby or have a question to follow up on your code then go ahead, otherwise go to #ruby-offtopic
<_blizzy_>
I never said the community is bad.
<Ox0dea>
On the Internet, nobody knows you're a weasel.
<[k->
_blizzy_: you are making everyone unhappy :(
<_blizzy_>
^
<_blizzy_>
block
<shevy>
I am not unhappy!
<_blizzy_>
ok well this is off topic so I'll go back to talking ruby
<sevenseacat>
see ya, have fun in #ruby-offtopic
ndrei has joined #ruby
<[k->
?unhappy shevy
<ruboto>
shevy, I don't know anything about unhappy
<ljarvis>
my brain seriously messed up parsing `alias < merge` on the first pass for some reason
<anne-marie_>
well, my problem is that when i run the task $rake db:create the .env is not loaded. I've created my own rake tasks and don't have problems. I don't have problems too with the pg gem.
<ljarvis>
anne-marie_: .env is a file?
<anne-marie_>
the $rake db:create create a database with the wrong owner.
<anne-marie_>
yes .env is a file and i use the 'dotenv' gem
oo_ has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 255 seconds]
<ljarvis>
anne-marie_: and you load dotenv in your rakefile?
<_blizzy_>
to everyone, sorry about saying "this shows the ruby community"
Igorshp has quit [Read error: Connection reset by peer]
sandstrom has quit [Quit: My computer has gone to sleep.]
wldcordeiro has quit [Ping timeout: 248 seconds]
<_blizzy_>
dear #ruby: SOrry that we all got off on the wrong foot. I dearly am sorry for what I said. I hope we can start off on the right foot, or, if you like, the left foot.
<ljarvis>
anne-marie_: so, what env variable is not being set? the database name?
<_blizzy_>
*Sorry
senayar has quit [Remote host closed the connection]
sandstrom has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
eGGsha has joined #ruby
<apeiros>
_blizzy_: appreciated
<anne-marie_>
ljarvis> ENV['DATABASE_USER_NAME'] & ENV['DATABASE_PASSWORD'] the database name is written in the database.yml
eGGsha is now known as eGGshke
towski_ has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
<ljarvis>
anne-marie_: The username is fine, the password you don't really want to check into version control unless it's private (and even then you need to be careful)
Zai00 has quit [Quit: Zai00]
arutemu has joined #ruby
Dopagod has joined #ruby
Zai00 has joined #ruby
husanu4 has quit [Remote host closed the connection]
tvw has joined #ruby
nso95 has quit [Quit: nso95]
khebbie has joined #ruby
GnuYawk has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
<anne-marie_>
ljarvis: ok, thanks ! i have in mind since 4 days that the username must to be hidden for security reason (i'm a ruby newbie) ^^
allomov has joined #ruby
commondream has quit [Ping timeout: 252 seconds]
allomov has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
allomov has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
husanu3 has joined #ruby
ghostpl has quit [Remote host closed the connection]
sandstrom has joined #ruby
giuseppesolinas has joined #ruby
iateadonut has joined #ruby
dgutierrez1287 has joined #ruby
<Ox0dea>
jhass: Have you defined lots of aliases?
multi_io has quit [Ping timeout: 264 seconds]
<jhass>
mmh, no
langlands has joined #ruby
<jhass>
maybe 5 I frequently use
Igorshp has quit []
<Ox0dea>
$ shuf -n1 <(alias)
ghostpl has joined #ruby
<jhass>
just 14 in my .zshrc with a couple being nocorrect/noglob stuff
Dopagod has quit [Ping timeout: 252 seconds]
multi_io has joined #ruby
<iateadonut>
how can i use an iteration of a loop as a key name in a hash?
<iateadonut>
file.split.uniq.each { |word| words = {:word=>1} }
husanu3 has quit [Killed (marienz (Drones are not welcome on freenode.))]
<iateadonut>
i want to use the output |word| as :word
sulky has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
<Ox0dea>
iateadonut: You probably don't. Do you know that Hashes can have default values?
<iateadonut>
h[w] += 1; h } - what does that last h do?
<ljarvis>
:D
invite has joined #ruby
<[k->
that is the accumulator
User458764 has joined #ruby
<ljarvis>
iateadonut: reduce/inject expect the accumulator to be returned by the block
<[k->
reduce will use the return value of the block
<ljarvis>
iateadonut: each_with_object(Hash.new(0)) { |i, h| h[i] += 1 } might make more sense
RegulationD has quit [Ping timeout: 248 seconds]
<[k->
reduce returns the final object, each does not!
<ljarvis>
it's a style choice, really. Imo enforcing the return value to the non-expression in a reduce is a code smell and why each_with_object was created
<mikecmpbll>
i think it was taken out of stdlib and just bundled with ruby as a gem
<Ox0dea>
mikecmpbll: Yes, that's correct.
<ljarvis>
mikecmpbll: right, that'd make sense
<mikecmpbll>
Ox0dea: ok sweet, cheers.
husanu has quit [Remote host closed the connection]
avril14th has joined #ruby
olistik has quit [Remote host closed the connection]
lolmaus has joined #ruby
lolmaus_ has quit [Ping timeout: 256 seconds]
<shevy>
one day the whole of ruby shall become gemified
<apeiros>
hash = nil # reassign the variable - will not modify the hash, if you have it referenced elsewhere, it'll still be there
<iateadonut>
i'm coming here from php. this is really different.
<shevy>
iateadonut I see
<apeiros>
iateadonut: I don't think it's different, no
<iateadonut>
well, how can i do this with an existing hash?
<Ox0dea>
Do hwhat?
<apeiros>
except for that one case where in php I think you can pass in references to the variable itself
<shevy>
iateadonut there are methods such as .update() but you don't really need to worry about terminating any object really
<iateadonut>
yeah, i realized what i was doing wrong.
doublemalt_ has joined #ruby
<iateadonut>
as far as terminating the object.
<apeiros>
iateadonut: how about you show us what you want to do? you know, like with code. because we answered your question and you seem to be still unclear…
<mikecmpbll>
manual gc
tkuchiki has quit [Remote host closed the connection]
<apeiros>
oh… destroy in the GC sense
<Ox0dea>
mikecmpbll: Is there such a thing?
<shevy>
you can have fun with the garbage collector like GC.enable or GC.start to some degree, but I have not really had a use case for it myself
* mikecmpbll
just guessing
tkuchiki has joined #ruby
<iateadonut>
this works: file.split.each_with_object(Hash.new(0)) { |word, words| words[word] += 1; word }
<mikecmpbll>
Ox0dea: no clue, i would guess it's possible? my ruby-fu is weak
<apeiros>
but that's indeed the same as in php
<shevy>
iateadonut \o/
<shevy>
but shorter!
<apeiros>
iateadonut: php too will GC when nothing references the object anymore. ruby does the same.
<iateadonut>
but what if i already have the hash 'words' and i want to run the script to update that hash?
<Ox0dea>
mikecmpbll: I was only poking fun; manually collecting garbage tends to be called memory management.
<[k->
'this test is a test'.split.reduce(Hash.new(0)) { |hash,word| hash.update({ "#{word}" => 1 }) { |k, oldv, newv| oldv+newv }
<[k->
}
<shevy>
iateadonut well .update?
_blizzy_ has quit [Ping timeout: 248 seconds]
<[k->
did I do it?
* apeiros
lunch time, cya folks
<shevy>
may be easiest to try it in irb first
<iateadonut>
i'm working in irb
<iateadonut>
thanks
<shevy>
ok
<chris2>
apeiros: its in 1.0 even. wow.
<jhass>
iateadonut: then you pass the existing hash to each_with_object
<iateadonut>
jhass, this does not seem to work: file.split.each_with_object( words ) { |word, words| words[word] += 1; word }
<iateadonut>
words being the hash that already exists
choke has joined #ruby
oo_ has joined #ruby
Karpah has joined #ruby
Iskarlar has joined #ruby
<jhass>
iateadonut: "doesn't work" is an empty statement. Detail your expectations and the actual result
tkuchiki has quit [Remote host closed the connection]
sevenseacat has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
<iateadonut>
i would think that words would be passed into the loop the same as before. instead i get an error: undefined method `[]' for nil:NilClass
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<[k->
oh you did it
<[k->
it was a pain to do it in mobile
Muhannad has joined #ruby
soulcake has quit [Quit: Quack.]
shock_one has quit [Remote host closed the connection]
<Ox0dea>
I would imagine so.
<Ox0dea>
Which keyboard do you use that makes that even remotely tolerable?
soulcake has joined #ruby
Muhannad has quit [Max SendQ exceeded]
<[k->
Google keyboard
<[k->
it's good for general typing
<[k->
but not programming
aapole has quit [Ping timeout: 272 seconds]
<[k->
:p
psy__ has quit [Ping timeout: 256 seconds]
Muhannad has joined #ruby
OrbitalKitten has joined #ruby
<adaedra>
who programs on mobile
<Darkwater>
Ox0dea, [k-: hacker's keyboard
<Darkwater>
similar to stock (ics) keyboard, but for hackers :v
<[k->
elitists
<shevy>
adaedra rockstar programmers!
<shevy>
and [k-
<shevy>
:-)
<Darkwater>
I at least use ssh on my phone
<Darkwater>
and sometimes I want to show off, or do a little bit of zsh on the go
<shevy>
I sing into my phone and have it produce code
<shevy>
out came php
sandstrom has quit [Quit: My computer has gone to sleep.]
<Darkwater>
you must be a terrible singer
<Darkwater>
im sorry
<shevy>
;(
troulouliou_dev has joined #ruby
elia has quit [Ping timeout: 252 seconds]
<[k->
hahahah
Muhannad has quit [Max SendQ exceeded]
<[k->
I can't have 5 rows!
Muhannad has joined #ruby
psy__ has joined #ruby
<shevy>
use 6
<Ox0dea>
He was referring to Hacker's Keyboard.
<[k->
I can't have > 4
<Darkwater>
then set it to 4
endash has joined #ruby
Muhannad has quit [Max SendQ exceeded]
<jhass>
or use minuum which has a single :P
Muhannad has joined #ruby
msgodf has joined #ruby
Muhannad has quit [Max SendQ exceeded]
chinmay_dd has joined #ruby
phutchins has joined #ruby
Muhannad has joined #ruby
endash has quit [Ping timeout: 256 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
CloCkWeRX has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Muhannad has quit [Max SendQ exceeded]
OrbitalKitten has joined #ruby
Muhannad has joined #ruby
<[k->
phone.dying.good.bye
oo_ has quit [Remote host closed the connection]
startupality has joined #ruby
Al3ks has joined #ruby
oo_ has joined #ruby
<Darkwater>
o/
<Darkwater>
rip
stamina has joined #ruby
<konsolebox>
i haven't noticed this much, but if i cast a return on a File.open block, would the opened file be closed or not?
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Muhannad has quit [Max SendQ exceeded]
phutchins has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Read error: Connection reset by peer]
negev has joined #ruby
Muhannad has joined #ruby
fabrice31 has joined #ruby
<negev>
hi, i've built a small rack application and for some reason all POST requests get redirected to GET. this is what i'm doing to run rackup: http://pastebin.com/Jjgu9XZ3 WebApp.call() is never called with a POST request, it's always redirected first.
<agent_white>
Buddy o' mine from #learnprogramming is writing a gameboy emulator... in haskell. I have no idea wuts goin on.
<iateadonut>
(i'll get the ruby cookbook after i'm finished with the rails crash course)
<agent_white>
Let me know if you are interested in joining the mumble chat. I'd rather hear from experienced dewds than folks like mahself.
<agent_white>
:P
gix has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
atomical has joined #ruby
khebbie has joined #ruby
Muhannad has quit [Max SendQ exceeded]
Muhannad has joined #ruby
<shevy>
iateadonut it's just like riding on a bicycle, the more code you write, the easier it'll all become; I also came from PHP btw, I even liked PHP more than perl strangely enough
Iskarlar has joined #ruby
withnale_ has quit [Ping timeout: 256 seconds]
Ox0dea has quit [Quit: WeeChat 1.3-dev]
<Darkwater>
you saying that broke my brain
Muhannad has quit [Max SendQ exceeded]
lkba_ has joined #ruby
gix has joined #ruby
Muhannad has joined #ruby
bruno- has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<iateadonut>
shevy, i've really liked laravel, and have found out that it borrowed most it's functionality from rails
<iateadonut>
so i'm learning ruby - making myself more well-rounded
<agent_white>
Well-chiseled"
Muhannad has quit [Max SendQ exceeded]
<agent_white>
Rubies are not round, but... ya know...
Muhannad has joined #ruby
<shevy>
well rails is a bit different from ruby, in that you may see patterns used that may not be that common outside of rails
<shevy>
I don't remember making use of things like :has_many and similar things much at all
lkba has quit [Ping timeout: 264 seconds]
<[k->
no one ever said ew perl
<[k->
all they said was ewwwwww java
<iateadonut>
the model relationships were all borrowed in laravel eloquent
rubie has joined #ruby
<[k->
and phone
<[k->
php*
bruno- has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
_blizzy_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<iateadonut>
there are basically no competing frameworks in ruby, right? everyone uses rails?
tkuchiki has joined #ruby
<jhass>
haha no
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
sinatra is quite popular for smaller stuff
mdw has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
<Darkwater>
for big mvc stuff there's rails, for smaller stuff there's sinatra
<Darkwater>
I use both appropiately
senayar has quit [Ping timeout: 256 seconds]
<sevenseacat>
then theres other newer options like lotus
<sevenseacat>
but rails and sinatra are the big two
oo_ has quit [Remote host closed the connection]
ruu has joined #ruby
<ljarvis>
lotus is awesome
<sevenseacat>
so I've heard
bronson has quit [Remote host closed the connection]
rodferso1 has joined #ruby
<iateadonut>
"Just like Jedi Knights build their own lightsabers, I think web developers should build their own personal websites" - "Rails Crash Course"
oo_ has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
<adaedra>
\o/
OrbitalKitten has joined #ruby
commondream has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
lotus looks interesting
ReD-BoY_ has joined #ruby
ruu has quit [Ping timeout: 248 seconds]
stamina has quit [Quit: WeeChat 1.2]
moeSeth has joined #ruby
tubuliferous_ has joined #ruby
ringarin has quit [Ping timeout: 264 seconds]
bosma has quit [Ping timeout: 248 seconds]
sandstrom has joined #ruby
wildroman2 has joined #ruby
tubuliferous_ has quit [Ping timeout: 272 seconds]
<mikecmpbll>
it doesn't look much different to rails
oo_ has quit [Remote host closed the connection]
hiall has joined #ruby
bertro has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll>
i like that though, not trying to be different for the sake of it.
<apeiros>
chris2: I think that's one of the things it copied from perl
<apeiros>
at least I seem to remember that interpolation there worked somewhat similar
<apeiros>
damn, almost 20y since I did perl :-S
<adaedra>
ahah, you're old
<apeiros>
I existed before time, not sure "old" applies :-p
<mikecmpbll>
omnipotent!
<bertro>
ruby is written in c/perl/ruby for the most part right?
<apeiros>
sadly, that's not a property of the apeiron :(
<mikecmpbll>
pah.
kies has joined #ruby
<apeiros>
bertro: MRI is implemented in C
skade has joined #ruby
<apeiros>
and the core libs for MRI are implemented in C too. the stdlib is written in ruby & C
tkuchiki has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<bertro>
and perl serves the purpose of gluing some bits together?
<apeiros>
if there's any perl in ruby's source, then I'd assume in build scripts
michael_mbp has joined #ruby
startupality has quit [Quit: startupality]
Xzanron has joined #ruby
<mikecmpbll>
i don't see any perl ..
<apeiros>
I see some perl
<apeiros>
in benchmark and sample
<bertro>
i had some pass me by
<apeiros>
so no, no perl used in building ruby either.
tkuchiki_ has quit [Ping timeout: 256 seconds]
<mikecmpbll>
ah, just wasn't in top 10
ghostpl has quit [Ping timeout: 264 seconds]
rodferso1 is now known as rodfersou
<bertro>
could we generalize that besides c and ruby other languages if used aren't used with some serious purpose in mind (the modules could be written in whatever else)
<apeiros>
bertro: we can simply say that MRI is written in C.
<apeiros>
and if you consider stdlib, then there's also ruby.
DaniG2k has joined #ruby
Bertg has joined #ruby
nofxx has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
ndrei has joined #ruby
CloCkWeRX has left #ruby [#ruby]
RegulationD has joined #ruby
astrobun_ has quit [Remote host closed the connection]
hoov has joined #ruby
Versality has quit [Quit: Be back later ...]
sgambino has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Quit: chussenot]
astrobunny has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
<shevy>
huh weird... I thought there exists a File.empty? method ...
<shevy>
apparently it is File.zero? hmmm
<shevy>
apeiros are you familiar with all html5 tags btw? :)
lkba_ has quit [Remote host closed the connection]
<shevy>
first time I am seeing <figure> and <figcaption>, wondering whether ruby-cgi should support these too
<apeiros>
no, I only know a couple of them yet
ndrei has joined #ruby
lxsameer has quit [Quit: Leaving]
Iskarlar has joined #ruby
SubjectiveBias has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
senayar has joined #ruby
maciejczyzewski has quit [Quit: leaving]
DaniG2k has quit [Ping timeout: 276 seconds]
konsolebox has quit [Remote host closed the connection]
jenrzzz has joined #ruby
otisZart has joined #ruby
<bertro>
what motivated the creation of ruby?
<sevenseacat>
matz wanted something that made programmers happy.
<bertro>
maybe to move the main criterion to ~programmer eficacy~
<bertro>
as a philosophical shift of paradigm
<bertro>
or?
<chris2>
apeiros: perl didnt need # at all, tho :)
jenrzzz has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<apeiros>
chris2: I know. but didn't it have another sigil?
<shevy>
bertro there is a great talk from matz about it
<shevy>
but it's in japanese english
<chris2>
no, just "$foo @bar"
annette has joined #ruby
<[k->
Programmer efficiency? Java is at the bottom of that
<apeiros>
chris2: damn, I really don't remember.
<sevenseacat>
lolwat
charliesome has joined #ruby
ruu has joined #ruby
<bertro>
[k-: java is aimed for manager efficacy lol :D
<shevy>
bertro it is a 1 hour video, but only the first ~45 minutes are about the past when matz started out; you will also see pics from when he was younger, he looked like a mini-samurai when he was young: https://www.youtube.com/watch?v=bqWBB8-iEac
<bertro>
hehe
<bertro>
thank you
<bertro>
i'll check it out
<shevy>
he explained that "programmer happiness" was not initially an integral part of ruby, as a term, when he started it
terlar has joined #ruby
<shevy>
the first design happened on paper :)
bronson has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
ruu has quit [Ping timeout: 248 seconds]
shock_one has joined #ruby
bradgriffin has quit [Quit: Changing server]
eGGsha has quit [Ping timeout: 252 seconds]
kp666 has quit [Ping timeout: 248 seconds]
patrick_star has quit [Quit: Leaving]
OrbitalKitten has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bradgriffin has joined #ruby
sulky has joined #ruby
sulky has quit [Read error: Connection reset by peer]
neanderslob has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
<mikecmpbll>
everytime i have to do something with minitest that i think is going to be difficult, it's pathetically easy <3
arup_r has quit [Remote host closed the connection]
sinkensabe has joined #ruby
roolo_ has joined #ruby
jas02 has joined #ruby
<shevy>
try to cook chicken with minitest
<mikecmpbll>
shevy: hmm, i'm sure it's possible :D
<shevy>
minichicken
<mikecmpbll>
haha
krz has joined #ruby
nveselinov has quit [Quit: Connection closed for inactivity]
avril14th has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 252 seconds]
roolo has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
sankaber has joined #ruby
nateberkopec has joined #ruby
chussenot has joined #ruby
aapole has joined #ruby
otisZart has quit [Read error: Connection reset by peer]
x44x45x41x4E has quit [Ping timeout: 248 seconds]
kstuart has quit [Read error: Connection reset by peer]
kstuart has joined #ruby
jschoolcraft has joined #ruby
Al3ks has quit [Remote host closed the connection]
rodferso1 has joined #ruby
mister_solo has quit [Ping timeout: 272 seconds]
shredding has quit [Ping timeout: 255 seconds]
eGGsha has joined #ruby
eGGsha has quit [Client Quit]
jenrzzz has joined #ruby
maasha has joined #ruby
rodfersou has quit [Ping timeout: 246 seconds]
<ytti>
can someone recommend invoicing website for small business?
anne-marie_ has quit [Read error: Connection reset by peer]
<maasha>
Anyone have experience executing a ruby script through qsub from within the ruby script?
Papierkorb has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<jhass>
Qsub submits batch jobs to the Sun Grid Engine queuing system.
<jhass>
que?
<adaedra>
¿Que?
Zai00 has joined #ruby
<maasha>
jhass: yup, but qsub is ugly. I want it abstracted away to you call a ruby script with a few arguments and behind the scene this ruby script is run through qsub.
<maasha>
s/to/so
<[k->
Get a shell script then...
<jhass>
alias ?
<maasha>
And I dont want to maintain multiple scripts to run a command.
<jhass>
well I guess you could check ARGV and submit and call exit in one case and don't in the other
<shevy>
maasha the way I solve such usually; I have one main .rb file, with methods, which will call different classes that do the specific job at hand. that way I can avoid having to use shell scripts, every action is registered somewhere (usually through said method call, towards a class)
aspiers has joined #ruby
<maasha>
shevy: can you show a demo?
<jhass>
but meh
<shevy>
maasha hmm let me think of a good example... a moment
TheHodge has quit [Quit: Connection closed for inactivity]
chussenot has quit [Quit: chussenot]
<maloik>
Does anyone here run an app that uses elasticsearch with the possibility to search across different models? I'm wondering if you could explain briefly how it's all set up (different indexes? nested objects? elasticsearch-ruby and custom code or another gem?), and if you have any tips on where to get started other than ES docs and the gem's docs
Xeago has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
<shevy>
maasha ok this is contrived, and not an ideal example but you get the general idea http://pastie.org/10260134 - that method just merges together different exam-results, into a new .pdf file; from the commandline I would invoke it via "prepare_exams"
k3asd` has quit [Ping timeout: 244 seconds]
rodferso1 is now known as rodfersou
<shevy>
(there was only one .pdf file in the respective directory at hand, hence the .first)
Al3ks has joined #ruby
<shevy>
that's by the way one reason why I end up with so many aliases, every task gets registered :)
senayar has quit [Remote host closed the connection]
maciejczyzewski has joined #ruby
<[k->
you have a typo
Xzanron has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
<adaedra>
yaeh, you haev a tyop
<[k->
also, .store_at store_here isn't idiomatic
<maasha>
shevy: and how does the .run method work?
<maciejczyzewski>
what's new? folks ;)
<[k->
should be store_at this_dir instead
<shevy>
that is also a reason why I don't seem to need rake at all, I just call the respective actions from the commandline
<jhass>
maciejczyzewski: you
<shevy>
maasha ah that is just my general way to invoke my classes, it's nothing special. you could do things differently, the main point is that I don't necessarily need to have individual shell files (or .rb files), I just re-use general classes in ruby; in this case, it's really nothing more than using ghostscript
<shevy>
though I'd love to know how to do this in prawn, haven't tried yet
sinkensabe has quit [Remote host closed the connection]
<[k->
you should get auto aliasing like what gems with cli do
<maciejczyzewski>
jhass: aaawwww... in ruby world
<shevy>
auto aliasing?
<[k->
or not auto aliasing
astrobunny has quit [Remote host closed the connection]
<jhass>
maciejczyzewski: I guess the answer stays the same ;P
<shevy>
what happens when conflict-names exist?
<[k->
their executables are linked and searched for!
n008f4g_ has quit [Ping timeout: 252 seconds]
bradgriffin has quit [Quit: leaving]
Xeago has joined #ruby
aapole has quit [Ping timeout: 264 seconds]
<maasha>
shevy: right, thanks
<shevy>
ah, I don't have that many bin/name.rb or bin/name specific files for ruby projects, usually only one central main bin/ file to use a given project
astrobunny has joined #ruby
<shevy>
maasha anyway, you wrote "dont want to maintain multiple scripts to run a command" and that was the reason I suggested the above; you can register methods in a .rb file, and just call that; the method delegates to any class or other .rb file at hand, which then goes to solve the problem at hand that you may have
<shevy>
you can call a specific method in a .rb file via "-e"; I use a general method call for that, "rinvoke"
<shevy>
which is essentially just a ruby -r blablabla.rb -e NAME_OF_METHOD_HERE (the last part I can type on bash, or use that specific alias at hand)
chouhoulis has joined #ruby
<agent_white>
Ooo...
<agent_white>
That's pinky-up fancy.
wildroman2 has quit [Remote host closed the connection]
<[k->
you can also get a list of commands using `self.class.instance_methods - Object.instance_methods`!
griffindy has joined #ruby
Xeago has quit [Remote host closed the connection]
<[k->
"commands" as in methods :/
sulky has joined #ruby
meph has joined #ruby
scripore has joined #ruby
Ox0dea has joined #ruby
Xeago has joined #ruby
<shevy>
cool I just checked if prawn can merge .pdf files
fabrice31 has quit [Remote host closed the connection]
santana has quit [Ping timeout: 256 seconds]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
fabrice31 has joined #ruby
malconis has joined #ruby
centrx has joined #ruby
Voker57 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
ohgm has joined #ruby
ledestin_ has joined #ruby
towski_ has quit [Ping timeout: 252 seconds]
ledestin has quit [Read error: Connection reset by peer]
gagrio_ has joined #ruby
jzigmund has joined #ruby
speakingcode has quit [Ping timeout: 246 seconds]
jzigmund_ has quit [Read error: Connection reset by peer]
rubie has joined #ruby
msnyon has joined #ruby
Xeago has quit [Remote host closed the connection]
gagrio has quit [Read error: Connection reset by peer]
sandstro_ has joined #ruby
acke has quit [Ping timeout: 246 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
diegoviola is now known as dviola
vondruch has quit [Ping timeout: 276 seconds]
wildroman2 has quit [Remote host closed the connection]
gagrio_ has quit [Ping timeout: 246 seconds]
jzigmund has quit [Ping timeout: 244 seconds]
hector__ has joined #ruby
sandstrom has quit [Ping timeout: 255 seconds]
rubie has quit [Ping timeout: 265 seconds]
jerius has joined #ruby
jzigmund has joined #ruby
* flughafen
is leaving, havve a good one
acke has joined #ruby
<shevy>
flughafen stay in Berlin man, it needs you!
<flughafen>
scotland needs planes too
Xeago has quit [Ping timeout: 252 seconds]
Voker57 has quit [Ping timeout: 248 seconds]
Rickmasta has joined #ruby
<agent_white>
And whoever was in Greece shevy spoke of... bring us falafels.
<agent_white>
Plz.
<[k->
but your a airport
dblessing has joined #ruby
ziprar has quit [Ping timeout: 255 seconds]
t0rrieri has joined #ruby
blue_deref has joined #ruby
Tau has joined #ruby
djellemah_ has joined #ruby
lolmaus has quit [Remote host closed the connection]
t0rrieri has quit [Client Quit]
lolmaus has joined #ruby
vondruch has joined #ruby
djellemah has quit [Disconnected by services]
djellemah_ is now known as djellemah
senayar has quit [Remote host closed the connection]
<shevy>
flughafen scotland needs more ruby
<shevy>
I never saw a ruby coding scot
serivich has joined #ruby
kallisti5 has quit [Quit: leaving]
<Tau>
how many ' ' spaces should i use in ruby programs?
ItSANgo has joined #ruby
<Tau>
i have been using four spaces as i usually use with python.
endash has joined #ruby
<[k->
2
<agent_white>
Tau: 2 space indentation is the coding standard for Ruby.
hinbody has joined #ruby
<Tau>
i see.
<Tau>
i honestly prefer four..
<Tau>
it lets the code look better.
<Tau>
to me.
<ljarvis>
Tau: then use 4
<agent_white>
Well... as long as you don't use tabs we can be friends.
commondream has joined #ruby
<Tau>
agent_white heh. okay.
devdazed has joined #ruby
<agent_white>
;)
mary5030 has joined #ruby
Oldenborg has quit [Remote host closed the connection]
arup_r has quit []
mary5030 has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
gagrio_ has joined #ruby
mary5030 has joined #ruby
senayar has joined #ruby
ohgm has quit [Quit: Leaving]
startupality has quit [Read error: Connection reset by peer]
<[k->
shevy, adaedra requests for your presence in #ruby-offtopic
<adaedra>
no I didn't
startupality has joined #ruby
<[k->
lies
<shevy>
do we have to get married if I go there
<[k->
if you want
<shevy>
also they play unicode hangman there and I can not read it :(
andywojo has joined #ruby
<[k->
<adaedra> [k-: shevy, I know it's you
<adaedra>
wut
<agent_white>
shevy: BATCH dun yew play run-round wif me.
<shevy>
hahaha
* agent_white
snaps fingers, wobbles head
<[k->
he can't see the blanks :(
<shevy>
[k- has become a brother to me, despite the weird nick
bronson has joined #ruby
<agent_white>
[k-: EY GURRRL
<[k->
:>
datanoise has joined #ruby
<shevy>
I am stuck in reviewing some code.. my own ruby code... old code ... which is boring. someone cheer me up
astrobunny has quit [Remote host closed the connection]
skyrocker has joined #ruby
<andywojo>
Anyone know what the right approach would be to write a method that creates a key=>val pair out of commands that have close (enough) collumns like df -m
<[k->
shevy, switch to DejaVu!
Voker57 has joined #ruby
<havenwood>
shevy: It's Friday!
skyrocker has left #ruby [#ruby]
Xeago has joined #ruby
stan_ has joined #ruby
stan_ is now known as Guest13534
<andywojo>
I could split by white space, and then loop through the array to determine where the header is placed, and then figure out where the value is
dfockler has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<agent_white>
havenwood: Is it 5 o'clock yet?!
<dviola>
It's funny and weird at the same time how my boss screams "HE USES LINUX!" to the other developers
<dviola>
referring to me
<havenwood>
agent_white: Soon enough I can taste it, but yeah closer to the AM 5 here.
<andywojo>
but with the headers. Basically I'm writing a script a script to parse df -m from both AIX and Linux.. the free column is in $3 on AIX and $4 on Linux
<[k->
it's 10pm here!
scripore has quit [Quit: This computer has gone to sleep]
<[k->
it's GNU/Linux and not Linux!
<andywojo>
but they are both the free space, if I just had a bobo method to parse any header => value from a string that'd be awesome
bronson has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
<andywojo>
Eff RMS :)
<iateadonut>
yeah. he should say, "His set of POSIX-compliant tools use the linux kernel!"
<agent_white>
havenwood: Amen! /me adds whiskey to his coffee
datanoise has quit [Ping timeout: 244 seconds]
<adaedra>
andywojo: hope you don't get columns with space in their name
<andywojo>
Nah that's fine, I can handle that
<andywojo>
Just kinda wasn't sure what direction to go on doing it
khebbie has joined #ruby
<adaedra>
andywojo: read the first line, split in pieces to get an array of column. Then, for each line, do the same, use Array#zip and Array#to_h to get the Hash
dfockler has quit [Ping timeout: 255 seconds]
<andywojo>
thanks!
<iateadonut>
singapore! that's a great city-state!
<[k->
yes!
<andywojo>
Learn something new every day, never used .zip before.
poguez_ has joined #ruby
<iateadonut>
I'd say it's the best in the world, but I can't think of anything to compare it to
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
andywojo: :)
maasha has quit [Ping timeout: 246 seconds]
<[k->
I think Ruby inherited zip from functional languages
<iateadonut>
Jane Jacobs compared it to Seoul and Taipei, though.
ruu has quit [Ping timeout: 250 seconds]
allomov has quit [Remote host closed the connection]
ledestin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest13534 is now known as StanAlanMcM
Iskarlar has joined #ruby
annette has quit [Quit: annette]
RegulationD has quit [Ping timeout: 276 seconds]
coderhs has joined #ruby
tagrudev has quit [Remote host closed the connection]
mistnim has joined #ruby
coderhs has quit [Client Quit]
pengin has joined #ruby
<mistnim>
can I somehow use python libraries in ruby?
<apeiros>
mistnim: short answer: no
<adaedra>
long answer: nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
<jhass>
mistnim: long answer: you can shell out to python. But don't, seek native alternatives
<adaedra>
:p
<jhass>
meh
Xeago has quit [Remote host closed the connection]
rbowlby has joined #ruby
<apeiros>
well, my long answer would be: isn't there a ruby implementation in python? and/or other way round?
<andywojo>
I used a native alternative it was a gem that allowed you to use python code .. it was horrible
<apeiros>
also python on jvm - if it exists - might be a way to get there
<havenwood>
Jython
<apeiros>
iow, there might be ways. but it's almost certainly pain.
<apeiros>
hence - short answer: no.
StanAlanMcM has quit [Ping timeout: 256 seconds]
shock_one has quit [Remote host closed the connection]
<havenwood>
Topaz in RPython
shock_one has joined #ruby
Xeago has joined #ruby
<havenwood>
I've ported a little bit of Python to Ruby but never run any in Ruby.
<[k->
RuPy hasnt come up with a solution yet? :>
ducklobster has joined #ruby
<havenwood>
Didn't _why have something fun along those lines?
rocknrollmarc has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bougyman>
it's pretty easy to plug ipython in to ruby
<bougyman>
ipython is what I'd recommend, for this.
<havenwood>
ffi
<bougyman>
saw a great talk at rubyconf from a guy who used ipython to get numpy/scipy functionality in ruby
xKraty has quit [Remote host closed the connection]
<adaedra>
<agent_white>
box
senayar has quit [Remote host closed the connection]
mfranzwa has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
<agent_white>
Poor RMS, unaware velcro is not open-source.
<agent_white>
DEM REEBAWKS
theery has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
_blizzy_ has joined #ruby
theery has quit [Remote host closed the connection]
micmus has quit [Ping timeout: 256 seconds]
<mozzarella>
I wouldn't be able to concentrate, using my computer everywhere like he does
<mozzarella>
I need to be in my own room
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andywojo has quit [Ping timeout: 265 seconds]
<[k->
Zen
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandstro_ has quit [Remote host closed the connection]
allomov has joined #ruby
Iskarlar has joined #ruby
<dviola>
adaedra: that looks like cool-retro-term
<wnd>
I know this comes a bit late, but I prefer 80 columns because imo short lines make code easier to read - and to a degree help to keep the code easy to read
<[k->
that much is true
fmcgeough has joined #ruby
<[k->
but nothing is ever late in irc!
OrbitalKitten has joined #ruby
<adaedra>
dviola: oooh
downwithbender has joined #ruby
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bf4 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
bf4 has quit [Client Quit]
downwithbender has quit [Client Quit]
serivich has quit [Ping timeout: 255 seconds]
bf4 has joined #ruby
decoponio has joined #ruby
hoov has quit [Ping timeout: 264 seconds]
<wnd>
80 cols didn't bother me (much) even with 8 col tabulators and c code
chussenot has quit [Quit: chussenot]
<dviola>
wnd: it doesn't bother me at all also
<[k->
eww tabs
datanoise has joined #ruby
serivich has joined #ruby
OrbitalKitten has quit [Ping timeout: 264 seconds]
peter_paule has joined #ruby
<dviola>
I wonder how to break down long strings and make it fit into 80 columns
<dviola>
in JS
<dviola>
sorry this might be offtopic now
<wnd>
I still get shivers when I think of that production java code from ten years back. it was badly indented with two spaces, and much of the time nested more than ten levels deep. supposedly complex logic behind the if caluses and other structured, but really, it was just horrible code.
Bertg has joined #ruby
d10n-work has joined #ruby
<adaedra>
?ot dviola
<ruboto>
dviola, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
nonparfumee has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
phat4life has quit [Ping timeout: 248 seconds]
micmus has joined #ruby
t0rrieri has joined #ruby
phat4life has joined #ruby
nickfausnight has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k->
divola, Ruby has \
<centrx>
dviola, Use jQuery
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dviola>
centrx: I already use that
andywojo has joined #ruby
<centrx>
But do you use it to the Extreme?
enebo has joined #ruby
crazydiamond has joined #ruby
<dviola>
what does that even means?
<centrx>
Do you use it, To the Max?
<dviola>
I don't know what you are talking about
<adaedra>
jQuery
bkxd has quit [Ping timeout: 250 seconds]
<dviola>
what about it?
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx>
How do you use it?
casadei has joined #ruby
<[k->
do you use it concisely and idiomatically?
gambl0re has joined #ruby
<dviola>
I don't know what you mean
schy has joined #ruby
<dviola>
I'm not a big JS person
chussenot has joined #ruby
<dviola>
I wish we had another way to manipulate the DOM other than with JS
<[k->
you can do it with dart
dudedudeman has joined #ruby
<bougyman>
this is still offtopic
<[k->
or c++, when webassembly arrives
<[k->
oh don't be so strict
peter_paule has quit [Ping timeout: 256 seconds]
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
andywojo has quit [Ping timeout: 272 seconds]
<dviola>
sorry about offtopic
<[k->
you can write in Ruby(?) too using opal
Muhannad has quit [Ping timeout: 246 seconds]
_joliv has joined #ruby
andywojo has joined #ruby
shock_one has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
alex88 has quit []
arutemu has quit [Read error: Connection reset by peer]
kies has joined #ruby
<shevy>
iateadonut it's actually not a total pile of crap, it has solid elements; it just is that it has not been thoroughly tested. I really need to test a lot more than I used to
<shevy>
it's like half-crap
ruu has joined #ruby
Indian has joined #ruby
<Indian>
what is the difference between self and @
<jhass>
Indian: self returns the object, @ is the prefix for instance variables, it's still part of their name though
startupality has quit [Read error: Connection reset by peer]
<adaedra>
@ is a prefix for instance variable, alone it does nothing
troulouliou_dev has quit [Remote host closed the connection]
startupality has joined #ruby
<Indian>
I see sometimes self.x and @x
n008f4g_ has joined #ruby
<Indian>
both refering to instance variables
<sevenseacat>
the former does not refer to an instance variable
<jhass>
self.x calls the method x which is in your case probably defined as def x; @x; end;
<[k->
or attr_reader :x or attr_accessor :x
<havenwood>
Indian: `@x` avoids the method call and makes it clear that nothing beyond getting the instance variable is going on.
RegulationD has joined #ruby
<[k->
we prefer @x
<Indian>
ok thanks
<_joliv>
Hey, can anyone point me to good resources for debugging a segfault in Ruby? We've been having them in a couple of projects for a while and I'm still trying to find the cause
<jhass>
[k-: attr_reader does pretty much exactly generate that code
<sevenseacat>
we dont prefer @x over using the attr methods, no
troulouliou_dev has joined #ruby
<[k->
no, it is optimised jhass
terlar has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby
OrbitalKitten has joined #ruby
<centrx>
It's not that big of a deal
ruu has quit [Ping timeout: 264 seconds]
<centrx>
However, a grudge match can be scheduled
terlar has joined #ruby
<[k->
sevenseacat what do you mean?
scripore has joined #ruby
<sevenseacat>
[k-: its called information encapsulation
<[k->
you mean private self.x?
<sevenseacat>
err, no
<adaedra>
is Encapsulation in this channel just so we can tab-complete this complex word?
<Encapsulation>
they talk about encapsulation so mch
<Encapsulation>
in here
<sevenseacat>
lol
<adaedra>
:)
<Encapsulation>
=D
davedev24_ has joined #ruby
<sevenseacat>
i love when textual randomly highlights words that match people's names
<adaedra>
^
kies has quit [Ping timeout: 248 seconds]
<jhass>
hey Encapsulation how are your friends super and forgot doing?
rbennacer has quit [Remote host closed the connection]
Yiota has joined #ruby
<sevenseacat>
g gets highlighted a lot
OrbitalKitten has quit [Client Quit]
<havenwood>
ha
<Encapsulation>
xD
<adaedra>
The g spot, everyone aims for it
<sevenseacat>
oh hello
B1n4r10 has joined #ruby
<[k->
I still don't get what do you mean tho
<sevenseacat>
and y'all miss it D:
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jiks has joined #ruby
<Jiks>
Hello
<havenwood>
Jiks: hi
<Jiks>
Just trying out irssi!
<adaedra>
It doesn't work
volty has joined #ruby
<Jiks>
IRC is such a great tool right!
rbennacer has joined #ruby
<Jiks>
Why not?
<adaedra>
We can't see what you're writing!
<adaedra>
See, I can't read "IRC is such a great tool right!"
<Jiks>
I wish to be in commandline if I can.
<adaedra>
:p
<Jiks>
Oh really? :(
<wasamasa>
much oldschool
Aswebb_ has quit []
<jhass>
adaedra: you're such a welcoming part of the community
Indian has quit [Ping timeout: 272 seconds]
<jhass>
Jiks: think about it, how did adaedra copy paste that
<Jiks>
jhass: I was simply pulling her leg ;)
Indian has joined #ruby
Indian has quit [Changing host]
Indian has joined #ruby
<Jiks>
Anyways, thanks for the support :)
<adaedra>
jhass: :(
rubie has joined #ruby
<adaedra>
“her” :|
<Jiks>
Anyone here tried mruby?
<Jiks>
adaedra: ;)
<havenwood>
Jiks: yup
<sevenseacat>
presumptions of gender are always fun
senayar has quit [Remote host closed the connection]
<shevy>
no idea about "holycorn" (what name is that ... is that the offspring of "holycown"... if cows eat corn that is...)
<jhass>
pithagora: map to IPAddr and .max I guess
fabrice31 has quit [Remote host closed the connection]
<Jiks>
:p
<[k->
there's such a thing as max for ips?
<Jiks>
Anyone using irssi here?
<shevy>
I wanted to write 'cow' :(
<adaedra>
mooo
<shevy>
adaedra yeah thank you for the acustic help :)
<[k->
?ot everyone
<ruboto>
everyone, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<pithagora>
i need to increment by 1 the last ip and use it
<Jiks>
jhass: Na! Go's popularity is in concurrency
<Jiks>
Elixir is the right counter for Go
darkf has quit [Quit: Leaving]
<jhass>
and currently Crystal's basically copying Go's concurrency ;)
solars has quit [Ping timeout: 264 seconds]
<havenwood>
Jiks: See Crystal's channels.
<Jiks>
jhass: wow, then I didn't know!
<Jiks>
I was feeling jealous of Go's light weight channels.
<shevy>
hmm I thought Google wants Go to succeed
<havenwood>
Jiks: Nobody is going to argue against Erlang/OTP for concurrency and distributed programming. But Crystal mirrors Go.
<havenwood>
At least I think nobody. >.> Probably somebody!
<shevy>
there is always somebody using something
<Jiks>
havenwood: Can only say, I can't wait for Crystal to be a strong contender.
phutchins has quit [Ping timeout: 252 seconds]
<jhass>
Jiks: well, time to build up the ecosystem so it can happen ;)
<Jiks>
I think I am in so love with the syntax and language semantics that I can't think of switching to another language.
rbennacer has quit [Remote host closed the connection]
<Jiks>
jhass: What about a simple API framework? Like Grape?
rbennacer has joined #ruby
Iskarlar has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
<jhass>
whatever drives you really, though webframeworks is probably what we have the most of :P
OrbitalKitten has joined #ruby
juanpaucar has quit [Remote host closed the connection]
<jhass>
just saying it's still easy to become a Crystal hero ;P
nfk has quit [Quit: yawn]
Xzanron has quit [Ping timeout: 252 seconds]
Iskarlar has quit [Client Quit]
msnyon_ has joined #ruby
<shevy>
you people are so junkies
<shevy>
LSD, meth, crystal - nothing is sacred
<shevy>
until you start to smoke cats
OrbitalKitten has quit [Client Quit]
<Jiks>
jhass I know, I understood ;) .. But not that knowlegible :(
<adaedra>
shevy: stop arguing and give me a coke.
<jhass>
Jiks: BS, I learned crystal by writing Ruby and working through the compiler errors ;P
dfockler has joined #ruby
msnyon has quit [Ping timeout: 256 seconds]
<Jiks>
jhass: thats probably because you know your way around
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
:D
leafybasil has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
zenguy_pc has quit [Read error: Connection reset by peer]
<havenwood>
jhass: It seems the most likely explanation is... you used magic.
msnyon_ has quit [Ping timeout: 246 seconds]
<[k->
dundundun!
psy__ has quit [Remote host closed the connection]
leafybasil has quit [Client Quit]
<jhass>
DeBot is full of magic, yes!
MatthewsFace has quit [Remote host closed the connection]
atom3 has quit [Ping timeout: 276 seconds]
<havenwood>
?ruboto
<ruboto>
I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
umgrosscol has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
<[k->
?ot ruboto
<ruboto>
ruboto, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<shevy>
ruboto is off-topic - who would have known
msnyon has joined #ruby
<[k->
that's basically Ruby...
atom3 has joined #ruby
<jhass>
see
chussenot has joined #ruby
<centrx>
Yeah what is the difference
<centrx>
Why don't they just make a compiler for Ruby
maciejczyzewski has quit [Ping timeout: 244 seconds]
icebourg has joined #ruby
<shevy>
in javascript?
<[k->
infraruby vs crystal, go!
StanAlanMcM has joined #ruby
kyle__ has quit [Quit: leaving]
<jhass>
centrx: crystal actually started that way but you can't achieve all of Ruby's features without embedding a runtime, which they decided against and instead continued to make their own language
<yorickpeterse>
people actually use infraruby?
<yorickpeterse>
plus crystal is FOSS, done
<yorickpeterse>
no further argument needed
griffindy has joined #ruby
negev has joined #ruby
ta has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<sphex>
hey, does ruby have a "strict" UTF-8 mode? that is, can it throw exceptions when attempting to decode/encode invalid UTF-8?
<jhass>
doesn't it already?
acke has joined #ruby
<[k->
that's weird, what is {:sym, :sym}? a tuple?
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<StanAlanMcM>
Hello! I am in a class to learn Ruby. We have been going over minitest this week. Many of us are having a hard time understanding mock. We've googled for "ruby minitest mock examples/tutorials" and haven't found anything we understand. I am looking for a tutorial that has an example class and walks us through using mock to do various tests. If anyone has a suggestion I much appreciate it. :) Thank you.
konsolebox has quit [Remote host closed the connection]
<sphex>
jhass: I thought it didn't. maybe I should check better. it does just pass through the surrogate pair codepoints though. and codepoints > 0x10FFFF are encoded oddly and decoded as separate multiple characters somehow.
<sphex>
jhass: the thing I want to avoid is that invalid UTF-8 read from whatever source get concatenated with other strings and end up in a file, and make the whole file invalid.
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
<sphex>
jhass: ah ok. so I guess I should do that as soon as possible (ideally right after reading) to avoid contaminating other strings.
zenguy_pc has joined #ruby
ruu has quit [Ping timeout: 264 seconds]
dorei has joined #ruby
<havenwood>
StanAlanMcM: Mmm, that's a good question. I'm on a call but if you hang around a bit I'll gist some examples if someone doesn't beat me to it.
aapole has joined #ruby
joonty has quit [Quit: joonty]
davedev2_ has quit [Ping timeout: 248 seconds]
acke has joined #ruby
scripore has quit [Read error: Connection reset by peer]
shock_one has quit [Ping timeout: 256 seconds]
acke has quit [Client Quit]
OrbitalKitten has joined #ruby
<[k->
jhass: does crystal have then like in Ruby?
<jhass>
no
chouhoulis has quit [Remote host closed the connection]
<[k->
why ever not
symbol has quit [Quit: WeeChat 1.1]
_blizzy_ has quit [Ping timeout: 248 seconds]
hotpancakes has quit []
shoutsid has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
<ljarvis>
[k-: if you want to discuss crystal please go to #crystal-lang
<[k->
mmk
olistik has quit []
dopie has quit [Quit: This computer has gone to sleep]
towski_ has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
rbennacer has joined #ruby
endash has quit [Quit: endash]
<StanAlanMcM>
havenwood: Thank you. I'm in class for the rest of the day. "lab time" I'll be patiently waiting! :D
rbennacer has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 252 seconds]
negev has quit [Quit: leaving]
mistnim has quit [Remote host closed the connection]
rocknrollmarc has quit [Quit: User abort with 5 Ctrl-C's]
andywojo has quit [Client Quit]
rodfersou is now known as rodfersou|lunch
rocknrollmarc has joined #ruby
rbennacer has joined #ruby
commondr_ has joined #ruby
momomomomo has joined #ruby
findaway has quit [Ping timeout: 250 seconds]
<StanAlanMcM>
argh. My instructor is requiring me to take a 20 minute break. lolz. I'll be afk, but computer on and will read any input from you. :) Thank you very much for the help.
ibash has joined #ruby
pdoherty has joined #ruby
ibash has quit [Remote host closed the connection]
ibash has joined #ruby
<ibash>
hi
<[k->
hello
<ibash>
I think I found an inconsistency between my gemfile and gemfile.lock (that is, there's a gem listed in gemfile.lock that is not in the gemfile). Are there any tools to verify this?
<ibash>
if not can someone point me to a spec of the gemfile.lock format
commondream has quit [Ping timeout: 252 seconds]
segfalt has joined #ruby
RobertBirnie has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx>
ibash, The Gemfile.lock is generated from the Gemfile. And the Gemfile can be changed without generating the Gemfile.lock
<jhass>
ibash: the lock lists all dependencies, though the part below DEPENDENCIES should only list what's in the Gemfile
k3asd` has quit [Ping timeout: 272 seconds]
<ibash>
centrx: yep
RobertBirnie has joined #ruby
sfarley has joined #ruby
<ibash>
jhass: Okay -- I think a dependency was installed an added to gemfile.lock without adding it to gemfile
<ibash>
any easy ways to check that particular case for all dependencies?
<jhass>
ibash: likely just a dependency of one that's listed
<jhass>
"that particular case"?
serivich has joined #ruby
[H]unt3r has joined #ruby
<ibash>
so if I go to an app and manually do `gem install "foo"`
<jhass>
bundle outdated lists the restrictions from the Gemfile in recent versions
<ibash>
when the gemfile.lock is generate, would it have foo?
OrbitalKitten has joined #ruby
<jhass>
no
<ibash>
even if it's not in the Gemfile?
<jhass>
no
<jhass>
and bundle exec whatever would not be able to load foo
<ibash>
huh
<jhass>
unless it also happens to be a dependency of a dependency listed in the Gemfile
<ibash>
okay
<ibash>
what's throwing me off is that it looks like this is a top-level dependency in the gemfile.lock, but it's not in the list of dependencies
<ibash>
nor is it in the gemfile
baweaver has joined #ruby
<ibash>
how could that happen?
<ibash>
jhass: ^
sfarley_ has joined #ruby
bronson has joined #ruby
atom3 has quit [Remote host closed the connection]
<jhass>
I said it three times already
finisherr has joined #ruby
<jhass>
it's likely just a dependency of a dependency
atom3 has joined #ruby
sfarley has quit [Ping timeout: 244 seconds]
<jhass>
if you want a concrete explanation post your Gemfile & lock to gist
coderhs has quit [Remote host closed the connection]
stan has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
frem has joined #ruby
RegulationD has joined #ruby
mary5030 has quit [Remote host closed the connection]
rjno has quit []
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Jackneill has quit [Quit: Leaving]
roger_rabbit has joined #ruby
Jackneill has joined #ruby
<dviola>
I'm trying to hit some json api with Net::HTTP but it claims the SSL is invalid but it works when I curl -k or --insecure, is there such a parameter for Net::HTTP?
Iskarlar has joined #ruby
rocknrollmarc has quit [Ping timeout: 265 seconds]
zendrix has quit [Remote host closed the connection]
Iskarlar has quit [Client Quit]
ruu has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
mfranzwa has quit [Quit: mfranzwa]
<Senjai>
dviola: Is it using sslv3?
<jhass>
dviola: improper solution
<Senjai>
You generally never want to --insecure anything
<Senjai>
dviola: what's the api?
<dviola>
Senjai: I know but I asked the manager here and they say that "You're using Linux, you're going to have to use Windows, the admin won't fix your issue because you're getting this problem yourself"
agent_white has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dviola>
Senjai: so he's a f*cking moron, and he thinks the problem is on my end, and it's not
<dviola>
:p
<Senjai>
dviola: I can't say its not on your end
<Senjai>
dviola: And we talked about the complaining ;)
cmisenas has joined #ruby
Zenon has joined #ruby
<dviola>
Senjai: sorry
<dviola>
:-
<dviola>
:-)
<Senjai>
dviola: force tlsv1 and tlsv2 and try
<Senjai>
I also dont know what API you're using, so I cant run ssl tests on it
<Senjai>
where the servername and port are the creds for your api
workmad3 has quit [Ping timeout: 276 seconds]
<sphex>
dviola: not sure I understood your issue, but maybe Net::HTTP#verify_mode ?
rbennacer has joined #ruby
Jarboe has joined #ruby
<Senjai>
sphex: No
<dviola>
Senjai: what will this do?
lokulin has joined #ruby
<Senjai>
sphex: Using NO_VERIFY_PEER is terrible
<dviola>
the s_client thing
<Senjai>
dviola: I thought you've been using linux for over half your life :P
momomomomo has joined #ruby
<eam>
dviola: it'll show you the certificate chain
<Senjai>
dviola: It will attempt a handshake with the server and show you the certificate chain
<sphex>
Senjai: but if their certificate is invalid, what else are you gonna do?
<eam>
sphex: it's likely not invalid
<Senjai>
if it succeeds, then the problem is with you
<sphex>
oh ok
<dviola>
Senjai: they're using no verify in other code
<eam>
it sounds like the trust store on this org's windows systems differs from dviola's config on linux
chussenot has joined #ruby
wldcordeiro has joined #ruby
<eam>
dviola: oh are they? then you need to, too
<Senjai>
eam: Yeah, but I want to see his output for this
rbennacer has quit [Remote host closed the connection]
symm- has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
yfeldblum has joined #ruby
sarkyniin has quit [Ping timeout: 252 seconds]
<sphex>
I guess if it were valid, then you'd have to get some root certificates into the global openssl configs and ruby would pick it up?
postmodern has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Client Quit]
nickfausnight has quit [Quit: Connection closed for inactivity]
ta has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: zzz]
symm- has joined #ruby
axl_ has joined #ruby
zendrix has quit [Remote host closed the connection]
sfarley_ has quit [Remote host closed the connection]
dopie has joined #ruby
jas02 has quit [Ping timeout: 250 seconds]
gwendall has joined #ruby
<postmodern>
how hard is it to add custom resource types to Resolv? or should i just use net-dns?
zenguy_pc has quit [Read error: Connection reset by peer]
Zenon is now known as bartender
t_ has quit [Ping timeout: 244 seconds]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
[k- has quit [Quit: AndroidIrc Disconnecting]
sfarley has joined #ruby
<sphex>
hey, is it worth it attempting to make code work with ruby's $SAFE/tainting features, or will that cause too many problems with common libraries, etc? do the modern web frameworks support it?
ruu has joined #ruby
kirun has joined #ruby
n008f4g_ has quit [Ping timeout: 255 seconds]
vickleton has joined #ruby
vickleton has quit [Client Quit]
chussenot has quit [Quit: chussenot]
<dviola>
Senjai: lol
<dviola>
Senjai: using linux for half my life doesn't mean I know everything about it
vickleton has joined #ruby
gwendall has quit [Ping timeout: 265 seconds]
zendrix has joined #ruby
Voker57 has quit [Remote host closed the connection]
<dviola>
and I don't think you can know everything about anything, things are always changing
<dviola>
even when it comes to ruby, etc
Voker57 has joined #ruby
StanAlanMcM has quit [Ping timeout: 244 seconds]
bosma has joined #ruby
<dviola>
thanks for the help anyway
snockerton has joined #ruby
<dviola>
sorry about complaining ;)
toretore has joined #ruby
sfarley has quit [Remote host closed the connection]
djellemah has quit [Ping timeout: 264 seconds]
sfarley has joined #ruby
zenguy_pc has joined #ruby
<centrx>
sphex, I don't think it's used much nowadays
DLSteve has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
Channel6 has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
s2013 has joined #ruby
<sphex>
centrx: ok. that's a shame, it always looked like a good idea. perl's tainting features never saw a lot of use either. :/
<dviola>
Senjai: why is NO_VERIFY_PEER that terrible?
<jhass>
dviola: because encryption with automatic key negotiation without authentication is completely pointless
t_ has joined #ruby
<jhass>
that is unless you think earth is too cold and want to heat it up
<eam>
it's not completely pointless
<sphex>
jhass: "opportunistic encryption" is.. still that.
bartender has quit [Ping timeout: 244 seconds]
<eam>
it's not opportunistic either, it's encrypted. period.
<sphex>
most of the SMTP traffic ends up being protected with just opportunistic encryption too
<dviola>
jhass: is NO_VERIFY_PEER the same as -k or --insecure in curl?
<eam>
dviola: peer verification protects against attackers who might impersonate the peer you're talking to -- who would have to be able to inject traffic
bartender has joined #ruby
<eam>
without it, you're only protected against people who can read, but not write to your connection channel
<eam>
it's still valuable, but not as valuable
dopie has joined #ruby
<eam>
(and let's be honest, the barrier to procuring a cert signed by a trusted authority is not that high)
zendrix has quit [Remote host closed the connection]
soulcake has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
<dviola>
ok
soulcake has joined #ruby
<jhass>
or to either side of the connection, like if someone hacked your host and replaced the cert you probably wouldn't notice with disabled verification
<dviola>
I doubt anyone would want to attack me when I connect to this api, it's some company's internal thingy
shadoi has joined #ruby
<eam>
jhass: yes, the entire channel. Though if they compromise the host they wouldn't need to replace the cert
<eam>
they'd just use the signed cert they find
<eam>
root on either end is automatic game over anyway
micmus has quit [Ping timeout: 265 seconds]
<eam>
(eve and alice become the same person)
<Alayde_>
Has the ruby community settled on a ruby version/gem manager yet? It seems rvm is somewhat frowned upon, but fortunately for me that's the only thing I'm used to.
<jhass>
either I still think it's pointless, false sense of security even. you can't guarantee the channel will never be exposed and likely forget about the issue since "you already setup encryption"
<Alayde_>
Or is it kind of like, 'use whatever makes you happy'?
<jhass>
Alayde_: if it makes you happy it's fine
<jhass>
ignore what comes now
<Alayde_>
Lol! Fair enough
<eam>
jhass: no doubt, if your channel goes over the internet it can be compromised
sarkyniin has joined #ruby
Rodya_ has quit [Remote host closed the connection]
rocknrollmarc has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 246 seconds]
<Obfuscate>
dviola: That's pretty lazy, since all you have to type is /autojoin --run
<dviola>
if I could only find a way to backup my weechat config in my dotfiles repo that would be good, the thing is that I keep my password there too, so I don't know how to handle this
baweaver has joined #ruby
<dviola>
Obfuscate: there's no /autojoin command in weechat?
Muhannad has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
Voker57|2 has joined #ruby
khebbie_ has joined #ruby
<dviola>
meh I'll configure that later
JoshL_ has quit []
rbowlby has joined #ruby
JoshL has joined #ruby
multi_io has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segfalt has quit [Quit: segfalt]
<sphex>
hey.. what would be the most straightforward way to do something like python's decorators (on a method-by-method basis)? I know ruby has its own metaprogramming stuff, but they're too advanced for me for now..
findaway has joined #ruby
zendrix has joined #ruby
multi_io has joined #ruby
<shadoi>
sphex: maybe give an example of what you want
momomomomo has joined #ruby
7JTAAEQTT has joined #ruby
OrbitalKitten has joined #ruby
StanAlanMcM has joined #ruby
khebbie has quit [Ping timeout: 276 seconds]
towski_ has joined #ruby
Voker57 has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
Xoro has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
peter_paule has joined #ruby
Al3ks has joined #ruby
Rarikon has joined #ruby
Xoro has joined #ruby
Rarikon has quit [Remote host closed the connection]
<sphex>
shadoi: "wrap" a class method with a lambda. that is, have a function that gets passed the original method, and returns a lambda that replaces it (and it is then free to call the original method internally). the idea is that this can be done separately for each method (unlike subclassing). I guess if I knew the right way to inject an arbitrary lambda into a class definition, that could do it too.
<sphex>
shadoi: dammit.. it's complicated. :/ thanks for the links. I got the lambda/blocks bits mostly figured out. everything that has to do with modifiying classes really confuses.
Rodya_ has joined #ruby
<shadoi>
sphex: it's not a language primitive feature because it's always been possible with Ruby
Voker57|2 has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 248 seconds]
umgrosscol has quit [Quit: Quit]
<shadoi>
IMO you don't need to do it with Ruby because blocks are able to do anything the language can do, rather than in python lambdas are only capable of a subset.
<sphex>
yeah, I don't need anything exactly like decorators, but I just hoped for something simple that was decorator-ish. maybe I should just look into using "define_method" directly (some of the decorator implementation seem to use that).
Voker57 has joined #ruby
<shadoi>
yeah it's pretty straightforward on the surface ;)
<shadoi>
Just keep it simple
al2o3-cr has joined #ruby
<jhass>
sphex: if you throw away all that useless abstraction and ways to solve it in your question and describe what you're actually doing, I'm sure we find an idiomatic solution
baweaver has joined #ruby
zendrix has quit [Remote host closed the connection]
doertedev has quit [Quit: Lost terminal]
<sphex>
jhass: oh TBH I'm not solving much of anything quite yet. I'm slowly porting some perl and python code and trying to figure out the best way to do it.
hinbody has quit [Quit: leaving]
charliesome has quit [Read error: Connection reset by peer]
<sphex>
and this channel is being *really* helpful, so thanks again
michael_mbp has quit [Excess Flood]
<toretore>
the concept of decorators isn't really used in ruby - the problems they solve are solved differently
Rodya_ has quit [Remote host closed the connection]
<toretore>
or not at all
CorrosiveOne has joined #ruby
charliesome has joined #ruby
kt2 has joined #ruby
gwendall has joined #ruby
kt2 has quit [Client Quit]
mfranzwa has quit [Quit: mfranzwa]
nwmcsween has joined #ruby
<sphex>
toretore: alright
michael_mbp has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
fmcgeough has quit [Quit: fmcgeough]
peter_paule has quit [Ping timeout: 248 seconds]
<toretore>
>> class Foo; def logger(m); alias_method "#{m}_undecorated", m; define_method m, *a; puts "Calling #{m} with args: #{a.inspect}"; send("#{m}_undecorated"); end; end; def bar(*a); puts "Hello from bar"; end; logger :bar; end; Foo.new.bar
<ruboto>
toretore # => /tmp/execpad-0ea459e9131d/source-0ea459e9131d:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/388244)
Rodya_ has joined #ruby
GnuYawk has joined #ruby
gwendall has quit [Ping timeout: 250 seconds]
<toretore>
>> class Foo; def logger(m); alias_method "#{m}_undecorated", m; define_method m, *a { puts "Calling #{m} with args: #{a.inspect}"; send("#{m}_undecorated"); }; end; def bar(*a); puts "Hello from bar"; end; logger :bar; end; Foo.new.bar
<ruboto>
toretore # => undefined method `logger' for Foo:Class (NoMethodError) ...check link for more (https://eval.in/388246)
<toretore>
>> class Foo; def self.logger(m); alias_method "#{m}_undecorated", m; define_method m, *a { puts "Calling #{m} with args: #{a.inspect}"; send("#{m}_undecorated"); }; end; def bar(*a); puts "Hello from bar"; end; logger :bar; end; Foo.new.bar
<ruboto>
toretore # => undefined method `a' for Foo:Class (NoMethodError) ...check link for more (https://eval.in/388247)
<toretore>
you get the idea
<toretore>
>> class Foo; def self.logger(m); alias_method "#{m}_undecorated", m; define_method(m){|*a| puts "Calling #{m} with args: #{a.inspect}"; send("#{m}_undecorated", *a); }; end; def bar(*a); puts "Hello from bar"; end; logger :bar; end; Foo.new.bar
<ruboto>
toretore # => Calling bar with args: [] ...check link for more (https://eval.in/388248)
<toretore>
there we go
<toretore>
need more coffee
Papierkorb has joined #ruby
rdark has quit [Ping timeout: 256 seconds]
dopie has quit [Quit: This computer has gone to sleep]
pengin has quit [Remote host closed the connection]
<jhass>
seriously
startupality has joined #ruby
mfranzwa has joined #ruby
<sphex>
oh yeah... ok thanks for that. I guess I sorta see how decorating helpers could be moved to another module and run in the context of another class to decorate other methods (wrong terminology I'm sure). I'm prolly not going to end up doing that if it's not idiomatic with ruby, but it helps me to understand seeing how to do something like it.
<jhass>
sphex: more common is to build methods that define other methods with the boilerplate
nickfausnight has joined #ruby
shadoi has quit [Quit: Leaving.]
<shevy>
jhass we seem to be steady at or over 1050 here now on #ruby
<jhass>
on weekdays, yeah
centrx has quit [Quit: Shutting down, Please wait...]
<sphex>
jhass: and possible have the "user class" pass it a block that they can then call internally when invoked?
<jhass>
sphex: for example, yeah
meph has quit [Quit: Leaving.]
<jhass>
sphex: or you simply make it a runtime decorator with e.g. SimpleDelegator
chussenot has joined #ruby
<sphex>
I sure missed them (multi-line) lambdas with some other language. I guess I gotta relearn how to use them.
gregf has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
Pwnna has left #ruby ["Leaving"]
simplyianm has quit [Remote host closed the connection]
Yiota has joined #ruby
<sphex>
jhass: ok, lemme ri(1) that. thanks for the infos.
charliesome has joined #ruby
Xeago has joined #ruby
Muhannad has quit [Remote host closed the connection]
graft is now known as Guest3348
sfarley has quit [Remote host closed the connection]
serivich has joined #ruby
soxet has joined #ruby
gambl0re has quit [Ping timeout: 252 seconds]
marr has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
j4cknewt has quit [Remote host closed the connection]
shoutsid has quit [Read error: Connection reset by peer]
soxet has quit [Client Quit]
shoutsid has joined #ruby
soxet has joined #ruby
Musashi007 has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
shadoi has joined #ruby
soxet has left #ruby [#ruby]
MatthewsFace has joined #ruby
ruby-lang194 has joined #ruby
nathanstitt has quit [Quit: Laters]
soxet has joined #ruby
workmad3 has joined #ruby
j4cknewt has joined #ruby
<ruby-lang194>
hi
momomomomo_ has joined #ruby
bricker has joined #ruby
ruby-lang452 has joined #ruby
<ruby-lang452>
hi
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
Xeago has quit [Remote host closed the connection]
<havenwood>
hi
soxet has quit [Client Quit]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang452 has quit [Client Quit]
soxet has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
ruby-lang194 has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
Xiti has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
eggoez has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
Xeago has joined #ruby
bnobu has joined #ruby
choke has joined #ruby
momomomomo has quit [Quit: momomomomo]
segfalt has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
segfalt has quit [Client Quit]
yfeldblum has quit [Ping timeout: 248 seconds]
eggoez has joined #ruby
momomomomo has joined #ruby
bruno- has joined #ruby
dopie has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lavros has quit [Quit: leaving]
cvtsx1 has joined #ruby
pdoherty has quit [Quit: Leaving]
chouhoulis has joined #ruby
simplyianm has joined #ruby
Xeago has quit [Remote host closed the connection]
<havenwood>
maciejczyzewski: If you want to compare Floats you'll want to check that they're within delta of each other or have a relative error less than epsilon.
<maciejczyzewski>
havenwood: yeap
<havenwood>
maciejczyzewski: And if you use Floats with money please tell me where so I can get rich.
<chrisseaton>
maciejczyzewski: another way to think about it is that there are an uncountable number of real numbers, so of course your computer isn't going to be able to represent them all as it only has finite RAM
phutchins has joined #ruby
bf4 has quit [Ping timeout: 246 seconds]
zotherstupidguy has quit [Ping timeout: 256 seconds]
yardenbar has quit [Ping timeout: 244 seconds]
JoshL has quit []
zendrix has quit [Remote host closed the connection]
bartender has quit [Read error: Connection reset by peer]
bartender has joined #ruby
zendrix has joined #ruby
bartender has quit [Client Quit]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
nahtnam has quit [Quit: Connection closed for inactivity]
findaway has joined #ruby
Al3ks has joined #ruby
simplyianm has quit [Ping timeout: 272 seconds]
zz_Outlastsheep is now known as Outlastsheep
ndrei has joined #ruby
charliesome has joined #ruby
ldnunes has quit [Quit: Leaving]
chipotle has quit [Quit: cheerio]
findaway has quit [Ping timeout: 272 seconds]
<_blizzy_>
I think I'll add a plugin system to my bot
<_blizzy_>
once I get battles working with ruby.
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has joined #ruby
_joliv has quit [Ping timeout: 264 seconds]
peter_paule has joined #ruby
<jfarmer>
jderose I assume you've run `bundle install`?
sp4rrow_ has joined #ruby
Yiota has joined #ruby
findaway has joined #ruby
Yiota has quit [Client Quit]
Yiota has joined #ruby
yardenbar has joined #ruby
momomomomo has quit [Quit: momomomomo]
x1337807x has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
<jderose>
jfarmer yes and that didn't work. I should also mention I'm running this via test kitchen for a VM. I found an article that mentioned the Chef built-in ruby might have a different gem path than the VM's Ruby installation.
<jfarmer>
jderose How are you running Chef?
<jfarmer>
jderose Also, you can print out the library path
<sphex>
oh great.. I see ruby has a Rational class too. Too bad integer division doesn't yield a rational by default, then it would have been just like Scheme's numeric tower.
dopie has quit [Quit: This computer has gone to sleep]
snockerton has quit [Quit: Leaving.]
dented42 has joined #ruby
gwendall has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
<maciejczyzewski>
zenspider: ooowwww... fancy
<dfockler>
if you're using rspec you can use the nyan cat formatter
jlast has quit [Remote host closed the connection]
<maciejczyzewski>
zenspider: like your blog too ;)
<maciejczyzewski>
bb
<adaedra>
maciejczyzewski: you go into space?
<adaedra>
-go
jlast has joined #ruby
Rodya_ has quit [Remote host closed the connection]
dented42 has quit [Max SendQ exceeded]
failshell has quit [Ping timeout: 256 seconds]
<maciejczyzewski>
adaedra: using my magic spacecraft...
<maciejczyzewski>
bb
maciejczyzewski has left #ruby [#ruby]
dented42 has joined #ruby
<zenspider>
I think someone did nyan for minitest too
gwendall has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
<zenspider>
drbrain: ping
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Schmidt has quit [Ping timeout: 244 seconds]
<drbrain>
pong
<zenspider>
hey. just commented on that ticket
<zenspider>
wrt security... that is
<zenspider>
1) do you have any idea what's wrong with my old cert? It just says "invalid".
<zenspider>
2) is there a way to update the old cert such that ALL of my gems aren't invalidated?
<zenspider>
3) if no and no, is there a way to generate a cert that either works with ssh-agent or is passphraseless so it doesn't bug me when I package and release?
whippythellama has quit [Quit: WeeChat 1.2]
MatthewsFace has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
Schmidt has joined #ruby
baweaver has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
<zenspider>
anyone else who understands rubygems + security is welcome to jump in too.
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
zendrix has quit [Read error: Connection reset by peer]
zendrix has joined #ruby
GitGud has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 252 seconds]
<drbrain>
the old cert probably expired
noob__ has joined #ruby
<drbrain>
openssl x509 -noout -text -in old_cert will say
<drbrain>
(check dates)
<drbrain>
you can strip the passphrase from the cert and RubyGems won't care
swgillespie has quit [Ping timeout: 256 seconds]
lolmaus has quit [Quit: Konversation terminated!]
<zenspider>
hrm. no, still valid
<zenspider>
Not Before: Sep 17 23:07:07 2014 GMT Not After : Sep 17 23:07:07 2015 GMT
<zenspider>
tho the file format is slightly different
charliesome has quit [Quit: zzz]
<zenspider>
the new one has Proc-Type and DEC-Info
<drbrain>
I think those two entries are for the password on the .pem
<zenspider>
clue on how to strip passphrase?
balazs has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<zenspider>
ahhh... so if I nuke those lines it'll be clear of it?
<drbrain>
the stupid thing about this security method is that you can't install from expired certs because there's no way to verify a certificate was properly signed way back when without a trusted third party
<zenspider>
that stripped the passphrase
<zenspider>
I can build and install with HighSecurity
<drbrain>
so I think the other person in the ticket needs to trust your certificate
<finisherr>
I’m getting a notification that I can’t re-push the same version and to try gem yank but I already yanked
Muhannad has joined #ruby
<finisherr>
is it cached or something?
<drbrain>
finisherr: you need to push a new version
<drbrain>
if 1.2.3 was bad, yank, then push 1.2.4
<finisherr>
Ok, thats fine
<finisherr>
ok
<drbrain>
otherwise people don't know if they have the good one or the bad one
<bricker>
yank is for removing bad versions, but you can't ever push the same version twice
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<finisherr>
yeah, good call
<finisherr>
this will be 0.0.2
<finisherr>
: )
noob__ has quit []
dfockler has quit []
noob has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
GitGud has joined #ruby
<zenspider>
drbrain: so, suggestions on what to do about publishing w/ a new cert? as soon as I sync that up it means all my gems are invalid
dgutierrez1287 has joined #ruby
PaulCapestany has joined #ruby
<noob>
yo
<zenspider>
I guess my cert is "invalid" (still not sure why?), but an install of the published minitest under Medium w/ the new certs out there flat out blow up. makes the gem look compromised
<finisherr>
nice, my vagrant plugin works!
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
<drbrain>
zenspider: since we don't have a central certificate registry or signing service you'll need to pre-distribute the new cert
<drbrain>
or sign the new cert with the old one
<zenspider>
mmmm. what does that mean? that the new one will refer to the old one too?
<drbrain>
it will be "issued by" the old one, but when the old one eventually expires it can invalidate the new one too
<zenspider>
that sounds like a screw
simplyianm has joined #ruby
<drbrain>
yeah, to be effective all the certificates should be signed by a CA somewhere
<drbrain>
the same way website certificates work
<drbrain>
but I sure don't have the security chops to write such a thing
<zenspider>
man I hate security. terribly obfuscated. terribly documented. ugh ugh ugh
bronson has joined #ruby
<miah>
if you want to just kick it.. use -k =)
dented42 has joined #ruby
<miah>
-k == --insecure. it will use ssl. but it wont verify
<drbrain>
/usr/bin/curl says it uses SecureTransport, which I would think meant Keychain but obviously doesn't work o_O
<zenspider>
I'm trying to come up with a sequence that the security wonks will use w/o jumping down my throat
Soda has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
<miah>
ah
bronson has joined #ruby
charliesome has quit [Quit: zzz]
<miah>
odd that --cacert is giving you an error
<zenspider>
drbrain: yeah. I found some stuff on SO that says the github blowup last year was digicert having a revoked cert in keychain. the fix was to remove it and then curl worked again.