« Back to channel list

#ruby - 06 July 2017

« Back 1 day Forward 1 day »
[00:02:29] charliesome: has joined #ruby
[00:12:50] cagomez: has joined #ruby
[00:15:18] cagomez_: has joined #ruby
[00:15:28] Joufflu: has joined #ruby
[00:15:51] milardovich: has joined #ruby
[00:17:16] Cohedrin_: has joined #ruby
[00:18:02] milardovich: has joined #ruby
[00:18:46] Cohedrin_: has joined #ruby
[00:24:11] _whitelogger: has joined #ruby
[00:25:26] DETZUZU: has joined #ruby
[00:25:32] __Yiota: has joined #ruby
[00:26:32] elsevero: has joined #ruby
[00:27:25] yoongkang: has joined #ruby
[00:29:16] |ifei5g00d: has joined #ruby
[00:31:42] |ifei5good: has joined #ruby
[00:31:43] PaulCapestany: has joined #ruby
[00:33:13] montanonic: has joined #ruby
[00:33:38] Cohedrin_: has joined #ruby
[00:33:41] HoierM_: has joined #ruby
[00:38:25] alveric: has joined #ruby
[00:40:22] brent__: has joined #ruby
[00:47:07] charliesome: has joined #ruby
[00:54:32] dcunit3d: has joined #ruby
[00:58:39] quuxman: is there an easy way to run a line in pry that generates an exception such that the debugger is called where the exception is thrown instead of having to save a breakpoint (which may be burried in a package)
[01:00:44] AnoHito_: has joined #ruby
[01:01:02] d^sh: has joined #ruby
[01:01:34] AnoHito_: has joined #ruby
[01:02:06] ascarter: has joined #ruby
[01:04:51] |ifei5g00d: has joined #ruby
[01:06:56] BTRE: has joined #ruby
[01:07:55] cam27: has joined #ruby
[01:09:01] patarr: has joined #ruby
[01:10:06] milardovich: has joined #ruby
[01:10:26] quuxman: actually in this case it'd be even better if I could do this from rspec. In addition to the exception location being burried in a package, it's also called many times before the exception occurs, so I really don't want to insert a breakpoint, which is the only method I can find in docs
[01:12:35] quuxman: ahah, pry-rescue package
[01:13:34] cagomez: has joined #ruby
[01:14:13] Tau: has left #ruby: ()
[01:16:21] Cohedrin_: has joined #ruby
[01:17:18] AnoHito: has joined #ruby
[01:25:57] mim1k: has joined #ruby
[01:27:35] TvL2386: has joined #ruby
[01:31:34] arescorpio: has joined #ruby
[01:32:09] Cohedrin_: has joined #ruby
[01:34:12] kculpis: has joined #ruby
[01:34:15] Cohedrin_: has joined #ruby
[01:35:12] BlkDynmt: has joined #ruby
[01:35:28] Puffball: has joined #ruby
[01:36:18] __Yiota: has joined #ruby
[01:37:28] Cohedrin_: has joined #ruby
[01:37:54] cagomez: has joined #ruby
[01:38:39] quuxman: for some reason the command did nothing for me, but this did work within pry: Pry::rescue { RSpec::Core::Runner.run(['spec/...']) }
[01:40:32] jenrzzz: has joined #ruby
[01:40:32] jenrzzz: has joined #ruby
[01:43:15] __Yiota: has joined #ruby
[01:43:46] Cohedrin_: has joined #ruby
[01:44:11] ketan: has joined #ruby
[01:45:34] gizmore|2: has joined #ruby
[01:49:12] __Yiota: has joined #ruby
[01:51:18] uZiel: has joined #ruby
[01:51:30] Puffball: has joined #ruby
[01:52:23] __Yiota: has joined #ruby
[01:52:41] milardovich: has joined #ruby
[01:56:17] Joufflu: has joined #ruby
[01:58:26] auzty: has joined #ruby
[01:58:38] rfoust: has joined #ruby
[01:59:30] d^sh_: has joined #ruby
[02:01:09] thoraxe: has joined #ruby
[02:01:28] thoraxe: so, it's been a while since I've rubied... but I am missing something when it comes to sass and sinatra and dynamic complication of .sass
[02:01:37] thoraxe: or do i manually have to do something
[02:02:15] cagomez: has joined #ruby
[02:03:42] adam12: thoraxe: What do you have so far?
[02:04:16] thoraxe: just made a change
[02:04:18] thoraxe: gist in a moment
[02:04:28] quuxman: unfortunately this leaves me with a debugger that can't navigate the stack! So I installed pry-byebug for this, but it's incompatible with pry-rescue :-((
[02:05:56] adam12: quuxman: I haven't been following along - what are you trying to solve?
[02:06:24] thoraxe: https://gist.github.com/thoraxe/b5b8518643637826bd42e8f36aa10b0b
[02:06:34] thoraxe: adam12: ^^ i'm sure i'm missing something goofy
[02:06:39] thoraxe: just running "bundle exec rackup"
[02:07:17] thoraxe: it's loading the css...
[02:08:07] quuxman: adam12: trying to run a debugger at the point of an exception, then examine things in scope higher in stack
[02:08:40] adam12: quuxman: Is this still in rspec?
[02:08:52] thoraxe: adam12: pebcak. thanks for the help, though! )
[02:08:57] quuxman: adam12: yes, but that's irrelevant for this new problem
[02:09:00] adam12: thoraxe: Glad it's working for you :)
[02:10:13] quuxman: adam12: the problem is these two debugging functionalities come in two different packages that are incompatible with each other: pry-rescue and pry-byebug
[02:10:17] adam12: quuxman: Well, I'd suggest just wrapping everything in a begin/rescue/end block
[02:10:22] adam12: and then calling byebug there.
[02:10:42] Joufflu: has joined #ruby
[02:10:42] quuxman: but then byebug would be called at the top level, not in the context of the exception
[02:11:09] adam12: Possibly... but you can get access to the exception. Was there something else you needed?
[02:11:20] quuxman: adam12: yeah, the stack
[02:11:39] quuxman: adam12: specifically things in scope higher in the stack that's not in the exception object
[02:12:08] Cohedrin_: has joined #ruby
[02:13:30] adam12: I wonder if the stack is unwound by then..
[02:14:59] patarr: has joined #ruby
[02:18:11] _whitelogger: has joined #ruby
[02:20:08] adam12: quuxman: I've never tried it, but byebug supports a post-mortem option. Maybe you could get by with that. byebug --post-mortem --no-stop spec-file.rb
[02:24:35] Radar: >> [ "elem1", "elem2" "elem3", "elem4" ]
[02:24:50] Radar: ruby-bot why hath thou forsaken me
[02:25:54] wsewolod: has joined #ruby
[02:26:32] cagomez: has joined #ruby
[02:26:52] Radar: >> "did" "you" "know" "string" "concatenation" "in" "ruby" "is" "as" "easy" "as" "this" "?"
[02:30:17] eam: has joined #ruby
[02:30:28] eam: >> ?""""""""""""oh"
[02:30:29] ruby[bot]: eam: # => "\"oh" (https://eval.in/828298)
[02:31:37] eam: >> !!!?!
[02:31:38] ruby[bot]: eam: # => /tmp/execpad-37ea19a99171/source-37ea19a99171:2: warning: string literal in condition ...check link for more (https://eval.in/828300)
[02:32:44] Jameser: has joined #ruby
[02:32:56] eam: ruby[bot] should suppress warnings so we can do more funner things with it
[02:35:43] quuxman: is there some alternative to pry-byebug that does the same thing and works with Ruby2.1?
[02:35:49] agent_white: has joined #ruby
[02:36:31] cschneid_: has joined #ruby
[02:37:04] barx: has joined #ruby
[02:43:09] jenrzzz: has joined #ruby
[02:43:10] jenrzzz: has joined #ruby
[02:44:30] Bock: has joined #ruby
[02:50:27] brent__: has joined #ruby
[02:50:57] cagomez: has joined #ruby
[02:53:06] Joufflu_Fail: has joined #ruby
[02:53:21] ledestin: has joined #ruby
[02:54:21] Jameser: has joined #ruby
[02:58:02] hutch34: has joined #ruby
[03:03:01] yoongkang: has joined #ruby
[03:03:31] cagomez: has joined #ruby
[03:05:12] xall: has joined #ruby
[03:07:18] ascarter_: has joined #ruby
[03:09:22] Joufflu_WTF: has joined #ruby
[03:09:24] barx: has joined #ruby
[03:15:57] Brent___: has joined #ruby
[03:15:57] ruby[bot]: has joined #ruby
[03:15:57] ChanServ: +o ruby[bot]
[03:20:05] cschneid_: has joined #ruby
[03:20:08] kryptoz: has joined #ruby
[03:20:22] xall: has joined #ruby
[03:21:10] brent__: has joined #ruby
[03:25:04] Nilium: has joined #ruby
[03:26:27] mim1k: has joined #ruby
[03:27:23] milardov_: has joined #ruby
[03:28:37] brent__: has joined #ruby
[03:29:22] brent__: has joined #ruby
[03:29:57] Joufflu_WTF: has joined #ruby
[03:30:17] Nilium: has joined #ruby
[03:33:46] bkxd: has joined #ruby
[03:33:49] bkxd_: has joined #ruby
[03:38:58] bkxd: has joined #ruby
[03:39:05] bkxd_: has joined #ruby
[03:43:53] uZiel: has joined #ruby
[03:44:02] Joufflu_WTF: has joined #ruby
[03:45:02] ketan: has joined #ruby
[03:47:15] gix: has joined #ruby
[03:49:02] montanonic: has joined #ruby
[03:50:24] shakes: has joined #ruby
[03:52:02] xall_: has joined #ruby
[03:52:35] cschneid_: has joined #ruby
[03:55:13] cschneid_: has joined #ruby
[03:56:22] milardovich: has joined #ruby
[03:56:49] Alina-malina: has joined #ruby
[04:01:39] __Yiota: has joined #ruby
[04:03:18] ferr: has joined #ruby
[04:03:26] tao_: has joined #ruby
[04:08:14] _whitelogger_: has joined #ruby
[04:09:13] jenrzzz: has joined #ruby
[04:09:13] jenrzzz: has joined #ruby
[04:11:52] montanonic: has joined #ruby
[04:12:49] sorah___: has joined #ruby
[04:14:23] RealMarc: has joined #ruby
[04:17:10] JDeen: has joined #ruby
[04:17:54] JDeen: Hi guys and gals, I got a question in Yard documentation. The Yard IRC is rather inactive so I thought of asking it here.
[04:18:22] JDeen: If i have a method that accepts any active record modal, how would i document the methods parameters
[04:18:56] JDeen: for example, i have `def log(object)` where object can be any AR model
[04:19:18] JDeen: would I write it using the base class `@param object [ActiveRecord::Base] blah` ?
[04:22:11] jenrzzz: has joined #ruby
[04:22:11] jenrzzz: has joined #ruby
[04:24:13] umaaji: has joined #ruby
[04:25:23] mim1k: has joined #ruby
[04:28:06] comet23: has joined #ruby
[04:28:19] comet23: hello, i am having trouble accessing an instance variable outside of a class
[04:28:23] comet23: what am i doing wrong?
[04:28:49] comet23: https://repl.it/JPga/0 <===== LINE 29
[04:29:01] Silthias1: has joined #ruby
[04:30:38] yoongkang: has joined #ruby
[04:31:01] elsevero: has joined #ruby
[04:32:34] JDeen: comet23: you need an attr_reader or attr_accessor (read and write) for it.. some thing like `attr_accessor :board`
[04:32:48] comet23: oh, so that's what that does
[04:32:51] comet23: now i finally get it
[04:35:29] comet23: so i can declare attr_reader on top or i can create a method for it
[04:35:50] comet23: like the def board @board end
[04:44:25] comet23: empty_check = game.position_empty?(game.board, 0) <==== How do I access the 2nd argument that was passed in on another line?
[04:44:51] Silthias: has joined #ruby
[04:45:38] zenspider: how do you access?? what?
[04:45:39] V1s1ble: has joined #ruby
[04:45:39] V1s1ble: has joined #ruby
[04:46:24] anisha: has joined #ruby
[04:48:50] zenspider: position_empty? doesn't make sense and violates encapsulation
[04:51:31] JoshS: has joined #ruby
[04:52:56] yoongkang: has joined #ruby
[04:53:56] Mortomes|Train: has joined #ruby
[04:55:36] Silthias: has joined #ruby
[05:02:31] uZiel: has joined #ruby
[05:07:18] hutch34: has joined #ruby
[05:07:42] baweaver: comet23: what're you trying to use empty check for?
[05:08:09] Kuukunen-: has joined #ruby
[05:08:18] Silthias: has joined #ruby
[05:08:37] baweaver: really position_empty? is just written wrong
[05:08:44] nebben_: has joined #ruby
[05:08:47] baweaver: take out the board argument and switch board inside there to @board.
[05:08:57] baweaver: Also you're doing some unnecessary stuff in your code
[05:09:00] pocketprotector-: has joined #ruby
[05:09:11] baweaver: true and false are implied by boolean expressions
[05:09:12] tabakhase__: has joined #ruby
[05:09:22] baweaver: so return true if condition can be written as just condition
[05:09:28] Hobbyboy|BNC: has joined #ruby
[05:09:32] JStoker: has joined #ruby
[05:09:54] baweaver: ignoring the fact that position_taken? does the same thing
[05:10:06] crayfishx_: has joined #ruby
[05:10:36] tabakhase__: has joined #ruby
[05:10:39] V1s1ble: has joined #ruby
[05:10:39] V1s1ble: has joined #ruby
[05:11:00] psmolen_: has joined #ruby
[05:11:33] pookie: has joined #ruby
[05:11:57] ski4x7: has joined #ruby
[05:11:58] cschneid_: has joined #ruby
[05:12:04] aupadhye: has joined #ruby
[05:12:09] ahrs_: has joined #ruby
[05:12:14] tris-: has joined #ruby
[05:13:10] rrichardsr3_: has joined #ruby
[05:13:22] nebiros_: has joined #ruby
[05:13:27] kt: has joined #ruby
[05:13:50] gigetoo_: has joined #ruby
[05:14:39] ujjain-: has joined #ruby
[05:14:55] [spoiler]: has joined #ruby
[05:15:05] soahccc^: has joined #ruby
[05:15:10] agrecascino_: has joined #ruby
[05:15:13] patrontechnosoft: has joined #ruby
[05:15:24] djbkd: has joined #ruby
[05:15:34] pizzaops_: has joined #ruby
[05:15:58] Fire-Dragon-DoL-: has joined #ruby
[05:17:41] shtirlic_: has joined #ruby
[05:18:02] sonOfRa_: has joined #ruby
[05:18:42] web_nanners: has joined #ruby
[05:18:51] dysfigur-: has joined #ruby
[05:19:01] ikopico_: has joined #ruby
[05:20:02] Silthias: has joined #ruby
[05:21:40] dukedave_: has joined #ruby
[05:21:48] zenspider: I *love* questions where the person asking has no actual want or need for an answer... such a good use of everyone's time
[05:22:24] Meow-J: has joined #ruby
[05:22:24] scorphus`: has joined #ruby
[05:23:02] rfv: has joined #ruby
[05:23:17] Meow-J: has joined #ruby
[05:24:05] zzak: has joined #ruby
[05:27:32] mgorbach: has joined #ruby
[05:27:33] z3uS: has joined #ruby
[05:28:44] Silthias: has joined #ruby
[05:28:58] danguita: has joined #ruby
[05:30:05] ferr: has joined #ruby
[05:30:23] scorphus: has joined #ruby
[05:30:31] Joufflu: has joined #ruby
[05:31:40] oz: has joined #ruby
[05:33:00] V1s1ble: has joined #ruby
[05:33:00] V1s1ble: has joined #ruby
[05:33:46] patrontechnosoft: has joined #ruby
[05:40:22] bkxd: has joined #ruby
[05:41:24] Silthias: has joined #ruby
[05:43:07] ferr: has joined #ruby
[05:44:27] priodev: has joined #ruby
[05:44:42] willymox: has joined #ruby
[05:45:32] aglorei: has joined #ruby
[05:45:54] ketan: has joined #ruby
[05:48:15] yoongkang: has joined #ruby
[05:48:46] jenrzzz: has joined #ruby
[05:48:46] jenrzzz: has joined #ruby
[05:53:22] Silthias: has joined #ruby
[05:57:20] ascarter: has joined #ruby
[06:00:08] silverash: has joined #ruby
[06:02:37] danguita: has joined #ruby
[06:06:04] Morrolan: has joined #ruby
[06:08:38] Silthias: has joined #ruby
[06:09:44] meinside: has joined #ruby
[06:15:33] comet23: baweaver i'm just experimenting with my code
[06:15:47] patarr: has joined #ruby
[06:19:21] ^mtkd: has joined #ruby
[06:19:49] Silthias: has joined #ruby
[06:20:05] Polysics: has joined #ruby
[06:20:21] Dreamer3_: has joined #ruby
[06:20:56] dcluna: has joined #ruby
[06:20:58] comet23: so whenever i have a logical operator i will get false or true returned?
[06:21:15] comet23: like instead of return true if a || b i can simply do a || b ?
[06:21:36] Fraeon: has joined #ruby
[06:23:02] patteh: has joined #ruby
[06:23:09] madhatter: has joined #ruby
[06:23:35] Mortomes|Work: has joined #ruby
[06:24:10] zzxc: has joined #ruby
[06:24:39] Ishido: has joined #ruby
[06:24:51] bokayio: has joined #ruby
[06:25:20] Radar: ?try comet23
[06:25:20] ruby[bot]: comet23: Why don't you try it and see for yourself?
[06:27:54] scott4000: has joined #ruby
[06:29:19] andikr: has joined #ruby
[06:30:06] jhooker: has joined #ruby
[06:32:22] Silthias: has joined #ruby
[06:32:22] InfinityFye: has joined #ruby
[06:37:10] doublemalt_: has joined #ruby
[06:39:53] Joufflu: has joined #ruby
[06:42:40] muelleme_: has joined #ruby
[06:50:55] jenrzzz: has joined #ruby
[06:50:55] jenrzzz: has joined #ruby
[06:52:45] xco_: has joined #ruby
[06:53:12] Lyubo1: has joined #ruby
[06:53:17] Tau: has joined #ruby
[06:53:55] aglorei: has joined #ruby
[06:55:34] cschneid_: has joined #ruby
[06:57:09] tvw: has joined #ruby
[06:57:17] ChaosBringer: has joined #ruby
[07:01:26] nobitanobi: has joined #ruby
[07:01:31] djbkd: has joined #ruby
[07:01:34] tAn: has joined #ruby
[07:01:45] biberu: has joined #ruby
[07:02:16] stryek: has joined #ruby
[07:05:41] nobitanobi: has joined #ruby
[07:08:11] daxroc: has joined #ruby
[07:08:51] nOgAnOo: has joined #ruby
[07:12:17] djbkd_: has joined #ruby
[07:12:22] nickjj_: has joined #ruby
[07:12:31] zenspider: has joined #ruby
[07:13:06] charliesome_: has joined #ruby
[07:13:23] MyMind: has joined #ruby
[07:14:37] skweek: has joined #ruby
[07:15:53] cevett: has joined #ruby
[07:19:36] elsevero: has joined #ruby
[07:20:42] ltem: has joined #ruby
[07:25:33] nofxxxx: has joined #ruby
[07:29:19] cagomez: has joined #ruby
[07:30:06] antgel: has joined #ruby
[07:31:12] ddddddd: has joined #ruby
[07:34:20] mark_66: has joined #ruby
[07:43:57] yeticry_: has joined #ruby
[07:44:33] MarkBilk: has joined #ruby
[07:45:00] TomyLobo2: has joined #ruby
[07:45:08] cagomez: has joined #ruby
[07:45:29] TheBloke: has joined #ruby
[07:45:34] marr: has joined #ruby
[07:46:37] yeq: has joined #ruby
[07:46:46] ketan: has joined #ruby
[07:47:13] yew: has joined #ruby
[07:54:33] romankapitonov: has joined #ruby
[08:00:33] elsevero: has joined #ruby
[08:05:23] mikecmpbll: has joined #ruby
[08:08:01] belmoussaoui__: has joined #ruby
[08:08:31] Jameser: has joined #ruby
[08:10:02] Cohedrin_: has joined #ruby
[08:10:11] oded: has joined #ruby
[08:16:09] patarr: has joined #ruby
[08:18:24] nobitanobi: has joined #ruby
[08:24:10] ianfleeton: has joined #ruby
[08:27:45] davic: has joined #ruby
[08:30:12] mim1k: has joined #ruby
[08:30:13] brent__: has joined #ruby
[08:30:19] lxsameer: has joined #ruby
[08:30:31] faces: has joined #ruby
[08:39:02] hightower2: has joined #ruby
[08:39:56] ur5us: has joined #ruby
[08:40:27] danguita: has joined #ruby
[08:41:56] webnanners: has joined #ruby
[08:42:46] shinnya: has joined #ruby
[08:46:44] fghjb3567: has joined #ruby
[08:46:51] cagomez: has joined #ruby
[08:48:00] fghjb3567: has joined #ruby
[08:51:48] CrazyEddy: has joined #ruby
[08:52:13] Bish: how does one install jruby if he wants it
[08:52:20] Bish: do i need the oracle bunch?
[08:53:51] Bish: https://gist.github.com/anonymous/62d3ffe1e4aab9cd8ec03401275889bb will any of these gems make problems to me ?
[08:54:01] Bish: does one recall one which doesnt exst in jruby?
[08:55:36] pandaant: has joined #ruby
[08:56:36] charliesome: has joined #ruby
[08:58:17] nobitanobi: has joined #ruby
[08:58:25] InfinityFye: has joined #ruby
[08:59:34] nobitanobi: has joined #ruby
[09:00:38] belmoussaoui_: has joined #ruby
[09:00:43] ketan: has joined #ruby
[09:02:24] danguita: has joined #ruby
[09:07:39] Puffball_: has joined #ruby
[09:08:13] belmoussaoui_: has joined #ruby
[09:08:48] milardovich: has joined #ruby
[09:10:31] dminuoso: Bish: ruby-install
[09:11:36] dminuoso: Bish: And as for gems, all that don't require native extensions work out of the box. Nokogiri is one of the few that has a pure java version.
[09:12:23] dminuoso: But yes, you will need some JRE, but any will do as long as it runs Java 7.
[09:12:41] dminuoso: (Assuming JRuby 9000)
[09:13:13] yew:  HexChat: 2.10.2 ** OS: Linux 4.8.0-58-generic x86_64 ** Distro: Ubuntu "xenial" 16.04 ** CPU: 4 x Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz (GenuineIntel) @ 1.00GHz ** RAM: Physical: 7.7GiB, 80.2% free ** Disk: Total: 3.2TiB, 85.6% free ** VGA: NVIDIA Corporation GK104 [GeForce GTX 760] ** Sound: HDA-Intel - HDA Intel PCH1: HDA-Intel - HDA NVidia ** Ethernet: Intel Corporation Ethernet Connection I217-V **
[09:13:13] yew: Uptime: 1h 30m 1s **
[09:21:49] ur5us: has joined #ruby
[09:29:29] Jameser: has joined #ruby
[09:31:17] mim1k: has joined #ruby
[09:32:28] jhooker: has joined #ruby
[09:33:45] jhooker: has joined #ruby
[09:35:53] jhooker: has joined #ruby
[09:37:40] jhooker: has joined #ruby
[09:38:18] belmoussaoui_: has joined #ruby
[09:38:58] workmad3: has joined #ruby
[09:40:31] jhooker: has joined #ruby
[09:41:29] nowhere_man: has joined #ruby
[09:43:51] jhooker: has joined #ruby
[09:46:03] jhooker: has joined #ruby
[09:58:03] romankapitonov: has joined #ruby
[09:59:18] yoongkang: has joined #ruby
[10:05:18] nobitanobi: has joined #ruby
[10:05:33] mim1k: has joined #ruby
[10:05:45] cseder: has joined #ruby
[10:07:09] Bish: how do i snake case cleverly
[10:07:14] Bish: i think thats how its called
[10:07:20] Bish: MessageTest => message_test
[10:09:23] patarr: has joined #ruby
[10:11:21] stamina: has joined #ruby
[10:14:13] bkxd: has joined #ruby
[10:14:15] bkxd_: has joined #ruby
[10:15:55] dminuoso: Bish: http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-underscore
[10:16:05] dminuoso: look at the implementation under "Source: show"
[10:18:36] Bish: bleh, that looks ugly
[10:19:23] urux: has joined #ruby
[10:21:56] dminuoso: Bish: generally you could do: gsub!(/(.)([A-Z])/,'\1_\2').downcase
[10:22:24] Bish: dminuoso: thanks
[10:22:42] dminuoso: Bish: Well. Both should be ! or none of course. ;-)
[10:22:49] Camusensei: has joined #ruby
[10:23:19] psychicist__: has joined #ruby
[10:24:13] mikecmpb_: has joined #ruby
[10:24:19] Camusensei: has left #ruby: ()
[10:25:12] nobitanobi: has joined #ruby
[10:25:16] kraken: has joined #ruby
[10:36:22] vasyl: has joined #ruby
[10:48:34] fghjb3567: has joined #ruby
[10:49:11] tvw: has joined #ruby
[10:51:31] cagomez: has joined #ruby
[10:57:47] clemens3: has joined #ruby
[10:58:48] belmoussaoui_: has joined #ruby
[11:00:49] duderono_: has joined #ruby
[11:01:11] nowhere_man: has joined #ruby
[11:01:21] danguita: has joined #ruby
[11:02:51] Beams: has joined #ruby
[11:13:08] mim1k: has joined #ruby
[11:16:49] antgel: has joined #ruby
[11:21:09] Exagone313: has joined #ruby
[11:28:53] milardovich: has joined #ruby
[11:34:42] Beams: has joined #ruby
[11:35:27] mim1k: has joined #ruby
[11:36:49] pilot_project: has joined #ruby
[11:37:53] ldnunes: has joined #ruby
[11:42:00] dru: has joined #ruby
[11:44:15] Alina-malina: has joined #ruby
[11:47:51] nobitanobi: has joined #ruby
[11:47:52] mim1k: has joined #ruby
[11:53:16] cagomez: has joined #ruby
[11:55:00] dru: this may be a long shot, but I've got a child class Lifeform that inherits mixed-in module functionality from a parent class and works as expected, however if I have a second child class Slime from Lifeform those mixed in class methods seem to be gone
[11:55:32] dru: https://gist.github.com/drusepth/ec99e3ea1478d25b170953912a0366e6 is a culled down example of what I'm seeing, with the commands at the end having the error
[11:55:45] dru: any ideas on mixin gotchas that might be tripping this up?
[11:56:46] mwlang: has joined #ruby
[11:58:14] BlkDynmt: has joined #ruby
[11:59:02] mwlang_: has joined #ruby
[12:00:40] t-recx: has joined #ruby
[12:02:42] danguita: has joined #ruby
[12:05:47] im0nde: has joined #ruby
[12:05:58] Esf: has joined #ruby
[12:09:12] cagomez: has joined #ruby
[12:13:12] synthroid: has joined #ruby
[12:14:34] stormbytes: has joined #ruby
[12:14:53] kobain: has joined #ruby
[12:15:09] stormbytes: is there some way of saying.... 'unless x == ('foo' || 'bar' || 'baz') ?
[12:15:36] stormbytes: or I have to right out the whole statement 3 tiems?
[12:16:33] elomatreb: stormbytes: ["foo", "bar", "baz"].include?(x) ?
[12:17:12] mwlang: stormbytes: also, %w(foo bar baz).include?(x)
[12:18:00] stormbytes: that says the same thing, right?
[12:18:21] elomatreb: I kind of like the ActiveSupport .in? thingy for these situations, if you're in Rails
[12:18:36] elomatreb: It's a shorthand for creating arrays of Strings, yes
[12:19:05] hs366: has joined #ruby
[12:19:47] Tempesta: has joined #ruby
[12:20:43] stormbytes: i wish javascript was half as easy on the brain as Ruby
[12:21:22] stormbytes: if Ruby is an iPad, Javascript (the stdlib I'm referring to here) is like a chisel and a stone tablet
[12:21:58] hs366: has joined #ruby
[12:27:05] synthroid: has joined #ruby
[12:27:57] splitshot: has joined #ruby
[12:32:40] mwlang: stormbytes: if you’re doing Rails development, check out coffeescript
[12:33:01] stormbytes: not rails, mostly CLI's
[12:38:17] Thiru: has joined #ruby
[12:40:12] br0d1n: has joined #ruby
[12:40:31] milardovich: has joined #ruby
[12:41:36] splitshot: I don't know what the question was, but the answer is never coffeescript.
[12:41:48] splitshot: Except maybe what language should I not waste my time with?
[12:44:46] InfinityFye: has joined #ruby
[12:45:54] gomeat: has joined #ruby
[12:47:15] gomeat: I'm doing something wrong? https://gist.github.com/anonymous/974a0aad000d4a53396c2f473fba88e2
[12:47:21] gomeat: it will raise the error invalid break
[12:47:33] mudwaf: has joined #ruby
[12:48:02] elomatreb: There's nothing to break from, since you're not in e.g. a loop
[12:49:56] mudwaf: Hello, I'm attempting to pick an lvalue at random and do something to it along the lines of: (rand(2).zero? ? a : b) |= 1; that fails with "syntax error, unexpected tOP_ASGN, expecting end-of-input", so is there some other simple way to do this?
[12:50:38] gomeat: the error persists even if I'm in a loop https://gist.github.com/anonymous/80b7d1f86f204271bf61338e9b21ba3a
[12:52:12] splitshot: mudwaf, either put the entire expression into the ternary or call a method with a or b as a param
[12:52:59] jjaii9: has joined #ruby
[12:53:24] dminuoso: mudwaf: To continue with your terminology: You cant use an rvalue as an lvalue.
[12:54:04] dminuoso: mudwaf: You have to duplicate the assignment expression. (This is not technically true, but the alternative is just plain ugly)
[12:54:10] dminuoso: Or use a hash.
[12:54:52] mudwaf: splitshot, my goal was to not duplicate the right-hand side. I tried the method idea, but as these are Integer instances, they're passed by value instead of by reference, so modifying one in the method doesn't affect the one outside the method.
[12:55:04] dminuoso: mudwaf: Everything in Ruby is passed by value.
[12:56:56] jphase: has joined #ruby
[12:57:50] synthroid: has joined #ruby
[12:58:51] mudwaf: dminuoso, what did you have in mind wrt using a hash?
[12:59:31] dminuoso: mudwaf: key = rand(2).zero? :a : :b; hash[key] |= 1
[12:59:55] dminuoso: mudwaf: key = rand(2).zero? ? :a : :b; hash[key] |= 1
[13:01:01] dminuoso: mudwaf: Other closely related alternatives are ostruct and struct
[13:01:17] mudwaf: I see. I'll use that; it's close enough to my intent. Thanks.
[13:01:23] anisha: has joined #ruby
[13:03:25] konsolebox: has joined #ruby
[13:06:49] gomeat: oh I solved it passing "break" with lambda
[13:07:42] tvw: has joined #ruby
[13:07:51] dminuoso: This feels so wrong.
[13:08:47] gomeat: well I need to break the loop
[13:08:48] dminuoso: gomeat: If you have the need to delegate control flow like that, use catch/throw.
[13:09:00] dminuoso: gomeat: It makes it clear to the outside that its expected.
[13:09:05] dminuoso: It's self-documentary.
[13:12:05] dminuoso: >> a = 1; def foo; puts a; end; foo
[13:12:11] ruby[bot]: dminuoso: # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/828717)
[13:12:18] splitshot: Using exceptions for flow control? Ick
[13:12:29] dminuoso: splitshot: its the other way around.
[13:12:34] dminuoso: splitshot: exceptions use the catch/throw mechanism.
[13:12:40] dminuoso: (its just hidden away very well)
[13:13:01] dminuoso: splitshot: Dont mistake catch/throw for exceptions.
[13:13:05] splitshot: You got any docs on that?
[13:13:15] dminuoso: splitshot: On what in particular?
[13:13:24] dminuoso: splitshot: catch/throw is basically just an inverted goto
[13:13:40] dminuoso: catch sets up a label, and throw is basically a goto
[13:15:04] haylon: has joined #ruby
[13:15:53] ascarter: has joined #ruby
[13:16:50] dminuoso: asm>> def foo; puts a; end
[13:16:51] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/828718
[13:17:05] splitshot: dminuoso, ah I see. Thanks
[13:17:06] dminuoso: asm>> def foo; puts a; rescue StandardError; end
[13:17:08] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/828719
[13:17:40] dminuoso: splitshot: ^- as you can see, a rescue actually does kind of a `catch(:rescue)` underneath
[13:18:00] dminuoso: and retry is also rigged in the same way
[13:18:22] dminuoso: dminuoso | splitshot: catch/throw is basically just an inverted goto
[13:18:28] dminuoso: ^- I also forgot: _nonlocal_ goto
[13:18:39] splitshot: Makes sense. Thank you.
[13:21:02] Tau: has joined #ruby
[13:22:09] sepp2k: has joined #ruby
[13:22:25] splitshot: has joined #ruby
[13:26:02] moei: has joined #ruby
[13:26:10] cam27: has joined #ruby
[13:28:28] DLSteve_: has joined #ruby
[13:29:01] mim1k: has joined #ruby
[13:30:11] nebiros: has joined #ruby
[13:30:11] nebiros: has joined #ruby
[13:30:11] gnufied: has joined #ruby
[13:38:51] djbjd: has joined #ruby
[13:39:27] mim1k: has joined #ruby
[13:41:25] dru: has joined #ruby
[13:44:45] nowhere_man: has joined #ruby
[13:47:40] mwlang: has joined #ruby
[13:48:50] cschneid_: has joined #ruby
[13:50:02] nobitanobi: has joined #ruby
[13:52:33] chouhoulis: has joined #ruby
[13:52:37] griffindy: has joined #ruby
[13:56:13] stormbytes: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:04:08] Derperperd: has joined #ruby
[14:04:09] Jameser: has joined #ruby
[14:04:32] Derperperd: has joined #ruby
[14:05:25] belmoussaoui: has joined #ruby
[14:05:47] oleo: has joined #ruby
[14:07:27] Beams: has joined #ruby
[14:08:55] bkxd: has joined #ruby
[14:08:57] bkxd_: has joined #ruby
[14:12:12] truenito: has joined #ruby
[14:14:14] bkxd: has joined #ruby
[14:14:16] bkxd_: has joined #ruby
[14:15:08] chouhoul_: has joined #ruby
[14:18:55] doublemalt_: has joined #ruby
[14:18:58] mim1k: has joined #ruby
[14:21:24] patarr: has joined #ruby
[14:21:50] kculpis: has joined #ruby
[14:28:38] dcunit3d: has joined #ruby
[14:34:57] JustTheDoctor: has left #ruby: ()
[14:36:33] Beams: has joined #ruby
[14:38:27] chouhoulis: has joined #ruby
[14:41:19] Jameser: has joined #ruby
[14:43:04] djbjd: has joined #ruby
[14:43:39] dionysus69: has joined #ruby
[14:53:17] rohitpaulk: has joined #ruby
[14:53:34] _moep_: app error: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` (RuntimeError) <- how can I set this?
[14:53:40] _moep_: I remember bundle exec rake generate_secret_token was working
[14:53:55] _moep_: does this changed or is there a better way?
[14:55:04] canton7: I don't know what framework you're using, but "set these values in config/secrets.yml" seems fairly explicit, no?
[14:55:27] _moep_: its a redmine
[14:56:14] _moep_: I want to automize this process
[14:58:36] brian_penguin: has joined #ruby
[14:58:48] canton7: looks like a rails thing?
[14:59:53] cschneid_: has joined #ruby
[15:00:00] lacuna: has joined #ruby
[15:02:16] nobitanobi: has joined #ruby
[15:02:55] mim1k: has joined #ruby
[15:04:40] troys: has joined #ruby
[15:09:41] unshadow: has joined #ruby
[15:17:49] cagomez: has joined #ruby
[15:18:10] minimalism: has joined #ruby
[15:20:21] synthroid: has joined #ruby
[15:21:49] ozcanesen: has joined #ruby
[15:23:31] synthroid: has joined #ruby
[15:24:17] raspado: has joined #ruby
[15:26:37] BSaboia: has joined #ruby
[15:27:22] Tempesta: has joined #ruby
[15:30:37] yxhuvud: has joined #ruby
[15:31:16] [Butch]: has joined #ruby
[15:35:11] Beams: has joined #ruby
[15:39:56] jinie: has joined #ruby
[15:40:43] belmoussaoui___: has joined #ruby
[15:41:19] jinie: has joined #ruby
[15:41:21] __Yiota: has joined #ruby
[15:41:41] montanonic: has joined #ruby
[15:42:42] brent__: has joined #ruby
[15:43:08] rohitpaulk: has joined #ruby
[15:47:17] _Steve_: has joined #ruby
[15:54:35] raspado: has joined #ruby
[15:55:06] wilbert: has joined #ruby
[15:57:25] amclain: has joined #ruby
[15:57:51] mikecmpb_: ACTION stern note to self: "this is the last time i get max{ } and max_by{ } mixed up."
[15:58:40] apeiros: famous last words
[15:58:47] apeiros: *filed under
[16:01:38] Papierkorb: tbh, it's infuriating that ruby never complains (by itself) when you pass a block to a non-block method
[16:02:20] mustmodify__: has joined #ruby
[16:02:30] mustmodify__: Was gem the first package manager of its kind / scale?
[16:02:59] havenwood: mustmodify__: CPAN has been around for ages it seems.
[16:03:32] mustmodify__: hadn't heard of that one. Thanks.
[16:03:39] apeiros: Papierkorb: agreed
[16:03:40] nowhere_man: has joined #ruby
[16:03:52] apeiros: mustmodify__: ruby or all langs?
[16:04:13] mustmodify__: I was just talking to someone who was talking about how Ruby didn't have anything like NPM.
[16:04:14] apeiros: then CPAN definitively was earlier :)
[16:04:26] apeiros: did you hit them with the cluebat a bit, I hope?
[16:05:03] mustmodify__: I'm about to do so. Just wanted to know exactly what level of force to use when swinging. :)
[16:05:04] apeiros: I'm always impressed again about how much bullshit ignoramuses can spew.
[16:05:15] apeiros: I'd go for around 10kT
[16:05:31] lonewolf10: has joined #ruby
[16:08:24] elomatreb: Depending on what they mean it is accurate, npm (the CLI tool) does a lot more than Gem
[16:08:32] elomatreb: Or at least a little accurate
[16:09:40] havenwood: Yarn is a better copy of Bundler/RubyGems. ;-P
[16:09:43] yxhuvud: cpan has been around for ages, but I know of no bundler-like solution for perl.
[16:09:44] apeiros: elomatreb: is that why bower and yarn were implemented? :)
[16:09:50] havenwood: Yxhuvud: Agreed.
[16:10:05] _Steve_: has joined #ruby
[16:10:05] _Steve_: has joined #ruby
[16:10:30] elomatreb: I was specifically thinking of the scripts functionality of npm, so it's like integrated rake?
[16:10:39] dviola: has joined #ruby
[16:11:10] yxhuvud: rubygem can (sadly) run random crap during install
[16:11:23] pwillard: argh... cpan is a hot mess
[16:11:28] havenwood: https://gist.github.com/Aupajo/1a24d85fb53b8800dc680d0f3e188635
[16:11:30] apeiros: best combined with "sudo gem install"™
[16:11:54] havenwood: "In their desperation, The New Gods turned to The Old Gods for help. They summoned forth the Prophet Yehuda, who had defeated the demon once with The Jewelled Hammer of Bundler in the Ruby Isles and again with The Golden Cargo in the Rusted Lands."
[16:11:58] yxhuvud: pwillard: someone had to be first and make all the dumb mistakes so that everone that come after learn
[16:12:39] elomatreb: Doesn't npm support something like deterministic lockfiles now too?
[16:12:42] havenwood: Nodelers are particularly adept with that path.
[16:13:33] _Steve_: has joined #ruby
[16:13:52] centrx: has joined #ruby
[16:13:52] centrx: has joined #ruby
[16:14:17] havenwood: NPM has over $10M in venture funding now.
[16:15:40] apeiros: havenwood: hehe, funny write-up
[16:15:49] mustmodify__: elomatreb: I think the scope of Gem is just about right.
[16:16:06] elomatreb: Mm, given how rarely I actually use gem instead of bundler I disagree
[16:16:12] apeiros: Yxhuvud: if only they'd actually learn. but people prefer to reinvent dumb mistakes.
[16:16:34] _Steve_: has joined #ruby
[16:16:34] _Steve_: has joined #ruby
[16:16:40] apeiros: elomatreb: lockfiles was a great addition. rubygems can do that now too.
[16:17:14] apeiros: the thing that rubygems still lacks is accepting repositories like git
[16:17:36] havenwood: apeiros: it can do git
[16:17:37] elomatreb: Oh, what? That does sound nice, I have never heard of this
[16:17:51] apeiros: elomatreb: bundler is supposed to be integrated wholly into gems
[16:18:00] apeiros: it's already happening in the repo
[16:18:05] apeiros: havenwood: oy? do tell more!
[16:18:21] elomatreb: Ooh, very nice
[16:18:22] havenwood: https://github.com/rubygems/rubygems/tree/master/lib/rubygems/resolver
[16:18:29] havenwood: apeiros: sec, i'll find the code
[16:18:29] ascarter: has joined #ruby
[16:19:36] havenwood: apeiros: Here're the docs: https://github.com/rubygems/rubygems/blob/af3c7bed24106cb86ad56210fcb90696d00c31d5/lib/rubygems/commands/help_command.rb#L123-L133
[16:19:51] havenwood: (PS - Fun to make gist gems.)
[16:20:25] apeiros: nooooiiiiice!
[16:20:35] apeiros: min req of rubygems?
[16:20:47] nicesignal: has joined #ruby
[16:20:52] mustmodify__: has left #ruby: ()
[16:21:04] havenwood: ships with Ruby!
[16:21:24] apeiros: no, I mean which version of rubygems started to support that?
[16:22:26] havenwood: apeiros: Ah, it was a while back. drbrain and tenderlove I believe did the commits.
[16:22:48] havenwood: apeiros: Bitbucket support added by drbrain in 2014.
[16:23:00] havenwood: https://github.com/rubygems/rubygems/commit/e142411896b2a239e102ceb067b139f4334e35e0
[16:23:25] Asher: has joined #ruby
[16:23:55] __Yiota: has joined #ruby
[16:23:56] havenwood: It uses molinillo for resolving deps now, same as Bundler.
[16:24:24] havenwood: https://github.com/CocoaPods/Molinillo
[16:25:32] jinie: has joined #ruby
[16:26:19] uZiel: has joined #ruby
[16:26:22] gusrub: has joined #ruby
[16:26:59] eckhardt: has joined #ruby
[16:27:14] _Steve_: has joined #ruby
[16:27:14] _Steve_: has joined #ruby
[16:27:22] Guest7: has joined #ruby
[16:27:29] Guest7: Hi everybody
[16:27:48] jinie: has joined #ruby
[16:27:58] Guest7: I'm new here
[16:28:03] havenwood: Guest7: welcome
[16:28:16] Guest7: Thanks you.
[16:29:45] dcunit3d: has joined #ruby
[16:29:56] Guest7: I have an array problem
[16:30:25] Guest7: somebody could help me?
[16:30:55] centrx: Help you we can if a question you ask
[16:30:58] havenwood: Guest7: Tell use more. Have a gist of your code?
[16:31:22] belmoussaoui_: has joined #ruby
[16:31:33] Guest7: array = [["B", 141], ["B", 143], ["A", 129], ["A", 144], ["A", 142], ["C", 139], ["B", 131], ["C", 130]]
[16:31:41] dru: has joined #ruby
[16:31:48] Guest7: array.group_by { |d| d[0] }
[16:32:06] Guest7: {"B"=>[["B", 141], ["B", 143], ["B", 131]], "A"=>[["A", 129], ["A", 144], ["A", 142]], "C"=>[["C", 139], ["C", 130]]}
[16:33:20] havenwood: Guest7: You can write that: group_by(&:first)
[16:33:23] havenwood: Guest7: What seems to be the problem?
[16:33:32] Guest7: How could you group to show me the way. {"B"=>[ 141, 143, 131], "A"=>[ 129, 144, 142], "C"=>[ 139, 130]}
[16:35:32] havenwood: Guest7: There are many ways. Here's one: array.group_by(&:first).map { |k, array_of_tuples| [k, array_of_tuples.map(&:last)] }.to_h
[16:36:18] Guest7: thanks you havenwood
[16:36:48] havenwood: Guest7: Here's another way: array.each_with_object(Hash.new { |hash, key| hash[key] = [] }) { |(k, v), h| h[k] << v }
[16:37:17] danguita: has joined #ruby
[16:37:42] gusrub: has joined #ruby
[16:39:43] jinie: has joined #ruby
[16:40:37] Guest7: Another question how to register my nickname?
[16:41:10] coderhut: has joined #ruby
[16:41:13] elomatreb: /msg NickServ HELP
[16:41:34] elomatreb: Another attempt at your problem, closer to what I think your initial attempt was: https://eval.in/828834
[16:42:22] Guest7: thanks you elomatreb
[16:44:14] zephiro: has joined #ruby
[16:44:47] zephiro: :) okey I register nickname.
[16:53:38] [Butch]: has joined #ruby
[16:55:48] ledestin: has joined #ruby
[16:58:17] boombox_: has joined #ruby
[16:59:55] milardovich: has joined #ruby
[17:00:46] Ishido: has joined #ruby
[17:01:51] _Noble_Turk_: has joined #ruby
[17:05:12] iamnix: has joined #ruby
[17:05:45] petruff: has joined #ruby
[17:07:32] muelleme_: has joined #ruby
[17:11:16] swills: has joined #ruby
[17:11:16] swills: has joined #ruby
[17:11:55] alex``: has joined #ruby
[17:12:44] swills: has joined #ruby
[17:12:44] swills: has joined #ruby
[17:16:55] rohitpaulk: has joined #ruby
[17:18:49] ketan: has joined #ruby
[17:20:20] d10n-work: has joined #ruby
[17:20:24] lonewolf999: has joined #ruby
[17:22:29] agrecascino: has joined #ruby
[17:24:18] gusrub: has joined #ruby
[17:25:45] montanonic: has joined #ruby
[17:25:54] Cohedrin_: has joined #ruby
[17:26:14] roshanavand: has joined #ruby
[17:29:34] mim1k: has joined #ruby
[17:31:28] Cohedrin_: has joined #ruby
[17:32:38] Tau: has left #ruby: ()
[17:40:46] muelleme_: has joined #ruby
[17:41:21] zephiro: has joined #ruby
[17:43:34] duderonomy: has joined #ruby
[17:45:20] Cohedrin_: has joined #ruby
[17:50:05] mim1k: has joined #ruby
[17:52:07] Cohedrin_: has joined #ruby
[17:55:47] mtkd: has joined #ruby
[17:57:19] zephiro: has joined #ruby
[17:58:28] SeepingN: has joined #ruby
[17:58:49] marxarelli: has joined #ruby
[18:00:29] Cohedrin_: has joined #ruby
[18:00:50] wilbert: has joined #ruby
[18:02:21] mistym: I'm trying to diagnose a thorny extconf bug, anyone able to help point me in the right direction? https://bugs.ruby-lang.org/issues/13413
[18:07:29] t-recx: has joined #ruby
[18:10:28] mim1k: has joined #ruby
[18:10:37] Cohedrin_: has joined #ruby
[18:17:13] tolerablyjake: has joined #ruby
[18:17:48] ltem: has joined #ruby
[18:17:50] dviola: has joined #ruby
[18:22:48] bpmedley: has joined #ruby
[18:23:58] belmoussaoui__: has joined #ruby
[18:27:18] Cohedrin_: has joined #ruby
[18:28:15] jcast: has joined #ruby
[18:28:16] pb122: has joined #ruby
[18:28:30] pb122: has joined #ruby
[18:28:57] nobitanobi: has joined #ruby
[18:30:30] dcunit3d: has joined #ruby
[18:31:00] mim1k: has joined #ruby
[18:36:53] InfinityFye: has joined #ruby
[18:37:44] watersoul: has joined #ruby
[18:40:38] romankapitonov: has joined #ruby
[18:42:42] watersoul: has joined #ruby
[18:43:41] Cohedrin_: has joined #ruby
[18:45:21] __Yiota: has joined #ruby
[18:47:46] watersoul: has joined #ruby
[18:50:12] matthewd: mistym: That sounds painful :/ ... is it bisectable?
[18:52:40] mistym: matthewd: mmmmmaybe :/ I'll have to try, though given it only repros on `make install` it might take awhile to get there
[18:52:55] watersoul: has joined #ruby
[18:53:07] pb122: has joined #ruby
[18:53:57] lacuna: has joined #ruby
[18:55:25] matthewd: I guess given the comment mentioning install-rb, the maybe shorter option could be to pickaxe for changes that touch that rule
[18:56:41] zephiro: has joined #ruby
[18:57:15] matthewd: I don't know enough about the build process to jump to an easy conclusion, but wouldn't be surprised if it was caused by something not actually mentioning that rule.. which is where I get to yeah, bisect seems like a huge drag but still maybe the least painful tactic
[18:57:50] watersoul: has joined #ruby
[19:06:02] nfk: has joined #ruby
[19:06:41] ResidentBiscuit: has joined #ruby
[19:07:38] Dimik: has joined #ruby
[19:11:11] milardovich: has joined #ruby
[19:13:28] cagomez: has joined #ruby
[19:13:44] nfk: has joined #ruby
[19:14:10] perniciouscaffei: has joined #ruby
[19:15:00] druonysuse: has joined #ruby
[19:18:19] Dreamer3: has joined #ruby
[19:18:41] oleo: has joined #ruby
[19:19:01] amperry: has joined #ruby
[19:19:46] mim1k: has joined #ruby
[19:21:17] ascarter: has joined #ruby
[19:21:20] zephiro: has joined #ruby
[19:23:06] rubylegend2092: has joined #ruby
[19:28:44] Cohedrin_: has joined #ruby
[19:30:41] chouhoul_: has joined #ruby
[19:31:51] chouhoul_: has joined #ruby
[19:34:53] manveru: mistym: you're trying to debug this for 3 months now?
[19:34:58] dcunit3d: has joined #ruby
[19:35:05] mistym: manveru: Honestly, I haven't looked at it in 3 months
[19:35:10] mistym: But it's been bothering me for that long :b
[19:38:18] swills: has joined #ruby
[19:38:18] swills: has joined #ruby
[19:39:29] swills: has joined #ruby
[19:39:56] Immune: has joined #ruby
[19:41:00] ketan: has joined #ruby
[19:42:37] __Yiota: has joined #ruby
[19:43:19] nicesignal: has joined #ruby
[19:43:34] montanonic: has joined #ruby
[19:43:43] swills: has joined #ruby
[19:49:02] Cohedrin_: has joined #ruby
[19:49:38] kirun: has joined #ruby
[19:55:04] manveru: well, i think a bisect is still the fastest way... even if it takes a day
[19:55:23] alveric: has joined #ruby
[19:55:29] manveru: can't really find any easy hints for this issue
[20:03:20] alveric: has joined #ruby
[20:03:44] milardov_: has joined #ruby
[20:07:38] eckhardt: has joined #ruby
[20:12:16] zephiro: has joined #ruby
[20:12:43] GodFather_: has joined #ruby
[20:13:04] jenrzzz: has joined #ruby
[20:13:04] jenrzzz: has joined #ruby
[20:14:02] cagomez: has joined #ruby
[20:15:04] enterprisey: has joined #ruby
[20:16:29] cagomez: has joined #ruby
[20:18:36] lonewolf10: has left #ruby: ()
[20:24:50] agent_white: has joined #ruby
[20:27:33] Dreamer3: has joined #ruby
[20:30:42] Tharbakim: has joined #ruby
[20:30:42] Tharbakim: has joined #ruby
[20:36:46] ur5us: has joined #ruby
[20:45:59] montanonic: has joined #ruby
[20:47:13] zenspider: mistym: I'd try to reason about it. Try a non-static build and figure out why it DOES work and go from there.
[20:47:18] brent__: has joined #ruby
[20:48:06] agent_white: has joined #ruby
[20:48:20] zenspider: My graph gem has a rakefile visualizer, but not a makefile visualizer, but it shouldn't be TOO hard to extend it for that... it just might help...
[20:48:49] pb122-two: has joined #ruby
[20:51:06] romankapitonov: has joined #ruby
[20:51:24] Polysics: has joined #ruby
[20:52:25] chouhoulis: has joined #ruby
[21:05:40] jinie_: has joined #ruby
[21:06:42] dmtd: has joined #ruby
[21:12:53] mtkd: has joined #ruby
[21:13:15] kkiero: has joined #ruby
[21:13:20] boombox_: has joined #ruby
[21:17:57] bougyman: ok, so /msg manveru yeah, work got that busy.
[21:20:29] pb122: has joined #ruby
[21:22:52] cdg: has joined #ruby
[21:24:21] Cohedrin_: has joined #ruby
[21:30:59] mim1k: has joined #ruby
[21:33:09] lxsameer: has joined #ruby
[21:34:16] Cohedrin_: has joined #ruby
[21:34:24] t-recx: has joined #ruby
[21:37:31] darix: mistym: why static in first place?
[21:40:21] ecuanaso: has joined #ruby
[21:41:53] ketan: has joined #ruby
[21:46:57] mim1k: has joined #ruby
[21:48:58] patarr: has joined #ruby
[21:54:52] mim1k: has joined #ruby
[21:58:03] dru: has joined #ruby
[22:00:32] pb122-two: has joined #ruby
[22:09:01] Asher: has joined #ruby
[22:13:35] zenspider: has joined #ruby
[22:13:50] montanonic: has joined #ruby
[22:15:02] milardovich: has joined #ruby
[22:15:26] pb122: has joined #ruby
[22:16:00] elsevero: has joined #ruby
[22:16:40] Joufflu: has joined #ruby
[22:19:34] yoones: has joined #ruby
[22:23:57] nofxx: has joined #ruby
[22:26:47] zenspider_: has joined #ruby
[22:30:27] nobitanobi: has joined #ruby
[22:31:02] mim1k: has joined #ruby
[22:31:03] kkiero: has joined #ruby
[22:35:38] Dimik: has joined #ruby
[22:36:42] gusrub: has joined #ruby
[22:37:11] mistym: darix: It's a redistributable Ruby installation which is 100% static, so it can get dropped anywhere and work fine
[22:38:27] bitcycle: has joined #ruby
[22:39:24] bitcycle: hey all. can someone point me to a good best practice doc or tutorial on how to dev on a gem but test using the installed gem? i.e. my test harness uses the installed gem...
[22:40:13] montanonic: has joined #ruby
[22:41:03] Tharbakim: has joined #ruby
[22:41:03] Tharbakim: has joined #ruby
[22:42:39] hkdsun: has joined #ruby
[22:43:10] quuxman: What does Foo.require mean? I can't find the definition in the module
[22:51:22] ecuanaso: has joined #ruby
[22:54:36] apeiros: it means "call method require on Foo"
[22:54:50] apeiros: and what that does depends entirely on Foo, or anything up the method lookup chain
[22:55:08] quuxman: Foo is a module
[22:55:36] apeiros: >> module Foo; def self.require; "I can do whatever"; end; end; Foo.require
[22:55:37] ruby[bot]: apeiros: # => "I can do whatever" (https://eval.in/829005)
[22:55:51] apeiros: usually require is Kernel#require
[22:56:04] apeiros: but it's rather weird to invoke it on Foo
[22:56:37] apeiros: ::Kernel.require at max if you're e.g. within a BasicObject. Otherwise I'd expect it to differ from Kernel#require.
[22:57:19] cschneid_: has joined #ruby
[22:57:51] apeiros: Foo.method(:require).source_location # <-- gives you the location of the definition if it isn't a native method
[22:58:09] apeiros: Foo.method(:require).owner # <-- gives you the class/module which defines the first invoked method
[23:02:32] mistym: > /bin/sh: ./miniruby: No such file or directory
[23:02:36] mistym: This bisect isn't going so well
[23:02:50] PatrikasZvaigzde: has joined #ruby
[23:04:34] quuxman: ah, it's defined as: Array(files).each{|f| super("#{File.dirname(__FILE__).untaint}/#{"#{subdir}/" if subdir}#{f}")}
[23:05:40] apeiros: that looks icky
[23:07:01] cschneid_: has joined #ruby
[23:08:03] quuxman: that was my thought, but I wasn't going to say it
[23:10:33] ur5us: has joined #ruby
[23:15:47] mim1k: has joined #ruby
[23:16:12] yoongkang: has joined #ruby
[23:17:28] ecuanaso: has joined #ruby
[23:20:11] montanonic: has joined #ruby
[23:20:55] alveric: has joined #ruby
[23:21:20] cdg: has joined #ruby
[23:21:23] kkiero: has joined #ruby
[23:24:45] ascarter: has joined #ruby
[23:26:05] SeepingN: aka scalpel
[23:26:22] Radar: I don't understand why it's required here.
[23:27:23] BTRE: has joined #ruby
[23:27:25] SeepingN: I assumed untaint was a command to remove user-entered naughty bits
[23:30:52] Radar: User entered naughty bits on the return result of File.dirname(__FILE__)?
[23:31:59] Radar: quuxman: next time please show some relevant code. It makes it easier to discuss it.
[23:31:59] jenrzzz: has joined #ruby
[23:32:00] jenrzzz: has joined #ruby
[23:35:49] quuxman: Radar: That was the entire definition of "Sequel.require(files, subdir=nil)". Relevant code would be "Sequel.require 'adapters/shared/sqlite'" or something
[23:36:48] Radar: quuxman: This is the first time I've seen it referred to as Sequel and not Foo.
[23:37:30] quuxman: Well what particular package I found that in was irrelevant. Only added it because you seemed curious
[23:41:34] cam27: has joined #ruby
[23:42:44] ketan: has joined #ruby
[23:43:44] woodruffw: has joined #ruby
[23:43:44] woodruffw: has joined #ruby
[23:47:27] mrconfused: has joined #ruby
[23:47:30] darix: *stabs apeiros*
[23:47:34] milardovich: has joined #ruby
[23:49:46] mim1k: has joined #ruby
[23:52:18] quuxman: has anybody figured out a way to enter a debugger when an exception occurs, and then navigate the stack?
[23:53:10] SuperLag: has joined #ruby
[23:57:45] yoongkang: has joined #ruby
[23:58:59] Papierkorb: quuxman: "debugger"? But that's basically what the better_errors gem for rails does. You can do something similar with pry (and the stack_explorer plugin at least), and setting a TracePoint for exceptions in your applications. That way, your code will run whenever an exception is thrown (or only those not caught? don't remember), inside the stack frame
[23:59:50] Papierkorb: quuxman: Hackier, and less stable (I tried this one), is overriding Kernel#raise and #fail. But you should prefer TracePoint.