« Back to channel list

#ruby - 27 June 2018

« Back 1 day Forward 1 day »
[00:00:08] twe4ked: has joined #ruby
[00:05:51] tty: has joined #ruby
[00:10:05] Fizzik: has joined #ruby
[00:10:31] roamingdog: has joined #ruby
[00:11:21] roamingdog: has joined #ruby
[00:12:06] roamingdog: has joined #ruby
[00:16:16] venmx: has joined #ruby
[00:21:10] r29v: has joined #ruby
[00:25:00] Venomen: has joined #ruby
[00:25:58] jready: has joined #ruby
[00:27:17] dinfuehr: has joined #ruby
[00:29:24] darkhanb: has joined #ruby
[00:32:06] lxsameer: has joined #ruby
[00:32:34] cagomez: has joined #ruby
[00:33:51] jhack: has joined #ruby
[00:37:42] bmurt: has joined #ruby
[00:42:34] fluxAeon: has joined #ruby
[00:43:09] orbyt_: has joined #ruby
[00:45:38] BloopMonster: has joined #ruby
[00:46:58] jrafanie: has joined #ruby
[00:47:08] lxsameer: has joined #ruby
[00:52:26] lxsameer: has joined #ruby
[00:55:13] jhack: has joined #ruby
[00:55:15] meinside: has joined #ruby
[00:55:53] linuxdaemon: has joined #ruby
[00:59:42] tty: has joined #ruby
[01:02:21] lxsameer: has joined #ruby
[01:10:21] Venomen: has joined #ruby
[01:12:20] lxsameer: has joined #ruby
[01:12:43] orbyt_: has joined #ruby
[01:13:29] roamingdog: has joined #ruby
[01:16:13] Fizzik: has joined #ruby
[01:17:15] gizmore|2: has joined #ruby
[01:18:32] jhack: has joined #ruby
[01:22:17] karapetyan: has joined #ruby
[01:22:20] lxsameer: has joined #ruby
[01:31:44] StarSeed0000: has joined #ruby
[01:35:11] jrafanie: has joined #ruby
[01:38:32] yokel: has joined #ruby
[01:56:01] yokel: has joined #ruby
[01:57:40] jhack: has joined #ruby
[01:57:42] jhack: has left #ruby: ()
[02:02:09] lxsameer: has joined #ruby
[02:04:45] Venomen: has joined #ruby
[02:12:07] lxsameer: has joined #ruby
[02:13:08] Fizzik: has joined #ruby
[02:19:51] Fizzik_: has joined #ruby
[02:20:34] taylorzr: has joined #ruby
[02:24:51] white_lilies: has joined #ruby
[02:27:25] lxsameer: has joined #ruby
[02:30:29] BloopMonster: has joined #ruby
[02:37:10] lxsameer: has joined #ruby
[02:38:38] JamJam_kid: has joined #ruby
[02:41:06] r29v: has joined #ruby
[02:45:56] houhoulis: has joined #ruby
[02:48:51] ghormoon: has joined #ruby
[02:56:01] tvw: has joined #ruby
[03:07:59] darkhanb: has joined #ruby
[03:11:02] braincrash: has joined #ruby
[03:13:59] wontruefree: has joined #ruby
[03:14:25] Venomen: has joined #ruby
[03:22:07] lxsameer: has joined #ruby
[03:22:50] cagomez: has joined #ruby
[03:27:39] DTZUZO: has joined #ruby
[03:28:38] AJA4351: has joined #ruby
[03:39:17] cschneid: has joined #ruby
[03:48:31] icarus: has joined #ruby
[03:51:49] amar_: has joined #ruby
[03:52:11] gix-: has joined #ruby
[03:54:39] konsolebox: has joined #ruby
[03:55:15] DTZUZO: has joined #ruby
[03:57:09] mozzarella: has joined #ruby
[04:07:07] lxsameer: has joined #ruby
[04:14:03] cschneid: has joined #ruby
[04:18:41] knight33: has joined #ruby
[04:25:02] Fizzik_: has joined #ruby
[04:26:52] kapil___: has joined #ruby
[04:30:37] atharp: has joined #ruby
[04:31:43] toastercup: has joined #ruby
[04:32:15] toastercup: has joined #ruby
[04:36:53] roamingdog: has joined #ruby
[04:42:11] apeiros: has joined #ruby
[04:45:41] orbyt_: has joined #ruby
[04:55:18] hph^: has joined #ruby
[04:55:39] hph^: has joined #ruby
[04:55:47] lxsameer: has joined #ruby
[04:56:00] hph^: has joined #ruby
[04:56:21] hph^: has joined #ruby
[04:56:43] hph^: has joined #ruby
[04:57:06] hph^: has joined #ruby
[05:02:07] lxsameer: has joined #ruby
[05:07:07] lxsameer: has joined #ruby
[05:08:14] hays: has joined #ruby
[05:08:14] hays: has joined #ruby
[05:09:03] cadillac_: has joined #ruby
[05:12:13] c0ncealed2: has joined #ruby
[05:12:58] tdy: has joined #ruby
[05:15:20] sauvin: has joined #ruby
[05:17:11] lxsameer: has joined #ruby
[05:19:18] Hanmac: has joined #ruby
[05:20:23] bga57: has joined #ruby
[05:22:16] aufi: has joined #ruby
[05:23:18] JamJam_kid: has joined #ruby
[05:26:41] Hobbyboy: has joined #ruby
[05:27:54] roamingdog: has joined #ruby
[05:29:24] anisha_: has joined #ruby
[05:30:16] za1b1tsu: has joined #ruby
[05:32:11] BloopMonster: has joined #ruby
[05:32:54] Puffball: has joined #ruby
[05:33:43] Fizzik_: has joined #ruby
[05:38:00] SuperL4g: has joined #ruby
[05:39:02] amar_: has joined #ruby
[05:41:10] aupadhye: has joined #ruby
[05:45:41] Furai: has joined #ruby
[05:46:38] reber: has joined #ruby
[05:58:33] jcarl43: has joined #ruby
[06:02:13] lxsameer: has joined #ruby
[06:04:21] Fizzik: has joined #ruby
[06:04:58] apeiros: has joined #ruby
[06:07:55] r29v: has joined #ruby
[06:10:58] clemens3_: has joined #ruby
[06:12:11] lxsameer: has joined #ruby
[06:12:56] arkaros: has joined #ruby
[06:13:31] apeiros: has joined #ruby
[06:16:48] Nicmavr: has joined #ruby
[06:16:59] biberu: has joined #ruby
[06:19:49] dr3wo: has joined #ruby
[06:22:22] lxsameer: has joined #ruby
[06:27:22] mikhael_k33hl: has joined #ruby
[06:27:37] mikhael_k33hl: Is there an article/documentation for best practices pertaining model creation in Ruby?
[06:28:26] arkaros: has joined #ruby
[06:29:40] andikr: has joined #ruby
[06:29:59] nertzy: has joined #ruby
[06:31:52] amar_: has joined #ruby
[06:35:39] nima_m: has joined #ruby
[06:37:11] lxsameer: has joined #ruby
[06:41:34] DEac-: has joined #ruby
[06:42:06] nima_m: has joined #ruby
[06:44:25] Fizzik: has joined #ruby
[06:46:35] nima_m: has joined #ruby
[06:59:43] sysvalve: has joined #ruby
[07:00:52] quiqua: has joined #ruby
[07:04:17] yohji: has joined #ruby
[07:05:22] redlegion: has joined #ruby
[07:07:32] suukim: has joined #ruby
[07:08:03] claudiuinberlin: has joined #ruby
[07:09:16] conta: has joined #ruby
[07:10:23] clemens3_: has joined #ruby
[07:15:52] burgestrand: has joined #ruby
[07:17:04] lxsameer: has joined #ruby
[07:21:59] Venomen: has joined #ruby
[07:24:43] za1b1tsu: has joined #ruby
[07:33:39] Bish: mikhael_k33hl: you need to be more specific when saying "model creation"
[07:33:41] Bish: atleast for me
[07:35:10] amar: has joined #ruby
[07:38:55] nowhere_man: has joined #ruby
[07:39:11] guille-moe: has joined #ruby
[07:40:33] GodFather: has joined #ruby
[07:42:29] contradictioned: has joined #ruby
[07:42:43] p4p0l0: has joined #ruby
[07:48:36] schleppel: has joined #ruby
[07:49:23] drale2k_: has joined #ruby
[07:50:39] burgestrand: has joined #ruby
[07:51:41] Lyubo1: has joined #ruby
[07:51:55] aufi: has joined #ruby
[07:53:19] lxsameer: has joined #ruby
[07:54:45] arkaros: has joined #ruby
[08:01:12] drale2k_: has joined #ruby
[08:02:07] VladGh: has joined #ruby
[08:02:56] alem0lars: has joined #ruby
[08:03:19] crankharder: has joined #ruby
[08:03:30] shinnya: has joined #ruby
[08:05:28] za1b1tsu: has joined #ruby
[08:11:55] blackmesa: has joined #ruby
[08:12:04] nima_m: has joined #ruby
[08:12:16] za1b1tsu: has joined #ruby
[08:13:12] ellcs: has joined #ruby
[08:13:16] dr3wo: has joined #ruby
[08:15:30] faces: has joined #ruby
[08:16:32] nima_m: has joined #ruby
[08:17:58] desperek: has joined #ruby
[08:19:09] amar_: has joined #ruby
[08:23:04] stairmast0r_: has joined #ruby
[08:23:26] dionysus69: has joined #ruby
[08:34:54] tty: has joined #ruby
[08:36:19] pskosinski: has joined #ruby
[08:37:28] tvw: has joined #ruby
[08:37:36] tty: has joined #ruby
[08:48:54] nowhere_man: has joined #ruby
[08:53:25] nowhereman_: has joined #ruby
[08:55:09] arkaros: has joined #ruby
[08:57:13] amar_: has joined #ruby
[08:58:28] tty: has joined #ruby
[08:58:58] amar_: has joined #ruby
[09:01:26] dhollin3: has joined #ruby
[09:01:51] tty: has joined #ruby
[09:02:24] Emmanuel_Chanel: has joined #ruby
[09:02:40] Beams: has joined #ruby
[09:04:10] tty: has joined #ruby
[09:07:51] blackmesa: has joined #ruby
[09:08:15] nigthw0lf: has joined #ruby
[09:11:19] amar_: has joined #ruby
[09:12:02] drale2k_: has joined #ruby
[09:14:23] Fizzik: has joined #ruby
[09:24:41] jokke1: has joined #ruby
[09:26:30] alex``: has joined #ruby
[09:30:21] arne: has joined #ruby
[09:33:43] blackmesa: has joined #ruby
[09:35:10] nowhere_man: has joined #ruby
[09:49:10] suukim: has joined #ruby
[09:50:01] Fizzik: has joined #ruby
[09:51:49] grr12314: has joined #ruby
[09:53:25] alem0lars: has joined #ruby
[09:53:31] grr12314: hello. how do you guys usually use ruby on ubuntu? there are ruby-somthing-or-other packages in apt-get repos for things that are installed with gem install on other distros... but they are often lower versions.
[09:53:57] grr12314: so is there a ppa or something that lets me use apt-get or should i just ignore apt-get and install everything with gem?
[09:54:32] grr12314: and if i already mixed both, how to check which version is actually used?
[09:54:37] cdunklau: grr12314: i'm still a babe-in-the-woods with ruby, but ISTM sudo gem install is something to be avoided
[09:55:13] elomatreb: The most common way to use Ruby if you want to do development instead of just running some packaged ruby software is to install a local ruby environment
[09:55:36] grr12314: if i dont "sudo" it complains about permissions
[09:55:41] cdunklau: grr12314: https://github.com/airbnb/synapse#installation has an example of how to install a thing without using root
[09:55:44] cdunklau: grr12314: as it should! :)
[09:56:01] elomatreb: You can build a custom ruby and install it to your home directory with a variety of tools, a popular choice is https://github.com/postmodern/ruby-install
[09:56:53] apparition: has joined #ruby
[09:57:06] grr12314: i need this for running "compass", not really for doing ruby development
[09:57:46] grr12314: the ruby-compass package from apt-get repo pulls an old ruby-chunky-png version
[09:57:59] grr12314: which turns out to be buggy
[09:58:03] karapetyan: has joined #ruby
[09:58:05] elomatreb: You can install a one-off gem to your user directory with `gem install --user-install <gemname>`
[09:58:31] elomatreb: If you want to use an executable provided a gem you may also need to adjust your PATH variable
[09:59:11] grr12314: will user-installed chunky_png get used by the apt version of compass tho? or do i need to install the whole compass as --user-install?
[09:59:18] cdunklau: or just symlink it somewhere
[09:59:26] cdunklau: (somewhere inside PATH)
[10:00:58] Karuna: has joined #ruby
[10:01:04] elomatreb: Global gems probably won't pick up the user-local version, but if you're installing locally anyway there's no good reason not to install the entire gem and its dependencies locally
[10:01:38] elomatreb: If there are gems with native extensions you may need to install some build dependencies with apt though
[10:01:51] grr12314: its really confusing. ok i gem install compass --user-install. but now it probably sees the global chunky_png and doesnt pull a local one
[10:02:59] Beams: has joined #ruby
[10:04:11] burgestrand: has joined #ruby
[10:04:16] grr12314: hm. ok installing both compass and chunky_png seems to have worked. as in, at least the original bug i was fighting is gone. now compass throws some new errors at me though
[10:04:21] grr12314: ill keep digging
[10:04:37] elomatreb: OS-packaged gems are often trouble, sadly
[10:06:28] grr12314: "`extname': no implicit conversion of nil into String" is the new error :(
[10:07:31] grr12314: maybe i have t ocompletely remove the apt-get version of compass...
[10:09:05] grr12314: ugh.. nevermind, the original but is there too
[10:10:46] elomatreb: At a certain point the method I mentioned above becomes a sensible option
[10:11:25] elomatreb: ruby-install + https://github.com/postmodern/chruby gets you a really comfortable setup, the only downside is that your ruby is not shared across users
[10:12:22] Bish: did writing ~{a:3}
[10:12:25] Bish: ever make sense in ruby?
[10:12:51] Bish: or rather ~{:a=>3}
[10:13:27] elomatreb: ~ is unary binary (lol) NOT, which I think you can override
[10:13:48] Bish: https://youtu.be/yCjtdfv9Z_0?t=331
[10:13:52] Bish: this slide confused me
[10:13:57] Beams: has joined #ruby
[10:14:07] grr12314: "can't find header files for ruby at /usr/lib/ruby/include/ruby.h" do you know what package i need so i have those header files?
[10:14:25] Bish: grr12314: ruby-dev if you're one some lolbuntu
[10:15:20] Bish: elomatreb: no worries, the library doesn't do it anymore that way
[10:15:24] Bish: i guess he figured it's a stupid idea
[10:15:39] elomatreb: Yeah that's being a little too DSL-y IMO
[10:15:40] Bish: espeicially ~:p looks od and the hash ones
[10:15:49] Bish: it looks like htis by now
[10:16:00] Bish: ds.filter { Sequel.~(:a,:b) }
[10:16:06] Bish: which makes more sense
[10:17:02] arkaros: has joined #ruby
[10:17:34] elomatreb: At that point you might as well spell out the not IMO
[10:19:25] karapetyan: has joined #ruby
[10:22:46] karapetyan: has joined #ruby
[10:24:11] nigthw0lf: has joined #ruby
[10:26:50] Beams: has joined #ruby
[10:29:58] Tempesta: has joined #ruby
[10:30:20] vonfry: has joined #ruby
[10:33:09] donofrio: has joined #ruby
[10:34:05] drale2k_: has joined #ruby
[10:40:25] blackmesa1: has joined #ruby
[10:43:10] Megamos: has joined #ruby
[10:46:30] Fernando-Basso_: has joined #ruby
[10:52:55] ciscam: has joined #ruby
[10:55:31] Asher: has joined #ruby
[10:55:34] modin: has joined #ruby
[10:58:22] Fizzik_: has joined #ruby
[10:58:34] burgestrand: has joined #ruby
[10:59:21] BloopMonster: has joined #ruby
[11:01:41] Fernando-Basso_: has joined #ruby
[11:06:10] aufi: has joined #ruby
[11:06:31] andikr: has joined #ruby
[11:07:22] Bish: does ruby have blocks from day 1?
[11:10:23] jottr: has joined #ruby
[11:12:07] ruby[bot]: has joined #ruby
[11:12:07] ChanServ: +o ruby[bot]
[11:12:25] grr12314: is there some gem command that can "clean" unneeded packages? i see there is gem cleanup but it seems it only removes older versions.
[11:12:49] Bish: what is uneeded? how does it know
[11:13:15] grr12314: like if i 'gem install compass' it pulls a dozen gems, but 'gem uninstall compass' only removes the compass one
[11:13:23] blackmesa1: has joined #ruby
[11:13:37] grr12314: keep a list of "manually installed" gems vs ones that got pulled due to dependency i guess
[11:13:48] Bish: i don't know if that exists
[11:14:40] grr12314: ok. can i uninstall absolutely all that were installed with --user-install then?
[11:14:41] elomatreb: It does not make a distinction between that, but if you want to start fresh you can just delete the gem folder in your home directory
[11:14:57] grr12314: ok nice thanks
[11:14:58] Bish: or, solve that problem by using docker :o *ducks*
[11:15:03] karapetyan: has joined #ruby
[11:15:30] elomatreb: In German we have a saying "shooting sparrows with cannons"
[11:15:52] Bish: ist halt noch kein meister vom himmel gefallen
[11:16:27] Bish: elomatreb: well, docker is always the cannon shooting sparrows, because if coding was done correctly from bottom up, there was no need for docker
[11:16:35] Bish: or any container system that is
[11:17:45] elomatreb: But certainly there is a more reasonable middle ground between "no containers" and "basically everything except the kernel", to install a single gem :)
[11:18:27] Bish: well, ruby could be able to create virtual environments on it's own, that'd be cool
[11:18:46] Bish: but then you still have filesystem, network,, etc which is all different
[11:20:05] Bish: kernel as a docker container™
[11:21:54] arkaros: has joined #ruby
[11:24:48] arkaros: Hello people. What are you guys working on?
[11:25:46] grr12314: ok thanks all, i can say issues have been resolved. i had a globally installed alpha version of compass too that didnt work and confused me for a moment, but after cleaning that up all is well now
[11:26:25] cdunklau: grr12314: this is why sudo gem install is bad yes :)
[11:26:53] chmurifree: has joined #ruby
[11:26:55] cdunklau: sudo <anything besides apt/yum/etc> install is bad that is
[11:27:36] grr12314: yea, but there are a ton of posts on the net that show it as a solution.
[11:27:51] grr12314: i know better now
[11:28:55] apeiros: has joined #ruby
[11:28:56] grr12314: speaking of, is there some tool that adds the locally-installed bin to PATH? i could do it manually but if i have to recommend this solution to others, it'd be good if there was some easier way
[11:30:53] elomatreb: No specific tool per se, but Ruby environment managers like e.g. chruby (linked above somewhere) take care of the necessary variables for you
[11:32:44] amar_: has joined #ruby
[11:33:14] amar_: has joined #ruby
[11:34:14] VladGh: has joined #ruby
[11:34:31] yokel: has joined #ruby
[11:34:39] amar_: has joined #ruby
[11:35:56] ldnunes: has joined #ruby
[11:36:10] amar_: has joined #ruby
[11:39:46] amar_: has joined #ruby
[11:40:32] amar_: has joined #ruby
[11:41:57] amar_: has joined #ruby
[11:45:35] nowhere_man: has joined #ruby
[11:47:44] noobineer: has joined #ruby
[11:51:07] Fizzik_: has joined #ruby
[11:55:22] za1b1tsu: has joined #ruby
[12:00:54] vondruch_: has joined #ruby
[12:01:37] synthroid: has joined #ruby
[12:06:16] AJA4350: has joined #ruby
[12:06:52] Fizzik_: has joined #ruby
[12:06:55] desperek: has joined #ruby
[12:08:05] jokke1: has joined #ruby
[12:09:07] BloopMonster: has joined #ruby
[12:09:21] za1b1tsu: can you use rvm to install multiple versions of rubies at once? from the same command?
[12:13:43] konsolebox: za1b1tsu: check the documentation of the command
[12:16:17] arkaros: has joined #ruby
[12:25:41] yohji: has joined #ruby
[12:27:43] conta: has joined #ruby
[12:30:01] maiz: has joined #ruby
[12:31:15] Fizzik_: has joined #ruby
[12:32:28] anisha_: has joined #ruby
[12:36:54] roamingdog: has joined #ruby
[12:43:00] hays: has joined #ruby
[12:50:11] schneider: has joined #ruby
[12:50:56] karapetyan: has joined #ruby
[12:54:49] mrv: has joined #ruby
[12:54:58] quobo: has joined #ruby
[12:56:02] mrv: can we ask about rails here?
[13:00:23] arkaros: Isnät there a rails specific irc?
[13:00:38] Asher: has joined #ruby
[13:01:39] mrv: I'll try there, I guess
[13:03:37] bmurt: has joined #ruby
[13:04:53] arkaros: I think you will get better answers there too
[13:05:55] cschneid: has joined #ruby
[13:09:19] cadillac_: has joined #ruby
[13:11:31] grr12314: if i use `gem install something --user-install --bindir somewritabledir` it installs a script that later looks for the gem bin in the global gem dir and not the user gem dir. wouldn't you say this seems like a bug?
[13:15:16] grr12314: hm wait the plot is thicker than that
[13:16:12] arkaros: The plot thickens
[13:17:07] grr12314: after i ran hash -r it fixed itself
[13:17:30] grr12314: i give up, i can probably never understand how ruby works
[13:17:36] grr12314: but, at least it works
[13:22:37] grr12314: it seems ubuntu has ~/bin and ~/.local/bin in my PATH already (3 times in fact, wtf) even tho those dirs didnt even exist
[13:23:02] grr12314: so if i use one of them as --bindir it makes installing gems with bins easy
[13:25:36] konsolebox: grr12314: that's more about how the shell works. command paths are cached, and the shell skips looking for executables when the command path is already known for a specific command. new executable files placed in paths that appear earlier in $PATH are skipped until the cache is cleared with `hash`, or until a new instance of the shell is instantiated.
[13:29:11] vondruch: has joined #ruby
[13:29:21] fluxAeon_: has joined #ruby
[13:30:37] StarSeed0000: has joined #ruby
[13:30:59] jottr: has joined #ruby
[13:44:47] drale2k_: has joined #ruby
[13:46:43] jrafanie: has joined #ruby
[13:46:46] OneNeptune: has joined #ruby
[13:47:19] karapetyan: has joined #ruby
[13:47:46] myared: has joined #ruby
[13:52:38] white_lilies: has joined #ruby
[13:57:33] synthroid: has joined #ruby
[13:57:59] watkyn: has joined #ruby
[13:58:05] houhoulis: has joined #ruby
[13:59:23] vondruch_: has joined #ruby
[13:59:42] psychicist__: has joined #ruby
[14:00:35] Asher: has joined #ruby
[14:05:28] knight33: has joined #ruby
[14:07:12] roamingdog: has joined #ruby
[14:09:02] apeiros: has joined #ruby
[14:12:04] smithascari: has joined #ruby
[14:13:39] duckpuppy: has joined #ruby
[14:16:11] jottr: has joined #ruby
[14:20:11] dr3wo: has joined #ruby
[14:20:11] lubekpl: has joined #ruby
[14:23:51] codymj: has joined #ruby
[14:26:34] duckpuppy: has joined #ruby
[14:27:26] nowhere_man: has joined #ruby
[14:31:23] lubekpl: has joined #ruby
[14:33:32] TomyWork: has joined #ruby
[14:37:16] Megamos: has joined #ruby
[14:39:31] BloopMonster: has joined #ruby
[14:45:00] jottr: has joined #ruby
[14:49:51] claudiuinberlin: has joined #ruby
[14:53:34] Inline: has joined #ruby
[14:55:53] arkaros: has joined #ruby
[14:57:26] kris: has joined #ruby
[15:05:06] cschneid: has joined #ruby
[15:05:22] cschneid: has joined #ruby
[15:05:22] vondruch: has joined #ruby
[15:09:55] guille-moe: has joined #ruby
[15:12:36] Kyle__: buffer move 54
[15:12:48] agent_white: has joined #ruby
[15:12:50] agent_white: has left #ruby: ()
[15:13:08] roamingdog: has joined #ruby
[15:13:46] agent_white: has joined #ruby
[15:15:54] d^sh: has joined #ruby
[15:16:31] andikr: has joined #ruby
[15:16:37] synthroid: has joined #ruby
[15:20:08] Rapture: has joined #ruby
[15:21:38] Zaab1t: has joined #ruby
[15:22:10] lxsameer: has joined #ruby
[15:26:50] duckpuppy: has joined #ruby
[15:31:39] kmossco: has joined #ruby
[15:31:46] maiz: has joined #ruby
[15:32:17] r29v: has joined #ruby
[15:32:21] lxsameer: has joined #ruby
[15:33:39] maiz: has joined #ruby
[15:33:44] devinmcgloin: has joined #ruby
[15:34:29] jottr: has joined #ruby
[15:35:57] Venomen: has joined #ruby
[15:36:38] noobineer: has joined #ruby
[15:38:30] wontruefree: has joined #ruby
[15:39:34] cagomez: has joined #ruby
[15:39:55] roamingdog: has joined #ruby
[15:43:24] lxsameer: has joined #ruby
[15:43:45] pastorinni: has joined #ruby
[15:46:36] orbyt_: has joined #ruby
[15:47:08] RougeR: has joined #ruby
[15:47:41] mupt: has joined #ruby
[15:49:54] jabowa: has joined #ruby
[15:49:54] arkaros: has joined #ruby
[15:51:04] amar_: has joined #ruby
[15:51:29] jcarl43: has joined #ruby
[15:51:32] mcritchlow_: has joined #ruby
[15:54:42] amarks: has joined #ruby
[15:57:11] lxsameer: has joined #ruby
[15:58:08] nickbender: has joined #ruby
[15:58:13] apeiros: has joined #ruby
[16:01:59] desperek: has joined #ruby
[16:03:04] lxsameer: has joined #ruby
[16:05:06] desperek: has joined #ruby
[16:06:57] clemens3_: has joined #ruby
[16:08:20] Bira: has joined #ruby
[16:09:37] xenops: has joined #ruby
[16:10:57] jottr: has joined #ruby
[16:14:02] psychicist__: has joined #ruby
[16:14:15] lxsameer: has joined #ruby
[16:15:49] amar_: has joined #ruby
[16:16:23] vipaca: has joined #ruby
[16:17:09] arkaros: has joined #ruby
[16:22:19] r29v: has joined #ruby
[16:23:51] darkhanb: has joined #ruby
[16:24:18] wontruefree: has joined #ruby
[16:25:54] Fizzik_: has joined #ruby
[16:28:30] plujon: has joined #ruby
[16:30:41] akaiiro: has joined #ruby
[16:33:27] claudiuinberlin: has joined #ruby
[16:34:30] toastercup: has joined #ruby
[16:38:17] AJA4350: has joined #ruby
[16:42:31] [Butch]: has joined #ruby
[16:43:59] karapety_: has joined #ruby
[16:44:44] kris: has joined #ruby
[16:45:40] guille-moe: has joined #ruby
[16:46:05] jottr: has joined #ruby
[16:49:00] Asher: has joined #ruby
[16:51:20] amar_: has joined #ruby
[16:55:23] Nicmavr: has joined #ruby
[16:56:52] plujon: Has the status of gem trust changed since 2013?
[16:57:19] plujon: https://guides.rubygems.org/security/ references a "conversation" about gem trust that seems to have fizzled out in 2013.
[16:59:44] nb_bez__________: has joined #ruby
[17:01:30] havenwood: plujon: There was work done adding TUF to RubyGems, with the help of the TUF folk: https://theupdateframework.github.io/
[17:03:04] havenwood: plujon: You're right it wasn't completed.
[17:03:07] havenwood: https://groups.google.com/forum/#!forum/theupdateframework
[17:03:07] tolerablyjake: has joined #ruby
[17:04:49] anjen: has joined #ruby
[17:06:39] havenwood: https://medium.com/square-corner-blog/securing-rubygems-with-tuf-part-1-d374fdd05d85
[17:07:40] havenwood: I blame Burning Man ;-P https://github.com/rubygems/rubygems.org/pull/626
[17:13:00] claudiuinberlin: has joined #ruby
[17:13:11] amarks: has joined #ruby
[17:13:20] smithascari: has joined #ruby
[17:15:30] BloopMonster: has joined #ruby
[17:15:42] carnegie: has joined #ruby
[17:19:32] erratic: has joined #ruby
[17:19:36] vipaca: has joined #ruby
[17:23:50] drale2k_: has joined #ruby
[17:26:25] amar_: has joined #ruby
[17:32:32] micutzu: has joined #ruby
[17:37:50] zachk: has joined #ruby
[17:37:50] zachk: has joined #ruby
[17:38:09] plujon: I wonder how rubygems compares to apt, npm, pip, cabal, pear, and others.
[17:38:35] Zarthus: compares how?
[17:38:54] cthulchu_: I do prefer npm
[17:38:59] Zarthus: For one, apt can download just about anything, whereas gems only really work as ruby gems.
[17:39:02] plujon: In terms of vulnerability to a malicious actor.
[17:39:16] cthulchu_: that's not a random thing to compare by :)
[17:39:39] Zarthus: eh, ruby code can be malicious anyway. you should always check your dependencies :P
[17:39:59] cthulchu_: and it's not like an installed gem gets required
[17:40:40] cthulchu_: unles you have wildcard requires
[17:40:52] Zarthus: as far as language package managers go, I quite like composer (PHP)
[17:41:01] Zarthus: just as a general pleasantry to work with
[17:41:50] cthulchu_: I decided to switch from php before composer
[17:42:04] cthulchu_: rewrote all my php scripts in a proper lang
[17:42:18] kmossco: has joined #ruby
[17:42:49] eckhardt: has joined #ruby
[17:45:50] drale2k_: has joined #ruby
[17:46:26] carnegie: has joined #ruby
[17:47:54] cthulchu_: folks, how do I explicitly set undefined?
[17:48:50] dr3wo: has joined #ruby
[17:50:30] carnegie: has joined #ruby
[17:54:11] kris: has joined #ruby
[17:54:48] cthulchu_: oh, I don't need to cuz I can do weird stuff
[17:55:30] cthulchu_: >> def test(a,b="undefined") return b; end; test(1,2)
[17:55:31] ruby[bot]: cthulchu_: # => 2 (https://eval.in/1029439)
[17:55:41] cthulchu_: type mutation!
[17:55:46] cthulchu_: hell this feels good
[17:56:08] havenwood: cthulchu_: b = Object.new
[17:56:37] cthulchu_: >>b = Object.new; defined? b;
[17:56:39] ruby[bot]: cthulchu_: # => "local-variable" (https://eval.in/1029440)
[17:56:44] Venomen: has joined #ruby
[17:56:54] cthulchu_: >>b = Object.new; b.class;
[17:56:55] ruby[bot]: cthulchu_: # => Object (https://eval.in/1029441)
[17:57:04] cthulchu_: it's defined
[17:57:15] havenwood: cthulchu_: It's not == to anything.
[17:57:22] cthulchu_: I don't need ==
[17:57:29] havenwood: cthulchu_: Usually `nil` is used to represent undefined.
[17:57:45] havenwood: cthulchu_: When `nil` doesn't suffice, `Object.new` is a good standin.
[17:58:16] cthulchu_: yes, I'll use nil
[17:58:26] carnegie: has joined #ruby
[18:01:28] carnegie: has joined #ruby
[18:01:37] Mike11: has joined #ruby
[18:05:25] sameerynho: has joined #ruby
[18:05:47] akaiiro: has joined #ruby
[18:06:20] c0ncealed2: has joined #ruby
[18:08:23] nicoulaj: has joined #ruby
[18:12:43] guille-moe: has joined #ruby
[18:15:35] duckpuppy: has joined #ruby
[18:16:37] karapetyan: has joined #ruby
[18:18:14] arkaros: has joined #ruby
[18:18:17] duckpuppy: has joined #ruby
[18:18:50] nicoulaj: has joined #ruby
[18:18:50] bmurt: has joined #ruby
[18:19:11] discopatrick: has joined #ruby
[18:19:31] duckpupp1: has joined #ruby
[18:20:28] beefjoe: has joined #ruby
[18:20:40] duckpupp1: has joined #ruby
[18:21:16] beefjoe: has joined #ruby
[18:21:53] beefjoe: has joined #ruby
[18:22:06] duckpupp1: has joined #ruby
[18:22:43] beefjoe: has joined #ruby
[18:23:56] carnegie: has joined #ruby
[18:25:09] duckpuppy: has joined #ruby
[18:27:58] ebye: has joined #ruby
[18:28:18] nowhere_man: has joined #ruby
[18:29:05] cthulchu_: okay, spaces after commas are good
[18:29:08] cthulchu_: but not after :
[18:29:30] ebye: could someone help out with the code for TryRub lesson "All together now" on the website? it doesn't seem to work?
[18:32:30] roamingdog: has joined #ruby
[18:34:20] duckpuppy: has joined #ruby
[18:35:11] cthulchu_: ebye, debug
[18:35:53] dinfuehr: has joined #ruby
[18:38:27] alem0lars: has joined #ruby
[18:38:59] carnegie: has joined #ruby
[18:44:25] duckpuppy: has joined #ruby
[18:45:33] duckpuppy: has joined #ruby
[18:45:44] tdy: has joined #ruby
[18:46:57] jottr: has joined #ruby
[18:55:15] Bira: has joined #ruby
[18:55:17] cthulchu_: hey folks! do we have a magic function thaaaat...
[18:55:34] cthulchu_: I don't know how to express it
[18:55:55] cthulchu_: that returns true when one of the </> arguments is nil :)
[18:57:14] eam: the what arguments?
[18:58:00] ebye: cthulchu_: aye, it did work. i think i suffered from some kind of temporary numbers dyslexia
[18:59:00] cthulchu_: I am working on a function that checks if a number is between two other numbers
[18:59:21] cthulchu_: if one or both of the numbers are nil (which is the default), it will not do the check
[18:59:23] eam: you mean like 55 6 77 # six is between fifty five and seventy seven?
[19:00:02] cthulchu_: so instead of having four ugly blocks for each combination I want to have one
[19:00:20] cthulchu_: cuz first I have to describe what to do if both are nil (return true)
[19:00:46] cthulchu_: then what if both are not nil - do the chack if it's >= min and <= max
[19:01:00] cthulchu_: I feel there's a more elegant way to solve it
[19:01:23] cthulchu_: maybe nil is not a good thing to use by default
[19:01:40] cthulchu_: is there a minus infinity and a plus infinity numbers? :)
[19:02:45] cthulchu_: oh we do have an infinity
[19:02:51] cthulchu_: I'll use it to solve the thing
[19:04:04] cthulchu_: Float::INFINITY
[19:08:18] tolerablyjake: has joined #ruby
[19:11:16] dionysus69: has joined #ruby
[19:15:49] duckpuppy: has joined #ruby
[19:18:16] duckpuppy: has joined #ruby
[19:18:20] jinie: has joined #ruby
[19:19:16] ams__: has joined #ruby
[19:19:28] lubekpl: has joined #ruby
[19:19:45] jinie: has joined #ruby
[19:21:25] jottr: has joined #ruby
[19:21:56] roamingdog: has joined #ruby
[19:23:25] lubekpl: has joined #ruby
[19:23:31] roamingdog: has joined #ruby
[19:24:18] roamingdog: has joined #ruby
[19:25:08] roamingdog: has joined #ruby
[19:25:53] roamingdog: has joined #ruby
[19:27:26] lunarkitty7: has joined #ruby
[19:33:53] dviola: has joined #ruby
[19:37:51] eb0t: has joined #ruby
[19:39:55] herbmillerjr: has joined #ruby
[19:41:10] carnegie: has joined #ruby
[19:44:16] cagomez: has joined #ruby
[19:44:50] Venomen: has joined #ruby
[19:46:08] tty: has joined #ruby
[19:48:20] madh: has joined #ruby
[19:51:13] samosaphile: has joined #ruby
[19:55:54] bmurt: has joined #ruby
[19:56:45] dionysus69: has joined #ruby
[19:59:29] jottr: has joined #ruby
[20:00:21] cagomez: has joined #ruby
[20:02:57] cagomez: has joined #ruby
[20:06:10] mcritchlow: has joined #ruby
[20:08:00] Eiam: cthulchu_: return if argsv.compact.length = 0 ?
[20:10:32] BloopMonster: has joined #ruby
[20:10:46] balr0g: has joined #ruby
[20:11:09] balr0g: hello im trying to excute the following command on Windows with error showed, is there any other way to pass command line arguments on windows? thanks. gem install iconv -v '1.0.5' --source 'http://rubygems.org/' --with-iconv-dir=C:\GnuWin32 ||| ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --with-iconv-dir=C:\GnuWin32
[20:13:18] samosaphile: anyone have the solutions to these: https://pine.fm/LearnToProgram/chap_06.html not sure if am doing it right. so far done: https://repl.it/repls/GiantLimpingRoute https://repl.it/repls/AngryGoldenrodWaterfall kinda stuck on how to do third one
[20:13:45] konsolebox: balr0g: my `gem install` command doesn't have that option either
[20:17:34] samosaphile: well, i just dunno how to make something which asks for same input 3 times...and when condition met exists..
[20:18:00] workmad3: has joined #ruby
[20:18:20] balr0g: konsolebox, i got that from this: https://gist.github.com/da8y01/73a51d33dc9b721a0c47883bdddb73f6
[20:18:30] balr0g: konsolebox, any clue on how to install that gem?
[20:19:31] carnegie: has joined #ruby
[20:20:22] samosaphile: also, does the term 'command' have special meaning in ruby? cuz i've found if i replace word with another word, it doesn't work .. or starts to show errors / warnings(?)
[20:22:34] jinie: has joined #ruby
[20:22:51] konsolebox: balr0g: i haven't really tried installing gems in windows yet; especially through gnuwin32
[20:23:39] konsolebox: samosaphile: i don't think it has any special meaning
[20:23:41] balr0g: konsolebox, "especially"? in which way have you installed gems in windows?
[20:24:34] TvL2386_: has joined #ruby
[20:24:39] samosaphile: ok, that is really wierd then...
[20:24:54] jottr: has joined #ruby
[20:26:08] konsolebox: balr0g: i might have tried devkit
[20:26:15] samosaphile: had to change all my variable names from 'Talk' to 'command' to make warnings go away on repl.it... :S wtf
[20:26:48] balr0g: konsolebox, is there DevKit for Windows with 2.3.0? i just see 2.3.3 ...
[20:27:03] konsolebox: balr0g: https://github.com/oneclick/rubyinstaller2
[20:27:31] konsolebox: oh wait, you want older versions? i don't know...
[20:27:53] jrm: has joined #ruby
[20:29:25] balr0g: konsolebox, but thanks
[20:29:34] konsolebox: sameerynho: names that start with [A-Z] is mostly used for constants
[20:29:40] balr0g: konsolebox, also, what ruby version manager can i use on windows?
[20:30:12] Eiam: install a VM and just do the work in there =0
[20:30:35] balr0g: Eiam, good option
[20:32:14] elomatreb: The Linux subsystem thing is a good option if you're in windows 10
[20:34:23] pr0ton: has joined #ruby
[20:35:07] pr0ton: has left #ruby: ()
[20:38:04] balr0g: elomatreb, i've already tried the bash.exe good thing, but i gave up because the path were getting complicted
[20:38:10] Lytol: has joined #ruby
[20:39:26] Fizzik_: has joined #ruby
[20:40:23] carnegie: has joined #ruby
[20:41:40] karapety_: has joined #ruby
[20:41:49] noobineer: has joined #ruby
[20:45:35] jenrzzz: has joined #ruby
[20:47:37] Fizzik: has joined #ruby
[20:47:57] t0xik: has joined #ruby
[20:48:11] karapetyan: has joined #ruby
[20:48:30] nowhere_man: has joined #ruby
[20:50:36] karapetyan: has joined #ruby
[20:53:01] karapetyan: has joined #ruby
[20:54:01] karapetyan: has joined #ruby
[20:55:01] karapety_: has joined #ruby
[20:56:06] karapetyan: has joined #ruby
[20:57:11] karapety_: has joined #ruby
[20:58:09] karapetyan: has joined #ruby
[20:59:14] karapety_: has joined #ruby
[21:00:14] karapetyan: has joined #ruby
[21:01:15] karapetyan: has joined #ruby
[21:02:15] karapety_: has joined #ruby
[21:02:35] pastorinni: has joined #ruby
[21:04:54] p4p0l0: has joined #ruby
[21:05:59] jottr: has joined #ruby
[21:08:45] jamesaxl: has joined #ruby
[21:09:40] roamingdog: has joined #ruby
[21:18:34] p4p0l0: has joined #ruby
[21:20:40] amar: has joined #ruby
[21:22:42] Raboo: has joined #ruby
[21:22:58] JamJam_kid: has joined #ruby
[21:26:11] herbmillerjr: has joined #ruby
[21:26:35] jinie: has joined #ruby
[21:27:31] ramfjord: has joined #ruby
[21:27:35] mupt: has joined #ruby
[21:30:26] carnegie: has joined #ruby
[21:30:47] Fizzik: has joined #ruby
[21:30:54] FernandoBasso: has joined #ruby
[21:40:43] jenrzzz: has joined #ruby
[21:40:43] jenrzzz: has joined #ruby
[21:46:09] donofrio: has joined #ruby
[21:47:56] tvw: has joined #ruby
[21:52:57] JamJam_kid: has joined #ruby
[21:58:41] donofrio_: has joined #ruby
[22:00:26] nowhere_man: has joined #ruby
[22:03:02] pr0ton: has joined #ruby
[22:04:29] Fizzik: has joined #ruby
[22:09:25] phenom: has joined #ruby
[22:13:30] vondruch: has joined #ruby
[22:14:52] roamingdog: has joined #ruby
[22:15:37] roamingdog: has joined #ruby
[22:18:08] workmad3: has joined #ruby
[22:18:14] Fizzik: has joined #ruby
[22:20:03] RougeR: has joined #ruby
[22:21:11] eckhardt: has joined #ruby
[22:23:33] memo1: has joined #ruby
[22:27:36] p4p0l0: has joined #ruby
[22:29:36] cschneid_: has joined #ruby
[22:30:21] clemens3_: has joined #ruby
[22:30:34] jhack: has joined #ruby
[22:37:10] guille-moe: has joined #ruby
[22:41:46] havenwood: Anyone want to help fill in any of the purple squares on the Ruby HTTP clients spreadsheet?: https://docs.google.com/spreadsheets/d/1vPlk6nMIFa3sI5ISl7zZ5r6lDNpVQX6Jxi3ksXCyVbs/edit?usp=sharing
[22:42:00] havenwood: Please tell me if you see anything that is dated!
[22:43:03] memo1: hi friends. Im using rvm to ruby and gemset control. Im trying to control a ruby script suing unit file (systemd), but it fails, cant find require eventmachine. Is a problem with path?
[22:47:01] havenwood: memo1: Are you using RVM generated wrappers?
[22:47:55] memo1: havenwood: no
[22:47:58] havenwood: memo1: These RVM docs are from days long gone by, but they'd apply to SystemD as well: https://rvm.io/integration/init-d
[22:48:32] havenwood: There should be an RVM docs section explaining wrappers. There isn't a dedicated section on it and I see people get confused all the time.
[22:48:50] havenwood: I don't want to write it. Not it!
[22:48:57] guille-moe: has joined #ruby
[22:49:55] nightw0lf: has joined #ruby
[22:51:15] memo1: havenwood: what is the purpose of wrappers?, expose all the package to the path?
[22:52:09] quobo: has joined #ruby
[22:52:19] havenwood: memo1: If you look at a generated wrapper, you can see it exports env vars.
[22:52:23] unreal: has joined #ruby
[22:52:29] havenwood: memo1: Here's a bit more written about wrappers: https://rvm.io/deployment/god
[22:52:36] havenwood: memo1: https://rvm.io/deployment/cron
[22:52:50] havenwood: memo1: https://github.com/rvm/rvm/blob/master/help/wrapper.md
[22:53:32] memo1: havenwood: im gonna try, thank you. 1 day trying to run the script using systemd :/
[22:53:46] memo1: havenwood: always fails
[22:54:25] cthulchu_: a day is quite an overkill
[22:55:05] memo1: cthulchu_: just a beginner with ruby
[22:55:12] nightw0lf: has joined #ruby
[22:57:58] jhack: has joined #ruby
[22:58:16] carnegie: has joined #ruby
[22:58:39] nightw0lf: has joined #ruby
[22:58:43] cthulchu_: helps a lot with debugging
[23:00:12] havenwood: cthulchu_: How would byebug help debug RVM wrappers with SystemD? :-P
[23:00:44] cthulchu_: it probably wont. it helps with ruby though :)
[23:01:00] cthulchu_: what debuger do you use havenwood?
[23:01:15] havenwood: cthulchu_: p
[23:01:57] havenwood: cthulchu_: https://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html
[23:02:22] BloopMonster: has joined #ruby
[23:02:32] ramfjord_: has joined #ruby
[23:02:40] cschneid: has joined #ruby
[23:06:51] jottr: has joined #ruby
[23:06:53] crankharder: has joined #ruby
[23:08:39] ellcs: has joined #ruby
[23:10:49] lucious: has joined #ruby
[23:11:00] darix: cthulchu_: binding.pry
[23:12:17] havenwood: cthulchu_: but yeah, pry-byebug if i want to step - which is actually not all that often
[23:12:42] havenwood: it can be handy from time to time
[23:16:11] shinnya: has joined #ruby
[23:16:30] znz_jp: has joined #ruby
[23:18:39] eckhardt: has joined #ruby
[23:20:27] cschneid: has joined #ruby
[23:21:00] darix: even without pry-byebug
[23:21:02] Venomen: has joined #ruby
[23:22:45] nightw0lf: has joined #ruby
[23:23:49] memo1: havenwood: i have a question.
[23:24:30] memo1: havenwood: rvm alias create my_app ruby-2.0.0-p247@my_app, this is the help you sent me. my_app is the script name=, and ruby2..@my_app is the gemset?
[23:28:42] mupt: has joined #ruby
[23:29:27] carnegie: has joined #ruby
[23:31:35] havenwood: memo1: yeah, after the @ is the gemset
[23:33:32] jenrzzz: has joined #ruby
[23:33:32] jenrzzz: has joined #ruby
[23:34:04] subroot: has joined #ruby
[23:34:48] lubekpl: has joined #ruby
[23:36:20] eckhardt: has joined #ruby
[23:37:13] dmgk: has left #ruby: ()
[23:38:23] za1b1tsu: has joined #ruby
[23:39:16] memo1: havenwood: it fails. Can you help me. Look, my script is name gps_tracker.rb. I create a ruby2.3.2@gps_tracker gemset. My script is located at /home/ubuntu/gps_tracker.rb.
[23:39:31] jottr: has joined #ruby
[23:39:40] Fizzik_: has joined #ruby
[23:40:23] memo1: havenwood: i use the rvm alias gpstracker ruby2.3.1@gps_tracker. It creates the wrappers on .rvm/wrappers.
[23:41:41] memo1: havenwood: on the unifile, i set ExecStart=/home/.rvm/wrapper/gpstracker/gps_tracker.rb. But it fails
[23:49:27] havenwood: memo1: is that an executable file? i don't have time to help you debug at the moment, but someone else might. what's the error? what are the systemd logs showing?
[23:49:46] carnegie: has joined #ruby
[23:50:02] memo1: havenwood: is a executable file
[23:50:25] havenwood: memo1: so it has a shebang, and executable permissions?
[23:50:48] havenwood: memo1: Does it run if you try it without SystemD?
[23:52:00] havenwood: memo1: You've said it "fails" but we need more to go off of. Try without SystemD, make sure the Ruby works. Try SystemD with a non-Ruby script, make sure that works. La méthode scientifique!
[23:53:30] white_lilies: has joined #ruby
[23:54:15] amar: has joined #ruby
[23:55:40] caleBOT: has joined #ruby
[23:55:42] memo1: havenwood: sure, it has sheband, it runs alone ./gps_server.rb. But whre trying unit file, it can find the require packages i use.
[23:55:43] caleBOT_: has joined #ruby
[23:56:28] memo1: havenwood: it works!
[23:57:46] memo1: havenwood: wrappers "wrappes" ruby enviroment. so in the unir file i have to set wrapper.ruby /path/to/script
[23:57:52] duckpuppy: has joined #ruby