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 ?
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]
<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]
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.
<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
<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
<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.