« Back to channel list

#ruby - 09 July 2017

« Back 1 day Forward 1 day »
[00:03:25] Yzguy: has joined #ruby
[00:07:50] haylon: has joined #ruby
[00:14:42] patarr: has joined #ruby
[00:18:19] bkxd: has joined #ruby
[00:18:22] bkxd_: has joined #ruby
[00:23:23] chouhoulis: has joined #ruby
[00:28:30] planigan: has joined #ruby
[00:31:52] dasher00: has joined #ruby
[00:34:29] A124: has joined #ruby
[00:34:38] A124: has joined #ruby
[00:36:37] rhyselsmore: has joined #ruby
[00:38:47] Moosashi: has joined #ruby
[00:42:11] _whitelogger: has joined #ruby
[00:48:51] cschneid_: has joined #ruby
[00:50:36] Moosashi: has joined #ruby
[00:51:21] Miron: has joined #ruby
[00:55:34] lacuna: has joined #ruby
[01:01:52] ketan: has joined #ruby
[01:19:25] Ishido: has joined #ruby
[01:23:39] weathermaker: has joined #ruby
[01:33:18] djbkd: has joined #ruby
[01:34:00] blackwind_123: has joined #ruby
[01:34:08] arescorpio: has joined #ruby
[01:41:43] gizmore: has joined #ruby
[01:48:33] nofxx: has joined #ruby
[01:50:12] bronson: has joined #ruby
[01:55:42] bkxd: has joined #ruby
[01:55:44] bkxd_: has joined #ruby
[01:56:02] duderono_: has joined #ruby
[02:00:27] __Yiota: has joined #ruby
[02:00:37] d^sh: has joined #ruby
[02:01:05] bkxd: has joined #ruby
[02:01:54] CSMan: has joined #ruby
[02:01:58] CSMan: hello folks
[02:02:51] CSMan: is there a way to build and install a gem with modified sources?
[02:03:28] CSMan: I have some third party sources I need to tweak before they're built
[02:03:39] CSMan: but when I run gem install the sources get fetched again
[02:04:25] nofxx: has joined #ruby
[02:05:58] milardovich: has joined #ruby
[02:12:15] Jameser: has joined #ruby
[02:14:02] gix: has joined #ruby
[02:14:48] milardovich: has joined #ruby
[02:16:03] samlisl_: has joined #ruby
[02:18:13] elomatreb: CSMan: If you use bundler you can tell it to use a gem from a local path: https://bundler.io/v1.5/man/gemfile.5.html#PATH-path-
[02:18:40] milardovich: has joined #ruby
[02:20:05] CSMan: let me try that
[02:20:45] BTRE: has joined #ruby
[02:24:57] gix: has joined #ruby
[02:27:22] milardovich: has joined #ruby
[02:31:06] relyks: has joined #ruby
[02:31:32] relyks: is there a way to sort an array when some of the values are nil?
[02:32:15] PaulCapestany: has joined #ruby
[02:33:04] relyks: nevermind, figured it out :)
[02:33:07] gix: has joined #ruby
[02:36:54] charliesome: has joined #ruby
[02:38:17] nofxx: has joined #ruby
[02:39:41] Dimik: has joined #ruby
[02:40:42] Jameser: has joined #ruby
[02:41:18] gix: has joined #ruby
[02:46:24] Jameser: has joined #ruby
[02:47:04] alamar: has joined #ruby
[02:47:41] impermanence: has joined #ruby
[02:50:34] bronson: has joined #ruby
[02:53:03] solocshaw: has joined #ruby
[02:54:32] Moosashi: has joined #ruby
[02:55:22] duderonomy: has joined #ruby
[03:00:26] Jameser: has joined #ruby
[03:02:44] ketan: has joined #ruby
[03:14:16] boto: has joined #ruby
[03:15:43] benlieb: has joined #ruby
[03:18:43] gix: has joined #ruby
[03:21:53] davibusanello: has joined #ruby
[03:22:41] ohlolz: has joined #ruby
[03:23:17] ohlolz: has left #ruby: ()
[03:25:44] duderonomy: has joined #ruby
[03:25:51] weathermaker: has joined #ruby
[03:31:44] HoierM: has joined #ruby
[03:34:32] Moosashi: has joined #ruby
[03:40:45] empty_cup: has joined #ruby
[03:43:12] samlisl_: has joined #ruby
[03:48:01] charliesome: has joined #ruby
[03:51:16] bronson: has joined #ruby
[03:56:31] ur5us: has joined #ruby
[04:05:21] shinnya: has joined #ruby
[04:11:07] ascarter_: has joined #ruby
[04:14:58] solocshaw: has joined #ruby
[04:17:07] benlieb: has joined #ruby
[04:17:52] benlieb: has joined #ruby
[04:24:10] einstein9: has joined #ruby
[04:27:01] [ohjn]: has joined #ruby
[04:27:32] lacuna: has joined #ruby
[04:32:45] impermanence: has joined #ruby
[04:43:48] bkxd: has joined #ruby
[04:43:50] bkxd_: has joined #ruby
[04:45:04] Nitza: has joined #ruby
[04:49:10] bkxd: has joined #ruby
[04:49:12] bkxd_: has joined #ruby
[04:52:57] bronson: has joined #ruby
[04:59:37] impermanence: what is the proper extension for a rake file?
[04:59:47] impermanence: actually what is the proper full name for a rake file?
[04:59:51] impermanence: rakefile.rake?
[05:03:36] ketan: has joined #ruby
[05:06:16] Jameser: has joined #ruby
[05:08:21] ineb: its usually 'Rakefile' with no extension
[05:10:11] [ohjn]: has left #ruby: ("gotta go")
[05:20:53] rhyselsmore: has joined #ruby
[05:25:43] patarr: has joined #ruby
[05:26:23] podlech: has joined #ruby
[05:27:41] impermanence: ineb: sorry for the delayed response. Anyway, that's interesting and I did not know that. I read that they should always be named rakefile.rb, lol
[05:39:34] hutch34: has joined #ruby
[05:40:03] tastygradient: has joined #ruby
[05:53:45] bronson: has joined #ruby
[06:09:01] djbkd: has joined #ruby
[06:12:33] ascarter_: has joined #ruby
[06:15:33] shiranuidong: has joined #ruby
[06:18:49] dissident: has joined #ruby
[06:24:20] marr: has joined #ruby
[06:26:07] impermanence: has joined #ruby
[06:29:22] impermanence: has joined #ruby
[06:32:46] shiranuidong: has joined #ruby
[06:36:15] impermanence: has joined #ruby
[06:45:02] nobitanobi: has joined #ruby
[06:45:36] Nitza: has joined #ruby
[06:47:18] enterprisey: has joined #ruby
[06:52:05] bkxd: has joined #ruby
[06:54:34] bronson: has joined #ruby
[06:58:57] vuoto: has joined #ruby
[07:02:54] faraco: has joined #ruby
[07:04:28] ketan: has joined #ruby
[07:09:53] Tau: has joined #ruby
[07:10:18] Tau: has left #ruby: ()
[07:10:46] nofxxx: has joined #ruby
[07:18:41] zautomata: has joined #ruby
[07:20:08] dcunit3d: has joined #ruby
[07:26:36] patarr: has joined #ruby
[07:32:31] shiranuidong: has joined #ruby
[07:35:09] shiranuidong: has joined #ruby
[07:36:07] bkxd: has joined #ruby
[07:37:02] shiranuidong: has joined #ruby
[07:39:08] bkxd_: has joined #ruby
[07:48:04] antgel: has joined #ruby
[07:50:25] bkxd: has joined #ruby
[07:55:43] bronson: has joined #ruby
[07:58:02] Ishido: has joined #ruby
[07:59:53] Antiarc: has joined #ruby
[08:00:34] S1GM4: has joined #ruby
[08:01:21] _main_: has joined #ruby
[08:02:27] _main_: has joined #ruby
[08:02:56] shiranuidong: has joined #ruby
[08:04:29] romain_t: has joined #ruby
[08:08:28] guardianxx: has joined #ruby
[08:14:56] Polysics: has joined #ruby
[08:20:20] shiranuidong: has joined #ruby
[08:20:31] ur5us: has joined #ruby
[08:21:51] rohitpaulk: has joined #ruby
[08:32:46] FastJack: has joined #ruby
[08:43:15] uZiel: has joined #ruby
[08:45:25] mahlon: has joined #ruby
[08:47:21] Mia: has joined #ruby
[08:48:26] ged: has joined #ruby
[08:48:41] rohitpaulk: has joined #ruby
[08:51:41] blackwind_123: has joined #ruby
[08:51:55] duderonomy: has joined #ruby
[08:53:50] ged: has joined #ruby
[08:54:50] mahlon: has joined #ruby
[08:56:12] bronson: has joined #ruby
[09:05:19] ketan: has joined #ruby
[09:10:40] lxsameer: has joined #ruby
[09:12:09] rohitpaulk: has joined #ruby
[09:12:25] kculpis: has joined #ruby
[09:12:39] psychicist__: has joined #ruby
[09:13:25] nertzy: has joined #ruby
[09:15:08] ascarter: has joined #ruby
[09:16:40] andrzejku: has joined #ruby
[09:27:10] nofxxxx: has joined #ruby
[09:27:11] _whitelogger: has joined #ruby
[09:27:30] patarr: has joined #ruby
[09:29:17] bkxd: has joined #ruby
[09:29:19] bkxd_: has joined #ruby
[09:29:57] Polysics: has joined #ruby
[09:42:02] sepp2k: has joined #ruby
[09:48:32] Waterpik: has joined #ruby
[09:48:42] stamina: has joined #ruby
[09:51:54] elnino11: has joined #ruby
[09:53:13] rohitpaulk: has joined #ruby
[09:53:38] rippa: has joined #ruby
[09:53:52] nofxxxx: has joined #ruby
[09:54:55] rhyselsmore: has joined #ruby
[09:57:24] bronson: has joined #ruby
[09:58:24] mahlon: has joined #ruby
[09:59:46] ged: has joined #ruby
[10:00:17] shinnya: has joined #ruby
[10:02:34] ammar: has joined #ruby
[10:12:56] nofxxxx: has joined #ruby
[10:14:26] quobo: has joined #ruby
[10:15:51] inkky: has joined #ruby
[10:19:24] bsartek: has joined #ruby
[10:27:44] duderonomy: has joined #ruby
[10:28:24] Harzilein: has joined #ruby
[10:37:27] inkky: has left #ruby: ("Part")
[10:56:57] rohitpaulk: has joined #ruby
[10:57:21] uZiel: has joined #ruby
[10:58:10] bronson: has joined #ruby
[10:59:02] Legenda: has joined #ruby
[11:00:56] guardianx: has joined #ruby
[11:06:11] ketan: has joined #ruby
[11:11:17] nobitanobi: has joined #ruby
[11:23:09] antgel: has joined #ruby
[11:24:02] bkxd: has joined #ruby
[11:24:33] bkxd_: has joined #ruby
[11:27:04] impermanence: has joined #ruby
[11:27:33] sepp2k: has joined #ruby
[11:28:22] patarr: has joined #ruby
[11:29:16] guardianx: has joined #ruby
[11:30:36] rohitpaulk: has joined #ruby
[11:32:38] ur5us: has joined #ruby
[11:37:56] belmoussaoui__: has joined #ruby
[11:48:36] Asher: has joined #ruby
[11:50:13] guardianx: has joined #ruby
[11:50:53] HoierM_: has joined #ruby
[11:52:47] ianfleeton: has joined #ruby
[11:54:50] Ishido: has joined #ruby
[11:58:59] bronson: has joined #ruby
[11:59:33] ketan: has joined #ruby
[12:05:20] cyfr0n: has joined #ruby
[12:08:01] sepp2k: has joined #ruby
[12:08:02] InfinityFye: has joined #ruby
[12:08:09] belmoussaoui__: has joined #ruby
[12:09:01] nowhere_man: has joined #ruby
[12:12:01] ketan: has joined #ruby
[12:13:36] djbkd: has joined #ruby
[12:14:12] guardianx: has joined #ruby
[12:14:46] hkdsun: has joined #ruby
[12:17:41] duderono_: has joined #ruby
[12:21:14] bkxd: has joined #ruby
[12:21:15] guardianx: has joined #ruby
[12:21:36] bkxd_: has joined #ruby
[12:23:26] thejoecarroll: has joined #ruby
[12:26:17] patarr: has joined #ruby
[12:26:30] t-recx: has joined #ruby
[12:26:39] dasher00: has joined #ruby
[12:27:46] sepp2k: has joined #ruby
[12:29:07] guardianx: has joined #ruby
[12:42:55] ledestin: has joined #ruby
[12:43:39] tvw: has joined #ruby
[12:45:56] guardianx: has joined #ruby
[12:59:48] bronson: has joined #ruby
[13:01:39] vondruch: has joined #ruby
[13:04:01] [SpLaT]: has joined #ruby
[13:05:19] vondruch: has joined #ruby
[13:09:58] solocshaw: has joined #ruby
[13:14:28] benjen: has joined #ruby
[13:15:41] charliesome: has joined #ruby
[13:18:54] sagax: has joined #ruby
[13:21:30] vondruch: has joined #ruby
[13:22:33] sepp2k: has joined #ruby
[13:24:10] nowhere_man: has joined #ruby
[13:25:19] cseder: has joined #ruby
[13:25:45] pmden: has joined #ruby
[13:28:36] Polysics: has joined #ruby
[13:39:12] ianfleeton: has joined #ruby
[13:46:07] aphelion: has joined #ruby
[13:48:29] guardian`: has joined #ruby
[13:48:36] aphelion: i have a PORO to define payment gateways. i was having some issues, so i added some require_relative lines since i guess i have to load in the other files. now i get the error: "Circular dependency detected while autoloading constant" code: https://gist.github.com/LordRobust/3af928f05b9cd7e59955d21d620a01eb
[13:50:04] dminuoso: aphelion, should be obvious what the problem is.
[13:50:19] aphelion: im guessing im requiring what is being required
[13:50:21] aphelion: so its a loop
[13:50:24] aphelion: but idk how to fix that
[13:50:26] dminuoso: aphelion, a requires b, b requires a.
[13:50:42] aphelion: so how do i fix that
[13:50:50] aphelion: i.e. another way to do it
[13:50:51] dminuoso: aphelion, don't keep that registry in the base class.
[13:50:58] dminuoso: It's a design smell anyway
[13:51:24] aphelion: so what, a gatewaygetter class?
[13:51:31] aphelion: gatewayhandler or something
[13:51:43] jeffreylevesque: has joined #ruby
[13:52:27] dminuoso: Don't let your base class know about its descendants in the first place.
[13:52:45] aphelion: yeah so i have to have another class to serve as the getter
[13:52:47] aphelion: to hold the registry
[13:52:53] dminuoso: Besides, what you are doing is essentially some quirky attempt to do singletons - which is another code smell.
[13:53:00] dminuoso: Why use such a registry anyway?
[13:53:25] CSMan: I'm trying to build a native library with a local copy, but it doesn't seem to have a Gemfile
[13:53:27] aphelion: oh, no, not good point
[13:53:29] CSMan: /usr/local/rvm/gems/ruby-2.2.0/gems/grpc-1.4.0/
[13:53:32] aphelion: i need to fetch class by gateway name
[13:53:45] aphelion: so my form has a gateway input like "paypal" or something
[13:53:50] aphelion: the registry maps that to its serving class
[13:53:55] CSMan: I included the local path option in the application Gemfile, though
[13:54:09] CSMan: gem 'grpc', :path => '/usr/local/rvm/gems/ruby-2.2.0/gems/grpc-1.4.0'
[13:54:14] rohitpaulk: has joined #ruby
[13:54:30] CSMan: but I get an error,
[13:54:31] CSMan: Could not find gem 'grpc' in source at `/usr/local/rvm/gems/ruby-2.2.0/gems/grpc-1.4.0`.
[13:54:34] CSMan: Source does not contain any versions of 'grpc'
[13:55:58] kculpis: has joined #ruby
[13:56:12] dminuoso: aphelion, def self.get_gateway_class(str); const_get(str.capitalize + "Gateway"); end
[13:56:19] dminuoso: Do it fully dynamic.
[13:57:07] GodFather_: has joined #ruby
[13:57:12] dminuoso: If for some reason you want to cache them, you could set up a registry (which would probably be just a plain module)
[13:57:37] aphelion: that get gateway class method is fine
[13:58:18] dminuoso: aphelion, be sure to consider whitelisting the input depending on the circumstance
[13:58:28] aphelion: what do you mean
[13:59:58] dminuoso: aphelion, well let's say you had some execute method that did: def execute_policy(name); const_get(name).new.exec; end -- and a user had direct control over what "name" was, and you had some class FileSystemDeleter; def exec; ...; end; end
[14:00:30] dminuoso: aphelion, so you could actually do
[14:00:38] bronson: has joined #ruby
[14:01:03] dminuoso: aphelion, GATEWAYS = { stripe: "StripeGateway", paypal: "PaypalGateway" } and then just do const_get(GATEWAYS[name])
[14:06:39] guardianx: has joined #ruby
[14:07:00] apeiros: ACTION pokes dminuoso with a Symbol
[14:08:17] apeiros: if everything is loaded, i.e. no lazy loading, you can also just do: Gateways = {strip: StripeGateway, paypal: PaypalGateway} (or if it's autoloaded, then too)
[14:09:14] aphelion: const_get(GATEWAYS[name.to_sym]) seems to return uninitialized constant GatewayLookup::PaypalGateway
[14:09:24] aphelion: well, these are some POROs in Ruby on RAils
[14:09:27] aphelion: i think they're autoloaded
[14:09:42] dminuoso: aphelion, dont use manual require statements with autoloaded classes in rails.
[14:09:53] aphelion: without it, it was giving an error
[14:10:00] dminuoso: The official documentation says "no."
[14:10:08] aphelion: well, it still is
[14:10:13] aphelion: what's the alternative?
[14:10:31] aphelion: it's not autoloading them i think
[14:10:38] aphelion: they're located in /app/models/gateways
[14:10:43] dminuoso: there. autoloaded.
[14:10:58] aphelion: so whats up with this:
[14:10:59] aphelion: const_get(GATEWAYS[name.to_sym]) seems to return uninitialized constant GatewayLookup::PaypalGateway
[14:11:02] dminuoso: aphelion, everything under /app/*/ is autoloaded by default in rails.
[14:11:15] dminuoso: aphelion, ignore everything I have said, and your original attempt.
[14:11:24] ianfleeton: has joined #ruby
[14:11:29] dminuoso: aphelion, you need to follow the rails conventions so rails can figure out how to find stuff.
[14:11:42] aphelion: whats the rails convention to get a class this way
[14:12:03] dminuoso: aphelion, matching the path and filename to the constants name
[14:12:13] aphelion: i dont follow
[14:12:39] chouhoulis: has joined #ruby
[14:12:49] aphelion: i got this, which i guess is completely wrong: https://gist.github.com/LordRobust/eb56c4c9c6ffc076f49df8b1cbb8b0b5
[14:12:55] dminuoso: aphelion, http://guides.rubyonrails.org/autoloading_and_reloading_constants.html
[14:13:12] dminuoso: aphelion, no ignore that too.
[14:13:30] dminuoso: like apeiros said: Gateways = {strip: StripeGateway, paypal: PaypalGateway}
[14:15:43] uZiel: has joined #ruby
[14:16:14] aphelion: unless im still being an idiot, now i get uninitialized constant GatewayLookup::StripeGateway
[14:16:26] aphelion: https://gist.github.com/LordRobust/e955fdb32f51df65744f22783427d9e3
[14:23:12] ianfleeton: has joined #ruby
[14:26:42] aphelion: well, i fixed most those issues
[14:26:52] aphelion: i need to create a new instance though
[14:37:33] sepp2k: has joined #ruby
[14:38:06] Tau: has joined #ruby
[14:38:57] Tau: has left #ruby: ()
[14:39:49] [SpLaT]: Anybody ever have an issue where the symbolic links to current/ don't work after deploying with capistrano? There is no error in the log and if I do it by hand - it works fine.
[14:42:46] guardian`: has joined #ruby
[14:44:32] GodFather_: has joined #ruby
[14:47:41] Ishido: has joined #ruby
[14:51:04] guardian: has joined #ruby
[14:52:47] ianfleeton: has joined #ruby
[14:53:12] blackwind_123: has joined #ruby
[14:56:44] pwnd_nsfw: has joined #ruby
[14:59:45] nofxxx: has joined #ruby
[15:07:13] sepp2k: has joined #ruby
[15:10:26] enterprisey: has joined #ruby
[15:15:02] Polysics: has joined #ruby
[15:17:43] romankapitonov: has joined #ruby
[15:20:54] ascarter: has joined #ruby
[15:27:40] sepp2k: has joined #ruby
[15:32:40] preyalone: has joined #ruby
[15:33:55] bsartek: has joined #ruby
[15:34:03] aglorei: has joined #ruby
[15:36:28] TwoPiece: has joined #ruby
[15:37:08] romankapitonov: has joined #ruby
[15:39:23] zapata: has joined #ruby
[15:48:55] br|ck: has joined #ruby
[15:49:41] vondruch: has joined #ruby
[15:52:36] sepp2k: has joined #ruby
[15:53:19] vondruch: has joined #ruby
[15:54:32] Polysics: has joined #ruby
[15:55:44] Polysics: has joined #ruby
[16:01:32] bronson: has joined #ruby
[16:04:06] TwoPiece: has joined #ruby
[16:09:26] kent\n: has joined #ruby
[16:14:41] romankapitonov: has joined #ruby
[16:17:59] romankapitonov: has joined #ruby
[16:21:28] vondruch: has joined #ruby
[16:25:38] vondruch: has joined #ruby
[16:29:18] vondruch: has joined #ruby
[16:30:17] boombox_: has joined #ruby
[16:30:49] boombox_: has joined #ruby
[16:32:29] romankapitonov: has joined #ruby
[16:33:28] vondruch: has joined #ruby
[16:37:03] rohitpaulk: has joined #ruby
[16:41:38] vondruch: has joined #ruby
[16:43:32] knight33: has joined #ruby
[16:45:20] vondruch: has joined #ruby
[16:49:12] brent__: has joined #ruby
[16:49:29] vondruch: has joined #ruby
[16:50:24] chouhoulis: has joined #ruby
[16:51:41] conta: has joined #ruby
[16:54:25] rohitpaulk: has joined #ruby
[16:57:14] sagax: i find small web framework or just web server on ruby
[16:57:19] bsartek: has joined #ruby
[16:57:20] sagax: not rubyonrails
[16:57:37] sagax: what we have, small and simply?
[16:57:56] ytti: sinatra is pretty common option
[16:58:26] romankapitonov: has joined #ruby
[17:04:17] shinnya: has joined #ruby
[17:06:09] maattdd: has joined #ruby
[17:09:38] vondruch: has joined #ruby
[17:14:07] TwoPiece: has joined #ruby
[17:18:12] weathermaker: has joined #ruby
[17:20:32] vondruch: has joined #ruby
[17:20:41] romankapitonov: has joined #ruby
[17:21:16] ascarter: has joined #ruby
[17:23:11] vondruch: has joined #ruby
[17:24:32] knight33: has joined #ruby
[17:31:18] vondruch: has joined #ruby
[17:35:29] vondruch: has joined #ruby
[17:43:43] br0d1n: has joined #ruby
[17:45:39] vondruch: has joined #ruby
[17:47:49] dviola: has joined #ruby
[17:48:01] dviola: has joined #ruby
[17:49:32] chouhoulis: has joined #ruby
[17:51:20] vondruch: has joined #ruby
[17:55:48] chouhoulis: has joined #ruby
[17:56:35] romankapitonov: has joined #ruby
[17:56:58] gheegh: has joined #ruby
[17:57:32] vondruch: has joined #ruby
[17:58:19] andrzejku: has joined #ruby
[18:01:13] cseder: has joined #ruby
[18:01:42] vondruch: has joined #ruby
[18:01:50] gheegh: asked onthe Rails channel as well. but thought I'd ask here. does anyone know of existing code/gem to convert strings like this into integers? "67.2M
[18:02:10] gheegh: i'd expect that to convert 67.2M to 67,200,000
[18:02:47] bronson: has joined #ruby
[18:02:59] JoshS: has joined #ruby
[18:12:56] dcunit3d: has joined #ruby
[18:13:40] ecuanaso: has joined #ruby
[18:16:19] ni886105: has joined #ruby
[18:19:59] hays: has joined #ruby
[18:19:59] hays: has joined #ruby
[18:23:22] vondruch: has joined #ruby
[18:28:51] mtkd: has joined #ruby
[18:29:12] conta: has joined #ruby
[18:31:10] bsartek: has joined #ruby
[18:35:33] knight33: has joined #ruby
[18:37:15] ianfleeton: has joined #ruby
[18:37:24] BSaboia: has joined #ruby
[18:41:20] tacoboy: has joined #ruby
[18:42:31] ascarter: has joined #ruby
[18:44:49] skweek: has joined #ruby
[18:46:34] manveru: gheegh: http://www.rubydoc.info/gems/ruby-si-units/0.0.8 maybe?
[18:49:22] ARCADIVS: has joined #ruby
[18:49:53] wilbert: has joined #ruby
[18:51:21] bsartek: has joined #ruby
[18:54:56] wilbert_: has joined #ruby
[18:54:57] mooser: has joined #ruby
[18:59:05] preyalone: has joined #ruby
[19:02:44] ketan: has joined #ruby
[19:06:04] wilbert_: has joined #ruby
[19:09:41] romankapitonov: has joined #ruby
[19:09:44] duderonomy: has joined #ruby
[19:10:46] quobo: has joined #ruby
[19:12:20] chouhoulis: has joined #ruby
[19:14:04] roshanavand: has joined #ruby
[19:14:34] uZiel: has joined #ruby
[19:15:36] danguita: has joined #ruby
[19:15:49] wilbert: has joined #ruby
[19:19:06] hkdsun: has joined #ruby
[19:23:32] vondruch: has joined #ruby
[19:24:23] bsartek: has joined #ruby
[19:24:46] sp4rrow: has joined #ruby
[19:25:43] haylon: has joined #ruby
[19:27:12] vondruch: has joined #ruby
[19:27:18] nobitanobi: has joined #ruby
[19:30:01] conta: has joined #ruby
[19:31:03] wilbert_: has joined #ruby
[19:31:20] vondruch: has joined #ruby
[19:32:11] Dimik: has joined #ruby
[19:32:50] ur5us: has joined #ruby
[19:32:59] bsartek: has joined #ruby
[19:35:30] vondruch: has joined #ruby
[19:38:12] vuoto: has joined #ruby
[19:39:40] vondruch: has joined #ruby
[19:43:20] vondruch: has joined #ruby
[19:48:31] mitt3ns: has joined #ruby
[19:51:30] vondruch: has joined #ruby
[19:51:53] marr: has joined #ruby
[19:52:12] haylon_: has joined #ruby
[19:53:12] pankaj: has joined #ruby
[19:54:57] minimalism: has joined #ruby
[19:55:37] mooser: has joined #ruby
[19:57:01] romankapitonov: has joined #ruby
[19:59:37] vondruch: has joined #ruby
[20:03:16] vondruch: has joined #ruby
[20:03:39] bronson: has joined #ruby
[20:07:44] sp4rrow_: has joined #ruby
[20:09:08] enterprisey: has joined #ruby
[20:09:28] typeVoid: has joined #ruby
[20:11:10] typeVoid: has joined #ruby
[20:11:25] vondruch: has joined #ruby
[20:12:40] typeVoid: has joined #ruby
[20:12:55] comet23: has joined #ruby
[20:13:07] noizex: has joined #ruby
[20:13:08] comet23: how can i iterate over a range with a fixnum?
[20:13:28] comet23: https://repl.it/JUFu
[20:13:35] comet23: that doesn't work for some reason
[20:15:08] noizex: hi, anyone using fancy_irb? :)
[20:15:30] ianfleeton: has joined #ruby
[20:15:33] vondruch: has joined #ruby
[20:17:25] Joufflu: has joined #ruby
[20:19:29] typeVoid: has joined #ruby
[20:21:42] vondruch: has joined #ruby
[20:24:04] typeVoid: has joined #ruby
[20:27:01] tacoboy: has joined #ruby
[20:27:42] dcunit3d: has joined #ruby
[20:29:18] vondruch: has joined #ruby
[20:30:18] S1kx: has joined #ruby
[20:30:34] ledestin: has joined #ruby
[20:30:58] vondruch: has joined #ruby
[20:31:10] conta: has joined #ruby
[20:31:22] typeVoid: has joined #ruby
[20:36:36] vondruch: has joined #ruby
[20:38:14] ozcanesen: has joined #ruby
[20:40:04] patr0clus: has joined #ruby
[20:41:04] patr0clus: has joined #ruby
[20:41:46] patr0clus: has joined #ruby
[20:42:28] knight33: has joined #ruby
[20:42:43] vondruch: has joined #ruby
[20:44:34] ianfleeton: has joined #ruby
[20:46:22] vondruch: has joined #ruby
[20:47:17] Ishido: has joined #ruby
[20:48:58] tacoboy: has joined #ruby
[20:49:55] boto: has joined #ruby
[20:50:02] joenas[m]: has joined #ruby
[20:56:27] mooser: has joined #ruby
[20:57:51] einstein9: has joined #ruby
[21:00:30] sepp2k: has joined #ruby
[21:00:35] Polysics_: has joined #ruby
[21:01:20] ecuanaso: has joined #ruby
[21:01:32] joenas: has joined #ruby
[21:02:06] typeVoid: has joined #ruby
[21:03:35] ketan: has joined #ruby
[21:03:38] typeVoid: has joined #ruby
[21:03:55] Polysics_: has joined #ruby
[21:04:20] ltem: has joined #ruby
[21:06:12] ur5us: has joined #ruby
[21:06:13] tacoboy: has joined #ruby
[21:07:35] ur5us: has joined #ruby
[21:10:33] vondruch: has joined #ruby
[21:14:42] vondruch: has joined #ruby
[21:19:10] zacts: has joined #ruby
[21:20:23] vondruch: has joined #ruby
[21:21:05] im0nde: has joined #ruby
[21:23:11] ur5us: has joined #ruby
[21:24:42] joenas[m]: has joined #ruby
[21:30:11] _whitelogger: has joined #ruby
[21:31:55] conta: has joined #ruby
[21:36:34] darix: noizex: yes it is called p ry
[21:55:18] milardovich: has joined #ruby
[21:56:31] vondruch: has joined #ruby
[21:57:52] mooser: has joined #ruby
[21:59:21] milardovich: has joined #ruby
[22:04:39] bronson: has joined #ruby
[22:08:42] vondruch: has joined #ruby
[22:10:02] nobitanobi: has joined #ruby
[22:14:37] im0nde: has joined #ruby
[22:15:23] MrBismuth: has joined #ruby
[22:17:57] roshanavand: has joined #ruby
[22:21:49] ianfleeton: has joined #ruby
[22:25:49] ascarter: has joined #ruby
[22:30:00] kahootbird: has joined #ruby
[22:32:42] conta: has joined #ruby
[22:35:07] GodFather_: has joined #ruby
[22:35:28] im0nde: has joined #ruby
[22:35:38] MrBusiness: has joined #ruby
[22:37:22] dcunit3d: has joined #ruby
[22:39:29] gheegh: manveru: Thanks. I copied most of that library, made a couple of mods, and i'm set.. thanks.
[22:41:46] gheegh: comet23: (0...number).each { |n| puts n }
[22:43:34] Nitza: has joined #ruby
[22:44:01] cschneid_: has joined #ruby
[22:47:52] im0nde: has joined #ruby
[22:48:21] comet23: has joined #ruby
[22:48:32] comet23: do you guys work on the ruby language?
[22:48:36] comet23: i would like to request a feature
[22:49:14] comet23: https://repl.it/JUMQ/0
[22:49:52] cschneid_: has joined #ruby
[22:50:37] cschneid_: has joined #ruby
[22:51:10] Papierkorb: comet23: what's happening, and what did you expect to happen instead?
[22:52:08] Radar: mmmm I love the smell of mutability in the morning
[22:53:04] comet23: Papierkorb instead of using += it should use <<
[22:53:13] comet23: it's just better to read in my opinion
[22:53:26] Papierkorb: Radar: OHAYO SIR
[22:54:02] comet23: instead of doing strings << string += "s" you should do strings << string << "s" it's more idiomatic :)
[22:54:37] Papierkorb: comet23: No, that requires mutable strings, and will blow up, completely even starting with Ruby 3.x when strings aren't mutable anymore
[22:54:50] comet23: strings won't be mutable?
[22:54:54] comet23: that's horrible
[22:55:04] comet23: not finally, i will cry when that happens
[22:56:12] comet23: why would they not make strings mutable anymore
[22:59:33] kobain: has joined #ruby
[23:00:34] adavia: has joined #ruby
[23:01:02] im0nde: has joined #ruby
[23:04:23] vondruch: has joined #ruby
[23:04:27] ketan: has joined #ruby
[23:04:34] cschneid_: has joined #ruby
[23:06:36] dstrunk: has joined #ruby
[23:06:39] cschneid_: has joined #ruby
[23:08:03] Matt[m]4: has joined #ruby
[23:13:23] im0nde: has joined #ruby
[23:13:26] milardovich: has joined #ruby
[23:16:32] vondruch: has joined #ruby
[23:18:14] rhyselsmore: has joined #ruby
[23:21:03] comet23: how can i create a method that swaps the second and third elements?
[23:21:14] comet23: i have this: def swap_elements(array)
[23:22:03] vivekananda: has joined #ruby
[23:22:43] vondruch: has joined #ruby
[23:23:16] Radar: comet23: what have you tried?
[23:24:18] comet23: that's about it
[23:24:28] comet23: i don't know what else exists
[23:24:48] comet23: def swap_elements(array)
[23:24:53] comet23: https://repl.it/JUN0/0
[23:24:57] comet23: i meant to paste that sorry
[23:26:23] vondruch: has joined #ruby
[23:26:27] mostlybadfly: has joined #ruby
[23:30:33] vondruch: has joined #ruby
[23:32:34] rodrigovlds: has joined #ruby
[23:33:26] conta: has joined #ruby
[23:34:49] Radar: https://coderwall.com/p/be_1va/swap-two-elements-of-an-array-in-ruby
[23:36:43] vondruch: has joined #ruby
[23:39:54] milardovich: has joined #ruby
[23:40:40] alveric: has joined #ruby
[23:42:23] vondruch: has joined #ruby
[23:47:35] BTRE: has joined #ruby
[23:48:34] enterprisey: has joined #ruby
[23:48:55] tacoboy: has joined #ruby
[23:52:33] vondruch: has joined #ruby
[23:59:05] mooser: has joined #ruby