baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: 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!
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 245 seconds]
Siarkowy has joined #ruby
cagomez has quit [Remote host closed the connection]
Guest58115 has joined #ruby
DTZUZO has joined #ruby
cagomez has joined #ruby
Guest58115 has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 252 seconds]
thejs has quit [Remote host closed the connection]
Azure|dc is now known as Azure
mroutis_ has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest58115 has joined #ruby
brandoncc has joined #ruby
Guest58115 has quit [Ping timeout: 245 seconds]
cagomez has joined #ruby
brandoncc has quit [Client Quit]
Guest58115 has joined #ruby
cagomez has quit [Remote host closed the connection]
Guest58115 has quit [Ping timeout: 245 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
SirFunk has joined #ruby
AJA4350 has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
code_zombie has joined #ruby
soulisson has joined #ruby
<soulisson> hi
brandoncc has joined #ruby
SeepingN has quit [Ping timeout: 272 seconds]
Freshnuts has quit [Quit: Leaving]
mitescugd has joined #ruby
soulisson has quit [Quit: Leaving]
sspreitz has quit [Ping timeout: 252 seconds]
LiftLeft2 has joined #ruby
sspreitz has joined #ruby
LiftLeft has quit [Ping timeout: 240 seconds]
code_zombie has quit [Quit: Leaving]
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brandoncc has joined #ruby
idiocrash has joined #ruby
brandoncc has quit [Client Quit]
mroutis has quit [Ping timeout: 240 seconds]
mitescugd has quit [Quit: C-x C-c]
mitescugd has joined #ruby
sspreitz has quit [Ping timeout: 245 seconds]
sspreitz has joined #ruby
mroutis has joined #ruby
mroutis has quit [Ping timeout: 245 seconds]
Guest58115 has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
exchgr has quit [Read error: Connection reset by peer]
Guest58115 has quit [Ping timeout: 240 seconds]
exchgr has joined #ruby
agent_white has joined #ruby
LiftLeft2 is now known as LiftLeft
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 240 seconds]
tpendragon has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fredlinhares> exit
fredlinhares has quit [Quit: WeeChat 1.4]
hfp has quit [Quit: bye]
hfp_work has quit [Quit: bye]
braincrash has quit [Quit: bye bye]
thy0 has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
braincrash has joined #ruby
orbyt_ has joined #ruby
pabs has quit [Ping timeout: 252 seconds]
kapil___ has joined #ruby
gix has quit [Disconnected by services]
arescorpio has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
mrush has joined #ruby
arescorpio has quit [Quit: Leaving.]
hays_ is now known as hays
eckhardt has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psmolen has quit [Ping timeout: 240 seconds]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 252 seconds]
psmolen has joined #ruby
duderonomy has joined #ruby
c0ncealed2 has quit [Read error: Connection reset by peer]
c0ncealed2 has joined #ruby
dendazen_ has joined #ruby
duderonomy has quit [Ping timeout: 252 seconds]
ellcs has quit [Ping timeout: 240 seconds]
mroutis has joined #ruby
dionysus69 has joined #ruby
sauvin has joined #ruby
_whitelogger has joined #ruby
duderonomy has joined #ruby
MoritaShinobu has joined #ruby
mroutis has quit [Ping timeout: 272 seconds]
dendazen_ has quit [Quit: Textual IRC Client: www.textualapp.com]
reber has joined #ruby
Dbugger has joined #ruby
_whitelogger has joined #ruby
duderonomy has quit [Read error: Connection timed out]
duderonomy has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 252 seconds]
lightstalker has joined #ruby
duderonomy has joined #ruby
Rootsudo has joined #ruby
dellavg_ has joined #ruby
duderonomy has quit [Max SendQ exceeded]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
duderonomy has quit [Max SendQ exceeded]
duderonomy has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
joelroa has joined #ruby
duderonomy has quit [Ping timeout: 252 seconds]
clemens3 has joined #ruby
duderonomy has joined #ruby
_whitelogger has joined #ruby
duderonomy has quit [Max SendQ exceeded]
duderonomy has joined #ruby
dionysus69 has joined #ruby
_whitelogger has joined #ruby
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
duderonomy has quit [Max SendQ exceeded]
duderonomy has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest58115 has joined #ruby
sidepocket has joined #ruby
sameerynho has joined #ruby
apeiros_ has joined #ruby
desperek has joined #ruby
Guest58115 has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sticaz has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.2]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
joelroa has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joelroa has joined #ruby
agent_white has quit [Quit: leaving]
dionysus69 has quit [Quit: dionysus69]
doubledup has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
sidepocket has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
dellavg_ has quit [Ping timeout: 272 seconds]
Yxhuvud has joined #ruby
sidepocket has joined #ruby
joelroa has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 252 seconds]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
Guest58115 has joined #ruby
leitz has joined #ruby
DTZUZO has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
Guest58115 has quit [Ping timeout: 252 seconds]
<leitz> If unit tests should not depend on order, how do you write a good test harness that tests insertions and deletions without setting up the db first?
desperek has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 244 seconds]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 244 seconds]
magellanicloud has joined #ruby
AJA4350 has joined #ruby
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 245 seconds]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 252 seconds]
leitz has quit [Quit: Leaving]
sidepocket has quit [Ping timeout: 256 seconds]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 240 seconds]
Guest58115 has joined #ruby
mfunkmann has joined #ruby
<mfunkmann> Hey folks! Let's say I have a background task happening via Thread.new {my_background_stuff}, is there a way to call a method from there on the main thread? If not, what would be my options to nicely communicate with the main thread?
Guest58115 has quit [Ping timeout: 245 seconds]
leitz has joined #ruby
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 240 seconds]
AndreYuhai has joined #ruby
bak1an has joined #ruby
Guest58115 has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
<AndreYuhai> Hello there, why can I not see the methods for an object instance within another method of the class ? Here you can take a look at it : https://dpaste.de/z75d I didn't know how to explain it better.
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros_ has quit [Remote host closed the connection]
<AndreYuhai> And of course I've used require 'watir' . I forgot to copy it there.
apeiros_ has joined #ruby
Guest58115 has quit [Ping timeout: 252 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
<leitz> AndreYuhai, it looks like the question is about Ruby Mine IDE, correct?
<AndreYuhai> leitz: Well, since I can still use the methods anyway, I guess it's about Ruby Mine IDE.
<leitz> :P
<AndreYuhai> I just wanted to ask if anyone else has ever encountered a problem like this, because it is really annoying. :D
<leitz> Understood. You may get a better answer rate on the Ruby mailing list. There are some smart folks here who drop in occasionally, but traffic is seldom high.
desperek has joined #ruby
<AndreYuhai> Oh, I will try that. Thank you anyway. :)
<leitz> No worries. Hang out here if you have time.
<AndreYuhai> Suree I do. :D
<leitz> Hey AndreYuhai can you do me a quick favor? See if you can see this web page: https://travis-ci.org/makhidkarun/ftl_tools
<leitz> I'm trying to see if someone not me can see it before I send it out.
al2o3-cr has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
knight33 has joined #ruby
magellanicloud has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
ur5us has joined #ruby
mfunkmann has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has quit [Ping timeout: 244 seconds]
akem has joined #ruby
thy0 has joined #ruby
mroutis has joined #ruby
<AndreYuhai> leitz: I am sorry. I don't know why I don't get notified when my name is mentioned
<AndreYuhai> leitz: I can see the link tho. Here is what I see : https://screenshots.firefox.com/fxqXZddTPaX1EvDG/travis-ci.org
govg has quit [Ping timeout: 252 seconds]
<leitz> AndreYuhai, thanks! That's perfect!
mroutis has quit [Ping timeout: 240 seconds]
<AndreYuhai> leitz: You are welcome ^^
<leitz> If a pre 1.0 release of a gem is in the gems directory, why can't it be 'require'd?
kapil___ has joined #ruby
tristanp has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
apg has joined #ruby
<apg> hello
<apg> I have been googling around but I could not find answer. How do you count byte size of a utf-8 character in Ruby?
pskosinski has joined #ruby
<havenwood> apg: bytesize
<apg> havenwood, thank you very mucho. you saved moi day
Inline has left #ruby ["Leaving"]
fluxAeon has quit [Ping timeout: 240 seconds]
apg has quit [Quit: Leaving]
wojnar has joined #ruby
fluxAeon has joined #ruby
kotepillar_ has joined #ruby
Guest58115 has joined #ruby
<leitz> Morning havenwood.
apg has joined #ruby
<havenwood> g'mornin'
<havenwood> leitz: by "gems directory" do you mean $GEM_PATH or $GEM_HOME or something else?
Guest58115 has quit [Ping timeout: 240 seconds]
<leitz> havenwood, I have installed two pre 1.0 gems in the LOAD_PATH. The issue may be the way I structured the gems; I don't do the usual "lib/load_my_libs.rb" file.
<leitz> Mostly because I don't understand it.
apg has quit [Client Quit]
<leitz> That may be the issue, or the pre-1.0 issue.
<leitz> here's one of the gems I'm trying to use: https://github.com/makhidkarun/ftl_chargen
<havenwood> leitz: there should be a: lib/ftl_chargen.rb
<leitz> And then put the libraries in there? Do I need to change how they are called?
* leitz points out he's still a newbie, even with a few years experience.
<havenwood> └── lib
<havenwood> └── ftl_chargen.rb
<havenwood> leitz: follow this guide: https://guides.rubygems.org/patterns/#consistent-naming
* leitz goes to code...
<havenwood> I guess there's more discussion here: https://guides.rubygems.org/make-your-own-gem/
<havenwood> leitz: The goal is to have your file structure match your namespaces. So there's a lib/ftl_chargen.rb file, and a lib/ftl_chargen/ directory.
<havenwood> leitz: That's all there typically is in lib/
<havenwood> leitz: Everything else in that tree is inside the lib/ftl_chargen/ dir.
<havenwood> leitz: So if you have a lib/ftl_chargen/dice.rb, the namespace is FtlChargen::Dice
<havenwood> leitz: And a lib/ftl_chargen/dice/another_one is FtlChargen::Dice::AnotherOne
<havenwood> leitz: And so on
<havenwood> another_one.rb*
qolq has quit [Read error: Connection reset by peer]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qolq has joined #ruby
<havenwood> leitz: Here's an example: https://github.com/pry/pry/tree/master/lib
<havenwood> leitz: Just a pry/ and pry.rb in lib/
<havenwood> leitz: Then if you look at a file like lib/pry/hooks, you'll see the namespace is: Pry::Hooks
<havenwood> leitz: And take a look at lib/pry/code.rb and lib/pry/code/ dir.
<havenwood> leitz: lib/pry/code/code_file.rb would be what namespace then?: https://github.com/pry/pry/blob/master/lib/pry/code/code_file.rb
<havenwood> Ha, oops - did that one wrong in Pry. >.>
<havenwood> Never mind that example!
<leitz> hehe...still working it.
<leitz> pry.rb has other code in in though.
<havenwood> leitz: Yeah, pry.rb is where Pry class is setup and where all the requires for lib/pry/* live
<havenwood> leitz: Your ftl_chargen.rb should require the other files in lib/ftl_chargen/*
<havenwood> leitz: It's the single point of require for the gem.
<leitz> Should the libraries "careers" and "tools" be in "lib" or "lib/ftl_chargen"
<havenwood> leitz: lib/ftl_chargen, and they should be namespaced under the FTLChargen or FtlChargen class or module
<havenwood> leitz: So lib/ftl_chargen/careers.rb would be FtlChargen::Careers
<havenwood> leitz: Or is it FTLChargen?
<havenwood> I'm not familiar with the initialism.
xfbs has joined #ruby
RougeR has quit [Ping timeout: 272 seconds]
<leitz> havenwood, the careers are classes that get used by the generation code. Sorting this out is a task, and they may go from classes to structs as I figure things out more.
<leitz> In the repo's bin/chargen is where the careers get loaded.
<leitz> Okay, fixed the careers path issue. Not sure 'tools' is still used.
phatcat has joined #ruby
<leitz> Wow...test pass...
<phatcat> heya, does anyone know how to run this in production? https://github.com/jamesbrink/docker-lobsters
<phatcat> the commands at the end launch it in development
qolq3 has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
qolq has quit [Ping timeout: 240 seconds]
qolq3 is now known as qolq
<havenwood> phatcat: export RAILS_ENV="production"
gnufied has quit [Ping timeout: 252 seconds]
<phatcat> havenwood: at the end of the command?
<havenwood> phatcat: before running the commands
<havenwood> phatcat: or prefix it to the command: RAILS_ENV="production" ...
gnufied has joined #ruby
Rich_Morin_ has joined #ruby
<Rich_Morin_> I'd like to report a documentation bug for String#gsub, but I don't know where the relevant code might be in GitHub. Help?
<phatcat> havenwood: so docker run --name lobsters -v lobsters_data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=lobsters -d mariadb RAILS_ENV="production"
<havenwood> phatcat: it looks, based on their pattern, that'd be: -e RAILS_ENV="production"
<havenwood> Rich_Morin_: I'm curious what the error is?
<Rich_Morin_> "Returns a copy of str with the [sic] all occurrences of ..."
<havenwood> Rich_Morin_: I think that's how it's meant to read though. Maybe it could be worded better.
<Rich_Morin_> no, it's wrong
<phatcat> havenwood: hm, am getting `docker: Error response from daemon: Cannot link to a non running container: /lobsters AS /modest_wiles/mariadb.`
<havenwood> phatcat: hrm
<Rich_Morin_> Hmmmm. It appears that this has been fixed.
<Rich_Morin_> Thanks for the help!
<havenwood> Rich_Morin_: Ah, yeah - I was looking at the fixed version.
<havenwood> "Returns a copy of str with all occurrences of pattern substituted for the second argument."
qolq has quit [Quit: qolq]
gnufied has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
Rootsudo has quit [Ping timeout: 245 seconds]
dr3w_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.2]
desperek has quit [Ping timeout: 246 seconds]
desperek has joined #ruby
lomex has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
desperek has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
unreal has quit [Remote host closed the connection]
knight33 has joined #ruby
gnufied__ has joined #ruby
rgr has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> havenwood, I'm getting this traceback: https://gist.github.com/LeamHall/893c5115d6a94eeeaf94949acc0c7ec8
<leitz> After moving things to lib/ftl_chargen
<phatcat> havenwood: what could it be?
nicesignal has quit [Quit: WeeChat 1.9.1]
nicesignal has joined #ruby
ShekharReddy has joined #ruby
nicesignal has quit [Client Quit]
nicesignal has joined #ruby
VladGh has quit [Ping timeout: 268 seconds]
kotepillar_ has quit [Quit: kotepillar_]
<leitz> Ah, havenwood, figured that bit out. The call was in a library. Cleaning them up now.
brandoncc has joined #ruby
<havenwood> phatcat: Have you tried turning it off and back on again?
<phatcat> havenwood: yeah
<havenwood> phatcat: i'd say ask in #docker
<havenwood> phatcat: betcha there's some series of docker-compose commands ;-)
tristanp has joined #ruby
<leitz> and the code. Looks like a namespace issue but the coffee is wearing off. https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character.rb
<leitz> If the require is there, what am I missing?
tristanp has quit [Ping timeout: 272 seconds]
GodFather has joined #ruby
<havenwood> leitz: By convention you shouldn't require 'ftl_chargen' here, since this file is itself required by ftl_chargen.rb.
<leitz> havenwood, that's what I thought, but you see where thinking get me...
<havenwood> leitz: You should put the Character class under the flt_chargen namespace.
<havenwood> leitz: For starters, what's ftl?
<havenwood> Does that stand for something?
<leitz> "Free Trade League", the prefix and "group" I used to identify code.
<havenwood> leitz: So are you calling this base class or module FTLChargen, then?
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> leitz: I don't like to use acronyms in gem names, since it's often unclear whether to use caps beyond the first letter.
<havenwood> leitz: Is your base module FTLChargen or FtlChargen?
<leitz> Yeah, but there are dozens of "Chargen" things out there.
<havenwood> leitz: There's no "chargen" gem.
<havenwood> leitz: I'll assume FTLChargen then, since it's an initialism.
<leitz> But there's several chargens in differnet languages. Some of them mine. :)
<leitz> BTW, I don't disagree. Just learning.
<havenwood> leitz: So it should be FTLChargen::Character not plain old Character
nicesignal has quit [Quit: WeeChat 1.9.1]
<havenwood> leitz: so the FTLChargen::Character class lives in lib/ftl_chargen/character.rb
<havenwood> leitz: And is required in lib/ftl_chargen.rb with: require 'ftl_chargen/character'
<leitz> havenwood, where does the overall module FTLChargen get defined?
nicesignal has joined #ruby
<havenwood> leitz: in lib/ftl_chargen.rb
<havenwood> leitz: lib/ftl_chargen.rb is what gets required when you: require 'ftl_chargen'
<havenwood> leitz: lib is in LOAD_PATH
<havenwood> leitz: in ftl_chargen.rb you do the requires for the stuff in lib/
<havenwood> leitz: and define the FTLChargen module
<leitz> havenwood, so the "require" statements go in the module definition? Or before it?
<havenwood> leitz: which is the only namespace at top level your gem should use
<havenwood> leitz: everything should be FTLChargen::SOMETHING_HERE
<havenwood> leitz: before it
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicesignal has quit [Client Quit]
Guest58115 has joined #ruby
<havenwood> leitz: nice, this looks right for the requires: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen.rb
nicesignal has joined #ruby
knight33 has joined #ruby
<havenwood> leitz: then: module FTLChargen; end
<havenwood> leitz: and then the ftl_chargen/career should match nicely with FTLChargen::Career, etc
<havenwood> with the require name always mirroring the namespace
<leitz> havenwood, specify the full namespace?
* havenwood asks the mirror which is the fastest benchmark of them all...
<havenwood> leitz: so career, character, dice, etc are all defined inside the FTLChargen module
<havenwood> leitz: that way every gem can have its own Dice without stomping on each other
* leitz notes it works better if you use the right case for module...
<havenwood> leitz: that way Havenwood::Dice won't conflict with FTLChargen::Dice
<havenwood> leitz: It's hygienic to have your gem only have classes and modules under its namespace, in your case FTLChargen
Guest58115 has quit [Ping timeout: 240 seconds]
<leitz> Err...there are lots of data files as well.
<havenwood> leitz: files are fine - it's Ruby namespaces where you want everything under FTLChargen
<havenwood> leitz: when gems are used together, the classes and modules all get mixed in together. if you define a class someone already has defined you stomp on it.
* leitz is working on his next question.
<havenwood> leitz: so we don't go stomping on each other's code, we make sure to keep everything namespaced
<havenwood> so you can have a FTLChargen::Time class and not be redefining stdlib's Time, for example
rgr has quit [Quit: rgr]
mitescugd has quit [Quit: C-x C-c]
<leitz> havenwood, I agree with namespacing. Understanding it is a bit different. New error, let me post the result since I haven't figured it out yet.
<leitz> Also, feel free to point in the "general" direction if I should be able to figure it out.
rgr has joined #ruby
mitescugd has joined #ruby
<leitz> Is that the right syntax for calling the module?
<leitz> Sorry, line #2 in the code
rgr_ has joined #ruby
rgr_ has quit [Remote host closed the connection]
rgr_ has joined #ruby
rgr has quit [Ping timeout: 252 seconds]
rgr_ has quit [Remote host closed the connection]
<havenwood> leitz: yes, FTLChargen::CharacterTools
<havenwood> leitz: so this needs to be also inside FTLChargen module: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L6
<havenwood> leitz: updated the gist ^
<havenwood> leitz: Inside your gem, you can omit the FTLChargen prefix, because you'll be inside that namespace
<havenwood> leitz: but it'd also work to: include FTLChargen::CharacterTools
<leitz> havenwood, with just the include CharacterTools I'm getting uninitialized constant FTLChargen::Character::CharacterTools (NameError)
<havenwood> leitz: oh, right - sorry - you're in Character
<leitz> uninitialized constant FTLChargen::Character::CharacterTools (NameError)
<havenwood> leitz: so: include FTLChargen::CharacterTools
<leitz> Sorry, old cut and paste.
<havenwood> leitz: updated gist
<havenwood> leitz: yeah, you're right
<havenwood> leitz: other than indentation, that looks right!
<leitz> uninitialized constant FTLChargen::CharacterTools
<havenwood> leitz: module FTLChargen; module CharacterTools;
<leitz> Ah, so CharacterTools needs to have "...
<havenwood> leitz: which you can alternatively write as module FTLChargen::CharacterTools
<leitz> Yeah, what you just said. :) Gimme a sec.
duderonomy has joined #ruby
<havenwood> leitz: this is unrelated, but you should remove :gdp_trade_code_modifier's attr_reader since you define that method: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/planet.rb#L5
<leitz> havenwood, agreed. I like my tests to run clean.
<havenwood> leitz: one easy way to clean up a bunch of little things at once is to run: rubocop -a
<leitz> Eh...I like the idea of rubocop but wind up excluding a bunch of the things.
<leitz> module CharacterTools should not require files in the FTLChargen module, correct?
<havenwood> i don't understand what you're asking
<havenwood> leitz: it sure looks cleaner to me after running rubocop -a! :-P
<havenwood> I don't like Rails' Hash spacing convention though.
<leitz> And I hate vim is now messing up tabs. Ugh!
<havenwood> leitz: run rubocop! :-P
<havenwood> leitz: Do requires at the top of the file.
<havenwood> leitz: Typically, you'd not need to require back and forth here, since all this code can be required in ftl_chargen.rb
<havenwood> leitz: wherever you require it, it'll be relative to lib/
<havenwood> leitz: so: require 'ftl_chargen/dice'
<leitz> It all is requrired there. I'll fix that in a sec. This https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character.rb#L1-L4
<havenwood> leitz: Which should be FTLChargen::Dice in lib/ftl_charge/dice.rb
<leitz> Still gives : uninitialized constant FTLChargen::CharacterTools (NameError)
<leitz> Would the dice issue be causing the NameError?
<havenwood> leitz: it need to: require 'ftl_chargen/character_tools'
<havenwood> leitz: lib/ dir is in LOAD_PATH
<havenwood> so you require relative to it
xfbs has quit [Quit: afk]
<leitz> Okay, made it a step forward. Now to deal with the dice, etc.
duderonomy has quit [Ping timeout: 240 seconds]
jackrandom has quit [Quit: ZNC - https://znc.in]
psmolen has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
* leitz is working another bug...
joelroa has joined #ruby
jackrandom has joined #ruby
Fusl has quit [Remote host closed the connection]
<leitz> Something is picking up the old LOAD_PATH, not the new one. Odd.
Fusl has joined #ruby
GodFather_ has joined #ruby
psmolen has joined #ruby
brandoncc has joined #ruby
jamesaxl has joined #ruby
psmolen has quit [Ping timeout: 252 seconds]
thy0 has quit [Quit: TTFN]
phatcat has quit []
thy0 has joined #ruby
idiocrash has joined #ruby
psmolen has joined #ruby
orbyt_ has joined #ruby
<leitz> Fix the old LOAD_PATH, it was the gemspec file. Now looking at why name.rb can't open the sqlite db.
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> Found the root cause, working on it.
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
MoritaShinobu has quit [Quit: Leaving]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
joelroa has quit [Ping timeout: 272 seconds]
bak1an has joined #ruby
InfinityFye has joined #ruby
knight33 has joined #ruby
tdy has joined #ruby
tristanp has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 252 seconds]
<leitz> havenwood, do the careers like ftl_chargen/careers/citizen.rb need to be in the FTLChargen module as well?
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> chargen uses const_get to set the career name, and putting the career in the FTLChargen module breaks that.
<leitz> Leaving it out seems to make it unable to find the methods in character_tools. undefined method `array_from_file' for FTLChargen::CharacterTools:Module (NoMethodError)
jdawgaz has joined #ruby
<leitz> Ah, "module_function". Not sure I get why a mixin has to specifically export modules.
<havenwood> leitz: yes, ftl_chargen/careers/citizen should correspond to FTLChargen::Careers::Citizen
<havenwood> leitz: I use module_function often. It serves the dual purpose of making functions directly callable on your module and it makes included functions private to the including class.
<leitz> Ah, so if I used it as a mixin I'd not need to module_function it.
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> leitz: You'd not need to, but if you don't it'll expose its functions publicly as methods on your class.
<havenwood> leitz: Basically, do you want to just use them internally? Or also expose the methods to call on your class from the outside?
DTZUZO has joined #ruby
<havenwood> leitz: It's usually preferable to not expose methods when you include, so module_function is often nice.
<leitz> havenwood, while the refactoring your showing me how to do is the right thing, I'm feeling a little stress at everything I've blown up. :)
<havenwood> leitz: yeah, it's hard to change namespaces dramatically - but it's very worth following convention
<leitz> In the end, the methods are shared around. Haven't firmed up if they are only called from the module or mixed in a log.
<havenwood> leitz: it's easier to do from the get-go
<leitz> havenwood, yup. I like most conventions and have seen this one. Haven't really understood it will enough to implement.
<leitz> And this is some of my most complex code to date.
joelroa has joined #ruby
<leitz> havenwood, even before the refactoring. :)
blandflakes has joined #ruby
jdawgaz has joined #ruby
<havenwood> leitz: Call functions with . instead of :: so: FTLChargen::CharacterTools.array_from_file
<havenwood> leitz: Instead of: FTLChargen::CharacterTools::array_from_file
<havenwood> leitz: consistent two-space soft tabs would make this a lot easier to read! :)
<havenwood> ?tabs
<ruby[bot]> Ruby community standards recommend using 2 spaces as indentation (see https://github.com/bbatsov/ruby-style-guide#spaces-indentation and https://ukupat.github.io/tabs-or-spaces/).
<leitz> No kidding! I had it set that way and then moved machines. Now vim puts the entire thing in 5 millions spaces per breath.
<leitz> Still haven't run rubocop on it. :)
<havenwood> leitz: :set expandtab
<havenwood> leitz: :set tabstop=2
<havenwood> leitz: :retab
<leitz> Have the first two in my .vimrc. Didn't seem to help. Gimme a sec and I'll try it in the file.
herbmillerjr has joined #ruby
<havenwood> leitz: oh, and: :set shiftwidth=2
<havenwood> :set tabstop=2 shiftwidth=2 expandtab
<havenwood> :retab
<havenwood> leitz: SO has a fancy: autocmd Filetype ruby setlocal ts=2 sw=2 expandtab
<leitz> Okay, just fixed character_tools.
<havenwood> :set softtabstop=2
<havenwood> I think rubocop would fix a bunch of spacing, hrm
<havenwood> leitz: if you want all the functions to be module_function, you can just put `module_function` once at the top of the module.
<havenwood> leitz: you can also do it inline when defining the method: module_function def meth
<leitz> havenwood, well...than makes it easy...
<leitz> Holy Moses! IT WORKED!
<havenwood> leitz: yeah, i usually do: module Blarg; module_function; def..
<leitz> Once, anyway...
<leitz> Now to clean up the other careers.
<havenwood> just one module_function at the top
<havenwood> leitz: let me know when/if you'd like any refactoring ideas
lomex has joined #ruby
<leitz> Yeah, one specific one. What's the convention on a data directory? I'm using: $DATA_PATH = File.expand_path("../../../data", __FILE__)
<havenwood> it might be worth getting rubocop rules you like hammered out
<leitz> Which does not seem best.
<havenwood> leitz: we really try to avoid using global variables $
<havenwood> leitz: You can just remove the $
<havenwood> leitz: then it'll be a constant
<leitz> Understood. In the project there's lib, and data/. The latter has the database and text files that get used.
<havenwood> leitz: rubocop should give you the correct suggestions for that, actually
<havenwood> leitz: I would write it:
<havenwood> DATA_PATH = File.expand_path '../data', __dir__
<havenwood> leitz: For subtle and not-so-subtle reasons it's much nicer than:
<havenwood> $DATA_PATH = File.expand_path("../../../data", __FILE__)
<leitz> Will do. The module_function seems to have issues though. Poking at it.
<havenwood> Yeah, rubocop would help with a bunch of this it looks like. Just the autofixes, even if you want to ignore the rest.
<havenwood> leitz: rubocop -a
<havenwood> leitz: to just run the lints, not style: rubocop -la
<leitz> I put module_function at the top and now it things social_status is a private method.
<havenwood> leitz: then parallel to make it fast!
<havenwood> leitz: rubocop -Pal
<havenwood> oh, you can't combine -a and -P
<havenwood> that's right
<leitz> havenwood, old computer, old keyboard monkey. Nothing moves fast here...
<leitz> private method `social_status' called for #<FTLChargen::Character:0x000055c6acec3f10> (NoMethodError)
<havenwood> leitz: ftw, in lib/ run: rubocop -la
<havenwood> leitz: that's because of the module_function
<havenwood> leitz: it makes included functions private
<havenwood> leitz: so you'd have to expose it on your class
<leitz> I thought it made everything public? Ah...
<havenwood> leitz: module_function makes functions available to call directly on the module as module functions, and it *also* makes included functions private
<leitz> Dang bipolar methods...
<apeiros_> there is a point to do it that way.
apeiros_ is now known as apeiros
<leitz> If rubocop breaks stuff right after I almost got it working I'm going to whine. Loudly...
* havenwood promises it'll be peachy
<apeiros> if you can call the method on the module itself directly, it *can't* have any ties to any instance. so there's absolutely no point in calling it on an instance.
knight33 has joined #ruby
<leitz> Hmm...only 3 offences.
<havenwood> ^
<havenwood> leitz: now remove the -l :-P
<havenwood> leitz: rubocop -a
<leitz> apeiros, I was hoping to find a way to not have to put "module_function" under everything since they are all to be exportable.
knight33 has quit [Client Quit]
<havenwood> leitz: what apeiros is saying is an important insight
<leitz> havenwood, okay, a lot more stuff changed.
<havenwood> leitz: haha - yeah, the non-lints do a lot
InfinityFye has quit [Ping timeout: 252 seconds]
<leitz> havenwood, not sure I get what apeiros is saying. In this case, character_tools is a mixin for character, and other classes. The hope was that an object of class Character could use the methods without having to do module_function or FTLChargen::CharacterTools.social_status.
<havenwood> leitz: character.upp[stat] = (character.upp[stat] + level).clamp(2, 15)
<apeiros> leitz: module_function exists to be able to call it as just `social_status` (when mixed in), or as `FTLChargen::CharacterTools.social_status` (when not mixed in)
<apeiros> it however does *not* exist to allow you to call it on `some_object_which_mixes_it_in.social_status`
<apeiros> because the social_status method obviously has no relation to some_object_which_mixes_it_in.
dviola has joined #ruby
<havenwood> leitz: one of the reasons to use the String literal `''` for new Strings instead of String.new is speed: https://gist.github.com/havenwood/bc858d4e948aeb4cdaa1daa8daea29af
<havenwood> leitz: It's better to use '', {}, and [] for empty Strings, Hashes and Arrays.
<leitz> apeiros, what does exist to be used as my_object.social_status? That's a needed functionality.
<havenwood> leitz: Calling ::new is the slow way, and should be reserved for non-simple cases.
<apeiros> eh, IMO the much more important reason is that String.new is utterly pointless.
<apeiros> String.new("hello, I'm a string literal anyway!!!")
<leitz> havenwood, using full names like String.new makes it visually easy to find and grep.
<apeiros> that's what you got syntax highlighting for
<havenwood> leitz: it's easy to find: ''
<havenwood> also, why are you searching for empty strings? :-P
<leitz> It's not as easy to see '' or "".
<apeiros> leitz: does social_status? make any use of anything in my_object?
<havenwood> leitz: it's a good habit to use the fast, idiomatic way
<havenwood> leitz: it's twice as fast
joelroa has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> leitz: you can always make a module_function included function public, but typically you'd just not use module_function if that's your intended behavior
<havenwood> leitz: i'd question _why_ you want functions exposed on a class.
<apeiros> leitz: if you can't see '' or "" easily, change your editor. you can make it blinking in red to make it really visible. really, that's what we've got syntax highlighting for.
<leitz> apeiros, social_status gives a name to the characters status, based on the stat. That name is used to choose a career.
govg has joined #ruby
<havenwood> leitz: this is an example of making a module_function explicitly public, but again - that's pretty odd: https://gist.github.com/havenwood/32dd791c5bb51080f340f016cfc0eee8
herbmillerjr has quit [Quit: Konversation terminated!]
<apeiros> leitz: that was not my question
<apeiros> leitz: does social_status make any use of anything in my_object?
<leitz> apeiros, yes, it uses the upp.
<apeiros> leitz: how can it be a module_function then?
<havenwood> leitz: does anything on the instance of Character possibly effect the return value of the social_status function?
<havenwood> leitz: if it does, it should be defined on Character, and not in a module
<apeiros> you're having something wrong here. either it can't be a module_function, or it makes no sense to call it on my_object from the outside.
<apeiros> one of the two is wrong.
<havenwood> leitz: module functions are for functions, which mean the return the same value for the same input, every time they're called - the class changing can't possibly change their return value, since they're functions not methods
<apeiros> anyway, I'll leave that in the capable hands of havenwood.
<apeiros> I like to call them pseudo functions (or pretend functions). but yes, the point is that they try to be functions.
<apeiros> (things which do not need access to self, neither to @ivars nor to instance methods on self)
<apeiros> while often deterministically (same input = same output, as havenwood said), that's not necessarily a requirement. see Kernel.rand.
<leitz> apeiros, havenwood here's the logic. When _creating_ a character, a social "class" is chosen based on a digit in the UPP. This is only used when class Character mixes in module Character_Tools for the purpose of modifying the character. For CSV or Text presentation most if not all of Character_Tools are not used; the character is already created.
herbmillerjr has joined #ruby
<havenwood> apeiros: i was thinking the same thing - as we say, "friend, you speak my mind"
<apeiros> leitz: sorry, I'm leaving atm, better discuss this with havenwood :)
<leitz> thanks apeiros!
<apeiros> yw, good luck and success on your chargen work!
<leitz> Character_Tools is specifically a set of methods to get mixed in to Character during creation. Character_Tools is also expected to be mixed in with other stuff but I only have so many brain cells. The real reason was to keep Character clean.
<havenwood> leitz: should be CharacterTools, no _
<havenwood> leitz: mind pushing your latest character_tools.rb - I'm curious to take a look.
<leitz> havenwood, probably. I started this a few years ago when I knew even less.
<havenwood> looks like it's right in the code
<leitz> Must have gotten one right by accident...
<leitz> Pushed
<leitz> class Character could almost be an ostruct, but I want to learn OOP.
<havenwood> leitz: looks good up to line 12
<havenwood> leitz: Don't ever define your own globals, no $$s.
<havenwood> leitz: the #dice method looks good
<leitz> Yup. Actually, somewhere else it's DATA_PATH with no $.
<havenwood> leitz: I'd put NOBILITY with DATA_PATH, above the methods.
<havenwood> leitz: I like you froze the outer Hash. The inner ones aren't frozen.
<leitz> Ah, I thought it recursed in.
<havenwood> leitz: rubocop would add the frozen string literal magic commentl which is great for freezing all the strings
<havenwood> leitz: nope
graphene has quit [Remote host closed the connection]
<havenwood> leitz: you could use Forwardable for these, but that said it hardly matters: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L26-L36
<leitz> havenwood, I'll go make changes as you comment. Won't change it under you though.
graphene has joined #ruby
<havenwood> leitz: so: upp.each_slice(7).flat_map { ...
graphene has quit [Remote host closed the connection]
<havenwood> .join
<leitz> havenwood, haven't really understood map yet.
graphene has joined #ruby
<havenwood> leitz: ah, it's the default you're going for
herbmillerjr has quit [Read error: Connection reset by peer]
psmolen has quit [Ping timeout: 240 seconds]
<havenwood> leitz: One option is: %i[str dex end int edu soc].map { |attribute| [attribute, roll_2 || 0] }.to_h
<havenwood> leitz: Then extract constant: ATTRIBUTES = %i[str dex end int edu soc]
<leitz> havenwood, lines 49-58 are my "style" in that I get confused about where things stand. So I do small step by small step so I don't get lost.
<havenwood> ATTRIBUTES.map { |attribute| [attribute, roll_2 || 0] }.to_h
<leitz> The default isn't really used in that hash, just me being overly verbose.
<havenwood> leitz: instead of `.to_i(16)` you can use just `.hex` here: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L63-L68
<havenwood> >> '42'.hex
<ruby[bot]> havenwood: # => 66 (https://eval.in/1055516)
<leitz> Not sure when '.hex' came around, the original code was written to work under Ruby 1.8.7. :)
<havenwood> leitz: no reason to assign the `new_hair` variable here, since it's the return value in either case: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L88-L99
<havenwood> leitz: also, in modern Ruby, you can drop the begin and just go straight to rescue
<havenwood> leitz: same comments apply to the next method
<havenwood> leitz: Usually we use constants when the thing doesn't change: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L115
<havenwood> leitz: I can see how you'd maybe make that a method for uniformity, but still extract the string to a constant
<havenwood> SPECIES = 'humanity'
<havenwood> def generate_species; SPECIES; end
<havenwood> leitz: that way you're not creating a bunch of new strings
psmolen has joined #ruby
<havenwood> leitz: if you're not going to use frozen string literal magic comment, manually freeze constant strings
<leitz> Ah, the expansion to be written has other species. Brain hadn't figured out that part yet, but the 'humaniti' is used in the database calls.
<havenwood> leitz: you can omit assigning the status local variable here as well, it doesn't actually do anything - the case statement will return correctly from teh method: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L118-L125
<havenwood> (Assuming @upp is definitely set.)
<havenwood> all methods return
<havenwood> it's a no-op here
<havenwood> leitz: map is very worth learning
herbmillerjr has joined #ruby
<havenwood> leitz: i don't think you should raise ArgumentError here: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L172
knight33 has joined #ruby
<havenwood> leitz: using File.open with a block will automatically close the file when the block closes. That's a nice way to use File.open: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L186
* leitz notes that map refers to enumerable.collect on page 454 of Programming Ruby. :)
rlawrence has joined #ruby
<havenwood> leitz: you can omit the begin/end and just straight rescue here, and no need for the local variable assignment: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L221-L228
<havenwood> leitz: options.instance_of?(Hash) is a nice way to say this: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L233
<havenwood> leitz: And: options['character'].careers.any? instead of the double negation
<havenwood> leitz: no need to assign the local variables here either: https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen/character_tools.rb#L273-L274
<havenwood> leitz: I've got to run to brunch, but I'd be happy to give more suggestions on this code if you want more.
<havenwood> After brunch!
* havenwood orders chunky bacon
rlawrence has quit [Remote host closed the connection]
psmolen has quit [Ping timeout: 240 seconds]
<leitz> havenwood, enjoy brunch! I'll make some changes and notes.
dviola has quit [Quit: WeeChat 2.2]
psmolen has joined #ruby
desperek has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> havenwood, after brunch, please suggest how to reference the new file structure in the tests, if I don't finish up going over your notes before hand. https://github.com/makhidkarun/ftl_chargen/blob/master/test/tc_character_tools.rb
tristanp has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ruby
Guest58115 has joined #ruby
Guest58115 has quit [Ping timeout: 252 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
* leitz takes a break.
wojnar has quit [Remote host closed the connection]
wojnar has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
graphene has quit [Remote host closed the connection]
Dbugger has quit [Remote host closed the connection]
graphene has joined #ruby
DTZUZO has quit [Ping timeout: 272 seconds]
Freshnuts has joined #ruby
graphene has quit [Read error: Connection reset by peer]
* leitz notes he's been at this for 9 or so of the last 10 hours and will probably zonk out shortly.
graphene has joined #ruby
<leitz> havenwood, I commented where things were updated. Reload character tools. I'll get back to this tomorrow.
<leitz> And thanks!
psmolen has quit [Ping timeout: 250 seconds]
psmolen has joined #ruby
akem has quit [Remote host closed the connection]
akem__ has joined #ruby
SeepingN has joined #ruby
jdawgaz has joined #ruby
Guest58115 has joined #ruby
dviola has joined #ruby
leitz has quit [Quit: Leaving]
ur5us has joined #ruby
tristanp has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
Guest58115 has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 272 seconds]
thy0 has quit [Remote host closed the connection]
lomex has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
thy0 has joined #ruby
reber has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO_ has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thy0 has quit [Ping timeout: 246 seconds]
thy0 has joined #ruby
minimal_life has joined #ruby
jdawgaz has joined #ruby
bak1an has joined #ruby
doubledup has quit [Quit: Leaving]
minimal_life has quit [Quit: I am functioning within established parameters.]
tdy has quit [Ping timeout: 244 seconds]
tdy has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 246 seconds]
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndreYuhai has quit [Ping timeout: 252 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheBloke has quit [Read error: Connection reset by peer]
akem__ is now known as akem
TheBloke has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
clemens3 has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
desperek has quit [Quit: xoxo]
brandoncc has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
Freshnuts has quit [Quit: Leaving]
n13z has quit [Ping timeout: 240 seconds]
Turnikov has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
n13z has joined #ruby
thy0 has quit [Quit: TTFN]
thy0 has joined #ruby
thy0 has quit [Client Quit]
thy0 has joined #ruby
RiPuk has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
phrost has joined #ruby
<phrost> hi hello
DTZUZO_ has quit [Ping timeout: 244 seconds]
patr0clus has joined #ruby
thy0 has quit [Quit: TTFN]
<apeiros> hi phrost
thy0 has joined #ruby
<phrost> hello apeiros, could you assist me with some ruby? i have a script i am using inside metasploit, and i am stuck with something
<apeiros> I don't help with metasploit by principle. there's a metasploit channel afaik, and you can also just ask in the channel generally (as in: without targetting me)
<phrost> i am automating some simple tasks, however when a command shell opens i can not interact with it because the previous command my script ran is still not finished running
jdawgaz has joined #ruby
<phrost> hmm
patr0clus has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.2]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
_whitelogger has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
phrost has left #ruby ["resolved"]
patr0clus has joined #ruby