« Back to channel list

#ruby - 17 September 2017

« Back 1 day Forward 1 day »
[00:05:22] milardovich: has joined #ruby
[00:09:44] charliesome: has joined #ruby
[00:18:33] charliesome: has joined #ruby
[00:19:01] kille: has joined #ruby
[00:24:34] Guest39719: has joined #ruby
[00:25:22] Slinky_Pete: has joined #ruby
[00:27:12] numbdewd: has joined #ruby
[00:38:53] kn-928: has joined #ruby
[00:45:18] sandroqz: has joined #ruby
[00:47:54] haylon: havenwood: Check these articles out!
[00:47:55] haylon: https://lostechies.com/derickbailey/2009/09/17/how-a-net-developer-hacked-out-a-rake-task/
[00:48:04] haylon: https://lostechies.com/derickbailey/2009/09/18/an-alternate-way-to-handle-task-dependencies-in-custom-rake-tasks/
[00:48:17] naprimer2: has joined #ruby
[00:51:53] 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
[00:58:13] houhoulis: has joined #ruby
[01:00:48] Slinky_Pete: has joined #ruby
[01:10:32] marcux: has joined #ruby
[01:13:09] enterprisey: has joined #ruby
[01:17:25] gizmore|2: has joined #ruby
[01:25:58] Guest39719: has joined #ruby
[01:26:04] charliesome: has joined #ruby
[01:26:51] bronson: has joined #ruby
[01:39:59] d^sh: has joined #ruby
[01:42:23] QualityAddict: has joined #ruby
[01:46:32] Guest39719: has joined #ruby
[01:56:15] haylon: Did run into a "snag" where I can't call my Rake task twice like Rake::TestTask can.
[01:56:16] haylon: https://stackoverflow.com/q/46259961/2009612
[01:57:56] Emmanuel_Chanel: has joined #ruby
[01:57:58] Algebr: has joined #ruby
[01:58:03] marcux: has joined #ruby
[02:01:11] ur5us: has joined #ruby
[02:02:36] Algebr`: has joined #ruby
[02:06:38] hinbody: has joined #ruby
[02:06:59] charliesome: has joined #ruby
[02:07:52] harfangk: has joined #ruby
[02:09:44] orbyt_: has joined #ruby
[02:10:46] veex: haylon: I'm a bit lost myself but fire up irb and run `Phil::FooTask.new(:stuff)`. That should give you some pointers.
[02:11:14] 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 {}
[02:11:21] marcux: has joined #ruby
[02:11:46] nofxx: has joined #ruby
[02:12:01] haylon: How would I load that into IRB, just a require as usual?
[02:14:31] haylon: its showing that the @name=:stuff
[02:15:03] veex: This is what I'm seeing: `#<Phil::FooTask:0x00000001115548 @name=:task, @data=nil, @task_dependencies=:stuff>`
[02:16:16] haylon: This is what I got `#<Phil::FooTask:0x000000042c9a58 @name=:stuff, @data=nil, @task_dependencies={}>` I might be doing something wrong
[02:16:59] veex: if you see `@name=:stuff` then your `rake --tasks` should show the names correctly, is it not?
[02:17:27] veex: hmm, I'm lost twice!
[02:17:30] 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
[02:18:03] gusrub: has joined #ruby
[02:18:07] veex: ok, let me update the code.
[02:18:56] haylon: I should've been more specific, my apologies :P
[02:19:38] veex: No worries, I'm still getting the same thing even with the added `self`.
[02:25:20] ravaviel78: has joined #ruby
[02:26:40] imode: has joined #ruby
[02:27:59] veex: if you modify initialization of `:stuff` task as `Phil::FooTask.new(:stuff, []) do |t|` then it works.
[02:29:07] veex: Or just keep everything else intact and modify `initialize` method to `def initialize(name = :task, task_dependencies=[])`.
[02:29:37] haylon: instead of a hash?
[02:29:47] haylon: :facepalm: not sure why I made it a hash
[02:31:18] haylon: Well, vee_, do you want to answer my question and be the hero?
[02:32:56] veex: lol, no need. Keep the question open there might be other gurus out there with better explanation.
[02:33:39] 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
[02:34:50] 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
[02:36:50] kn-928: has joined #ruby
[02:39:12] krz: has joined #ruby
[02:39:52] chalkmonster: has joined #ruby
[02:41:29] veex: Would love to see what you're up to, if it's going to open source.
[02:42:01] veex: Will try to put together an answer sometime later.
[02:43:28] 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.
[02:43:54] haylon: I might also be working on one to make Splunk Apps, but I'm not sure how I want to structure it yet.
[02:44:36] veex: Sounds exciting, keep going!
[02:44:52] haylon: I am working on a DSL thought o generate HTML
[02:51:51] gusrub: has joined #ruby
[02:55:08] harai_: has joined #ruby
[03:00:46] armyriad: has joined #ruby
[03:01:12] matled: has joined #ruby
[03:02:00] [reed]: has joined #ruby
[03:02:00] [reed]: has joined #ruby
[03:05:32] milardovich: has joined #ruby
[03:07:53] Guest39719: has joined #ruby
[03:12:10] _whitelogger: has joined #ruby
[03:14:52] mson: has joined #ruby
[03:15:18] jdawgaz: has joined #ruby
[03:15:38] AndroUser2: has joined #ruby
[03:16:13] nofxx: has joined #ruby
[03:16:19] AndroUser2: has joined #ruby
[03:20:01] __Yiota: has joined #ruby
[03:28:27] bronson: has joined #ruby
[03:36:19] nowhereman: has joined #ruby
[03:39:41] kn-928: has joined #ruby
[03:45:50] banisterfiend: has joined #ruby
[03:46:06] gix: has joined #ruby
[03:47:10] Mon_Ouie: has joined #ruby
[03:57:16] milardovich: has joined #ruby
[04:00:42] nofxx: has joined #ruby
[04:01:31] MrBusiness3: has joined #ruby
[04:01:40] rabajaj: has joined #ruby
[04:02:42] SuperLag: has joined #ruby
[04:03:28] milardovich: has joined #ruby
[04:05:01] jackjackdripper: has joined #ruby
[04:09:39] paradisaeidae: has joined #ruby
[04:09:45] paradisaeidae_: has joined #ruby
[04:12:15] kn-928: has joined #ruby
[04:12:48] nofxx: has joined #ruby
[04:14:05] GhostK: has joined #ruby
[04:22:39] mistnim: has joined #ruby
[04:29:09] tylluan: has joined #ruby
[04:29:20] Guest39719: has joined #ruby
[04:32:19] GhostK: has joined #ruby
[04:42:14] psychicist__: has joined #ruby
[04:52:11] nofxx: has joined #ruby
[04:58:36] mistnim: has joined #ruby
[05:04:28] JD2020X: has joined #ruby
[05:16:48] sleepee: has joined #ruby
[05:17:19] govg: has joined #ruby
[05:19:27] sleepee: has joined #ruby
[05:24:10] _whitelogger: has joined #ruby
[05:26:59] mkali: has joined #ruby
[05:30:01] bronson: has joined #ruby
[05:30:25] Guest39719: has joined #ruby
[05:34:19] mkali: has joined #ruby
[05:37:00] bauruine: has joined #ruby
[05:44:23] mistnim: has joined #ruby
[05:46:59] Sembei: has joined #ruby
[05:50:57] Guest39719: has joined #ruby
[05:53:56] alex``: has joined #ruby
[05:54:22] sneakerhax: has joined #ruby
[05:54:56] sneakerhax: has left #ruby: ()
[05:55:17] mim1k: has joined #ruby
[06:01:18] milardovich: has joined #ruby
[06:17:29] harai_: has joined #ruby
[06:28:46] naprimer3: has joined #ruby
[06:34:26] phaul: has joined #ruby
[06:48:45] imode: has joined #ruby
[06:51:38] znz_jp: has joined #ruby
[06:56:37] krz: has joined #ruby
[06:57:37] jackjackdripper: has joined #ruby
[06:57:46] bruno-_: has joined #ruby
[07:09:01] konsolebox: has joined #ruby
[07:12:19] Guest39719: has joined #ruby
[07:15:36] dionysus69: has joined #ruby
[07:21:53] frozengeek: has joined #ruby
[07:27:05] belmoussaoui: has joined #ruby
[07:29:50] bauruine: has joined #ruby
[07:30:00] raynold: has joined #ruby
[07:30:49] bronson: has joined #ruby
[07:31:52] mkali_: has joined #ruby
[07:37:26] kn-928: has joined #ruby
[07:38:32] krz: has joined #ruby
[07:38:49] TomyLobo: has joined #ruby
[07:41:08] milardovich: has joined #ruby
[07:43:40] maryo: has joined #ruby
[07:46:49] elbuki: has joined #ruby
[07:53:39] claudiuinberlin: has joined #ruby
[07:55:05] harfangk: has joined #ruby
[07:57:50] shaman42: has joined #ruby
[08:00:33] p0p0pr37: has joined #ruby
[08:01:24] _main_: has joined #ruby
[08:02:28] _main_: has joined #ruby
[08:02:42] VladGh_: has joined #ruby
[08:04:27] romain_t: has joined #ruby
[08:11:38] dS_dE: has joined #ruby
[08:13:25] Guest39719: has joined #ruby
[08:14:56] anas: has joined #ruby
[08:17:34] elbuki: is there anyone who thinks that ruby is used just for rails?
[08:23:36] jinie: has joined #ruby
[08:23:57] marr: has joined #ruby
[08:26:52] Puffball: has joined #ruby
[08:27:51] rgr: has joined #ruby
[08:29:45] p0p0pr37_: has joined #ruby
[08:33:40] belmoussaoui: has joined #ruby
[08:33:53] Guest39719: has joined #ruby
[08:34:28] nobitanobi: has joined #ruby
[08:35:29] dn`: has joined #ruby
[08:37:29] davidrak: has joined #ruby
[08:44:38] nicolai86: has joined #ruby
[08:53:22] Sulcino: has joined #ruby
[08:53:23] rahul_bajaj: has joined #ruby
[08:53:34] mistnim: has joined #ruby
[08:55:19] rabajaj: has joined #ruby
[08:59:41] Sulcino: has joined #ruby
[09:00:33] yxhuvud: Yes, the frontenders at the company I work at.
[09:01:19] torknuck_: has joined #ruby
[09:01:50] rabajaj: has joined #ruby
[09:02:51] jdawgaz: has joined #ruby
[09:03:19] konsolebox: has joined #ruby
[09:04:16] torknuck: has joined #ruby
[09:08:03] mistnim: has joined #ruby
[09:09:00] ahrs: has joined #ruby
[09:10:16] rahul_bajaj: has joined #ruby
[09:12:41] selim: has joined #ruby
[09:16:54] milardovich: has joined #ruby
[09:17:03] mistnim: has joined #ruby
[09:24:25] maryo: has joined #ruby
[09:27:12] rahul_bajaj: has joined #ruby
[09:28:18] mistnim: has joined #ruby
[09:31:51] bronson: has joined #ruby
[09:32:22] Guest34316: has joined #ruby
[09:34:58] Guest39719: has joined #ruby
[09:40:43] tw1sted: has joined #ruby
[09:40:59] kn-928: has joined #ruby
[09:42:07] balo: has joined #ruby
[09:42:31] genpaku: has joined #ruby
[09:46:43] FifthWall: has joined #ruby
[09:46:51] segy: has joined #ruby
[09:48:13] InfinityFye: has joined #ruby
[09:54:11] _whitelogger: has joined #ruby
[09:55:25] Guest39719: has joined #ruby
[10:02:52] lxsameer: has joined #ruby
[10:02:55] maryo: has joined #ruby
[10:09:33] gettsu: has joined #ruby
[10:09:35] quobo: has joined #ruby
[10:10:27] gettsu: has left #ruby: ()
[10:16:31] maryo_: has joined #ruby
[10:32:11] guille-moe: has joined #ruby
[10:35:30] ltem: has joined #ruby
[10:43:27] teaalligator: has joined #ruby
[10:44:01] teaalligator: has left #ruby: ("Leaving")
[10:44:50] p0p0pr37: has joined #ruby
[10:46:33] nicolai86: has joined #ruby
[10:51:35] mistnim: has joined #ruby
[10:53:41] rgr_: has joined #ruby
[10:55:59] krz: has joined #ruby
[10:58:56] FastJack: has joined #ruby
[11:01:02] ShalokShalom: has joined #ruby
[11:04:22] t-recx: has joined #ruby
[11:04:29] phaul: has joined #ruby
[11:05:11] milardovich: has joined #ruby
[11:06:04] clemens3: has joined #ruby
[11:09:57] t-recx: has joined #ruby
[11:11:52] marcux: has joined #ruby
[11:16:33] Guest39719: has joined #ruby
[11:22:27] dionysus69: has joined #ruby
[11:26:04] al2o3-cr: has joined #ruby
[11:29:02] DipoleHourglass: has joined #ruby
[11:30:44] marcux: has joined #ruby
[11:33:12] bronson: has joined #ruby
[11:33:58] kn-928: has joined #ruby
[11:41:41] nicolai86: has joined #ruby
[11:46:08] sepp2k: has joined #ruby
[11:48:01] phaul: has joined #ruby
[11:49:46] EminenceHC: has joined #ruby
[11:52:05] ShalokShalom_: has joined #ruby
[11:53:18] nofxx: has joined #ruby
[11:53:49] sandelius: has joined #ruby
[11:54:40] 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");
[11:56:27] matthewd: sandelius: Call #match ?
[11:56:28] nicolai86: has joined #ruby
[11:56:35] goyox86: has joined #ruby
[11:58:25] sandelius: matthewd I want to run the regexp from my extension
[11:59:24] lxsameer: has joined #ruby
[11:59:55] dminuoso: sandelius, "foo".match(regex) is just sugar for regex.match("foo")
[12:00:42] dminuoso: sandelius, look at the internal implementation of String#match and it should be obvious
[12:00:51] milardovich: has joined #ruby
[12:01:02] sandelius: dminuoso I'm trying to make it happen inside a method defined with rb_define_method (in C)
[12:01:52] matthewd: sandelius: rb_funcall
[12:02:21] sandelius: matthewd yeah found rb_reg_match aswell, not alot of docs regarding this topic. thx tho
[12:02:58] 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
[12:04:25] matthewd: And without checking the rb_reg_match implementation, it seems less likely to segfault if you have a non-Regexp
[12:10:14] marcux: has joined #ruby
[12:10:44] sonOfRa: has joined #ruby
[12:19:02] sepp2k1: has joined #ruby
[12:25:05] 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'
[12:29:11] m4rCsi: has joined #ruby
[12:29:14] ONDIE: has joined #ruby
[12:29:36] ONDIE: has left #ruby: ()
[12:42:38] __Yiota: has joined #ruby
[12:44:35] belmoussaoui_: has joined #ruby
[12:48:33] raatiniemi: has joined #ruby
[12:53:19] sonOfRa: has joined #ruby
[12:54:05] _sfiguser: has joined #ruby
[12:56:05] GodFather: has joined #ruby
[12:59:18] uZiel: has joined #ruby
[13:02:48] belmoussaoui: has joined #ruby
[13:03:38] GodFather: has joined #ruby
[13:18:50] sonOfRa: has joined #ruby
[13:21:59] uZiel: has joined #ruby
[13:26:12] Sammichmaker: has joined #ruby
[13:27:52] belmoussaoui: has joined #ruby
[13:29:10] belmoussaoui__: has joined #ruby
[13:34:06] bronson: has joined #ruby
[13:38:53] kn-928: has joined #ruby
[13:43:04] uZiel: has joined #ruby
[13:45:44] oleo: has joined #ruby
[13:48:49] milardovich: has joined #ruby
[13:49:17] p0p0pr37: has joined #ruby
[13:59:06] InfinityFye: has joined #ruby
[14:00:37] krz: has joined #ruby
[14:25:57] milardovich: has joined #ruby
[14:34:40] Slinky_Pete: has joined #ruby
[14:39:23] chalkmonster: has joined #ruby
[14:39:47] houhoulis: has joined #ruby
[14:41:22] griffindy: has joined #ruby
[14:43:43] Zimsky: has joined #ruby
[14:46:15] belmoussaoui: has joined #ruby
[14:54:03] milardovich: has joined #ruby
[14:55:51] Guest34316: has joined #ruby
[15:01:12] transhuman_: has joined #ruby
[15:01:20] krz: has joined #ruby
[15:02:15] 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?
[15:02:20] transhuman_: thanks in advance
[15:07:51] silverdust: What are some classes/libs to look out for when sandboxing ruby for public use
[15:10:29] 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.
[15:12:00] BSaboia: has joined #ruby
[15:12:19] dminuoso: silverdust, take a look at the implementation of geordi, there you can find a low level selection of safe and unsafe syscalls.
[15:12:52] 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?
[15:12:54] Salmonidae: you still have to block those calls in ruby-land.
[15:13:00] Salmonidae: which is error prone.
[15:13:08] Salmonidae: leave it to the experts, imo, and use what they built
[15:13:44] 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.
[15:14:45] Salmonidae: pledge is pretty close btw. iirc it operates on syscalls, at least at some level. cant remember
[15:15:14] 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.
[15:15:17] dminuoso: silverdust, note that geordi uses docker and seccomp + careful syscall blocking to ensure the sandbox
[15:15:34] dminuoso: seccomp is the noteworthy feature in there.
[15:16:12] Papierkorb: Anything that doesn't use seccomp is *not* an option for sandboxing by definition.
[15:17:52] 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.
[15:22:40] rippa: has joined #ruby
[15:23:27] transhuman_: thanks Salmonidae
[15:23:38] Salmonidae: welcome. good luck.
[15:23:56] transhuman_: one more question for you would the docker image be a simpler method for a docker user?
[15:24:14] Salmonidae: i dont know. i don't use it
[15:24:23] transhuman_: for me I just need to run a few scripts one time
[15:24:36] Salmonidae: i really don't know :( sorry.
[15:24:46] transhuman_: no problem thanks for the help Salmonidae
[15:24:48] dminuoso: transhuman_, https://github.com/postmodern/ruby-install
[15:24:53] goyox86: has joined #ruby
[15:25:05] dminuoso: transhuman_, that's the minimalistic and stable approach we tend to recommend for all beginners and users.
[15:25:22] transhuman_: ok perfect, i will use it then
[15:25:33] sepp2k: has joined #ruby
[15:25:56] Salmonidae: but know its limitations. rvm makes a concentrated effort to keep old rubies compiling. and ruby-install cannot install ruby-head, jruby-head.
[15:26:16] dminuoso: If you have special needs, chances are you wouldn't be coming into this channel and asking this.
[15:28:20] EminenceHC: has joined #ruby
[15:28:43] silverdust: Thanks for the inputs dminuoso Papierkorb
[15:28:50] Slinky_Pete: has joined #ruby
[15:29:10] Papierkorb: rvm makes an effort to break your shell too.
[15:29:10] silverdust: Was already told that put it in a docker container would be the best thing to do
[15:29:21] Papierkorb: silverdust: Not *only* a docker container!
[15:29:30] dviola: has joined #ruby
[15:29:33] Salmonidae: Papierkorb: it has quirks, but if you're seeking "perfect" you will never find it.
[15:29:55] silverdust: But I was lazy about the implementation cost. Wish to have seen something like this for ruby http://npm.im/vm2
[15:29:56] 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.
[15:29:58] dminuoso: silverdust, docker + seccomp + resource limitation (you really wouldn't want a single user mining bitcoin)
[15:30:08] dminuoso: If you skip any of these three, you will get bitten back.
[15:30:32] Salmonidae: walk with beasty for this problem.
[15:30:33] Papierkorb: silverdust: That npm packet looks horribly dangerous
[15:30:37] Salmonidae: that's my advice
[15:30:44] Salmonidae: really dont care if you listen or not :)
[15:31:42] silverdust: dminuoso: is this the geordi you were talking about https://github.com/makandra/geordi ?
[15:31:58] dminuoso: silverdust, https://github.com/Eelis/geordi this is
[15:31:59] Papierkorb: silverdust: There are similar gems for ruby though. And they're all just as dangerous.
[15:32:45] silverdust: I'm currently blocking exec , sys, backtics , and %x
[15:32:57] silverdust: Then Dir and File
[15:33:01] Papierkorb: That's not what you want to do at all
[15:33:05] dminuoso: silverdust, that approach is not sustainable.
[15:33:06] Alina-malina: has joined #ruby
[15:33:14] Papierkorb: silverdust: That is mind boggingly dangerous.
[15:33:21] dminuoso: silverdust, I will eventually find a ruby method that access files of my liking. Or executes sycalls on my behalf directly.,
[15:33:47] dminuoso: Ruby is far too dynamic to make any blacklisting of methods work reasonably
[15:34:00] Papierkorb: Yeah we'd just require fiddle and off we go.
[15:34:02] Salmonidae: why repeat yourself. all this advice has been iterated already.
[15:34:08] dminuoso: ^- and if you think thats a joke
[15:34:10] silverdust: I blocked require too
[15:34:22] dminuoso: I had fiddle code that implemented object casting in Ruby in production.
[15:34:23] Salmonidae: i said at the start
[15:34:25] Salmonidae: one of the first things
[15:34:31] Salmonidae: if ears are closed they're closed
[15:34:34] Salmonidae: don't waste your time
[15:34:47] dminuoso: silverdust, you can only solve this by going from the other direction: seccomp.
[15:34:51] silverdust: I'm following all of these things. You aren't wasting your time
[15:34:53] bronson: has joined #ruby
[15:35:16] Papierkorb: silverdust: Don't worry, Salmonidae is just having a bad day or something
[15:35:42] Salmonidae: yeah. sorry if i'm rude. but plenty of advice has been given. including a list of options.
[15:37:21] quobo: has joined #ruby
[15:37:31] dminuoso: silverdust, and are you sure you want to block require?
[15:37:37] dminuoso: >> {}.to_json
[15:37:38] ruby[bot]: dminuoso: # => undefined method `to_json' for {}:Hash ...check link for more (https://eval.in/863240)
[15:37:53] kn-928: has joined #ruby
[15:38:49] dminuoso: silverdust, you'd be locked out of the entire stdlib :-)
[15:39:21] silverdust: yes my goal is for nothing to be able to be required. You could still do things like Math::cos(0)
[15:39:22] Salmonidae: no. you can bootstrap the stdlib(require what is allowed), then apply pledge() to disallow fs reads.
[15:39:41] Salmonidae: require '..' becomes a no-op. returns false.
[15:40:06] Salmonidae: http://man.openbsd.org/OpenBSD-current/man2/pledge.2
[15:40:08] Papierkorb: Who cares about require if I can just break out of the VM itself
[15:40:18] Salmonidae: https://github.com/jeremyevans/ruby-pledge
[15:42:51] silverdust: Thanks to y'all for your inputs
[15:43:49] Salmonidae: apologies if i was rude. im tired. see you later.
[15:43:55] 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
[15:44:02] milardovich: has joined #ruby
[15:44:03] silverdust: no p Salmonidae
[15:47:07] kn-928: has joined #ruby
[15:53:17] __Yiota: has joined #ruby
[15:54:06] mniip: has left #ruby: ("Leaving")
[15:58:19] mikeiniowa: has joined #ruby
[15:59:37] orbyt_: has joined #ruby
[16:02:05] krz: has joined #ruby
[16:02:26] funkytwig: has joined #ruby
[16:04:45] Kanibal: has joined #ruby
[16:05:10] Kanibal: does anybody know if :hash is a reserved field name in mongoid?
[16:06:19] 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
[16:07:28] Papierkorb: Kanibal: no idea about mongo, but you're overwriting `Object#hash` there, which is probably not what you intended :)
[16:08:59] 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.
[16:10:03] Kanibal: I'll just call it password_hash then
[16:10:12] SeepingN: has joined #ruby
[16:13:28] nowhereman: has joined #ruby
[16:16:10] claudiuinberlin: has joined #ruby
[16:16:40] Alina-malina: has joined #ruby
[16:17:37] kapil___: has joined #ruby
[16:22:32] mkali: has joined #ruby
[16:31:57] goyox86: has joined #ruby
[16:33:40] nowhereman: has joined #ruby
[16:34:46] foxxx0: has joined #ruby
[16:36:04] mim1k: has joined #ruby
[16:43:51] conta: has joined #ruby
[16:51:10] _whitelogger: has joined #ruby
[16:51:59] milardovich: has joined #ruby
[16:57:39] harfangk: has joined #ruby
[17:02:51] krz: has joined #ruby
[17:12:17] bruno-: has joined #ruby
[17:12:26] neo95: has joined #ruby
[17:14:37] oleo: has joined #ruby
[17:17:09] Slinky_Pete: has joined #ruby
[17:19:46] detectiveaoi: has joined #ruby
[17:21:47] belmoussaoui: has joined #ruby
[17:27:43] alex``: has joined #ruby
[17:28:39] Dimik: has joined #ruby
[17:34:05] jdawgaz: has joined #ruby
[17:35:25] ascarter: has joined #ruby
[17:35:56] bronson: has joined #ruby
[17:36:10] neo95: has joined #ruby
[17:36:34] oleo: has joined #ruby
[17:37:53] sepp2k1: has joined #ruby
[17:38:28] justthisguy: has joined #ruby
[17:40:48] jinie: has joined #ruby
[17:42:57] kies: has joined #ruby
[17:43:26] sandroqz: has joined #ruby
[17:44:48] sandroqz: has joined #ruby
[17:48:30] bruno-: has joined #ruby
[17:48:48] jdawgaz: has joined #ruby
[17:49:15] Guest34316: has joined #ruby
[17:51:34] belmoussaoui: has joined #ruby
[17:53:51] mjolnird: has joined #ruby
[18:03:35] krz: has joined #ruby
[18:11:42] Slinky_Pete: has joined #ruby
[18:13:46] maryo: has joined #ruby
[18:15:35] kn-928: has joined #ruby
[18:15:42] belmoussaoui: has joined #ruby
[18:18:14] kn-928: has joined #ruby
[18:23:04] bvcosta: has joined #ruby
[18:28:07] Guest34316: has joined #ruby
[18:39:45] ascarter_: has joined #ruby
[18:40:27] musl: has joined #ruby
[18:42:52] musl: has joined #ruby
[18:46:41] griffindy: has joined #ruby
[18:47:25] naprimer: has joined #ruby
[18:48:26] houhoulis: has joined #ruby
[18:55:23] heftig: has joined #ruby
[18:56:02] spt0: has joined #ruby
[19:04:53] krz: has joined #ruby
[19:05:46] Slinky_Pete: has joined #ruby
[19:08:42] charliesome: has joined #ruby
[19:10:15] torknuck: has joined #ruby
[19:10:37] hinbody: has joined #ruby
[19:16:49] sepp2k: has joined #ruby
[19:18:10] segy: has joined #ruby
[19:18:38] ResidentBiscuit: has joined #ruby
[19:25:42] neo95: has joined #ruby
[19:29:53] ananas777: has joined #ruby
[19:35:21] milardovich: has joined #ruby
[19:35:56] jdawgaz: has joined #ruby
[19:36:01] marr: has joined #ruby
[19:37:09] bronson: has joined #ruby
[19:43:19] conta: has joined #ruby
[19:49:04] conta: has joined #ruby
[19:59:56] Slinky_Pete: has joined #ruby
[20:01:53] rahrah_: has joined #ruby
[20:02:36] kn-928: has joined #ruby
[20:03:53] mson: has joined #ruby
[20:04:42] gigetoo: has joined #ruby
[20:05:27] krz: has joined #ruby
[20:06:37] neo95: has joined #ruby
[20:09:22] uZiel: has joined #ruby
[20:17:51] TomyLobo: has joined #ruby
[20:18:47] paolog: has joined #ruby
[20:19:03] ur5us: has joined #ruby
[20:20:52] imode: has joined #ruby
[20:30:14] elbuki: has joined #ruby
[20:31:42] quobo: has joined #ruby
[20:31:56] Mon_Ouie: has joined #ruby
[20:37:35] NightMonkey: has joined #ruby
[20:47:26] milardovich: has joined #ruby
[20:51:02] __Yiota: has joined #ruby
[20:51:18] _sfiguser: has joined #ruby
[20:52:33] jdawgaz: has joined #ruby
[20:54:55] armyriad: has joined #ruby
[20:58:35] krz: has joined #ruby
[21:07:26] Guest34316: has joined #ruby
[21:12:13] belmoussaoui: has joined #ruby
[21:13:34] marcux: has joined #ruby
[21:13:43] charliesome: has joined #ruby
[21:28:04] Dimik: has joined #ruby
[21:29:28] nofxx: has joined #ruby
[21:31:20] milardovich: has joined #ruby
[21:37:47] rahrah_: has left #ruby: ()
[21:37:49] bronson: has joined #ruby
[21:45:11] funn_Q: has joined #ruby
[21:48:14] Slinky_Pete: has joined #ruby
[21:48:43] goyox86: has joined #ruby
[21:51:47] __Yiota: has joined #ruby
[21:55:03] tedL: has joined #ruby
[21:55:10] Salmonidae: has left #ruby: ()
[21:57:25] EminenceHC: has joined #ruby
[21:57:42] goyox86: has joined #ruby
[22:01:10] evie_hammond: has left #ruby: ("WeeChat 1.9")
[22:02:44] guille-moe: has joined #ruby
[22:10:31] milardovich: has joined #ruby
[22:12:26] funn_Q: has left #ruby: ("Leaving")
[22:12:51] heftig: has joined #ruby
[22:13:23] milardovich: has joined #ruby
[22:27:20] rafasc: has joined #ruby
[22:33:13] QualityAddict: has joined #ruby
[22:37:18] p0p0pr37: has joined #ruby
[22:37:18] p0p0pr37: has joined #ruby
[22:38:24] nofxx: has joined #ruby
[22:47:04] __Yiota: has joined #ruby
[22:47:58] itmerc[m]: has joined #ruby
[22:56:58] numbdewd: has joined #ruby
[22:57:09] harai_: has joined #ruby
[23:01:48] __Yiota: has joined #ruby
[23:02:28] cadillac_: has joined #ruby
[23:04:05] FastJack_: has joined #ruby
[23:05:52] funkytwig: has joined #ruby
[23:06:57] gusrub: has joined #ruby
[23:25:54] houhoulis: has joined #ruby
[23:29:04] __Yiota: has joined #ruby
[23:36:31] Slinky_Pete: has joined #ruby
[23:38:30] okdas: has joined #ruby
[23:38:30] okdas: has joined #ruby
[23:39:11] bronson: has joined #ruby
[23:41:35] pilne: has joined #ruby
[23:51:07] roadt: has joined #ruby
[23:57:08] charliesome: has joined #ruby