« Back to channel list

#ruby - 22 February 2016

« Back 1 day Forward 1 day »
[00:00:37] tulak_: has joined #ruby
[00:01:16] s00pcan: has joined #ruby
[00:01:27] eregi: has joined #ruby
[00:01:34] weemsledeux: has joined #ruby
[00:03:22] Kryptonical: has joined #ruby
[00:03:52] ElFerna: has joined #ruby
[00:03:56] Xeago: has joined #ruby
[00:04:03] ur5us: has joined #ruby
[00:04:05] KensoDev: has joined #ruby
[00:07:30] chipotle: has joined #ruby
[00:09:27] sudoubuntu: has joined #ruby
[00:11:05] albedoa: has joined #ruby
[00:13:52] sucks: has joined #ruby
[00:14:35] dlitvak: has joined #ruby
[00:16:21] allcentury: has joined #ruby
[00:16:33] fedexo: has joined #ruby
[00:17:05] urbanmonk: has joined #ruby
[00:17:05] thevaliantx: has joined #ruby
[00:18:12] urbanmonk: has left #ruby: ()
[00:18:36] urbanmonk: has joined #ruby
[00:19:55] fedexo: has joined #ruby
[00:19:56] kalopsian: has joined #ruby
[00:20:24] urbanmonk: has left #ruby: ()
[00:20:34] LoneHerm_: has joined #ruby
[00:20:46] urbanmonk: has joined #ruby
[00:21:39] shazaum: has joined #ruby
[00:22:05] Trynemjoel: has joined #ruby
[00:22:28] LoneHerm_: has joined #ruby
[00:23:04] nando293921: has joined #ruby
[00:24:33] nando293921: has joined #ruby
[00:24:52] sgambino: has joined #ruby
[00:31:21] ledestin: has joined #ruby
[00:31:26] DEA7TH: has left #ruby: ()
[00:33:03] sucks: has joined #ruby
[00:34:47] sgambino: has joined #ruby
[00:34:50] postmodern: has joined #ruby
[00:36:31] devbug: has joined #ruby
[00:39:17] bronson: has joined #ruby
[00:39:31] Trynemjoel: has joined #ruby
[00:39:42] nettoweb: has joined #ruby
[00:39:51] albedoa: has joined #ruby
[00:42:00] duckpupp1: has joined #ruby
[00:42:19] tAn: has joined #ruby
[00:43:26] LoganG: has joined #ruby
[00:44:39] gaxar77: has joined #ruby
[00:49:06] ledestin: has joined #ruby
[00:50:21] postmodern: has joined #ruby
[00:50:26] youngmathimus0: What's wrong with RVM?
[00:50:29] eregi: has joined #ruby
[00:52:43] Radar: Youngmathimus0: It's extremely bloated and when things go wrong (read: they will go wrong) it's a complete headfuck to debug.
[00:54:28] postmodern: has joined #ruby
[00:55:07] bougyman: counterpoint: I completely disagree with Radar.
[00:55:29] bougyman: it doesn't seem "extremely bloated", the footprint is barely noticable.
[00:55:49] bougyman: and when things go wrong, it's been painless to debug.
[00:55:58] bougyman: they haven't gone wrong very often.
[00:58:47] Flakes: has joined #ruby
[00:59:41] hays: is there another way to describe class methods either than self.foo
[01:03:22] bnagy: bougyman: that's kind of a ridiculous diatribe
[01:03:33] bnagy: it is the heaviest version manager available
[01:03:46] bnagy: it is the least unix-like (cd hooks, script magic)
[01:04:01] bnagy: those are indisputable
[01:04:13] bougyman: I still don't consider it 'extremely bloated'
[01:04:21] bougyman: it does more than the others.
[01:04:27] bougyman: (out of the box)
[01:04:38] bnagy: the rest of what you said is personal experience. In mine, there are 4-5x as many people on here with hair pulling problems with RVM compared to the other two
[01:04:53] fedexo: has joined #ruby
[01:05:02] bnagy: and again IME usually those problems can't be fixed in here, we have to send people to the RVM channel
[01:05:09] bnagy: because it requires specialist knowledge
[01:05:09] nando293921: has joined #ruby
[01:05:31] bnagy: so, in summary, I think everything you said there is either wrong or baseless
[01:05:32] bougyman: I haven't seen a lot of rvm-related questions in here.
[01:05:34] bougyman: I see them in #rvm
[01:08:07] hays: how does one implement ruby in ruby, and then somehow it has performance improvements from the reference implementation?
[01:08:19] hays: what does it run on?
[01:09:11] Jonah11_: has joined #ruby
[01:09:36] ohaibbq: has joined #ruby
[01:10:24] hays: bnagy: how?
[01:11:01] bnagy: so all rubies actually target a VM. The "standard" ruby targets a VM written in C called YARV
[01:11:12] Manolo_: use Docker and you never use a ruby version manager again
[01:11:18] bnagy: so your ruby gets turned into VM code not raw machine code
[01:11:28] bnagy: JVM is ruby targeting the Java VM
[01:12:04] bnagy: rubinius targets a VM called LLVM which is used for a ton of projects these days, it's a very good VM
[01:12:32] bnagy: which means they can implement a lot of stdlib in ruby because their VM translation yields good code
[01:12:59] bnagy: although I am slightly mixing the 'in theory' with the 'IRL' here
[01:13:32] bnagy: YARV translation is not very good, which is why most of core is actually written in C
[01:13:42] kalopsian: has joined #ruby
[01:14:03] hays: bnagy: hmm.. so the part i don't get is why its considered to be written in ruby and not whatever language it is written for in llvm
[01:14:15] hays: or did they bootstrap it somehow
[01:14:20] bnagy: well the methods are written in ruby
[01:14:37] bnagy: so they wrote the 'turn ruby in LLVM' part
[01:14:47] bnagy: LLVM takes care of emitting code that the CPU can run
[01:15:12] bnagy: so yeah, 'bootstrapping it' is an OK analogy
[01:15:15] Dreamer3: has joined #ruby
[01:17:15] hays: so the turn Ruby into LLVM part is written in what? C?
[01:17:25] bnagy: presumably
[01:17:31] Maletor: has joined #ruby
[01:18:07] bnagy: shuttup chrisseaton what would you know
[01:18:23] mattwildig: has joined #ruby
[01:18:27] rubynuby: has joined #ruby
[01:19:03] Trynemjoel: has joined #ruby
[01:19:09] rubynuby: hey does anyone know how to grep odd integers in an array?
[01:19:34] rubynuby: for example: [1,2,3,4,5].grep(/[135]/) #=> []
[01:19:49] rubynuby: i know it works for ['1','2','3','4','5']
[01:19:53] bnagy: rubynuby: you probably want select
[01:20:02] bnagy: numbers are not strings
[01:20:06] rubynuby: well its for this ruby problem on a website
[01:20:22] mozzarella: >> [1, 2, 3, 4, 5].select(&:odd?)
[01:20:23] ruby[bot]: mozzarella: # => [1, 3, 5] (https://eval.in/522923)
[01:20:23] postmodern: use .select and i.odd?
[01:20:24] rubynuby: assert_equal ["1", "2", "3", "4", "5"].grep(___){ |e| e.succ }, ["2", "4", "6"]
[01:20:24] rubynuby: assert_equal [1, 2, 3, 4, 5].grep(___, &:succ), [2, 4, 6]
[01:20:34] rubynuby: i have to figure out the code that fits in the blank
[01:21:12] rubynuby: if you use grep(Integers.select {|i| i.odd? } )
[01:21:23] rubynuby: something like that maybe?
[01:23:06] rubynuby: i know in this case grep isn't the first choice for selecting odd integers, i just really want to figure out this problem for no reason
[01:24:17] rubynuby: oh yeah, also the ruby version on rubeque is 1.9.3
[01:25:00] LoneHerm_: has joined #ruby
[01:25:32] roccia: has joined #ruby
[01:25:54] roccia: hi anyone there?
[01:25:58] hays: select must be like lisp filter
[01:27:57] postmodern: rubynuby, check the documentation for Array#grep
[01:28:27] roccia: I have a question about how to read large files more faster, hope someone can help me to look through my code
[01:28:36] roccia: I have a question about how to read large files more faster, hope someone can help me to look through my code
[01:28:57] bnagy: ?anyone roccia
[01:28:57] ruby[bot]: roccia: Just ask your question, if anyone has or can, they will respond.
[01:29:22] rubynuby: ive seen it, and i don't fully understand it, but i think it uses a Regexp pattern, but i can't figure out how to make it work on that problem with integers
[01:29:32] rubynuby: because Regexp only seems to work on strings
[01:29:36] postmodern: rubynuby, apparently grep() can accept a lambda/proc instead of a regex
[01:30:20] rubynuby: but i think the &:succ is the lambda/proc part
[01:30:29] hays: ok here's a real question. how do I pass a function around in Ruby?
[01:30:39] postmodern: rubynuby, try passing in a proc instead of /.../
[01:30:39] bnagy: hays: you don't
[01:30:54] rubynuby: illl give it a shot
[01:30:58] bnagy: hays: no first class functions, only procs blocks and lambdas
[01:31:00] postmodern: rubynuby, also i don't think you need &:succ
[01:31:06] Scripore: has joined #ruby
[01:31:24] hays: bnagy: so passing in a label and using method() or something similar might be the best way?
[01:31:32] roccia: I'm importing mongodb documents into elasticsearch using ruby, there are about 60000 documents, I used a each loop to insert the doc into ES one by one , it is really time consuming job, would like to know is there any way to do it faster
[01:31:58] duckpupp1: has joined #ruby
[01:32:05] rkazak: has joined #ruby
[01:32:23] bnagy: hays: uh I can't really answer that because I have no idea what you are doing or what you're using to assess best
[01:33:00] rubynuby: thanks postmodern!
[01:33:07] roccia: I wrote my own connecter(connect mongo and elasticsearch) while not using other plugin for ES
[01:33:42] postmodern: rubynuby, normally you'd use [...].select(&:odd?)
[01:34:20] roccia: if anyone used ES or using ES would know what I'm saying ..
[01:35:42] hays: bnagy: something like this, where its ok if try_func and test_func are methods of the same class as try_n: try_func and test_func
[01:35:45] robbyoconnor: has joined #ruby
[01:35:46] hays: https://bpaste.net/show/2fc401a54d6f
[01:35:51] rbennacer: has joined #ruby
[01:36:11] duderono_: has joined #ruby
[01:36:26] hays: bnagy: what i've done to fix that code is pass in labels and then do method() to convert them to their respective methods
[01:36:43] Ox0dea: hays: You recognize Ruby's Lispy-ness and still use explicit `for` loops? :(
[01:36:46] sucks: has joined #ruby
[01:37:10] hays: seemed like a reasonably expressive choice
[01:37:22] rubynuby: has left #ruby: ()
[01:37:27] bnagy: it's a "not from here" shibboleth
[01:37:51] bnagy: roccia: sry, that's just IRC. If someone knows they'll answer.
[01:38:07] bnagy: be patient
[01:38:12] bnagy: or don't, I'm not the cops
[01:38:26] c0ncealed: has joined #ruby
[01:39:01] hays: i guess no first-class functions is why we have future() in Celluloid, which I've been recently figuring out
[01:39:14] Ox0dea: Procs are first-class functions.
[01:39:38] Ox0dea: But you probably don't want to write your thing with just Procs.
[01:40:51] hays: perhaps the way i've done it is the most reasonable way...
[01:41:15] Ox0dea: Well, you've got #call on all sorts of things.
[01:41:20] bnagy: looks pretty functional, which suggests not
[01:41:32] bnagy: but I dunno, it's still pretty abstract
[01:41:58] hays: i just found myself repeating that pattern of logic in my code a lot and figured it was best done with an abstraction
[01:42:05] Trynemjoel: has joined #ruby
[01:42:26] bronson: has joined #ruby
[01:43:34] hays: the code is for an embedded system.. so test_func might be switch_closed? and try_function would be close_switch. the code would try 'n' times with a delay of d seconds.. if it succeeded it returns true, false if not
[01:43:55] hays: noticed just now that what I pastebinned isn't quite correct (the code is not on this laptop)
[01:44:38] Ox0dea: hays: It'd be better to make the interface expect Method instances, then.
[01:44:54] Ox0dea: If you accept Symbols, you have to finagle with figuring out which object to send the message to.
[01:45:34] Yzguy: has joined #ruby
[01:46:27] hays: meaning something that implements .call
[01:47:28] hays: i will look into that. i do think that seems better
[01:47:46] akem: has joined #ruby
[01:48:16] Brando753: has joined #ruby
[01:51:07] albedoa: has joined #ruby
[01:52:55] _djbkd: has joined #ruby
[01:54:29] eregi: has joined #ruby
[01:54:38] Ebok: has joined #ruby
[01:54:57] akem: has joined #ruby
[01:57:12] ixti: has joined #ruby
[01:58:32] chipotle: has joined #ruby
[01:58:55] Bloomer: has joined #ruby
[02:02:27] LoneHerm_: has joined #ruby
[02:03:11] hays: I guess n.times { } could work pretty well
[02:03:40] fullstack: has joined #ruby
[02:03:41] hays: i liked the for loop in case i wanted to return the number of tries instead
[02:03:41] kalopsian: has joined #ruby
[02:04:01] hays: since numbers are truthy
[02:05:28] chipotle: has joined #ruby
[02:05:30] mikeiniowa: has joined #ruby
[02:07:06] Trynemjoel: has joined #ruby
[02:09:34] monque_: has joined #ruby
[02:13:13] lemur: only nil and false are falsy in ruby
[02:13:34] baweaver: so that makes very little sense to justify a for loop
[02:14:38] dlitvak: has joined #ruby
[02:14:40] jeanlinux: has joined #ruby
[02:14:49] hays: makes sense to me. i can return the number of tries to be sucessful, including zero, and it will still return truthy unless it actially fails after n times
[02:15:04] eljimmy: has joined #ruby
[02:15:06] hays: at which point it returns false
[02:15:34] Ox0dea: hays: Your #times block can have a parameter. :)
[02:15:43] Ox0dea: >> a = []; 5.times { |i| a << i }; a
[02:15:45] ruby[bot]: Ox0dea: # => [0, 1, 2, 3, 4] (https://eval.in/522929)
[02:15:54] hays: hmm.. alright
[02:16:11] baweaver: if that's the case either use map or make a range
[02:16:20] Ox0dea: His thing is inherently stateful.
[02:16:24] ruby[bot]: baweaver: # => 0..4 (https://eval.in/522930)
[02:16:44] baweaver: I have doubts. Where is said thing?
[02:17:01] baweaver: the bpaste link?
[02:17:12] InternetFriend: has joined #ruby
[02:17:21] blackmesa: has joined #ruby
[02:17:38] hays: n.times is shorter then
[02:17:43] hays: and more ruby-like
[02:19:00] rakm: has joined #ruby
[02:19:09] Bloomer: has joined #ruby
[02:20:57] Ox0dea: hays: https://eval.in/522931
[02:21:05] baweaver: it can be done without state, though that's being pedantic of me.
[02:21:09] Ox0dea: It's sketchy, but I think that's a reasonable enough.
[02:21:17] Ox0dea: +approach
[02:21:54] darix: has joined #ruby
[02:22:05] Ox0dea: baweaver: How do you abstract away the statefulness of a switch being closed?
[02:23:02] baweaver: return a new switch, though this is going to become an exercise of how far back you can push the state wagon
[02:23:46] hays: Ox0dea: that gives me some things to chew on
[02:24:04] Ox0dea: hays: Excellent. :)
[02:24:13] ensyde_: has joined #ruby
[02:24:59] Guest34101: has joined #ruby
[02:25:06] hays: Ox0dea: the nil. why nil and not false?
[02:25:57] Ox0dea: hays: Er, tradition, I guess.
[02:26:17] Ox0dea: No, it makes semantic sense too. :)
[02:26:25] baweaver: I tend to avoid nil like the plague
[02:26:35] hays: is there a difference between sleep and delay?
[02:26:43] baweaver: sane defaults, whatnot
[02:27:01] baweaver: false in this case, empty array on a find, stuff like that.
[02:27:18] baweaver: makes for less logic forks down the road to catch nils
[02:28:39] Ox0dea: baweaver: Why `false` in this case?
[02:29:01] baweaver: in this case it's less important
[02:29:07] baweaver: I just dislike nil
[02:29:11] Ox0dea: It should almost always be "returns either `true` or `false`", by my lights. #try here is "returns `n` or `nil`".
[02:29:25] hays: doh. there is no delay in ruby hah. too many languages sloshing around
[02:32:18] akem: has joined #ruby
[02:34:49] hays: the old if at the end of the statement thing... still not sure how I feel about that. my procedure writing instincts don't ilke the if after the action.. probably just preference
[02:35:04] darix: has joined #ruby
[02:35:27] kam270: has joined #ruby
[02:35:39] hays: i like having the try ouside any class--probably a better place for it.. in a namespace somewhere maybe
[02:36:24] kam270: has joined #ruby
[02:38:12] hays: any thoughts on when to use inheritance vice just a mixin?
[02:38:50] kam270: has joined #ruby
[02:39:14] hays: seems like one could get away with just mixins
[02:39:19] Dreamer3: has joined #ruby
[02:39:51] akem: free popcorn for my own self.
[02:41:28] Ox0dea: hays: Mixins are inheritance. :P
[02:41:56] hays: yeah, just difference syntax it seems
[02:41:59] Ox0dea: It's perfectly natural to say that some collection "behaves like an Enumerable", even though that's a mixed-in Module.
[02:45:02] bronson: has joined #ruby
[02:45:33] tAn: has joined #ruby
[02:47:55] Dreamer3: has joined #ruby
[02:48:17] GriffinHeart: has joined #ruby
[02:48:47] LoneHermit: has joined #ruby
[02:54:00] wambam: has joined #ruby
[02:54:21] vdamewood: has joined #ruby
[02:56:08] sudoubuntu: has joined #ruby
[02:56:10] GriffinHeart: has joined #ruby
[02:56:49] floatingpoint: has joined #ruby
[02:59:21] sgambino: has joined #ruby
[03:01:36] ihsw: has joined #ruby
[03:02:43] ihsw: hi i'm new to ruby, how do i debug my sinatra app? right now i have a test that results in a 500 error but how do i get the error message?
[03:03:00] toretore: look at the stdout or log file
[03:03:23] Jonah11_: has joined #ruby
[03:04:32] babblebre: has joined #ruby
[03:05:13] A124: has joined #ruby
[03:05:14] ihsw: toretore: hmm, i have enable logging, dump_errors, and raise_errors but nothing is being dumped out to stdout
[03:05:20] swistak35: has joined #ruby
[03:05:38] toretore: ihsw: how are you seeing the 500?
[03:05:45] darkf: has joined #ruby
[03:05:49] ihsw: toretore: assert last_response.ok?, "PUT #{url} was not 200: #{last_response.status}"
[03:05:55] Maletor: has joined #ruby
[03:06:29] toretore: ihsw: gist relevant files?
[03:06:34] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[03:06:56] jeanlinux: has joined #ruby
[03:07:14] ihsw: toretore: https://gist.github.com/ihsw/52f15b54d66d8189ef64
[03:08:57] Musashi007: has joined #ruby
[03:10:15] znz_jp: has joined #ruby
[03:10:28] toretore: ihsw: lib/server.rb ?
[03:10:47] ihsw: toretore: https://gist.github.com/ihsw/194d2c2faa764b97b80b
[03:11:02] toretore: ihsw: you can and should separate the files and add proper highlighting
[03:11:24] ihsw: toretore: it can also be found here. https://github.com/ihsw/omega-jazz/tree/master/app
[03:11:57] duncannz: has joined #ruby
[03:12:24] sudoubuntu: has joined #ruby
[03:13:00] toretore: ihsw: where have you enabled logging?
[03:14:20] ihsw: toretore: i am pushing those changes now.
[03:14:42] cpup: has joined #ruby
[03:14:50] devbug_: has joined #ruby
[03:15:25] darkf: has joined #ruby
[03:15:35] ihsw: toretore: it is here. https://github.com/ihsw/omega-jazz/blob/master/app/lib/posts_routes.rb
[03:18:00] krobzaur: has joined #ruby
[03:19:26] blackmesa: has joined #ruby
[03:19:58] toretore: ihsw: i don't know how that works when getting run from a test env, it says it logs to stderr, but if you're not seeing anything it's obviously not
[03:23:43] ihsw: toretore: oh, here is a travis-ci build. https://travis-ci.org/ihsw/omega-jazz/jobs/110870063
[03:23:57] Asher: has joined #ruby
[03:24:22] weemsledeux: has joined #ruby
[03:24:56] ihsw: i'm not seeing stderr and i don't know why.
[03:25:50] darkf: has joined #ruby
[03:28:08] dfinninger: has joined #ruby
[03:29:54] ihsw: also i figured out how to get the errors in the sinatra's last_response, and the error message is shown in the latest build for my project. https://travis-ci.org/ihsw/omega-jazz/jobs/110871019
[03:31:00] chouhoulis: has joined #ruby
[03:31:32] ihsw: it seems the request body in PUT requests is form encoded rather than json encoded, so the PUT request handler cannot decode it.
[03:32:39] InternetFriend: has joined #ruby
[03:34:16] ihsw: toretore: i forgot to put .to_json in my test's request body.
[03:34:29] Toledo|gone: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[03:35:56] DmitryBochkarev: has joined #ruby
[03:36:03] ihsw: toretore: thank you for your help
[03:37:28] CloCkWeRX1: has joined #ruby
[03:39:09] Outlastsheep: has joined #ruby
[03:39:14] houhoulis: has joined #ruby
[03:45:12] tomchapin: has joined #ruby
[03:45:33] pawnbox: has joined #ruby
[03:46:58] tAn: has joined #ruby
[03:57:39] pawnbox: has joined #ruby
[03:59:20] Dreamer3: has joined #ruby
[04:01:30] GriffinHeart: has joined #ruby
[04:02:06] ElSif: has joined #ruby
[04:03:40] aupadhye: has joined #ruby
[04:03:59] malcolmva: has joined #ruby
[04:04:41] rohit: has joined #ruby
[04:04:58] Dreamer3: has joined #ruby
[04:08:43] rbennacer: has joined #ruby
[04:10:23] solocshaw: has joined #ruby
[04:10:25] FlyingChicken: has joined #ruby
[04:11:53] braincrash: has joined #ruby
[04:12:36] Dreamer3: has joined #ruby
[04:13:01] juanpablo__: has joined #ruby
[04:13:15] IrishGringo: has joined #ruby
[04:13:20] albedoa: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[04:15:38] rohit_: has joined #ruby
[04:17:05] terminalrecluse: has joined #ruby
[04:18:11] LoneHerm_: has joined #ruby
[04:18:26] matp: has joined #ruby
[04:18:42] Scripore: has joined #ruby
[04:18:45] Don_John: has joined #ruby
[04:20:50] blackmesa: has joined #ruby
[04:21:46] asprillia: has joined #ruby
[04:22:31] krz: has joined #ruby
[04:24:16] pdoherty: has joined #ruby
[04:24:45] gix: has joined #ruby
[04:25:57] BaroMeter: has joined #ruby
[04:26:14] karthikselva: has joined #ruby
[04:27:48] pawnbox: has joined #ruby
[04:30:55] howdoi: has joined #ruby
[04:32:09] chouhoulis: has joined #ruby
[04:32:14] theRealAlexz: has joined #ruby
[04:33:13] Dreamer3: has joined #ruby
[04:34:10] pawnbox: has joined #ruby
[04:34:22] indikator: has joined #ruby
[04:36:16] elifoster: has joined #ruby
[04:40:27] darkf: has joined #ruby
[04:40:57] Kang0: has joined #ruby
[04:41:44] braincra-: has joined #ruby
[04:42:09] rakm: has joined #ruby
[04:43:47] Graphettion: has joined #ruby
[04:43:49] bronson: has joined #ruby
[04:43:56] finisherr: has joined #ruby
[04:53:20] adgtl: has joined #ruby
[04:55:44] metanosulfonico: has joined #ruby
[04:56:26] eregi: has joined #ruby
[04:56:54] Kryptonical: has joined #ruby
[04:59:19] dm24: has joined #ruby
[05:01:50] dm24: has left #ruby: ()
[05:02:11] aupadhye: has joined #ruby
[05:05:38] trosborn: has joined #ruby
[05:08:41] GriffinHeart: has joined #ruby
[05:10:49] pawnbox: has joined #ruby
[05:11:24] eregi: has joined #ruby
[05:14:25] Gnut: has joined #ruby
[05:17:55] duderono_: has joined #ruby
[05:18:35] azure32: has joined #ruby
[05:18:45] pdoherty: has joined #ruby
[05:19:26] krz: has joined #ruby
[05:21:15] IrishGringo_: has joined #ruby
[05:21:19] duncannz: has joined #ruby
[05:22:14] blackmesa: has joined #ruby
[05:34:13] chouhoulis: has joined #ruby
[05:40:28] kalopsian: has joined #ruby
[05:42:23] astrobunny: has joined #ruby
[05:43:14] thevaliantx: has joined #ruby
[05:43:59] mondok: has joined #ruby
[05:47:23] GriffinHeart: has joined #ruby
[05:49:44] tAn: has joined #ruby
[05:50:15] sucks_: has joined #ruby
[05:51:04] indikator: has left #ruby: ()
[05:51:24] minimalism: has joined #ruby
[05:51:47] rickmasta: has joined #ruby
[05:53:43] eregi: has joined #ruby
[05:54:30] htmldrum: has joined #ruby
[06:00:38] framling: has joined #ruby
[06:02:50] lurch_: has joined #ruby
[06:04:30] rht: has joined #ruby
[06:06:53] LoneHermit: has joined #ruby
[06:07:25] sucks: has joined #ruby
[06:08:21] graffix: has joined #ruby
[06:08:29] Dreamer3_: has joined #ruby
[06:10:05] rbennacer: has joined #ruby
[06:13:11] vinleod: has joined #ruby
[06:21:01] rakm: has joined #ruby
[06:22:21] dionysus69: has joined #ruby
[06:23:24] rippa: has joined #ruby
[06:23:38] blackmesa: has joined #ruby
[06:24:36] eregi: has joined #ruby
[06:26:26] intrigueD: has joined #ruby
[06:26:26] intrigueD: has joined #ruby
[06:27:08] crdpink2: has joined #ruby
[06:30:51] jolts: has joined #ruby
[06:32:10] shevy: has joined #ruby
[06:32:46] Guest34101: has joined #ruby
[06:32:51] asprillia: has joined #ruby
[06:34:03] eregi: has joined #ruby
[06:34:40] william3: has joined #ruby
[06:35:10] chouhoulis: has joined #ruby
[06:39:26] GriffinHeart: has joined #ruby
[06:41:01] eregi: has joined #ruby
[06:42:57] peterhu: has joined #ruby
[06:45:26] bronson: has joined #ruby
[06:50:23] mattwildig: has joined #ruby
[06:50:33] blackgoat: has joined #ruby
[06:56:20] olblak: has joined #ruby
[06:59:41] aufi: has joined #ruby
[06:59:41] chipotle: has joined #ruby
[07:00:30] GriffinHeart: has joined #ruby
[07:00:54] sleetdrop: has joined #ruby
[07:02:09] thevaliantx: has joined #ruby
[07:02:19] safe: has joined #ruby
[07:02:28] lxsameer: has joined #ruby
[07:03:49] Dreamer3: has joined #ruby
[07:05:01] TomyLobo: has joined #ruby
[07:14:12] dionysus69: has joined #ruby
[07:15:40] symm-: has joined #ruby
[07:15:51] Dreamer3: has joined #ruby
[07:16:31] mhoungbo: has joined #ruby
[07:18:56] scepticulous: has joined #ruby
[07:20:41] bigkevmcd: has joined #ruby
[07:20:59] haxrbyte: has joined #ruby
[07:22:03] woo: has joined #ruby
[07:22:22] haxrbyte_: has joined #ruby
[07:24:28] eregi: has joined #ruby
[07:25:02] blackmesa: has joined #ruby
[07:25:30] agit0: has joined #ruby
[07:27:26] rohit_: has joined #ruby
[07:28:41] kalopsian: has joined #ruby
[07:31:59] aslpenguin: has joined #ruby
[07:32:23] aslpenguin: why is ruby declining in popularity?
[07:34:27] aslpenguin: it's being replaced by node
[07:35:07] apeiros: and you know that from? sticking your finger in the air?
[07:35:22] aslpenguin: no by hr people telling me
[07:35:28] aslpenguin: i know a lot of recruiters
[07:35:34] aslpenguin: but i can't understand why
[07:35:37] rkazak: has joined #ruby
[07:35:40] aslpenguin: i'm an aspiring recruiter
[07:35:55] chouhoulis: has joined #ruby
[07:37:43] firstdayonthejob: has joined #ruby
[07:37:47] apeiros: *sob*, you know, when people mistake a framework (or in this case a runtime) for a programming language, I tend to question any points they make.
[07:38:17] aslpenguin: node is a programming language made in javascritp
[07:38:42] apeiros: wrong. node is javascript.
[07:38:52] aslpenguin: that's what i said
[07:39:03] apeiros: no. you said "made in". that's quite distinct.
[07:39:29] lsmola: has joined #ruby
[07:39:30] aslpenguin: you can't make a programming language out of a programming language that's stupid
[07:39:57] moeabdol1: has joined #ruby
[07:40:19] apeiros: a) yes, of course you can and almost all programming languages have at one point been implemented using another
[07:40:23] apeiros: and b) that's not what I said
[07:41:16] apeiros: you should probably read nodejs' WP or even their own website. maybe you'll learn what nodejs actually is. and no, it's not its own language.
[07:41:18] Antiarc: has joined #ruby
[07:42:56] moeabdol2: has joined #ruby
[07:44:01] aganov: has joined #ruby
[07:47:37] graffix: has joined #ruby
[07:48:31] andikr: has joined #ruby
[07:49:48] anisha: has joined #ruby
[07:52:29] kentnl: has joined #ruby
[07:53:01] dlitvak: has joined #ruby
[07:53:05] kentnl: has joined #ruby
[07:53:05] coffeecupp: has joined #ruby
[07:54:08] wldcordeiro: has joined #ruby
[07:57:53] janno_: has left #ruby: ()
[07:58:14] Janno: has joined #ruby
[07:58:53] LoneHermit: has joined #ruby
[08:01:20] blaxter: has joined #ruby
[08:01:30] scepticulous: has joined #ruby
[08:01:34] svoi: has joined #ruby
[08:01:58] scepticulous: has joined #ruby
[08:02:02] tAn: has joined #ruby
[08:02:54] codecop: has joined #ruby
[08:03:10] jeanlinux: has joined #ruby
[08:05:30] Antiarc: has joined #ruby
[08:11:25] pawnbox: has joined #ruby
[08:11:56] LoneHermit: has joined #ruby
[08:14:58] svoi: has left #ruby: ("#ruby*")
[08:15:00] UtkarshRay: has joined #ruby
[08:16:19] rkazak: has joined #ruby
[08:16:43] ziyadb: has joined #ruby
[08:17:12] The_Phoenix1: has joined #ruby
[08:19:14] SCHAAP137: has joined #ruby
[08:20:24] atmosx: has joined #ruby
[08:22:02] youngmathimus0: has left #ruby: ()
[08:22:04] chooky87: has joined #ruby
[08:22:58] the_drow: has joined #ruby
[08:24:17] BtcBen: has joined #ruby
[08:27:55] blackmesa: has joined #ruby
[08:31:08] tvw: has joined #ruby
[08:31:09] flughafen: hello everybody
[08:31:16] FooMunki: has joined #ruby
[08:33:01] charlemagne: has joined #ruby
[08:33:21] skade: has joined #ruby
[08:33:55] blaxter: has joined #ruby
[08:33:57] baweaver: has joined #ruby
[08:34:34] Xeago: has joined #ruby
[08:35:28] eregi: has joined #ruby
[08:36:37] chouhoulis: has joined #ruby
[08:37:47] Domaldel: has joined #ruby
[08:38:30] The_Phoenix: has joined #ruby
[08:42:15] snowy: has joined #ruby
[08:43:43] rohit_: has joined #ruby
[08:44:38] tubuliferous_: has joined #ruby
[08:44:45] agit0: has joined #ruby
[08:45:57] woo: has joined #ruby
[08:47:59] bronson: has joined #ruby
[08:48:58] kmckelvin: has joined #ruby
[08:50:41] dmolina: has joined #ruby
[08:51:11] moeabdol: has joined #ruby
[08:51:13] mattwildig: has joined #ruby
[08:54:14] tulak: has joined #ruby
[08:59:39] thevaliantx: has joined #ruby
[09:00:11] DmitryBochkarev: has joined #ruby
[09:01:41] jeanlinux: has joined #ruby
[09:04:23] huyderman: has joined #ruby
[09:05:13] duderonomy: has joined #ruby
[09:06:17] gregf_: has joined #ruby
[09:07:02] elementz: has joined #ruby
[09:09:26] pandaant: has joined #ruby
[09:13:45] Mon_Ouie: has joined #ruby
[09:14:13] rbennacer: has joined #ruby
[09:16:49] kalopsian: has joined #ruby
[09:22:58] thevaliantx: has left #ruby: ("Leaving")
[09:23:35] william3: has joined #ruby
[09:25:38] ocbtec: has joined #ruby
[09:26:26] tesuji: has joined #ruby
[09:27:16] FooMunki: has joined #ruby
[09:27:55] idefine: has joined #ruby
[09:29:19] blackmesa: has joined #ruby
[09:29:27] BtcBen: What's the safest way to let someone collaborate on a rails app
[09:29:40] BtcBen: I guess safe isn't the best term
[09:30:07] BtcBen: I'm concerned about mailer account passwords and such
[09:30:09] devbug: has joined #ruby
[09:30:19] vondruch: has joined #ruby
[09:30:38] ljarvis: BtcBen: will this person be working for you?
[09:30:56] BtcBen: temporarily
[09:31:03] manveru: BtcBen: env variables
[09:31:10] jeanlinux: has joined #ruby
[09:31:24] manveru: easiest with http://direnv.net/ :)
[09:31:30] william3: has joined #ruby
[09:31:57] manveru: other way would be https://www.agwa.name/projects/git-crypt/
[09:32:34] manveru: anyway, never commit your credentials into git without protection
[09:33:40] rohit_: has joined #ruby
[09:33:54] astrobunny: has joined #ruby
[09:35:04] f4cl3y: has joined #ruby
[09:36:17] eregi: has joined #ruby
[09:36:20] william3: has joined #ruby
[09:36:24] lpvb: has joined #ruby
[09:37:15] BtcBen: Thanks for the tip manveru. I already have the credentials stored in env variables.
[09:37:25] chouhoulis: has joined #ruby
[09:37:34] BtcBen: so those won't be pushed to git?
[09:37:40] BtcBen: forgive the noobness
[09:38:11] manveru: no, env variables are in your environment, not in your files
[09:38:38] BtcBen: then how do the passwords work in production?
[09:39:59] nettoweb: has joined #ruby
[09:40:03] mark2000: has joined #ruby
[09:42:29] Marko_: has joined #ruby
[09:43:13] ljarvis: they're fetched from the environment
[09:43:20] ljarvis: or written to files only on production
[09:43:51] ljarvis: e.g. after you deploy, env variables get written to config/database.yml or some other config file. Ready to be read by something
[09:44:18] ljarvis: if they're yaml files, you can just embed the env variables
[09:44:20] djellemah_: has joined #ruby
[09:44:59] bweston92: has joined #ruby
[09:44:59] LoneHerm_: has joined #ruby
[09:45:45] the_drow: has joined #ruby
[09:47:07] jimcroft: has joined #ruby
[09:48:19] SenpaiSilver: has joined #ruby
[09:48:51] FooMunki: has joined #ruby
[09:48:55] renderful: has joined #ruby
[09:49:25] bronson: has joined #ruby
[09:51:31] joonty: has joined #ruby
[09:52:50] sepp2k: has joined #ruby
[09:54:52] rdark: has joined #ruby
[09:57:27] marr: has joined #ruby
[09:58:23] jaiks: has joined #ruby
[09:58:24] bruce_lee: has joined #ruby
[09:58:25] bruce_lee: has joined #ruby
[09:59:22] ferr: has joined #ruby
[10:00:59] laith: has joined #ruby
[10:01:22] EdwardIII: hey, how to ruby devs tend to inject test doubles? in python we'd probably use the @patch decorator
[10:02:31] jhass: they're usually just used as arguments to classes and methods
[10:03:12] Hanmac: hm what are "test doubles"? currently i cant image what this should be
[10:03:13] jhass: sometimes a method on a class or object is monkey patched to return the double for the duration of the test
[10:03:19] astrobunny: has joined #ruby
[10:04:00] jhass: hanmac: a fake object responding to the same methods as some external dependency
[10:04:10] Hanmac: ahh good to know
[10:04:10] jhass: usually with precomputed responses
[10:04:13] canton7: hanmac, usually a dependency of the UUT, but something you don't want to actually include in your unit tests. so you replace that dependency with a mock or stub
[10:04:28] EdwardIII: yeah i'm writing a test for an application_controller concern
[10:04:40] Hanmac: so like a dummy object ?
[10:04:40] EdwardIII: and it's using the url for some stuff
[10:04:57] EdwardIII: jhass: i don't suppose there's an example somewhere?
[10:05:09] moeabdol1: has joined #ruby
[10:05:37] EdwardIII: hanmac: i'm guessing i can't just say MyModule.request.original_url = 'biscuits' ?
[10:05:41] jhass: EdwardIII: http://www.relishapp.com/rspec/rspec-mocks/docs should have plenty of examples
[10:05:49] awea: has joined #ruby
[10:06:14] awea: has joined #ruby
[10:06:30] jhass: http://www.rubydoc.info/gems/minitest#Mocks & http://www.rubydoc.info/gems/minitest#Stubs
[10:06:51] EdwardIII: so i'm using MiniTest
[10:06:55] EdwardIII: but tbh i'm a little confused
[10:07:15] EdwardIII: i kind of assume the default stuff rails comes with is a sensible default, but then it sort of looks like everyone everwhere is using RSpec
[10:07:19] EdwardIII: RSpec > MiniTest?
[10:08:27] Hanmac: previous i used TestUnit for tests, but i am switched to RSpec because its more funky to do (like you have shared examples so you dont need to write the whole stuff again)
[10:09:34] sarbs: has joined #ruby
[10:10:55] EdwardIII: so i'm just using the test "this does that" do... syntax at the moment, but it looks like MiniTest supports spec-like tests too
[10:11:29] krzkrz: has joined #ruby
[10:12:00] ferr: has joined #ruby
[10:14:21] mark2: has joined #ruby
[10:15:28] platzhirsch: has joined #ruby
[10:15:58] junw: has left #ruby: ("Leaving")
[10:16:58] mrknip: has joined #ruby
[10:17:05] coffeecupp: has joined #ruby
[10:18:28] ledestin: does HTTParty use one global state?
[10:18:43] ledestin: e.g. setting headers
[10:19:42] laith: has joined #ruby
[10:19:45] ElFerna: has joined #ruby
[10:22:23] laith: has joined #ruby
[10:22:40] ferr: has joined #ruby
[10:23:38] ardian: has joined #ruby
[10:24:12] EdwardIII: ok so, here's what i'm trying: https://gist.github.com/EdwardIII/de1d893a4a96806de2ae
[10:24:52] ardian: Hello, I am iterating with a an each loop and want to save the results in an array
[10:25:04] ardian: but I am doing it wrong, it's only saving the last one
[10:25:07] ardian: a.each do |x|
[10:25:07] ljarvis: ardian: you probably want map
[10:25:07] ardian: letters = [x]
[10:25:24] ljarvis: ardian: you're assigning letters to [x], not mutating anything
[10:25:25] ardian: it's a Nokogiri XML object btw
[10:25:44] ljarvis: er assigning [x] to letters, rather
[10:25:48] rodfersou: has joined #ruby
[10:25:59] ardian: ljarvis, umm let me see
[10:27:01] tulak: has joined #ruby
[10:27:06] ljarvis: ledestin: no it doesn't
[10:27:19] ljarvis: ledestin: it has defaults but that's it
[10:27:45] ledestin: ljarvis well, headers go to defaults, no?
[10:28:11] ardian: ljarvis, but I have it declared as an array before in the code letters = Array.new
[10:28:14] ljarvis: ledestin: yes, I guess I don't really understand your question. I don't see how "state" is involved
[10:28:34] ljarvis: ardian: yes, but you overwrite that assignment on every loop by writing: letters = [x]
[10:28:43] ledestin: ljarvis as opposed to instance state, where headers would apply to a class instance
[10:28:45] ardian: ljarvis, ahh makes sense
[10:29:16] ljarvis: ledestin: right, I believe it creates a new instance when you make a request which is how you override variables like headers
[10:29:42] blackmesa: has joined #ruby
[10:31:25] ledestin: ljarvis guess I'll try some testing
[10:34:22] sarbs: has joined #ruby
[10:36:13] ledestin: ljarvis seems like state is per class
[10:36:21] evidex: has joined #ruby
[10:36:21] ledestin: ljarvis thanks
[10:37:02] eregi: has joined #ruby
[10:37:05] laith: has joined #ruby
[10:38:11] chouhoulis: has joined #ruby
[10:38:12] Ropeney: has joined #ruby
[10:38:51] Ebok: has joined #ruby
[10:46:11] EdwardIII: hrm i'm confused, https://gist.github.com/EdwardIII/206235f2598059c86aa5 produces "uninitialized constant Request" but i didn't say Request...
[10:46:58] EdwardIII: i guess it's something to do with trying to translate :request into a model name, but i'm not trying to mock a model, just a plain old object
[10:52:14] mattwildig: has joined #ruby
[10:53:03] terlar: has joined #ruby
[10:54:08] moeabdol2: has joined #ruby
[10:55:51] devbug: has joined #ruby
[10:56:16] Hounddog: has joined #ruby
[11:00:02] _djbkd: has joined #ruby
[11:02:17] CloCkWeRX: has joined #ruby
[11:04:02] trinaldi: has joined #ruby
[11:05:01] kalopsian: has joined #ruby
[11:05:34] krzkrz: has joined #ruby
[11:06:55] MindfulMonk: has joined #ruby
[11:09:48] sgambino: has joined #ruby
[11:13:33] ElFerna: has joined #ruby
[11:13:36] dcunit3d: has joined #ruby
[11:23:34] ldnunes: has joined #ruby
[11:23:44] dlitvak: has joined #ruby
[11:23:47] ddv: ACTION *yawns*
[11:24:06] ddv: where are all the cool people
[11:25:24] adaedra: At the pool
[11:25:44] ddv: ohai adaedra
[11:27:05] quazimodo: has joined #ruby
[11:27:21] chipotle: has joined #ruby
[11:29:53] Mon_Ouie: has joined #ruby
[11:30:36] flughafen: ddv: over in #c++
[11:31:13] ddv: I highly doubt that
[11:33:23] LoneHermit: has joined #ruby
[11:33:45] sudoubuntu: has joined #ruby
[11:37:46] AnoHito_: has joined #ruby
[11:38:19] th_: has joined #ruby
[11:39:00] chouhoulis: has joined #ruby
[11:39:05] eregi: has joined #ruby
[11:39:46] ujjain: has joined #ruby
[11:39:46] ujjain: has joined #ruby
[11:40:11] djbender: has joined #ruby
[11:40:12] akahn: has joined #ruby
[11:40:18] zzak___: has joined #ruby
[11:40:24] Y_Ichiro: has joined #ruby
[11:40:24] Y_Ichiro: has joined #ruby
[11:40:51] Liam`: has joined #ruby
[11:41:12] ardian: has joined #ruby
[11:41:22] borkdude: has joined #ruby
[11:41:29] phredus: has joined #ruby
[11:41:36] Eleeleth: has joined #ruby
[11:41:51] alxndr: has joined #ruby
[11:41:54] halfdan: has joined #ruby
[11:42:20] cbetta: has joined #ruby
[11:42:26] boxrick1: has joined #ruby
[11:42:35] benlakey: has joined #ruby
[11:42:43] HashNuke: has joined #ruby
[11:42:45] podman: has joined #ruby
[11:42:49] jlyndon: has joined #ruby
[11:42:50] neanderslob: has joined #ruby
[11:42:50] avdi: has joined #ruby
[11:42:51] c355E3B: has joined #ruby
[11:43:04] acerna: has joined #ruby
[11:43:07] sysanthrope: has joined #ruby
[11:43:24] sushii: has joined #ruby
[11:43:25] bttf: has joined #ruby
[11:43:26] braderhart: has joined #ruby
[11:43:28] jpinnix_______: has joined #ruby
[11:43:30] mrsolo: has joined #ruby
[11:43:39] bove: has joined #ruby
[11:43:44] drbrain: has joined #ruby
[11:44:02] chrisseaton: has joined #ruby
[11:44:21] laith: has joined #ruby
[11:44:41] wmdrossard: has joined #ruby
[11:45:18] akitada: has joined #ruby
[11:45:45] spk: has joined #ruby
[11:45:45] tylersmith: has joined #ruby
[11:45:57] tubuliferous: has joined #ruby
[11:46:02] mahk: has joined #ruby
[11:46:06] iooner: has joined #ruby
[11:46:07] cschneid: has joined #ruby
[11:46:12] ElderFain: has joined #ruby
[11:46:13] Seich: has joined #ruby
[11:46:13] LBRapid: has joined #ruby
[11:46:15] Scriptonaut: has joined #ruby
[11:46:22] twe4ked: has joined #ruby
[11:46:35] nemesit|znc: has joined #ruby
[11:46:37] duoi: has joined #ruby
[11:46:41] saneax: has joined #ruby
[11:46:50] bauruine: has joined #ruby
[11:46:59] troter_______: has joined #ruby
[11:48:25] shredding: has joined #ruby
[11:48:52] infernix: has joined #ruby
[11:49:51] Meow-J: has joined #ruby
[11:49:55] bronson: has joined #ruby
[11:49:55] norc: has joined #ruby
[11:50:00] norc: has joined #ruby
[11:50:00] norc: has joined #ruby
[11:50:09] norc: Good day, folks.
[11:51:24] manveru: norc: salve
[11:52:11] skarn: has joined #ruby
[11:53:34] dionysus69: has joined #ruby
[11:53:48] Luna_Moonfang: has joined #ruby
[11:54:34] JoL1hAHN: has joined #ruby
[11:55:20] jokester: has joined #ruby
[11:55:54] sorah_: has joined #ruby
[11:56:02] Xeago: has joined #ruby
[11:56:12] GGMethos: has joined #ruby
[11:57:50] jds: has joined #ruby
[11:58:49] EdwardIII: hrm i'm using factory_girl with stub_request = create(:request), but it keeps saying ArgumentError: wrong number of arguments (given 0, expected 1)
[11:59:02] EdwardIII: i'm doing stub_request = create(:request)... but that is 1 argument?
[11:59:34] EdwardIII: and whenever i see examples people seem to be just using one argument too, e.g. deal = Factory.build(:deal)
[12:00:10] BTRE: has joined #ruby
[12:00:20] The_Phoenix1: has joined #ruby
[12:01:38] ElFerna: has joined #ruby
[12:01:50] tvw: has joined #ruby
[12:04:20] momo-reina: has joined #ruby
[12:05:16] Terens: has joined #ruby
[12:05:21] Terens: hello I am trying to install nokogiri
[12:05:26] Terens: and i get error checking if the C compiler accepts ... *** extconf.rb failed ***
[12:05:26] Terens: Could not create Makefile due to some reason, probably lack of necessary
[12:06:09] EdwardIII: Terens: can you gist your whole output?
[12:07:36] Hanmac: Terens: can you tell us more about your OS and if you installed the dev tools? (like the stuff needed to build the extension?)
[12:07:48] tubuliferous_: has joined #ruby
[12:07:55] Terens: https://gist.github.com/parhs/e596413158df016f62fc
[12:08:01] Terens: ubuntu trusty on vagrant
[12:08:09] Terens: ruby with rvm 2.3.0
[12:08:41] sdothum: has joined #ruby
[12:08:53] Terens: I have installed the tools I dont know why it cant find them
[12:10:01] laith: has joined #ruby
[12:10:29] Shaboum: has joined #ruby
[12:10:30] hnagamin: has joined #ruby
[12:10:40] WizJin: has joined #ruby
[12:12:20] charlemagne: has joined #ruby
[12:13:00] juanpablo__: has joined #ruby
[12:13:09] EdwardIII: hrm i thought it might show the actual header file it was looking for
[12:13:26] EdwardIII: but extconf is pretty basic, right?
[12:13:31] EdwardIII: Terens: how do you know the build tools are installed?
[12:14:24] norc: EdwardIII: Look at the stack trace.
[12:15:01] norc: EdwardIII: The error likely is risen from some other method. ;-)
[12:15:15] EdwardIII: norc: my error or Terens?
[12:15:24] Polysics: has joined #ruby
[12:15:29] norc: EdwardIII: No your factorygirl issue.
[12:15:46] EdwardIII: norc: well, that was the whole stacktrace pretty much heh it was very quiet
[12:15:54] norc: I do not see a stacktrace.
[12:16:00] EdwardIII: lemme gist the whole thing
[12:16:01] norc: I just see an error message.
[12:16:31] EdwardIII: also i'm using factory_girl for stubs, and they don't really have anything to do with the db/activesupport. is this wrong?
[12:16:57] rbennacer: has joined #ruby
[12:17:24] norc: EdwardIII: It smells a bit like you actually want VCR. What exactly are you trying to do?
[12:18:08] EdwardIII: norc: just trying to write a test for this incredibly simple method: https://gist.github.com/EdwardIII/de1d893a4a96806de2ae
[12:18:39] EdwardIII: all i want to do is stub out request.original_url and I18n.available_locales
[12:19:09] chipotle: has joined #ruby
[12:20:42] quazimodo: has joined #ruby
[12:20:59] dlitvak_: has joined #ruby
[12:22:21] adgtl: has joined #ruby
[12:23:33] kobain: has joined #ruby
[12:25:22] EdwardIII: norc: is it because it's trying to create a new ActionDispatch::Request, and that (i think) has 1 required argument?
[12:25:35] Infra-Red: has joined #ruby
[12:26:17] graffix: has joined #ruby
[12:30:37] chipotle: has joined #ruby
[12:30:42] gaxar77: has joined #ruby
[12:30:44] norc: EdwardIII: I do not see your factory.
[12:31:14] EdwardIII: hrm crap wrong gist, one sec let me update
[12:31:52] EdwardIII: norc: https://gist.github.com/EdwardIII/de1d893a4a96806de2ae#file-t-rb-L16
[12:32:05] norc: EdwardIII: And the error message please.
[12:32:49] haxrbyte: has joined #ruby
[12:33:27] dn5: has joined #ruby
[12:33:54] norc: EdwardIII: Or the code that uses the factory.
[12:34:29] Xeago: has joined #ruby
[12:34:40] EdwardIII: norc: the code that uses the factory is in the same gist, but i've added the error too: https://gist.github.com/EdwardIII/de1d893a4a96806de2ae#file-t-rb-L30
[12:37:58] allcentury: has joined #ruby
[12:38:43] haxrbyte_: has joined #ruby
[12:39:40] chouhoulis: has joined #ruby
[12:39:50] eregi: has joined #ruby
[12:40:11] LoneHerm_: has joined #ruby
[12:40:15] william3: has joined #ruby
[12:41:52] laith: has joined #ruby
[12:42:32] chipotle: has joined #ruby
[12:44:23] Tempesta: has joined #ruby
[12:44:58] pawnbox_: has joined #ruby
[12:48:02] tubuliferous_: has joined #ruby
[12:48:13] Scripore: has joined #ruby
[12:48:21] haxrbyte: has joined #ruby
[12:50:11] blackmesa: has joined #ruby
[12:51:32] EdwardIII: this seems to be the bit which is actually causing the exception: https://gist.github.com/EdwardIII/de1d893a4a96806de2ae
[12:51:44] EdwardIII: maybe the minitest machinery is somehow chewing up the stacktrace?
[12:52:14] EdwardIII: hmm wait nope, it's deeper
[12:52:59] mattwildig: has joined #ruby
[12:53:05] chipotle: has joined #ruby
[12:53:08] kalopsian: has joined #ruby
[12:55:56] haxrbyte_: has joined #ruby
[12:55:59] blackgoat: has joined #ruby
[12:56:31] EdwardIII: i think it's because it's trying to do some kind of ActiveSupport::notification, when it's not a model
[12:56:33] FooMunki: has joined #ruby
[12:56:40] EdwardIII: increasingly i feel like factory_girl is a bad idea for this job
[13:02:16] konsolebox: has joined #ruby
[13:02:52] tulak: has joined #ruby
[13:03:28] EdwardIII: ok so 'yield payload if block_given?' block_given? == true, and payload is {:name=>:request, :strategy=>:build_stubbed}. but if i manually run yield payload ruby says *** ArgumentError Exception: wrong number of arguments (given 0, expected 1)
[13:04:19] chipotle: has joined #ruby
[13:05:15] Xeago: has joined #ruby
[13:05:34] norc: EdwardIII: I do not think you are seeing the full stack trace there.
[13:05:42] synthroid: has joined #ruby
[13:05:48] norc: Unless you managed to somehow hit a serious ruby bug.
[13:06:27] norc: ast>> build_stubbed(:request)
[13:06:28] ruby[bot]: norc: I have parsed your code, the result is at https://eval.in/523172
[13:06:40] norc: Which shows clearly that this is passing an argument.
[13:06:44] EdwardIII: hrm i did upgrade ruby recently, maybe i'm using an old version of rails/factory_girl or something?
[13:07:08] norc: EdwardIII: I have not much experience with factory_girl. I can just tell you that you are not getting the full stack trace that you actually need.
[13:07:17] EdwardIII: norc: i agree
[13:07:19] FooMunki: has joined #ruby
[13:07:27] EdwardIII: norc: from putting the debugger on it i can see the exception happens at a different place in the stack
[13:07:29] norc: EdwardIII: Are you running this from pry?
[13:07:38] EdwardIII: well the debugging is from byebug
[13:08:00] EdwardIII: otherwise i'm running it from ruby -v -I'lib::test' test/controllers/concerns/extract_locale_test.rb
[13:08:31] pawnbox: has joined #ruby
[13:08:58] EdwardIII: maybe minitest hides some of the stacktrace
[13:09:41] haxrbyte: has joined #ruby
[13:10:03] norc: EdwardIII: It is quite likely.
[13:10:13] EdwardIII: indeed it is, here's the full trace: https://gist.github.com/EdwardIII/de1d893a4a96806de2ae#file-debugger
[13:10:31] haxrbyte: has joined #ruby
[13:10:40] monsieurp: has left #ruby: ()
[13:11:09] EdwardIII: rails 4.2.4, pretty recent
[13:11:34] norc: EdwardIII: Anyhow, the issue is quite obvious now.
[13:11:50] EdwardIII: it's trying to initialize Request.new but without the required constructor param?
[13:12:06] ddv: EdwardIII: please upgrade your rails version
[13:12:14] norc: EdwardIII: Exactly. You need to provide a initialize_with callback to your factory_girl factory.
[13:12:18] ddv: since your version contains several recently discoverd vulns
[13:12:22] EdwardIII: norc: ahhhhhh
[13:12:26] EdwardIII: ddv: ok, upgrading now
[13:12:42] EdwardIII: norc: that's what i predicted first off heh
[13:12:45] EdwardIII: ACTION pats himself on the back
[13:13:17] EdwardIII: ddv: 4.2.5 right?
[13:13:23] norc: EdwardIII: The issue stems from factory_girl being designed to work with ActiveRecord basically. Using it for anything else usually requires skip_create and initialize_with - at which point its questionable why you want factory_girl in the first place
[13:13:32] EdwardIII: norc: that's also what i said
[13:13:46] ddv: EdwardIII 4.2.5.1
[13:14:35] Guest11: has joined #ruby
[13:14:42] EdwardIII: in python i'd just use the mock lib and say "return this answer whenever .original_url is called" and i'd use factory_boy for model-only related stuff
[13:15:25] norc: EdwardIII: I just use VCR in rspec to achieve a similar effect.
[13:15:34] chipotle: has joined #ruby
[13:15:39] diegoviola: has joined #ruby
[13:15:43] pawnbox: has joined #ruby
[13:16:01] norc: EdwardIII: Or just the underlying mechanism: https://github.com/chrisk/fakeweb
[13:16:16] EdwardIII: norc: i'm definitly going to be plugging in VCR for some other stuff
[13:16:24] EdwardIII: norc: for my remote api integration tests
[13:16:30] EdwardIII: i've used php-vcr
[13:16:30] norc: Oh Im sorry that is grossly outdated.
[13:16:30] norc: https://github.com/bblimke/webmock
[13:16:31] norc: Of course.
[13:16:54] norc: EdwardIII: You should look at it, apparently it integrates into MiniTest too :)
[13:17:03] norc: Seems like this is exactly what you want.
[13:17:24] EdwardIII: norc: well in this case i'm not sure it is
[13:17:50] EdwardIII: this method gets called whenever you hit a rails page, i wouldn't need vcr if i was doing an integration tests because rails is always there and available for me to use and is fairly determisitic
[13:18:03] norc: EdwardIII: I meant webmock
[13:18:06] EdwardIII: i could just GET /en/something
[13:18:13] norc: Which does that exactly.
[13:18:33] william3: has joined #ruby
[13:18:51] EdwardIII: cool i'll check it out
[13:18:59] adaedra: All of this sounds a bit railsy, no?
[13:19:07] norc: webmock is not railsy
[13:19:28] gagrio: has joined #ruby
[13:20:24] Miron: has joined #ruby
[13:20:59] DmitryBochkarev: has joined #ruby
[13:21:10] rbennacer: has joined #ruby
[13:21:25] f4cl3y: has joined #ruby
[13:21:56] quazimodo: has joined #ruby
[13:22:15] pawnbox: has joined #ruby
[13:26:36] haxrbyte: has joined #ruby
[13:27:00] mondok: has joined #ruby
[13:27:28] Yzguy: has joined #ruby
[13:27:45] kam270: has joined #ruby
[13:28:44] kam270: has joined #ruby
[13:29:15] pawnbox: has joined #ruby
[13:29:26] rohit: has joined #ruby
[13:30:13] solocshaw: has joined #ruby
[13:32:19] CloCkWeRX: has joined #ruby
[13:33:50] jimcroft: has joined #ruby
[13:37:02] dlitvak: has joined #ruby
[13:38:48] shazaum: has joined #ruby
[13:40:25] trinaldi: has joined #ruby
[13:40:25] chouhoulis: has joined #ruby
[13:40:37] eregi: has joined #ruby
[13:41:58] krz: has joined #ruby
[13:42:00] LoneHermit: has joined #ruby
[13:42:45] sgambino: has joined #ruby
[13:43:23] shevy: has joined #ruby
[13:43:43] openstruct: has joined #ruby
[13:43:55] aryaching: has joined #ruby
[13:44:54] openstru_: has joined #ruby
[13:45:52] voobscout: has joined #ruby
[13:47:10] tvw: has joined #ruby
[13:47:47] openstruct: has joined #ruby
[13:49:06] johnmilton: has joined #ruby
[13:50:58] xpt: has joined #ruby
[13:51:23] bronson: has joined #ruby
[13:53:06] stannard: has joined #ruby
[13:53:19] chipotle: has joined #ruby
[13:53:55] dlitvak_: has joined #ruby
[13:54:16] aryaching: has joined #ruby
[13:55:54] idefine: has joined #ruby
[13:56:58] steffkes: has joined #ruby
[13:56:58] steffkes: has joined #ruby
[13:59:01] ESpiney: has joined #ruby
[13:59:17] Terens: On github the latest brach is trunk ?
[13:59:47] shevy: has joined #ruby
[14:01:31] voobscout: has joined #ruby
[14:02:08] shevy: has joined #ruby
[14:02:11] ddv: Terens: master
[14:02:11] _djbkd: has joined #ruby
[14:02:13] idefine: has joined #ruby
[14:02:26] the_drow: has joined #ruby
[14:03:10] havenwood: Terens: But yeah in the case of the Ruby repo, trunk is master.
[14:04:23] Terens: So the next version will come from trunk ?
[14:04:32] Terens: Because I see 2_3 branch latest
[14:06:03] moos3: has joined #ruby
[14:07:13] hayden_: has joined #ruby
[14:08:23] kalopsian: has joined #ruby
[14:08:54] chipotle: has joined #ruby
[14:09:30] haylon: has joined #ruby
[14:10:08] idefine: has joined #ruby
[14:10:37] gagrio: has joined #ruby
[14:11:35] juanpablo__: has joined #ruby
[14:12:01] duckpupp1: has joined #ruby
[14:13:42] darix: Terens: 2.4 will be trunk. 2.3.x from the 2.3 branch
[14:13:50] charlemagne: has joined #ruby
[14:15:19] BtcBen: has joined #ruby
[14:15:41] haxrbyte: has joined #ruby
[14:16:01] shazaum: has joined #ruby
[14:16:04] ramortegui: has joined #ruby
[14:16:48] daivyk: has joined #ruby
[14:17:25] sankaber: has joined #ruby
[14:19:48] A124: has joined #ruby
[14:19:54] jas02: has joined #ruby
[14:19:59] solars: has joined #ruby
[14:20:16] chipotle: has joined #ruby
[14:20:28] charlemagne: has joined #ruby
[14:21:45] Guest34101: has joined #ruby
[14:21:54] rbennacer: has joined #ruby
[14:25:07] Jardayn: has joined #ruby
[14:26:00] godzillaenlacasa: has joined #ruby
[14:27:47] techietrash: has joined #ruby
[14:27:47] techietrash: has joined #ruby
[14:28:05] tulak: has joined #ruby
[14:28:28] mikecmpbll: has joined #ruby
[14:29:48] adgtl: has joined #ruby
[14:30:10] blackmesa: has joined #ruby
[14:30:25] charlemagne: has joined #ruby
[14:30:58] Jonah11_: has joined #ruby
[14:31:03] kerunaru: has joined #ruby
[14:31:45] chipotle: has joined #ruby
[14:33:48] f4cl3y: has joined #ruby
[14:34:08] chthon: has joined #ruby
[14:34:30] dlitvak: has joined #ruby
[14:35:28] gaxar77: has joined #ruby
[14:35:43] platzhirsch: has joined #ruby
[14:36:03] f4cl3y: has joined #ruby
[14:36:08] steffkes: has joined #ruby
[14:36:47] malconis: has joined #ruby
[14:36:48] dlitvak: has joined #ruby
[14:37:05] Mon_Ouie: has joined #ruby
[14:37:29] PedramT: has joined #ruby
[14:37:37] fmcgeough: has joined #ruby
[14:37:49] malconis: has joined #ruby
[14:39:38] cdg: has joined #ruby
[14:41:06] chouhoulis: has joined #ruby
[14:41:23] eregi: has joined #ruby
[14:43:44] dn5: Could someone give me a hint on this problem
[14:43:46] dn5: https://gist.github.com/dn5/8dddd8c84ada3766ce3d
[14:44:03] ferr: has joined #ruby
[14:44:14] dn5: To dinamicly get Y (as a number) and random(1..Y) ?
[14:44:26] chipotle: has joined #ruby
[14:44:31] voobscout: has joined #ruby
[14:45:42] TomPeed: has joined #ruby
[14:46:15] idefine: has joined #ruby
[14:48:23] whippythellama: has joined #ruby
[14:49:59] dn5: anyone?
[14:50:09] shevy: dn5 do require 'pp'; pp object
[14:50:23] `derpy: http://ruby-doc.org/core-2.3.0/Kernel.html#method-i-rand
[14:50:42] dlitvak: has joined #ruby
[14:50:47] adaedra: (Don't forget to read the "See also".)
[14:51:08] william3: has joined #ruby
[14:51:11] dn5: adaedra: I know how to generate random number
[14:51:13] gregf_: >> foo = %w{bar baz} p foo[rand foo.size]
[14:51:14] ruby[bot]: gregf_: # => /tmp/execpad-64cd35bc2b9c/source-64cd35bc2b9c:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/523215)
[14:51:16] dn5: shevy: Whats that?
[14:51:27] hxegon: has joined #ruby
[14:51:45] shredding: has joined #ruby
[14:51:50] idefine: has joined #ruby
[14:51:54] shevy: dn5 it'll output your data structure nicely which will make the code easier to see for you
[14:52:08] TheBrayn: c[c.keys.sample]['place']
[14:52:12] shevy: since I assume that you can already solve this if you don't use yaml :)
[14:52:51] djcp: has joined #ruby
[14:52:52] bronson: has joined #ruby
[14:52:58] adaedra: c.values.sample['place'] could also work.
[14:52:58] dn5: let me check
[14:53:15] dn5: this will return number of places, right?
[14:53:36] TheBrayn: adaedra: I like your solution better than mine
[14:53:47] mattwildig: has joined #ruby
[14:53:48] adaedra: Well it's one call shorter :p
[14:54:02] awea: has joined #ruby
[14:54:03] TheBrayn: and it's not nested
[14:55:01] william3: has joined #ruby
[14:55:24] dn5: adaedra: Yes, that works. But, what If I have to gather another information from for e.g. place #1, lets say 1: => place: "Place 1" url: "example.com"
[14:55:55] dfinninger: has joined #ruby
[14:56:02] adaedra: from your random place, right?
[14:56:08] chipotle: has joined #ruby
[14:56:12] adaedra: just get c.values.sample and work on it.
[14:56:14] dn5: I could do @c[x][place]; @c[x][url]
[14:56:33] juanpablo___: has joined #ruby
[14:57:32] Xeago: has joined #ruby
[14:58:15] PedramT: has joined #ruby
[14:58:27] juanpablo___: has joined #ruby
[14:59:06] dn5: adaedra: right, but it would randomise place and url, and they wouldn't be at the same place for e.g. 1
[14:59:31] adaedra: place = c.values.sample; place[place], place[url]
[14:59:37] Xeago: has joined #ruby
[14:59:44] adaedra: I forgot the '' but you get the idea
[15:00:31] adaedra: otherwise, if you're afraid, take TheBrayn's solution with x = c.keys.sample and roll your way, but you're doing unneeded accesses to your hash.
[15:00:38] B1n4r10: has joined #ruby
[15:01:18] stannard: has joined #ruby
[15:01:51] william3: has joined #ruby
[15:01:52] dn5: adaedra: your method is fine, and it rocks
[15:01:58] dn5: adaedra: who would say it's that easy
[15:02:02] dn5: I always complicate things
[15:02:28] weemsledeux: has joined #ruby
[15:02:38] snowy: has joined #ruby
[15:03:17] dn5: Ah, riiight hehe
[15:03:36] william3: has joined #ruby
[15:03:56] stannard: has joined #ruby
[15:04:10] ItSANgo: has joined #ruby
[15:05:14] juanpablo____: has joined #ruby
[15:05:24] PedramT: has joined #ruby
[15:06:12] mattwildig: has joined #ruby
[15:06:22] juanpablo____: has joined #ruby
[15:08:14] shevy: keep things simple
[15:08:17] shevy: keep datastructures simple
[15:08:21] idefine: has joined #ruby
[15:09:11] kaleido: keep it simple stupid :D
[15:09:46] HalcyonicStorm: has joined #ruby
[15:11:11] phredus: has joined #ruby
[15:11:16] PedramT: has joined #ruby
[15:12:37] nofacade: has joined #ruby
[15:13:20] shevy: no, stupid is not good, we already have php
[15:13:25] Jonah11_: has joined #ruby
[15:14:26] victorzimmer: has joined #ruby
[15:14:27] x77686d: has joined #ruby
[15:15:02] iamvery: has joined #ruby
[15:15:12] floatingpoint: has joined #ruby
[15:16:32] sankaber: has joined #ruby
[15:17:13] dn5: shevy: can't agree more .. was php dev for years, now transition to rails
[15:18:00] Jonah11_: has joined #ruby
[15:19:12] SebastianThorn: when i need a break, i sometimes read php-code for the lulz
[15:21:07] adgtl_: has joined #ruby
[15:21:39] IrishGringo: has joined #ruby
[15:22:44] rbennacer: has joined #ruby
[15:23:52] dhollinger: has joined #ruby
[15:24:54] floatingpoint: has joined #ruby
[15:26:27] floatingpoint: has joined #ruby
[15:27:46] william3: has joined #ruby
[15:30:05] mary5030: has joined #ruby
[15:30:37] adgtl_: has joined #ruby
[15:31:11] PedramT: has joined #ruby
[15:33:23] konr: has joined #ruby
[15:35:24] Ishido: has joined #ruby
[15:35:31] adaedra: When I need a break, I come read #ruby, and become sad because I see we're discussing another language.
[15:35:56] skade: has joined #ruby
[15:36:45] sgambino: has joined #ruby
[15:37:19] eladmeidar: has joined #ruby
[15:37:28] AlexRussia: has joined #ruby
[15:38:35] rkazak: has joined #ruby
[15:38:44] sgambino: has joined #ruby
[15:38:52] ss_much: has joined #ruby
[15:38:53] ddv: adaedra: shevy and his damn php
[15:38:55] blandflakes: has joined #ruby
[15:39:00] ddv: his fav language
[15:39:11] hnagamin: has joined #ruby
[15:39:25] adaedra: I thought it was Java?
[15:39:30] adaedra: Because it's the top on TIOBE
[15:39:57] babblebre: has joined #ruby
[15:40:18] pdoherty: has joined #ruby
[15:40:18] eregi: has joined #ruby
[15:40:53] laith: has joined #ruby
[15:40:58] idefine_: has joined #ruby
[15:41:47] Marsupermammal: has joined #ruby
[15:41:53] polishdub: has joined #ruby
[15:42:01] Hanmac: ACTION and no one else does care about TIOBE ;P
[15:42:35] Scriptonaut: has left #ruby: ()
[15:42:37] Maletor: has joined #ruby
[15:43:06] cpruitt: has joined #ruby
[15:44:03] william3: has joined #ruby
[15:44:22] futilegames: has joined #ruby
[15:44:41] tjohnson: has joined #ruby
[15:46:54] dhf: has joined #ruby
[15:47:12] mary5030: has joined #ruby
[15:47:55] Jonah11_: has joined #ruby
[15:48:02] Xeago: has joined #ruby
[15:48:38] rbennacer: has joined #ruby
[15:49:07] treehug88: has joined #ruby
[15:49:07] Yzguy: has joined #ruby
[15:50:24] mdih: has joined #ruby
[15:50:27] ljames: has joined #ruby
[15:51:10] allcentury: has joined #ruby
[15:53:13] fedexo: has joined #ruby
[15:53:39] shevy: has joined #ruby
[15:54:53] dlitvak: has joined #ruby
[15:55:44] idefine: has joined #ruby
[15:56:31] mattwildig: has joined #ruby
[15:57:37] zast: has joined #ruby
[15:58:22] Xeago: has joined #ruby
[15:58:53] idefine: has joined #ruby
[15:59:02] dfinninger: has joined #ruby
[16:01:11] joonty: has joined #ruby
[16:01:34] eregi: has joined #ruby
[16:01:51] diegoviola: has joined #ruby
[16:01:59] diegoviola: has joined #ruby
[16:03:11] B3rg3lm1r: has joined #ruby
[16:03:25] kies^: has joined #ruby
[16:03:50] _djbkd: has joined #ruby
[16:04:56] unl0ckd: has joined #ruby
[16:06:02] aryaching: has joined #ruby
[16:09:38] mattwild_: has joined #ruby
[16:10:07] godzillaenlacasa: has joined #ruby
[16:11:21] Gnut: has joined #ruby
[16:13:04] chouhoulis: has joined #ruby
[16:13:59] sucks: has joined #ruby
[16:16:30] kmckelvin: has joined #ruby
[16:18:24] n1colas: has joined #ruby
[16:18:59] gizmore: has joined #ruby
[16:19:01] platzhirsch: The problem is that Rails is becoming the new PHP
[16:19:12] dionysus69: has joined #ruby
[16:19:24] Jonah11_: has joined #ruby
[16:19:25] adaedra: Aw, you're starting trolls just as I'm leaving.
[16:19:52] gregf_: haha, PHP 7 is quite fast
[16:20:32] gizmore: platzhirsch: actually i extend ActiveController and eval("php -r controller.php")
[16:20:42] platzhirsch: and I don't know how to cut Ruby loose from it so it doesn't drag us into the abyss
[16:21:47] mrknip: has joined #ruby
[16:22:33] Marsupermammal: has joined #ruby
[16:22:43] skade: has joined #ruby
[16:22:45] rcvalle: has joined #ruby
[16:22:56] idefine: has joined #ruby
[16:23:28] MindfulMonk: has joined #ruby
[16:24:01] Gnut_: has joined #ruby
[16:24:34] cschneid_: has joined #ruby
[16:25:21] Abrin: has joined #ruby
[16:26:24] dlitvak_: has joined #ruby
[16:27:17] terminalrecluse: has joined #ruby
[16:29:16] skade: has joined #ruby
[16:30:34] Maletor: has joined #ruby
[16:30:42] dfinninger: has joined #ruby
[16:31:10] PedramT_: has joined #ruby
[16:31:44] dlitvak: has joined #ruby
[16:31:46] mattwildig: has joined #ruby
[16:31:54] KensoDev: has joined #ruby
[16:32:55] idefine: has joined #ruby
[16:33:28] Gnut: has joined #ruby
[16:34:18] voobscout: has joined #ruby
[16:34:44] hxegon: has joined #ruby
[16:34:53] jeanlinux: has joined #ruby
[16:35:20] PedramT: has joined #ruby
[16:35:59] sgambino: has joined #ruby
[16:36:11] nettoweb: has joined #ruby
[16:36:46] lucas: has joined #ruby
[16:37:01] r4z3r: has joined #ruby
[16:37:36] dlitvak: has joined #ruby
[16:38:25] MindfulM_: has joined #ruby
[16:39:22] baweaver: has joined #ruby
[16:39:31] r4z3r: has joined #ruby
[16:39:37] PedramT_: has joined #ruby
[16:39:41] dopamean_: has joined #ruby
[16:40:09] tomchapin: has joined #ruby
[16:40:30] mondok: has joined #ruby
[16:41:56] idefine: has joined #ruby
[16:43:53] voobscout: has joined #ruby
[16:45:06] steffkes: has joined #ruby
[16:45:06] steffkes: has joined #ruby
[16:45:23] idefine: has joined #ruby
[16:45:47] despai: has joined #ruby
[16:48:36] beneggett: has joined #ruby
[16:48:42] failshell: has joined #ruby
[16:49:03] nando293921: has joined #ruby
[16:50:19] synthroid: has joined #ruby
[16:51:09] skade: has joined #ruby
[16:51:45] flughafen_: has joined #ruby
[16:51:57] flak: has joined #ruby
[16:53:32] decoponio: has joined #ruby
[16:54:38] bronson: has joined #ruby
[16:55:44] marxarelli: has joined #ruby
[16:55:50] steffkes: has joined #ruby
[16:58:00] marr: has joined #ruby
[16:58:29] tAn: has joined #ruby
[16:59:08] rippa: has joined #ruby
[17:00:56] rht: has joined #ruby
[17:01:10] skweek: has joined #ruby
[17:04:12] amclain: has joined #ruby
[17:05:35] dlitvak: has joined #ruby
[17:05:56] Asher: has joined #ruby
[17:06:01] chipotle: has joined #ruby
[17:06:24] tubbo: platzhirsch: lol
[17:06:46] vdamewood: has joined #ruby
[17:07:07] symm-: has joined #ruby
[17:11:30] TomyLobo: has joined #ruby
[17:11:42] diegoviola: has joined #ruby
[17:12:22] PedramT: has joined #ruby
[17:14:23] steffkes: has joined #ruby
[17:14:50] eregi: has joined #ruby
[17:16:23] kalopsia1: has joined #ruby
[17:17:22] canton7: has joined #ruby
[17:18:05] LoneHermit: has joined #ruby
[17:18:39] nettoweb: has joined #ruby
[17:18:40] shevy: has joined #ruby
[17:18:56] canton7: has joined #ruby
[17:19:26] astrofog: has joined #ruby
[17:19:34] agit0: has joined #ruby
[17:20:14] sneakerhax: has joined #ruby
[17:21:40] RegulationD: has joined #ruby
[17:21:53] Gnut_: has joined #ruby
[17:22:11] FooMunki: has left #ruby: ()
[17:23:15] jeanlinux: has joined #ruby
[17:23:30] dlitvak: has joined #ruby
[17:23:47] Jackneill: has joined #ruby
[17:26:51] B3rg3lm1r: has joined #ruby
[17:26:58] kmckelvin: has joined #ruby
[17:27:13] jmignault: has joined #ruby
[17:28:17] rcvalle: has joined #ruby
[17:28:26] canton7: has joined #ruby
[17:30:32] Kang0: has joined #ruby
[17:31:19] idefine: has joined #ruby
[17:31:59] KensoDev: has joined #ruby
[17:33:37] canton7: has joined #ruby
[17:33:41] B3rg3lm1r: has joined #ruby
[17:34:56] chipotle: has joined #ruby
[17:35:04] swills: has joined #ruby
[17:36:04] Gnut: has joined #ruby
[17:37:08] sucks: has joined #ruby
[17:38:27] B1n4r10: has joined #ruby
[17:39:36] aweis: has joined #ruby
[17:40:22] SCHAAP137: has joined #ruby
[17:40:31] blackjid: has joined #ruby
[17:40:48] rakm: has joined #ruby
[17:41:05] Gnut: has joined #ruby
[17:41:38] aadam21: has joined #ruby
[17:42:22] steffkes: has joined #ruby
[17:42:22] steffkes: has joined #ruby
[17:45:50] chipotle: has joined #ruby
[17:46:06] sgambino: has joined #ruby
[17:46:10] celly: has joined #ruby
[17:46:19] baweaver: has joined #ruby
[17:46:23] Gnut: has joined #ruby
[17:47:12] rakm: has joined #ruby
[17:48:28] idefine: has joined #ruby
[17:50:39] dlitvak: has joined #ruby
[17:51:01] charlemagne: has joined #ruby
[17:52:04] devbug: has joined #ruby
[17:52:25] anisha: has joined #ruby
[17:52:28] lemur: has joined #ruby
[17:52:29] ElFerna: has joined #ruby
[17:52:32] idefine: has joined #ruby
[17:53:17] victorzimmer: has joined #ruby
[17:54:47] charlemagne: has joined #ruby
[17:54:52] replay: has joined #ruby
[17:55:54] [spoiler]: Wisdom of the day "shevy: no, stupid is not good, we already have php"
[17:56:36] chipotle: has joined #ruby
[17:56:55] [spoiler]: the fuck is tiobe even
[17:58:25] beanHolez: has joined #ruby
[17:58:36] bronson: has joined #ruby
[17:58:50] bricker: has joined #ruby
[17:58:59] _djbkd: has joined #ruby
[17:59:29] [spoiler]: I am not a huge fan of Rails. I feel like it's size is monstrous, and it does come with certain performance issues, sadly. However, I'd still use it over PHP-on-anything.
[17:59:39] Guest34101: has joined #ruby
[18:00:01] _djbkd: has joined #ruby
[18:00:03] Alayde: has joined #ruby
[18:00:20] brendan-: has joined #ruby
[18:00:28] haylon: why not use Lotus, or Sinatra?
[18:00:55] TinkerTyper: has joined #ruby
[18:01:05] shevy: tiobe is really strange, but I think the latest increase in perl has to do with perl 6, and then probably more google-searches and other searches, which then somehow found its way onto tiobe (though of course it may well be just totally random too)
[18:01:13] [spoiler]: I love sinatra, haylon!
[18:01:31] elifoster: has joined #ruby
[18:01:32] haylon: I love sinatra too for quick, lightweight stuff
[18:01:36] podman: has joined #ruby
[18:01:53] haylon: I discovered Lotus not too long afterwards, which seems a moderate mix between Rails, and Sinatra
[18:02:00] B1n4r10: has joined #ruby
[18:02:26] Papierkorb: I think what rails really does well is quickly getting something up and running. And as long you painstakenly play by its rules, it works fine for the most part. If you need to deviate however things get funny
[18:02:28] afaris: has joined #ruby
[18:02:28] afaris: has joined #ruby
[18:02:45] Alayde: has left #ruby: ()
[18:02:46] blackmesa: has joined #ruby
[18:02:52] [spoiler]: haylon: didn't lotus change name to hasuhime or something?
[18:03:03] Papierkorb: That, and I don't agree that everything that's not a View nor Controller is a Model :)
[18:03:06] haylon: Papierkorb, yes, true, but as I'm learning, there's a lot more work than just using a DSL like Sinatra
[18:03:10] [spoiler]: LOL hasuhime is my friend's twitter handle
[18:03:18] [spoiler]: Lotus changed name to hanamari
[18:03:37] haylon: [spoiler], yes they did
[18:03:40] haylon: just recently
[18:03:48] [spoiler]: gosh, I can't typu
[18:04:06] IrishGringo: has joined #ruby
[18:04:09] haylon: http://hanamirb.org/
[18:04:18] bmalum: has joined #ruby
[18:04:19] Papierkorb: haylon: Absolutely. Rails is really good at what it does. It certainly goes by convention over configuration, which does limit flexibility. If you need that flexibility you'll either have to bend some things, or use something different. That's by design and not really rails fault IMO
[18:05:18] mrmargolis: has joined #ruby
[18:05:40] dfinninger: has joined #ruby
[18:06:46] tubulife-: has joined #ruby
[18:06:54] unl0ckd: has joined #ruby
[18:07:14] [spoiler]: If you learn its conventions it's pretty fast in terms of dev time, I agree. However, unless you carefully add caching mechanisms in the right places, it can be a strain on the resources
[18:07:51] DmitryBochkarev: has joined #ruby
[18:08:41] DmitryBochkarev: has joined #ruby
[18:08:56] [spoiler]: It's good that rails comes with its caching mechanism built in, though, but it's tricky to get right from my experience (I was a much shitteir programmer than, I'm a bit less shitty now so maybe it would be easier)
[18:09:15] william3: has joined #ruby
[18:09:30] chipotle: has joined #ruby
[18:10:11] al2o3-cr: has joined #ruby
[18:10:46] mikecmpbll: has joined #ruby
[18:10:46] Eiam: has joined #ruby
[18:11:19] spider-mario: has joined #ruby
[18:11:19] shevy: haylon how do they make the strange icon on the left side of "Full featured, but lightweight" on that page?
[18:11:42] mattwildig: has joined #ruby
[18:12:18] haylon: I'm not sure shevy
[18:12:27] [spoiler]: shevy: it's supposed to be a feather
[18:12:45] haylon: looks like its part of the background image rather than its own image
[18:12:55] [spoiler]: it's a font
[18:13:07] [spoiler]: a typeface, rather
[18:13:19] haylon: speaking a whole different language to me there
[18:13:47] [spoiler]: `icon.icon-feather::before` is the selector for the feather
[18:13:47] chouhoul_: has joined #ruby
[18:14:14] [spoiler]: and the typeface is called `toolkit-entypo`
[18:14:15] haylon: Ahh, I'm not completely up on teh front end development stuff for CSS or anything like that.
[18:14:41] [spoiler]: Ah, I'm (sadly) a "full-stack" developer
[18:14:54] mg^: looks like an oak leaf more than a feather
[18:14:58] shevy: hmm how strange
[18:15:05] [Butch]: has joined #ruby
[18:15:08] [spoiler]: mg^: you're right!
[18:15:52] chouhoul_: has joined #ruby
[18:16:31] haylon: [spoiler], aren't we all fancy? lol, front end stuff just baffles me.
[18:16:54] [spoiler]: I associated it with a feather only because it said "lightweight" next to it
[18:17:03] despai: has joined #ruby
[18:17:25] jottr: has joined #ruby
[18:17:31] mg^: Thankfully I am in systems and not webby stuff. The closest to webby stuff I get to is using or occasionally implementing REST/SOAP/XMl-RPC APIs.
[18:17:32] cpup: has joined #ruby
[18:17:49] voobscout: has joined #ruby
[18:17:56] mg^: I agree with you that a feather is probably what they were going for.
[18:19:08] moos3: has joined #ruby
[18:19:17] jeanlinux: has joined #ruby
[18:19:53] godzillaenlacasa: has joined #ruby
[18:20:08] shadoi: has joined #ruby
[18:20:10] [spoiler]: mg^: I am actually a system developer (mostly work with C), but I do enjoy web development a lot; it's kind of a hobby. I am more partial to backend, though
[18:20:15] diegok: has joined #ruby
[18:20:45] diegok: anyone can help me understand what pack does?
[18:20:48] diegok: i need to port this line to go
[18:20:50] diegok: Array.new(10){ rand(0x100000000) }.pack('I*')
[18:20:52] joonty: has joined #ruby
[18:21:01] diegok: but i don't know for sure what pack('I') does
[18:22:05] B3rg3lm1r: has joined #ruby
[18:22:14] shevy: http://ruby-doc.org/core-2.3.0/Array.html#method-i-pack
[18:22:20] [spoiler]: I started a few side projects and they turned out to have a lot of web development, so I got dragged into it and enjoyed it
[18:22:25] intrigueD: has joined #ruby
[18:22:45] shevy: I, I_, I! | Integer | unsigned int, native endian
[18:22:58] haylon: for me, I'm tryign to still plan and learn a bunch before I start publishign my stuff
[18:23:05] haylon: and as always someone else has already done it.
[18:23:11] [spoiler]: the * means it will convert to as many unsigned ints as possible
[18:23:16] shevy: I always reinvent the wheel
[18:23:38] [spoiler]: rather than convert
[18:24:03] diegok: the * part i got
[18:24:07] diegok: but the I dont
[18:24:11] diegok: the array already have a integer, it gonna convert to integer again? sorry, cant understand this
[18:24:17] diegok: integer into integer?
[18:24:44] jottr: has joined #ruby
[18:24:49] [spoiler]: >> puts [65, 65].pack("I*") # should be "AA"
[18:24:50] ruby[bot]: [spoiler]: # => A
[18:24:57] mg^: I have no penchant for design, so the few web interfaces I have done don't get rave reviews.
[18:25:18] [spoiler]: >> [65, 65].pack("I*")
[18:25:20] ruby[bot]: [spoiler]: # => "A\x00\x00\x00A\x00\x00\x00" (https://eval.in/523297)
[18:26:24] mg^: >> [65, 65].pack("c*")
[18:26:25] ruby[bot]: mg^: # => "AA" (https://eval.in/523298)
[18:26:37] MindfulMonk: has joined #ruby
[18:26:58] [spoiler]: i did mean "A<3 nulls>" x 2, tho,
[18:27:18] [spoiler]: diego_: it's esentially used to serialise data into a string
[18:27:22] mg^: yeah I know, I just wanted to see a clean "AA" :)
[18:27:55] [spoiler]: unpack de-seralises the data into an array
[18:30:46] GriffinHeart: has joined #ruby
[18:30:50] [spoiler]: diego_: the point is that it will be an unsigned integer of that local machine, it won't be very portable though
[18:31:07] sulky: has joined #ruby
[18:31:23] diegok: ok ok, gonna test if see if works, need do a integration with adobe omniture, and there i need to send a nonce
[18:31:31] failshell: has joined #ruby
[18:33:27] dlitvak: has joined #ruby
[18:34:00] johnnyt: has joined #ruby
[18:34:20] momomomomo: has joined #ruby
[18:34:32] kirillzh: has joined #ruby
[18:34:49] [spoiler]: We forgot to ?guys him
[18:34:58] blackmesa: has joined #ruby
[18:36:09] chris2: obv you need an autoreply pool
[18:36:19] chris2: s/pool/bot
[18:36:26] gaxar77: has joined #ruby
[18:37:35] diegoviola: has joined #ruby
[18:40:00] pdoherty: has joined #ruby
[18:40:05] celly: has joined #ruby
[18:41:00] platzhirsch: has left #ruby: ()
[18:42:24] PedramT: has joined #ruby
[18:42:30] chouhoulis: has joined #ruby
[18:43:32] eregi_: has joined #ruby
[18:43:33] voobscout: has joined #ruby
[18:43:41] acidrainfall: has joined #ruby
[18:43:58] acidrainfall: Hey guys. I have a question regarding hashes. Is there a `pop` function in ruby?
[18:44:26] acidrainfall: I want to `pop` a key.
[18:44:33] chris2: you can delete it
[18:44:49] chris2: also ?guys
[18:45:00] nettoweb: has joined #ruby
[18:45:03] acidrainfall: guys / everyone / you people
[18:45:28] chris2: last time i checked there was no way to get a random key easily
[18:45:52] acidrainfall: Well, maybe I'm not describing my issue well enough.
[18:45:54] jottr_: has joined #ruby
[18:45:59] acidrainfall: This is *stupid* and I hate that I have to do it.
[18:46:06] chris2: then explain :)
[18:46:28] acidrainfall: This originates as a puppet issue - but the "issue" is actually TOML and the TOML gem.
[18:46:29] kaleido: what would a "pop" do?
[18:46:36] acidrainfall: Remove an item from a hash/array
[18:46:38] shevy: acidrainfall you could simulate via .reject!; or you can use .delete! which will return the value, and the key must be known to you since you have to pass an argument to .delete!()
[18:46:52] acidrainfall: That's fine, I actually do know the key
[18:46:55] ProofTechnique: Like the opposite of slice?
[18:47:11] chris2: .delete removes an item...
[18:47:35] acidrainfall: So there's a config file being generated for Grafana, in TOML, and the TOML gem jumbles the file all to hell every time it runs because it doesn't sort or order the data before printing.
[18:47:37] shevy: even better, you don't have to use a ! !!!
[18:47:39] ProofTechnique: Or, I guess, closer to slice!
[18:47:52] shevy: tim and tom
[18:48:03] shevy: prooftechnique oh, the bang!
[18:48:28] chipotle: has joined #ruby
[18:48:28] chris2: >> h = {"foo" => 5, "bar" => 6}; h.delete("foo"); h
[18:48:29] ruby[bot]: chris2: # => {"bar"=>6} (https://eval.in/523303)
[18:48:38] acidrainfall: There's one block that *has* to be first, [[servers]]. It all comes out of a hash called ldap_cfg. I need to basically get ldap_cfg.servers and print it, delete it, then for loop the rest of the hash.
[18:49:08] cabargas: has joined #ruby
[18:49:17] acidrainfall: (it's really poor coding on Grafana's part, they chose an unordered semi-structured config file language but they treat it like it's an ordered set. YOU CAN'T HAVE BOTH.)
[18:50:20] acidrainfall: Does this make sense? Related issue for more detail: https://github.com/bfraser/puppet-grafana/issues/69 (the title was a mistype, it's TOML not JSON)
[18:51:11] chris2: so whats the problem now?
[18:51:36] acidrainfall: The hash ldap_cfg prints out in whatever order it wants. There's a section in ldap_cfg that has to appear at the top of the file.
[18:51:51] chris2: and why is my delete proposal not good?
[18:51:59] acidrainfall: I haven't left an evaluation of it
[18:52:16] acidrainfall: I was just expanding on the issue I'm facing.
[18:52:25] chris2: and i just told you the solution, so just read it :P
[18:53:05] IrishGringo: has joined #ruby
[18:53:08] acidrainfall: I will, but do you see a better way to accomplish this?
[18:53:38] ruby-lang502: has joined #ruby
[18:53:40] kcantwel: has joined #ruby
[18:54:07] athix: has joined #ruby
[18:55:54] benlieb: has joined #ruby
[18:56:14] ruby-lang502: Does anyone know the big difference between SimpleCov.start and SimpleCov.start 'rails' when called from spec_helper.rb in a rails app? I noticed the coverage is reduced significantly while the lines of code is also somehow reduced?
[18:56:24] athix: I bet it's related to the air speed velocity of an unladen swallow.
[18:56:51] kirillzh: has joined #ruby
[18:56:55] B3rg3lm1r: has joined #ruby
[18:57:14] mg^: acidrainfall, there probably isn't a pretty way to get what you want
[18:57:29] acidrainfall: I don't think there is.
[18:58:20] DmitryBochkarev: has joined #ruby
[18:58:43] dling: has joined #ruby
[18:59:05] xfbs: has joined #ruby
[18:59:47] kaleido: athix: european or african?
[19:00:27] athix: kaleido: ...I don't know that! *screams while being thrown into the abyss*
[19:00:32] mg^: acidrainfall, ruby hashes *are* ordered. You could construct a new hash with your server data as the first key. Something like new_ldap_cfg = {}; new_ldap_cfg['servers'] = ldap_cfg.delete('servers'); new_ldap_cfg.merge!(ldap_cfg) It's also ugly.
[19:00:48] mg^: ordered since 1.9 anyway
[19:01:03] xfbs: has joined #ruby
[19:01:15] acidrainfall: mg^: I'm versionn locked on 1.8
[19:01:29] mg^: oh, well, scratch that
[19:02:03] acidrainfall: mg^: Granted, that's much less ugly than what I was thinking.
[19:02:42] DarkMoonDancer: has joined #ruby
[19:02:48] shevy: a fossil :D
[19:03:00] firstdayonthejob: has joined #ruby
[19:03:05] dfinninger: has joined #ruby
[19:03:27] azure32: has joined #ruby
[19:04:08] acidrainfall: Yeah I know. :/
[19:04:09] cabargas: has joined #ruby
[19:04:15] acidrainfall: It's what EL6 supports for base Ruby.
[19:04:25] acidrainfall: I could use Ruby193 from SCL but automating that is a bitch and a half.
[19:04:44] acidrainfall: We're a bit squeemish about huge infrastructure-wide changes like that because we're in perpetual UAT
[19:04:46] mg^: yeah it can be, I've got ~100+ EL6 servers
[19:04:57] acidrainfall: Do you use the 193 scl package?
[19:05:06] mg^: in limited instances
[19:05:15] acidrainfall: Otherwise you stick to 1.8.4?
[19:05:16] momomomomo: has joined #ruby
[19:05:26] acidrainfall: Or is it 1.8.6 now? I don't remember.
[19:05:35] mg^: it's a great idea in theory, but a pain in practice
[19:06:02] mg^: I've tried to move to EL7 wherever possible.
[19:06:25] openstru_: has joined #ruby
[19:06:27] mg^: where I can't, I use wrapper scripts to make things behave
[19:06:33] _djbkd: has joined #ruby
[19:06:37] idefine: has joined #ruby
[19:07:10] _djbkd: has joined #ruby
[19:07:54] pawnbox: has joined #ruby
[19:08:08] acidrainfall: Yeah we'll have an easier time with EL7 once we've abandoned our old software platform.
[19:08:20] acidrainfall: We've only been on 6 for a year, sadly
[19:08:21] _djbkd: has joined #ruby
[19:08:35] mg^: I was going to swear we worked for the same company until that last comment :)
[19:08:36] 92AAACQUZ: has joined #ruby
[19:08:55] reaVer: has joined #ruby
[19:09:08] shevy: fossils sitting in a coffee shop, having a chat
[19:09:15] mg^: We are in the process of abandoning our old platform, but there is customer resistance
[19:10:11] acidrainfall: We just don't have the replacement ready to go yet.
[19:10:16] acidrainfall: It's spun up quick but it has some way to go too.
[19:10:44] mg^: "ready to go" is a relative thing
[19:11:12] mg^: When we launched our new platform I did not consider it "ready to go" but engineering and management disagreed :)
[19:11:15] acidrainfall: Eh, good point.
[19:11:17] jobewan: has joined #ruby
[19:11:43] mg^: Hence the customer resistance to migrating
[19:12:14] mg^: "It's got less features, but now it runs in your browser" is not compelling.
[19:12:26] acidrainfall: Oh, you work for VMware?
[19:12:51] mg^: no, but that's the story with their latest stuff, too, isn't it?
[19:12:53] acidrainfall: Eh, honestly this is annoying enough that I'm gonna give up on solving it.
[19:13:04] acidrainfall: I'll just wait for the maintainer to deal with it.
[19:13:19] acidrainfall: mg^: verbatim how their web vsphere client rollout went
[19:13:23] acidrainfall: widespread and ubiquitous backlash
[19:13:37] acidrainfall: Because it's the worst designed interface in the history of interfaces. It makes Microsoft Bob look efficient.
[19:13:47] idefine: has joined #ruby
[19:14:08] celly: has joined #ruby
[19:14:17] mg^: well, I can offer one more possible solution... you could put the keys into an array, get servers as the first item. say like keys.unshift(keys.delete('servers')), and then iterate over it that way
[19:14:59] mg^: Yeah I am not a fan of the way the vsphere web interface works, but you should try interacting with VMware's hypervisor at the API level
[19:15:12] mg^: it's so SOAPy the whole world could bathe
[19:15:12] hahuang65: has joined #ruby
[19:15:46] mg^: In fact, every WSDL-based code generator I've tried against it barfs.
[19:16:14] celly: has joined #ruby
[19:17:19] devbug: has joined #ruby
[19:17:47] graffix: has joined #ruby
[19:17:57] baweaver: has joined #ruby
[19:18:53] codecop: has joined #ruby
[19:19:27] monque: has joined #ruby
[19:19:30] firstdayonthejob: has joined #ruby
[19:19:46] xfbs: has joined #ruby
[19:21:36] tvw: has joined #ruby
[19:21:36] ur5us: has joined #ruby
[19:21:39] idefine: has joined #ruby
[19:21:56] william3: has joined #ruby
[19:22:19] speakingcode: has joined #ruby
[19:22:57] B3rg3lm1r: has joined #ruby
[19:24:09] cpup: has joined #ruby
[19:24:10] Gnut_: has joined #ruby
[19:25:58] sepp2k: has joined #ruby
[19:26:49] idefine: has joined #ruby
[19:28:14] _djbkd: has joined #ruby
[19:28:45] _djbkd: has joined #ruby
[19:29:30] mattwildig: has joined #ruby
[19:31:58] idefine: has joined #ruby
[19:32:12] MindfulM_: has joined #ruby
[19:32:34] dfinninger: has joined #ruby
[19:34:56] kinduff: has joined #ruby
[19:35:05] blackmesa: has joined #ruby
[19:35:38] Gnut: has joined #ruby
[19:36:05] failshell: has joined #ruby
[19:38:39] william3: has joined #ruby
[19:39:40] Garo_: has joined #ruby
[19:40:09] Garo_: Hello. Could somebody point me to a good example on how to build a simple web server with Puma? puma.io doesn't really point to any good tutorial or examples.
[19:40:23] whippythellama: has joined #ruby
[19:41:29] dlitvak: has joined #ruby
[19:44:43] peterhu: has joined #ruby
[19:44:47] tubbo: Garo_: that's kind-of like asking if someone can show you how to build a simple computer with a macbook pro
[19:44:58] MindfulMonk: has joined #ruby
[19:45:06] tubbo: Garo_: are you looking for a nodejs-style http.createServer interface?
[19:45:31] maikowblue: has joined #ruby
[19:45:40] anisha: has joined #ruby
[19:46:21] Garo_: tubbo: might be. I'm trying to figure out the best way to embedd a simple http server into my application. What I want is that I need to create my own DSL which creates routes for certain urls and then have those to handle their action inside threads. I'm not an experienced ruby developer, so I'm still just learning around Rackup, Sinatra, Puma and so on as I'm thinking what's the best way to lay the groundwork
[19:46:48] ziyadb: has joined #ruby
[19:47:11] tubbo: Garo_: yeah i'd definitely start with sinatra. there's just no point in re-writing all the "wire up" code
[19:47:41] Garo_: it seems that most ruby web servers start from the assumption that the web server is the framework, but I'm building my own framework and I want my web server to be a library which I use instead
[19:47:48] tubbo: your other option is to implement Rack directly.
[19:47:59] cabargas: has joined #ruby
[19:48:00] beanHolez: has joined #ruby
[19:48:10] tubbo: that is, if you want this to be rack compatible
[19:48:17] Garo_: at first it looks that Sinatra uses EventMachine which is not what I want as I want to run my requests inside threads
[19:48:24] tubbo: Garo_: that is not correct.
[19:48:59] Garo_: tubbo: ok. I got some hins that I can use sinatra with Puma, so I guess that way it would use puma's way to use threads instead of the eventmachine
[19:49:06] Garo_: but as said, I'm still learning =)
[19:49:16] tubbo: Garo_: sinatra is just a web framework. it's really just a Ruby DSL for writing the following kind of statement and returning it in a rack app's call() method: [200, { 'Content-Type' => 'text/html' }, "yay!"]
[19:49:18] tubbo: or whatever
[19:49:47] tubbo: Garo_: so if you want to do fancy stuff and sinatra gets in your way, just implement rack directly
[19:49:55] tubbo: the whole point of rack is so you don't have to think so low-level
[19:50:13] Garo_: tubbo: thanks. it starts to make sense. so to continue this then Puma would be the one calling that call() method inside a thread after it comes to the puma's web server?
[19:50:16] cschneid_: Is there a generative testing library that's any good?
[19:51:01] tubbo: Garo_: maybe this would help you https://isotope11.com/blog/build-your-own-web-framework-with-rack-and-ruby-part-1 and https://isotope11.com/blog/build-your-own-web-framework-with-rack-and-ruby-part-2
[19:51:51] kobain: has joined #ruby
[19:51:57] whippythellama: has joined #ruby
[19:52:50] dlitvak_: has joined #ruby
[19:53:07] yqt: has joined #ruby
[19:53:21] Yzguy: has joined #ruby
[19:53:22] victorzimmer: has joined #ruby
[19:54:08] Garo_: tubbo: thanks, I'll definitively read those =)
[19:54:44] dopamean_: has joined #ruby
[19:54:54] JusticeFries: has left #ruby: ()
[19:56:36] mdw: has joined #ruby
[19:56:52] ElFerna: has joined #ruby
[19:57:06] krobzaur: has joined #ruby
[19:59:33] yfeldblum: has joined #ruby
[20:00:46] nando293921: has joined #ruby
[20:01:21] idefine: has joined #ruby
[20:01:38] Xeago: has joined #ruby
[20:01:57] al2o3-cr: has joined #ruby
[20:01:58] al2o3-cr: has joined #ruby
[20:02:20] chipotle: has joined #ruby
[20:02:33] MindfulMonk: has joined #ruby
[20:03:45] openstruct: has joined #ruby
[20:03:45] openstruct: has joined #ruby
[20:04:12] idefine: has joined #ruby
[20:04:18] norc: has joined #ruby
[20:04:42] openstruct: has joined #ruby
[20:04:48] allcentury: has joined #ruby
[20:05:04] al2o3-cr1: has joined #ruby
[20:05:48] haxrbyte: has joined #ruby
[20:06:01] cabargas: has joined #ruby
[20:06:28] idefine: has joined #ruby
[20:09:48] haxrbyte: has joined #ruby
[20:10:21] idefine_: has joined #ruby
[20:10:48] last_staff: has joined #ruby
[20:10:53] kcantwel: has joined #ruby
[20:14:06] zeroDivisible: has joined #ruby
[20:16:32] nofacade: has joined #ruby
[20:17:58] idefine: has joined #ruby
[20:18:21] voobscout: has joined #ruby
[20:18:23] godzillaenlacasa: has joined #ruby
[20:18:46] jeanlinux: has joined #ruby
[20:20:00] norc: Which one would you guys prefer and why? https://eval.in/523322
[20:20:08] jfutbol: has joined #ruby
[20:20:21] idefine: has joined #ruby
[20:21:06] ccooke: has joined #ruby
[20:21:06] valeri_ufo: has joined #ruby
[20:21:06] kallisti5: has joined #ruby
[20:21:06] droptone: has joined #ruby
[20:21:07] matti: has joined #ruby
[20:21:07] skyjumper: has joined #ruby
[20:44:03] helpa: has joined #ruby
[20:44:12] Scripore: has joined #ruby
[20:44:16] jawr: shevy: "jazzy"
[20:44:26] jawr: i could try a brew install ruby i guess?
[20:44:34] jolts: has joined #ruby
[20:44:50] norc: jawr: Think I got it. Clear it out of your gem cache and try again.
[20:44:54] norc: It likely got corrupted.
[20:45:00] eregi: has joined #ruby
[20:45:04] jawr: well i tried
[20:45:18] jawr: sudo gem sources -c
[20:45:26] jawr: before i ran that last command
[20:45:28] Channel6: has joined #ruby
[20:45:36] norc: jawr: Just manually delete the gem from your cache.
[20:46:06] jolts: has joined #ruby
[20:46:16] skade: has joined #ruby
[20:46:23] idefine: has joined #ruby
[20:47:23] shevy: jawr aha I see
[20:47:31] norc: jawr: Are you installing this with bundler?
[20:47:40] shevy: quite a long list
[20:47:49] norc: jawr: and no, dont install it with brew.
[20:48:08] norc: jawr: The best and cleanest option is to directly go with plain ruby-install and chruby.
[20:48:24] aef: has joined #ruby
[20:48:42] shevy: pretty long list of stuff it wants to install https://gist.github.com/anonymous/164b3a690a72c9a10edd
[20:49:00] jawr: i just cleared the cache
[20:49:01] quazimodo: has joined #ruby
[20:49:10] shevy: jawr have you tried "gem install jazzy" directly from the commandline as well?
[20:49:13] jawr: nope just with gem norc
[20:49:19] jawr: thats how i am trying shevy
[20:49:37] shevy: normally gem gives more information what failed
[20:49:48] norc: jawr: Try installing any other gem please.
[20:49:58] shevy: or perhaps you have an old rubygems :)
[20:50:17] norc: shevy: The more I read about it it should not be an issue.
[20:50:51] Kang0: has left #ruby: ("AndroIRC")
[20:51:03] norc: jawr: Did you manually delete the gem from the cache directory?
[20:51:13] Bloodshot: has joined #ruby
[20:51:18] jawr: i dunno if this is normal behaviour for gem, but when i do install it does a lot of: https://gist.github.com/anonymous/8377fa135e8495df8d2b
[20:51:25] bkulbida: has joined #ruby
[20:51:27] jawr: yep from all cache dirs within gem env paths
[20:51:41] jawr: heh it worked norc
[20:51:47] jawr: thanks for the suggestion
[20:52:25] norc: jawr: The redirects are normal. Gems are served through a network of various CDN sources.
[20:52:59] rizenine: has joined #ruby
[20:53:18] FernandoBasso: has joined #ruby
[20:53:31] norc: jawr: Lets verify this. gem fetch and gem install the file
[20:53:44] norc: If this still fails it means either the gem is broken or your rubygems.
[20:53:45] LoneHermit: has joined #ruby
[20:53:53] lemur: has joined #ruby
[20:53:57] mattwildig: has joined #ruby
[20:54:42] jawr: i tried using the bin with jazzy
[20:54:50] jawr: it fails for another reason, im pretty sure its installed ok
[20:55:52] blandflakes: has joined #ruby
[20:55:54] norc: jawr: One other thing could be causing major havoc - do you already have something like rbenv or RVM installed?
[20:56:39] shellie_: has joined #ruby
[20:57:00] toretore: has joined #ruby
[20:57:02] Bloodshot: has left #ruby: ()
[20:58:20] Gnut_: has joined #ruby
[20:59:06] jgpawletko: has joined #ruby
[20:59:43] ElFerna: has joined #ruby
[21:00:16] FooMunki: has joined #ruby
[21:02:24] azure32: has joined #ruby
[21:02:44] jawr: i dont think so, i would have to check
[21:02:49] jawr: i rarely if ever use ruby itself
[21:02:52] Frem: has joined #ruby
[21:03:09] Lildirt: has joined #ruby
[21:03:12] captainphil: has joined #ruby
[21:03:24] Gnut: has joined #ruby
[21:03:35] renderful: has joined #ruby
[21:04:00] norc: jawr: Look at your .bash_profile to find out
[21:04:04] quazimodo: has joined #ruby
[21:04:09] skade: has joined #ruby
[21:04:14] duckpuppy: has joined #ruby
[21:06:03] aegis3121: has joined #ruby
[21:06:31] idefine: has joined #ruby
[21:08:50] hxegon: has joined #ruby
[21:09:59] mgorbach: has joined #ruby
[21:10:15] idefine: has joined #ruby
[21:10:16] learning: has joined #ruby
[21:10:55] stannard: has joined #ruby
[21:11:05] Musashi007: has joined #ruby
[21:13:54] Trynemjoel: has joined #ruby
[21:16:54] dfinninger: has joined #ruby
[21:17:07] mistym: has joined #ruby
[21:17:07] Musashi007: has joined #ruby
[21:17:07] mistym: has joined #ruby
[21:17:39] nettoweb: has joined #ruby
[21:18:00] UtkarshRay: has joined #ruby
[21:18:24] goodcodeguy: has joined #ruby
[21:18:52] Lildirt: has joined #ruby
[21:19:35] auxbuss: has joined #ruby
[21:20:42] aweis: has joined #ruby
[21:20:50] _djbkd: has joined #ruby
[21:22:05] catbusters: has joined #ruby
[21:22:54] bronson: has joined #ruby
[21:23:29] joonty: has joined #ruby
[21:23:42] jtfutbol: has joined #ruby
[21:23:45] idefine: has joined #ruby
[21:25:35] saneax_AFK: has joined #ruby
[21:26:29] mg^: has joined #ruby
[21:26:30] SenpaiSilver: has joined #ruby
[21:27:06] doublemalt__: has joined #ruby
[21:28:34] learning: has joined #ruby
[21:29:02] learning: has joined #ruby
[21:30:04] rbennacer: has joined #ruby
[21:30:47] cdg: has joined #ruby
[21:31:15] lpvb: has joined #ruby
[21:31:56] Trynemjoel: has joined #ruby
[21:32:26] kalopsian: has joined #ruby
[21:32:33] ElFerna: has joined #ruby
[21:35:02] kirillzh: has joined #ruby
[21:35:33] dlitvak: has joined #ruby
[21:38:06] mondok: has joined #ruby
[21:39:09] blackice_: has joined #ruby
[21:39:27] snockerton: has joined #ruby
[21:39:54] nettoweb: has joined #ruby
[21:40:56] MindfulMonk: has joined #ruby
[21:41:48] william3: has joined #ruby
[21:43:37] goodcodeguy: has joined #ruby
[21:43:47] jeanlinux: has joined #ruby
[21:45:08] mrchris: has joined #ruby
[21:45:33] mrchris: Is there a shortcut to create an array of integers akin to %w{some strings} ?
[21:45:39] sgambino: has joined #ruby
[21:45:55] mattwildig: has joined #ruby
[21:46:29] dlitvak: has joined #ruby
[21:46:34] doctorly: has joined #ruby
[21:47:04] [Butch]_: has joined #ruby
[21:47:09] apeiros: __chris: no
[21:47:16] doctorly: Hello, I have a quick question. What types of skills would a Junior Ruby developer be expected to know?
[21:47:31] mrchris: didn't find any. %w{1 5 7}.map(&:to_i) i guess
[21:47:55] apeiros: doctorly: depends on the hiring company.
[21:48:17] tvw: has joined #ruby
[21:48:26] doctorly: apeiros: I believe the job will be scripting deployment commands and such.
[21:48:35] apeiros: __chris: you didn't find any because there is none. map is only "shortcut" once you have >12 integers in the array
[21:48:56] doctorly: apeiros: I think it is basically a dev ops position, using ruby
[21:49:06] mrchris: apeiros, what do you mean about > 12?
[21:49:08] apeiros: doctorly: to us, a junior is a dev which is to be trained. that can even start at zero ruby knowledge.
[21:49:18] william3: has joined #ruby
[21:49:37] apeiros: __chris: try without your shortcut and compare. see how many ints you need for yours to be shorter.
[21:49:46] beanHolez: has joined #ruby
[21:49:49] doctorly: apeiros: so if a company wants to hire me at a junior level, as long as I have a strong background, I should be able to manage?
[21:50:02] Canar: doctorly: that's what i'd assume, yea
[21:50:09] apeiros: doctorly: as said before: it depends on the hiring company.
[21:50:15] Canar: i'm at 3.5yr of c# experience myself
[21:50:16] apeiros: they should lay out what they expect from you.
[21:50:17] Canar: sharepoint x.x
[21:50:24] mrchris: apeiros, i understand what you mean now. I have quite a few number thats why i was hoping for a shortcut with out having to resort to map
[21:51:32] dfinninger: has joined #ruby
[21:51:55] doctorly: apeiros: The company is hiring senior, but some people managed to convince them to talk to me about a junior position. So I am really in a spot where I'm nervous about the questions they are going to ask me lmao. I don't want to get pushed out because I forgot how to explain something simple.
[21:52:03] Cohedrin: has joined #ruby
[21:52:06] diegoviola: has joined #ruby
[21:52:16] doctorly: I will just continue to study and do my best I guess
[21:53:41] jeanlinux: has joined #ruby
[21:54:02] beanHolez: has joined #ruby
[21:55:19] apeiros: doctorly: that's not a bad idea.
[21:57:49] stevemackinnon: has joined #ruby
[21:58:01] idefine: has joined #ruby
[21:58:30] joonty: has joined #ruby
[21:58:47] wmdrossard: has joined #ruby
[22:00:05] stevemackinnon: has joined #ruby
[22:01:44] yfeldblum: has joined #ruby
[22:04:55] darkf: has joined #ruby
[22:05:15] ElFerna: has joined #ruby
[22:05:35] diegoviola: has joined #ruby
[22:06:15] diegoviola: has joined #ruby
[22:06:37] sudoubuntu: has joined #ruby
[22:08:42] tomphp: has joined #ruby
[22:08:45] william3: has joined #ruby
[22:08:50] idefine: has joined #ruby
[22:09:09] htmldrum: has joined #ruby
[22:12:39] zapata: has joined #ruby
[22:12:55] pontiki: has joined #ruby
[22:13:49] moeabdol3: has joined #ruby
[22:14:12] s00pcan: has joined #ruby
[22:14:30] idefine: has joined #ruby
[22:14:37] intrigueD: has joined #ruby
[22:15:12] Scripore: has joined #ruby
[22:16:47] cyclonis: has joined #ruby
[22:20:23] gizless: has joined #ruby
[22:22:11] gaxar77: has joined #ruby
[22:23:13] baweaver: has joined #ruby
[22:23:16] idefine: has joined #ruby
[22:30:20] jottr_: has joined #ruby
[22:30:37] _mak: has joined #ruby
[22:31:30] sesquipedalian: has joined #ruby
[22:31:31] rbennacer: has joined #ruby
[22:32:59] momomomomo: has joined #ruby
[22:33:36] sdothum: has joined #ruby
[22:33:50] beanHolez: has joined #ruby
[22:34:06] mostlybadfly: has joined #ruby
[22:35:34] xfbs: has joined #ruby
[22:36:11] cyclonis: has joined #ruby
[22:36:47] xfbs: has joined #ruby
[22:37:26] Scripore: has joined #ruby
[22:38:41] tulak: has joined #ruby
[22:39:08] idefine: has joined #ruby
[22:39:19] jeanlinux: has joined #ruby
[22:39:52] jeanlinux: has joined #ruby
[22:40:02] SenpaiSilver: has joined #ruby
[22:42:16] LoneHerm_: has joined #ruby
[22:43:03] zenlot1: has joined #ruby
[22:43:31] Scripore: has joined #ruby
[22:44:35] allcentury: has joined #ruby
[22:44:52] x77686d: has joined #ruby
[22:46:54] Scripore: has joined #ruby
[22:47:36] cisco: has joined #ruby
[22:48:34] tubuliferous_: has joined #ruby
[22:48:50] Musashi007: has joined #ruby
[22:50:28] rbennacer: has joined #ruby
[22:52:52] nando293921: has joined #ruby
[22:52:54] thevaliantx: has joined #ruby
[22:53:47] stannard: has joined #ruby
[22:54:25] bmalum: has joined #ruby
[22:54:34] ElFerna: has joined #ruby
[22:54:40] lemur: has joined #ruby
[22:54:42] Scripore: has joined #ruby
[22:56:43] Scripore: has joined #ruby
[22:57:40] yfeldblum: has joined #ruby
[22:58:00] snockerton1: has joined #ruby
[22:58:27] Scripore: has joined #ruby
[22:58:31] speaking1ode: has joined #ruby
[22:59:15] jottr_: has joined #ruby
[23:02:36] firstdayonthejob: has joined #ruby
[23:02:59] DarkMoonDancer: has joined #ruby
[23:03:21] last_staff1: has joined #ruby
[23:04:58] diegoviola: has joined #ruby
[23:06:37] CloCkWeRX: has joined #ruby
[23:06:37] idefine: has joined #ruby
[23:07:12] gaxar77: has joined #ruby
[23:08:05] Scripore: has joined #ruby
[23:08:28] stevemackinnon: has joined #ruby
[23:12:32] cpup: has joined #ruby
[23:14:20] Mio-chan: has joined #ruby
[23:14:55] YourKicks: has joined #ruby
[23:18:21] bollullera: has joined #ruby
[23:19:14] idefine: has joined #ruby
[23:19:29] lpvb: has joined #ruby
[23:21:36] benlieb: has joined #ruby
[23:26:16] Gnut: has joined #ruby
[23:27:37] Musashi007: has joined #ruby
[23:30:28] dlitvak: has joined #ruby
[23:31:20] thevaliantx: has joined #ruby
[23:31:23] eregi: has joined #ruby
[23:32:28] jfutbol: has joined #ruby
[23:32:40] Xeago: has joined #ruby
[23:33:33] chouhoul_: has joined #ruby
[23:33:52] crowell: has joined #ruby
[23:34:33] azure32: has joined #ruby
[23:34:59] idefine: has joined #ruby
[23:35:50] workmad3: has joined #ruby
[23:37:16] minimalism: has joined #ruby
[23:44:29] stevemackinnon: has joined #ruby
[23:44:53] alem0lars__: has joined #ruby
[23:46:28] alem0lars__: I'm trying to install the gem json in Windows. The gem command gives me error (make: x86_64-w64-mingw32-gcc: Command not found). But I have installed (and it's in the $PATH) MinGW. How can I make Ruby use the standalone gcc.exe executable?
[23:48:10] yfeldblum: has joined #ruby
[23:48:38] tulak: has joined #ruby
[23:49:05] haylon: are you using the DevKit, or vanilla MinGW?
[23:49:26] devbug: has joined #ruby
[23:50:57] dling: has joined #ruby
[23:52:59] weemsledeux: has joined #ruby
[23:53:39] Renich: has joined #ruby
[23:53:52] Ropeney: has joined #ruby
[23:55:03] diegoviola: has joined #ruby
[23:59:14] recycle: has joined #ruby
[23:59:28] finisherr: has joined #ruby
[23:59:38] benlieb: has joined #ruby
[23:59:59] skweek: has joined #ruby