« Back to channel list

#ruby - 16 May 2018

« Back 1 day Forward 1 day »
[00:01:44] SeepingN: surely in 2018 you're starting with at LEAST ruby 2.0....
[00:03:20] duderonomy: has joined #ruby
[00:03:25] havenwood: Echo6: You should grab a modern Ruby. What type of system are you on? How'd you install Ruby?
[00:05:30] _antares_: has joined #ruby
[00:05:39] fercell: has joined #ruby
[00:06:10] n0m4d1c: has joined #ruby
[00:11:18] havenwood: Echo6: Ruby 2.4 or 2.5 are great options.
[00:12:10] ellcs1: has joined #ruby
[00:15:45] kmurphy4: has joined #ruby
[00:16:26] za1b1tsu: has joined #ruby
[00:16:28] Echo6: I'm on Debian
[00:16:34] Echo6: apt-get install ruby
[00:16:51] Echo6: However, I just downloaded the source and completed compiling
[00:17:01] Echo6: Just need to determine the next step.
[00:17:12] crankharder: has joined #ruby
[00:18:02] havenwood: Echo6: You removed the apt package and compiled Ruby 2.5.1 from source?
[00:18:22] Echo6: Didn't remote the apt package yet.
[00:18:42] Echo6: I have the compiled binaries in a folder just need to figure out where to put them.
[00:19:02] Echo6: But good through, brb, going to remove the apt package
[00:19:04] havenwood: You mean the `ruby` and `gem` bins?
[00:19:32] havenwood: Just add the bin/ dir to your PATH.
[00:19:48] Echo6: Removed the apt package.
[00:20:34] fercell: has joined #ruby
[00:20:48] Echo6: Not sure how to add it to my path
[00:21:06] havenwood: export PATH="/path/to/ruby/bin:$PATH"
[00:21:19] Echo6: nice, adding that to my saves.
[00:21:29] havenwood: Echo6: If this is a dev box, you might consider a Ruby version switcher like chruby - which will set PATH, GEM_HOME, etc for you: https://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[00:22:25] arescorpio: has joined #ruby
[00:22:45] Echo6: It worked, beautiful.
[00:24:47] havenwood: Echo6: You'll probably want to add the gem bin dir to your PATH as well: export PATH="$(gem env gemdir)/bin:$PATH"
[00:25:16] havenwood: Echo6: (So you installed gem executables are also in your PATH.)
[00:25:26] havenwood: Echo6: Then you should be able to: gem install rake && rake
[00:25:44] Echo6: This is pretty painless
[00:26:22] jenrzzz: has joined #ruby
[00:29:49] Dykam: has joined #ruby
[00:30:23] Vashy: is it possible to tell if a linux command is installed/available from a ruby script?
[00:30:47] Vashy: e.g. I want to run: output = `lspci`
[00:30:59] Vashy: but how do I check if lspci is even available/installed ?
[00:31:32] havenwood: Vashy: system 'command', '-v', 'lspci'
[00:32:09] havenwood: Vashy: `true` if it exists, `false` if it doesn't
[00:32:23] Vashy: and if it returns nil?
[00:32:26] Vashy: which is what I'm getting
[00:32:38] havenwood: not a POSIX system?
[00:32:44] Vashy: [5] pry(main)> system 'command', '-v', 'lspci'
[00:32:47] Vashy: I'm on Ubuntu
[00:33:13] Vashy: lspci definitely outputs
[00:33:21] ramfjord: has joined #ruby
[00:33:43] Vashy: I'll look up the system docs
[00:33:47] Vashy: thanks havenwood !
[00:34:05] havenwood: Vashy: hrm, seems to be a dash issue with `command`
[00:34:12] havenwood: Vashy: lemme try on Ubuntu
[00:35:20] havenwood: Vashy: system 'which', 'lspci'
[00:35:48] Vashy: thanks again!
[00:35:57] GodFather: has joined #ruby
[00:37:19] alfiemax: has joined #ruby
[00:50:23] Echo6: Any thoughts on what I'm missing? Is there a log file I can check somewhere? https://pastebin.com/raw/daifjVMj
[00:50:23] ruby[bot]: Echo6: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[00:50:31] Echo6: Is it possible the code is just junk?
[00:51:21] Echo6: Just a sec, I have to repost the output
[00:52:21] havenwood: Echo6: It looks like you didn't have libreadline installed when you compiled Ruby so it didn't link. There's a readline gem, but I'd install the deps and rebuild Ruby.
[00:53:13] havenwood: Echo6: ruby-install would do the deps for you. you can install them manually if you'd prefer: sudo apt-get install -y build-essential bison zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libffi-dev
[00:53:28] havenwood: Echo6: Guessing you don't have libreadline-dev installed?
[00:54:03] Echo6: https://paste.ee/p/NilUf#dnN4cOteW9m7lLtCHXf9EWzLsgIeNdN3
[00:54:04] havenwood: Echo6: If you do recompile Ruby, consider linking jemalloc while you're at it for a nice performance increase and less memory usage.
[00:54:14] havenwood: Just add a `--with-jemalloc` flag.
[00:54:22] havenwood: (After installing jemalloc.)
[00:54:42] havenwood: Echo6: That's still Ruby 2.0.
[00:54:56] havenwood: "/usr/local/lib/ruby/2.0.0"
[00:55:15] Echo6: Yeah, trying to get something specific to run that said it didn't recommend above 2.0
[00:55:33] Echo6: I'm getting close to giving up on the piece of junk though.
[00:55:34] havenwood: That's mighty old. What're you trying to get running?
[00:55:40] Echo6: Loving ruby regardless
[00:55:54] havenwood: Echo6: I'd be quite suspicious of something requiring such an old Ruby.
[00:55:57] Echo6: an integration between an asterisk system and trello
[00:56:54] duderonomy: has joined #ruby
[00:59:03] jottr: has joined #ruby
[01:00:27] Echo6: Yup, that's enough of that.
[01:00:45] Echo6: I'm going to upgrade this puppy to the current version so I can play.
[01:01:34] Echo6: I am like ruby
[01:01:46] Dykam: has joined #ruby
[01:02:12] Echo6: So what exactly is ruby on rails? I hear about it all the time but haven't looked into it. I spend most of my day in C# and PHP.
[01:02:47] Vashy: it's a pretty nice web framework
[01:02:49] havenwood: Echo6: Laravel and Cake are basically Rails clones, if you're familiar with them.
[01:03:18] havenwood: Echo6: It goes a bit beyond a normal framework in that it modifies the Ruby language somewhat, which Ruby allows for.
[01:03:20] Echo6: Yup, was working in Laravel before I tumbled down this rabbit hole tonight.
[01:03:59] Echo6: I would prefer to get the ins and outs of ruby down before I mess with frameworks though.
[01:04:01] havenwood: Echo6: Rails is one of many Rack frameworks in Ruby. Rack is the standardized webserver.
[01:04:14] Echo6: Also good to know
[01:04:23] white_lilies: has joined #ruby
[01:04:25] havenwood: Echo6: I really like Roda: https://github.com/jeremyevans/roda
[01:04:49] havenwood: http://roda.jeremyevans.net/
[01:05:03] havenwood: Hanami is also quite nice, and more along the lines of Rails.
[01:05:15] havenwood: http://hanamirb.org/
[01:06:13] Echo6: very Laravel-esq I see
[01:06:17] Echo6: Very interesting
[01:07:30] venmx_: has joined #ruby
[01:12:28] venmx: has joined #ruby
[01:14:14] xuanrui: has joined #ruby
[01:16:47] Radar: I love Hanami. I'm building a little Hanami + React app at the moment: github.com/radar/twist-v2
[01:17:30] venmx: has joined #ruby
[01:18:09] Radar: https://ryanbigg.com/2018/03/my-thoughts-on-hanami <- and I wrote up my thoughts on it a few months ago
[01:18:25] alfiemax: has joined #ruby
[01:22:34] venmx_: has joined #ruby
[01:25:54] BTRE: has joined #ruby
[01:27:33] venmx: has joined #ruby
[01:32:29] dinfuehr: has joined #ruby
[01:32:44] venmx_: has joined #ruby
[01:33:17] karapetyan: has joined #ruby
[01:33:55] kmurphy4: has joined #ruby
[01:36:37] coderphive: has joined #ruby
[01:36:38] n0m4d1c: has joined #ruby
[01:41:38] venmx: has joined #ruby
[01:42:53] amar: has joined #ruby
[01:44:57] roamingdog: has joined #ruby
[01:45:42] roamingdog: has joined #ruby
[01:46:32] roamingdog: has joined #ruby
[01:46:42] venmx_: has joined #ruby
[01:47:15] roamingdog: has joined #ruby
[01:48:05] roamingdog: has joined #ruby
[01:50:10] chocoelho: has joined #ruby
[01:51:45] venmx: has joined #ruby
[01:52:08] Jameser: has joined #ruby
[01:56:55] venmx_: has joined #ruby
[02:01:59] venmx: has joined #ruby
[02:04:26] za1b1tsu: has joined #ruby
[02:06:23] bmurt: has joined #ruby
[02:07:01] venmx_: has joined #ruby
[02:08:15] coderphive: has joined #ruby
[02:09:08] bmurt: has joined #ruby
[02:12:09] venmx: has joined #ruby
[02:13:44] alfiemax: has joined #ruby
[02:17:03] venmx_: has joined #ruby
[02:27:07] venmx: has joined #ruby
[02:27:22] jottr: has joined #ruby
[02:28:30] Janky: any access gurus in here?
[02:32:14] venmx_: has joined #ruby
[02:32:45] Janky: MS Access
[02:33:00] Janky: not sure where to ask questions on it, doesn't seem to be a chan for it here
[02:33:10] Janky: shot in the dark
[02:34:35] mozzarella: I've used it in the past, but I'm in no way a guru
[02:35:17] Janky: I just started a new job doing accounts receivable for a large company
[02:35:27] Janky: they literally list all of their invoices on a single spreadsheet
[02:35:31] Janky: it's about 50,000 lines
[02:35:43] Janky: I was trying to figure out a way to use access to display this data
[02:37:33] venmx: has joined #ruby
[02:42:50] venmx_: has joined #ruby
[02:47:50] venmx: has joined #ruby
[02:52:37] knight33_: has joined #ruby
[02:52:52] venmx_: has joined #ruby
[02:54:29] orbyt_: has joined #ruby
[02:57:01] garyserj: i'm looking at Net::FTP in Ruby. I don't see a copy command to copy from a file from one location on the ftp server, to another. So to copy should I 'get' and then 'put', or is there a better way?
[02:57:57] venmx: has joined #ruby
[02:58:25] garyserj: does this chat have a log?
[02:58:32] garyserj: available online
[03:00:11] cadillac_: has joined #ruby
[03:00:29] baweaver: channel topic
[03:00:50] havenwood: garyserj: http://logs.ryanbigg.com/ruby
[03:00:51] havenwood: garyserj: https://irclog.whitequark.org/ruby/2018-05-16
[03:01:06] baweaver: Ideally you use Net::SSH or SFTP.
[03:01:07] baweaver: FTP is insecure.
[03:02:59] venmx_: has joined #ruby
[03:06:45] alfiemax: has joined #ruby
[03:10:17] venmx: has joined #ruby
[03:15:18] venmx_: has joined #ruby
[03:17:08] juiko: has joined #ruby
[03:21:34] dcunit3d: has joined #ruby
[03:22:06] karapetyan: has joined #ruby
[03:25:23] venmx: has joined #ruby
[03:25:26] caleBOT: has joined #ruby
[03:25:27] caleBOT_: has joined #ruby
[03:32:17] roamingdog: has joined #ruby
[03:32:29] darkhanb: has joined #ruby
[03:33:38] amar: has joined #ruby
[03:34:37] _antares_: has joined #ruby
[03:34:48] amar: has joined #ruby
[03:35:28] venmx: has joined #ruby
[03:37:18] roamingdog: has joined #ruby
[03:38:08] roamingdog: has joined #ruby
[03:38:41] c0ncealed1: has joined #ruby
[03:38:53] roamingdog: has joined #ruby
[03:39:43] roamingdog: has joined #ruby
[03:40:33] roamingdog: has joined #ruby
[03:40:40] venmx: has joined #ruby
[03:41:28] howdoi: has joined #ruby
[03:43:51] gix-: has joined #ruby
[03:45:36] caleBOT: has joined #ruby
[03:45:37] caleBOT_: has joined #ruby
[03:45:38] venmx_: has joined #ruby
[03:46:02] memo1: has joined #ruby
[03:47:53] _antares_: has joined #ruby
[03:48:50] chris349: has joined #ruby
[03:50:47] venmx: has joined #ruby
[03:52:20] za1b1tsu: has joined #ruby
[03:55:43] venmx_: has joined #ruby
[03:56:48] _antares_: has joined #ruby
[04:00:37] mroutis: has joined #ruby
[04:00:43] venmx: has joined #ruby
[04:01:12] Radar: Janky: Probably a good idea to _not_ use Access for that, if you can help it. I would extract the data from a spreadsheet into a relational database (which you could use the Sequel gem for)
[04:04:49] _antares_: has joined #ruby
[04:05:44] venmx_: has joined #ruby
[04:06:20] cschneid_: has joined #ruby
[04:10:56] dcunit3d: has joined #ruby
[04:15:51] venmx: has joined #ruby
[04:17:21] _antares_: has joined #ruby
[04:19:10] heftig: has joined #ruby
[04:20:26] mroutis_: has joined #ruby
[04:20:51] venmx_: has joined #ruby
[04:28:13] jottr: has joined #ruby
[04:28:33] venmx: has joined #ruby
[04:31:21] anisha: has joined #ruby
[04:34:34] aupadhye: has joined #ruby
[04:36:54] drakan: has joined #ruby
[04:37:20] drakan: ugghhhh im going to lose my mind, i can't figure out the right incantation to get erubis to let me append to an existing line with <% %>
[04:43:02] venmx_: has joined #ruby
[04:45:19] drakan: ugh, i gave up and used <%= and a heredoc string instead
[04:48:17] ruby[bot]: Radar: I don't know anything about rule0
[04:48:29] Radar: drakan: Some code example is always nice.
[04:49:12] drakan: sometext<%- if condition -%>append this text <% end %>
[04:49:39] drakan: is now: sometext <%= if condition <<<-eos ,blah,blah,blah \n eos %>
[04:50:24] fullstack_: has joined #ruby
[04:50:33] mozzarella: that's not a proper code example
[04:50:36] mozzarella: don't be lazy
[04:51:01] drakan: seriously ?
[04:51:08] drakan: let me ship you a docker file
[04:53:21] Radar: what mozzarella said.
[04:53:41] venmx: has joined #ruby
[04:53:49] alfiemax: has joined #ruby
[04:55:11] drakan: https://gist.github.com/ralph-tice/50a2502260472c80c9c4894b491a4004
[04:57:05] tonini: has joined #ruby
[04:58:43] venmx_: has joined #ruby
[05:01:53] apeiros: has joined #ruby
[05:01:55] reber: has joined #ruby
[05:04:06] venmx: has joined #ruby
[05:05:24] aufi: has joined #ruby
[05:05:35] za1b1tsu: has joined #ruby
[05:06:34] KeyJoo: has joined #ruby
[05:07:28] gnufied: has joined #ruby
[05:09:58] karapetyan: has joined #ruby
[05:10:06] dminuoso: drakan: <%- -%> seems right
[05:10:26] dminuoso: drakan: Did you remember to set the trim_mode to "-"?
[05:10:46] drakan: vendor code controls the erubis instantiation ¯\_(ツ)_/¯
[05:10:59] drakan: chef ships an embedded ruby, too
[05:11:19] dminuoso: Ah yeah then the heredocs trick seems to be your only bet
[05:11:37] dminuoso: drakan: It might be nicer to not do this inline at all.
[05:12:03] drakan: it was a stroke of luck i remembered heredocs at all ... what do you mean, not doing it inline ?
[05:12:16] dminuoso: drakan: That is `<% if cond %>foo<% else %>foobar
[05:12:41] dminuoso: Both are kind of shitty ¯\_(ツ)_/¯
[05:12:58] drakan: i don't follow you
[05:13:58] dminuoso: drakan: Here's what I might do:
[05:15:52] dminuoso: drakan: https://gist.github.com/dminuoso/0fb707bb883e91ba9df1b129fc9c74bd
[05:16:20] dminuoso: Conditional string interpolation is just freaking annoying to read.
[05:17:52] mozzarella: why not just put them on the same line?
[05:18:19] dminuoso: mozzarella: them what?
[05:18:38] drakan: yeah, my only counterpoint there is that i'm trying to restrict myself to additive changes. i like your version a lot better, but there's an element of leaving something that inspires the person who reads it to fix this properly, where "this" is the rest of the context of what i'm editing
[05:19:46] dminuoso: drakan: There's nothing wrong with refactoring things you encounter if it makes it more expressible/maintainable.
[05:20:04] drakan: for open source i would agree with you
[05:20:13] dminuoso: Throwing in <%= if ... <<-f .. %> has more "*sigh* what does this do" effect on the next reader.
[05:20:27] mozzarella: drakan: https://gist.github.com/sam113101/67fa92405f5117343541419902df5ac0
[05:20:55] drakan: mozzarella: that inserts a newline ahead of the comma, pretty sure
[05:21:20] drakan: that's what i was struggling with last 30-45 minutes
[05:21:48] drakan: i don't think that's better than what dminuoso proposed
[05:25:08] tdy: has joined #ruby
[05:28:30] drakan: thanks for the help
[05:28:55] drakan: i did go ahead with the non-passive aggressive approach, cooler heads prevail...
[05:33:57] sauvin: has joined #ruby
[05:38:47] cadillac_: has joined #ruby
[05:43:53] galeido: has joined #ruby
[05:49:49] ur5us: has joined #ruby
[05:54:13] mtkd: has joined #ruby
[05:59:26] tvw: has joined #ruby
[06:02:05] _antares_: has joined #ruby
[06:05:42] dminuoso: mozzarella: Ah I misread the whole thing.
[06:16:35] sidx64: has joined #ruby
[06:24:15] conta: has joined #ruby
[06:25:48] DoubleMalt: has joined #ruby
[06:26:58] dionysus69: has joined #ruby
[06:29:03] jottr: has joined #ruby
[06:31:27] burgestrand: has joined #ruby
[06:33:40] sidx64: has joined #ruby
[06:39:10] sidx64_: has joined #ruby
[06:39:39] schneider: has joined #ruby
[06:41:39] schneider: I see this kind of example inside bin/* files
[06:41:42] schneider: load Gem.bin_path('bundler', 'bundle')
[06:41:53] schneider: and I'm confused about bin_path method
[06:42:07] schneider: it loads the global version of bundler?
[06:42:27] schneider: or it loads the version from Gemfile.lock file?
[06:42:40] cjohnson: Presumably the latter
[06:42:40] sidx64: has joined #ruby
[06:43:11] cjohnson: Given that it's GEM.bin_path, it seems to me it would be looking at the gems installed and finding the bin_path of hte gem name in question
[06:44:04] schneider: I tried this one with my private gem, created a binary file with only "load Gem.bin_path('mygem', 'mygem')" inside
[06:44:20] schneider: when I run bin/mygem all working as expected
[06:44:42] schneider: but if I want to change the version inside Gemfile then run bundle update, version is updated inside Gemfile.lock
[06:44:59] schneider: then running bin/mygem will use old version still
[06:46:00] cjohnson: seems as though you can specify specific gem versions in requirements
[06:46:01] cjohnson: https://apidock.com/ruby/Gem/bin_path/class
[06:46:10] cjohnson: Though it seems odd to me that it wouldn't pick the one from Gemfile.lock
[06:46:24] schneider: I added a few "puts" to all versions of my gems inside ~/.rvm/gems/ruby-2.5.0/gems/mygem-*/lib/mygem.rb that outputs the version
[06:46:38] schneider: this way I'm debuging and still I'm using the old one
[06:50:09] schleppel: has joined #ruby
[06:53:41] Mortomes|Work: has joined #ruby
[06:55:14] Zaab1t: has joined #ruby
[06:55:34] burgestrand: has joined #ruby
[07:01:13] mozzarella: dminuoso: misread how?
[07:02:30] DeepIO: has joined #ruby
[07:06:18] amar: has joined #ruby
[07:11:39] biberu: has joined #ruby
[07:11:58] sidx64: has joined #ruby
[07:15:09] TomyWork: has joined #ruby
[07:17:32] Dykam: has joined #ruby
[07:19:12] sysvalve: has joined #ruby
[07:20:34] sidx64: has joined #ruby
[07:21:00] Zaab1t: has joined #ruby
[07:22:33] claudiuinberlin: has joined #ruby
[07:23:16] amelliaa: has joined #ruby
[07:25:35] sidx64: has joined #ruby
[07:27:10] amar: has joined #ruby
[07:31:16] _antares_: has joined #ruby
[07:35:22] sidx64: has joined #ruby
[07:35:50] suukim: has joined #ruby
[07:38:35] kapil___: has joined #ruby
[07:40:01] nowhere_man: has joined #ruby
[07:42:10] Aloy: has joined #ruby
[07:43:52] mlkkk: has joined #ruby
[07:45:30] plexigras: has joined #ruby
[07:49:50] roshanavand: has joined #ruby
[07:50:39] yohji: has joined #ruby
[07:53:11] alfiemax: has joined #ruby
[07:54:17] mikecmpbll: has joined #ruby
[07:56:50] roamingdog: has joined #ruby
[07:57:52] marr: has joined #ruby
[07:59:13] crankharder: has joined #ruby
[07:59:19] mtkd: has joined #ruby
[08:02:06] VladGh_: has joined #ruby
[08:02:21] ur5us: has joined #ruby
[08:04:28] alex``: has joined #ruby
[08:10:51] robertothais: has joined #ruby
[08:13:08] roshanavand: has joined #ruby
[08:14:28] roshanavand1: has joined #ruby
[08:15:23] roshanavand1: has joined #ruby
[08:17:34] _antares_: has joined #ruby
[08:19:57] drale2k_: has joined #ruby
[08:20:14] Dykam: has joined #ruby
[08:28:48] sidx64: has joined #ruby
[08:29:13] _antares_: has joined #ruby
[08:29:31] karapetyan: has joined #ruby
[08:30:00] jottr: has joined #ruby
[08:30:20] _antares_: has joined #ruby
[08:31:01] sidx64: has joined #ruby
[08:31:46] amar: has joined #ruby
[08:34:01] guille-moe: has joined #ruby
[08:40:25] alex``: has joined #ruby
[08:41:13] ix: has joined #ruby
[08:42:59] d^sh: has joined #ruby
[08:43:02] crankharder: has joined #ruby
[08:43:10] sidx64: has joined #ruby
[08:47:21] amar: has joined #ruby
[08:49:29] amatas: has joined #ruby
[08:51:08] guille-moe: has joined #ruby
[08:55:23] aupadhye: has joined #ruby
[08:56:00] amatas: has joined #ruby
[08:57:26] amatas: has joined #ruby
[09:05:34] karapetyan: has joined #ruby
[09:09:40] Dykam: has joined #ruby
[09:09:48] amar: has joined #ruby
[09:11:54] conta: has joined #ruby
[09:19:10] vondruch: has joined #ruby
[09:23:05] sidx64: has joined #ruby
[09:30:28] amar: has joined #ruby
[09:30:38] sidx64: has joined #ruby
[09:30:53] amar: has joined #ruby
[09:30:56] clemens3: has joined #ruby
[09:31:57] venmx: has joined #ruby
[09:32:24] sphenxes: has joined #ruby
[09:32:38] KeyJoo: has joined #ruby
[09:34:24] aupadhye: has joined #ruby
[09:35:35] aupadhye_: has joined #ruby
[09:40:08] z4phod: has joined #ruby
[09:42:24] nowhere_man: has joined #ruby
[09:45:31] InfinityFye: has joined #ruby
[09:46:44] InfinityFye: has left #ruby: ()
[09:48:05] jamesaxl: has joined #ruby
[09:50:15] ur5us: has joined #ruby
[09:50:26] sidx64: has joined #ruby
[09:50:30] alfiemax: has joined #ruby
[09:52:53] _antares_: has joined #ruby
[09:53:05] roamingdog: has joined #ruby
[09:56:49] ur5us: has joined #ruby
[09:58:23] ur5us: has joined #ruby
[09:59:14] ur5us: has joined #ruby
[10:00:28] clemens3: has joined #ruby
[10:00:41] Puffball: has joined #ruby
[10:04:24] mtkd: has joined #ruby
[10:04:28] blackmesa: has joined #ruby
[10:05:32] amar: has joined #ruby
[10:06:17] reber: has joined #ruby
[10:08:38] jottr: has joined #ruby
[10:09:47] sidx64: has joined #ruby
[10:12:47] _antares_: has joined #ruby
[10:13:19] AJA4350: has joined #ruby
[10:15:46] nima_m: has joined #ruby
[10:16:12] alfiemax: has joined #ruby
[10:21:04] dionysus69: has joined #ruby
[10:29:46] ciscam: has joined #ruby
[10:36:46] roshanavand: has joined #ruby
[10:42:29] roamingdog: has joined #ruby
[10:47:29] karapetyan: has joined #ruby
[10:48:52] Flonk: has joined #ruby
[10:51:44] amelliaa: has joined #ruby
[10:57:14] adlerdias: has joined #ruby
[10:57:22] dionysus69: has joined #ruby
[11:03:05] drale2k_: has joined #ruby
[11:04:41] apparition47: has joined #ruby
[11:04:45] sidx64: has joined #ruby
[11:08:52] Flonk: has joined #ruby
[11:14:26] alfiemax: has joined #ruby
[11:30:41] houhoulis: has joined #ruby
[11:32:38] venmx: has joined #ruby
[11:33:08] drale2k_: has joined #ruby
[11:37:20] meinside: has joined #ruby
[11:39:10] nowhere_man: has joined #ruby
[11:41:04] coderphive: has joined #ruby
[11:41:43] ldnunes: has joined #ruby
[11:42:03] _antares_: has joined #ruby
[11:42:17] ciscam: has joined #ruby
[11:44:31] dminuoso: What's the least annoying way to transform strings of the shape "foo 1, 2, 3" into ["1", "2", "3"]
[11:44:49] dminuoso: I cant come up with a non-confusing one liner..
[11:45:22] roamingdog: has joined #ruby
[11:45:44] dminuoso: >> "foo 1, 2, 34".scan(/\d+/)
[11:45:45] ruby[bot]: dminuoso: # => ["1", "2", "34"] (https://eval.in/1005021)
[11:46:09] roamingdog: has joined #ruby
[11:46:22] ohcibi: has joined #ruby
[11:46:59] roamingdog: has joined #ruby
[11:47:44] roamingdog: has joined #ruby
[11:54:33] drale2k_: has joined #ruby
[12:00:43] karapetyan: has joined #ruby
[12:02:08] _antares_: has joined #ruby
[12:05:27] burgestrand: has joined #ruby
[12:06:32] za1b1tsu: has joined #ruby
[12:08:54] mtkd: has joined #ruby
[12:17:10] Cavallari: has joined #ruby
[12:17:53] Cavallari1: has joined #ruby
[12:22:02] _antares_: has joined #ruby
[12:23:49] _antares_: has joined #ruby
[12:26:01] sidx64: has joined #ruby
[12:32:43] alfiemax: has joined #ruby
[12:39:10] nayena: has joined #ruby
[12:39:18] nowhere_man: has joined #ruby
[12:39:36] sidx64: has joined #ruby
[12:43:11] Cavallari1: has joined #ruby
[12:47:39] drale2k_: has joined #ruby
[12:49:09] suukim: has joined #ruby
[12:51:02] schleppel: has joined #ruby
[12:52:31] _antares_: has joined #ruby
[12:54:24] alfiemax: has joined #ruby
[12:59:06] chocoelho: has joined #ruby
[13:00:12] sidx64: has joined #ruby
[13:01:10] Asher: has joined #ruby
[13:04:23] ciscam: has joined #ruby
[13:05:23] amar: has joined #ruby
[13:08:34] Mike11: has joined #ruby
[13:08:38] suukim: has joined #ruby
[13:08:40] Nussi: has joined #ruby
[13:09:12] conta1: has joined #ruby
[13:12:32] _antares_: has joined #ruby
[13:12:44] ciscam: has joined #ruby
[13:14:22] alfiemax: has joined #ruby
[13:17:44] gnufied: has joined #ruby
[13:23:07] dcunit3d: has joined #ruby
[13:24:48] mohsen_1: has joined #ruby
[13:27:54] n0m4d1c: has joined #ruby
[13:31:39] GodFather__: has joined #ruby
[13:32:36] k0mpa: has joined #ruby
[13:33:13] drale2k_: has joined #ruby
[13:33:18] burgestrand: has joined #ruby
[13:42:12] mikecmpbll: has joined #ruby
[13:45:13] yohji: has joined #ruby
[13:45:28] nowhere_man: has joined #ruby
[13:48:26] karapetyan: has joined #ruby
[13:48:30] shinnya: has joined #ruby
[13:50:17] oleo: has joined #ruby
[13:51:03] memo1: has joined #ruby
[13:52:26] conta: has joined #ruby
[13:56:42] Emmanuel_Chanel: has joined #ruby
[13:56:57] linduxed: has joined #ruby
[13:57:26] Emmanuel_Chanel: has joined #ruby
[14:01:05] cyberg: has joined #ruby
[14:02:07] mikecmpb_: has joined #ruby
[14:02:19] fisher: has joined #ruby
[14:02:47] Rapture: has joined #ruby
[14:04:40] dcunit3d: has joined #ruby
[14:05:54] blackmesa: has joined #ruby
[14:06:18] kmurphy4_: has joined #ruby
[14:08:36] drale2k_: has joined #ruby
[14:09:58] amar: has joined #ruby
[14:13:53] memo1: has joined #ruby
[14:13:54] mtkd: has joined #ruby
[14:14:37] kmurphy4: has joined #ruby
[14:17:04] burgestrand: has joined #ruby
[14:18:32] coderphive: has joined #ruby
[14:20:04] kapil___: has joined #ruby
[14:23:53] sagax: has joined #ruby
[14:32:29] venmx: has joined #ruby
[14:33:04] alfiemax: has joined #ruby
[14:38:49] samort7: has joined #ruby
[14:39:53] sammi`: has joined #ruby
[14:41:13] grilix: has joined #ruby
[14:41:40] _antares_: has joined #ruby
[14:42:15] karapetyan: has joined #ruby
[14:42:18] alfiemax: has joined #ruby
[14:42:51] mroutis: has joined #ruby
[14:44:43] chouhoulis: has joined #ruby
[14:45:19] chouhoulis: has joined #ruby
[14:45:45] mtkd: has joined #ruby
[14:46:23] drale2k_: has joined #ruby
[14:47:41] alfiemax: has joined #ruby
[14:49:48] _antares_: has joined #ruby
[14:51:54] gix: has joined #ruby
[14:57:14] gigetoo: has joined #ruby
[14:57:38] rippa: has joined #ruby
[14:58:59] apeiros: has joined #ruby
[15:00:07] _antares_: has joined #ruby
[15:00:41] dcunit3d: has joined #ruby
[15:00:48] iceden: has joined #ruby
[15:02:14] sidx64: has joined #ruby
[15:02:37] venmx: has joined #ruby
[15:02:43] regedit: has joined #ruby
[15:03:06] cschneid_: has joined #ruby
[15:04:01] ccrow: has joined #ruby
[15:04:48] schneider: has joined #ruby
[15:06:27] cadillac_: has joined #ruby
[15:09:49] chocoelho: has joined #ruby
[15:14:53] dc1: has joined #ruby
[15:15:10] cagomez: has joined #ruby
[15:15:43] cagomez: has joined #ruby
[15:15:46] memo1: has joined #ruby
[15:15:50] vondruch: has joined #ruby
[15:16:33] orbyt_: has joined #ruby
[15:20:41] GodFather: has joined #ruby
[15:20:43] _antares_: has joined #ruby
[15:22:04] grilix: has joined #ruby
[15:22:47] guille-moe: has joined #ruby
[15:24:41] _antares_: has joined #ruby
[15:24:59] caleBOT: has joined #ruby
[15:25:00] caleBOT_: has joined #ruby
[15:28:16] mroutis: has joined #ruby
[15:28:20] jokke1: has joined #ruby
[15:28:33] amar: has joined #ruby
[15:31:46] Dbugger: has joined #ruby
[15:32:48] venmx: has joined #ruby
[15:37:11] jcarl43: has joined #ruby
[15:42:14] schneider: has joined #ruby
[15:43:06] venmx: has joined #ruby
[15:47:28] guille-moe: has joined #ruby
[15:47:31] vondruch: has joined #ruby
[15:49:04] roamingdog: has joined #ruby
[15:49:26] rabajaj: has joined #ruby
[15:50:29] AkyRhO_: has joined #ruby
[15:51:34] venmx_: has joined #ruby
[15:55:53] alex``: has joined #ruby
[15:56:40] rahul_bajaj: has joined #ruby
[16:08:14] safetypin: has joined #ruby
[16:11:24] jrich523: has joined #ruby
[16:12:44] jrich523: hey guys, trying to get my rake tests working (thor cli-template project) and it looks like the way the project is setup, its invoking the tests is like so out = `#{cmd}`
[16:12:50] jrich523: and a cmd looks like
[16:12:56] banisterfiend: has joined #ruby
[16:13:07] jrich523: "exe/SSTKCLI hello world #{@args}"
[16:13:14] jrich523: this will not fly on windows
[16:13:29] jrich523: i think i'd have to ram bundle exec ruby blah blah
[16:13:54] jrich523: fairly new to this, so just wanted to make sure i wasnt about to do anything crazy
[16:14:28] darkhanb: has joined #ruby
[16:15:00] bga57: has joined #ruby
[16:17:41] guille-moe: has joined #ruby
[16:18:23] guille-moe: has joined #ruby
[16:21:25] TinkerT: has joined #ruby
[16:22:53] CrazyEddy: has joined #ruby
[16:27:39] schneider: has joined #ruby
[16:30:54] chris349: has joined #ruby
[16:32:10] raynold: has joined #ruby
[16:33:02] qnaal: has joined #ruby
[16:33:25] gnufied: has joined #ruby
[16:36:55] RougeR: has joined #ruby
[16:36:55] RougeR: has joined #ruby
[16:37:56] n0m4d1c: has joined #ruby
[16:43:31] nitric: has joined #ruby
[16:45:07] qnaal: has joined #ruby
[16:46:36] orbyt_: has joined #ruby
[16:50:05] Rapture: has joined #ruby
[16:50:53] mtkd: has joined #ruby
[16:50:57] sanscoeur: has joined #ruby
[16:52:24] nitric_: has joined #ruby
[16:57:53] mtkd: has joined #ruby
[16:59:30] stairmast0r: has joined #ruby
[17:00:01] memo1: has joined #ruby
[17:00:46] pilne: has joined #ruby
[17:06:14] dc1: has joined #ruby
[17:08:52] fisher: has joined #ruby
[17:14:08] mtkd: has joined #ruby
[17:14:41] tdy: has joined #ruby
[17:16:14] ellcs: has joined #ruby
[17:16:42] aupadhye: has joined #ruby
[17:17:45] gnufied: has joined #ruby
[17:21:49] jrabe`: has left #ruby: ()
[17:22:50] jenrzzz: has joined #ruby
[17:22:51] jenrzzz: has joined #ruby
[17:24:10] ccrow: has joined #ruby
[17:24:47] cyberg: has joined #ruby
[17:26:12] za1b1tsu: has joined #ruby
[17:26:13] chocoelho: has joined #ruby
[17:26:21] AgentVenom: has joined #ruby
[17:29:42] amar: has joined #ruby
[17:30:43] grilix_: has joined #ruby
[17:34:51] kenichi: havenwood: nice post on `exception: false` methods
[17:35:08] havenwood: kenichi: thanks!
[17:36:17] kenichi: i've used the exception-less IO methods, nice to see it spreading
[17:37:37] amar: has joined #ruby
[17:40:08] jrabe: has joined #ruby
[17:45:04] heftig: has joined #ruby
[17:47:26] mikecmpbll: has joined #ruby
[17:49:22] \void: has joined #ruby
[17:51:23] jrich523: can someone explain some scoping stuff to me... im working off a thor cli-template, and i get an error about an uninit constant, which, to me makes sense, but im not sure how to fix it..
[17:51:30] jrich523: https://github.com/tongueroo/cli-template/blob/master/lib/templates/default/lib/%25underscored_name%25/cli.rb.tt#L21
[17:51:51] jrich523: thats whats triggering the error (its the template code, since im still in the process of testing and dont have it posted)
[17:52:26] jrich523: there is a completer.rb file that has the class/method in it... but... it seems like the way they are calling it, it would need to be local to the CLI class
[17:52:54] jrich523: https://github.com/tongueroo/cli-template/blob/master/lib/templates/default/lib/%25project_name%25.rb.tt
[17:54:00] jrich523: they use that to join all the classes, but, i dont get the impression that it would then give it access to those class methods (Autoload A and B, B wont have access to A regardless of the load order?)
[17:58:35] sameerynho: has joined #ruby
[17:58:49] za1b1tsu: has joined #ruby
[18:06:10] Cavallari: has joined #ruby
[18:09:28] mtkd: has joined #ruby
[18:09:52] ramfjord: has joined #ruby
[18:12:52] amar: has joined #ruby
[18:15:32] banisterfiend: has joined #ruby
[18:17:47] eckhardt: has joined #ruby
[18:18:01] n0m4d1c: has joined #ruby
[18:18:22] amar: has joined #ruby
[18:18:59] jottr: has joined #ruby
[18:23:47] Ryzokuken: has joined #ruby
[18:23:57] alfiemax: has joined #ruby
[18:24:18] tuskkk___: for the feature spec with rspec, why can't we create an entry using the model?
[18:24:38] tuskkk___: how do we add fixtures for it?
[18:27:34] blackmesa: has joined #ruby
[18:31:01] cschneid_: has joined #ruby
[18:33:25] Asher: has joined #ruby
[18:34:28] contradictioned: has joined #ruby
[18:40:28] roamingdog: has joined #ruby
[18:42:59] CrazyEddy: has joined #ruby
[18:52:58] roamingdog: has joined #ruby
[18:53:05] dviola: has joined #ruby
[18:53:53] roamingdog: has joined #ruby
[18:55:40] schneider: has joined #ruby
[19:01:07] TvL2386_: has joined #ruby
[19:03:26] mondz`: has joined #ruby
[19:04:58] alfiemax: has joined #ruby
[19:07:30] TomyWork: does delayed_jobs' "myobject.delay.mymethod" thingy support multiple parameters to the method?
[19:07:40] dc1: has joined #ruby
[19:09:08] TomyWork: i've only ever seen it used with single parameters and i'm trying to figure out why the jobs from this really old and unmaintained thing called puppet-dashboard fail regularly.
[19:10:49] chouhoul_: has joined #ruby
[19:16:00] TomyWork: the source code doesn't read that way, but it's also high-level magic, so i could be wrong :)
[19:16:25] jrich523: err its your method
[19:16:29] jrich523: you'd define what it takes?
[19:25:57] ramfjord: has joined #ruby
[19:26:56] blackmesa: has joined #ruby
[19:35:53] dc1: has joined #ruby
[19:38:26] ramfjord: has joined #ruby
[19:42:27] chouhoulis: has joined #ruby
[19:42:34] nitric: has joined #ruby
[19:44:03] schneider: is there a gem that can clone git projects using ssh key but does not require 'git' binary?
[19:44:18] orbyt_: has joined #ruby
[19:44:26] ramfjord: has joined #ruby
[19:45:02] schneider: gem 'ruby-git' seems to be ok but it realy annoys me because it uses system git
[19:49:24] SeepingN: has joined #ruby
[19:50:25] ramfjord: has joined #ruby
[19:51:47] KeyJoo: has joined #ruby
[19:53:10] jenrzzz: has joined #ruby
[19:53:20] za1b1tsu: has joined #ruby
[19:53:51] havenwood: schaary: rugged
[19:54:06] havenwood: schneider: https://github.com/libgit2/rugged
[19:56:01] ramfjord: has joined #ruby
[19:56:36] schneider: thanks havenwood! I'll take a look
[20:00:05] minimalism: has joined #ruby
[20:00:15] n0m4d1c: has joined #ruby
[20:02:42] caleBOT: has joined #ruby
[20:02:43] caleBOT_: has joined #ruby
[20:11:48] Nawn: has joined #ruby
[20:13:21] alfiemax: has joined #ruby
[20:15:24] Nawn: has joined #ruby
[20:16:12] Nawn: has joined #ruby
[20:20:12] Nawn: has joined #ruby
[20:24:08] sammi`: has joined #ruby
[20:26:56] kmurphy4: has joined #ruby
[20:27:40] memo1: has joined #ruby
[20:28:26] Nawn: has joined #ruby
[20:29:08] sammi`: has joined #ruby
[20:29:59] jottr: has joined #ruby
[20:30:36] jenrzzz_: has joined #ruby
[20:34:08] sammi`: has joined #ruby
[20:35:36] jottr_: has joined #ruby
[20:36:05] mlkkk: has joined #ruby
[20:39:08] sammi`: has joined #ruby
[20:39:19] joro_: has joined #ruby
[20:39:42] contradictioned: has joined #ruby
[20:44:08] sammi`: has joined #ruby
[20:49:08] sammi`: has joined #ruby
[20:51:27] nfsnobody: has joined #ruby
[20:52:01] contradictioned: has joined #ruby
[20:53:46] tag: has joined #ruby
[20:54:08] sammi`: has joined #ruby
[20:57:28] venmx: has joined #ruby
[20:58:19] ellcs: has joined #ruby
[20:59:08] sammi`: has joined #ruby
[21:02:37] contradictioned: has joined #ruby
[21:04:09] sammi`: has joined #ruby
[21:07:08] ur5us: has joined #ruby
[21:09:09] sammi`: has joined #ruby
[21:10:02] venmx: has joined #ruby
[21:12:10] contradictioned: has joined #ruby
[21:14:09] sammi`: has joined #ruby
[21:15:22] karapetyan: has joined #ruby
[21:19:08] sammi`: has joined #ruby
[21:22:49] contradictioned: has joined #ruby
[21:22:58] schneider: has joined #ruby
[21:24:09] sammi`: has joined #ruby
[21:25:30] dionysus69: has joined #ruby
[21:28:42] contradictioned: has joined #ruby
[21:28:53] schneider: has joined #ruby
[21:29:09] sammi`: has joined #ruby
[21:30:33] n0m4d1c: has joined #ruby
[21:32:16] jamesaxl: has joined #ruby
[21:33:15] eckhardt: has joined #ruby
[21:34:09] sammi`: has joined #ruby
[21:35:16] TomyLobo: has joined #ruby
[21:35:58] cyberg: has joined #ruby
[21:38:21] schneider: has joined #ruby
[21:39:09] sammi`: has joined #ruby
[21:41:40] n0m4d1c: has joined #ruby
[21:44:10] sammi`: has joined #ruby
[21:47:35] schneider: has joined #ruby
[21:51:03] shinnya: has joined #ruby
[21:52:44] jamesaxl: has joined #ruby
[21:54:10] sammi`: has joined #ruby
[21:56:55] schneider: has joined #ruby
[21:57:50] ellcs: has joined #ruby
[21:59:10] sammi`: has joined #ruby
[22:06:19] schneider: has joined #ruby
[22:09:21] _antares_: has joined #ruby
[22:10:44] sshock: has joined #ruby
[22:10:48] roamingdog: has joined #ruby
[22:12:41] alfiemax: has joined #ruby
[22:14:11] sammi`: has joined #ruby
[22:15:32] schneider: has joined #ruby
[22:16:22] reu: has joined #ruby
[22:19:44] sanscoeur: has joined #ruby
[22:24:11] jottr: has joined #ruby
[22:24:48] schneider: has joined #ruby
[22:26:37] p0p0pr37: has joined #ruby
[22:26:37] p0p0pr37: has joined #ruby
[22:28:24] caleBOT: has joined #ruby
[22:29:12] sammi`: has joined #ruby
[22:29:48] ccrow: has joined #ruby
[22:31:48] ellcs: has left #ruby: ()
[22:34:11] schneider: has joined #ruby
[22:34:13] sammi`: has joined #ruby
[22:36:47] caleBOT: has joined #ruby
[22:36:48] caleBOT_: has joined #ruby
[22:39:12] sammi`: has joined #ruby
[22:39:20] cadillac_: has joined #ruby
[22:43:30] schneider: has joined #ruby
[22:44:13] sammi`: has joined #ruby
[22:46:02] n0m4d1c: has joined #ruby
[22:49:09] tipyn: has joined #ruby
[22:49:14] sammi`: has joined #ruby
[22:51:00] chouhoul_: has joined #ruby
[22:51:44] roamingdog: has joined #ruby
[22:52:49] schneider: has joined #ruby
[22:54:13] sammi`: has joined #ruby
[22:55:05] memo1: has joined #ruby
[22:58:00] eckhardt: has joined #ruby
[22:59:13] sammi`: has joined #ruby
[23:01:28] dc1: has joined #ruby
[23:02:19] schneider: has joined #ruby
[23:04:13] sammi`: has joined #ruby
[23:05:58] sshock: has left #ruby: ()
[23:08:27] orbyt_: has joined #ruby
[23:09:14] sammi`: has joined #ruby
[23:10:39] ccrow: has joined #ruby
[23:10:46] blackmesa1: has joined #ruby
[23:11:36] schneider: has joined #ruby
[23:14:15] sammi`: has joined #ruby
[23:20:53] schneider: has joined #ruby
[23:24:14] sammi`: has joined #ruby
[23:26:18] n0m4d1c_: has joined #ruby
[23:28:48] caleBOT: has joined #ruby
[23:28:49] caleBOT_: has joined #ruby
[23:29:15] sammi`: has joined #ruby
[23:30:13] schneider: has joined #ruby
[23:34:16] sammi`: has joined #ruby
[23:38:48] _antares_: has joined #ruby
[23:39:16] sammi`: has joined #ruby
[23:39:31] schneider: has joined #ruby
[23:39:49] jottr: has joined #ruby
[23:40:21] n0m4d1c: has joined #ruby
[23:41:03] caleBOT_: has joined #ruby
[23:41:03] caleBOT: has joined #ruby
[23:42:36] ccrow: has joined #ruby
[23:44:15] sammi`: has joined #ruby
[23:48:28] ur5us: has joined #ruby
[23:48:51] schneider: has joined #ruby
[23:49:15] sammi`: has joined #ruby
[23:54:16] sammi`: has joined #ruby
[23:55:11] Dykam: has joined #ruby
[23:58:09] schneider: has joined #ruby
[23:59:16] sammi`: has joined #ruby