havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
milardovich has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
charliesome has quit [Remote host closed the connection]
iMadper has quit [Remote host closed the connection]
charliesome has joined #ruby
Guest96124 has quit [Quit: Leaving]
kille has joined #ruby
Guest39719 has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
numbdewd has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
[reed] has quit [Ping timeout: 248 seconds]
Slinky_Pete has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 246 seconds]
kn-928 has joined #ruby
zachk has quit [Quit: zone'd out....]
kn-928 has quit [Ping timeout: 264 seconds]
naprimer2 has quit [Ping timeout: 240 seconds]
Bob8989|2 has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
sandroqz has joined #ruby
sandroqz has quit [Remote host closed the connection]
<haylon> havenwood: Check these articles out!
naprimer2 has joined #ruby
justthisguy has quit [Quit: Textual IRC Client: www.textualapp.com]
numbdewd has quit [Quit:  ☺ ]
<haylon> Those links above are what I was looking for earlier today. Just kept googling ang googling and eventually got lucky when i was searching for how to make a Thor task dependent on something else
houhoulis has joined #ruby
Slinky_Pete has joined #ruby
t-recx has quit [Quit: t-recx]
funkytwig has quit [Quit: Leaving]
raynold has quit [Quit: Connection closed for inactivity]
marcux has joined #ruby
enterprisey has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
Slinky_Pete has quit [Remote host closed the connection]
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
goyox86 has quit [Quit: goyox86]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
Guest39719 has joined #ruby
charliesome has joined #ruby
bronson has joined #ruby
Guest39719 has quit [Ping timeout: 264 seconds]
charliesome has quit [Ping timeout: 240 seconds]
marcux has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
belmoussaoui has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 252 seconds]
d^sh has joined #ruby
figures_ is now known as figuresofstick
nofxx has quit [Ping timeout: 240 seconds]
QualityAddict has joined #ruby
Guest39719 has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
<haylon> Did run into a "snag" where I can't call my Rake task twice like Rake::TestTask can.
Emmanuel_Chanel has joined #ruby
Algebr has joined #ruby
marcux has joined #ruby
Algebr is now known as Guest15530
marcux has quit [Client Quit]
ur5us has joined #ruby
Guest15530 has quit [Client Quit]
hinbody has quit [Read error: Connection reset by peer]
Algebr` has joined #ruby
Algebr` has quit [Remote host closed the connection]
hinbody has joined #ruby
charliesome has joined #ruby
harfangk has joined #ruby
orbyt_ has joined #ruby
<vee_> haylon: I'm a bit lost myself but fire up irb and run `Phil::FooTask.new(:stuff)`. That should give you some pointers.
houhoulis has quit [Remote host closed the connection]
<haylon> I updated my question a bit. Seems I forgot a self in there, but now its saying it doesn't know how to build {}
marcux has joined #ruby
nofxx has joined #ruby
<haylon> How would I load that into IRB, just a require as usual?
<vee_> yes
marcux has quit [Remote host closed the connection]
<haylon> its showing that the @name=:stuff
<vee_> This is what I'm seeing: `#<Phil::FooTask:0x00000001115548 @name=:task, @data=nil, @task_dependencies=:stuff>`
<haylon> This is what I got `#<Phil::FooTask:0x000000042c9a58 @name=:stuff, @data=nil, @task_dependencies={}>` I might be doing something wrong
<vee_> if you see `@name=:stuff` then your `rake --tasks` should show the names correctly, is it not?
<vee_> hmm, I'm lost twice!
<haylon> Yes. Sorry, that's part of the question I updated. When I added the `self` to the define function, the task names started shwoing up properly
gusrub has joined #ruby
<vee_> ok, let me update the code.
nofxx has quit [Ping timeout: 240 seconds]
<haylon> I should've been more specific, my apologies :P
<vee_> No worries, I'm still getting the same thing even with the added `self`.
ur5us has quit [Remote host closed the connection]
ravaviel78 has joined #ruby
imode has joined #ruby
<vee_> if you modify initialization of `:stuff` task as `Phil::FooTask.new(:stuff, []) do |t|` then it works.
<vee_> Or just keep everything else intact and modify `initialize` method to `def initialize(name = :task, task_dependencies=[])`.
<haylon> instead of a hash?
<haylon> :facepalm: not sure why I made it a hash
<haylon> arg.
<haylon> Well, vee_, do you want to answer my question and be the hero?
<vee_> lol, no need. Keep the question open there might be other gurus out there with better explanation.
<haylon> I haven't had too much luck with people answering my questions lately. I've got one that's been open for a few months with only like 20 views
<haylon> Now I can try my other idea. I wanted to see if I could call different functions based upon what's being passed to the task name
kn-928 has joined #ruby
chalkmonster has quit [Ping timeout: 246 seconds]
krz has joined #ruby
chalkmonster has joined #ruby
kn-928 has quit [Ping timeout: 260 seconds]
<vee_> Would love to see what you're up to, if it's going to open source.
ravaviel78 has quit [Quit: Leaving]
<vee_> Will try to put together an answer sometime later.
<haylon> Well, So far its just learning a new skill. I wanted to make a Rake task for Golang since some projects use Make, or others use godep. I wanted to make one for Rake.
<haylon> I might also be working on one to make Splunk Apps, but I'm not sure how I want to structure it yet.
<vee_> Sounds exciting, keep going!
<haylon> I am working on a DSL thought o generate HTML
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
harai_ has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
matled has quit [Remote host closed the connection]
matled has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
[reed] has joined #ruby
gusrub has quit [Remote host closed the connection]
milardovich has joined #ruby
frozengeek has quit [Quit: frozengeek]
Guest39719 has joined #ruby
_whitelogger has joined #ruby
Guest39719 has quit [Ping timeout: 248 seconds]
mson has joined #ruby
jdawgaz has joined #ruby
AndroUser2 has joined #ruby
AndroUser2 has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
AndroUser2 has joined #ruby
__Yiota has joined #ruby
AndroUser2 has quit [Read error: Connection reset by peer]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
kn-928 has joined #ruby
gix has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 246 seconds]
kn-928 has quit [Ping timeout: 248 seconds]
harfangk has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
gix has joined #ruby
Mon_Ouie has joined #ruby
milardovich has quit [Remote host closed the connection]
dn` has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
milardovich has quit [Remote host closed the connection]
MrBusiness3 has joined #ruby
rabajaj has joined #ruby
SuperLag has joined #ruby
milardovich has joined #ruby
MrBismuth has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
kn-928 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
balazs_ has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
GhostK has joined #ruby
GhostK has quit [Remote host closed the connection]
kn-928 has quit [Ping timeout: 240 seconds]
mistnim has joined #ruby
psychicist__ has quit [Ping timeout: 248 seconds]
tylluan has joined #ruby
Guest39719 has joined #ruby
GhostK has joined #ruby
Guest39719 has quit [Ping timeout: 260 seconds]
QualityAddict has quit [Quit: Leaving]
nofxx has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
nofxx has joined #ruby
mistnim has quit [Ping timeout: 264 seconds]
mistnim has joined #ruby
JD2020X has joined #ruby
sleepee has quit [Ping timeout: 240 seconds]
JD2020X is now known as runecape07rsps
sleepee has joined #ruby
govg has joined #ruby
sleepee has quit [Max SendQ exceeded]
milardovich has quit [Remote host closed the connection]
sleepee has joined #ruby
_whitelogger has joined #ruby
mkali has joined #ruby
bronson has joined #ruby
Guest39719 has joined #ruby
mistnim has quit [Ping timeout: 248 seconds]
mkali has quit [Quit: mkali]
bronson has quit [Ping timeout: 240 seconds]
mkali has joined #ruby
Guest39719 has quit [Ping timeout: 248 seconds]
bauruine has quit [Ping timeout: 240 seconds]
bauruine has joined #ruby
runecape07rsps has quit [Quit: Leaving]
mistnim has joined #ruby
Sembei has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Pisuke has quit [Ping timeout: 264 seconds]
Guest39719 has joined #ruby
imode has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
sneakerhax has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
sneakerhax has left #ruby [#ruby]
Guest39719 has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
lagweezle is now known as lagweezle_away
harai_ has quit [Ping timeout: 240 seconds]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170824123605]]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170824123605]]
mim1k has quit [Ping timeout: 240 seconds]
harai_ has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
naprimer3 has joined #ruby
naprimer2 has quit [Ping timeout: 240 seconds]
mistnim has quit [Ping timeout: 248 seconds]
phaul has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
imode has joined #ruby
znz_jp has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
jackjackdripper has joined #ruby
bruno-_ has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
Dimik has quit [Ping timeout: 248 seconds]
alem0lars has quit [Quit: Quit]
konsolebox has joined #ruby
imode has quit [Ping timeout: 255 seconds]
Guest39719 has joined #ruby
dionysus69 has joined #ruby
Guest39719 has quit [Ping timeout: 260 seconds]
frozengeek has joined #ruby
bauruine has quit [Max SendQ exceeded]
belmoussaoui has joined #ruby
bauruine has joined #ruby
raynold has joined #ruby
bronson has joined #ruby
mkali has quit [Quit: mkali]
mkali_ has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
kn-928 has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
TomyLobo has joined #ruby
milardovich has joined #ruby
kn-928 has quit [Ping timeout: 264 seconds]
maryo has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
elbuki has joined #ruby
harai_ has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
harfangk has joined #ruby
maryo has quit [Ping timeout: 264 seconds]
_p0p0pr37 has quit [Remote host closed the connection]
shaman42 has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
sleepee has quit [Ping timeout: 240 seconds]
_main_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
__main__ has quit [Read error: No route to host]
_main_ has joined #ruby
VladGh_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
VladGh has quit [Ping timeout: 240 seconds]
__main__ has joined #ruby
dS_dE has joined #ruby
Guest39719 has joined #ruby
ana_ has joined #ruby
ana_ has quit [Client Quit]
Guest39719 has quit [Ping timeout: 240 seconds]
<elbuki> is there anyone who thinks that ruby is used just for rails?
jinie has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
marr has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
rgr has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 260 seconds]
p0p0pr37_ is now known as p0p0pr37
belmoussaoui has joined #ruby
Guest39719 has joined #ruby
nobitanobi has joined #ruby
dn` has joined #ruby
davidrak has joined #ruby
Guest39719 has quit [Ping timeout: 264 seconds]
nicolai86 has quit [Remote host closed the connection]
nicolai86 has joined #ruby
davidrak has quit [Quit: leaving]
Sulcino has joined #ruby
rahul_bajaj has joined #ruby
mistnim has joined #ruby
rabajaj has quit [Ping timeout: 246 seconds]
rabajaj has joined #ruby
rabajaj has quit [Client Quit]
konsolebox has quit [Ping timeout: 248 seconds]
rahul_bajaj has quit [Ping timeout: 240 seconds]
Sulcino has quit [Quit: leaving]
Sulcino has joined #ruby
<Yxhuvud> Yes, the frontenders at the company I work at.
elbuki has quit [Ping timeout: 240 seconds]
torknuck_ has joined #ruby
rabajaj has joined #ruby
jdawgaz has joined #ruby
konsolebox has joined #ruby
torknuck_ has quit [Quit: Leaving]
torknuck has joined #ruby
mistnim has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
mistnim has joined #ruby
ahrs has joined #ruby
rahul_bajaj has joined #ruby
selim has quit [Ping timeout: 255 seconds]
rabajaj has quit [Ping timeout: 246 seconds]
selim has joined #ruby
mistnim has quit [Ping timeout: 248 seconds]
rahul_bajaj has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
mistnim has joined #ruby
mkali_ has quit [Quit: mkali_]
milardovich has quit [Ping timeout: 246 seconds]
maryo has joined #ruby
rahul_bajaj has joined #ruby
mistnim has quit [Remote host closed the connection]
nobitanobi has quit []
mistnim has joined #ruby
bronson has joined #ruby
Guest34316 has joined #ruby
Sulcino has quit []
Guest39719 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
Guest39719 has quit [Ping timeout: 240 seconds]
mistnim has quit [Ping timeout: 264 seconds]
tw1sted has quit [Quit: No Ping reply in 180 seconds.]
segy has quit [Ping timeout: 255 seconds]
maryo has quit [Ping timeout: 264 seconds]
tw1sted has joined #ruby
kn-928 has joined #ruby
balo has quit [Ping timeout: 255 seconds]
FifthWall has quit [Ping timeout: 255 seconds]
genpaku has quit [Ping timeout: 255 seconds]
balo has joined #ruby
genpaku has joined #ruby
seggy has quit [Ping timeout: 255 seconds]
kn-928 has quit [Ping timeout: 240 seconds]
FifthWall has joined #ruby
segy has joined #ruby
InfinityFye has joined #ruby
_whitelogger has joined #ruby
marr has quit [Ping timeout: 260 seconds]
Guest39719 has joined #ruby
krz has quit [Ping timeout: 248 seconds]
Guest39719 has quit [Ping timeout: 255 seconds]
spt0 has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
maryo has joined #ruby
gettsu has joined #ruby
quobo has joined #ruby
gettsu has left #ruby [#ruby]
DipoleHourglass has quit [Quit: Connection closed for inactivity]
maryo_ has joined #ruby
maryo has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Quit: Leaving.]
dionysus69 has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 260 seconds]
guille-moe has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
Ltem has joined #ruby
nicolai86 has quit [Remote host closed the connection]
teaalligator has joined #ruby
teaalligator has left #ruby ["Leaving"]
p0p0pr37 has joined #ruby
nicolai86 has joined #ruby
mistnim has joined #ruby
rgr_ has joined #ruby
rgr has quit [Ping timeout: 255 seconds]
krz has joined #ruby
maryo_ has quit [Ping timeout: 264 seconds]
FastJack has quit [Read error: Connection reset by peer]
phaul has quit [Quit: WeeChat 1.9]
FastJack has joined #ruby
ShalokShalom has quit [Read error: Connection reset by peer]
ShalokShalom has joined #ruby
rahul_bajaj has quit [Remote host closed the connection]
t-recx has joined #ruby
phaul has joined #ruby
milardovich has joined #ruby
clemens3 has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
mistnim has quit [Ping timeout: 240 seconds]
t-recx has quit [Ping timeout: 246 seconds]
milardovich has quit [Ping timeout: 246 seconds]
t-recx has joined #ruby
marcux has joined #ruby
drcode has quit [Read error: Connection reset by peer]
frozengeek has quit [Quit: frozengeek]
Guest39719 has joined #ruby
Guest39719 has quit [Ping timeout: 248 seconds]
marcux has quit [Remote host closed the connection]
dionysus69 has joined #ruby
al2o3-cr has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
DipoleHourglass has joined #ruby
marcux has joined #ruby
bronson has joined #ruby
kn-928 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
nicolai86 has quit [Remote host closed the connection]
kn-928 has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Ping timeout: 255 seconds]
rgr_ has quit [Quit: rgr_]
nicolai86 has joined #ruby
phaul has quit [Quit: WeeChat 1.9]
sepp2k has joined #ruby
phaul has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
eminencehc has joined #ruby
nicolai86 has quit [Remote host closed the connection]
nofxx has quit [Read error: Connection reset by peer]
ShalokShalom_ has joined #ruby
nofxx has joined #ruby
sandelius has joined #ruby
<sandelius> How do I match a regexp pattern from a c extension? Imagine I access the pattern like: VALUE pattern = rb_iv_get(self, "@pattern");
ShalokShalom has quit [Ping timeout: 264 seconds]
<matthewd> sandelius: Call #match ?
nicolai86 has joined #ruby
goyox86 has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
<sandelius> matthewd I want to run the regexp from my extension
lxsameer has joined #ruby
<dminuoso> sandelius, "foo".match(regex) is just sugar for regex.match("foo")
<dminuoso> sandelius, look at the internal implementation of String#match and it should be obvious
milardovich has joined #ruby
<sandelius> dminuoso I'm trying to make it happen inside a method defined with rb_define_method (in C)
<matthewd> sandelius: rb_funcall
<sandelius> matthewd yeah found rb_reg_match aswell, not alot of docs regarding this topic. thx tho
<dminuoso> sandelius, rb_funcall will handle the dispatch for you. It really just becomes a matter of rb_funcall(yourRe, rb_intern("match") ...) and thats it
krz has quit [Ping timeout: 240 seconds]
sonOfRa has quit [Remote host closed the connection]
<matthewd> And without checking the rb_reg_match implementation, it seems less likely to segfault if you have a non-Regexp
milardovich has quit [Ping timeout: 255 seconds]
marcux has quit [Ping timeout: 240 seconds]
marcux has joined #ruby
sonOfRa has joined #ruby
goyox86 has quit [Quit: goyox86]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uZiel has quit [Remote host closed the connection]
Alina-malina has quit [Quit: ZNC 1.6.3 - http://znc.in]
sepp2k1 has joined #ruby
m4rCsi has quit [Ping timeout: 260 seconds]
sepp2k has quit [Ping timeout: 248 seconds]
<sandelius> I got it to work with rb_reg_match but the new rb_reg_match_p (match?) I get implicit declaration of function 'rb_reg_match_p'
m4rCsi has joined #ruby
ONDIE has joined #ruby
ONDIE has left #ruby [#ruby]
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
tylluan has quit [Quit: Leaving]
belmoussaoui_ has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
sonOfRa has quit [Remote host closed the connection]
raatiniemi has quit [Ping timeout: 248 seconds]
raatiniemi has joined #ruby
sonOfRa has joined #ruby
_sfiguser has joined #ruby
GodFather has joined #ruby
uZiel has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui_ has quit [Quit: belmoussaoui_]
belmoussaoui has joined #ruby
GodFather has quit [Read error: No route to host]
GodFather has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
sonOfRa has quit [Remote host closed the connection]
sonOfRa has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
InfinityFye has quit [Read error: Connection reset by peer]
Sammichmaker has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
marcux has quit [Remote host closed the connection]
oleo has quit [Quit: Leaving]
belmoussaoui has joined #ruby
belmoussaoui__ has joined #ruby
belmoussaoui has quit [Ping timeout: 248 seconds]
belmoussaoui__ is now known as belmoussaoui
bronson has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
kn-928 has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
ShalokShalom_ is now known as ShalokShalom
uZiel has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
milardovich has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
milardovich has quit [Ping timeout: 264 seconds]
InfinityFye has joined #ruby
krz has joined #ruby
_sfiguser has quit [Quit: Leaving]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 252 seconds]
belmoussaoui has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Zimsky has quit [Ping timeout: 255 seconds]
Slinky_Pete has joined #ruby
chalkmonster has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
houhoulis has joined #ruby
Slinky_Pete has quit [Ping timeout: 264 seconds]
cgfbee has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
gizmore|2 has quit [Remote host closed the connection]
Zimsky has joined #ruby
belmoussaoui has joined #ruby
eminencehc has quit [Remote host closed the connection]
Guest34316 has quit [Ping timeout: 264 seconds]
belmoussaoui has quit [Read error: Connection reset by peer]
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
Guest34316 has joined #ruby
dS_dE has quit [Quit: Leaving]
transhuman_ has joined #ruby
krz has joined #ruby
<transhuman_> hi, I have ubuntu 16.04 and want to install ruby on rails, and want to avoid methods that might impart some crap on my machine thats unwanted, anyone got a link to the recommended method of installing RoR?
<transhuman_> thanks in advance
krz has quit [Ping timeout: 260 seconds]
bruno-_ has quit [Ping timeout: 240 seconds]
<silverdust> What are some classes/libs to look out for when sandboxing ruby for public use
<Salmonidae> pledge (openbsd), man sandbox_init (osx), $SAFE (not good as others), jails (freebsd), probs linux has something too. afaik it's best to solve at OS-level.
BSaboia has joined #ruby
<dminuoso> silverdust, take a look at the implementation of geordi, there you can find a low level selection of safe and unsafe syscalls.
<Papierkorb> ^
<transhuman_> to put it another way is : https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rvm-on-ubuntu-16-04 that a good method? or is https://gorails.com/setup/ubuntu/16.04 the second a better method?
<Salmonidae> you still have to block those calls in ruby-land.
<Salmonidae> which is error prone.
<Salmonidae> leave it to the experts, imo, and use what they built
<Papierkorb> silverdust: Sandboxing is no easy feat. You're about to run some random peoples code on your machine, and they can do everything there, including use exploits. This isn't something you do in a few hours at all.
d^sh has quit [Ping timeout: 240 seconds]
<Salmonidae> pledge is pretty close btw. iirc it operates on syscalls, at least at some level. cant remember
<Papierkorb> silverdust: You don't open your browser and click and install everything you see right? What you intend is the opposite, everything bad comes to you.
<dminuoso> silverdust, note that geordi uses docker and seccomp + careful syscall blocking to ensure the sandbox
<dminuoso> seccomp is the noteworthy feature in there.
<Papierkorb> ^
<Salmonidae> penguins
<Papierkorb> Anything that doesn't use seccomp is *not* an option for sandboxing by definition.
<Salmonidae> transhuman_: hi. rvm is fine. there is arguments against it. but it is one of the most easy methods to get ruby. it automates a lot, so you can focus on coding and not shell-fu. there's also other solutions, chruby, ruby-build, ruby-install, rbenv. if you want a quick path, rvm is best, ime.
rippa has joined #ruby
<transhuman_> thanks Salmonidae
<Salmonidae> welcome. good luck.
<transhuman_> one more question for you would the docker image be a simpler method for a docker user?
<Salmonidae> i dont know. i don't use it
<transhuman_> for me I just need to run a few scripts one time
<Salmonidae> i really don't know :( sorry.
<transhuman_> no problem thanks for the help Salmonidae
goyox86 has joined #ruby
<dminuoso> transhuman_, that's the minimalistic and stable approach we tend to recommend for all beginners and users.
<transhuman_> ok perfect, i will use it then
sepp2k has joined #ruby
<Salmonidae> but know its limitations. rvm makes a concentrated effort to keep old rubies compiling. and ruby-install cannot install ruby-head, jruby-head.
<dminuoso> If you have special needs, chances are you wouldn't be coming into this channel and asking this.
milardovich has quit [Remote host closed the connection]
eminencehc has joined #ruby
sepp2k1 has quit [Ping timeout: 240 seconds]
<silverdust> Thanks for the inputs dminuoso Papierkorb
Slinky_Pete has joined #ruby
<Papierkorb> rvm makes an effort to break your shell too.
<silverdust> Was already told that put it in a docker container would be the best thing to do
<Papierkorb> silverdust: Not *only* a docker container!
dviola has joined #ruby
<Salmonidae> Papierkorb: it has quirks, but if you're seeking "perfect" you will never find it.
<silverdust> But I was lazy about the implementation cost. Wish to have seen something like this for ruby http://npm.im/vm2
<Papierkorb> silverdust: Docker is not a security system! I have to stress this, if you just use Docker, you will get owned by some way or other.
<dminuoso> silverdust, docker + seccomp + resource limitation (you really wouldn't want a single user mining bitcoin)
<dminuoso> If you skip any of these three, you will get bitten back.
<Salmonidae> walk with beasty for this problem.
<Papierkorb> silverdust: That npm packet looks horribly dangerous
<Salmonidae> that's my advice
<Salmonidae> really dont care if you listen or not :)
<silverdust> dminuoso: is this the geordi you were talking about https://github.com/makandra/geordi ?
<dminuoso> silverdust, https://github.com/Eelis/geordi this is
<Papierkorb> silverdust: There are similar gems for ruby though. And they're all just as dangerous.
<silverdust> I'm currently blocking exec , sys, backtics , and %x
<silverdust> Then Dir and File
<Papierkorb> That's not what you want to do at all
<dminuoso> silverdust, that approach is not sustainable.
Alina-malina has joined #ruby
<Papierkorb> silverdust: That is mind boggingly dangerous.
<dminuoso> silverdust, I will eventually find a ruby method that access files of my liking. Or executes sycalls on my behalf directly.,
<dminuoso> I will.
<dminuoso> Ruby is far too dynamic to make any blacklisting of methods work reasonably
<Papierkorb> Yeah we'd just require fiddle and off we go.
<Salmonidae> why repeat yourself. all this advice has been iterated already.
<dminuoso> ^- and if you think thats a joke
<silverdust> I blocked require too
<Papierkorb> Not enough
<dminuoso> I had fiddle code that implemented object casting in Ruby in production.
<Salmonidae> i said at the start
<Salmonidae> one of the first things
<Salmonidae> if ears are closed they're closed
<Salmonidae> don't waste your time
<dminuoso> silverdust, you can only solve this by going from the other direction: seccomp.
<silverdust> I'm following all of these things. You aren't wasting your time
bronson has joined #ruby
<Papierkorb> silverdust: Don't worry, Salmonidae is just having a bad day or something
<Salmonidae> yeah. sorry if i'm rude. but plenty of advice has been given. including a list of options.
Slinky_Pete has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
<dminuoso> silverdust, and are you sure you want to block require?
<dminuoso> >> {}.to_json
<ruby[bot]> dminuoso: # => undefined method `to_json' for {}:Hash ...check link for more (https://eval.in/863240)
kn-928 has joined #ruby
<dminuoso> silverdust, you'd be locked out of the entire stdlib :-)
<silverdust> yes my goal is for nothing to be able to be required. You could still do things like Math::cos(0)
<Salmonidae> no. you can bootstrap the stdlib(require what is allowed), then apply pledge() to disallow fs reads.
<Salmonidae> require '..' becomes a no-op. returns false.
bronson has quit [Ping timeout: 248 seconds]
mikeiniowa has quit [Remote host closed the connection]
<Papierkorb> Who cares about require if I can just break out of the VM itself
kn-928 has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 1.9]
<silverdust> Thanks to y'all for your inputs
<Salmonidae> apologies if i was rude. im tired. see you later.
<silverdust> Thought from the start that blacklisting is never a good security option but didn't know ways to whitelist or even things to whitelist. I guess I can figure something from here
milardovich has joined #ruby
<silverdust> no p Salmonidae
kn-928 has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
eminencehc has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
mniip has left #ruby ["Leaving"]
mikeiniowa has joined #ruby
orbyt_ has joined #ruby
krz has joined #ruby
funkytwig has joined #ruby
BSaboia has quit [Ping timeout: 264 seconds]
Kanibal has joined #ruby
<Kanibal> does anybody know if :hash is a reserved field name in mongoid?
<Kanibal> I am trying to define a user model in a rails app using mongoid - once I add a "field :hash, type: String" to my model, it automatically gets filled with a (seemingly random?) integer value
krz has quit [Ping timeout: 264 seconds]
<Papierkorb> Kanibal: no idea about mongo, but you're overwriting `Object#hash` there, which is probably not what you intended :)
<Papierkorb> Kanibal: What likely happens is that mongoid, when storing your user document, accesses the field through `#hash` and thus instructs ruby to compute the hash of your user object. Or something like that.
<Kanibal> Ah
<Kanibal> OK.
<Kanibal> I'll just call it password_hash then
SeepingN has joined #ruby
<Kanibal> Thanks!
<Papierkorb> cheers
oleo has quit [Quit: Leaving]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
claudiuinberlin has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
kapil___ has joined #ruby
mkali has joined #ruby
goyox86 has quit [Ping timeout: 264 seconds]
foxxx0 has quit [Quit: WeeChat 1.8]
goyox86 has joined #ruby
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
foxxx0 has joined #ruby
mim1k has joined #ruby
conta has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
mim1k has quit [Ping timeout: 255 seconds]
_whitelogger has joined #ruby
milardovich has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
mjolnird has quit [Ping timeout: 252 seconds]
milardovich has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
Guest34316 has quit [Ping timeout: 264 seconds]
krz has joined #ruby
krz has quit [Ping timeout: 248 seconds]
p0p0pr37 has quit [Remote host closed the connection]
harfangk has quit [Remote host closed the connection]
bruno- has joined #ruby
Neo95 has joined #ruby
oleo has joined #ruby
Slinky_Pete has joined #ruby
houhoulis has quit [Remote host closed the connection]
Neo95 has quit [Ping timeout: 246 seconds]
detectiveaoi has joined #ruby
belmoussaoui has joined #ruby
Slinky_Pete has quit [Ping timeout: 248 seconds]
torknuck has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #ruby
Dimik has joined #ruby
goyox86 has quit [Quit: goyox86]
bruno- has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: Leaving]
jdawgaz has joined #ruby
ascarter has joined #ruby
bronson has joined #ruby
Neo95 has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
oleo has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k1 has joined #ruby
jdawgaz has quit [Client Quit]
justthisguy has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 252 seconds]
jinie has joined #ruby
Neo95 has quit [Ping timeout: 240 seconds]
kies has joined #ruby
sandroqz has joined #ruby
sandroqz has quit [Client Quit]
sandroqz has joined #ruby
sandroqz has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
lagweezle_away is now known as lagweezle
transhuman_ has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
jdawgaz has joined #ruby
Guest34316 has joined #ruby
Ltem has quit [Quit: Leaving]
belmoussaoui has joined #ruby
mjolnird has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
Guest34316 has quit [Ping timeout: 248 seconds]
figuresofstick has quit [Read error: Connection reset by peer]
krz has joined #ruby
krz has quit [Ping timeout: 240 seconds]
Slinky_Pete has joined #ruby
naprimer3 has quit [Quit: Leaving]
maryo has joined #ruby
kn-928 has quit [Quit: WeeChat 1.9]
kn-928 has joined #ruby
belmoussaoui has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kn-928 has quit [Client Quit]
Slinky_Pete has quit [Ping timeout: 240 seconds]
kn-928 has joined #ruby
bvcosta has joined #ruby
funkytwig has quit [Ping timeout: 260 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
Guest34316 has joined #ruby
mkali has quit [Quit: mkali]
heftig has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
ascarter_ has joined #ruby
musl has quit [Quit: WeeChat 1.8]
musl has joined #ruby
ascarter has quit [Remote host closed the connection]
musl has quit [Client Quit]
musl has joined #ruby
griffindy has joined #ruby
naprimer has joined #ruby
kn-928 has quit [Ping timeout: 260 seconds]
houhoulis has joined #ruby
Guest34316 has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
InfinityFye has quit [Quit: Leaving]
spt0 has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
Slinky_Pete has joined #ruby
hinbody has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
krz has quit [Ping timeout: 240 seconds]
segy has quit [Quit: ZNC - http://znc.in]
torknuck has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
hinbody has joined #ruby
sepp2k has joined #ruby
sepp2k1 has quit [Ping timeout: 246 seconds]
segy has joined #ruby
ResidentBiscuit has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Neo95 has joined #ruby
ananas777 has joined #ruby
ananas777 has quit [Quit: leaving]
uZiel has quit [Remote host closed the connection]
milardovich has joined #ruby
conta has quit [Ping timeout: 264 seconds]
jdawgaz has joined #ruby
marr has joined #ruby
bronson has joined #ruby
Neo95 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 248 seconds]
conta has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
Slinky_Pete has joined #ruby
rahrah_ has joined #ruby
kn-928 has joined #ruby
mson has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Slinky_Pete has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
krz has joined #ruby
Neo95 has joined #ruby
uZiel has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 246 seconds]
Neo95 has quit [Quit: Leaving]
torknuck has quit [Read error: Connection reset by peer]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Ping timeout: 264 seconds]
TomyLobo has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
paolo_ has joined #ruby
ur5us has joined #ruby
imode has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
elbuki has joined #ruby
quobo has joined #ruby
Mon_Ouie has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
okdas has quit [Read error: Connection reset by peer]
NightMonkey has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Connection reset by peer]
armyriad has quit [Quit: Leaving]
paolo_ has quit [Quit: paolo_]
milardovich has joined #ruby
__Yiota has joined #ruby
ResidentBiscuit has quit []
_sfiguser has joined #ruby
justthisguy has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has quit [Ping timeout: 252 seconds]
jdawgaz has joined #ruby
armyriad has joined #ruby
krz has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest34316 has joined #ruby
bvcosta has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
marcux has joined #ruby
charliesome has joined #ruby
krz has quit [Ping timeout: 240 seconds]
marcux has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
belmoussaoui has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
nofxx has joined #ruby
milardovich has joined #ruby
rahrah_ has left #ruby [#ruby]
bronson has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 246 seconds]
kn-928 has quit [Quit: WeeChat 1.9]
funn_Q has joined #ruby
<funn_Q> hi
<dminuoso> Hello.
Slinky_Pete has joined #ruby
houhoulis has quit [Remote host closed the connection]
goyox86 has joined #ruby
__Yiota has joined #ruby
Slinky_Pete has quit [Ping timeout: 246 seconds]
ted_ has joined #ruby
Salmonidae has left #ruby [#ruby]
ted_ has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
goyox86 has quit [Read error: Connection reset by peer]
goyox86 has joined #ruby
evie_hammond has left #ruby ["WeeChat 1.9"]
guille-moe has joined #ruby
heftig has quit [Ping timeout: 264 seconds]
milardovich has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
milardovich has quit [Client Quit]
funn_Q has left #ruby ["Leaving"]
heftig has joined #ruby
milardovich has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest34316 has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
rafasc has joined #ruby
eminencehc has quit [Remote host closed the connection]
QualityAddict has joined #ruby
_sfiguser has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
nofxx has joined #ruby
goyox86 has quit [Quit: goyox86]
__Yiota has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
itmerc[m] has joined #ruby
conta has quit [Ping timeout: 240 seconds]
numbdewd has joined #ruby
harai_ has joined #ruby
phaul has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
cadillac_ has joined #ruby
FastJack_ has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
funkytwig has joined #ruby
gusrub has joined #ruby
harai_ has quit [Ping timeout: 264 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit []
moei has quit [Quit: Leaving...]
houhoulis has joined #ruby
Sembei has quit [Ping timeout: 264 seconds]
__Yiota has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Slinky_Pete has joined #ruby
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
bronson has joined #ruby
Slinky_Pete has quit [Ping timeout: 255 seconds]
pilne has joined #ruby
clemens3 has quit [Quit: WeeChat 1.0.1]
bronson has quit [Ping timeout: 264 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 252 seconds]
roadt has joined #ruby
maryo has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
funkytwig has quit [Ping timeout: 240 seconds]
roadt has quit [Ping timeout: 248 seconds]