havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
DaRock has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
fphilipe has joined #ruby
fphilipe_ has quit [Ping timeout: 240 seconds]
<ewanchic> In my compiled gem, using it as a executable with thor i pass it an option of a yaml file. when I pass it --opt=file.yaml or --opt=./file.yaml, it grabs the path of the gem location: /home/ewanchic/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/freight-0.10.0/lib/freight/file.yml instead of the current location I'm executing the file from. How can I grab my current executing location?
<ewanchic> I'm using : File.expand_path( yaml_filepath, __dir__ ) to get the location.
citizentwo has joined #ruby
TCZ has joined #ruby
ur5us has joined #ruby
hays has quit [Ping timeout: 260 seconds]
citizentwo has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
simonfromspace has joined #ruby
m_antis[away] has quit [Quit: m_antis[away]]
Swyper has quit [Remote host closed the connection]
mn3m has joined #ruby
Swyper has joined #ruby
TCZ has quit [Quit: Bye Bye]
DaRock has quit [Read error: Connection reset by peer]
DaRock has joined #ruby
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
mn3m has quit [Quit: mn3m]
postmodern has joined #ruby
meinside has joined #ruby
Swyper has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 2.6]
<scipio_africanu4> You guys know what would be based
<scipio_africanu4> If synapse was implemented with RoR
s3nd1v0g1us has joined #ruby
<ewanchic> scipio_africanu4: what is synapse?
<simonfromspace> ewanchic Remember yesterday I was suggested to use Capybara with Cuprite?
<simonfromspace> They seem to require installing a web driver.
<scipio_africanu4> <ewanchic "scipio_africanus: what is synaps"> Matrix synapse
<scipio_africanu4> Synapse is the basic matrix server
<ewanchic> simonfromspace: 'a' webdriver, or 'the' webdriver?
<simonfromspace> 'a',
<ewanchic> scipio_africanu4: hmm, interesting
<simonfromspace> Right now, I have this button on the page like 'Load More', and I want a gem that can simply click it until all the content is loaded. When it is, I want to pass that page to Nokogiri.
<scipio_africanu4> Synapse is the backend for how were all communicating rn
alfiemax has joined #ruby
<ewanchic> simonfromspace: I've never really dived that far into scrapers.
<ewanchic> scipio_africanu4: neato, I'll have to look at then when I get the chance
<simonfromspace> Thanks anyway <3
<ewanchic> scipio_africanu4: Is this what your looking for? https://github.com/ananace/ruby-matrix-sdk
<scipio_africanu4> I was just speculating on how cool it would be
<ewanchic> simonfromspace: No problem. I'm actually scratching my head a bit...web driver? I'm really wondering what that means. and html parser? Javascript execution? where does it say it needs a 'web driver'?
<scipio_africanu4> This is what I’m talking about
<scipio_africanu4> ewanchic: that’s for clients
<ewanchic> scipio_africanu4: so synapse is a server?
<ewanchic> scipio_africanu4: so synapse is a matrix server written in python? That's what I'm gathering. Yeah, that would be cool.
<ewanchic> simonfromspace: Maybe this will help. It needs nokogiri: https://rubygems.org/gems/webdrivers/versions/3.2.0
<scipio_africanu4> It’s the current main server for the whole federated matrix system
<scipio_africanu4> But there’s a replacement written in golang otw
<scipio_africanu4> Golang is epic tier
Swyper has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
rf` has joined #ruby
envex has quit [Ping timeout: 240 seconds]
rf` has quit [Client Quit]
envex has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 260 seconds]
s3nd1v0g1us has joined #ruby
pama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
code_zombie has quit [Quit: Leaving]
Iacob has joined #ruby
<simonfromspace> ewanchic fanstastic! I somehow skipped that earlier
gavlee has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
simonfromspace has quit [Ping timeout: 260 seconds]
xco has joined #ruby
xco has quit [Client Quit]
pinpox- is now known as pinpox
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
hays has joined #ruby
Iacob has quit [Quit: This computer has gone to sleep]
<ewanchic> Grr, having issues getting rails 6 to run in production. I guess I'll have to default back to 5.2.2
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
gix- has joined #ruby
gix has quit [Disconnected by services]
DTZUZU has quit [Ping timeout: 268 seconds]
DTZUZU has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
Iacob has joined #ruby
davispuh has joined #ruby
Iacob has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
nixy371 has quit [Quit: The Lounge - https://thelounge.chat]
nixy371 has joined #ruby
s2013 has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
donofrio has quit [Remote host closed the connection]
Mrbuck has left #ruby ["WeeChat 2.7"]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
CrazyEddy has quit [Ping timeout: 268 seconds]
postmodern has quit [Quit: Leaving]
jenrzzz has joined #ruby
hays has quit [Ping timeout: 268 seconds]
lalitmee has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dStromboli has quit [Ping timeout: 272 seconds]
dStromboli has joined #ruby
gix- has quit [Ping timeout: 272 seconds]
lalitmee has quit [Quit: Leaving]
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Iacob has joined #ruby
schne1der has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
_phaul has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 268 seconds]
Iacob has quit [Quit: 离开]
Ai9zO5AP has quit [Quit: WeeChat 2.5]
fphilipe has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
markopasha has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
ooheitooh has quit [Quit: The Lounge - https://thelounge.chat]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
stdedos has quit [Remote host closed the connection]
ooheitooh has joined #ruby
stdedos has joined #ruby
<stdedos> Hello there! I am trying to monkeypatch OpenSSL https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/how-to-decrypt-ruby-ssl-communications-with-wireshark/However, it does not work with Net::HTTP functions. It's my first monkeypatch, so, what am I missing?
<_phaul> stdedos: Im' getting 404 for that link
<Ytrezar> there is an "However" that got in the link at the end
<_phaul> aha!
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fphilipe has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
ur5us has joined #ruby
vondruch has quit [Quit: vondruch]
schne1der has joined #ruby
sergioro has quit [Quit: leaving]
conta has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
clemens3 has joined #ruby
Ytrezar has quit [Quit: See ya]
Ytrezar has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
fercell has joined #ruby
NODE has joined #ruby
conta has quit [Quit: conta]
Mon_Ouie has quit [Quit: WeeChat 1.9.1]
ur5us has joined #ruby
mikecmpbll has joined #ruby
shigana has joined #ruby
xco has joined #ruby
FlorianFa has joined #ruby
postmodern has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
greengriminal has joined #ruby
vondruch has joined #ruby
ThibG has joined #ruby
markopasha has quit [Ping timeout: 268 seconds]
markopasha has joined #ruby
markopasha has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
Ytrezar has quit [Quit: See ya]
shigana has quit [Ping timeout: 260 seconds]
Ytrezar has joined #ruby
conta has joined #ruby
greengriminal has quit [Quit: Leaving]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Quit: conta]
royal_screwup21 has joined #ruby
fig-le-deunch has joined #ruby
Fernando-Basso has joined #ruby
m_antis has joined #ruby
Tempesta_ has joined #ruby
Tempesta has quit [Ping timeout: 272 seconds]
jmcgnh has quit [Ping timeout: 260 seconds]
jmcgnh has joined #ruby
xco has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
nowhere_man has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
royal_screwup21 has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pama has joined #ruby
donofrio has joined #ruby
Guest90 has joined #ruby
xco has joined #ruby
shigana has joined #ruby
TomyWork has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest90 has quit [Quit: ZZZzzz…]
postmodern has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
jmdade has joined #ruby
cvz has joined #ruby
dionysus69 has joined #ruby
Netrunner has joined #ruby
Netrunner has left #ruby ["WeeChat 1.9.1"]
Tempesta_ has left #ruby ["Closing Channel, bye."]
Tempesta has joined #ruby
<cvz> What is the cleanest way of appending the same variable to an array X number of times?
evert has quit [Quit: ZNC - https://znc.in]
ellcs1 has joined #ruby
evert has joined #ruby
lucasb has joined #ruby
sean has joined #ruby
sean is now known as Guest99195
<al2o3-cr> cvz: Array.new(10, var)
vondruch has quit [Ping timeout: 268 seconds]
Netrunner has joined #ruby
Netrunner has left #ruby ["WeeChat 1.9.1"]
Guest99195 has quit [Quit: ZZZzzz…]
<cvz> al2o3-cr: thank you!
conta1 has joined #ruby
<al2o3-cr> cvz: np
kristofferR has joined #ruby
Swyper has joined #ruby
sean has joined #ruby
sean has quit [Client Quit]
sean has joined #ruby
jcalla has quit [Ping timeout: 240 seconds]
sean has quit [Client Quit]
nowhere_man has quit [Ping timeout: 272 seconds]
sean has joined #ruby
sean has quit [Client Quit]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
sean has joined #ruby
sean has quit [Client Quit]
Guest27024 has joined #ruby
Guest27024 has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
conta1 has quit [Quit: conta1]
ellcs1 has quit [Ping timeout: 260 seconds]
bvdw has joined #ruby
ellcs1 has joined #ruby
alfiemax has joined #ruby
vondruch has joined #ruby
jmdade has quit [Quit: jmdade]
Swyper has joined #ruby
jmdade has joined #ruby
tomfern has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
xco has joined #ruby
xco has quit [Client Quit]
bukkitgerman8 has quit [Quit: Ping timeout (120 seconds)]
bukkitgerman8 has joined #ruby
sean__ has joined #ruby
cisco has joined #ruby
cd has joined #ruby
spiette_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
sergioro has joined #ruby
spiette has joined #ruby
alfiemax has quit [Remote host closed the connection]
ExoUNX has joined #ruby
<ThibG> hello! a few people reported a very weird bug in Mastodon: we apparently have a `rescue` block of the form `rescue => e` (used to re-raise the error with additional information) that reportedly sometimes receive `e` as a… String, rather than an Exception?
jmdade has quit [Quit: jmdade]
<ThibG> with errors like “NoMethodError (undefined method `message' for "execution expired":String)”
<ThibG> and “NoMethodError: undefined method `message' for "Net::ReadTimeout with #<TCPSocket:(closed)>":String”
alfiemax has joined #ruby
jmdade has joined #ruby
<ThibG> I haven't been able to reproduce it myself, but multiple people got such errors, I'm not sure how that's even possible, “rescue => e” should always catch descendants of StandardError, not String, right?
jcalla has joined #ruby
Emmanuel_Chanel has joined #ruby
jmdade has quit [Quit: jmdade]
jmdade has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
kinduff has joined #ruby
kinduff has quit [Changing host]
kinduff has joined #ruby
davidscheck_ has joined #ruby
impermanence has joined #ruby
r3m has quit [Quit: WeeChat 2.8-dev]
r3m has joined #ruby
tomfern has quit [Remote host closed the connection]
NODE has quit [Quit: changing servers]
reber has joined #ruby
NODE has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
stdedos has quit [Remote host closed the connection]
schne1der has joined #ruby
ExoUNX has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simonfromspace has joined #ruby
stan has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
s2013 has joined #ruby
<adam12> ThibG: You can't raise a String as an exception. Raise only permits descendants of Exception to be raised.
<adam12> ThibG: Full stack trace would help. Not sure there's much to go on here. I know Timeout accepts a klass to raise. Maybe somehow it's received a String and there's a bug somewhere else... but it's a mystery indeed.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> yeah my first guess too would be some kind of delegator and the actual .message call is somewhere else
s2013 has joined #ruby
ellcs1 has quit [Ping timeout: 268 seconds]
mike27 has joined #ruby
<ThibG> haven't got a full stack trace in any of the reports yet; I proposed affected people to replace the handler with something that'd print `caller_locations.inspect` whenever the caught “exception” doesn't respond to #message, but I haven't heard back from them yet
<mike27> Hi all, complete newbie to programming here. Im wondering what would be the best approach to getting started would be and what are the most recommended resources for learning would be? Cheers, Mike.
s2013 has quit [Client Quit]
<havenwood> mike27: There are some good links here: https://ruby-community.com/pages/links
s2013 has joined #ruby
<havenwood> mike27: And here: https://www.ruby-lang.org/en/documentation/
<havenwood> mike27: I'd vote to start here: https://ruby.github.io/TryRuby/
<havenwood> mike27: Folk here might have other ideas. Please ask here if you run into questions!
<mike27> thanks for the reply, will take a look1
bukkitgerman8 has quit [Quit: Ping timeout (120 seconds)]
bukkitgerman8 has joined #ruby
Esa_ has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
duderonomy has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
<simonfromspace> mike27 What do you want to do exactly?
tdy has joined #ruby
cisco has quit [Ping timeout: 268 seconds]
<kinduff> good morning everyone
Esa_ has quit []
<havenwood> kinduff: alias g p; g'mornin'
alfiemax has quit [Remote host closed the connection]
cisco has joined #ruby
cisco is now known as Guest70061
mike27 has quit [Ping timeout: 260 seconds]
kinduff has quit [Remote host closed the connection]
Esa_ has joined #ruby
kinduff has joined #ruby
leitz has joined #ruby
<leitz> If you use @file = File.open(blah...blah), how do you get the name of the file from @file, later? Both "p" and "inspect" have it,I'm just not sure what they are calling it.
<woodruffw> leitz: File#path has the string that was passed as a filename
conta1 has joined #ruby
conta1 has quit [Client Quit]
<havenwood> Or the alias, #to_path.
<woodruffw> yep!
<leitz> Hey guys, thanks! I think that will give me what I need. It's a bit past time to update the resume, and since I'm trying to use Ruby as my programmer-language of choice, automating it in Ruby.
<havenwood> leitz: @file.public_methods(false).filter { @file.public_method(_1).arity.zero? && @file.public_send(_1) == filename } #=> [:to_path, :path]
ExoUNX has joined #ruby
fanta1 has joined #ruby
<leitz> havenwood: length = File.path(file).include?('long.txt') ? 'long' : 'short'
ExoUNX has quit [Client Quit]
<havenwood> leitz: Do you want it to include long.txt or to be it exactly?
<havenwood> leitz: file.path == 'long.txt' ? 'long' : 'short'
<leitz> havenwood, to include. "file" is the output file, I have a long and short version. With the long, more gets put into it.
<ratah> havenwood :)
<ratah> leitz: yo! how's rubymentoring.org coming along?
ExoUNX has joined #ruby
alfiemax has joined #ruby
<ratah> or .net
<havenwood> leitz: So like?: File.basename(file.path) == 'long.txt'
<leitz> ratah, spent some time this morning re-figuring out github.io, that's where my resume is. Once I get the resume forward, I'm going to put up some notes, just to have a page.
<havenwood> &>> File.basename 'foo/bar/long.txt'
phaul has joined #ruby
<ratah> cool!
<rubydoc> # => "long.txt" (https://carc.in/#/r/8kq7)
<leitz> havenwood, the file path is "output/my_name_long.txt", with "my_name" coming from the data. In theory, someone else could use this as well. Doubtful, but there's always hope!
<havenwood> leitz: Ah, so you want #end_with?
<havenwood> leitz: file.path.end_with?('_long.txt')
_phaul has quit [Ping timeout: 268 seconds]
<leitz> havenwood, ah-ha, yes!
* leitz has spent a bit of time in Perl-land, and forgotten the bliss...
sergioro has quit [Quit: leaving]
jmdade has quit [Quit: jmdade]
<leitz> I'm going to owe adam12 a pretty big beer; the work he showed me on adapters for one project is really helping with this one, too.
ExoUNX has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m_antis_ has joined #ruby
m_antis has quit [Ping timeout: 268 seconds]
<ratah> leitz: in that case he's gonna get pretty drunk
<ratah> i already offered him crates upon crates upon crates upon crates :)
<ratah> only if he shares it with havenwood though, and a handful of others
ExoUNX has joined #ruby
jmdade has joined #ruby
royal_screwup21 has joined #ruby
alfiemax has quit [Remote host closed the connection]
znz_jp has quit [Remote host closed the connection]
davidw has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
znz_jp has joined #ruby
Esa_ has quit []
mokha has quit [Remote host closed the connection]
clemens3 has quit [Quit: WeeChat 2.1]
mokha has joined #ruby
jrhorn424 has joined #ruby
jrhorn424 has left #ruby [#ruby]
postmodern has quit [Quit: Leaving]
fphilipe has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
alfiemax has joined #ruby
Esa_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
jmdade has quit [Quit: jmdade]
fphilipe has quit [Ping timeout: 272 seconds]
TomyWork has quit [Ping timeout: 256 seconds]
gix has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
shigana has quit [Quit: BitchX: now Y2K compatible!]
mikecmpbll has quit [Quit: inabit. zz.]
plutes has quit [Quit: See ya around!]
plutes has joined #ruby
jmdade has joined #ruby
ellcs1 has joined #ruby
jmdade has quit [Client Quit]
fphilipe has joined #ruby
_phaul has joined #ruby
fphilipe has quit [Ping timeout: 260 seconds]
ExoUNX has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 272 seconds]
m_antis_ is now known as m_antis[away]
m_antis[away] has quit [Quit: m_antis[away]]
ExoUNX has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
Guest70061 has quit [Read error: Connection reset by peer]
canton7 has quit [Remote host closed the connection]
DarthGandalf has quit [Remote host closed the connection]
kp666[m] has quit [Ping timeout: 252 seconds]
<ewanchic> ratah: I love royksopp
rcvu has quit [Ping timeout: 268 seconds]
execat[m] has quit [Ping timeout: 245 seconds]
sepp2k has quit [Ping timeout: 256 seconds]
simonfromspace has quit [Remote host closed the connection]
qbrd[m] has quit [Ping timeout: 248 seconds]
linuus[m] has quit [Ping timeout: 248 seconds]
schne1der has quit [Ping timeout: 265 seconds]
scipio_africanu4 has quit [Ping timeout: 240 seconds]
stan has quit [Ping timeout: 240 seconds]
Batisi[m] has quit [Ping timeout: 240 seconds]
mistergibson[m] has quit [Ping timeout: 248 seconds]
rcvu has joined #ruby
turt2live has quit [Max SendQ exceeded]
canton7 has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 240 seconds]
DarthGandalf has joined #ruby
schne1der has joined #ruby
mojca has quit [Ping timeout: 240 seconds]
mojca has joined #ruby
ExoUNX has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
davidscheck_ has quit [Quit: This computer has gone to sleep]
fphilipe has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
DarthGandalf has quit [Read error: Connection timed out]
DarthGandalf has joined #ruby
LtHummus has quit [Ping timeout: 260 seconds]
<ewanchic> In my compiled gem, using it as a executable with thor i pass it an option of a yaml file. when I pass it --opt=file.yaml or --opt=./file.yaml, it grabs the path of the gem location: /home/ewanchic/.rvm/rubies/ruby-2.5.5/lib/ruby/gems/2.5.0/gems/freight-0.10.0/lib/freight/file.yml instead of the current location I'm executing the file from. How can I grab my current executing location?
<ewanchic> I'm using : File.expand_path( yaml_filepath, __dir__ ) to get the location.
fphilipe has quit [Ping timeout: 260 seconds]
clemens3 has joined #ruby
<havenwood> ewanchic: Dir.getwd
<ewanchic> havenwood: Thank you!!
<apotheon> damn
royal_screwup21 has quit [Remote host closed the connection]
<havenwood> ewanchic: Or the alias: Dir.pwd
<apotheon> I was trying to remember what it was called, and was about to say "don't remember off the top of my head; look it up in Dir documentation".
LtHummus has joined #ruby
<havenwood> &>> Dir.public_methods(false).filter { Dir.method(_1).arity.zero? }
<rubydoc> # => [:getwd, :pwd, :allocate, :superclass] (https://carc.in/#/r/8ksb)
kp666[m] has joined #ruby
<havenwood> &>> Dir.public_methods(false).filter { Dir.method(_1).arity.zero? } - Object.methods
<rubydoc> # => [:getwd, :pwd] (https://carc.in/#/r/8ksc)
chalkmonster has joined #ruby
sepp2k has joined #ruby
<ewanchic> apotheon: That would have helped too. Sometimes, I'm not able to ask the right question in google.
<havenwood> &>> Dir.public_methods(false).filter { Dir.method(_1).arity.zero? } - BasicObject.public_methods(false)
<rubydoc> # => [:getwd, :pwd] (https://carc.in/#/r/8kse)
stan has joined #ruby
<havenwood> ewanchic: It's quick to check in IRB or Pry. A little simpler in Pry.
<havenwood> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<havenwood> ewanchic: ls Dir
Batisi[m] has joined #ruby
<ewanchic> havenwood: ls Dir?
<havenwood> ewanchic: In Pry that'll show you Dir's methods, constants and variables.
<havenwood> ewanchic: Or for just methods: ls -m Dir
<havenwood> ewanchic: You can do the same in pure Ruby, if you prefer.
<havenwood> ewanchic: For example, see: Dir.public_methods(false)
<ewanchic> havenwood: https://pryrepl.org/ site is down?
<havenwood> &>> Dir.public_methods(false)
<rubydoc> # => [:[], :unlink, :foreach, :each_child, :children, :chdir, :getwd, :pwd, :chroot, :mkdir, :rmdir, :home,... check link for more (https://carc.in/#/r/8ksf)
<ewanchic> &>> Dir.public_methods(false)
<rubydoc> # => [:[], :unlink, :foreach, :each_child, :children, :chdir, :getwd, :pwd, :chroot, :mkdir, :rmdir, :home,... check link for more (https://carc.in/#/r/8ksg)
<havenwood> ewanchic: Yeah, it seems down.
<ewanchic> &>> File.public_methods(false)
<rubydoc> # => [:lutime, :link, :symlink, :readlink, :lchmod, :unlink, :rename, :umask, :mkfifo, :expand_path,... check link for more (https://carc.in/#/r/8ksh)
<ewanchic> &>> Dir.public_methods
<rubydoc> # => [:[], :unlink, :foreach, :each_child, :children, :chdir, :getwd, :pwd, :chroot, :mkdir, :rmdir, :home,... check link for more (https://carc.in/#/r/8ksi)
hays has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
<havenwood> ewanchic: With File, for example, Pry will show you IO methods too.
<havenwood> ewanchic: You can of course do the same in pure Ruby.
ExoUNX has joined #ruby
<ewanchic> havenwood: ...that was my next question....what are you doing? (I see what your doing now &amp; >>)
<havenwood> &>> File.ancestors.to_h { [_1, _1.public_methods(false)] }
<rubydoc> # => {File=>[:lutime, :link, :symlink, :readlink, :lchmod, :unlink, :rename, :umask, :mkfifo, :expand_path,... check link for more (https://carc.in/#/r/8ksj)
<havenwood> ewanchic: &>> asks _phaul's bot to eval the code with jhass's online repl.
<havenwood> ewanchic: From your terminal, try the same: irb
<havenwood> ewanchic: Or: ruby -e "p File.ancestors.to_h { [_1, _1.public_methods(false)] }"
siery has quit [Ping timeout: 240 seconds]
<ewanchic> havenwood: I'm like a well seasoned programmer...and at the same time a rusty /ametuer coder. New Lang, mostly the same, but sometimes different. It's hard to google the right question.
linuus[m] has joined #ruby
<havenwood> ewanchic: Or: ruby -e "pp File.ancestors.to_h { [_1, _1.public_methods(false)] }"
<havenwood> ewanchic: Asking here help hone the question.
<havenwood> ewanchic: Ruby ships with ri as well as irb.
fercell has joined #ruby
<havenwood> ewanchic: See: man ri
<havenwood> ewanchic: Asking Ruby goes a long way. Checking here can probably bring you there.
qbrd[m] has joined #ruby
<ewanchic> I keep getting errors...
<havenwood> ewanchic: Show us one?
<ewanchic> havenwood: Of, course, I don't have pry installed yet.
<havenwood> ewanchic: Ah, sorry I gave a Ruby 2.7 example since I'm excited about new things.
<havenwood> ewanchic: gem install pry pry-doc
<havenwood> ewanchic: In Ruby 2.5: ruby -e "pp File.ancestors.map { |ancestor| [ancestor, ancestor.public_methods(false)] }".to_h
<apotheon> hrm
<havenwood> ewanchic: Or in IRB: File.ancestors.map { |ancestor| [ancestor, ancestor.public_methods(false)] }".to_h
<havenwood> oops, "s
<apotheon> a pastebin that requires having ES turned on to even see anything but a blank white screen
<havenwood> ewanchic: File.ancestors.map { |ancestor| [ancestor, ancestor.public_methods(false)] }.to_h
<havenwood> apotheon: it's really a repl, just used here oddly to evaluate arbitrary text. to show that text in the resulting error.
<havenwood> ewanchic: dpaste.de or gist.github.com are nice for pasting errors and such.
<havenwood> &25>> File.ancestors.map { |ancestor| [ancestor, ancestor.public_methods(false)] }.to_h
<rubydoc> # => {File=>[:empty?, :join, :split, :size, :fnmatch, :fnmatch?, :directory?, :exist?, :exists?, :readable?,... check link for more (https://carc.in/#/r/8ksl)
<apotheon> I've become a grumpy old curmudgeon.
<apotheon> GET OFF MY LAN
<apotheon> "Back in my day, we had to use curl and ed to view someone's online paste, and we liked it that way."
<ewanchic> havenwood: I'm not a fast typer...so I'm trying to catch up. (or the best at grammar/spelling). My bad.
wald0 has joined #ruby
<havenwood> apotheon: I'd dial in to a MUD and exchange code through a local bard.
<apotheon> nice
<ewanchic> --&amp; 25 >>, why the 25?
<apotheon> I remember when sprunge didn't stop working for a week every month because it exceeded its bandwidth allotment.
<havenwood> ewanchic: That told circ.in to evaluate the code with Ruby 2.5.
<ewanchic> oh, ok
<havenwood> ewanchic: (Showing it works on 2.5, rather than the default 2.7.)
NODE has quit [Quit: changing servers]
<ewanchic> That is really cool. It's going to take me a while to catch up with all of this.
mistergibson[m] has joined #ruby
<apotheon> I should have realized the #ruby channel would be full of functionality like that.
NODE has joined #ruby
scipio_africanu4 has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
<ewanchic> I was going to ask a few more general questions yesterday...but I need a moment to juggle my other tasks and get back.
wald0 has joined #ruby
<ewanchic> Oh yeah, do you setup a local gemserver? I was reading about it again yesterday. Just wondering if I need to download gems into a local server env becuase lately it is getting slow to redo bundle install everytime.
<havenwood> ewanchic: gem serve
<havenwood> ewanchic: See: gem help serve
wald0 has quit [Client Quit]
<havenwood> ewanchic: The `bundle` command should use a local cache.
Deesl has joined #ruby
<havenwood> export BUNDLE_CACHE_ALL=1
kinduff has quit [Remote host closed the connection]
<havenwood> ewanchic: Maybe check your `bundle config` for anything suspicous?
<ewanchic> havenwood: I was reading that yesterday and I wasn't sure I I should daemonize gem server, or use a prebuilt package, etc.
<havenwood> ewanchic: Normally, you just `bundle` and leave it be. It'll just use the gems from the Gemfile.lock, and not redownload them if they're available.
<havenwood> ewanchic: If that's not working, we can help sort it out.
<havenwood> ewanchic: You shouldn't need to run a local gemserver. You certainly can.
<ewanchic> havenwood: well, no this is part of the gem I'm writing. I got two version right now, the public (which has nothing) and my private that I started off in Aug/Sep '19.
fphilipe has joined #ruby
<havenwood> ewanchic: Oh. You can run a local gem server or just point your Gemfile at the local gem.
<havenwood> ewanchic: gem 'ewanchic', path: '/foo/bar'
<havenwood> ewanchic: If you're sharing a gem, you can use a private GitHub repo or run a gem server on a VPN.
<ewanchic> So...freight is supposed to build your app for you. I Started on the 1st part in '19, I jsut finished the 2nd part last night. The first part purposly creates your gemset and downloads the gemsets inside of the rvm gemset that you need. The second part prepares and exports all your files for a nginx/unicorn env. This is designed (Probably similiar to rails composer?) to build and rebuild your app over and over again. Classic case of not wa
<ewanchic> nted to repeat the setup features and the server links well building the app.
fphilipe has quit [Ping timeout: 240 seconds]
<ewanchic> brb
<apotheon> havenwood: You seem pretty up-to-date, and I've just been sitting in a dark cave writing code, so . . .
<apotheon> havenwood: Is there any reason rbenv isn't the greatest thing since slice bread any longer?
<apotheon> s/slice/sliced/
<apotheon> (I accidentally a letter.)
<havenwood> apotheon: chruby
<apotheon> I'll look at that, then.
<havenwood> apotheon: Instead of shims it just munges path and sets a few other env vars.
<apotheon> Is that pretty much the elevator pitch for whta's better about it than rbenv?
<apotheon> . . . and does it still manage installed gems separately for different Ruby versions?
Jonopoly has joined #ruby
<havenwood> apotheon: It's a simpler way to switch Ruby versions. Learning from rbenv and RVM, chruby strove to be the simplest thing that can possibly work. For example, rbenv includes a C extension for realpath: https://github.com/rbenv/rbenv/tree/master/src
<apotheon> If I'm reading this README correctly, it seems it doesn't require an existing Ruby install to set it up.
<havenwood> apotheon: chruby is these 104 lines: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
<havenwood> apotheon: Yeah, it can point at an arbitrary Ruby install.
<havenwood> apotheon: For example, here's chruby with Homebrew: https://gist.github.com/havenwood/ba31f67c1d89ac236400
<apotheon> I like the idea of not having to bootstrap off an existing Ruby version.
<havenwood> apotheon: Or chruby with archlinux: https://gist.github.com/jhass/8839655bb038e829fba1
<apotheon> I think I've heard of chruby, but not in a context that made it convenient to check it out before this.
<havenwood> apotheon: I'm a maintainer of chruby and RVM but not rbenv, for full disclosure.
<apotheon> I see.
<havenwood> apotheon: I'd recommend looking at chruby though. :P It's simple and works.
<apotheon> I switched from RVM to rbenv almost immediately after learning about the latter, and never regretted it.
<apotheon> I'll give chruby a try. Thanks.
<havenwood> apotheon: Many switch on to chruby. It's a path well followed.
<havenwood> RVM -> rbenv -> chruby -> retire.
sauvin has quit [Read error: Connection reset by peer]
<apotheon> I may have to set up a test system *just* for chruby, so I don't have to undo my whole setup to see how I like chruby.
<apotheon> har, ->retire
<havenwood> apotheon: chruby plays nice with others.
<havenwood> You can even just use it with your ruby-build installed Rubies.
<apotheon> Oh? Does it not compete with rbenv in some way? That's cool.
citizentwo has joined #ruby
<havenwood> apotheon: All you need to do to support rbenv Rubies in chruby is: RUBIES+=(~/.rbenv/versions/*)
<apotheon> sweet
<havenwood> apotheon: Likewise, you can use ruby-install to install to the rbenv location: https://github.com/postmodern/ruby-install
fphilipe has joined #ruby
mike32 has joined #ruby
<havenwood> apotheon: ruby-install --latest --install-dir ~/.rbenv/versions/2.7.0 ruby 2.7.0
<havenwood> apotheon: ruby-install is commonly used by chruby folk, but it's not coupled like rbenv and ruby-build.
<apotheon> I see that in the README, now that you mention it.
<apotheon> I love this modularity.
<apotheon> (at least in theory, so far)
<havenwood> apotheon: The versions metadata for ruby-install is also modular, so you don't need to update the tool to get the latest Ruby.
<apotheon> no problems with license compatibility in chruby, too, thank goodness
<havenwood> MIT FTW
<apotheon> It's a great license.
<havenwood> Apache2 keeps growing. Nice too.
<apotheon> Not so much. AL2 has license incompatibility problems.
<havenwood> apotheon: What's it incompatible with?
<apotheon> GPLv2, for instance
<havenwood> "Despite our best efforts, the FSF has never considered the Apache License to be compatible with GPL version 2, citing the patent termination and indemnification provisions as restrictions not present in the older GPL license."
<havenwood> I see.
<apotheon> The fewer things in my sphere that use GPLv2, GPLv3, CDDL, MPL, AL2, and so on, the less I have to worry about compatibility in the rare occasions when I run into something that does use one of those.
<havenwood> GPLv3 FTW
<apotheon> nah
<havenwood> At least GPLv3 and Apache3 are compat.
<apotheon> GPLv3 is incompatible with GPLv2, as well, and there's a lot of stuff that's only GPLv2.
<havenwood> Ish
impermanence has quit [Remote host closed the connection]
<apotheon> . . . but yeah, AL2 and GPLv3 are one-way compatible.
<apotheon> OpenSSL's license is incompatible with GPLv2 and GPLv3, too, I think.
fphilipe has quit [Ping timeout: 272 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
<apotheon> (but not incompatible with AL2, if I recall correctly)
<apotheon> I just prefer things with copyfree licenses (e.g. MIT), in part so I don't have to worry about it.
<havenwood> apotheon: Gem::Specification.map(&:licenses).tally
<havenwood> ["MIT"]=>311
<havenwood> ["Apache-2.0"]=>213
lxsameer has joined #ruby
<havenwood> apotheon: Those are the big two for gems I've installed.
<havenwood> Other than BSD licenses, everything else is single digit.
hiroaki has joined #ruby
<havenwood> ["WTFPL"]=>1
<havenwood> "Do What the Fuck You Want to Public License"
<havenwood> ¯\_(ツ)_/¯
<havenwood> That's permissive.
zacts has joined #ruby
chalkmonster has joined #ruby
<apotheon> yep
<apotheon> I pretty much like these licenses: http://copyfree.org/standard/licenses
<apotheon> They're about as low-maintenance as licenses get.
clemens3 has quit [Quit: WeeChat 2.1]
fphilipe has joined #ruby
Deesl has quit [Quit: Textual IRC Client: www.textualapp.com]
ellcs1 has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<zacts> hey apotheon
<zacts> copyfree is cool
citizentwo has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 272 seconds]
bvdw has quit [Read error: Connection reset by peer]
<apotheon> zacts: hey
<apotheon> zacts: I haven't seen you around much.
ewanchic has quit [Ping timeout: 260 seconds]
bvdw has joined #ruby
ewanchic has joined #ruby
duderonomy has joined #ruby
xco has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
Jonopoly has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
qbrd[m] has quit [Quit: killed]
Batisi[m] has quit [Quit: killed]
kp666[m] has quit [Quit: killed]
stan has quit [Quit: killed]
mistergibson[m] has quit [Read error: Connection reset by peer]
linuus[m] has quit [Quit: killed]
ewanchic has quit [Ping timeout: 254 seconds]
sepp2k has quit [Quit: killed]
scipio_africanu4 has quit [Quit: killed]
ExoUNX has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
chalkmonster has quit [Read error: Connection reset by peer]
fanta1 has quit [Quit: fanta1]
houhoulis has joined #ruby
orbyt_ has joined #ruby
fphilipe has joined #ruby
ellcs1 has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
ewanchic has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 260 seconds]
qbrd[m] has joined #ruby
ellcs1 has quit [Remote host closed the connection]
houhoulis has quit []
coffeex3 has joined #ruby
ellcs1 has joined #ruby
zacts has quit [Quit: zacts]
fphilipe has joined #ruby
ewanchic has quit [Ping timeout: 265 seconds]
fphilipe has quit [Ping timeout: 272 seconds]
coffeex3 has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 260 seconds]
evert has quit [Quit: ZNC - https://znc.in]
alexherbo2 has joined #ruby
evert has joined #ruby
clemens3 has joined #ruby
clemens3 has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
royal_screwup21 has joined #ruby
ewanchic has joined #ruby
houhoulis has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
linuus[m] has joined #ruby
sepp2k has joined #ruby
turt2live has joined #ruby
kp666[m] has joined #ruby
execat[m] has joined #ruby
scipio_africanu4 has joined #ruby
stan has joined #ruby
Batisi[m] has joined #ruby
mistergibson[m] has joined #ruby
jenrzzz has joined #ruby
clemens3 has joined #ruby
sergioro has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
davidscheck_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hiroaki has quit [Ping timeout: 268 seconds]
fphilipe has joined #ruby
schne1der has joined #ruby
<leitz> Hey all, be thinking about mentoring. ratah and i chatted a couple days ago; we both think something should be done to help grow people's Ruby skills. Our ideas are different, and that's a good thing. I'm going to have to bail shortly, but tomorrow I'll ask for your ideas on how to use mentoring to help grow the community.
<ratah> +1
hiroaki has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
<ratah> hehe
<ratah> apotheon is my manz!
<ratah> leitz: well done
<ratah> what was that five star gem i forgot
<ewanchic> leitz: One thing I've been working on is a way to shift interest back to Rails, and hopefully back to ruby. That's what my freight gem is partially about.
<ewanchic> leitz: I do feel very jaded to RoR. Over there years I've been trying to understand why people moved away from Ruby or Rails for the other languages. And, I still don't quite understand why.
<ratah> ewanchic: Majority of them haven't even tried Rails
<ratah> Least not created anything of value
<leitz> ewanchic, I dislike the perception of "magic" in Rails, though I realize it gives a lot of advantage to people who know it.
<leitz> But that's the way I look at things, not a Rails specific issue.
<ewanchic> leitz: I think there is a lot of interest in "simple" and "long-term", yet the whole nodejs is anything but long-term. the languages change so frequently that they are excited about the next 'new' thing instead of the next 'innovative' thing.
<ratah> Show me what you're able to make
<ratah> *then* show me why you chose to ditch Rails
jmdade has joined #ruby
<leitz> I started playing with Sinatra; it seems to fit my brain and comfort level.
<leitz> ratah, that's not the best way to go about it; Rails is something to learn. Like Latin, or surf boarding, I'm unlikely to spend time learning it just to prove it's not what I want. I can see that externally, by listening to wiser folks.
<ewanchic> ratah: I actually started making a 2-multiple way chat program with rails. It was utilizing faye...before it became actioncable. At the end of the day, the head programmer didn't really 'want' to understand it. He wanted to stay with php and Zend. This is after I had a long, open conversation with the writter of Zend, and he admitted there was so much they were behind on in comparison to Rails.
fphilipe has joined #ruby
<leitz> One of the things about Ruby projects, and it seems Rails even more so, is the number of moving pieces underneath. If you use dozens of gems to build your site, then you're going to spend a lot of time worrying about something big changing underneath.
<ewanchic> ratah: the head coder explained he rather see 20-30 lines of code rather than wrapping them up into 5 lines in rails.
<ewanchic> leitz: Yes, I like the magic ;)
<ratah> leitz: I see where you're coming from. But in our case, the Ruby framework is the least of our concern. The idea, the brand and the underlying Ruby code is much more important imho
<ratah> Whatever framework we choose is irrelevant as far as I can tell
<ratah> ewanchic: seen :D
<leitz> For Ruby mentoring, I agree. I'm rather likely to let you work on the framework on the .com site, that's past my skill level.
<ratah> ewanchic: truth be told i'm starting to get tired of explaining to php folks why rails is better
<ratah> remember that whole gregg pollack thing
jenrzzz has joined #ruby
<ratah> hehe :D
<ratah> spaghetti spaghetti
jmdade has quit [Read error: Connection reset by peer]
<ratah> Eminem - "Mom's Spaghetti" (Music Video) - https://www.youtube.com/watch?v=SW-BU6keEUw
<ratah> #detroit
<apotheon> ratah: What did I do?
ellcs1 has quit [Remote host closed the connection]
hays has quit [Ping timeout: 272 seconds]
fphilipe has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 260 seconds]
<ewanchic> ratah: LOL, I actually do! Fun memory! But truth is, Rails is like that again...sorta. It's more like the whole web framework platform is is a mess. That's why I'm creating Freight. I think the we create websites is becoming too un-managable, and it doesn't have too anymore. I like how Ruby took C++ and sent it to the next level...that's how I view Ruby. Machine -> Assembly-> C -> C++ -> Ruby. Now, with frameworks today, it's like the 80-9
<ewanchic> 0s with languages: Basic, Java, Fortran, Pascal, etc. Something needs to be done to streamline this so we can get on to making good websites, upgrade easily, and focus more on innovation. IMHO
<ewanchic> I'm so pushed into "working" for a living that I struggle to learn and keep up. Im my small realm, there is no time for innovating, and I miss that.
<leitz> ewanchic, I understand that. I have to code early in the AM, before work, to learn the stuff I'm trying to learn. My work isn't Ruby, sadly.
<ewanchic> leitz: I feel you man!
pwnd_nsfw` has joined #ruby
<ewanchic> I need to talk sometime about the line I need to draw from open sourcing my code to providing a subscription to make money. I want to do both, but I need some advice on where to draw that line.
<ewanchic> Second would be, how much code to push up publicly before I write tests. I want to re-write my public gem so I can get each test up, to have 100% code coverage. But, doing that might slow me down.
pwnd_nsfw has quit [Ping timeout: 272 seconds]
Rob__ has joined #ruby
<leitz> ewanchic, unless I'm doing a proof of concept, and sometimes even then, I write the tests first. It makes me faster and the code cleaner.
jimeh has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
<ewanchic> leitz: I'm striving to get to that point. I've been a BDD for 30 years :D
<leitz> I'll be back in my AM, looking forward to chatting with you all!
leitz has quit [Quit: Leaving]
<_phaul> after TDD and DDD now I'm dying to learn what BDD is :D
<ewanchic> _paul: Behavior Driven development. Not sure was DDD is ?
<_phaul> domain
<_phaul> ah. I see
<ewanchic> Domain driven development?
<_phaul> yep
<ewanchic> design driven development?
<ewanchic> What?!
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
<_phaul> domain driven development. Don't ask, I haven't taken the courses yet, my colleges did
<_phaul> colleagues. I can't spell that word apparently
<ewanchic> _paul: Basically, before TDD, we'd write the code, run, and see if it worked. Most of us would do TDD in our heads, but there was never any way to do TDD. I dreamed about this when I'd watch TNG. But TDD really came out 8 years ago? It's taking hold which is good. But, for those of us with a master whipping us at our backs to work, it's had to convince them to pay us the extra time needed to learn and develop tdd apps.
jenrzzz has quit [Ping timeout: 260 seconds]
royal_screwup21 has joined #ruby
m_antis has joined #ruby
<_phaul> there seems to be an increasing amount of something driven development these days.. I'm not sure if it's more than these consultancy companies trying to make money after the agile lectures tailed down. We will see
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
pinpox- has joined #ruby
<_phaul> tdd is good, just accept it doesnt mattter if you have the feature fist (natural way) or the test, and you shoudn't test assigning instance variables ( i have seen in interview candidates tests ). But every obvervable behavoir must be tested. That I agree with
pinpox has quit [Ping timeout: 240 seconds]
m_antis_ has joined #ruby
jenrzzz has joined #ruby
m_antis has quit [Ping timeout: 272 seconds]
m_antis has joined #ruby
fphilipe has joined #ruby
pinpox- is now known as pinpox
lightstalker has quit [Remote host closed the connection]
m_antis_ has quit [Ping timeout: 272 seconds]
m_antis_ has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
m_antis has quit [Ping timeout: 268 seconds]
Fernando-Basso has quit [Quit: Leaving]
<_phaul> I think testing instance variable assignments is a practice that test first brought on us, and it's actually harmful because you test implementation details as opposed to what the thing should do...
hiroaki has quit [Ping timeout: 272 seconds]
<ewanchic> _phaul: Do you have any experience with testing singeltons(?) that require a yield?
<ewanchic> _phaul: I think I can provide you a sample if you're interested.
_phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
<ewanchic> phaul: Did you catch that?
lightstalker has joined #ruby
zacts has joined #ruby
<ewanchic> phaul: Do you have any experience with testing singeltons(?) that require a yield?
<ewanchic> phaul: I think I can provide you a sample if you're interested.
<phaul> no, but I caught up on the logs, please share that example
<ewanchic> ok..hold on
fphilipe has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
<ewanchic> phaul: It's in the spec/freight/app_spec. I've just been throwing ideas on the wall to see what sticks.
hays has joined #ruby
<ewanchic> phaul: uhh, I'll be back in an hour or so...sorry. I'll leave the chat open so I can come back and read.
davidscheck_ has quit [Quit: This computer has gone to sleep]
fphilipe has quit [Ping timeout: 272 seconds]
Esa_ has quit []
nowhere_man has joined #ruby
s3nd1v0g1us has joined #ruby
hays has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
<phaul> idk. I stand by what I said, I have no idea how this is related. Idk your code, though.
ratah has quit []
<phaul> if you coud break it down, in terms of test first vs test second and how in this example it didn't work.. that woud help
fphilipe has joined #ruby
_phaul has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
clemens3 has joined #ruby
phaul has quit [Ping timeout: 272 seconds]
fphilipe has quit [Ping timeout: 265 seconds]
sean__ has quit [Ping timeout: 260 seconds]
fphilipe has joined #ruby
phaul has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
_phaul has quit [Ping timeout: 265 seconds]
Swyper has quit [Remote host closed the connection]
m_antis_ has quit [Quit: m_antis_]
cisco has joined #ruby
cisco is now known as Guest91988
<ewanchic> phaul: Hey, I'm back.
<ewanchic> phaul: This is a gem, and I'm using it as an executable (exe/freight) with the help of Thor CLI.
fphilipe has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
<ewanchic> phaul: So, there is very little code right now, just the gem's framework. under /ib/freight/app/init.rb, I'm testing the header_bar def.
<ewanchic> phaul: I'm trying to test if simple text is outputed, if it is provided within the yield block. If there is no text, then it should output something else.
<ewanchic> phaul: https://dpaste.org/3W4J
zacts has quit [Quit: zacts]
<ewanchic> phaul: sorry, I'm testing the header def, not header_bar. Anyway, I cannot seem to figure out how to test the yield. I keep getting ther error: no block given (yield)
fphilipe has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
DaRock has joined #ruby
ur5us has joined #ruby
phage has joined #ruby
sean has joined #ruby
sean is now known as Guest21190
mike32 has quit [Ping timeout: 265 seconds]
reber has quit [Remote host closed the connection]
Guest21190 has quit [Quit: Guest21190]
<ThibG> jhass, well-spotted, the .message call was indeed somewhere else: in the caught exception class' initializer
<ThibG> (since we were re-raising the same class, we passed the textual message while it expected an exception object to wrap/copy from)
Swyper has quit [Remote host closed the connection]