mynameisdebian has quit [Remote host closed the connection]
r29v has joined #ruby
mynameisdebian has joined #ruby
white_lilies has joined #ruby
mniip has quit [Ping timeout: 615 seconds]
jonjitsu[m] has joined #ruby
intheclouddan[m] has joined #ruby
bastilian[m] has joined #ruby
sidntrivedi012[m has joined #ruby
ignujee[m] has joined #ruby
luna_x[m] has joined #ruby
TravisR[m]1 has joined #ruby
velu[m] has joined #ruby
Demos[m] has joined #ruby
Hexafox[m] has joined #ruby
Giphy[m] has joined #ruby
legion[m] has joined #ruby
haylon[m] has joined #ruby
KevinMGranger[m] has joined #ruby
Hanma[m] has joined #ruby
zachk has quit [Quit: Leaving]
xall has joined #ruby
xall has quit [Client Quit]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
salasrod_ has quit [Remote host closed the connection]
xall has joined #ruby
jrafanie has joined #ruby
bruce_lee has quit [Ping timeout: 256 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
za1b1tsu_ has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
iceskins[m] has joined #ruby
vermaneerajin[m] has joined #ruby
carsonbaker[m] has joined #ruby
bascht[m] has joined #ruby
zalipuha[m] has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu_ has quit [Ping timeout: 276 seconds]
scrptktty_ has quit [Quit: Connection closed for inactivity]
gnufied has quit [Quit: Leaving]
s2013 has joined #ruby
r29v has quit [Quit: r29v]
mynameisdebian has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kapil___ has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
k0mpa has joined #ruby
vonfry has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
Krebsgewehr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alfiemax has quit [Ping timeout: 260 seconds]
quarters has quit [Changing host]
quarters has joined #ruby
quarters has joined #ruby
<ineb>
iam currently working on a client api that talks to a rest api. iam currently thinking about the design. lets say there is a endpoint /foo?parameter. how to model it on the client side? i could go with def foo(parameter: "default") { ... }
<ineb>
OR make it dynamic by not defining all the endpoints manually. i could just use method_missing and some meta programming to make #foo available and translate it to a call to /foo
<ineb>
first approach ensures proper usage since only the proper parameter: can be used but the second one is more flexible to api changes
<ineb>
but would also allow malformed requests like foo(parameter: 1, wrong_parameter: 2)
<ineb>
it would be up to the user to use the api properly
c0ncealed2 has quit [Read error: Connection reset by peer]
c0ncealed2 has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
nicht has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
<ineb>
btw. while there are lots of frameworks to design and host a service with a rest api in ruby
<ineb>
are there any frameworks that focus on the client side?
<ineb>
swagger-api has it with swagger-codegen
<ineb>
but only for swagger apis.
<ineb>
iam currently working with a rest api that is sometimes restfull and sometimes ill defined
<ineb>
i cant change that though.
milanj has quit [Quit: This computer has gone to sleep]
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
herbmillerjr has joined #ruby
<baweaver>
ineb: who said Rails can't generate Swagger specs?
<baweaver>
Apipie does just that.
mynameisdebian has quit [Ping timeout: 276 seconds]
<ineb>
baweaver: ok, i havent looked deeply.
<ineb>
iam currently browsing the ghee gem which is a client for the github habe and goes with the dynamic approach
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
nikivi has joined #ruby
x0f has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
x0f has joined #ruby
tpendragon has quit [Ping timeout: 276 seconds]
graingert_ has joined #ruby
Krebsgewehr has quit [Ping timeout: 276 seconds]
graingert has quit [Ping timeout: 276 seconds]
jtperreault has quit [Ping timeout: 276 seconds]
graingert_ is now known as graingert
vondruch has joined #ruby
tvw has quit [Ping timeout: 276 seconds]
ghormoon_ has quit [Ping timeout: 276 seconds]
\void has quit [Ping timeout: 276 seconds]
TomyWork has joined #ruby
\void has joined #ruby
sepp2k has joined #ruby
ghormoon has joined #ruby
alfiemax has quit [Remote host closed the connection]
clemens3 has joined #ruby
nertzy has quit [Ping timeout: 268 seconds]
alex`` has joined #ruby
akhkharu has quit [Quit: all glory to hypnotoad]
alfiemax has joined #ruby
nowhere_man has joined #ruby
jtperreault has joined #ruby
reber__ has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
reber has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: vondruch]
brainslug has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
sylario has joined #ruby
cabotto has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
xall has joined #ruby
cabotto has quit [Client Quit]
mikecmpbll has joined #ruby
drale2k_ has joined #ruby
vondruch has joined #ruby
karapetyan has joined #ruby
guille-moe has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
amar has joined #ruby
jraavis has joined #ruby
motstgo_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
User458764 has joined #ruby
zlogan2003 has joined #ruby
motstgo has quit [Ping timeout: 260 seconds]
sysvalve has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 256 seconds]
jraavis has joined #ruby
apeiros_ is now known as apeiros
jmcgnh has quit [Ping timeout: 244 seconds]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jmcgnh has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
xall has joined #ruby
Guest81152 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
rikkipitt has joined #ruby
Nicmavr is now known as Guest76373
jraavis has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
amar has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
DoubleMalt has quit [Client Quit]
Freshnuts has joined #ruby
venmx has joined #ruby
venmx has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
Freshnuts has quit [Quit: Leaving]
xall has quit [Read error: Connection reset by peer]
tvw has joined #ruby
simmaniac has joined #ruby
za1b1tsu_ has quit [Ping timeout: 240 seconds]
sysvalve has quit [Ping timeout: 244 seconds]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
iceskins[m] has quit [Remote host closed the connection]
aviraldg[m] has quit [Read error: Connection reset by peer]
Demos[m] has quit [Read error: Connection reset by peer]
ignujee[m] has quit [Read error: Connection reset by peer]
sidntrivedi012[m has quit [Remote host closed the connection]
bastilian[m] has quit [Read error: Connection reset by peer]
zalipuha[m] has quit [Remote host closed the connection]
vermaneerajin[m] has quit [Read error: Connection reset by peer]
KevinMGranger[m] has quit [Read error: Connection reset by peer]
haylon[m] has quit [Read error: Connection reset by peer]
velu[m] has quit [Read error: Connection reset by peer]
legion[m] has quit [Remote host closed the connection]
carsonbaker[m] has quit [Remote host closed the connection]
luna_x[m] has quit [Read error: Connection reset by peer]
jonjitsu[m] has quit [Remote host closed the connection]
Giphy[m] has quit [Read error: Connection reset by peer]
bascht[m] has quit [Read error: Connection reset by peer]
Hexafox[m] has quit [Remote host closed the connection]
intheclouddan[m] has quit [Read error: Connection reset by peer]
Hanma[m] has quit [Read error: Connection reset by peer]
TravisR[m]1 has quit [Remote host closed the connection]
ghormoon has quit [Ping timeout: 261 seconds]
Flonk has quit [Ping timeout: 260 seconds]
saTchymoto has joined #ruby
shoogz has quit [Ping timeout: 240 seconds]
ghormoon has joined #ruby
shoogz has joined #ruby
Flonk has joined #ruby
tpendragon has joined #ruby
RougeR has quit [Ping timeout: 265 seconds]
simmaniac is now known as sysvalve
aviraldg[m] has joined #ruby
alem0lars has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Connection reset by peer]
jraavis has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
simmaniac has joined #ruby
Freshnuts has joined #ruby
weaksauce has quit [Ping timeout: 276 seconds]
amar has joined #ruby
Mike11 has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
xall has joined #ruby
jraavis has quit [Ping timeout: 256 seconds]
amar has quit [Ping timeout: 260 seconds]
deathwishdave has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ur5us has joined #ruby
conta has quit [Quit: conta]
Freshnuts has quit [Quit: Leaving]
milanj has quit [Quit: This computer has gone to sleep]
ur5us has quit [Remote host closed the connection]
nyuszika7h has left #ruby ["WeeChat 2.1"]
nowhere_man has joined #ruby
saTchymoto has quit [Ping timeout: 268 seconds]
bastilian[m] has joined #ruby
intheclouddan[m] has joined #ruby
jonjitsu[m] has joined #ruby
bascht[m] has joined #ruby
sidntrivedi012[m has joined #ruby
ignujee[m] has joined #ruby
luna_x[m] has joined #ruby
iceskins[m] has joined #ruby
Demos[m] has joined #ruby
Hexafox[m] has joined #ruby
velu[m] has joined #ruby
TravisR[m]1 has joined #ruby
Hanma[m] has joined #ruby
haylon[m] has joined #ruby
KevinMGranger[m] has joined #ruby
legion[m] has joined #ruby
Giphy[m] has joined #ruby
carsonbaker[m] has joined #ruby
zalipuha[m] has joined #ruby
vermaneerajin[m] has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saTchymoto has joined #ruby
karapetyan has joined #ruby
ur5us has joined #ruby
koichirose has joined #ruby
zlogan2003 has quit [Ping timeout: 240 seconds]
rikkipitt has quit [Quit: Leaving...]
NL3limin4t0r has joined #ruby
<NL3limin4t0r>
Hey. Is there an easy way to check if a class is an certain class or has an ancestor that is that class? For instances you have `#is_a?` but I'm looking for something that I can call upon the class itself. Let me provide an example:
ur5us has quit [Remote host closed the connection]
<NL3limin4t0r>
>> class Foo; end; class Bar < Foo; end; Bar.ancestors.select { |a| a.is_a?(Class) }.include?(Foo)
<stiang>
does anybody know if it’s possible to access the name of the .env.* file (like $0 in a shell script) from inside the env file itself (for example ".env.staging") to use in command substitution, when using dotenv?
<stiang>
so something like this: `LC_NAME="$(basename $0 | sed 's/.env.//')"`
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
koichirose has quit [Quit: koichirose]
nowhere_man has quit [Ping timeout: 256 seconds]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Remote host closed the connection]
nowhereman_ has quit [Ping timeout: 264 seconds]
deathwishdave has quit [Ping timeout: 256 seconds]
noobineer has joined #ruby
Venomen has quit [Read error: Connection reset by peer]
lubekpl has quit [Ping timeout: 256 seconds]
alex`` has quit [Ping timeout: 256 seconds]
koichirose has joined #ruby
xall has quit [Ping timeout: 260 seconds]
Mike11 has quit [Quit: Leaving.]
tuxillo has left #ruby [#ruby]
ur5us has quit [Remote host closed the connection]
noobineer has quit [Ping timeout: 265 seconds]
xall has joined #ruby
milanj has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
apparition47 has joined #ruby
xall_ has joined #ruby
xall has quit [Ping timeout: 268 seconds]
griffindy has joined #ruby
yohji has joined #ruby
AJA4350 has joined #ruby
schneider has joined #ruby
yosafbridge has quit [Quit: Leaving]
xall_ has quit [Ping timeout: 264 seconds]
lubekpl has joined #ruby
yosafbridge has joined #ruby
lubekpl has quit [Ping timeout: 276 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 264 seconds]
AJA4351 is now known as AJA4350
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
milanj has quit [Quit: This computer has gone to sleep]
Inline has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
anisha has quit [Ping timeout: 248 seconds]
xall_ has joined #ruby
lubekpl has joined #ruby
conta has joined #ruby
amar has joined #ruby
herbmillerjr has quit [Excess Flood]
conta has quit [Client Quit]
herbmillerjr has joined #ruby
GodFather has joined #ruby
<mensvaga>
If I wanted to make a class called "A::B::C" , what parameters should I pass to bundle?
<mensvaga>
bundle gem A::B::C creates a directory called "A::B::C" , not a path called A/B/C
<mensvaga>
bundle gem A/B/C creates A/B/C , but then puts all of the files UNDER THAT
<mensvaga>
I was expecting lib/A/B/C.rb , not /A/B/C/lib
amar has quit [Ping timeout: 256 seconds]
lubekpl has quit [Ping timeout: 276 seconds]
<tbuehlmann>
mensvaga: could be $ bundle gem a-b-c
<mensvaga>
Narp.
<mensvaga>
ah
<mensvaga>
waaaaaaaait
<mensvaga>
That surprisingly did something close to what I need
<mensvaga>
Why doesn't A::B::C do that?!
<mensvaga>
I mean, that's what it's actually going to be called
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
karapetyan has quit [Remote host closed the connection]
alfiemax has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
dviola has joined #ruby
karapetyan has joined #ruby
bmurt has joined #ruby
<mensvaga>
It didn't create a bin dir
<mensvaga>
I mean, that's easy to deal with, but interesting.
<mensvaga>
whoops
<mensvaga>
wrong directory
simmaniac is now known as sysvalve
alex`` has joined #ruby
jottr has joined #ruby
<TvL2386>
yeah `bundle gem first-second-third` will create the directories and modules
<TvL2386>
it's just the convention mensvaga
<TvL2386>
what you specify on the cli is the name of your gem
<TvL2386>
I'm using `ERB.new(my_template).result_with_hash(a_hash)`. But unfortunately I can't upgrade ruby on the systems to support this (systems run ruby 2.3.1). I'm trying to refactor but I'm having a hard time :)
<TvL2386>
I tried to do `ERB.new(my_template).result(a_hash.send(:binding))` which is very ugly but I was just curious if it would work, which it does not :)
lubekpl has joined #ruby
xall_ has quit [Quit: xall_]
shah^ has joined #ruby
augcesar has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
lubekpl has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
<TvL2386>
ok, well for starters, a Hash does not save its keys in local vars or methods and calling "send(:binding)" doesn't work. Should be "instance_eval { binding }"
<mensvaga>
So, inside my C.rb file, there's module A; module B; module C; end; end; end
<mensvaga>
If I wanted to make a class, should I just change it to a class?
<mensvaga>
Or, is there a flag to bundler that I need to pass to say I'm interested in writing a class?
jottr has quit [Quit: WeeChat 2.0.1]
soniya29 has joined #ruby
beefjoe has joined #ruby
milanj has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
<TvL2386>
mensvaga: that's not how I do it
karapetyan has quit [Remote host closed the connection]
<TvL2386>
How I understand it, is that the name of your gem is the namespace (module) of your code
<TvL2386>
'-' are seperators for modules
<TvL2386>
so `bundle gem a-b-c` creates a skeleton for your gem "a-b-c"
<TvL2386>
All your code goes into module A::B::C
<TvL2386>
so your first class, for example, will be called: A::B::C::First
<dalpo>
hi
<TvL2386>
you create the file first.rb in a/b/c/first.rb
<TvL2386>
hi
<mensvaga>
Ah. I believe I understand.
<mensvaga>
Thanks.
<TvL2386>
yw! :)
<TvL2386>
I'm currently working on a gem as well that has 3 subdirectories / modules
<TvL2386>
btw I've solved my problem with ERB.
alem0lars has joined #ruby
burzos has joined #ruby
bolamestra has joined #ruby
<burzos>
I have the number for an underlying file descriptor and I want to close it; what function can I use to do that?
<bolamestra>
opcoes of the cellphone
Dbugger has joined #ruby
<havenwood>
burzos: IO.for_fd(n).close
<burzos>
Perfect, thanks.
banisterfiend has joined #ruby
<burzos>
havenwood: That's going to create a new object then close it.
<burzos>
I don't want to invoke all of the destructors.
<burzos>
Just want to close the fd.
alex`` has quit [Ping timeout: 256 seconds]
<burzos>
Or maybe it's fine since it's just the IO stuff.
bolamestra has quit [Quit: -a- IRC for Android 2.1.39]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
deathwishdave has joined #ruby
alex`` has joined #ruby
lubekpl has joined #ruby
Puffball has quit [Remote host closed the connection]
alfiemax_ has joined #ruby
beefjoe has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 268 seconds]
quobo has joined #ruby
Rapture has joined #ruby
milanj has quit [Quit: This computer has gone to sleep]
Asher has quit [Ping timeout: 244 seconds]
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
alfiemax_ has quit [Remote host closed the connection]
jrafanie has joined #ruby
rippa has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
_aeris_ has quit [Ping timeout: 256 seconds]
simmaniac has joined #ruby
saTchymoto has quit []
sysvalve has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby
_aeris_ has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
simmaniac has quit [Quit: Leaving]
aupadhye has quit [Remote host closed the connection]
soniya29 has quit [Ping timeout: 245 seconds]
biberu has quit []
drale2k_ has joined #ruby
amar_ has joined #ruby
milanj has joined #ruby
karapetyan has joined #ruby
drale2k_ has quit [Ping timeout: 244 seconds]
konsolebox has joined #ruby
koichirose has quit [Quit: koichirose]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
discopatrick has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
amar_ has quit [Ping timeout: 268 seconds]
Asher has joined #ruby
postmodern has quit [Quit: Leaving]
Asher has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
soniya29 has joined #ruby
arekushi has joined #ruby
za1b1tsu_ has joined #ruby
amar_ has joined #ruby
amar_ has quit [Ping timeout: 256 seconds]
salasrod has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lomotov has joined #ruby
<lomotov>
PYTHON IS FINISHED & BANKRUPT!
<lomotov>
who ruby here? )
salasrod has quit [Remote host closed the connection]
zleap has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
RougeR has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
anisha has joined #ruby
karapetyan has joined #ruby
conta has joined #ruby
karapetyan has quit [Remote host closed the connection]
zleap has quit [Quit: WeeChat 2.1]
alem0lars has quit [Ping timeout: 276 seconds]
zleap has joined #ruby
zleap has joined #ruby
karapetyan has joined #ruby
alfiemax has joined #ruby
tvw has quit [Remote host closed the connection]
conta has quit [Client Quit]
User458764 has joined #ruby
conta has joined #ruby
Asher has quit [Ping timeout: 276 seconds]
mikhael_k33hl has joined #ruby
<mikhael_k33hl>
When using pry, how do you exit from pry as well as the ruby script you are debugging?
ellcs has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
lomotov has left #ruby ["Leaving"]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
motstgo_ has quit [Read error: Connection reset by peer]
motstgo has joined #ruby
<apeiros>
mikhael_k33hl: exit!
<apeiros>
also `kill -9 #$$`
<apeiros>
(including the backticks)
<mikhael_k33hl>
apeiros: thanks
<apeiros>
the latter is of course the nuclear option 😂
alem0lars has joined #ruby
<jtperreault>
Does rubygems look for a global gemrc file somewhere? Found some info googling but looks like /etc/gemrc is related to RVM specifically.
<apeiros>
~/.gemrc iirc
<apeiros>
not sure whether it also looks for a systemwide rc
<jtperreault>
I knew that one, but was hoping to have it system wide
<jtperreault>
ok, thanks
troys has joined #ruby
motstgo has quit [Ping timeout: 245 seconds]
mikhael_k33hl has quit [Quit: Page closed]
amar_ has joined #ruby
<apeiros>
jtperreault: ah, misunderstood your global as "global for the user" :)
<jtperreault>
checking the repo now, it looks like it does "... ~/.gemrc file for individual users and a gemrc in the SYSTEM CONFIGURATION DIRECTORY for all users."
amar_ has quit [Ping timeout: 276 seconds]
bmurt has joined #ruby
<jtperreault>
so, /etc/gemrc presumably for linux distros. though it does not appear to be working for me on Ubuntu.
mynameisdebian has quit [Remote host closed the connection]
<jtperreault>
found it, "/usr/local/etc"
<jtperreault>
thanks for letting me talk it out, sorry about the noise :D
Asher has joined #ruby
SeepingN has joined #ruby
za1b1tsu_ has quit [Ping timeout: 260 seconds]
nowhereman_ has joined #ruby
akaiiro has joined #ruby
AJA4350 has quit [Ping timeout: 260 seconds]
AJA4351 has joined #ruby
beowuff has joined #ruby
AJA4351 is now known as AJA4350
machinewar has joined #ruby
zlogan2003 has joined #ruby
<machinewar>
anyone very familiar with RSpec. I have a describe SomeNamespace::SomeClass do... the weird thing is that the class is not namespaced, but this spec does not break.....
conta has quit [Quit: conta]
cagomez has joined #ruby
agent_white has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
clemens3 has quit [Ping timeout: 240 seconds]
machinewar has quit []
SolarAquarion has quit [Write error: Connection reset by peer]
Klumben has quit [Quit: Bye for now]
gray_-_wolf has joined #ruby
<gray_-_wolf>
Hi all :) So I can capture SIGCHLD like Signal.trap("CLD") { puts "Child died" } , but how can I get pid of child that just died in the handle? Let's assume I want to do Signal.trap("CLD") { puts "Child with #{pid} died" }, how to set the `pid`?
mikecmpbll has quit [Quit: inabit. zz.]
amar_ has joined #ruby
joast has quit [Read error: Connection reset by peer]
milanj has quit [Quit: This computer has gone to sleep]
amar_ has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
tty has joined #ruby
burzos has quit [Ping timeout: 252 seconds]
noobineer has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
<konsolebox>
gray_-_wolf: you may need to check each child process in your list
Guest12924 has joined #ruby
jcarl43 has joined #ruby
biberu has joined #ruby
Eiam has joined #ruby
yohji has quit [Remote host closed the connection]
gregf_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
noobineer has quit [Ping timeout: 244 seconds]
Exuma has joined #ruby
adaedra has joined #ruby
<gray_-_wolf>
I know that in C I can use waitpid inside the handler for this, however that does work in ruby... so just iterating my whole list of children for !alive? is best way?
<adaedra>
Hello
<adaedra>
gray_-_wolf: You have Process.waitpid which should do the same as the C syscall
maryo_ has joined #ruby
<maryo_>
I have tried installing dashing (http://dashing.io/) but while starting the dashing I am getting an error -> https://dpaste.de/Fi9n Any help would be appreciated
User458764 has joined #ruby
<adaedra>
Did you see the link in the error?
joast has joined #ruby
samosaphile has joined #ruby
<maryo_>
adaedra, Yep I have added require "execjs" in Gemfile and did bundle exec but I got "bundler: exec needs a command to run
<maryo_>
"
<maryo_>
did bundler exec*
<adaedra>
That's not the solution at all
<maryo_>
adaedra, I have installed the gem also "gem install execjs"
<adaedra>
The error tells you it doesn't find anything to execute JS natively (runtime), and tells you to refer to the link to see a list of runtimes you can use
<adaedra>
The simplest to add in those is probably just installing Node.js
<adaedra>
ExecJS is just a wrapper other multiple, external JS runtimes and tries to find the best choice on your system... when there is one
graphene has quit [Remote host closed the connection]
alem0lars has quit [Ping timeout: 245 seconds]
graphene has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
schneider has joined #ruby
soniya29 has quit [Quit: Leaving]
sameerynho has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
discopatrick has quit [Quit: Connection closed for inactivity]
suukim has quit [Quit: Konversation terminated!]
Klumben has joined #ruby
schneider has joined #ruby
adaedra has quit [Remote host closed the connection]
ellcs has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
amar_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Sembei has joined #ruby
schneider has joined #ruby
amar_ has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
s2013 has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
alem0lars has joined #ruby
schneider has joined #ruby
amar_ has joined #ruby
<konsolebox>
and now my script gets killed before it kills its child processes
schneider has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
<mozzarella>
gruesome
SolarAquarion has joined #ruby
<konsolebox>
fun
mozzarella has quit [Remote host closed the connection]
schneider has joined #ruby
mozzarella has joined #ruby
amar_ has quit [Ping timeout: 268 seconds]
eckhardt_ has joined #ruby
lubekpl has joined #ruby
guille-moe has joined #ruby
amar_ has joined #ruby
schneider has quit [Ping timeout: 244 seconds]
orbyt_ has joined #ruby
ellcs has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
salasrod has joined #ruby
milanj has joined #ruby
amar__ has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 276 seconds]
tdy has quit [Ping timeout: 240 seconds]
amar_ has quit [Ping timeout: 244 seconds]
jamesaxl has joined #ruby
amar__ has quit [Ping timeout: 256 seconds]
amar_ has joined #ruby
schneider has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
tdy has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
amar_ has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
amar_ has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
timmow has quit [Ping timeout: 240 seconds]
amar_ has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
timmow has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
amar_ has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
amar_ has quit [Ping timeout: 244 seconds]
schneider has joined #ruby
mikecmpbll has joined #ruby
Fr4n has joined #ruby
shah^ has quit []
hinbody has joined #ruby
hinbody has left #ruby [#ruby]
jp has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 244 seconds]
jp has joined #ruby
karapetyan has joined #ruby
amar_ has joined #ruby
schneider has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 260 seconds]
snickers has joined #ruby
Guest76373 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest22605
psychicist__ has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
schneider has joined #ruby
lubekpl has quit [Ping timeout: 276 seconds]
maryo_ has quit [Ping timeout: 260 seconds]
TomyWork has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
graphene has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
dviola has joined #ruby
graphene has joined #ruby
yqt has quit [Read error: Connection reset by peer]
akaiiro has quit [Ping timeout: 248 seconds]
schneider has joined #ruby
jrafanie_ has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
g- has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
graphene has quit [Read error: Connection reset by peer]
graphene has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
r29v has quit [Quit: r29v]
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
chussenot has joined #ruby
DWSR has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evdubs has joined #ruby
<DWSR>
Hey all, is it possible to statically compile Gems via RubyGems?
nowhereman_ has quit [Ping timeout: 256 seconds]
zlogan2003 has quit [Quit: Leaving]
<Yxhuvud>
eh, it is not possible to statically compile any ruby code, period
schneider has joined #ruby
stiang has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 256 seconds]
nowhereman_ has joined #ruby
akaiiro has joined #ruby
<DWSR>
Not even gems with native extensions (what I'm really after)
<DWSR>
That seems...odd?
<DWSR>
I would have thought that I would have been able to pass compile flags down to the C compiler.
<Alec>
DWSR: what do you mean "statically" and where's your line between interpreting and compiling (interpreting's "furthest end" is calling evaluate() on AST nodes basically)
<DWSR>
Sorry, "statically linked"
schneider has quit [Ping timeout: 276 seconds]
<Alec>
GLWT
<DWSR>
I'm trying to slim down a really fat containerized RoR project that's linked against a bunch of shared libs. As opposed to installing them all again in the new container, I was hoping that there would be a way to have the gems statically linked so that I could just pull everything into a new container and be done with it.
<Alec>
Oh a Dev Ops and shit guy
cagomez has quit []
zleap has quit [Ping timeout: 260 seconds]
<Alec>
Python has ctypes and such and wraps DLopen so you can open shared libraries and call them - (used it lie over 10 years ago - still using Python 2.7 for some new projects) - what's Ruby's
<Alec>
That's your only hope? But if you need the library ... what's the point?
schneider has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
GodFather has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
rikkipitt has joined #ruby
rikkipitt has quit [Client Quit]
schneider has joined #ruby
\void has joined #ruby
otlfac has joined #ruby
Dbugger has quit [Quit: Leaving]
shinnya has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
zleap2 has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcalla has quit [Quit: Leaving]
schneider has quit [Ping timeout: 244 seconds]
snickers has joined #ruby
snickers has quit [Client Quit]
schneider has joined #ruby
alem0lars has quit [Ping timeout: 268 seconds]
<DWSR>
Alec: It's so that I don't have to go about dealing with installing dependencies in the final container. The built gems just bring them along.
lomex has joined #ruby
<Alec>
DWSR: just do it so it works man
<Alec>
Try and palm the problem off on someone else if you can
zleap2 is now known as zleap
jenrzzz has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
schneider has quit [Ping timeout: 244 seconds]
r29v has joined #ruby
schneider has joined #ruby
DWSR has quit [Quit: Page closed]
schneider has quit [Ping timeout: 240 seconds]
schleppel has quit [Quit: Konversation terminated!]
schneider has joined #ruby
quobo has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar_ has quit [Remote host closed the connection]
jrm2 has joined #ruby
amar_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has joined #ruby
jrm has quit [Ping timeout: 240 seconds]
jrm2 is now known as jrm
amar_ has quit [Ping timeout: 276 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
iceskins[m] has quit [Ping timeout: 240 seconds]
bascht[m] has quit [Ping timeout: 245 seconds]
Hexafox[m] has quit [Ping timeout: 255 seconds]
Hobbyboy has quit [Quit: I think the BNC broke.]
banisterfiend has joined #ruby
zalipuha[m] has quit [Ping timeout: 260 seconds]
haylon[m] has quit [Ping timeout: 240 seconds]
TravisR[m]1 has quit [Ping timeout: 240 seconds]
aviraldg[m] has quit [Ping timeout: 240 seconds]
velu[m] has quit [Ping timeout: 245 seconds]
bastilian[m] has quit [Ping timeout: 245 seconds]
Giphy[m] has quit [Ping timeout: 245 seconds]
Demos[m] has quit [Ping timeout: 245 seconds]
intheclouddan[m] has quit [Ping timeout: 245 seconds]
legion[m] has quit [Ping timeout: 256 seconds]
Hanma[m] has quit [Ping timeout: 256 seconds]
sidntrivedi012[m has quit [Ping timeout: 260 seconds]
ignujee[m] has quit [Ping timeout: 256 seconds]
KevinMGranger[m] has quit [Ping timeout: 260 seconds]
luna_x[m] has quit [Ping timeout: 260 seconds]
jonjitsu[m] has quit [Ping timeout: 260 seconds]
vermaneerajin[m] has quit [Ping timeout: 276 seconds]
carsonbaker[m] has quit [Ping timeout: 276 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 260 seconds]
nemesit|znc has joined #ruby
spider-mario has quit [Remote host closed the connection]
spider-mario has joined #ruby
schneider has joined #ruby
biberu has quit []
schneider has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
MrOnlineCoder has joined #ruby
MrOnlineCoder has left #ruby ["Need to go"]
DTZUZO has joined #ruby
banisterfiend has quit [Client Quit]
DTZUZO has quit [Read error: Connection reset by peer]
nicht has joined #ruby
schneider has joined #ruby
<JJonah>
say i have a gem which offers refinements to Array, among other classes. i'd like the ability to do `using MyGem`, which would include all the available refinements, while also offering the ability to include only the specific refinements a client needs. something like `using MyGem::Array`. is there a canonical pattern to achieve this?
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<konsolebox>
JJonah: not sure what you mean, but checkout prepend
akaiiro has quit [Ping timeout: 240 seconds]
<JJonah>
konsolebox: perhaps a clearer version of the same question. is there a canonical pattern that allows client code to use a group of related refinements either individually, or all together? lmk if that's still not clear...
amar_ has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 276 seconds]
despai has joined #ruby
<darix>
JJonah: maybe checkout what activesupport does
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<konsolebox>
JJonah: i see. but i haven't really used refinements sorry. maybe some other people can tell.
<JJonah>
darix: not a bad idea... thx
amar_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
lele has quit [Ping timeout: 260 seconds]
aviraldg[m] has joined #ruby
schneider has quit [Ping timeout: 245 seconds]
<apeiros>
JJonah: I don't think there's a canonical way to do that. I remember toying with storing the refinement blocks and dynamically building refinement modules.
schneider has joined #ruby
gheegh has joined #ruby
za1b1tsu_ has joined #ruby
<darix>
apeiros: the old activesupport way doesnt work anymore?