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!
MuffinPimp has joined #ruby
skryking has quit [Ping timeout: 272 seconds]
skryking has joined #ruby
giraffe has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
tpendragon has joined #ruby
agent_white has quit [Quit: later]
s2013 has joined #ruby
bambanx has joined #ruby
DaRock has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
reber has quit [Remote host closed the connection]
involans has joined #ruby
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
dbugger has quit [Quit: Leaving]
tf2ftw has joined #ruby
englishm has quit [Excess Flood]
tf2ftw has quit [Client Quit]
englishm has joined #ruby
greengriminal has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Thenekofell has quit [Ping timeout: 246 seconds]
tpanarch1st has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
ivlioioilvi has joined #ruby
s2013 has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
Thenekofell has joined #ruby
Fernando-Basso has quit [Read error: Connection reset by peer]
tdy has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
fphilipe_ has joined #ruby
involans has quit [Quit: involans]
Exuma has joined #ruby
chalkmonster has joined #ruby
Thenekofell has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
fphilipe_ has quit [Ping timeout: 250 seconds]
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
ivlioioilvi has quit [Read error: Connection reset by peer]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivlioioilvi has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
chalkmonster has quit [Quit: WeeChat 2.5]
chalkmonster has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
Thenekofell has joined #ruby
AJA4350 has quit [Remote host closed the connection]
Goon6 has joined #ruby
tdy has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aphprentice__ has joined #ruby
fphilipe_ has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
chalkmonster has joined #ruby
_whitelogger has joined #ruby
iNs_ has joined #ruby
iNs has quit [Quit: bubye]
pygmypuppy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 250 seconds]
akem-lnvo has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has joined #ruby
AlHafoudh has joined #ruby
ivlioioilvi has quit [Remote host closed the connection]
ivlioioilvi has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
ivlioioilvi has quit [Read error: Connection reset by peer]
ivlioioilvi has joined #ruby
ivlioioilvi has quit [Max SendQ exceeded]
Technodrome has joined #ruby
ramfjord has joined #ruby
jarred has joined #ruby
Technodrome has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 258 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
Nicmavr has joined #ruby
ramfjord has joined #ruby
bambanx has quit [Quit: Leaving]
Thenekofell has quit [Ping timeout: 272 seconds]
moei has joined #ruby
duderonomy has joined #ruby
cammellos has joined #ruby
Technodrome has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
matheusmoreira has quit [Ping timeout: 245 seconds]
sk_c has joined #ruby
matheusmoreira has joined #ruby
ramfjord has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
za1b1tsu has joined #ruby
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
absolutejam has joined #ruby
matheusmoreira has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
matheusmoreira has joined #ruby
ramfjord has joined #ruby
AlHafoudh has quit [Ping timeout: 258 seconds]
tdy has quit [Ping timeout: 244 seconds]
Thenekofell has joined #ruby
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
staticx has quit [Ping timeout: 244 seconds]
exmortus has joined #ruby
sauvin has joined #ruby
akem-lnvo has joined #ruby
staticx has joined #ruby
exmortus has quit [Ping timeout: 244 seconds]
conta has joined #ruby
moei has quit [Ping timeout: 248 seconds]
ivlioioilvi has joined #ruby
ivlioioilvi has quit [Max SendQ exceeded]
Thenekofell has quit [Ping timeout: 246 seconds]
Mrgoose8 has quit [Ping timeout: 248 seconds]
gix- has quit [Ping timeout: 258 seconds]
Exuma has joined #ruby
Mrgoose8 has joined #ruby
conta1 has joined #ruby
akem_lnvo has joined #ruby
ivlioioilvi has joined #ruby
fphilipe has joined #ruby
matheusmoreira has quit [Ping timeout: 248 seconds]
matheusmoreira has joined #ruby
akem-lnvo has quit [Ping timeout: 268 seconds]
jarred has quit [Quit: Connection closed for inactivity]
ivlioioilvi has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 264 seconds]
Tuor has joined #ruby
rippa has joined #ruby
Goon6 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
schne1der has joined #ruby
ivlioioilvi has joined #ruby
fphilipe has quit [Ping timeout: 264 seconds]
absolutejam has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
alem0lars has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
fphilipe has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matheusmoreira has quit [Ping timeout: 245 seconds]
aupadhye has joined #ruby
matheusmoreira has joined #ruby
absolutejam has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
fphilipe has quit [Quit: WeeChat 2.4]
schne1der has quit [Ping timeout: 268 seconds]
queip has quit [Ping timeout: 272 seconds]
GodFather has joined #ruby
TomyWork has joined #ruby
Thenekofell has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
GodFather has joined #ruby
queip has joined #ruby
Technodrome has joined #ruby
Technodrome has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 248 seconds]
moei has joined #ruby
lord4163 has quit [Excess Flood]
ramfjord has joined #ruby
lord4163 has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
schne1der has joined #ruby
cammellos has quit [Quit: WeeChat 2.5]
matheusmoreira has quit [Ping timeout: 244 seconds]
Technodrome has joined #ruby
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
fphilipe has joined #ruby
lxsameer has joined #ruby
ferhaty has joined #ruby
Irfan has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
Irfan has left #ruby [#ruby]
sylario has joined #ruby
queip has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
ramfjord has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
queip has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
Thenekofell has quit [Ping timeout: 252 seconds]
suukim has joined #ruby
absolutejam has quit [Ping timeout: 248 seconds]
absolutejam has joined #ruby
nerdius has joined #ruby
bitwinery has quit [Quit: Leaving]
absolutejam1 has quit [Quit: WeeChat 2.5]
ramfjord has joined #ruby
<skarlso> Hey guys
<skarlso> does anyone know what this sentence in File.link means?
<skarlso> Here... saying Not available on all platforms.
<skarlso> because it looks like this method is not working the same way on linux and OSX
<skarlso> since osx is probably using APSF
<skarlso> But I have no clue as to what to use instead of it?
Thenekofell has joined #ruby
ellcs has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
conta has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
al2o3-cr has joined #ruby
absolutejam has quit [Ping timeout: 248 seconds]
fphilipe has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 244 seconds]
absolutejam has joined #ruby
queip has quit [Ping timeout: 246 seconds]
paraxial2 has quit [Quit: The Lounge - https://thelounge.chat]
fphilipe has joined #ruby
xco has joined #ruby
queip has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
Technodrome has quit [Remote host closed the connection]
conta has joined #ruby
Technodrome has joined #ruby
leitz has joined #ruby
<leitz> Okay, newbie question. My plan is to build a gem with a couple of programs that can be run from anywhere on the filesystem. For example, put in /usr/local/bin. How do I ensure the path to the data files needed are always set for the programs?
suukim has quit [Ping timeout: 272 seconds]
fphilipe has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
fphilipe has joined #ruby
<skarlso> you use ruby's environment instead of a binary under /usr/local/bin to find binaries ,or you create a shim which loads your installed gem and executes some code from there
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
absolutejam1 has joined #ruby
suukim has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
skarlso has quit [Quit: The Lounge - https://thelounge.chat]
fphilipe has joined #ruby
conta1 has quit [Quit: conta1]
tpanarch1st has joined #ruby
skarlso has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
conta1 has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
<leitz> Okay, seems like I have some reading and figuring out to do. Thanks!
fphilipe has joined #ruby
<skarlso> np
Thenekofell has quit [Ping timeout: 252 seconds]
Cork has quit [Ping timeout: 245 seconds]
<Tuor> Hi, I loaded a YAML file into an object called 'lxc'. It contains a list containers and a lot of information fields about the containers. Know I would like to look for keys in the object. LXC is an arary, but is shurely containing other arrays, hashes, strings. I would like to print the array entry which contains a hash with a key name matching a regex. I tried to google recursiv lookup but it seems, it's more complicated then I thought.
Cork has joined #ruby
<Tuor> I tried to list all names like this, but I get only one name: `names = Array.new; lxc.each { |item| names =+ item['container']['name'] }`
<Tuor> ah with map instead of each it works. :) I have to check documentation about map and each...
<skarlso> Array#dig or Hash#dig
<skarlso> which is available since 2.3
nerdius has quit [Quit: Konversation terminated!]
<Tuor> I'll read your link. :) thx.
<Tuor> I found now a way (with try and error :) )
<Tuor> imgs = Hash.new; lxc.map { |item| names[item['container']['name']]=item['container']['config']['image.description'] }
<Tuor> but that's not very readable in my opinion^^
<Tuor> i tried dig and it's longer but more readable now: `imgs = Hash.new; lxc.map { |item| name=item.dig('container', 'name'); img=item.dig('container', 'config', 'image.description'); imgs[name]=img }`
cellmaker has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
<Tuor> thx.
cd has quit [Quit: cd]
queip has quit [Ping timeout: 258 seconds]
Selvaraj has joined #ruby
ZAJDAN has joined #ruby
<ZAJDAN> in ruby 2.3.0 I use 'system('mkdir', '-p', File.join("#{path}/SAP"), File.join("#{path}/CAD"), File.join("#{path}/NEST"), File.join("#{path}/ORDER") ) unless File.exists?(@commission.commission_num)' in Ruby 2.3.3 is problem..returns: TypeError (no implicit conversion of Fixnum into String)
queip has joined #ruby
<ZAJDAN> I would like to use something like: system('mkdir -p test/{SAP,CAD,NEST,ORDER}') .but it does not create the subfolders
jenrzzz has quit [Ping timeout: 244 seconds]
xco has quit [Quit: xco]
jenrzzz has joined #ruby
xco has joined #ruby
aupadhye is now known as aupadhye|brb
schne1der has quit [Ping timeout: 272 seconds]
AJA4350 has joined #ruby
xco has quit [Quit: xco]
cellmaker has quit [Quit: cellmaker]
yalue has joined #ruby
xco has joined #ruby
Tuor has quit [Remote host closed the connection]
aupadhye|brb is now known as aupadhye
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
<phaul> Any reason to fork sub-processes/shells for this? I would just use the Dir class
<phaul> &ri Dir.mkdir, ZAJDAN
<ZAJDAN> thnx
<phaul> you are welcome
tdy has joined #ruby
galaxie has quit [Remote host closed the connection]
galaxie has joined #ruby
<ZAJDAN> in my case the probelm was here: https://dpaste.de/ZXcX
absolutejam1 has quit [Quit: WeeChat 2.5]
reber has joined #ruby
<phaul> if you are pasting path segments together into a string like "#{path}/CAD" there isn't much point in calling File.join on it.. It would just give back the same string
Selvaraj has quit [Remote host closed the connection]
<phaul> the point would be to pass the segments to join as separate arguments, so it can use the system specific path separator
Swyper has joined #ruby
involans has joined #ruby
queip has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
aphprentice__ has quit [Quit: Connection closed for inactivity]
queip has joined #ruby
mkaito_ has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
<ZAJDAN> phaul: thank You
RiPuk has quit [Read error: Connection reset by peer]
tf2ftw has joined #ruby
RiPuk has joined #ruby
Swyper has joined #ruby
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 248 seconds]
jmcgnh_ is now known as jmcgnh
jenrzzz has quit [Ping timeout: 248 seconds]
Rapture has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
ElFerna has joined #ruby
Swyper has joined #ruby
ElFerna has quit [Client Quit]
alem0lars_ has joined #ruby
conta has quit [Ping timeout: 258 seconds]
conta1 is now known as conta
alem0lars has quit [Ping timeout: 258 seconds]
schne1der has joined #ruby
tdy has quit [Ping timeout: 248 seconds]
alem0lars__ has joined #ruby
BrianWGray has joined #ruby
alem0lars_ has quit [Ping timeout: 245 seconds]
drnerdius has joined #ruby
<Bish> how do people regulary encode fields in csv that have multiple values
<Bish> like an array
<Bish> in this case it's string it could be comma separated itself, but that's od
<ryouba> Bish: so use quotation
<Bish> well, okay
<havenwood> Bish: Switch to JSON? :P
<Bish> well, as you can expect csv wasn't my choice, and json is not making me happy in any way either
<Bish> well, in some ways, but not all
<Bish> also how do you encode much data with json?
<Bish> one big array? one document per line?
Azure has quit [Ping timeout: 244 seconds]
<havenwood> Bish: Folk do it both ways. In WireShark, for example, the .ek format is a JSON doc per line. That can be reasonable for *huge* run-on formats.
<Bish> i've done that in private a lot of time where nobody was watching
<Bish> never expected it to be used somewhere as "format"
<havenwood> haha
involans has quit [Quit: involans]
absolutejam has quit [Read error: Connection reset by peer]
involans has joined #ruby
absolutejam has joined #ruby
aupadhye has joined #ruby
Azure has joined #ruby
lucasb has joined #ruby
unixcat has joined #ruby
Swyper has quit [Remote host closed the connection]
involans has quit [Ping timeout: 248 seconds]
Swyper has joined #ruby
involans has joined #ruby
dbugger has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
icholy has joined #ruby
<icholy> when using "xmlrpc/server" is there a way to return a different http status code than 200?
<Bish> eww xml
* Bish would rather use csv
* Bish maybe not for rpc
<icholy> Bish: it's legacy code
<Bish> yeah you said xml already :p
DTZUZO has quit [Ping timeout: 258 seconds]
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
ferhaty has quit [Quit: ferhaty]
alem0lars__ has quit [Remote host closed the connection]
Technodrome has joined #ruby
AlHafoudh has joined #ruby
ramfjord has joined #ruby
AlHafoudh has quit [Remote host closed the connection]
AlHafoudh has joined #ruby
akem_lnvo has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DaRock has quit [Ping timeout: 246 seconds]
absolutejam has quit [Ping timeout: 272 seconds]
AlHafoudh has quit [Quit: ZNC - http://znc.in]
Esa_ has joined #ruby
drnerdius has quit [Ping timeout: 245 seconds]
ellcs has quit [Ping timeout: 244 seconds]
paraxial2 has joined #ruby
ivlioioilvi has quit [Remote host closed the connection]
ivlioioilvi has joined #ruby
ivlioioilvi has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ivlioioilvi has joined #ruby
ivlioioilvi has quit [Max SendQ exceeded]
Technodrome has joined #ruby
<icholy> havenwood: so no?
tf2ftw has quit [Quit: This computer has gone to sleep]
aupadhye has quit [Quit: Leaving]
icholy has left #ruby [#ruby]
involans has quit [Quit: involans]
tf2ftw has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
matheusmoreira has joined #ruby
openstruct has joined #ruby
<openstruct> I've been reading through all the "don't use Ruby timeout" blog posts and I'm not sure how I see that it's unsafe if I'm explicitly rescuing Timeout::Error every time I use it?
<openstruct> Is it still problematic because it can cause a client from a connection pool to be corrupted?
jenrzzz has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 246 seconds]
involans has joined #ruby
duderonomy has joined #ruby
leeijaw has joined #ruby
leeijaw has left #ruby [#ruby]
xco has quit [Quit: xco]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
akem-lnvo has joined #ruby
DTZUZO has joined #ruby
duderonomy has joined #ruby
ramfjord has joined #ruby
hiroaki has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
absolutejam has joined #ruby
wald0 has joined #ruby
pygmypuppy has joined #ruby
absolutejam has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
conta has quit [Quit: conta]
conta2 has joined #ruby
RougeRR_ has joined #ruby
<RougeRR_> hey
conta2 is now known as conta
<RougeRR_> curious which of these is the better way
<RougeRR_> i far prefer the look of the 2nd one, but iterating over a 2 item array feels wrong
jenrzzz has quit [Ping timeout: 245 seconds]
absolutejam has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
involans has quit [Quit: involans]
DTZUZO has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
gix has joined #ruby
queip has quit [Ping timeout: 248 seconds]
fphilipe has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
orbyt_ has joined #ruby
ellcs has joined #ruby
fphilipe has quit [Ping timeout: 264 seconds]
queip has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
xco has joined #ruby
rafadc has joined #ruby
queip has quit [Ping timeout: 245 seconds]
xco has quit [Client Quit]
jenrzzz has joined #ruby
queip has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
sauvin has quit [Read error: Connection reset by peer]
RougeRR_ has quit [Quit: Leaving]
openstruct has quit [Quit: WeeChat 2.4]
fluxAeon has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has quit [Quit: Konversation terminated!]
jenrzzz has quit [Ping timeout: 244 seconds]
pygmypuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
absolutejam has quit [Ping timeout: 248 seconds]
alem0lars has joined #ruby
LtHummus has quit [Ping timeout: 268 seconds]
LtHummus has joined #ruby
deepredsky has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
absolutejam has joined #ruby
plujon has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Galopin has joined #ruby
Galopin has left #ruby [#ruby]
jackChronicle has joined #ruby
Azure has joined #ruby
jackChronicle has left #ruby [#ruby]
<plujon> I'm interested in embedding ruby in a C program. Where can I find good documentation for rb_* such as rb_load ?
ascarter has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<plujon> I'm looking for rb_eval or something similar, that would allow me to evaluate a script that is embedded in the executable as a plain old C string.
<plujon> Oh! I see rb_eval_string in ruby.h; I'll give that a try.
involans has joined #ruby
sameerynho has joined #ruby
fphilipe has joined #ruby
<plujon> It works! Now, to figure out how to compile the thing on Windows...
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
leitz has quit [Quit: Leaving]
deepredsky has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
conta2 has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
conta2 has quit [Ping timeout: 245 seconds]
tf2ftw has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
involans has quit [Remote host closed the connection]
involans has joined #ruby
mochiyoda has joined #ruby
Goon6 has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
d^sh has joined #ruby
jenrzzz has joined #ruby
Technodrome has joined #ruby
yalue has quit [Quit: Leaving]
conta has quit [Quit: conta]
involans has quit [Quit: involans]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
queip has quit [Ping timeout: 272 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
mochiyoda has left #ruby ["Konversation terminated!"]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
queip has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
Thenekofell has joined #ruby
codefriar has quit [Ping timeout: 246 seconds]
oncall-pokemon has joined #ruby
wald0 has quit [Quit: Lost terminal]
reber has quit [Read error: Connection reset by peer]
codefriar has joined #ruby
alem0lars has quit [Remote host closed the connection]
involans has joined #ruby
sameerynho has quit [Ping timeout: 268 seconds]
codefriar has quit [Remote host closed the connection]
codefriar has joined #ruby
crankharder has joined #ruby
ellcs has quit [Remote host closed the connection]
tf2ftw has quit [Quit: This computer has gone to sleep]
klaas has quit [Quit: ZNC 1.7.4 - https://znc.in]
ur5us has joined #ruby
Thenekofell has quit [Ping timeout: 276 seconds]
klaas has joined #ruby
gix has left #ruby [#ruby]
jenrzzz has joined #ruby
schne1der has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
Fernando-Basso has joined #ruby
bitwinery has joined #ruby
ramfjord has joined #ruby
ZummiG777 has joined #ruby
ZummiG777 has quit [Client Quit]
crankharder has quit [Ping timeout: 244 seconds]
fphilipe has joined #ruby
involans has quit [Read error: Connection reset by peer]
sameerynho has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
evdubs has quit [Quit: Leaving]
ledhed2222 has joined #ruby
evdubs has joined #ruby
<ledhed2222> i just wrote a lil script where i wanted to trap some signals. #til about Signal.trap as opposed to rescuing SignalException and re-raising. Ruby is the only lang I’ve ever worked with that exposes signals as exceptions in this way. I’m curious whether anyone has a rule-of-thumb for which approach to take when trapping signals?
<adam12> ledhed2222: Can't say I've ever seen SignalException rescued in the wild before...
hi has joined #ruby
<ledhed2222> yeah i haven’t seen any ruby code in the wild that traps signals in the first place. so you think that one should just use Signal.trap 100% of teh time?
hi has quit [Remote host closed the connection]
sgen has joined #ruby
sameerynho has quit [Ping timeout: 246 seconds]
<adam12> ledhed2222: I've only see Signal.trap used. I'm presuming there's a reason for it.
<ledhed2222> yeah that makes sense. it was always funky to me the way Ruby wraps sigs in exceptions. thanks dude!
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
Exuma has joined #ruby
involans has joined #ruby
involans has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
mochiyoda has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
ledhed2222 has quit [Quit: ledhed2222]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
jinie has joined #ruby
absolutejam has quit [Ping timeout: 258 seconds]
al2o3-cr has joined #ruby
brool has joined #ruby
noobineer has joined #ruby
jenrzzz has joined #ruby
crankharder has joined #ruby
AJA4350 has joined #ruby
AJA4351 has joined #ruby
skryking has quit [Quit: WeeChat 2.4]
AJA4350 has quit [Ping timeout: 268 seconds]
skryking has joined #ruby
gell5 has quit [Read error: Connection reset by peer]
skryking has quit [Client Quit]
fuzzface has joined #ruby
AJA4351 has quit [Ping timeout: 246 seconds]
<brool> in a sinatra modular app, can i access the app object's fields from a template?
<brool> or do i have to pass them into :locals somehow
AJA4350 has joined #ruby
skryking has joined #ruby
moei has quit [Quit: Leaving...]
<adam12> brool: Can you share some of your code? I'm not sure what an app object's fields are...
<brool> 1 sec
<adam12> brool: The template (view) is rendered in the scope of the request. If you assign an instance variable, that will be available as well (instead of using locals). Using locals is more explicit tho and can be nicer in teams to know what's available in a view.
queip has quit [Ping timeout: 245 seconds]
fuzzface has quit [Quit: Leaving]
AJA4350 has quit [Ping timeout: 244 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
queip has joined #ruby
<brool> ok i was putting my instance variable assignment in the wrong scope
<brool> i had it outside of any method
AJA4350 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Thenekofell has joined #ruby
leitz has joined #ruby
jenrzzz has joined #ruby
<leitz> I'm building a gem that runs a sinatra app. The program uses data files. How do I arrange the gem install location so the program can find the data files?
<leitz> Newbie question, I know. Happy to have a pointer to something to read.
Averna has joined #ruby
agent_white has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Averna has quit [Client Quit]
Thenekofell has quit [Ping timeout: 258 seconds]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
gell5 has joined #ruby
gell5 has quit [Client Quit]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]