havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
jrabe has joined #ruby
heftig has quit [Read error: Connection reset by peer]
rafasc has left #ruby [#ruby]
rafasc has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig has joined #ruby
orbyt_ has joined #ruby
kn-928 has joined #ruby
<rafasc> I am unexperienced with ruby and was trying but was trying to fix some rspec tests on a project. Can someone tell me if this makes sense: https://github.com/rafasc/octodown/blob/websocket-test/spec/integration_spec.rb#L30-L80
numbdewd has quit [Quit:  ☺ ]
enterprisey has joined #ruby
QualityAddict has quit [Quit: Leaving]
<matthewd> rafasc: No.
harai_ has joined #ruby
<rafasc> I know the empty 'it's are useless. Is the it 'receives the message' okish or I got this thing totally wrong?
<rafasc> matthewd: would you give me a hint on what's wrong with it?
<matthewd> You can't put random stuff outside of `it` blocks
bmurt has joined #ruby
elbuki has quit [Quit: Lost terminal]
Slinky_Pete has joined #ruby
jordanm has quit [Read error: Connection reset by peer]
detectiveaoi has quit [Quit: Leaving...]
jordanm has joined #ruby
funkytwig has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
impermanence has joined #ruby
<impermanence> Is there an easy way in ruby to return non-contiguous array elements? [1, 2, 3, 4] => [2, 4] ?
<matthewd> impermanence: values_at
<impermanence> matthewd: cool, I figured so, but googling was a bit unclear. thanks!
harai_ has quit [Ping timeout: 248 seconds]
t-recx has quit [Quit: t-recx]
ledestin has joined #ruby
roadt has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
marr has quit [Ping timeout: 248 seconds]
dysfigured has quit [Read error: Connection reset by peer]
Sembei has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
dysfigured has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
raynold has joined #ruby
dysfigured has quit [Quit: I hate quit messages.]
dysfigured has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
MyMind has joined #ruby
arescorpio has joined #ruby
kn-928_ has joined #ruby
kn-928 has quit [Ping timeout: 260 seconds]
houhoulis has quit [Remote host closed the connection]
bronson has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 252 seconds]
govg has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Ping timeout: 248 seconds]
arescorpio has quit [Ping timeout: 240 seconds]
elbuki has joined #ruby
<elbuki> Hello, how would you test a web scraper class?
houhoulis has joined #ruby
<baweaver> Ask yourself some questions: What, When, Then
<baweaver> What are you testing?
<baweaver> When it does something, then what do you expect it to do?
<baweaver> What: Web scraper. When: Parsing a page. Then: it gives you a parsed page object, AST, or something
kn-928_ has quit [Quit: WeeChat 1.9]
<baweaver> What: WebScraper.tokenize. When: Passed an HTML block. Then: I expect it returns a tokenized AST (abstract syntax tree)
<baweaver> To translate that to RSpec: What = describe, When = describe / context, Then = it / expect
<elbuki> What: Web scraper. When: The HTML content is fetched from a website. Then: Returns an array of hashes.
harai_ has joined #ruby
<elbuki> ... depending on the content
<baweaver> Yep, that would be a high level test or an Acceptance Test
<baweaver> Basically what you need to verify to show it's working
<baweaver> Also known as a Behavior Test
<elbuki> test should not involve internet connection?
<baweaver> Unit tests shouldn't
<baweaver> Acceptance / Behavior - Criteria for a finished app behavior; Integration - union of unit functions working together; Unit - a function / method in isolation (no internet)
<baweaver> Integration is if you have a bunch of units that come together to make a larger function flow, like tokenize would call a few other helper methods.
<baweaver> For a Unit test you would stub everything and make that function work in complete isolation of others except for exactly what you tell it to use.
<baweaver> That said you should probably use Nokogiri.
<elbuki> I do.
<elbuki> The main concern here is that if the website where I'm scraping content is available or not.
<elbuki> I understand now that unit tests are not for that.
<baweaver> Ah. You could always check the HTTP code of the site
<baweaver> when response.code is > 299 then (error happens, test this)
__Yiota has joined #ruby
<elbuki> I'm using `Net::HTTP.get(URI.parse(url))`.
<elbuki> Returns a SocketException when the page is not resolved.
Salve has joined #ruby
<elbuki> And returns a string representation of HTML when the page is fetched sucessfully.
<baweaver> What version of Ruby?
<elbuki> I haven't found a way to test that since it involves content fetching.
<elbuki> 2.4.1
<baweaver> allow(Net::HTTP).to receive(:get).and_return('<html>fake</html>')
<baweaver> Basically hit the fetching method, or pull that out into another method like: def get_page(url)
<baweaver> allow(ripper_instance).to receive(:get_page).and_return('fake')
<elbuki> I don't follow that DSL.
<elbuki> Is that Rspec?
<baweaver> Yeah.
<baweaver> I'd have to look how to stub in minitest or testunit, but I'd think they'd be similar
Slinky_Pete has joined #ruby
<baweaver> basically you allow an object to receive a specific message and return a response you want instead
<elbuki> Like mocking?
<baweaver> yep
<baweaver> mocking, stubbing, same thing with some slight semantical differences I'm sure someone will remind me of in a minute
<elbuki> I'll try that, thanks.
Slinky_Pete has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
Salve has quit [Remote host closed the connection]
jameser has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
orbyt_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has quit [Ping timeout: 240 seconds]
selim has quit [Ping timeout: 260 seconds]
selim has joined #ruby
chalkmonster has joined #ruby
dviola has joined #ruby
humon has joined #ruby
pilne has quit [Quit: Quitting!]
G_ is now known as G
__Yiota has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harai_ has quit [Ping timeout: 264 seconds]
Silthias has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
jameser has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
<elbuki> is there a way to use 'pry' in development only without requiring it in the code?
<elbuki> I don't want to have that require 'pry' in the production code.
jdawgaz has joined #ruby
<nofxx> elbuki, you can always don't commit heh.. but how are you running the thing?
rabajaj has joined #ruby
<elbuki> I include it in the Gemfile, require it in the main file and invoke it by using 'binding.pry'.
<nofxx> no, I mean..how you run the code: ruby app.rb ./some/console, rake
<nofxx> you can -r iirc.. ruby -r gem, it may work only having the gem, w/o having to modify Gemfile
<nofxx> but, 'correct way' lets say, would be have a development only in Gemfile
<nofxx> development only group*
enterprisey has quit [Ping timeout: 248 seconds]
<nofxx> also check out byebug if in newer ruby
astrobun_ has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
lektrik has joined #ruby
<elbuki> I have it in the development group.
<elbuki> I use rackup to bring the server up.
bronson has joined #ruby
<nofxx> elbuki, ah, now I got it... no, you should not need the require if it's in the Gemfile
<nofxx> maybe not loading the group? enviroment stuff
houhoulis has quit [Remote host closed the connection]
enterprisey has joined #ruby
<elbuki> I'll check, thanks.
knight33 has joined #ruby
humon has quit [Remote host closed the connection]
hinbody has quit [Ping timeout: 240 seconds]
lexruee has quit [Ping timeout: 240 seconds]
<elbuki> So, when the app is started, bundler should require all the gems specified in the Gemfile, so it's not necessary to manually require them in any part of the app?
gix has quit [Ping timeout: 248 seconds]
lexruee has joined #ruby
govg has joined #ruby
ashZ_ has quit [Quit: Leaving]
gix has joined #ruby
hinbody has joined #ruby
bronson has quit [Remote host closed the connection]
dviola has quit [Read error: Connection reset by peer]
rafasc has left #ruby [#ruby]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
daveomcd has quit [Ping timeout: 240 seconds]
opekktar has joined #ruby
daveomcd has joined #ruby
uZiel has joined #ruby
belmoussaoui has joined #ruby
lagweezle is now known as lagweezle_away
opekktar has quit [Quit: WeeChat 1.9]
jdawgaz has joined #ruby
harai_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Remote host closed the connection]
__Yiota has joined #ruby
mim1k has joined #ruby
jinie has quit [Ping timeout: 246 seconds]
harai_ has quit [Ping timeout: 264 seconds]
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jinie has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
noobineer has quit [Remote host closed the connection]
noobineer has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
elbuki has joined #ruby
knight33 has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
Emmanuel_Chanel has joined #ruby
oleo has quit [Quit: Leaving]
herbmillerjr has quit [Quit: Konversation terminated!]
volix has joined #ruby
GhostK has quit [Remote host closed the connection]
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ta_ has quit [Remote host closed the connection]
krz has joined #ruby
GhostK has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bauruine has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
knight33 has joined #ruby
harfangk has joined #ruby
knight33 has quit [Client Quit]
d^sh has joined #ruby
bauruine has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
Mortomes|Work has joined #ruby
krz has quit [Quit: WeeChat 1.7]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
jameser has joined #ruby
snickers has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mortomes|Work has quit [Ping timeout: 260 seconds]
P1ro has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
conta has joined #ruby
jozzzaa has joined #ruby
imode has joined #ruby
jozzzaa has quit [Quit: Leaving.]
knight33 has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
TomyWork has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
banisterfiend has joined #ruby
ta_ has joined #ruby
alex`` has joined #ruby
cgfbee has joined #ruby
JD2020X has joined #ruby
Beams has joined #ruby
phaul has joined #ruby
hekz has joined #ruby
mark_66 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
nitai has joined #ruby
Papierkorb has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ferr has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
FastJack_ has quit [Quit: leaving]
FastJack has joined #ruby
nitai has quit [Ping timeout: 248 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
InfinityFye has joined #ruby
imode has quit [Ping timeout: 246 seconds]
guille-moe has joined #ruby
hekz has quit [Quit: Leaving]
belmoussaoui has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
guille-moe has quit [Quit: guille-moe]
Guest34316 has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
nitai has joined #ruby
Pisuke has joined #ruby
vondruch has joined #ruby
MyMind has quit [Ping timeout: 248 seconds]
quobo has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
Pisuke has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
fivmo has joined #ruby
fivmo has quit [Client Quit]
fivmo has joined #ruby
uZiel has joined #ruby
fivmo has left #ruby [#ruby]
Burgestrand has joined #ruby
rahul_bajaj has joined #ruby
ur5us has joined #ruby
marr has joined #ruby
rabajaj has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
jaruga has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
InfinityFye has quit [Read error: Connection reset by peer]
InfinityFye has joined #ruby
jameser_ has joined #ruby
ta_ has quit [Remote host closed the connection]
mim1k has joined #ruby
Guest34316 has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
Guest34316 has joined #ruby
marens_ has quit [Ping timeout: 252 seconds]
rahul_bajaj has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
sagax has quit [Ping timeout: 252 seconds]
kies has quit [Quit: baaaaiiiiiiiiiii~]
lxsameer has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pisuke has joined #ruby
claudiuinberlin has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
Guest34316 has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
belmoussaoui has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
vondruch has quit [Quit: vondruch]
<slima> hello, I like to do something like: if Q1 contain foo or bar or foo1 etc. How to wrote this in elegant way?
<dminuoso> slima: each one is a predicate.
<dminuoso> preds.any? { |e| Q1.contains(e) }
<nitai> Hey! I am new to ruby. But I have a fair amount of experience of programming in python. How can i quickly jump into ruby and start coding?
<dminuoso> ?books
<ruby[bot]> You can find a list of recommended books at http://ruby-community.com/pages/links
<ljarvis> slima: (Q1 & Q2).any? # where Q2 is foo or bar or foo1 etc
vondruch has joined #ruby
<dminuoso> That's assuming Q1 is an array *shrugs*
* dminuoso pokes ljarvis with a suspiciously transducer shaped flagpole
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ljarvis> who knows, when there's little info one has to make assumptions
jdawgaz has joined #ruby
<dminuoso> Yeah you are right
<slima> okey. Q1 are string
<slima> And I like to do some validation of it.
<dminuoso> slima: Describe validations in terms of predicate functions.
<dminuoso> And then it becomes a question of array.any?/all?
claudiuinberlin has joined #ruby
<slima> if Q1(string) contains foo or bar do nothing, else do something so if Q1 = foo123 or Q1 = 123bar, do nothing
meinside has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> you can do as dminuoso suggested
<ljarvis> preds.any? { |e| Q1.include?(e) }
nitai has quit [Ping timeout: 255 seconds]
Guest39719 has joined #ruby
rahul_bajaj has joined #ruby
mikecmpbll has joined #ruby
<slima> thanks guys.
michaelzinn has joined #ruby
rabajaj has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Remote host closed the connection]
michaelzinn has quit [Read error: Connection reset by peer]
michaelzinn has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
rahul_bajaj has quit [Ping timeout: 260 seconds]
astrobun_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
drcode has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
bauruine has joined #ruby
rahul_bajaj has joined #ruby
michaelzinn has quit [Quit: kwit]
konsolebox has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
rahul_bajaj has quit [Quit: Leaving]
konsolebox has joined #ruby
rabajaj has joined #ruby
elsevero has joined #ruby
CrazyEddy has quit [Ping timeout: 248 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
Seenox has joined #ruby
belmoussaoui has quit [Ping timeout: 264 seconds]
al2o3-cr has joined #ruby
jsrn_ is now known as jsrn
bauruine has quit [Quit: ZNC - http://znc.in]
rahul_bajaj has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rabajaj has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
bauruine has joined #ruby
rabajaj has joined #ruby
rahul_bajaj has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
cabotto has joined #ruby
claudiuinberlin has joined #ruby
klaas has quit [Ping timeout: 240 seconds]
dman[m] has quit [Ping timeout: 240 seconds]
Liothen has quit [Ping timeout: 240 seconds]
turt2live has quit [Ping timeout: 240 seconds]
snapcase has joined #ruby
aagdbl[m] has quit [Ping timeout: 240 seconds]
snapcase has quit [Ping timeout: 240 seconds]
peteretep has joined #ruby
klaas has joined #ruby
Liothen has joined #ruby
aagdbl[m] has joined #ruby
FifthWall has quit [Ping timeout: 260 seconds]
dman[m] has joined #ruby
FifthWall has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
turt2live has joined #ruby
belmoussaoui has joined #ruby
harfangk_ has joined #ruby
tcopeland has quit [Quit: tcopeland]
Burgestrand has quit [Quit: Closing time!]
bokayio has joined #ruby
belmoussaoui has quit [Excess Flood]
duckpupp1 has joined #ruby
charliesome has joined #ruby
harfangk_ has quit [Client Quit]
kernelPaniq has joined #ruby
duckpupp1 has quit [Ping timeout: 264 seconds]
chalkmonster has quit [Quit: Daddy's flown, 'cross the ocean.]
belmoussaoui has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
bauruine has quit [Quit: ZNC - http://znc.in]
ur5us has joined #ruby
uZiel has joined #ruby
bruno- has quit [Quit: Lost terminal]
bruno- has joined #ruby
bauruine has joined #ruby
kille has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
mkroman has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Ping timeout: 255 seconds]
duckpupp1 has joined #ruby
spt0 has quit [Ping timeout: 240 seconds]
Azure|dc has joined #ruby
Burgestrand has joined #ruby
bronson has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 240 seconds]
jameser_ has quit [Ping timeout: 264 seconds]
Slinky_Pete has joined #ruby
cabotto has quit []
mkroman has joined #ruby
belmoussaoui has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
cabotto has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
uZiel has quit [Remote host closed the connection]
cabotto has quit [Client Quit]
uZiel has joined #ruby
pragmaticus has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
tomtom1 has joined #ruby
ldnunes has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Defenestrate has joined #ruby
pragmaticus has quit [Remote host closed the connection]
tcopeland has joined #ruby
claudiuinberlin has joined #ruby
charliesome has joined #ruby
ur5us has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 240 seconds]
ShalokShalom_ has joined #ruby
govg has quit [Ping timeout: 255 seconds]
raynold has quit [Quit: Connection closed for inactivity]
govg has joined #ruby
ShalokShalom has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomtom1 has left #ruby [#ruby]
ShekharReddy has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
jameser has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
synthroid has joined #ruby
claudiuinberlin has joined #ruby
synthroi_ has joined #ruby
belmoussaoui has quit [Ping timeout: 252 seconds]
rabajaj has quit [Quit: Leaving]
synthroid has quit [Ping timeout: 260 seconds]
belmoussaoui has joined #ruby
Slinky_Pete has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
Slinky_Pete has quit [Ping timeout: 248 seconds]
rrichardsr3 has joined #ruby
eminencehc has quit [Client Quit]
mkali has joined #ruby
GodFather has quit [Remote host closed the connection]
konsolebox has joined #ruby
GodFather has joined #ruby
belmoussaoui has quit [Ping timeout: 252 seconds]
gnufied has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
__Yiota has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
belmoussaoui has joined #ruby
claudiuinberlin has joined #ruby
hinbody_ has joined #ruby
hinbody_ has quit [Client Quit]
hinbody_mobile has joined #ruby
hinbody_mobile has quit [Client Quit]
hinbody-mobile has joined #ruby
hinbody-mobile has quit [Client Quit]
dextrey has joined #ruby
har has joined #ruby
scootaloo has quit [Read error: Connection reset by peer]
`derpy has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
ShalokShalom_ is now known as ShalokShalom
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
impermanence has joined #ruby
hs366 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
<ule> Hey guys.. how would you make this unique based on the offset: "-18000" ?
<ule> [["Canada/Eastern", -18000], ["America/Toronto", -18000], ["America/Bogota", -18000]]
Slinky_Pete has joined #ruby
<ule> doesn't matter which one its returning as long it contains unique offsets "-18000"
vondruch_ has joined #ruby
<ule> in this case, it must return just 1 element
mson has joined #ruby
MrBusiness3 has quit [Ping timeout: 246 seconds]
<matthewd> ule: Array#uniq
har has quit [Ping timeout: 246 seconds]
rabajaj has joined #ruby
<ule> matthewd: but how can I make sure it verifies only if a specific sub-array element is unique?
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
rabajaj has quit [Client Quit]
<matthewd> ule: The documentation seems pretty clear
jameser has joined #ruby
roshanavand has joined #ruby
govg has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Defenestrate has quit [Quit: This computer has gone to sleep]
Slinky_Pete has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ule> [["Canada/Eastern", -18000], ["America/Toronto", -18000], ["America/Bogota", -18000]].uniq { |tz| tz.last }
cadillac_ has quit [Ping timeout: 252 seconds]
<ule> matthewd: sorry about that, indeed it says that
govg has joined #ruby
<ule> thank you very much!
<ule> ops
<ule> actually didn't work
cadillac_ has joined #ruby
Defenestrate has joined #ruby
bronson has joined #ruby
<ule> wait nvm
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jameser has quit [Ping timeout: 248 seconds]
belmoussaoui has quit [Ping timeout: 255 seconds]
synthroi_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
vondruch_ is now known as vondruch
tvw has quit [Remote host closed the connection]
DLSteve has joined #ruby
ForeignBiscuit is now known as ResidentBiscuit
synthroid has joined #ruby
JD2020 has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
JD2020X has quit [Ping timeout: 264 seconds]
funkytwig has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
rrichardsr3 has quit [Quit: He who dares .... wins.]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
haylon_ has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
haylon_ has quit [Remote host closed the connection]
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
adam_ is now known as adam12
jdawgaz has joined #ruby
rasca_ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
<rasca_> Hi everyone, I have a problem when using `bundle install` to upgrade gitlab. The `google-protobuf` and `grpc` gems are being installed as 64 bit whereas all the others are 32bit resulting in a `LoadError: wrong ELF class`. How can I tell bundler to install the 32 bit version or install it from source inside vendor/bundle?
aupadhye has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
LastWhisper____ has joined #ruby
ams__ has joined #ruby
ta_ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elbuki has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
impermanence has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
dextrey has quit [Ping timeout: 255 seconds]
LocalAdmin has joined #ruby
impermanence has quit [Client Quit]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
Rapture has joined #ruby
jdawgaz has joined #ruby
dionysus70 has joined #ruby
bronson has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ferr has quit [Quit: WeeChat 1.9]
dionysus70 has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 240 seconds]
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bigkevmcd has joined #ruby
naprimer has quit [Ping timeout: 246 seconds]
GodFather has quit [Ping timeout: 240 seconds]
tor-browser has joined #ruby
mkali has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
bigkevmcd has quit [Ping timeout: 255 seconds]
bigkevmcd has joined #ruby
naprimer has joined #ruby
claudiuinberlin has joined #ruby
oleo has joined #ruby
gizmore has joined #ruby
bjmllr has left #ruby ["WeeChat 1.0.1"]
armando has quit [Quit: ZNC 1.7.x-nightly-20170828-c1e80b22 - https://znc.in]
bigkevmcd has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
armando has joined #ruby
Slinky_Pete has joined #ruby
elsevero has quit [Quit: elsevero]
Burgestrand has quit [Quit: Closing time!]
Slinky_Pete has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
polishdub has joined #ruby
gusrub has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has joined #ruby
govg has quit [Quit: leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
macowie has joined #ruby
tax has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
yeticry_ has joined #ruby
Papierkorb has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
BTRE has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
BTRE has joined #ruby
conta has quit [Ping timeout: 252 seconds]
sagax has joined #ruby
orbyt_ has joined #ruby
funkytwig has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
synthroid has joined #ruby
elbuki has joined #ruby
cagomez has joined #ruby
synthroi_ has joined #ruby
synthroid has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kernelPaniq has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie has quit [Ping timeout: 248 seconds]
jaruga has quit [Quit: jaruga]
vondruch has quit [Read error: Connection reset by peer]
jaruga has joined #ruby
belmoussaoui has joined #ruby
bmurt has joined #ruby
jinie has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
p0p0pr37_ has joined #ruby
Slinky_Pete has joined #ruby
dviola has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0p0pr37 has quit [Ping timeout: 248 seconds]
p0p0pr37_ is now known as p0p0pr37
claudiuinberlin has joined #ruby
funkytwig has quit [Ping timeout: 240 seconds]
tor-browser has quit [Quit: Konversation terminated!]
Slinky_Pete has quit [Ping timeout: 252 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mson has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
orbyt_ has joined #ruby
mark_66 has quit [Remote host closed the connection]
elbuki has joined #ruby
Pisuke has quit [Ping timeout: 260 seconds]
lexruee has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Read error: Connection reset by peer]
belmoussaoui has joined #ruby
bmurt has joined #ruby
Beams has quit [Quit: .]
conta2 has joined #ruby
lexruee has joined #ruby
wilbert has joined #ruby
cadillac_ has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
elbuki has joined #ruby
cadillac_ has joined #ruby
bronson has joined #ruby
jdawgaz has joined #ruby
wilbert has quit [Ping timeout: 255 seconds]
marxarelli has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
tor-browser has joined #ruby
claudiuinberlin has joined #ruby
imode has joined #ruby
wilbert has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
belmoussaoui has quit [Ping timeout: 246 seconds]
tor-browser has quit [Read error: Connection reset by peer]
tor-browser has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
belmoussaoui has joined #ruby
TomyWork has quit [Remote host closed the connection]
lagweezle_away is now known as lagweezle
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
SeepingN has joined #ruby
dextrey has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
funkytwig has joined #ruby
wilbert has joined #ruby
bruno-_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
marcux has joined #ruby
nowhereman has quit [Ping timeout: 255 seconds]
aurelien has quit [Ping timeout: 246 seconds]
aufi has quit [Quit: Leaving]
marcux has quit [Remote host closed the connection]
synthroi_ has quit [Remote host closed the connection]
TomyLobo has joined #ruby
minimalism has quit [Quit: minimalism]
wilbert has quit [Ping timeout: 255 seconds]
armyriad has quit [Quit: Leaving]
synthroid has joined #ruby
nowhereman has joined #ruby
marxarelli has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
wilbert has joined #ruby
<havenwood> Thribers talk today at RubyKaigi - wish I was there: http://rubykaigi.org/2017/presentations/ko1.html
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli has joined #ruby
armyriad has joined #ruby
milardovich has quit [Remote host closed the connection]
whippythellama has joined #ruby
sepp2k has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elsevero has joined #ruby
brent__ has joined #ruby
swills_ has joined #ruby
swills_ has quit [Client Quit]
kies has joined #ruby
AgentVenom has joined #ruby
[Butch] has joined #ruby
funnel has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
SteenJobs has joined #ruby
Guest34316 has joined #ruby
bee_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bee_ is now known as dayne
dayne has left #ruby [#ruby]
LocalAdmin has quit [Ping timeout: 252 seconds]
belmoussaoui has quit [Read error: Connection reset by peer]
Pisuke has joined #ruby
maryo has joined #ruby
perniciouscaffei has joined #ruby
<Guest34316> exit
Guest34316 has quit [Quit: WeeChat 1.4]
p0p0pr37 has quit [Ping timeout: 252 seconds]
p0p0pr37 has joined #ruby
orbyt_ has joined #ruby
nowhereman has quit [Ping timeout: 260 seconds]
tor-browser has quit [Quit: Konversation terminated!]
tor-browser has joined #ruby
jaruga has quit [Quit: jaruga]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
LocalAdmin has joined #ruby
modin has joined #ruby
orbyt_ has joined #ruby
tsglove has quit [Quit: Leaving]
gusrub has quit [Ping timeout: 260 seconds]
wilbert has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
conta1 has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
macowie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spt0 has joined #ruby
bronson has joined #ruby
modin has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gr33n7007h is now known as al2o3-cr
dcluna has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
conta1 has quit [Ping timeout: 248 seconds]
minimalism has joined #ruby
tsglove has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
wilbert has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
modin has joined #ruby
wilbert has quit [Client Quit]
Bock has quit [Ping timeout: 255 seconds]
synthroid has quit [Remote host closed the connection]
t-recx has joined #ruby
SteenJobs has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LocalAdmin has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Ltem has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
bmurt has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.9]
BTRE has joined #ruby
synthroid has joined #ruby
LocalAdmin has joined #ruby
nowhereman has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
InfinityFye has joined #ruby
jdawgaz has joined #ruby
knight33 has joined #ruby
tvw has joined #ruby
Dimik has joined #ruby
ta_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
tvw has joined #ruby
dextrey has quit [Ping timeout: 260 seconds]
naftilos76 has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
rippa has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
alex`` has quit [Quit: WeeChat 1.9]
ivanskie has joined #ruby
angelixd has joined #ruby
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
ivanskie has quit [Client Quit]
sepp2k1 has joined #ruby
ivanskie has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
swills has quit [Ping timeout: 255 seconds]
cagomez has joined #ruby
hahuang65 has joined #ruby
podman[USC] is now known as podman
elbuki has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
ycyclist has joined #ruby
laphoriag75 has joined #ruby
belmoussaoui has joined #ruby
selim has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
laphoraig77 has joined #ruby
Algebr` has joined #ruby
<Algebr`> Looking for a self contained guide or repo for showing how to compile C extensions on windows
selim has joined #ruby
orbyt_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
lxsameer has joined #ruby
laphoraig77 is now known as laphoriag92
laphoriag92 is now known as laphoriag99
ta_ has joined #ruby
Trynemjoel has quit [Quit: Quitting]
claudiuinberlin has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
nopolitica has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
Trynemjoel has joined #ruby
angelixd has quit [Remote host closed the connection]
InfinityFye has quit [Quit: Leaving]
ams__ has quit [Quit: Connection closed for inactivity]
Trynemjoel has quit [Quit: Quitting]
marxarelli has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
maryo has quit [Ping timeout: 264 seconds]
npgm has joined #ruby
Trynemjoel has joined #ruby
JD2020 has quit [Ping timeout: 264 seconds]
synthroid has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LocalAdmin_ has joined #ruby
synthroid has joined #ruby
LocalAdmin has quit [Ping timeout: 246 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lagweezle is now known as lagweezle_away
macowie has joined #ruby
marxarelli has joined #ruby
je0rsh has joined #ruby
eckhardt has joined #ruby
je0rsh has quit [Client Quit]
je0rsh has joined #ruby
<je0rsh> hi
<elbuki> hey
<je0rsh> if i post a gist, can i get some help
<je0rsh> i broke it down as small as i can think of
<je0rsh> but maybe because of how i setup the modules, i can't use a method the way i normally do for memoize caching an instance variable
ivanskie has joined #ruby
<je0rsh> i normally wouldn't use this in a module in the first place
<je0rsh> well, depends on the situation, of course, but yeah...it's uncommon for me
harai_ has joined #ruby
jnollette has quit [Ping timeout: 246 seconds]
<je0rsh> normally i just use the mem method as if it were the @mem instance variable...but i'm getting nil when i hit it
cagomez has joined #ruby
<je0rsh> only when i'm trying to make modifications to it though
<je0rsh> i think
laphoriag99 is now known as laphoraig49
<je0rsh> am i in the wrong channel? is there like a ... ruby for newbs channel
<elbuki> yes, it's ruby in general
bronson has joined #ruby
<elbuki> it's just that the people here is not very responsive
<elbuki> are*
<Papierkorb> je0rsh: Most won't click on a link without explanation, Here in the channel, what you're trying to do, what you tried, and what issue you're facing.
<je0rsh> no worries, i was just being a little impatient
<elbuki> You could post your problem in Stack Overflow, you can get further assistance in there
<je0rsh> papierkorb, i thought i did that
<je0rsh> sorry
claudiuinberlin has joined #ruby
jnollette has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 255 seconds]
<phaul> je0rsh: I think mem is a local variable not the function call you think it is
<phaul> try self.mem maybe
<je0rsh> yeah, when i try that...
<Papierkorb> je0rsh: https://gist.github.com/Papierkorb/66da4eecaeeb2f5b28fa741e01d1cbd1 Your issue has something to do with what phaul was playing at
<je0rsh> ok, i did that in the add method
<je0rsh> and it seems like it works, it's just that the arg add is given is not an array
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<je0rsh> Array#+(expects_an_array)
<je0rsh> but that's fine
elbuki has joined #ruby
<je0rsh> so in this case... self.mem += n, is self.mem the method or the instance variable....the method, right?
<Papierkorb> je0rsh: Two issues in fact: 1) your use of += invokes `Array#+`, which would expect an array. You wanted to use `#<<`. 2) `a += b` expands to: `a = a + b`. You'd be returning a copy of the returned array, and not actually modifying it like you intended.
<je0rsh> yeah, i tried the a = a + b too
<je0rsh> i just threw this example together after i was having the actual issue somewhere else
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<je0rsh> so i wasn't paying too much attention to the args expected by methods
<je0rsh> i was mostly concerned with the return value of mem
<je0rsh> thanks for updating the gist though, that helps a bunch
<je0rsh> and the self.mem too
phaul has quit [Ping timeout: 255 seconds]
<je0rsh> yeah,
<je0rsh> the way i normally use it is... `mem.push(n)`
<je0rsh> which worked fine
<je0rsh> thanks everyone
jdawgaz has joined #ruby
nopolitica has joined #ruby
__Yiota has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
funkytwig has quit [Ping timeout: 260 seconds]
funkytwig has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
raynold has joined #ruby
machinewar has joined #ruby
laphoraig49 is now known as laphoraig97
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
marxarelli has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
zachk has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
JD2020 has joined #ruby
<pizzaops> I don't know how I've never run into this before, but I can't seem to find good info - is there a way to pass arguments in a Gemfile for use by bundler? E.g. if I normally need to do `gem install libv8 -v 'XX.XX.XX' -- --with-system-v8`, is there a way to actually specify the `-- --with-system-v8` in the Gemfile?
<Algebr`> is 'bundler/setup' a standard pacakge?
synthroid has quit []
ivanskie has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
swills has joined #ruby
swills has joined #ruby
harai_ has quit [Ping timeout: 252 seconds]
roshanavand has quit [Quit: Leaving]
jobewan has joined #ruby
__Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
LocalAdmin__ has joined #ruby
MrBusiness3 has joined #ruby
spt0 has quit [Ping timeout: 240 seconds]
<Algebr`> what is the difference between gem, rake and bundle
LocalAdmin_ has quit [Ping timeout: 248 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
marxarelli has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez_ has joined #ruby
Ltem has quit [Quit: Leaving]
Slinky_Pete has joined #ruby
nowhereman has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
cagomez_ has quit [Ping timeout: 248 seconds]
ldnunes has quit [Quit: Leaving]
spt0 has joined #ruby
hahuang65 has joined #ruby
benlieb has joined #ruby
<machinewar> Algebr`: a gem is a Ruby library, rake is a build tool - think command line scripts in Ruby, bundler is for managing Ruby libraries (gems)
Slinky_Pete has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Algebr`> got it
marxarelli has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
nowhereman has quit [Ping timeout: 248 seconds]
<Algebr`> if bundler is for manage libraries, then why do I do gem install instead of bundle install?
<Algebr`> which also exists
marxarelli has joined #ruby
enterprisey has joined #ruby
modin has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jakinov has joined #ruby
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
modin has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elbuki has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
Pisuke has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
<machinewar> if you don't have a gemfile you can gem install libraries
<machinewar> for example if you just want to play around with some library
<machinewar> most Ruby projects will use a Gemfile + bundler though because then if I want to work on your project, I just git clone it, and run bundle install
mim1k has joined #ruby
mson has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nopolitica has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 248 seconds]
machinewar has quit []
tcopeland has quit [Quit: tcopeland]
Pisuke has joined #ruby
orbyt_ has joined #ruby
lagweezle_away is now known as lagweezle
DTZUZU has quit [Ping timeout: 255 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 264 seconds]
DTZUZO has joined #ruby
mtkd has joined #ruby
DTZUZU has joined #ruby
Dimik has joined #ruby
Pisuke has quit [Ping timeout: 252 seconds]
<jakinov> Hi, I'm writting plugin for some application. The app is event based, and each event is in some custom object type, I'm trying to get that event object into another custom object type. Both objects have the exact same keys/fields and structure (e.g. if u represneted each in json they'd look the exact same). How can I easily make the values of the keys/fields (and all the nested keys/fields) in my second object be the same as the first
eminencehc has joined #ruby
chouhoul_ has joined #ruby
benlieb has quit [Quit: benlieb]
spt0 has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
ivanskie has quit [Ping timeout: 240 seconds]
enterprisey has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
s3nd1v0g1us has joined #ruby
Pisuke has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz_ has quit [Ping timeout: 264 seconds]
nowhereman has joined #ruby
jenrzzz has joined #ruby
ivanskie has joined #ruby
Inoperable has quit [Quit: user rectified]
<havenwood> jakinov: You'll get a bunch more answers if you can show example input and desired output.
ivanskie has quit [Ping timeout: 240 seconds]
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Guest37165 is now known as graft
jenrzzz has quit [Ping timeout: 260 seconds]
whippythellama has quit [Quit: WeeChat 1.4]
spt0 has joined #ruby
polishdub has quit [Quit: leaving]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
TomyLobo has quit [Ping timeout: 264 seconds]
elbuki has joined #ruby
jenrzzz has joined #ruby
<havenwood> jakinov: an_object.merge another_object.select { |k, _| an_object.key? k }
<havenwood> (To hazard a guess.)
elsevero has quit [Quit: elsevero]
chmuri has quit [Ping timeout: 252 seconds]
nh_cham has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
<elbuki> Do you follow a convention for README.md files?
lxsameer has quit [Ping timeout: 260 seconds]
<elbuki> I mean, is there a proper way to document the README for a project.
<elbuki> Because I've seen many examples, but I don't know what is the proper way to write documentation in that file.
hahuang65 has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
ineb has quit [Quit: WeeChat 1.9]
<nh_cham> The one true way to write a readme file...
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
<Algebr`> I built a project but trying to run it and get dreaded This gemfile requires a different version of bundler.
GodFather has quit [Ping timeout: 240 seconds]
ineb has joined #ruby
<Algebr`> Or at least, how do I know what version of bundler a particular gem is using?
chmurifree has joined #ruby
tcopeland has joined #ruby
funkytwig has quit [Quit: Leaving]
GodFather has joined #ruby
zautomata has joined #ruby
tvw has quit [Remote host closed the connection]
GodFather has quit [Client Quit]
GodFather has joined #ruby
harai_ has joined #ruby
jdawgaz has joined #ruby
<havenwood> Algebr`: What's the error you're getting? Or is it just a warning?
<Algebr`> its error, I'm trying to use fastlane with this traveling ruby project but fastlane used a higher version of bundler
<havenwood> Algebr`: higher than what you have installed? or?
<havenwood> Algebr`: gem update bundler
<havenwood> ^ update bundler
<ruby[bot]> Algebr`: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fd08a444e597bdf72568936d241153b9
<ruby[bot]> Algebr`: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<havenwood> Algebr`: What is your bundler version then?: bundle -v
<graft> he's running 1.7
elsevero has joined #ruby
<havenwood> gem update bundler
<graft> fastlane seems to have a very specific bundler dependency, between 1.12 and 2
<havenwood> And Bundler version 1.15.4 is current.
<graft> is bundler 2 even a thing?
<havenwood> graft: There's a milestone and branch but it's just future-looking, breaking changes.
<graft> i see... so upgrading bundler would do Algebr` right
<havenwood> I don't know when release is planned.
<Algebr`> well I do: bundler --version Bundler version 1.16.0.pre.2, so that seems right
<Algebr`> so I'm thinking its traveling ruby itself which is using the insufficent bundler version
elsevero has quit [Ping timeout: 240 seconds]
milardovich has quit []
Slinky_Pete has joined #ruby
<jakinov> havenwood: I'll repost with more details and examples if I need to. I just got an answer from stackoverflow and yours, Going to play around. Thanks for the help!
Silthias has joined #ruby
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Slinky_Pete has quit [Ping timeout: 240 seconds]
jobewan has quit [Quit: jobewan]
ivanskie has joined #ruby
bruno-_ has quit [Ping timeout: 255 seconds]
arescorpio has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
ivanskie has quit [Ping timeout: 264 seconds]
elbuki has joined #ruby
JD2020 has quit [Ping timeout: 264 seconds]
elbuki has quit [Client Quit]
duckpupp1 has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
<davic> anyone else has the getaddrinfo: No address associated with hostname (SocketError) error with fog using rancher?
GodFather has joined #ruby
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
gusrub has quit []
gusrub has joined #ruby
gusrub has quit [Client Quit]
Azure|dc has quit [Read error: Connection reset by peer]
Kero has quit [Ping timeout: 260 seconds]
perniciouscaffei has joined #ruby
gusrub has joined #ruby
QualityAddict has joined #ruby
Azure has joined #ruby
mim1k has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ilogixz has joined #ruby
jdawgaz has joined #ruby
xco has joined #ruby
jdawgaz has quit [Client Quit]
<xco> morning :)
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Client Quit]
goyox86_ has quit [Ping timeout: 248 seconds]
jdawgaz has joined #ruby
<xco> on lines 6 and 8 i want to refactor, do i store the “raise ….” in a local variable or make it a method? what’s the best approach?
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
macowie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DipoleHourglass has quit [Quit: Connection closed for inactivity]
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
Kero has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
ilogixz has quit [Quit: Leaving]
lagweezle is now known as lagweezle_away
mson has quit [Quit: Connection closed for inactivity]
QualityAddict has quit [Quit: Leaving]
tor-browser has quit [Quit: Konversation terminated!]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Slinky_Pete has joined #ruby