havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: 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!
ramfjord has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
skryking has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
skryking has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
s2013 has joined #ruby
s2013 has quit [Client Quit]
s2013 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
bvdw has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sylario has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skryking has quit [Quit: WeeChat 2.4]
budonyc has joined #ruby
AJA4350 has joined #ruby
greengriminal has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
s2013 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
regent has quit [Ping timeout: 246 seconds]
henninb has joined #ruby
henninb has quit [Client Quit]
jenrzzz has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 244 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby
s2013 has joined #ruby
_falsebay_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_falsebay_ has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
nahra has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
hays has quit [Remote host closed the connection]
hays has joined #ruby
greengriminal has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
orbyt_ has joined #ruby
budonyc has quit [Quit: Leaving]
tdy has joined #ruby
jmcgnh has quit [Remote host closed the connection]
fphilipe has joined #ruby
suukim has joined #ruby
jmcgnh has joined #ruby
agent_white has quit [Quit: brb]
fphilipe has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Quit: brb]
ramfjord has joined #ruby
agent_white has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
RiPuk has quit [Ping timeout: 258 seconds]
RiPuk has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
orbyt_ has joined #ruby
AJA4350 has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
sameerynho has joined #ruby
mcspud is now known as i_am_dw
sauvin has joined #ruby
conta has joined #ruby
i_am_dw is now known as mcspud
howdoi has joined #ruby
dan64- has joined #ruby
dan64 has quit [Ping timeout: 272 seconds]
fphilipe has joined #ruby
DaRock has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 244 seconds]
oetjenj has joined #ruby
glosoli has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
Inline has quit [Quit: Leaving]
oetjenj has quit [Client Quit]
thebananaking has quit [Quit: Connection closed for inactivity]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
conta has joined #ruby
oetjenj has quit [Client Quit]
za1b1tsu has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
absolutejam2 has joined #ruby
ferhaty has joined #ruby
bitwinery has joined #ruby
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ruby
hiroaki has quit [Ping timeout: 245 seconds]
schne1der has joined #ruby
thebananaking has joined #ruby
agent_white has quit [Quit: later]
gix- has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
AJA4350 has quit [Ping timeout: 258 seconds]
glosoli has quit [Ping timeout: 248 seconds]
ALVAN has joined #ruby
<ALVAN> hi ... how can i specify numbers followed by numeric range like string(1, 4, 6, [23:32]) ?
lxsameer has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
<leftylink> interesting. well we can start by saying a range is written `a..b`
<leftylink> but I'm not sure what should be done with the other numbers. perhaps they should all be in an array? then one may be able to splat the range in as an element of the array, or simply construct the arrays piecemeal and concatenate them like any other arrays
deepreds1 has quit [Ping timeout: 248 seconds]
<ALVAN> leftylink: yes but it can be written as a:b as well right or no ?
<ALVAN> i want to do this http://dpaste.com/32ZYM7F
<leftylink> if it can be written as a:b then that will be teaching me something new. note that `a: b` would usually be a key/value pair in a ruby hash
<ALVAN> leftylink: ok sorry then, i was mistaken
jenrzzz has joined #ruby
AJA4350 has joined #ruby
<leftylink> well I don't want to discourage others from taking an opportunity to teach me something new
<ALVAN> i dont want to teach you something new :) ... i thought yaml was similar with ruby
absolutejam2 has quit [Ping timeout: 246 seconds]
<ALVAN> ansible uses yaml with jinja2 ... and i can specify a range like host[2:9] will match : host2, host3 ....host8 and host9
<ALVAN> from here https://yaml.org/YAML_for_ruby.html#ranges i thought something is similar with ruby, but guess is not
TomyWork has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
aupadhye has joined #ruby
mniip has joined #ruby
nowhereman has quit [Ping timeout: 248 seconds]
Fire-Dragon-DoL has quit [Quit: Quit]
schne1der has joined #ruby
mikecmpbll has joined #ruby
kapilp has joined #ruby
Fire-Dragon-DoL has joined #ruby
ALVAN has left #ruby [#ruby]
ellcs has joined #ruby
xco has quit [Quit: xco]
deepreds1 has joined #ruby
cd has quit [Quit: cd]
AJA4350 has quit [Ping timeout: 244 seconds]
alem0lars has joined #ruby
RiPuk has quit [Ping timeout: 258 seconds]
conta has quit [Ping timeout: 246 seconds]
ellcs has quit [Ping timeout: 264 seconds]
tdy has quit [Ping timeout: 272 seconds]
hhzza has joined #ruby
conta has joined #ruby
bitwinery has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
DaRock has joined #ruby
x86sk has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 246 seconds]
thebananaking has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
AJA4350 has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
jenrzzz has joined #ruby
rippa has joined #ruby
conta has quit [Ping timeout: 258 seconds]
queip has quit [Ping timeout: 272 seconds]
fphilipe has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
queip has joined #ruby
jenrzzz has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
ellcs has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
jefffrails35 has joined #ruby
conta has joined #ruby
chalkmonster has joined #ruby
alem0lars has quit [Ping timeout: 258 seconds]
conta has quit [Ping timeout: 244 seconds]
ferhaty has quit [Quit: ferhaty]
jenrzzz has quit [Ping timeout: 258 seconds]
conta has joined #ruby
sylario has joined #ruby
impermanence has quit [Ping timeout: 268 seconds]
involans has joined #ruby
tdy has joined #ruby
DaRock has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
conta has joined #ruby
hhzza has quit [Quit: Connection closed for inactivity]
queip has quit [Ping timeout: 258 seconds]
<dionysus69> ok so the guy squating on a gem name decided to reply and afterwards ignore me, should I complain to the rubygems.org administration about it next?
<dionysus69> I am talking about minecart gem name, been sitting there for 6 years
ramfjord has joined #ruby
queip has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
<voker57> his right, choose a different name or don't distribute thru rubygems
clemens3 has joined #ruby
jenrzzz has joined #ruby
<dionysus69> hmm, the law doesn't prohibit lots of things, doesn't mean one can be doing it without reperecussions
jenrzzz has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby
involans has quit [Quit: involans]
<leah2> is there something like slice_before/slice_after that removes the matching element too?
Tuor has joined #ruby
ur5us has quit [Remote host closed the connection]
marmotini_ has joined #ruby
arup_r has joined #ruby
marmotini_ has quit [Remote host closed the connection]
phroa_ has joined #ruby
phroa has quit [Ping timeout: 248 seconds]
mozzarella has quit [Read error: Connection reset by peer]
mozzarella has joined #ruby
MindSpark has joined #ruby
gwilkes has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
MoritaShinobu has joined #ruby
RiPuk has joined #ruby
arup_r has quit [Remote host closed the connection]
stryek has joined #ruby
DaRock has joined #ruby
MoritaShinobu has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
conta has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
prestorium has joined #ruby
conta has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
arup_r has quit [Remote host closed the connection]
DaRock has quit [Remote host closed the connection]
arup_r has joined #ruby
sphenxes has joined #ruby
aupadhye has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
s2013 has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
lucasb has joined #ruby
xco has joined #ruby
iffraff has joined #ruby
<xco> hi all. what’s the difference and which is better? Please look at lines 2, 6 https://gist.github.com/xcobar/cf218c4cd27aebc01b221cb49dec0175
<adam12> xco: Line 6 is probably slower. See jeremyevans RubyKaigi talk for more on that.
<xco> adam12: thanks
<adam12> xco: **something is something.to_hash, ultimately.
<adam12> xco: So with the hash allocation comes the usual caveats. The talk is worthwhile to watch since Jeremy talks about it.
sphenxes has quit [Quit: Leaving]
<xco> yeah checking it out, this one right? https://www.youtube.com/watch?v=RuGZCcEL2F8
<adam12> xco: That's the one.
<xco> awesome!
<iffraff> Hi, this is probably more of a docker questions, but when I do ADD [mycode] into my ruby image it's adding the code as nobody/unknown. does anybody know why?
<adam12> iffraff: Presumably it's copying UID/GID from the files themselves but that's just a guess.
<iffraff> so, if the container, doesn't have the uid/gid that the files on the host belong to it will use nobody/unknown?
<adam12> iffraff: More like, if your UID on the host is 1001 and your username is iffraff, there's a /etc/passwd entry for iffraff:1001 or something. Inside the guest, there might be an /etc/passwd entry for nobody:1001
<adam12> iffraff: I'm just speculating because I'm not a Docker user. I use FreeBSD.
tf2ftw has joined #ruby
kapilp has quit [Quit: Connection closed for inactivity]
conta has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
arup_r has quit []
AJA4350 has quit [Remote host closed the connection]
deepreds1 has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
sgen has joined #ruby
matheusmoreira has quit [Ping timeout: 272 seconds]
matheusmoreira has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
orbyt_ has joined #ruby
involans has joined #ruby
Tuor has quit [Quit: Konversation terminated!]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
tf2ftw has quit [Ping timeout: 245 seconds]
sgen has quit [Ping timeout: 276 seconds]
tf2ftw has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
iffraff has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
greengriminal has joined #ruby
andikr has quit [Remote host closed the connection]
clemens3 has quit [Quit: WeeChat 1.6]
tdy has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tf2ftw1 has joined #ruby
tf2ftw has quit [Read error: Connection reset by peer]
tf2ftw1 is now known as tf2ftw
tf2ftw has quit [Ping timeout: 268 seconds]
Xeago_ has joined #ruby
impermanence has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
Xeago_ is now known as Xeago
ascarter has joined #ruby
gnufied has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
SeepingN has joined #ruby
ferhaty has joined #ruby
ramfjord has joined #ruby
ferhaty has quit [Quit: ferhaty]
ua has quit [Excess Flood]
ramfjord_ has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
yalue has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
ramfjord_ has quit [Ping timeout: 268 seconds]
Cthulu201 has joined #ruby
phroa_ is now known as phroa
ua has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
prestorium has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
TomyWork has joined #ruby
jenrzzz has joined #ruby
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 258 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
involans_ has joined #ruby
involans has quit [Ping timeout: 272 seconds]
jefffrails35 has quit [Quit: Leaving]
jenrzzz has joined #ruby
involans_ has quit [Client Quit]
queip has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
MindSpark has quit [Ping timeout: 246 seconds]
MindSpark has joined #ruby
queip has joined #ruby
duderonomy has joined #ruby
r29v has joined #ruby
suukim has quit [Quit: Konversation terminated!]
kurko_ has joined #ruby
klaas has quit [Remote host closed the connection]
klaas has joined #ruby
ramfjord has joined #ruby
jenrzzz has joined #ruby
involans has joined #ruby
s2013 has joined #ruby
eddof13 has joined #ruby
gix has joined #ruby
MindSpark has quit [Ping timeout: 245 seconds]
MindSpark has joined #ruby
dellavg has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
<quazimodo> hi all
yalue has quit [Quit: Leaving]
<adam12> quazimodo: o/
<quazimodo> blanking on a name; what would you call a locality + postal code ?
<quazimodo> it's not suburb, suburb is the non rural term for locality, in australia anyway
<quazimodo> can't think of a good name, they dude who implemented it called these 'PostCode' but thats incorrect
<quazimodo> I think Location will have Address & Coordinates so it's not Location
<SeepingN> zipcode?
<quazimodo> SeepingN: postal code is the same as a zipcode
<quazimodo> i'm teetering on going domain specific & calling them ServiceArea
nst^ has quit []
tsrt^ has joined #ruby
<SeepingN> hmm
s2013 has joined #ruby
ascarter has joined #ruby
<mozzarella> quazimodo: what's a locality?
jenrzzz has quit [Ping timeout: 248 seconds]
lxsameer has quit [Ping timeout: 258 seconds]
eddof13 has quit [Quit: eddof13]
greengriminal has quit [Quit: This computer has gone to sleep]
schne1der has joined #ruby
eddof13 has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
dostoyevsky has quit [Client Quit]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dostoyevsky has joined #ruby
agent_white has joined #ruby
gix has quit [Quit: Client exiting]
s2013 has joined #ruby
englishm has quit [Excess Flood]
s2013 has quit [Client Quit]
<quazimodo> mozzarella: usually a suburb
<quazimodo> in a city you'd conside it to be a suburb
<quazimodo> the issue is that a single suburb can have several postcodes, and a postcode several suburbs
<quazimodo> weird mapping
englishm has joined #ruby
impermanence has quit [Remote host closed the connection]
nahra has joined #ruby
s2013 has joined #ruby
sauvin has quit [Ping timeout: 244 seconds]
s2013 has quit [Client Quit]
greengriminal has joined #ruby
<xco> adam12: that talk you recommended is great! thanks for sharing :)
s2013 has joined #ruby
<adam12> xco: yw!
wildtrees has joined #ruby
Fusl has quit [Max SendQ exceeded]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd has joined #ruby
Fusl has joined #ruby
galeido has quit [Remote host closed the connection]
Fusl has quit [Max SendQ exceeded]
banister` has joined #ruby
Fusl has joined #ruby
jenrzzz has joined #ruby
banister` has quit [Client Quit]
eddof13 has quit [Quit: eddof13]
involans has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
code_zombie has joined #ruby
cd has quit [Quit: cd]
absolutejam2 has joined #ruby
involans has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
Exuma has joined #ruby
involans has quit [Quit: involans]
involans has joined #ruby
reber has joined #ruby
eddof13 has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch has joined #ruby
amrx has joined #ruby
reber has quit [Remote host closed the connection]
involans has quit [Quit: involans]
bitwinery has joined #ruby
involans has joined #ruby
gix has joined #ruby
involans has quit [Client Quit]
mynameisdebian has joined #ruby
involans has joined #ruby
x86sk has joined #ruby
<mynameisdebian> How can I change all newlines (\n) to double newlines (\n\n), without converting double-newlines to quadruple newlines (\n\n => \n\n\n\n) ?
involans has quit [Client Quit]
involans has joined #ruby
<wildtrees> mynameisdebian, I don't know ruby very well, but split on newlines then join using double newlines might work
<wildtrees> usually the lines function will eat multiple newlines in a row
<mynameisdebian> wildtrees, I could just do the gsub and then do another gsub to convert the quadruple-newlines back to double, but I know I can do it with a regex somehow
<havenwood> mynameisdebian: You can use a positive lookbehind and lookahead.
<mynameisdebian> havenwood, do you have a link?
<havenwood> &>> "\n.\n\n.\n\n\n.\n.\n".gsub(/(?<=\A|[^\n])\n(?=[^\n]|\z)/, "\n\n")
<rubydoc> # => "\n\n.\n\n.\n\n\n.\n\n.\n\n" (https://carc.in/#/r/7ake)
<havenwood> mynameisdebian: I don't have a link, but i'd suggest ctrl-f in the Regexp docs.
<havenwood> mynameisdebian: Trying to think of a simpler Regexp...
involans has quit [Read error: Connection reset by peer]
involans has joined #ruby
absolutejam2 has quit [Ping timeout: 248 seconds]
<baweaver> havenwood: what is that monstrosity of a regex?
<pabs> seems like negating the assertions simlifies it:
<pabs> >> "a\n\nb\nc\nd".gsub(/(?<!\n)\n(?!\n)/m, "\n\n")
<pabs> => "a\n\nb\n\nc\n\nd"
<wildtrees> &>> "hello\nworld\n\nnow".split("\n+").join("\n\n")
<rubydoc> # => "hello\nworld\n\nnow" (https://carc.in/#/r/7akf)
<ruby[bot]> pabs: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<baweaver> Oh hey, rubybot is alive
<baweaver> Well, "alive"
<wildtrees> >> "hello\nworld\n\nnow".split("\n+").join("\n\n")
<ruby[bot]> wildtrees: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> And... back dead
involans_ has joined #ruby
<wildtrees> mynameisdebian, something like I just attempted was working nicely in irb for me
involans has quit [Ping timeout: 272 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<havenwood> wildtrees: Did you mean?: split(/\n+/).join("\n\n")
<mynameisdebian> sorry was afk for sec
<wildtrees> havenwood, yes you are right! haven't used ruby in awhile :)
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
fphilipe has quit [Ping timeout: 245 seconds]
<mynameisdebian> havenwood thanks
<mynameisdebian> wildtrees thanks
<mynameisdebian> also anyone else
jenrzzz has joined #ruby
s2013 has joined #ruby
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
<wildtrees> mynameisdebian, you are welcome :)
MindSpark has quit [Ping timeout: 245 seconds]
prestorium has joined #ruby
asthasr_ has joined #ruby
<asthasr_> Is there a minimum API for Hash in terms of which a "Hash-like object" can be implemented?
xco has quit [Quit: xco]
<asthasr_> or, failing that, a hook I can implement on a class that delegates to Hash that will intercept all value accesses? [], .each, .each_with_index, etc
<miah> include Enumerable
dellavg has quit [Ping timeout: 245 seconds]
<adam12> asthasr_: What are you trying to do in broader terms?
<havenwood> mynameisdebian: Here's a requisite non-Regexp solution >.>:
<havenwood> &>> "\n.\n\n.\n\n\n.\n.\n".chars.filter_map.with_index.reduce('') { |acc, (char, index)| "#{acc}#{char}#{char if char == "\n" && (index.zero? || s[index.pred] != "\n") && s[index.succ] != "\n"}" }
<rubydoc> stderr: -e:2:in `<main>': undefined method `filter_map' for #<Array:0x000055ce7666b648> (NoMethodError) (https://carc.in/#/r/7akg)
agent_white has quit [Remote host closed the connection]
involans_ has quit [Ping timeout: 245 seconds]
<havenwood> Ah, need a newer Ruby for #filter_map - but I shouldn't have that in there anyways.
<havenwood> Fixed:
<havenwood> &>> "\n.\n\n.\n\n\n.\n.\n".each_char.with_index.reduce('') { |acc, (char, index)| "#{acc}#{char}#{char if char == "\n" && (index.zero? || s[index.pred] != "\n") && s[index.succ] != "\n"}" }
<rubydoc> stderr: -e:2:in `block in <main>': undefined local variable or method `s' for main:Object (NameError) (https://carc.in/#/r/7akh)
absolutejam2 has joined #ruby
<havenwood> okay, multitask fail
<havenwood> &>> "\n.\n\n.\n\n\n.\n.\n".then { |s| s.each_char.with_index.reduce('') { |acc, (char, index)| "#{acc}#{char}#{char if char == "\n" && (index.zero? || s[index.pred] != "\n") && s[index.succ] != "\n"}" } }
<rubydoc> # => "\n\n.\n\n.\n\n\n.\n\n.\n\n" (https://carc.in/#/r/7aki)
<havenwood> mynameisdebian: ^
<asthasr_> adam12: I need to implement the ability for chef data bags to access external sources. As such I want, for example, !DynamoDB as a value to dereference a table and key. That means I need to intercept all access to data bag items. These are implemented as simple hashes at present
<asthasr_> adam12: as such, without changing all of the existing code, I can only assume every hash method is used
<adam12> asthasr_: Do you control the hash being passed in/around?
cd has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
prestorium has quit [Quit: prestorium]
jcalla has quit [Quit: Leaving]
jmosco has quit [Quit: WeeChat 0.4.2]
oetjenj has joined #ruby
sameerynho has joined #ruby
hutch has quit [Ping timeout: 245 seconds]
hutch has joined #ruby
eddof13 has quit [Quit: eddof13]
mynameisdebian has quit [Read error: Connection reset by peer]
hutch has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
Jonopoly has joined #ruby
Dr_MDMA_MD has joined #ruby
nowhereman has joined #ruby
iffraff has joined #ruby
iffraff has quit [Client Quit]
greengriminal has quit [Quit: This computer has gone to sleep]
Dr_MDMA_MD has quit []
Fernando-Basso has joined #ruby
eddof13 has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
tdy has quit [Ping timeout: 248 seconds]
teardown has quit [Ping timeout: 258 seconds]
schne1der has quit [Ping timeout: 272 seconds]
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
thebananaking has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
tolerablyjake has joined #ruby
Nicmavr has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
ramfjord has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
sameerynho has quit [Ping timeout: 248 seconds]
Scriptonaut has joined #ruby
amrx has quit [Remote host closed the connection]
<Scriptonaut> does anyone know of a ruby debugger that will work with ruby 1.8.7?
lucasb has quit [Quit: Connection closed for inactivity]
<Scriptonaut> I am working on this horrible/ancient project, and it's almost impossible to debug stuff without being able to go step by step like I usually do with pry
<Scriptonaut> it's an old ruby project, that had a bunch of old rails 2.0 libraries ripped out and injected into it
absolutejam2 has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
fphilipe has joined #ruby
<Eiam> Scriptonaut: take an old branch? https://github.com/pry/pry/issues/1091
<adam12> Scriptonaut: Worst case scenario, I think you can `require "debug"`. I feel like it goes back to Ruby 1.8. It has limitations tho (ie. you can only require the file once so can't enter/exit)
jenrzzz has joined #ruby
<Scriptonaut> adam12: cool, I'll check it out
<adam12> Scriptonaut: You require it where you'd use binding.pry, fyi.
<Scriptonaut> oh, weird
<adam12> Scriptonaut: .. yeah. it's odd. I think it goes back to 2001 or so.
<Scriptonaut> Eiam: I'll try that
fphilipe has quit [Ping timeout: 248 seconds]
<Scriptonaut> hmm, it installed just fine, but require 'pry' gives me "MissingSourceFile: no such file to load -- pry"
ramfjord has joined #ruby
quazimodo has quit [Ping timeout: 245 seconds]
[rg] has joined #ruby
quazimodo has joined #ruby
eddof13 has quit [Quit: eddof13]
impermanence has joined #ruby
duderonomy has quit [Ping timeout: 245 seconds]
[rg] has quit [Quit: [rg]]
edk is now known as e
wildtrees has quit [Quit: Leaving]