« Back to channel list

#ruby - 08 June 2017

« Back 1 day Forward 1 day »
[00:04:11] havenwood: >> students = {}; students.default_proc = -> h, k { h[k] = [] }; students['Class 1'] << 'Bob'; students # lucas__
[00:04:18] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[00:04:23] snockerton: has joined #ruby
[00:04:23] havenwood: #=> {"Class 1"=>["Bob"]}
[00:04:48] jdawgaz: has joined #ruby
[00:04:51] havenwood: lucas__: Another way to write that is:
[00:04:52] havenwood: >> students = Hash.new { |h, k| h[k] = [] }; students['Class 1'] << 'Bob'; students
[00:04:58] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[00:05:03] havenwood: #=> {"Class 1"=>["Bob"]}
[00:05:54] acalycine: has joined #ruby
[00:06:16] acalycine: How do I replace capturing groups of a pattern in `sub`?
[00:07:20] havenwood: acalycine: #sub doesn't care about capture groups
[00:07:21] havenwood: acalycine: show the code?
[00:07:32] havenwood: acalycine: or have an example input and desired output?
[00:07:51] LucasTT: havenwood: thanks!
[00:08:04] havenwood: lucas__: no prob!
[00:08:15] acalycine: https://gist.github.com/06d1cafa36747dd9f5da5b3c73226901
[00:09:11] acalycine: Forget the `to_s`, it's only useful in my original code.
[00:09:41] havenwood: acalycine: require 'nokogiri'; Nokogiri::HTML(date).text #=> "2016-08-09T13:55:13+00:00"
[00:09:41] elomatreb: Can't you just sub /<.+>/?
[00:10:11] acalycine: Nokogiri, cool.
[00:10:24] elomatreb: Oh, that'd be too greedy, nevermind
[00:10:25] acalycine: Just for future reference, is there a way to do this with pure Ruby/sub?
[00:11:52] acalycine: Also, is there a way to change in place with '!' or something?
[00:12:02] havenwood: acalycine: Or with Oga: require 'oga'; Oga.parse_xml(date).css('updated').text
[00:12:43] elomatreb: Not nearly as robust, but .gsub(/<.+?>/, "") seems to work
[00:14:02] jdawgaz: has joined #ruby
[00:14:11] havenwood: >> "<updated>2016-08-09T13:55:13+00:00</updated>"[/(?<=<updated>).*(?=<\/updated)/]
[00:14:12] ruby[bot]: havenwood: # => "2016-08-09T13:55:13+00:00" (https://eval.in/813663)
[00:14:16] havenwood: acalycine: ^
[00:14:26] acalycine: Ah, very cool.
[00:14:46] jdawgaz: has joined #ruby
[00:15:07] jgt4: has joined #ruby
[00:16:43] havenwood: acalycine: Or a silly one: date.chomp('</updated>').reverse.chomp('<updated>'.reverse).reverse
[00:17:03] acalycine: I love it. You can do so many things in so many ways.
[00:17:19] havenwood: >> "<updated>2016-08-09T13:55:13+00:00</updated>".chomp('</updated>').reverse.chomp('<updated>'.reverse).reverse
[00:17:20] havenwood: #=> "2016-08-09T13:55:13+00:00"
[00:17:21] ruby[bot]: havenwood: # => "2016-08-09T13:55:13+00:00" (https://eval.in/813664)
[00:17:44] acalycine: Say I have `Time.parse(date).to_f`. How can I change that variable in place?
[00:18:00] acalycine: Usually I'd put a `!` but not sure where to put it.
[00:19:43] havenwood: acalycine: Use `Time.iso8601(date)` if it's iso8601.
[00:19:57] havenwood: acalycine: Why a float?
[00:20:06] havenwood: >> Time.iso8601("2016-08-09T13:55:13+00:00").to_f
[00:20:09] ziprar: has joined #ruby
[00:20:10] acalycine: I'm using it later on in my code, but haven't figured out the details of tha tyet.
[00:20:11] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[00:20:22] Azure: has joined #ruby
[00:20:31] havenwood: acalycine: A Rational or BigDecimal will give nanosecond precision, if you care.
[00:20:49] havenwood: I guess your input won't have that detail?
[00:21:20] havenwood: Time.iso8601("2016-08-09T13:55:13+00:00").to_r #=> (1470750913/1)
[00:21:22] acalycine: probably not
[00:21:39] cschneid_: has joined #ruby
[00:22:37] havenwood: acalycine: unix_time_date_float = Time.iso8601(date).to_f
[00:23:29] havenwood: acalycine: If it's not the same thing spare yourself headache and use a different variable. Or extract the conversion to a method and use that like: unix_time_float(date)
[00:26:23] Cohedrin: has joined #ruby
[00:27:25] haylon: has joined #ruby
[00:27:49] olivier__: has joined #ruby
[00:29:24] ben_h: has joined #ruby
[00:30:11] olivier__: has joined #ruby
[00:31:13] segmond: has joined #ruby
[00:31:39] fxa: has joined #ruby
[00:34:47] Cohedrin: has joined #ruby
[00:35:11] acalycine: Do you know of a Nokogiri way to parse just the href from `<link href="google.com"/>` and the title from `<title>Test!</title>`?
[00:36:00] acalycine: Nokogiri::HTML does not give me the result I want
[00:38:34] jcao219: has joined #ruby
[00:41:14] mrconfused: has joined #ruby
[00:42:08] bruce_lee: has joined #ruby
[00:42:08] bruce_lee: has joined #ruby
[00:43:44] HoierM: has joined #ruby
[00:44:57] dc2: has joined #ruby
[00:46:20] acalycine: havenwood: ?
[00:47:09] thoraxe_: has joined #ruby
[00:48:41] muelleme: has joined #ruby
[00:50:08] uZiel: has joined #ruby
[00:51:16] Rodya_: has joined #ruby
[00:51:32] brent__: has joined #ruby
[00:52:30] havenwood: acalycine: css('title').text
[00:53:01] havenwood: acalycine: css('link').map { |link| link['href'] }
[00:54:00] havenwood: acalycine: require 'nokogiri'; Nokogiri::HTML('<title>Test!</title><link href="google.com"/>').css('title').text #=> "Test!"
[00:54:11] havenwood: acalycine: You can use css selectors or xpath with nokogiri or oga.
[00:54:54] ben_h: has joined #ruby
[00:55:00] acalycine: What would the `css` be in tis case?
[00:55:04] acalycine: In ur first example
[00:55:26] harfangk: has joined #ruby
[00:55:43] havenwood: acalycine: That's a css selector.
[00:55:56] acalycine: How do I refer to the document in that example, though?
[00:56:03] havenwood: acalycine: With XPath and not just title but a title in a head in html for example: require 'nokogiri'; Nokogiri::HTML('<html><head><title>very specific</title></head></html>').xpath('/html/head/title').text
[00:56:12] havenwood: #=> "very specific"
[00:56:52] havenwood: acalycine: I don't think I understand the question.
[00:57:03] acalycine: nevermind, that last one should work
[00:57:27] havenwood: acalycine: You can use .css or .xpath for a css selector or xpath. No prob.
[00:58:11] acalycine: Will that last example work for the link as well?
[00:58:19] acalycine: Since the href is inside the node
[00:58:29] havenwood: acalycine: require 'nokogiri'; Nokogiri::HTML('<link href="google.com"/><link href="ruby-lang.org"').css('link[href]').map { |link| link['href'] } #=> ["google.com", "ruby-lang.org"]
[00:58:56] ResidentBiscuit: has joined #ruby
[00:59:14] havenwood: acalycine: You can do any of these with #css or #xpath, your choice.
[00:59:15] havenwood: The #css are usually a bit less gross.
[01:01:29] olivier__: has joined #ruby
[01:02:05] nadir: has joined #ruby
[01:02:15] havenwood: acalycine: You can use #at_css when you know there's only one: Nokogiri::HTML('<title>example<title>').at_css('title').text
[01:03:45] acalycine: Interesting.
[01:04:17] havenwood: acalycine: So if you wanted just one link: Nokogiri::HTML('<link href="google.com"/><link href="ruby-lang.org"').at_css('link')['href']
[01:04:25] havenwood: #=> "google.com"
[01:04:41] havenwood: (ignoring the second "ruby-lang.org" link)
[01:06:46] mrconfused: has joined #ruby
[01:11:09] wtc: has joined #ruby
[01:11:45] wtc: hi all, looking for full coverage of xls and xlsx including formula updates
[01:12:08] wtc: aside from rubyXL and spreadsheet, where look?
[01:12:32] pwnd_nsfw`: has joined #ruby
[01:16:42] uZiel: has joined #ruby
[01:20:47] arescorpio: has joined #ruby
[01:25:19] johnzorn: has joined #ruby
[01:28:38] acalycine: If I'm a couple blocks deep, do I need to `return` a value just once, or multiple times?
[01:33:21] d^sh: has joined #ruby
[01:34:51] jdawgaz: has joined #ruby
[01:40:22] jcao219: has joined #ruby
[01:41:10] dances_with_taco: has joined #ruby
[01:41:54] cadillac__: has joined #ruby
[01:42:53] AnoHito_: has joined #ruby
[01:43:36] bvcosta: has joined #ruby
[01:45:02] uZiel: has joined #ruby
[01:45:17] Jameser: has joined #ruby
[01:45:30] ur5us: has joined #ruby
[01:48:40] gizmore: has joined #ruby
[01:49:26] muelleme: has joined #ruby
[01:51:51] charliesome: has joined #ruby
[01:55:26] jdawgaz: has joined #ruby
[01:56:11] jdawgaz: has joined #ruby
[01:57:01] jdawgaz: has joined #ruby
[01:57:49] jdawgaz: has joined #ruby
[01:58:39] jdawgaz: has joined #ruby
[01:59:29] jdawgaz: has joined #ruby
[02:00:14] jdawgaz: has joined #ruby
[02:03:27] patarr: has joined #ruby
[02:03:42] uZiel: has joined #ruby
[02:05:13] belmoussaoui__: has joined #ruby
[02:12:55] hutch34: has joined #ruby
[02:20:14] patr0clus: has joined #ruby
[02:20:25] genpaku: has joined #ruby
[02:21:15] patr0clus: has joined #ruby
[02:21:35] enterprisey: has joined #ruby
[02:21:54] patr0clus: has joined #ruby
[02:22:23] AndChat|474201: has joined #ruby
[02:26:09] jcao219: has joined #ruby
[02:27:48] patr0clus: has joined #ruby
[02:31:20] olivier__: has joined #ruby
[02:31:26] t-recx: has joined #ruby
[02:32:36] jackjackdripper: has joined #ruby
[02:35:19] djbkd: has joined #ruby
[02:36:04] patarr: has joined #ruby
[02:42:50] hutch34: has joined #ruby
[02:43:54] kegster: has joined #ruby
[02:47:46] bmurt: has joined #ruby
[02:48:00] olivier__: has joined #ruby
[02:49:05] sleetdrop: has joined #ruby
[02:50:11] muelleme: has joined #ruby
[02:50:34] patarr: has joined #ruby
[02:50:48] guacamole: has joined #ruby
[02:53:07] djbkd: has joined #ruby
[03:00:03] jackjackdripper: has joined #ruby
[03:00:20] mim1k: has joined #ruby
[03:04:46] sspreitz: has joined #ruby
[03:08:32] mrconfused: has joined #ruby
[03:09:02] raspado: has joined #ruby
[03:13:20] wtc: acalycine: probably once each, brosef
[03:17:39] jackjackdripper1: has joined #ruby
[03:22:54] jackjackdripper: has joined #ruby
[03:25:04] gix: has joined #ruby
[03:25:11] chalkmonster: has joined #ruby
[03:25:33] raspado: has joined #ruby
[03:26:04] olivier__: has joined #ruby
[03:27:01] empty_cup: has joined #ruby
[03:28:48] priodev: has joined #ruby
[03:31:39] empty_cup: i've been looking online and found a couple of examples of mocking single methods using rspec-mocks. is there a similar ability in minitest that ships with ruby?
[03:31:53] ltp: has joined #ruby
[03:32:53] jdsampayo: has joined #ruby
[03:35:44] jcao219: has joined #ruby
[03:38:17] gothicsouth: has joined #ruby
[03:48:56] ledestin: has joined #ruby
[03:50:56] muelleme: has joined #ruby
[03:51:20] havenwood: ah, empty_cup left? too bad.
[03:51:22] havenwood: https://gist.github.com/havenwood/84207afa092ce5d5a680
[03:51:58] ascarter_: has joined #ruby
[03:52:48] cfec0b8d: has joined #ruby
[03:57:41] howdoi: has joined #ruby
[04:06:11] acalycine: has joined #ruby
[04:10:45] BTRE: has joined #ruby
[04:20:34] olivier__: has joined #ruby
[04:24:20] cgfbee: has joined #ruby
[04:28:10] bvcosta: has joined #ruby
[04:33:02] nanoz: has joined #ruby
[04:35:07] knight33: has joined #ruby
[04:39:03] Pandorian: has joined #ruby
[04:39:11] Pandorian: has left #ruby: ()
[04:42:23] ascarter: has joined #ruby
[04:44:05] brent__: has joined #ruby
[04:47:27] KnownSyntax: has joined #ruby
[04:49:41] rohitpaulk: has joined #ruby
[04:51:42] muelleme: has joined #ruby
[04:52:10] d^sh: has joined #ruby
[04:57:11] dc2: has joined #ruby
[04:57:34] aupadhye: has joined #ruby
[04:57:53] blackwind_123: has joined #ruby
[04:58:08] Ryzokuken: has joined #ruby
[04:58:57] priodev: has joined #ruby
[04:59:14] Rodya_: has joined #ruby
[05:01:23] mim1k: has joined #ruby
[05:04:18] enterprisey: has joined #ruby
[05:05:45] uZiel: has joined #ruby
[05:09:09] quobo: has joined #ruby
[05:09:47] jackjackdripper: has joined #ruby
[05:11:44] faces: has joined #ruby
[05:21:41] aupadhye: has joined #ruby
[05:26:12] kegster: has joined #ruby
[05:28:09] ascarter: has joined #ruby
[05:33:08] rohitpaulk: has joined #ruby
[05:34:20] Bespoormsed: has joined #ruby
[05:35:27] agent_white: has joined #ruby
[05:37:10] dreamthese: has joined #ruby
[05:38:21] acalycine: How do I select the hash from an array containing a string and a hash?
[05:39:46] elomatreb: acalycine: Try #grep(Hash)
[05:40:01] acalycine: Enumerable?
[05:40:09] elomatreb: It's from Enumerable, yeah
[05:40:38] elomatreb: It's basically a select with ===, which for classes (like Hash) is an instance check
[05:40:44] elomatreb: Very useful
[05:40:51] faces: has joined #ruby
[05:41:14] _aeris_: has joined #ruby
[05:41:54] dasher00: has joined #ruby
[05:43:04] Bock: has joined #ruby
[05:43:18] yogg-saron: has joined #ruby
[05:48:27] jdsampayo: has joined #ruby
[05:48:46] mistnim: has joined #ruby
[05:49:51] mistnim: what is an easy way to save some small information accross a program restart?
[05:51:59] synstack: read/write to a text file?
[05:52:25] muelleme: has joined #ruby
[05:52:37] sleetdrop: has joined #ruby
[05:52:46] jackjackdripper1: has joined #ruby
[05:53:04] acalycine: What exactly does `:in `each': no block given (LocalJumpError)` mean?
[05:53:46] glejeune: has joined #ruby
[05:54:16] apeiros: acalycine: it means that it happened in the method "each" and that you didn't give it a block, while it expected one (tried to yield to the block)
[05:54:31] roshanavand: has joined #ruby
[05:54:50] mistnim: synstack: something like YAML.dump, but I don't like yaml very much
[05:55:02] acalycine: Weird. This is the line that it's happening on. `id = (array.grep(Hash).reduce[:link]).match(/comments\/(.*?)\//)[1]`
[05:55:09] acalycine: There's no each happening.
[05:55:18] mistnim: synstack: but there is no JSON.dump
[05:55:36] mistnim: ops there is
[05:55:55] apeiros: acalycine: you probably see a "reduce" in your backtrace too
[05:56:18] acalycine: So that method uses `reduce`?
[05:56:23] acalycine: What does it have to do with each, i.e.
[05:56:24] apeiros: other way round
[05:56:30] apeiros: reduce uses each
[05:56:37] apeiros: sometimes methods are made of other methods ;-)
[05:57:13] apeiros: the way to read a backtrace: keep scanning until you find a line which happens in *your* code (identifiable by the file)
[05:57:18] apeiros: work your way from there
[05:58:53] acalycine: Huh. I run that line in IRB and it works perfectly. But it doesn't work in my script.
[05:58:59] acalycine: Perhaps it's 'up-stream'
[05:59:17] apeiros: I quite doubt that reduce[:link] works
[05:59:43] apeiros: but it's early in the morning so maybe I'm missing something
[05:59:54] acalycine: Yeah, I fixed that line as well.
[06:00:16] jackjackdripper: has joined #ruby
[06:00:28] patarr: has joined #ruby
[06:00:32] Rodya_: has joined #ruby
[06:01:02] anisha: has joined #ruby
[06:04:55] frank_o: has joined #ruby
[06:06:35] FRANKY_8: has joined #ruby
[06:09:08] jackjackdripper1: has joined #ruby
[06:12:09] dionysus69: has joined #ruby
[06:14:21] Cork: anyone here have an idea why ruby depends on jquery in debian?
[06:15:23] herwin: iirc it installed documents that are partially generated via javascript/jquery
[06:15:32] jackjackdripper: has joined #ruby
[06:19:24] jackjackdripper1: has joined #ruby
[06:23:38] nanoz: has left #ruby: ("Leaving")
[06:29:42] Ishido: has joined #ruby
[06:29:59] mim1k: has joined #ruby
[06:30:55] Robtop__: has joined #ruby
[06:34:41] dionysus69: has joined #ruby
[06:35:46] arup_r: has joined #ruby
[06:36:54] arup_r: Is there any direct way to get the filename of a tempfile. I tried:
[06:36:55] arup_r: >> file = Tempfile.new(['hello', '.jpg']); puts File.basname(file.path)
[06:36:56] ruby[bot]: arup_r: # => uninitialized constant Tempfile (NameError) ...check link for more (https://eval.in/813834)
[06:37:21] arup_r: >> require 'tempfile; file = Tempfile.new(['hello', '.jpg']); puts File.basname(file.path)
[06:37:22] ruby[bot]: arup_r: # => /tmp/execpad-3666fba4a996/source-3666fba4a996:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/813835)
[06:37:26] herwin: Tempfile#path
[06:37:36] FRANKY_8: has joined #ruby
[06:37:56] arup_r: path gives the full path. I want the name..
[06:38:12] arup_r: >> require 'tempfile'; file = Tempfile.new(['hello', '.jpg']); puts File.basname(file.path)
[06:38:18] ruby[bot]: arup_r: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[06:38:45] arup_r: I have so many typos :(
[06:42:19] conta: has joined #ruby
[06:46:57] ByronJohnson: has joined #ruby
[06:47:12] plshalprubygods: has joined #ruby
[06:47:13] mim1k: has joined #ruby
[06:47:28] plshalprubygods: hallo anyone up ?
[06:47:53] ruby[bot]: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[07:02:23] Rodya_: has joined #ruby
[07:04:35] Mortomes|Work: has joined #ruby
[07:05:22] charliesome: has joined #ruby
[07:10:01] jgt4: has joined #ruby
[07:10:23] cjhowe7: has joined #ruby
[07:12:06] mistnim: has joined #ruby
[07:12:29] ur5us: has joined #ruby
[07:12:31] aufi: has joined #ruby
[07:13:17] mistnim: is there a consistent way, know its class, to recreate an object from it's JSON.dump string
[07:14:03] mistnim: class.new is not good, because numbers don't have new method
[07:14:39] bkxd: has joined #ruby
[07:14:50] herwin: would using yaml instead of json work?
[07:15:09] mistnim: herwin: no, the string they generates for the single object are more or less the same
[07:15:35] mistnim: if not exactly the same
[07:15:59] mistnim: let me try
[07:16:31] glejeune: has joined #ruby
[07:17:15] zenspider: mistnim: not using json to serialize objects is a better start
[07:17:35] mistnim: zenspider: what should I use?
[07:18:03] plshalprubygods: https://gist.github.com/anonymous/42dedd309623520f561917ac2ea6778e
[07:18:07] zenspider: marshal if you are only using this across ruby. yaml otherwise
[07:18:41] zenspider: plshalprubygods: ignoring the errors and awkward syntax... that's ruby!
[07:18:47] plshalprubygods: I get the following error /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': can't convert Hash into String (TypeError)
[07:19:01] mistnim: zenspider: ok but I have the same problem with yaml, It won't generate back the object often, but its string represantation
[07:19:38] mistnim: so I need a consisten way to get the object back
[07:19:40] bkxd_: has joined #ruby
[07:19:56] zenspider: mistnim: are you interacting with other systems/languages?
[07:20:10] mistnim: zenspider: I might possibly
[07:20:22] mistnim: but just on read on the other end
[07:20:23] dc2: has joined #ruby
[07:20:27] zenspider: I don't care about "might"s... I don't work with what-ifs
[07:20:32] zenspider: I work with right-nows
[07:20:43] jenrzzz: has joined #ruby
[07:20:50] mistnim: it's very likely that I will in the future
[07:21:03] minimalism: has joined #ruby
[07:21:08] mitt3ns: has joined #ruby
[07:21:24] morfin: has joined #ruby
[07:21:38] zenspider: >> require "yaml"; X=Struct.new(:x); X.new([1, 2, 3]).to_yaml
[07:21:40] ruby[bot]: zenspider: # => "--- !ruby/struct:X\nx:\n- 1\n- 2\n- 3\n" (https://eval.in/813848)
[07:21:58] morfin: i was looking where File.open is located - maybe if i debug ruby itself i understand what's wrong with path resolving
[07:22:10] zenspider: I haven't seen any problems with yaml ... you're gonna have to provide an example of the problems you're having
[07:22:30] zenspider: morfin: probably nothing is wrong with path resolving...
[07:22:50] zenspider: and by probably, I mean 99.99% chance there is no problem
[07:22:59] zenspider: what's going on?
[07:26:08] mistnim: zenspider: I save a Time object to yaml, I load it and it's just a string not a Time Object
[07:27:16] mim1k: has joined #ruby
[07:27:21] mistnim: >>> require "yaml"; YAML.load(YAML.dump(Time.now))
[07:27:29] mistnim: >> require "yaml"; YAML.load(YAML.dump(Time.now))
[07:27:31] ruby[bot]: mistnim: # => 2017-06-08 07:27:26 +0000 (https://eval.in/813850)
[07:27:57] mistnim: >> require "yaml"; YAML.load(YAML.dump(Time.now)).class
[07:27:59] ruby[bot]: mistnim: # => Time (https://eval.in/813851)
[07:28:03] plshalprubygods: zenspider: Do you know why it errors out ?
[07:28:19] mistnim: interesting
[07:28:31] plshalprubygods: on this line 'response = Net::HTTP.start( uri.host, uri.port, :use_ssl => true, :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|'
[07:28:43] herwin: mistnim: maybe use something newer than ruby 1.8
[07:28:48] herwin: and all will be fine
[07:29:32] zenspider: mistnim: heh... maybe it's ok?
[07:30:01] zenspider: herwin: eh. nah. that should work fine in 1.8 iirc
[07:30:25] mistnim: yeah, sorry, I was sure it didn't work last time I tried
[07:30:28] zenspider: I'd need to look at the old rdoc tho, and I don't care that much
[07:30:53] zenspider: plshalprubygods: you're using a beyond unsupported version of ruby. You're gonna have to consult your docs. `ri Net::HTTP.start` and look at the args
[07:31:07] zenspider: mistnim: no worries. I DO expect to get a string back from json tho
[07:31:10] plshalprubygods: I cant... ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
[07:31:37] zenspider: plshalprubygods: if you can't be bothered to read your own docs, nobody can help you
[07:31:58] plshalprubygods: Ive gone through the 1.8.7 docs they are of no use
[07:32:11] zenspider: clearly that's not the case. I used them to good success.
[07:32:18] zenspider: even with Net::HTTP
[07:34:38] zenspider: ok. for fun, I did look it up... you clearly didn't.
[07:35:03] pandaant: has joined #ruby
[07:35:13] zenspider: def HTTP.start(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil, &block)
[07:40:23] aurelien: has joined #ruby
[07:42:11] acalycine: has joined #ruby
[07:47:02] Silthias: has joined #ruby
[07:48:23] ryzokuken_: has joined #ruby
[07:48:48] jdsampayo: has joined #ruby
[07:49:22] quobo: has joined #ruby
[07:50:36] ddffg: has joined #ruby
[07:51:29] Neptu: has joined #ruby
[07:51:47] Neptu: hello a variable like this is special @@ssh_ip@@??
[07:52:05] ljarvis: Neptu: that is not a valid variable name
[07:52:10] antgel: has joined #ruby
[07:52:14] ljarvis: perhaps you mean without the trailing @@
[07:52:22] burgestrand: has joined #ruby
[07:52:51] ljarvis: in which case, it's a class variable
[07:53:09] ljarvis: http://www.zenspider.com/ruby/quickref.html#variables
[07:54:16] mim1k: has joined #ruby
[07:54:39] govg: has joined #ruby
[08:00:57] patarr: has joined #ruby
[08:01:22] renchan: has joined #ruby
[08:01:30] S1kx: has joined #ruby
[08:02:03] Burgestr_: has joined #ruby
[08:03:22] Rodya_: has joined #ruby
[08:04:15] mikecmpbll: has joined #ruby
[08:07:39] charliesome: has joined #ruby
[08:15:57] Neptu: ljarvis: im trying to get a hold of an undocumented variable on the vagrant project and I wonder if its possible to dump all all variables in the executed program to try to find the one im looking for...
[08:16:24] rgr_: has joined #ruby
[08:19:10] dionysus69: has joined #ruby
[08:19:34] zenspider: Neptu: "dump"?
[08:19:54] zenspider: Do you just want to grep for your thing?
[08:20:18] Neptu: zenspider: yes i want to grep for my thing
[08:20:19] zenspider: grep -r @@ssh_ip.+= lib
[08:20:36] Neptu: zenspider: ok long story
[08:21:19] Neptu: im using the openstack pluging for vagrant and I want to get the the ip from the plugin but i donno what is the variable holding it
[08:21:41] Neptu: that is why i want to find a way to dump all variables and trace back where they store this on a fast way
[08:22:11] Neptu: https://github.com/ggiamarchi/vagrant-openstack-provider/blob/4a252918e7ebbed0db5562dd8f671bccadde586e/source/lib/vagrant-openstack-provider/action/provision.rb
[08:22:46] Neptu: my ruby is not strong enough to understand what they are doing im trying to learn by doing
[08:23:38] zenspider: https://github.com/ggiamarchi/vagrant-openstack-provider/blob/4a252918e7ebbed0db5562dd8f671bccadde586e/source/lib/vagrant-openstack-provider/action/provision.rb#L49
[08:23:51] zenspider: seems like any logic is gonna be coming from that line
[08:24:36] zenspider: https://github.com/ggiamarchi/vagrant-openstack-provider/blob/b424746268e8b239befe473c85e7ae0a364f9760/source/lib/vagrant-openstack-provider/action/read_ssh_info.rb#L70
[08:24:37] Neptu: zenspider: i agree
[08:24:55] cfec0b8d: has joined #ruby
[08:24:57] Neptu: but the @env variable should have what i need
[08:27:03] Neptu: but donno if env is a global variable i can access outside the pluggin
[08:27:33] Neptu: as far as i read should be $env not @env
[08:27:33] zenspider: what are you trying to get ahold of, and why?
[08:27:48] Neptu: im trying to get a hold on the ip allocated by openstack
[08:27:59] zenspider: it is neither... it is just `env`... it is whatever is passed in
[08:28:08] biberu: has joined #ruby
[08:28:55] zenspider: seems like it'd be connected to: @utils.get_ip_address(env)
[08:28:59] Neptu: and im trying to use the ip because im building a cluster of things and I need to know the ips forhand before executing the ansible script
[08:29:10] cbrad: has joined #ruby
[08:30:17] Neptu: but all does objects are not available from the vagrant side of things only inside the pluggin
[08:30:17] kmhn: has joined #ruby
[08:31:10] zenspider: https://github.com/ggiamarchi/vagrant-openstack-provider/blob/master/source/spec/vagrant-openstack-provider/utils_spec.rb#L52
[08:31:14] zenspider: that might be a better hint
[08:31:29] zenspider: well... yeah. if they don't want to give you access to something... you either need to find a different way, or a way to cheat
[08:31:42] zenspider: luckily in ruby cheating isn't that hard
[08:32:13] Neptu: zenspider: attr_accessor :floating_ip
[08:32:21] zipace: has joined #ruby
[08:32:25] mathys: has joined #ruby
[08:32:25] Neptu: what this attr_accessor means?
[08:33:29] zenspider: generates a reader and writer method for an ivar
[08:33:55] tvw: has joined #ruby
[08:34:08] ablackack: has joined #ruby
[08:34:25] zenspider: not sure... that util spec or nova_spec.rb is probably where you want to look for clues
[08:34:44] Neptu: zenspider: mmmm https://github.com/ggiamarchi/vagrant-openstack-provider/blob/b424746268e8b239befe473c85e7ae0a364f9760/source/lib/vagrant-openstack-provider/config.rb
[08:34:51] Neptu: maybe that will be declared externally there
[08:35:26] Neptu: feels like a good point to start
[08:35:50] morfin: i know hack which can help with Ruby and Msys2 but that'
[08:35:53] ccooke: has joined #ruby
[08:36:00] morfin: that's some crap
[08:36:13] govg: has joined #ruby
[08:36:21] zenspider: Neptu: sure. good luck
[08:36:24] morfin: subst to create new drive with root D:\msys2 and then build/install
[08:36:32] volix: has joined #ruby
[08:36:58] morfin: so /home/myuser/.rbenv == G:\home\myuser\.rbenv
[08:37:12] zenspider: 75 minutes later and you're still not making sense
[08:37:39] Neptu: zenspider: one last question what @variable mean?
[08:37:52] zenspider: Neptu: that's an instance variable
[08:37:59] zenspider: check that URL you were sent before
[08:38:02] noctux: has joined #ruby
[08:38:04] morfin: zenspider, me?
[08:38:09] mtkd: has joined #ruby
[08:38:14] zenspider: Neptu: http://www.zenspider.com/ruby/quickref.html#variables
[08:38:36] zenspider: acalycine: hrm?
[08:38:45] Terens: has joined #ruby
[08:38:53] Terens: when developing a gem
[08:39:10] Terens: lets call it ape
[08:39:33] Terens: in bin/gorilla file should I use require 'bundler/setup' or not ?
[08:40:29] zenspider: Terens: independent gems should not be using bundler at all... use it for development, sure... but your code shouldn't touch it
[08:40:56] mark_66: has joined #ruby
[08:41:36] morfin: gems are isolated
[08:42:54] bvcosta: has joined #ruby
[08:42:54] Terens: so the correct is to declare dependencies in gemspec and require them ?
[08:43:12] Terens: and in development call my gem with bundle exec?
[08:44:08] zenspider: declare dependencies in gemspec. require any files you need where you need them. if you need bundle exec to run your stuff, you're probably doing it wrong
[08:44:27] jcao219: has joined #ruby
[08:44:49] zenspider: `ruby -Ilib bin_or_test/blah` or `rake test` should be 99% of what you need
[08:45:21] acalycine: is there a better way to handle dependency installs? as in, doing `bundle install` and being able to run your script with just `ruby ruby.rb`.
[08:45:23] vali: has joined #ruby
[08:46:20] unsymbol: has joined #ruby
[08:46:25] zenspider: yes, that should work fine
[08:46:34] zenspider: if it doesn't, then you're probably not requiring things you need
[08:46:36] jgt4: has joined #ruby
[08:49:44] nowhereman: has joined #ruby
[08:57:30] lxsameer: has joined #ruby
[08:58:51] Terens: zenspider if I have a dependecny 'event-machine' for example
[08:59:03] Terens: then shouldn't I require it somewher ein my code?
[09:01:06] andikr: has joined #ruby
[09:02:29] Terens: zenspider also how could i require development dependencies ?
[09:03:58] [dmp]: has joined #ruby
[09:04:23] Rodya_: has joined #ruby
[09:05:21] rohitpaulk: has joined #ruby
[09:08:06] im0nde: has joined #ruby
[09:09:44] kegster: has joined #ruby
[09:10:07] brendan-: has joined #ruby
[09:10:47] jgnagy: has joined #ruby
[09:11:28] bkxd: has joined #ruby
[09:13:46] herwin: I don't really understand that question: if you want to require development dependencies in the executable, wouldn't that make them runtime dependencies?
[09:14:10] Beams: has joined #ruby
[09:15:43] KeyJoo: has joined #ruby
[09:17:28] tomphp: has joined #ruby
[09:18:22] dminuoso: herwin: Then they are not development dependencies.
[09:18:56] dminuoso: herwin: A development dependency might `byebug' for example. Or maybe some mock adapter.
[09:19:19] tomphp: has joined #ruby
[09:19:41] dminuoso: Or maybe some gem that helps with generating some static assets that are bundled into the final gem.
[09:20:01] jgt: has joined #ruby
[09:21:15] dc2: has joined #ruby
[09:25:33] zenspider: development dependencies are probably going to be required in your rakefile or wherever you "development process" happens. that might be in your tests, rakefile, "build script"... I dunno.
[09:26:07] workmad3: has joined #ruby
[09:27:48] jenrzzz: has joined #ruby
[09:27:48] jenrzzz: has joined #ruby
[09:30:20] flying: has joined #ruby
[09:31:27] charliesome: has joined #ruby
[09:31:52] arquebus: has joined #ruby
[09:40:31] anisha: has joined #ruby
[09:41:40] Neptu: #<Object:0x00000002ed3dc8> how i can dump the contect of this object?
[09:43:41] tobiasvl: Neptu: normally #inspect — but you won't get any more information about an Object, it doesn't really have any content
[09:43:48] tobiasvl: what kind of content do you expect it to have?
[09:44:08] tobiasvl: https://ruby-doc.org/core-2.4.1/Object.html#method-i-inspect
[09:46:50] Neptu: tobiasvl: thanks
[09:48:26] zenspider: Neptu: try `require "pp"; pp that_obj`
[09:49:13] jdsampayo: has joined #ruby
[09:49:50] anisha: has joined #ruby
[09:50:14] aviraldg: has joined #ruby
[09:50:14] aviraldg: has joined #ruby
[09:50:41] Neptu: zenspider: managed to get an object using the variable floating_ip but donno what it is or contains... strange world... and it takes about 4 min to make another test so long story...
[09:51:23] Neptu: variable1=#<Object:0x00000001c090f8>
[09:51:24] nofxxxx: has joined #ruby
[09:51:35] Neptu: "grafana:vars" => {"variable1" => "#{cc.floating_ip.inspect}"}
[09:53:17] marr: has joined #ruby
[09:54:06] zenspider: Neptu: hope it is worth the effort. sounds like a pain.
[09:54:26] zenspider: ACTION goes to bed
[09:55:13] Neptu: zenspider: it is a pain...
[09:55:39] Neptu: zenspider: night...
[09:57:27] acalycine: has joined #ruby
[10:01:46] patarr: has joined #ruby
[10:03:25] tlaxkit: has joined #ruby
[10:05:11] Rodya_: has joined #ruby
[10:10:14] romank: has joined #ruby
[10:10:46] kegster: has joined #ruby
[10:11:06] bkxd: has joined #ruby
[10:13:47] hutch34: has joined #ruby
[10:18:28] bvcosta: has joined #ruby
[10:18:53] Pumukel: has joined #ruby
[10:21:55] ferr1: has joined #ruby
[10:22:40] acalycine: has joined #ruby
[10:23:48] dc2: has joined #ruby
[10:25:15] burgestrand: has joined #ruby
[10:25:40] JaReAx: has joined #ruby
[10:26:26] JaReAx: has joined #ruby
[10:28:51] chouhoulis: has joined #ruby
[10:33:37] anisha: has joined #ruby
[10:34:36] acalycine: has joined #ruby
[10:38:36] robnester: has joined #ruby
[10:46:05] Ishido: has joined #ruby
[10:46:47] olivier__: has joined #ruby
[10:50:38] Neptu: UNSET_VALUE is same as assign an empty object?
[10:51:39] Dutjub: has joined #ruby
[10:52:18] tobiasvl: it's a constant
[10:52:30] tobiasvl: seems to be a vagrant thing by googling. never heard of it
[10:56:09] Dutjub: has joined #ruby
[10:57:14] jdsampayo: has joined #ruby
[10:57:54] FastJack: has joined #ruby
[11:01:02] hosttor: has joined #ruby
[11:02:34] acalycine: has joined #ruby
[11:03:18] apeiros: Neptu: ruby doesn't have a concept of "empty object". do you mean nil? Object.new? {} (an empty hash)? something else?
[11:04:04] apeiros: and as tobiasvl said, UNSET_VALUE would be a constant. constants are a kind of variables. variables and objects are different concepts. variables reference objects. they aren't objects themselves.
[11:05:48] Rodya_: has joined #ruby
[11:07:23] gnufied: has joined #ruby
[11:08:49] antgel: has joined #ruby
[11:12:08] ahrs: has joined #ruby
[11:14:01] acalycine: has joined #ruby
[11:14:58] hs366: has joined #ruby
[11:21:53] Neptu: apeiros: just checking that is exactly this UNSET_VALUE
[11:23:40] charliesome: has joined #ruby
[11:23:58] apeiros: "that"? "this UNSET_VALUE"? contextual information is completely lacking…
[11:24:45] hobodave: has joined #ruby
[11:28:06] tobiasvl: Neptu: perhaps you want to join #vagrant
[11:28:30] vuoto: has joined #ruby
[11:28:47] tobiasvl: UNSET_VALUE seems to be a vagrant constant that's used to differentiate variables that are unset on purpose vs those that happen to be nil
[11:28:50] tobiasvl: or something
[11:29:55] Ishido: has joined #ruby
[11:31:23] rohitpaulk: has joined #ruby
[11:33:08] bvcosta: has joined #ruby
[11:35:46] Neptu: tobiasvl: #unfortunately vagrant channel is dead
[11:37:57] HoierM: has joined #ruby
[11:40:27] dminuoso: Neptu: They have a google group, an issue tracker on github..
[11:40:47] Vingador: has joined #ruby
[11:41:59] gregf_: has joined #ruby
[11:42:34] Neptu: dminuoso: already on it... but slow Im trying to solve this problem myself
[11:42:41] Neptu: and learn ruby on the process
[11:44:01] Neptu: attr_accessor :floating_ip
[11:44:08] Neptu: this : what means?
[11:46:08] tobiasvl: https://ruby-doc.org/core-2.2.0/Symbol.html
[11:46:17] tobiasvl: is #vagrant really dead? there are 320 people there
[11:46:55] conta: has joined #ruby
[11:50:14] Neptu: tobiasvl: been for a couple of days only me speaking... strange is a good project but really irc is dead
[11:50:32] Neptu: tobiasvl: yes too bad :(
[11:52:56] itaipu: has joined #ruby
[11:53:24] anisha: has joined #ruby
[11:54:57] flyingX: has joined #ruby
[11:55:46] anisha_: has joined #ruby
[11:56:46] ldnunes: has joined #ruby
[11:58:18] bigkevmcd: has joined #ruby
[11:58:20] nowhereman: has joined #ruby
[11:58:46] dminuoso: docker-compose build --no-cache
[11:58:49] dminuoso: ACTION kicks back
[11:59:10] dminuoso: https://xkcd.com/303/ I need a tshirt with this/
[12:00:14] ur5us: has joined #ruby
[12:02:46] patarr: has joined #ruby
[12:02:56] charliesome: has joined #ruby
[12:05:52] t-recx: has joined #ruby
[12:05:55] SaschaVoid: has joined #ruby
[12:06:35] Rodya_: has joined #ruby
[12:07:16] petruff1: has joined #ruby
[12:07:34] GinoMan: has joined #ruby
[12:08:00] cdg: has joined #ruby
[12:08:07] itaipu: has joined #ruby
[12:08:52] djbkd: has joined #ruby
[12:10:06] mim1k: has joined #ruby
[12:14:52] ldnunes: has joined #ruby
[12:17:43] Ishido: has joined #ruby
[12:20:19] charliesome: has joined #ruby
[12:21:01] milardovich: has joined #ruby
[12:24:59] bkxd: has joined #ruby
[12:25:40] Otti: has joined #ruby
[12:26:04] olivier__: has joined #ruby
[12:26:49] centrx: has joined #ruby
[12:27:21] pupsicle: has joined #ruby
[12:28:02] Fernando-Basso: has joined #ruby
[12:29:11] cdg_: has joined #ruby
[12:35:56] flying: has joined #ruby
[12:38:09] pupsicle: has joined #ruby
[12:39:25] Kug3lis: has joined #ruby
[12:42:44] jdawgaz: has joined #ruby
[12:43:01] kassav_: has joined #ruby
[12:43:10] GodFather: has joined #ruby
[12:43:53] De_Moivre: has joined #ruby
[12:44:04] shinnya: has joined #ruby
[12:46:02] De_Moivre: hello I am installing vagrant host-updater addon on Arch linux and I get this ruby error : https://paste.zkl.dk/siqovetehu.sql what does this signify?
[12:47:47] tobiasvl: De_Moivre: seems like the error message is cut off horizontally, so no idea
[12:47:54] tobiasvl: /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/source.rb:192:in `load': Marshal.load r
[12:48:02] morfin: ruby has specific version of File for Windows i guess?
[12:48:16] morfin: win32/file.c and win32/file.h
[12:48:54] De_Moivre: how can I bypass this?
[12:48:54] KeyJoo: has joined #ruby
[12:48:57] tobiasvl: morfin: what do you mean? .h is the C header file, .c is the implementation
[12:49:05] De_Moivre: dont use win32 :~0
[12:49:27] simon__: has joined #ruby
[12:49:52] De_Moivre: tobiasvl: how do you mean cut off horizontally?
[12:49:56] flying: has joined #ruby
[12:49:58] simon__: any good practices in ruby?
[12:50:04] morfin: i know what they are
[12:50:22] morfin: De_Moivre, i almost made it work
[12:50:36] De_Moivre: the plugin?
[12:50:43] morfin: i just need to understand what's wrong with Ruby File class
[12:51:01] De_Moivre: how can I give you that info?
[12:51:15] De_Moivre: I have never used ruby and cant learn it now ;P
[12:51:23] De_Moivre: too busy...
[12:51:52] kegster: has joined #ruby
[12:52:14] pupsicle: simon__: yes
[12:53:14] tobiasvl: De_Moivre: I mean that I don't see the whole lines in your paste
[12:53:18] tobiasvl: they stop abruptly
[12:53:37] De_Moivre: thats all that my term outputs
[12:53:52] De_Moivre: they gave out more
[12:53:58] De_Moivre: will paste it in a sec
[12:54:19] Jameser: has joined #ruby
[12:55:01] simon__: has left #ruby: ()
[12:55:02] tobiasvl: are you sure your terminal wraps lines
[12:55:04] De_Moivre: https://paste.zkl.dk/ayerugebov.hs
[12:55:09] De_Moivre: here you go
[12:55:30] De_Moivre: every so second attempt it outputs this
[12:55:52] tobiasvl: hm, that backtrace is missing the actual exception though
[12:55:56] tobiasvl: segfault, weird
[12:56:06] tobiasvl: I think it'd be better to ask a vagrant support channel
[12:56:25] De_Moivre: I will make an issue on the git-hub aswell
[12:56:36] De_Moivre: is there an packages I may be missing?
[13:02:29] jdsampayo: has joined #ruby
[13:04:16] bkxd: has joined #ruby
[13:05:30] drale2k: has joined #ruby
[13:07:37] Rodya_: has joined #ruby
[13:07:55] t-recx: has joined #ruby
[13:09:12] jgnagy: has joined #ruby
[13:10:25] AlexRussia: has joined #ruby
[13:10:45] symm-: has joined #ruby
[13:11:06] symm-: hi, is there a version of Array::delete that returns the remaining array?
[13:11:33] apeiros: symm-: don't think so. you can use #tap.
[13:11:54] herwin: [:a, :b] - [:a] does kind of what you're looking for
[13:12:09] petruff1: has joined #ruby
[13:12:31] symm-: oh that looks good herwin
[13:12:45] symm-: is #tap an Array function? can't find it listed
[13:13:44] ineb: Object#tap
[13:14:10] kegster: has joined #ruby
[13:16:34] symm-: ah that's actually lovely
[13:16:59] mostlybadfly: has joined #ruby
[13:19:20] centrx: symm-: Could also use keep_if with the opposite of your delete condition
[13:19:49] hutch34: has joined #ruby
[13:20:26] symm-: I see, I just went with delete_if for now to keep it chainable
[13:20:32] jdawgaz: has joined #ruby
[13:20:55] gnufied: has joined #ruby
[13:20:56] centrx: oh theer is a delete_if!
[13:21:17] jdawgaz: has joined #ruby
[13:22:07] jdawgaz: has joined #ruby
[13:22:53] swills: has joined #ruby
[13:22:57] jdawgaz: has joined #ruby
[13:26:00] helpa: has joined #ruby
[13:26:20] apeiros: symm-, herwin: beware, Array#- is a set operation
[13:26:29] apeiros: >> [1,2,2,3,2,4,5,2] - [2]
[13:26:30] ruby[bot]: apeiros: # => [1, 3, 4, 5] (https://eval.in/814033)
[13:26:45] uZiel: has joined #ruby
[13:26:51] symm-: yes, I want to remove all instances of 2
[13:27:08] symm-: >>[5,4,3,2,2,2]-[2]
[13:27:09] ruby[bot]: symm-: # => [5, 4, 3] (https://eval.in/814034)
[13:27:13] DLSteve: has joined #ruby
[13:27:14] symm-: seems to preserve order
[13:27:35] apeiros: ok, then last beware: Array#- being a set operation uses eql?, delete uses ==
[13:27:42] apeiros: (well, hash+eql?)
[13:27:50] rohitpaulk: has joined #ruby
[13:29:40] cadillac__: has joined #ruby
[13:30:07] ben_h: has joined #ruby
[13:30:18] Jameser: has joined #ruby
[13:36:13] gizmore: has joined #ruby
[13:36:40] Nightmare: has joined #ruby
[13:38:42] jdawgaz: has joined #ruby
[13:42:23] Cork: is it possible to customize what gets printed in the console when one run > TheClass.new (or a variable of the instance)?
[13:42:58] griffindy: has joined #ruby
[13:44:55] ljarvis: Cork: override the inspect method
[13:45:19] Cork: so class TheClass; def inspect ?
[13:45:29] Cork: sweet thx
[13:49:11] uZiel: has joined #ruby
[13:49:51] jdawgaz: has joined #ruby
[13:50:06] Rodya_: has joined #ruby
[13:50:18] mim1k: has joined #ruby
[13:50:18] ryzokuken_: has joined #ruby
[13:50:41] jdawgaz: has joined #ruby
[13:50:44] djbkd: has joined #ruby
[13:54:28] p0p0pr37_: has joined #ruby
[13:54:28] p0p0pr37_: has joined #ruby
[13:56:14] anisha: has joined #ruby
[13:59:38] jdawgaz: has joined #ruby
[14:03:25] tomphp: has joined #ruby
[14:06:41] hutch34: has joined #ruby
[14:06:55] chouhoulis: has joined #ruby
[14:11:54] itaipu: has joined #ruby
[14:15:02] oleo: has joined #ruby
[14:19:52] cschneid_: has joined #ruby
[14:19:55] gothicsouth: has joined #ruby
[14:20:36] patarr: has joined #ruby
[14:22:07] hobodave: has joined #ruby
[14:22:14] rohitpaulk: has joined #ruby
[14:22:48] gnufied: has joined #ruby
[14:24:15] SaschaVoid: has joined #ruby
[14:26:37] xiljin: has joined #ruby
[14:30:59] flying: has joined #ruby
[14:31:29] patarr: has joined #ruby
[14:32:23] hutch34: has joined #ruby
[14:33:42] sepp2k: has joined #ruby
[14:34:16] __Yiota: has joined #ruby
[14:35:10] sleetdrop: has joined #ruby
[14:35:13] LastWhisper____: has joined #ruby
[14:40:06] __Yiota: has joined #ruby
[14:40:32] hobodave: has joined #ruby
[14:43:48] antgel: has joined #ruby
[14:47:54] snockerton: has joined #ruby
[14:50:55] planigan: has joined #ruby
[14:52:51] ozcanesen: has joined #ruby
[14:53:03] guardian: hello, is the following idiomatic enough please?
[14:53:04] guardian: params[:class] = params[:class].nil? ? 'active' : (params[:class].split(' ') << 'active').uniq.join(' ')
[14:53:04] blackwind_123: has joined #ruby
[14:53:53] raul782: has joined #ruby
[14:55:28] leah2: params[:class] = (params[:class].to_s.split | ["active"]).join(' ') perhaps?
[14:56:18] leah2: or params[:class] || ""
[14:56:20] matthewd: It means something quite different though
[14:56:27] leah2: if you think .to_s is to agressive
[14:57:07] leah2: matthewd: sure?
[14:58:08] margeas: has joined #ruby
[14:58:31] jhass: so this is CSS classes I guess? I'd abuse that it doesn't care about the trailing space: "active #{params[:class]}"
[14:59:10] matthewd: leah2: Ah sorry, yeah, misread the first one
[14:59:44] jhass: if the trailing space is so terrible to you: ["active", *params[:class]].uniq.join(" ")
[15:00:53] guardian: what's *params?
[15:01:19] jhass: >> [*nil]
[15:01:20] ruby[bot]: jhass: # => [] (https://eval.in/814100)
[15:01:24] jhass: >> [*"foo"]
[15:01:25] ruby[bot]: jhass: # => ["foo"] (https://eval.in/814101)
[15:03:34] guardian: thanks, I learnt something new
[15:06:01] rippa: has joined #ruby
[15:06:12] tvon: has joined #ruby
[15:07:51] De_Moivre: has joined #ruby
[15:09:12] cschneid_: has joined #ruby
[15:10:07] segmond: has joined #ruby
[15:11:06] latemus: has joined #ruby
[15:11:21] olivier__: has joined #ruby
[15:12:03] griffindy: has joined #ruby
[15:13:57] tomphp: has joined #ruby
[15:16:07] psychicist__: has joined #ruby
[15:16:17] morfin: miniruby use same sources as ruby?
[15:16:43] chalkmonster: has joined #ruby
[15:19:27] raul782: has joined #ruby
[15:19:55] hobodave: has joined #ruby
[15:21:04] rohitpaulk: has joined #ruby
[15:26:25] lacour: has joined #ruby
[15:29:02] alamar: has joined #ruby
[15:29:58] cdg: has joined #ruby
[15:30:31] mark_66: has joined #ruby
[15:35:53] ascarter: has joined #ruby
[15:40:43] mtkd: has joined #ruby
[15:41:23] ascarter: has joined #ruby
[15:41:49] chalkmonster: has joined #ruby
[15:44:31] bvcosta: has joined #ruby
[15:44:39] mikecmpb_: has joined #ruby
[15:44:57] bkxd: has joined #ruby
[15:48:57] arup_r: has joined #ruby
[15:50:22] bkxd: has joined #ruby
[15:52:25] rkazak_: has joined #ruby
[15:58:27] DrCode: has joined #ruby
[16:02:38] raspado: has joined #ruby
[16:04:05] amclain: has joined #ruby
[16:04:19] mikecmpbll: has joined #ruby
[16:07:48] Norno: has joined #ruby
[16:08:50] Norno: How would you write `first.second.map { |a| a + 1 }` to avoid rubocop's "Parenthesize the param to make sure that the block will be associated with the method call" error?
[16:09:32] Norno: oh wait, it was because I was using puts without parenthesis
[16:10:04] baweaver: what's the actual code?
[16:10:10] baweaver: because it shouldn't care about that
[16:11:01] Norno: `puts first.second.map { |a| a + 1 }`
[16:11:52] baweaver: ah, then that might, though you may just move the map up and assign it to a var
[16:12:20] apeiros: Norno: that's about puts' params
[16:12:30] apeiros: puts(foo { … })
[16:12:44] apeiros: or as baweaver said - assign it to a var before printing
[16:12:59] Norno: yep, I realized. That's what I meant with "oh wait, it was because I was using puts without parenthesis"
[16:13:04] Norno: thanks though
[16:14:44] mikecmpbll: has joined #ruby
[16:16:29] tomphp: has joined #ruby
[16:18:12] SaschaVoid: has joined #ruby
[16:18:12] troys: has joined #ruby
[16:18:18] brent__: has joined #ruby
[16:21:48] gusrub: has joined #ruby
[16:22:05] cfec0b8d: has joined #ruby
[16:23:15] mim1k: has joined #ruby
[16:30:20] nowhereman: has joined #ruby
[16:30:29] mikecmpbll: has joined #ruby
[16:31:15] nitric: has joined #ruby
[16:32:05] MrSparkle: has joined #ruby
[16:38:16] kies: has joined #ruby
[16:38:26] bvcosta: has joined #ruby
[16:46:00] cfec0b8d: has joined #ruby
[16:49:57] rohitpaulk: has joined #ruby
[16:50:05] mim1k: has joined #ruby
[16:54:57] shortdudey123: has joined #ruby
[16:55:53] FastJack: has joined #ruby
[16:56:46] shortdudey123: has joined #ruby
[16:57:04] gusrub: has joined #ruby
[16:58:00] mackesque: has joined #ruby
[16:58:07] millerti: has joined #ruby
[17:04:02] cbyrda: has joined #ruby
[17:04:26] SeepingN: has joined #ruby
[17:07:17] cfec0b8d: has joined #ruby
[17:09:37] c_nick: has joined #ruby
[17:10:29] petruff1: has joined #ruby
[17:12:33] pb122: has joined #ruby
[17:13:02] stormbytes: has joined #ruby
[17:15:13] mikecmpbll: has joined #ruby
[17:15:27] kirun: has joined #ruby
[17:15:40] gothicsouth: has joined #ruby
[17:17:55] kegster: has joined #ruby
[17:18:58] bambanx: has joined #ruby
[17:20:30] itaipu: has joined #ruby
[17:21:39] bmurt: has joined #ruby
[17:23:25] symm-: has joined #ruby
[17:24:04] lupine: has joined #ruby
[17:27:11] kegster: has joined #ruby
[17:33:23] gothicsouth: has joined #ruby
[17:35:57] olivier__: has joined #ruby
[17:36:18] olivier__: has joined #ruby
[17:40:44] ivanskie: has joined #ruby
[17:41:01] duderonomy: has joined #ruby
[17:43:36] ivanskie: so i wrote some code that downloads some stuff from industrial devices. i used yaml for config file, and csv for list of devices, names, and their ip addresses. originally thought would only be used at one site.
[17:43:59] bkxd: has joined #ruby
[17:44:06] tomphp: has joined #ruby
[17:45:16] ivanskie: now realized can use it at another site. but since its being run from windows2008 server using travelingruby.. i don't know if i want to duplicate the code, and files for the other site. or make this more complex and promt for which site at runtime to check diff config file or info.
[17:45:57] ivanskie: kind of thinking about using sinatra to manage the config file, list of devices, and provide friendly front end to run the code and then get resulting data back.
[17:47:10] dionysus69: has joined #ruby
[17:47:13] ivanskie: And the question is two pronged to "y'all" is, should i just make a copy of the whole thing, and tell the ppl who'll be using it to use one for one site and use another for another. or show off my skills and extend the functionality.
[17:47:46] Kug3lis: has joined #ruby
[17:48:35] dionysus69: I started reading my birthday present! well grounded rubyist! 2nd edition :)
[17:48:44] ivanskie: and if i extend the functionality to using sintra, what would be the best way (easiset/simplest) to work with the data. site:{device_credentials,uids,url,devices:[device_name, ip]}
[17:48:46] ivanskie: great book!
[17:49:28] pupsicle: has joined #ruby
[17:49:39] ivanskie: currently im using config yaml file for credentials, uids[], and csv for devices(device_name,ip,url).
[17:50:36] ivanskie: considering going the json route. kind of wish using active_model wasn't an overkill for a small program here.
[17:50:57] ivanskie: looking for suggestions :)
[17:51:05] ecuanaso: has joined #ruby
[17:51:34] kegster: has joined #ruby
[17:51:51] olivier__: has joined #ruby
[17:52:56] ivanskie: guess could bake my own nano thing.
[17:53:17] tomphp: has joined #ruby
[17:56:55] dc2: has joined #ruby
[17:58:56] rohitpaulk: has joined #ruby
[17:59:23] Rodya_: has joined #ruby
[18:01:29] kegster: has joined #ruby
[18:03:19] raul782: has joined #ruby
[18:03:48] NightMonkey: has joined #ruby
[18:04:27] GinoMan2440: has joined #ruby
[18:05:56] t-recx: has joined #ruby
[18:07:25] hutch34: has joined #ruby
[18:07:32] cpruitt: has joined #ruby
[18:07:59] mathys: has joined #ruby
[18:10:10] RobertBirnie: has joined #ruby
[18:10:49] baweaver: mackesque: looking for something?
[18:11:47] mackesque: baweaver: a cure for fat fingers? :)
[18:12:12] baweaver: heh, fair enough
[18:12:24] baweaver: was thinking you might be after: /cs access #channel list
[18:12:26] baweaver: or something
[18:18:48] dreamthese: has joined #ruby
[18:19:15] c_nick: I need to parse a yml ,csv and xml file, is there a generic parser kind that parses all or do i need to parse these separately -> yaml parser, csv parser and xml parser
[18:19:18] spastorino: has joined #ruby
[18:19:54] pupsicle: require 'universal_parser'
[18:22:41] hobodave_: has joined #ruby
[18:26:40] TinkerTyper: has joined #ruby
[18:28:30] SaschaVoid: has joined #ruby
[18:29:05] c_nick: pupsicle, wow this is fantastic! i dont need to code, everything is taken care of!
[18:29:38] gusrub: has joined #ruby
[18:30:56] ecuanaso: has joined #ruby
[18:31:11] SeepingN: puts needful.do; end
[18:31:48] kegster: has joined #ruby
[18:33:05] mim1k: has joined #ruby
[18:35:10] ben_h: has joined #ruby
[18:35:50] Brent___: has joined #ruby
[18:37:20] brent____: has joined #ruby
[18:38:57] ozcanesen: has joined #ruby
[18:43:47] jenrzzz: has joined #ruby
[18:43:48] jenrzzz: has joined #ruby
[18:46:41] dkam: has joined #ruby
[18:50:04] cadillac__: has joined #ruby
[18:50:10] mim1k: has joined #ruby
[18:51:04] klaas: has joined #ruby
[18:52:02] brent__: has joined #ruby
[18:52:09] milardovich: has joined #ruby
[18:52:44] olivier__: has joined #ruby
[18:53:19] mjuszczak: has joined #ruby
[18:54:21] nitric: has joined #ruby
[18:56:44] gnufied: has joined #ruby
[18:58:51] olivier__: has joined #ruby
[19:00:29] Rodya_: has joined #ruby
[19:01:14] kegster: has joined #ruby
[19:05:47] mackesque: has joined #ruby
[19:06:40] shinnya: has joined #ruby
[19:06:55] gusrub: has joined #ruby
[19:11:47] prubini87: has joined #ruby
[19:11:48] mjuszczak: has joined #ruby
[19:13:19] dc2: has joined #ruby
[19:13:20] zapata: has joined #ruby
[19:13:23] lxsameer: has joined #ruby
[19:14:21] Kug3lis_: has joined #ruby
[19:14:55] prubini87: Hi! Does anyone know how I can write a (simple?) command-line program that actively reads data from a socket (or anything else that streams constantly) and also actively listens to user input, that is, keeps the command line open for input, allowing for the input of commands... (writing to the socket, basically)? My problem is with this logic of listening to both things, the socket stream and
[19:14:55] prubini87: the user input simultaneously.
[19:14:57] gusrub: has joined #ruby
[19:15:51] chouhoul_: has joined #ruby
[19:17:28] Kug3lis_: has joined #ruby
[19:17:39] apeiros: &ri IO.select prubini87
[19:17:39] `derpy: prubini87: http://ruby-doc.org/core-2.4.1/IO.html#method-c-select
[19:19:29] ozzy3: has joined #ruby
[19:20:06] prubini87: @apeiros, @`derpy, thank you! I'll take a look at that! ;D
[19:20:13] mtkd: has joined #ruby
[19:20:42] apeiros: prubini87: `derpy is a bot ;-)
[19:21:49] centrx: has joined #ruby
[19:23:50] ur5us: has joined #ruby
[19:24:14] jcao219: has joined #ruby
[19:26:48] jdawgaz: has joined #ruby
[19:27:35] Pumukel: has joined #ruby
[19:31:20] cjhowe7: has joined #ruby
[19:34:00] Kug3lis: has joined #ruby
[19:34:36] dc2: has joined #ruby
[19:36:59] mattp_: has joined #ruby
[19:37:35] KeyJoo: has joined #ruby
[19:37:41] bkxd: has joined #ruby
[19:37:43] chmuri: has joined #ruby
[19:41:05] Otti: has joined #ruby
[19:42:23] mjuszczak: has joined #ruby
[19:42:31] bchlli: has joined #ruby
[19:44:33] raul782: has joined #ruby
[19:44:57] jdawgaz: has joined #ruby
[19:44:59] mesamoo: has joined #ruby
[19:45:52] bchlli: has left #ruby: ("WeeChat 1.5")
[19:47:13] mim1k: has joined #ruby
[19:49:11] jenrzzz: has joined #ruby
[19:50:52] dasher00: has joined #ruby
[19:52:40] ivanskie: is there something similar to active_record but for non-rails apps?
[19:53:45] milardovich: has joined #ruby
[19:55:24] chouhoulis: has joined #ruby
[19:55:31] bchlli: has joined #ruby
[19:56:36] ivanskie: I have a predefined class Config. I want to have a folder Sites with site1.rb..etc files each following the same format of Config class.
[19:57:12] ivanskie: then have an array of Sites, each with its own instance of Config object.
[19:57:52] ivanskie: not sure what to put into the site.rb file
[19:59:30] ivanskie: do i do "class Sitename" and "extends Config"? orrr
[20:00:20] ivanskie: i haven't done this kind of stuff outside of rails before. but i wrote a program which reads config.yml file, and csv file with device names and ip addresses. and this was for a single site.
[20:01:07] patarr1: has joined #ruby
[20:01:20] Rodya_: has joined #ruby
[20:01:35] ivanskie: now i have to do this for multiple sites. and i'm thinking about having config files in Sites folder, have the code read each file....
[20:02:06] KeyJoo: has joined #ruby
[20:03:03] itaipu: has joined #ruby
[20:03:19] ivanskie: and also trying to make it easier for whomever is going to use it.
[20:04:57] al2o3-cr: has joined #ruby
[20:06:25] ivanskie: would have been nice if i could combine csv and yaml into a single file. hmm. make my own .site filename with markers all lines before marker interpret with YAML, all lines after marker interpret with CSV. hah
[20:06:31] ivanskie: solves two problems
[20:06:41] ivanskie: except can't open in excel
[20:07:05] ivanskie: trying to stay dry
[20:09:15] olivier__: has joined #ruby
[20:10:01] dc2: has joined #ruby
[20:10:39] ascarter: has joined #ruby
[20:15:57] jenrzzz: has joined #ruby
[20:15:58] jenrzzz: has joined #ruby
[20:18:24] im0nde: has joined #ruby
[20:20:06] olivier__: has joined #ruby
[20:25:10] ur5us: has joined #ruby
[20:27:07] mjuszczak: has joined #ruby
[20:27:27] zenspider: ivanskie: you can use active_record on non-rails apps too.
[20:29:42] zenspider: there are also libraries for reading excel spreadsheets, but I have no clue how good they are. I avoid stuff like that
[20:29:50] kegster: has joined #ruby
[20:29:58] mkillebrew: has joined #ruby
[20:30:24] mjuszczak: has joined #ruby
[20:32:00] pbruna: has joined #ruby
[20:32:05] ccooke_: has joined #ruby
[20:32:09] sebd: has joined #ruby
[20:32:34] jenrzzz_: has joined #ruby
[20:33:03] mjuszczak: has joined #ruby
[20:33:10] DEac-: has joined #ruby
[20:33:11] forgot: has joined #ruby
[20:33:11] KillerFox: has joined #ruby
[20:34:31] helpa: has joined #ruby
[20:35:51] ivanskie: I've worked with excel files in ruby before. it can be annoying, but does work.
[20:35:52] bokayio: has joined #ruby
[20:36:29] ivanskie: i could in theory just have a site definition file as an excel file..... hm
[20:36:59] ivanskie: that does solve the problem, but i'd have to rewrite most of my core code since its working in csv
[20:37:17] bkxd: has joined #ruby
[20:37:42] diegok: has joined #ruby
[20:37:57] Didac: has joined #ruby
[20:38:20] FastJack: has joined #ruby
[20:38:25] ivanskie: i've landed on defining site config in .yml file. then instanciating a Config object for each of these. hmm
[20:38:26] texasmynsted: has joined #ruby
[20:40:20] gothicsouth: has joined #ruby
[20:44:23] tvw: has joined #ruby
[20:49:53] ascarter: has joined #ruby
[20:50:55] mathys: has joined #ruby
[20:53:30] faelkle: has joined #ruby
[20:55:36] pupsicle: has joined #ruby
[20:56:11] faelkle: has joined #ruby
[20:56:12] faelkle: has joined #ruby
[20:58:18] boombox_: has joined #ruby
[20:58:23] justizin: has joined #ruby
[20:58:35] SaschaVoid: has joined #ruby
[20:58:44] hobodave: has joined #ruby
[21:02:37] kies: has joined #ruby
[21:03:16] Rodya_: has joined #ruby
[21:06:43] ddffg: has joined #ruby
[21:09:04] ascarter: has joined #ruby
[21:10:23] ben_h: has joined #ruby
[21:14:24] SaschaVoid: has joined #ruby
[21:16:14] perniciouscaffei: has joined #ruby
[21:17:13] milardovich: has joined #ruby
[21:24:21] faelkle: has joined #ruby
[21:24:22] faelkle: has joined #ruby
[21:24:26] omab: has joined #ruby
[21:24:45] LucasTT: can someone think of a native (C) gem that is (1) popular; (2) has no external deps; (3) is very fast to build? (it's for a tutorial)
[21:32:21] DrCode: has joined #ruby
[21:33:43] stryek_: has joined #ruby
[21:34:11] SaschaVoid: has joined #ruby
[21:34:28] my123: has joined #ruby
[21:34:28] my123: has joined #ruby
[21:35:05] Didac: has joined #ruby
[21:36:12] matthewd: lucas__: kgio is a dep of unicorn
[21:36:36] LucasTT: thanks, actually I've found ffi
[21:36:45] LucasTT: which makes it easy to write a hello world app
[21:37:36] olivier__: has joined #ruby
[21:37:51] matthewd: Ah yep, much better
[21:42:02] arup_r: has joined #ruby
[21:42:33] vikaton: has joined #ruby
[21:42:59] dkam: has joined #ruby
[21:48:27] tomphp: has joined #ruby
[21:51:50] prubini87: has joined #ruby
[21:55:34] darix: lucas__: fast blank
[21:56:16] DropsOfSerenity: has joined #ruby
[21:56:18] jenrzzz: has joined #ruby
[21:56:19] jenrzzz: has joined #ruby
[21:56:25] DropsOfSerenity: has left #ruby: ()
[21:59:23] prubini87: has joined #ruby
[22:00:53] ecuanaso: has joined #ruby
[22:02:37] DropsOfSerenity: has joined #ruby
[22:03:51] gaurav: has joined #ruby
[22:04:03] Rodya_: has joined #ruby
[22:04:20] cbrad: has joined #ruby
[22:04:21] piotrj: has joined #ruby
[22:05:14] ivanskie: when I include a Class within a Module, does that Class then extends the module?
[22:06:31] apeiros: ivanskie: you can't include a class
[22:06:53] apeiros: do you mean "nest a class within a module"? as in: "module Foo; class Bar; …"?
[22:07:02] ivanskie: i think so.
[22:07:15] apeiros: no. nesting does not affect class hierarchy.
[22:07:43] apeiros: all it affects is constant lookup (both, how constants within Bar are looked up, and how Bar is looked up, the absolute "path" being ::Foo::Bar)
[22:08:01] ivanskie: i should probably upload it to github
[22:08:58] my123: has joined #ruby
[22:08:59] my123: has joined #ruby
[22:09:00] Olipro: has joined #ruby
[22:09:10] milardov_: has joined #ruby
[22:09:44] apeiros: I'm not around for too much longer, though (but there are probably others around)
[22:12:37] N0ATN: has joined #ruby
[22:15:15] apeiros: ivanskie: before I go, just to clear up your terminology:
[22:15:31] mjuszczak: has joined #ruby
[22:15:39] apeiros: class Foo; extend SomeModule; end # extending in ruby, also works with any object: some_obj.extend SomeModule
[22:16:01] millerti: has joined #ruby
[22:16:10] apeiros: class Foo; include SomeModule; end # including in ruby, only works with classes and modules, though the way it works with modules is sleightly weird
[22:16:27] apeiros: class Foo < SomeClass; end # inheriting in ruby (NOT called extending, mind you!)
[22:16:59] apeiros: module Foo; class Bar; end; end # nesting in ruby, makes the class available as Foo::Bar, also works with classes as namespace: class Foo; class Bar; end; end
[22:17:07] brent__: has joined #ruby
[22:17:30] apeiros: extend/include both only accept modules as argument (extend/include are methods, Object#extend and Module#include)
[22:18:32] Brent___: has joined #ruby
[22:18:47] Brent___: has joined #ruby
[22:19:38] ivanskie: https://gist.github.com/i5okie/fed889b444d2165e4770a598cdf4b7d4
[22:20:28] prubini87: has joined #ruby
[22:20:43] felltir: has joined #ruby
[22:23:16] raul782: has joined #ruby
[22:25:16] workmad3_: has joined #ruby
[22:27:22] ecuanaso: has joined #ruby
[22:28:49] jcao219: has joined #ruby
[22:29:07] hutch34: has joined #ruby
[22:30:37] prubini87: has joined #ruby
[22:30:54] bkxd: has joined #ruby
[22:32:53] jdsampayo: has joined #ruby
[22:36:37] itaipu: has joined #ruby
[22:37:11] ledestin: has joined #ruby
[22:37:16] im0nde: has joined #ruby
[22:38:48] nertzy: has joined #ruby
[22:40:45] prubini87: has joined #ruby
[22:41:45] ivanskie: so originally i just had one set of files config.yml, devices.csv and one app.rb file.. reading config, list of devices, downloading all files. now i have multiple sites to do this for, from the same code. so instead of just copying the folder with the app, i decided to make it more complicated and have a folder with site.yml and site.csv, and for code to read each and download for each site. https://gist.github.com/i5okie/fed889b444d
[22:42:52] ivanskie: but this is the most complex Ruby project i've worked on to date (outside of rails apps). i don't HAVE to do it, but i challenged myself.
[22:43:18] Rutix: has joined #ruby
[22:43:19] Rutix: has joined #ruby
[22:43:20] ivanskie: and now trying to figure out how to execute.
[22:46:04] gothicsouth: has joined #ruby
[22:46:11] ivanskie: so does this look right? https://gist.github.com/i5okie/fed889b444d2165e4770a598cdf4b7d4
[22:47:32] mjuszczak: has joined #ruby
[22:48:56] Radar: https://gist.github.com/i5okie/fed889b444d2165e4770a598cdf4b7d4#file-app-rb-L15-L18
[22:48:57] Radar: What is this?
[22:49:01] prubini87: has joined #ruby
[22:49:05] Radar: https://gist.github.com/i5okie/fed889b444d2165e4770a598cdf4b7d4#file-app-rb-L30-L35
[22:49:06] Radar: What are those?
[22:49:19] Radar: Is this psuedo-code?
[22:50:20] Radar: https://gist.github.com/i5okie/fed889b444d2165e4770a598cdf4b7d4#file-purpose-L6
[22:50:23] Radar: Each device, or each site?
[22:53:47] AndBobsYourUncle: has joined #ruby
[22:53:54] hobodave: has joined #ruby
[22:56:07] raul782: has joined #ruby
[22:58:03] prubini87: has joined #ruby
[23:05:05] Rodya_: has joined #ruby
[23:06:03] prubini87: has joined #ruby
[23:09:35] ivanskie: sorry didn't notice u were saying stuff
[23:09:46] ivanskie: have to connect to each device.
[23:10:17] ivanskie: and uhm thats just high overview. not actual code.
[23:10:35] ivanskie: . represents methods and : variables
[23:11:23] ivanskie: i was going to upload code to github but then started working on this, and if I upload now it won't make any sense to anyone
[23:14:38] prubini87: has joined #ruby
[23:17:08] ivanskie: expanding the app to reading multiple site config files and csv files using modules and classes, is probably overkill. but i was considering making this a sinatra app or a Gem in the future.
[23:21:22] eb0t: has joined #ruby
[23:21:46] def_jam: has joined #ruby
[23:22:13] Uranio: has joined #ruby
[23:22:33] Uranio: has left #ruby: ()
[23:23:09] prubini87: has joined #ruby
[23:27:59] cschneid_: has joined #ruby
[23:30:26] bkxd: has joined #ruby
[23:31:22] ivanskie: this is the code that only reads single config and .csv file: https://github.com/i5okie/pxgMapFetcher that i'm trying to expand to multi-site.. etc
[23:35:19] felltir: has joined #ruby
[23:36:03] poloych: has joined #ruby
[23:36:33] poloych: has joined #ruby
[23:43:59] prubini87: has joined #ruby
[23:51:10] alveric1: has joined #ruby