« Back to channel list

#ruby - 03 June 2017

« Back 1 day Forward 1 day »
[00:02:38] jackjackdripper: has joined #ruby
[00:05:10] ecuanaso: has joined #ruby
[00:06:23] Radar: has joined #ruby
[00:07:08] jackjackdripper1: has joined #ruby
[00:12:20] DLSteve: has joined #ruby
[00:16:28] GodFather_: has joined #ruby
[00:29:27] jenrzzz: has joined #ruby
[00:30:18] djbkd: has joined #ruby
[00:38:08] djbkd: has joined #ruby
[00:40:02] brent__: has joined #ruby
[00:49:57] ur5us: has joined #ruby
[00:52:18] stee_3: has joined #ruby
[00:52:43] sarbs: has joined #ruby
[00:53:33] bkxd: has joined #ruby
[00:53:45] Cohedrin: has joined #ruby
[01:02:13] james99: has joined #ruby
[01:04:11] PorcoRex: has joined #ruby
[01:04:16] PorcoRex: Good evening.
[01:04:27] patarr: has joined #ruby
[01:04:36] sneakerhax: has joined #ruby
[01:06:42] jackjackdripper: has joined #ruby
[01:07:18] jgt2: has joined #ruby
[01:08:27] choke: has joined #ruby
[01:09:33] mathys: has joined #ruby
[01:11:03] hfp: has joined #ruby
[01:11:31] t-recx: evening PorcoRex
[01:11:34] hfp_work: has joined #ruby
[01:13:58] bkxd: has joined #ruby
[01:15:36] PorcoRex: t-recx, :) Family.
[01:16:32] GodFather_: has joined #ruby
[01:23:02] bkxd_: has joined #ruby
[01:24:56] yokel: has joined #ruby
[01:25:27] dcunit3d: has joined #ruby
[01:28:19] apparition: has joined #ruby
[01:28:53] Axy: has joined #ruby
[01:28:53] Axy: has joined #ruby
[01:29:29] charliesome: has joined #ruby
[01:30:11] bruce_lee: has joined #ruby
[01:30:11] bruce_lee: has joined #ruby
[01:30:19] scottdp: has joined #ruby
[01:31:41] __Yiota: has joined #ruby
[01:36:14] _whitelogger: has joined #ruby
[01:36:28] jenrzzz_: has joined #ruby
[01:37:17] djbkd: has joined #ruby
[01:38:09] ecuanaso: has joined #ruby
[01:38:09] d^sh: has joined #ruby
[01:40:12] cdg: has joined #ruby
[01:43:59] rkazak: has joined #ruby
[01:45:33] djbkd: has joined #ruby
[01:45:53] cschneid_: has joined #ruby
[01:53:59] djbkd: has joined #ruby
[01:54:03] cschneid_: has joined #ruby
[01:54:33] gizmore|2: has joined #ruby
[01:56:35] kobain: has joined #ruby
[01:58:28] jusa: has joined #ruby
[01:59:00] djbkd: has joined #ruby
[01:59:08] dcunit3d: has joined #ruby
[02:01:21] duderonomy: has joined #ruby
[02:04:39] bkxd: has joined #ruby
[02:07:19] mochiyoda: has joined #ruby
[02:09:35] mathys: has joined #ruby
[02:13:25] herbmillerjr: has joined #ruby
[02:15:15] Trynemjoel: has joined #ruby
[02:20:25] genpaku: has joined #ruby
[02:23:19] ecuanaso: has joined #ruby
[02:23:43] Jameser: has joined #ruby
[02:25:36] ascarter_: has joined #ruby
[02:28:12] FastJack: has joined #ruby
[02:33:19] ascarter_: has joined #ruby
[02:34:52] enterprisey: has joined #ruby
[02:37:14] arescorpio: has joined #ruby
[02:37:31] davidmichaelkarr: has joined #ruby
[02:50:27] ur5us: has joined #ruby
[02:51:28] postmodern: has joined #ruby
[02:53:41] dcunit3d: has joined #ruby
[03:01:44] kegster: has joined #ruby
[03:05:21] patarr: has joined #ruby
[03:06:51] ascarter_: has joined #ruby
[03:07:59] jgt2: has joined #ruby
[03:09:22] eightlimbed: has joined #ruby
[03:09:47] eightlimbed: has joined #ruby
[03:15:33] mathys: has joined #ruby
[03:17:33] xulf: has joined #ruby
[03:21:51] ascarter: has joined #ruby
[03:30:54] GinoMan: has joined #ruby
[03:30:59] gix: has joined #ruby
[03:31:30] jusa: has joined #ruby
[03:36:05] GinoMan2440: has joined #ruby
[03:36:28] jenrzzz: has joined #ruby
[03:36:28] jenrzzz: has joined #ruby
[03:48:22] taurgal: has joined #ruby
[03:54:03] mim1k: has joined #ruby
[03:54:36] Trynemjoel: has joined #ruby
[03:56:24] cschneid_: has joined #ruby
[03:59:54] djbkd: has joined #ruby
[04:00:54] djbkd: has joined #ruby
[04:02:21] djbkd: has joined #ruby
[04:03:48] patarr: has joined #ruby
[04:08:36] ascarter: has joined #ruby
[04:09:33] mathys: has joined #ruby
[04:11:27] jgnagy: has joined #ruby
[04:18:27] Jameser: has joined #ruby
[04:20:23] segmond: has joined #ruby
[04:24:05] PaulCapestany: has joined #ruby
[04:25:33] shinnya: has joined #ruby
[04:33:19] quobo: has joined #ruby
[04:34:50] jshjsh: has joined #ruby
[04:45:03] AKPWD: has joined #ruby
[04:51:15] ur5us: has joined #ruby
[05:03:09] nofxxx: has joined #ruby
[05:06:24] GinoMan2440: has joined #ruby
[05:07:24] brent__: has joined #ruby
[05:08:43] jgt2: has joined #ruby
[05:10:10] JoshS: has joined #ruby
[05:14:41] Bock: has joined #ruby
[05:18:22] blackwind_123: has joined #ruby
[05:22:30] Phanes: has joined #ruby
[05:22:52] Phanes: so has anyone figured out how basic dependency tree installation can be accomplished yet?
[05:23:15] Phanes: or are we all passing around docker containers
[05:25:03] Ansible: has joined #ruby
[05:25:05] PorcoRex: Phanes, could you give some context to your question?
[05:25:58] Phanes: i had a missingf depdendency during installation of gitlab's rubygem dependencies and now ive got a lock file that is reporting missing things that aren't missing, and im in ruby dependency management hell and want to clear all of the lock files and try to build again
[05:26:10] Ansible: Hey Phanes
[05:26:17] Phanes: and then when i am done i am never touching ruby again
[05:26:50] Ansible: haha, yeah, I've never been so turned off before as I have since working with Ruby/Rails
[05:26:58] Ansible: Have to hold my nose
[05:27:28] Phanes: i can't say my thoughts i just want to fix it so i can not be messing with ruby
[05:27:45] PorcoRex: Phanes, ok. But in the meantime, what error are you getting? And how does Ruby exactly interacts with Docker containers?
[05:28:22] Phanes: PorcoRex, the going joke is that because this issue is so prevelant with so many projects with ruby deps that people who make ruby projects just pass vm appliances instead of bundles
[05:28:56] Phanes: ill get a paste of the error
[05:29:04] PorcoRex: Phanes, please do.
[05:32:03] Phanes: 2000 line output for a single error. I'm just sickened. http://paste.silogroup.org/vekasegonu.sql
[05:32:04] xall_: has joined #ruby
[05:33:47] AnoHito: has joined #ruby
[05:36:30] Phanes: i know im never gonna get this time back in my life but i need to get through the ruby section of this. do you know how i can clear any previous build attempts and lockfiles so everything is regenerated?
[05:38:13] PorcoRex: Phanes, I had a similar problem before. Did you try following the output "running `bundle update omniauth-google-oauth2` should fix the problem." ?
[05:39:17] Phanes: it is...in the paste
[05:39:31] Phanes: no it did not fix the issue
[05:39:48] AnoHito: has joined #ruby
[05:39:49] Phanes: that effort starts on line 266
[05:39:52] PorcoRex: Phanes, right, but did you try updating omniauth-google-oauth2 ?
[05:40:08] Phanes: L266: http://paste.silogroup.org/vekasegonu.sql
[05:41:07] ddffg: has joined #ruby
[05:41:08] PorcoRex: I understand the output, but did you update the Gemfile.lock by running "bundle update omniauth-google-oauth2" ?
[05:41:09] charliesome: has joined #ruby
[05:41:49] Phanes: PorcoRex, L266: [git@source gitlab-ce-9.2.2]$ bundle update omniauth-google-oauth2 <<--- !!!
[05:42:29] PorcoRex: Did that update your Gemfile.lock?
[05:42:43] Phanes: no it did not
[05:42:52] Phanes: is there a way to clear the gemfile.lock
[05:42:56] Phanes: all of them
[05:43:00] Phanes: i dont want build cache
[05:43:26] PorcoRex: Are you refering to Docker's cache?
[05:43:28] Phanes: it needs to be regenerated
[05:43:32] Phanes: no, im talki
[05:43:39] Phanes: are you trolling me or are you really this stupid?
[05:43:57] PorcoRex: Phanes, I assure you sir. I'm really this stupid.
[05:44:00] Phanes: i believe it
[05:44:21] Phanes: does any sadist here know how i can clear out any associated gemfile.locks in a bundle install?
[05:45:03] PorcoRex: Any takers?
[05:45:40] Phanes: this is seriously the most broken dependency mgmt system i've ever seen
[05:45:44] benlieb: has joined #ruby
[05:47:30] PorcoRex: Phanes, I hope what you're doing is a hobby project, because if it isn't, you'll certainly not find a solution in time.
[05:47:42] Phanes: why is that
[05:48:07] Phanes: Your lockfile was created by an old Bundler that left some things out. <-- how do i clear out any existing lockfiles?
[05:48:46] Phanes: it doesn't seem to check if they need regenerated
[05:49:06] PorcoRex: Phanes, you can remove them, but the you'll say I'm dumb because removing lockfiles is not the smartest thing to do.
[05:49:34] PorcoRex: So if I recommend removing them I would be dumb, and in turn you would be dumb as well.
[05:49:59] jane_booty_doe: has joined #ruby
[05:49:59] Phanes: if have any constructive instructions at all, i mean any, please actually say them instead of grasping on to that fleeting feeling of being smart by witholding information after antagonizing someone by pretending not to know what they're trying to do
[05:50:39] PorcoRex: Phanes, can we start this all over again? No hard feelings?
[05:50:44] Phanes: i would love that
[05:50:54] PorcoRex: Phanes, ok, what is your problem?
[05:51:07] Phanes: http://paste.silogroup.org/vekasegonu.sql
[05:51:08] stupidsenpai: has joined #ruby
[05:53:10] PorcoRex: Gee... That's a pretty long error Phanes.
[05:53:26] jamesaxl: has joined #ruby
[05:53:31] Ansible: Yeah, I can't believe adults choose to use rails
[05:54:19] Phanes: PorcoRex, final error is "fatal: No live threads left. Deadlock?" but tracing it back it looks like omniauth-google-oauth2 is failing to install due to a lockfile in place from a previous build attempt where there were missing deps.
[05:54:32] mim1k: has joined #ruby
[05:54:33] cfec0b8d: has joined #ruby
[05:54:45] PorcoRex: Phanes, no, that's not it.
[05:54:51] Phanes: ok so what is it
[05:54:56] PorcoRex: Phanes, "Downloading omniauth-google-oauth2-0.4.1 revealed dependencies not in the API or the lockfile (omniauth-oauth2 (>= 1.3.1), jwt (~>
[05:54:59] latemus: has joined #ruby
[05:55:31] PorcoRex: Phanes, can we have that complete Gemfile line?
[05:55:34] Phanes: what line number is that
[05:55:42] nanoz: has joined #ruby
[05:55:49] PorcoRex: Phanes, 260-
[05:55:50] Phanes: the gemfile is intact in the paste
[05:56:00] nanoz: has joined #ruby
[05:56:14] PorcoRex: Phanes, how about the Gemfile.lock?
[05:56:17] AnoHito_: has joined #ruby
[05:57:32] PorcoRex: Gee, that's scrappy. Alright...
[05:57:53] Phanes: ok so those two deps are missing and are for omniauth-google-oauth2, and bundle update omniauth-google-oauth2 is failing to install them
[05:58:21] mtkd: has joined #ruby
[05:59:07] PorcoRex: Phanes, I didn't say that. Did you try and fail to bundle update that gem?
[05:59:41] Phanes: yes there were previous attempts
[06:00:20] PorcoRex: Ok... Let's check it...
[06:04:18] PorcoRex: Phanes, what version of bundler are you using?
[06:04:32] nanoz: has left #ruby: ("Leaving")
[06:07:20] shinnya: has joined #ruby
[06:09:15] ytti: has joined #ruby
[06:09:33] mathys: has joined #ruby
[06:10:12] rabbit7: has joined #ruby
[06:10:42] PorcoRex: Phanes, could you try using bundler v1.15.0.pre.3 instead?
[06:12:04] Phanes: PorcoRex, `gem install bundler --version '1.15.0.pre.3' --no-ri --no-rdoc` completed succesfuly
[06:12:30] PorcoRex: Good first step.
[06:12:43] Emmanuel_Chanel: has joined #ruby
[06:12:49] zeroDivisible: has joined #ruby
[06:13:38] Phanes: no change in behaviour
[06:14:04] PorcoRex: Phanes, could you provide the output?
[06:14:47] azwieg103: has joined #ruby
[06:15:43] gnarf: has joined #ruby
[06:16:19] jane_booty_doe: has joined #ruby
[06:17:36] Phanes: PorcoRex, http://paste.silogroup.org/efibebucal.sql
[06:18:14] tohuw: has joined #ruby
[06:20:55] PorcoRex: Phanes, did you try what you tried on line 266?
[06:21:03] Phanes: PorcoRex, sure: http://paste.silogroup.org/katufeyeci.sql
[06:21:05] PorcoRex: On the previous bundle version?
[06:21:19] Phanes: yes that is the order of events we went over
[06:22:32] PorcoRex: Phanes, what Ruby version are you using?
[06:22:45] Phanes: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
[06:22:58] Phanes: am i able to just delete ./.bundle/ and let this generate?
[06:23:09] Phanes: *regenerate
[06:23:12] akkad: has joined #ruby
[06:25:31] Phanes: at some point ruby/bundle generated these lockfiles in an incomplete fashion somewhere in what is assumed by me to be a staging point for temporary data not yet realized. surely there is a way to freshen that?
[06:27:30] PorcoRex: You assume way too much. Locks are intended to lock versions.
[06:28:41] Ansible: has left #ruby: ()
[06:31:21] PorcoRex: Phanes, there is a new patch version for the state_machines-activerecord gem. Version 0.4.0 is from May 2016 while version 0.4.1 if newer. Do you think you could update it?
[06:32:47] Mia: has joined #ruby
[06:33:19] Kneecaps: has left #ruby: ()
[06:33:59] bkxd: has joined #ruby
[06:35:24] PorcoRex: Phanes, sir?
[06:36:58] PorcoRex: Phanes, sir, where you able to solve your problem?
[06:38:23] Phanes: sorry one moment, was wiping that directory away and extracting a new archive for gitlab
[06:38:54] etehtsea: has joined #ruby
[06:39:17] Phanes: gem install state_machines-activerecord?
[06:40:31] Phanes: it is now installed
[06:40:43] PorcoRex: ┬┐Version 0.4.1?
[06:41:03] PorcoRex: Ok. Can we see the error log?
[06:41:12] Phanes: there is no error log yet
[06:41:22] Phanes: we installed state_machines-activerecord
[06:41:26] PorcoRex: I'll wait for it, no worries.
[06:41:45] Phanes: im going to run the bundle install line again
[06:44:19] Phanes: between re-extracting the source dir we were running bundle against and the state_machines-activerecord gem it seems to be going further
[06:45:01] PorcoRex: I'm not too bright. Does that mean good or bad?
[06:45:20] ur5us: has joined #ruby
[06:46:15] nowhere_man: has joined #ruby
[06:46:41] Phanes: stopped in the same place but seemed to be much cleaner: http://paste.silogroup.org/uyasacedes.sql
[06:47:17] jackjackdripper: has joined #ruby
[06:47:33] Phanes: (line 575)
[06:49:11] PorcoRex: Phanes, that does look cleaner. What do you think it means?
[06:49:24] Phanes: no clue. this environment does not make sense to me.
[06:49:35] Phanes: bundle lock --update=omniauth-google-oauth2 seems relevant
[06:50:07] PorcoRex: Phanes, yes, I agree. Anyways. I have to go. Have a great weekend everyone.
[06:50:48] PorcoRex: has left #ruby: ("Leaving")
[06:55:19] roshanavand: has joined #ruby
[06:57:55] dionysus69: has joined #ruby
[07:06:49] Phanes: that fixed it
[07:07:04] Phanes: locking omniauth-google-oath2 prior to bundle run repaired it
[07:07:22] Phanes: if you already ran the bundle install you have to wipe the stage and try again
[07:07:39] Phanes: or it'll complain that the lockfile is frozen
[07:07:43] Phanes: this is betaware
[07:09:09] bkxd: has joined #ruby
[07:09:29] jgt2: has joined #ruby
[07:21:19] bkxd_: has joined #ruby
[07:21:28] futilegames: has joined #ruby
[07:21:34] futilegames: has left #ruby: ()
[07:24:22] dionysus69: has joined #ruby
[07:26:25] bkxd: has joined #ruby
[07:27:18] futilegames: has joined #ruby
[07:28:16] DoubleMalt: has joined #ruby
[07:29:41] marr: has joined #ruby
[07:32:26] dionysus69: has joined #ruby
[07:35:30] dionysus69: has joined #ruby
[07:36:09] futilegames: has joined #ruby
[07:36:21] ahrs: has joined #ruby
[07:36:33] ohcibi: has joined #ruby
[07:42:29] ohcibi: has joined #ruby
[07:55:44] mtkd: has joined #ruby
[07:58:41] ^mtkd: has joined #ruby
[08:02:41] Polysics: has joined #ruby
[08:04:18] mtkd: has joined #ruby
[08:09:13] _whitelogger: has joined #ruby
[08:09:33] mathys: has joined #ruby
[08:10:07] Polysics_: has joined #ruby
[08:14:51] mim1k: has joined #ruby
[08:14:57] kies: has joined #ruby
[08:20:59] mtkd: has joined #ruby
[08:22:54] tristanp: has joined #ruby
[08:30:37] lxsameer: has joined #ruby
[08:31:29] vuoto: has joined #ruby
[08:34:20] dionysus69: has joined #ruby
[08:39:56] bkxd_: has joined #ruby
[08:47:20] jamesaxl: has joined #ruby
[08:56:34] ur5us: has joined #ruby
[08:57:20] roshanavand: has joined #ruby
[09:02:34] Polysics: has joined #ruby
[09:03:22] roshanavand: has joined #ruby
[09:09:32] mathys: has joined #ruby
[09:10:12] jgt2: has joined #ruby
[09:13:59] doublemalt_: has joined #ruby
[09:18:59] lel: has joined #ruby
[09:21:23] workmad3: has joined #ruby
[09:21:50] bkxd: has joined #ruby
[09:22:15] Rich_Morin_: has joined #ruby
[09:23:08] nanoz: has joined #ruby
[09:24:58] tristanp: has joined #ruby
[09:50:04] nankyokusei: has joined #ruby
[09:52:09] ixti: has joined #ruby
[10:02:35] ecuanaso: has joined #ruby
[10:02:38] bkxd_: has joined #ruby
[10:03:13] Polysics: has joined #ruby
[10:03:40] Jameser: has joined #ruby
[10:09:33] mathys: has joined #ruby
[10:15:25] mim1k: has joined #ruby
[10:18:09] konsolebox: has joined #ruby
[10:35:06] mtkd: has joined #ruby
[10:37:34] fusta: has joined #ruby
[10:38:31] DrCode: has joined #ruby
[10:44:24] bkxd: has joined #ruby
[10:47:27] cschneid_: has joined #ruby
[10:54:16] shake001: has joined #ruby
[10:54:38] mim1k: has joined #ruby
[10:55:34] shake001: has left #ruby: ()
[10:57:46] foxxx0: has joined #ruby
[10:59:46] opencw: has joined #ruby
[11:01:58] nowhere_man: has joined #ruby
[11:09:33] mathys: has joined #ruby
[11:11:01] jgt2: has joined #ruby
[11:13:04] chalkmonster: has joined #ruby
[11:25:56] tristanp: has joined #ruby
[11:33:11] _whitelogger: has joined #ruby
[11:34:16] mtkd: has joined #ruby
[11:35:14] chalkmonster: has joined #ruby
[11:39:33] mikecmpbll: has joined #ruby
[11:42:02] jenrzzz: has joined #ruby
[12:00:00] ixti: has joined #ruby
[12:01:56] ur5us: has joined #ruby
[12:02:06] ixti: has joined #ruby
[12:08:24] yeticry: has joined #ruby
[12:11:33] mathys: has joined #ruby
[12:14:51] oleo: has joined #ruby
[12:18:55] yeticry: has joined #ruby
[12:22:22] __Yiota: has joined #ruby
[12:24:51] doublemalt__: has joined #ruby
[12:27:55] GodFather_: has joined #ruby
[12:28:23] nadir: has joined #ruby
[12:29:46] MarkBilk: Please, how do I get ri to tell me about Tk. I have Tk built in -- I ran a small program using it.
[12:31:37] t-recx: has joined #ruby
[12:32:23] nankyokusei: has joined #ruby
[12:34:05] Polysics: has joined #ruby
[12:41:12] CacoS: has joined #ruby
[12:43:03] oleo: has joined #ruby
[12:49:08] charliesome: has joined #ruby
[12:50:56] Hanmac: MarkBilk: how did you install ruby?
[12:51:39] MarkBilk: Installer for Windows.
[12:52:24] charliesome: has joined #ruby
[12:52:58] MarkBilk: ri works for other things, e.g., String.
[12:52:58] Hanmac: which ruby version? newer ruby isnt shipped with tk as i know (might be extra gem) i think ri didnt parsed the docs while installing that
[12:53:52] jdawgaz: has joined #ruby
[12:54:09] MarkBilk: ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
[12:56:42] MarkBilk: Tk isn't in the gems directory.
[12:57:49] chalkmonster: has joined #ruby
[12:58:03] davic: has joined #ruby
[12:58:44] __Yiota: has joined #ruby
[12:58:51] nowhere_man: has joined #ruby
[13:01:17] Hanmac: @MarkBilk: https://stackoverflow.com/questions/3178900/how-do-i-install-the-ruby-ri-documentation
[13:01:33] ascarter: has joined #ruby
[13:01:48] belmoussaoui: has joined #ruby
[13:02:05] ascarter_: has joined #ruby
[13:08:26] MarkBilk: hanmac: Which command should I use from there, considering that ri already works for classes other than Tk?
[13:09:12] MarkBilk: This? gem rdoc --all --ri --no-rdoc
[13:09:43] Hanmac: yeah try that
[13:11:42] jgt2: has joined #ruby
[13:12:38] MarkBilk: It parsed the docs for all the gems, but ri Tk or ri tk still gives nothing.
[13:18:51] nowhere_man: has joined #ruby
[13:20:34] MarkBilk: hanmac: the other suggestion is: gem install rdoc-data and then: rdoc-data --install
[13:21:38] jusa: has joined #ruby
[13:23:58] cschneid_: has joined #ruby
[13:30:24] weathermaker: has joined #ruby
[13:33:19] chalkmonster: has joined #ruby
[13:33:41] mtkd: has joined #ruby
[13:38:40] kmhn: has joined #ruby
[13:42:16] belmoussaoui: has joined #ruby
[13:48:24] __Yiota: has joined #ruby
[13:52:00] MarkBilk: hanmac: I ran that too. Didn't help.
[13:52:55] dionysus69: has joined #ruby
[13:54:15] belmoussaoui: has joined #ruby
[13:54:43] cschneid_: has joined #ruby
[13:57:33] bkxd: has joined #ruby
[14:02:32] ur5us: has joined #ruby
[14:15:58] __Yiota: has joined #ruby
[14:21:51] mostlybadfly: has joined #ruby
[14:22:23] Rich_Morin: has joined #ruby
[14:28:39] ecuanaso: has joined #ruby
[14:29:02] nicesignal: has joined #ruby
[14:30:30] warrshrik: has joined #ruby
[14:31:47] warrshrik: so this code
[14:31:48] warrshrik: if !(File.exist?("#{Base}#{appname}/#{appname}.yml")) puts "File doesnt exist!" File.open("#{Base}#{appname}/#{appname}.yml", "w") do |file| file.write(YAML::dump(cflArray(appname))) end end
[14:32:36] warrshrik: if .yml doesnt exist the File.open code is destined to run
[14:32:42] warrshrik: but it errors out
[14:32:50] warrshrik: file doesnt exist it says
[14:32:56] warrshrik: i want it to make new file!
[14:33:00] warrshrik: how to fix?
[14:33:13] nankyokusei: has joined #ruby
[14:33:26] belmoussaoui: has joined #ruby
[14:35:43] jamesaxl: has joined #ruby
[14:36:29] warrshrik: please help
[14:37:52] warrshrik: will File.write work
[14:41:13] konsolebox: warrshrik: yes you can just use File.write
[14:42:44] konsolebox: warrshrik: maybe you should also make sure that the directory where the file would be created exists and is writable
[14:45:41] ascarter: has joined #ruby
[14:46:58] warrshrik: konsolebox: yup that fixed it
[14:55:28] ecuanaso: has joined #ruby
[15:00:32] jgnagy: has joined #ruby
[15:06:57] aswen: has joined #ruby
[15:07:23] sepp2k: has joined #ruby
[15:09:33] jamesaxl: has joined #ruby
[15:12:29] jgt2: has joined #ruby
[15:20:47] haylon: has joined #ruby
[15:23:54] mikecmpbll: has joined #ruby
[15:27:49] konsolebox: has joined #ruby
[15:28:11] DLSteve: has joined #ruby
[15:31:06] mochiyoda_: has joined #ruby
[15:34:01] konsolebox: has joined #ruby
[15:34:40] ecuanaso: has joined #ruby
[15:41:44] spk: has joined #ruby
[15:42:01] zacts: has joined #ruby
[15:47:39] vuoto: has joined #ruby
[15:58:15] zacts: has joined #ruby
[16:01:21] workmad3: has joined #ruby
[16:03:08] Cohedrin: has joined #ruby
[16:03:19] ur5us: has joined #ruby
[16:03:26] nhhc: has joined #ruby
[16:04:04] ZacNoMore: has joined #ruby
[16:08:12] djbkd: has joined #ruby
[16:10:42] yeticry_: has joined #ruby
[16:14:32] Blaguvest: has joined #ruby
[16:15:30] erlendf: has joined #ruby
[16:16:33] __Yiota: has joined #ruby
[16:16:38] rkazak: has joined #ruby
[16:17:38] nanoz: has joined #ruby
[16:17:38] nanoz: has joined #ruby
[16:18:55] roshanavand: has joined #ruby
[16:18:59] rkazak: has joined #ruby
[16:20:21] patr0clus: has joined #ruby
[16:22:57] gizmore: has joined #ruby
[16:29:59] kies: has joined #ruby
[16:34:05] nankyokusei: has joined #ruby
[16:34:18] DrCode: has joined #ruby
[16:34:40] hfp: has joined #ruby
[16:35:12] hfp_work: has joined #ruby
[16:36:14] ShekharReddy: has joined #ruby
[16:38:37] jgnagy: has joined #ruby
[16:38:46] djbkd: has joined #ruby
[16:39:37] DrCode: has joined #ruby
[16:43:19] guardianx: has joined #ruby
[16:44:41] DrCode: has joined #ruby
[16:46:14] beccamorgan: has joined #ruby
[16:46:51] DrCode: has joined #ruby
[16:47:38] DLSteve: has joined #ruby
[16:48:23] guardianx: has joined #ruby
[16:50:26] DrCode: has joined #ruby
[16:52:26] shinnya: has joined #ruby
[16:57:13] DrCode: has joined #ruby
[17:02:49] ljarvis: https://bogdanvlviv.github.io/posts/ruby/new-aliases-append-to-push-and-prepend-to-unshift-since-ruby-2_5_0.html
[17:02:54] ljarvis: yay more new aliases
[17:05:05] ltem: has joined #ruby
[17:07:14] DrCode: has joined #ruby
[17:10:34] mtkd: has joined #ruby
[17:11:13] dasher00: has joined #ruby
[17:13:11] jgt2: has joined #ruby
[17:15:54] Mon_Ouie: has joined #ruby
[17:20:25] bilal80: has joined #ruby
[17:21:03] jamesaxl: has joined #ruby
[17:26:21] jackjackdripper: has joined #ruby
[17:28:09] jolamb: has joined #ruby
[17:28:12] tristanp: has joined #ruby
[17:30:14] djbkd: has joined #ruby
[17:31:18] ecuanaso: has joined #ruby
[17:31:20] djbkd: has joined #ruby
[17:32:44] jgt2: has joined #ruby
[17:34:08] jolamb: has joined #ruby
[17:34:09] mtkd: has joined #ruby
[17:39:33] wnd: has joined #ruby
[17:39:45] nhhc: has joined #ruby
[17:42:16] bmurt: has joined #ruby
[17:42:57] cjhowe7: has joined #ruby
[17:44:02] jgnagy: has joined #ruby
[17:47:33] pankaj: has joined #ruby
[17:48:57] jdawgaz: has joined #ruby
[17:56:18] pankaj: has joined #ruby
[17:56:54] DrCode: has joined #ruby
[17:57:44] SuperLag_: has joined #ruby
[18:02:24] bmurt: has joined #ruby
[18:04:04] pankaj: has joined #ruby
[18:04:08] ur5us: has joined #ruby
[18:04:36] mtkd: has joined #ruby
[18:05:29] herbmillerjr: has joined #ruby
[18:09:33] mathys: has joined #ruby
[18:13:21] DrCode: has joined #ruby
[18:14:30] SuperLag: has joined #ruby
[18:15:55] Mon_Ouie: has joined #ruby
[18:18:33] DrCode: has joined #ruby
[18:20:13] bmurt: has joined #ruby
[18:23:33] dionysus69: has joined #ruby
[18:23:39] Polysics_: has joined #ruby
[18:28:19] DrCode: has joined #ruby
[18:34:37] pankaj: has joined #ruby
[18:34:57] nankyokusei: has joined #ruby
[18:35:41] nekomune: has joined #ruby
[18:35:43] ascarter: has joined #ruby
[18:37:35] jusa: has joined #ruby
[18:38:45] pen: has joined #ruby
[18:39:25] DrCode: has joined #ruby
[18:41:13] ecuanaso: has joined #ruby
[18:42:03] doublemalt__: has joined #ruby
[18:46:08] haylon_: has joined #ruby
[18:49:25] stupidsenpai: has joined #ruby
[18:50:42] comet23: has joined #ruby
[19:03:57] psychicist__: has joined #ruby
[19:04:35] dionysus69: has joined #ruby
[19:09:33] mathys: has joined #ruby
[19:13:14] yorickpeterse: ljarvis: To be fair, I think #prepend is better than #unshift
[19:13:22] yorickpeterse: I just hope some of these will get deprecated at some point
[19:13:30] yorickpeterse: but #append is a bit silly
[19:15:02] KeyJoo: has joined #ruby
[19:15:03] yogg-saron: has joined #ruby
[19:17:09] Rich_Morin: has joined #ruby
[19:22:01] dionysus69: has joined #ruby
[19:24:04] ecuanaso: has joined #ruby
[19:24:26] Coldblackice: has joined #ruby
[19:26:28] zipace: has joined #ruby
[19:26:37] bmurt: has joined #ruby
[19:27:08] Rich_Morin: has joined #ruby
[19:33:17] silverdust: has joined #ruby
[19:36:11] jgt2: has joined #ruby
[19:36:27] CacoS: has joined #ruby
[19:38:36] ringrong: has joined #ruby
[19:38:50] mtkd: has joined #ruby
[19:43:02] bmurt: has joined #ruby
[19:43:10] konsolebox: Ruby is like freedom of speech. Freedom of choices.
[19:43:16] konsolebox: yorickpeterse: why do you think append is silly?
[19:43:46] tomphp: has joined #ruby
[19:44:23] konsolebox: "And minimalists should stay away." is what I just thought.
[19:48:56] mtkd: has joined #ruby
[19:49:21] sajinmp: has joined #ruby
[19:50:26] miguelfernandes: has joined #ruby
[19:54:52] jdawgaz: has joined #ruby
[19:58:45] sajinmp: Hi there. Can anyone help me with this http://rubyfiddle.com/riddles/89bfd/2
[19:59:15] cyphase: has joined #ruby
[19:59:28] sajinmp: I tried splitting using regex and then converting to hash but it doesn't work properly
[20:00:15] apeiros: sajinmp: can you also upload your try?
[20:00:45] sajinmp: Just a second
[20:00:50] dionysus69: has joined #ruby
[20:01:06] apeiros: also I'm about a bit fuzzy about what the logic is behind the transformation
[20:02:20] sajinmp: S is the search words and A is where it should be searched for. Based on weightage, the results should be shown as A1, A2 etc
[20:02:23] ur5us: has joined #ruby
[20:02:38] apeiros: oh, I think I see it now. whitespace is the separator (either space or newline), a single letter is always a key?
[20:05:08] ecuanaso: has joined #ruby
[20:07:02] Polysics: has joined #ruby
[20:07:24] sajinmp: apeiros: I have updated fiddle with my trials. I got a way of doing it but I think its too roundabout. http://rubyfiddle.com/riddles/89bfd/3
[20:07:54] darix: apeiros: https://twitter.com/RegnerBA/status/871070857640034304
[20:08:20] sajinmp: apeiros: After adding a special character to the space after S or A, I can split it and make it to hash but I was wondering if there is a better way.
[20:08:24] apeiros: oh hi darix! been a while :D
[20:08:41] cdg: has joined #ruby
[20:09:05] apeiros: sajinmp: does your text only consist of A-Za-z?
[20:09:10] apeiros: or can it contain other characters?
[20:09:54] lxsameer: has joined #ruby
[20:10:13] sajinmp: Just A-Za-z, space and newline
[20:10:51] cdg: has joined #ruby
[20:12:54] apeiros: input.split(/[ \n]?([AS])[ \n]/).tap(&:shift).each_slice(2).map { |k,v| [k,v.split(/[ \n]/)] }
[20:13:10] apeiros: now all remains to do is add the weights and call to_h on the result
[20:14:06] apeiros: darix: wow, ouch re link. agree with the tweeter. not that persons fault.
[20:14:27] Nilium: Production DB tweet?
[20:14:32] Nilium: Yep, production DB tweet.
[20:14:39] apeiros: darix: why u no #ruby-offtopic? :)
[20:15:25] darix: i am tinkering with openvswitch!
[20:16:09] apeiros: more reason for #ruby-offtopic!
[20:16:43] sajinmp: aperios: Woah... Thanks. I'm still lacking
[20:17:05] apeiros: ?tabnick sajinmp
[20:17:06] ruby[bot]: sajinmp: pro-tip - use tab completion for nicks. avoids typos in nicks.
[20:17:31] darix: apeiros: my client doesnt support tab completion. what to do?
[20:17:52] apeiros: darix: get a real client instead of logging in via TCPSocket
[20:19:21] sajinmp: apeiros: didn't know that as well. thanks D
[20:19:27] sajinmp: apeiros: didn't know that as well. thanks :D
[20:19:57] Sembei: has joined #ruby
[20:22:54] oleo: has joined #ruby
[20:27:19] rohitpaulk: has joined #ruby
[20:27:43] apeiros: alternative: input.split(/\s/).slice_before { |value| ["A","S"].include?(value) }.to_a
[20:27:47] apeiros: probably more readable
[20:28:56] apeiros: needs slightly different processing, but mostly the same. map it to add the weight and get a [key, values] array, then call to_h on the result
[20:36:57] jgt2: has joined #ruby
[20:37:28] jusa: has joined #ruby
[20:38:38] zacts: has joined #ruby
[20:52:18] belmoussaoui_: has joined #ruby
[20:59:35] yqt: has joined #ruby
[21:00:06] cdg_: has joined #ruby
[21:00:54] herbmillerjr: has joined #ruby
[21:02:58] tristanp: has joined #ruby
[21:05:21] Some-body_: has joined #ruby
[21:10:33] jgnagy: has joined #ruby
[21:13:14] ascarter: has joined #ruby
[21:24:36] rapha: has joined #ruby
[21:25:09] rapha: why would "ruby -r blah/blah.rb" work, but "irb -r blah/blah.rb" complain "LoadError: cannot load such file -- blah/blah.rb"?
[21:25:40] jdawgaz: has joined #ruby
[21:26:25] jdawgaz: has joined #ruby
[21:27:00] jdawgaz: has joined #ruby
[21:27:12] rapha: (the file in question requires pathname and ostruct and contains one OpenStruct - i don't see what would be problematic about that)
[21:29:44] mtkd: has joined #ruby
[21:36:43] sepp2k: has joined #ruby
[21:38:00] adgtl: has joined #ruby
[21:39:34] Phanes: has left #ruby: ("Leaving")
[21:46:01] marr: has joined #ruby
[21:48:35] rapha: okay i just tried the same with a file containing "puts 'blah'" and it doesnt work either. wtf?
[21:49:18] apeiros: rapha: ruby -e 'puts $LOAD_PATH' and in irb, run the same code. compare the output.
[21:54:42] rapha: apeiros: same exact output, save for irb's '=> nil' ... bad?
[21:55:18] Bob8989: has joined #ruby
[21:55:20] apeiros: is blah/blah.rb part of an installed gem?
[21:55:49] rapha: apeiros: nope. and like i wrote above, "irb -r" doesn't work with a file _only_ containing "puts 'blah'" either.
[21:56:11] apeiros: well, for plain files, the only relevant info is $LOAD_PATH
[21:56:33] apeiros: so if they're truly the same, I'm at a loss why it'd work with ruby but not irb
[21:57:20] rapha: actually i'm not sure if it does work with ruby. should i see the output produced by "puts 'blah'" when doing "ruby -r test.rb"?
[21:57:58] apeiros: I'd not name it test.rb
[21:58:27] Mon_Ouie: Are you giving an input file to Ruby? Or code to run with -e?
[21:58:32] rapha: apeiros: same if it's named "meh.rb"
[21:58:39] rapha: Mon_Ouie: an input file containing "puts 'meh'"
[21:58:40] Mon_Ouie: Otherwise ruby is just going to be waiting for input
[21:58:44] apeiros: Mon_Ouie: oh, stuck on stdinput?
[21:58:53] apeiros: didn't think of that
[21:59:06] rapha: indeed! once i press enter, i get /home/jrs/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- meh.rb (LoadError) again.
[21:59:28] rapha: which is what i originally wanted to fix with irb..
[22:00:08] apeiros: rapha: let me guess, the file is in the same working directory as where you start irb/ruby?
[22:00:44] apeiros: . (working directory) is not part of $LOAD_PATH, which is why it's not found. you can temporarily add it via -I (upcase i): ruby -I. -rblah/blah
[22:00:44] rapha: apeiros: yes, but the error remains the same once i put it into a subdir.
[22:01:00] apeiros: the subdir is also in the working directory
[22:01:42] rapha: i'm sorry to have gotten on your nerves with something so profane :(
[22:01:45] apeiros: relative paths, how do they work? :-p
[22:02:17] apeiros: anyway, your require must be relative to one path in $LOAD_PATH. that's the whole magic.
[22:02:24] apeiros: (or part of an installed gem, but that's another story)
[22:03:22] rapha: apeiros: the -I trick works just fine in this specific case. I just needed a Rake task to give me a console of my Sinatra app.
[22:05:58] jackjackdripper1: has joined #ruby
[22:06:34] ecuanaso: has joined #ruby
[22:08:02] rapha: apeiros: oh, do you know a trick to suppress a single command's return value in pry?
[22:08:41] rapha: hah! perfect! thank you!
[22:09:32] mathys: has joined #ruby
[22:16:52] Rich_Morin_: has joined #ruby
[22:31:44] GinoMan2440: has joined #ruby
[22:31:56] HoierM: has joined #ruby
[22:33:07] HoierM: has joined #ruby
[22:36:18] patr0clus: has joined #ruby
[22:38:57] jgt2: has joined #ruby
[22:44:56] Rich_Morin: has joined #ruby
[22:47:26] matthewhill: has joined #ruby
[22:53:19] Lyubo1: has joined #ruby
[22:53:44] stupidsenpai: has joined #ruby
[22:54:39] Rich_Morin_: has joined #ruby
[22:58:31] agent_white: has joined #ruby
[23:01:15] d^sh: has joined #ruby
[23:04:19] tristanp: has joined #ruby
[23:06:03] hays: has joined #ruby
[23:06:04] hays: has joined #ruby
[23:06:45] bkxd: has joined #ruby
[23:09:31] mathys: has joined #ruby
[23:15:55] Rich_Morin__: has joined #ruby
[23:25:35] Rich_Morin: has joined #ruby
[23:27:22] DLSteve: has joined #ruby
[23:31:10] Rich_Morin_: has joined #ruby
[23:35:51] jdawgaz: has joined #ruby
[23:38:12] Rich_Morin_: has joined #ruby
[23:42:12] jgt2: has joined #ruby
[23:46:28] Rich_Morin_: has joined #ruby
[23:48:48] bkxd: has joined #ruby
[23:52:51] Rich_Morin_: has joined #ruby
[23:54:32] zipace: has joined #ruby
[23:59:54] Rich_Morin_: has joined #ruby