« Back to channel list

#ruby - 05 May 2017

« Back 1 day Forward 1 day »
[00:00:09] mjora7: has joined #ruby
[00:03:05] jcao219: has joined #ruby
[00:03:31] aryaching: has joined #ruby
[00:04:15] Cohedrin: has joined #ruby
[00:06:57] Toledo: has joined #ruby
[00:10:24] d^sh: has joined #ruby
[00:10:39] Cohedrin_: has joined #ruby
[00:13:17] Radar: I would hope your colleagues would suggest an alternative rather than just dismissing it.
[00:15:13] jroess: has joined #ruby
[00:18:35] bairyn: has joined #ruby
[00:21:33] JoshS: has joined #ruby
[00:24:33] gusrub: has joined #ruby
[00:25:41] herbmillerjr: has joined #ruby
[00:29:17] bataii: has joined #ruby
[00:30:14] rkellermeyer: has joined #ruby
[00:32:17] Puffball: has joined #ruby
[00:32:27] Jayson_Virissimo: has joined #ruby
[00:33:55] mim1k: has joined #ruby
[00:39:06] brent__: has joined #ruby
[00:42:28] skade_: has joined #ruby
[00:47:43] bronson: has joined #ruby
[00:50:05] bronson: has joined #ruby
[00:50:21] Guest96: has joined #ruby
[00:53:22] gusrub: has joined #ruby
[00:54:39] cschneid_: has joined #ruby
[00:55:15] User458764: has joined #ruby
[01:07:18] hutch34: has joined #ruby
[01:10:23] TreyG: has joined #ruby
[01:10:29] d^sh: has joined #ruby
[01:11:55] oleo: has joined #ruby
[01:15:01] patr0clus: has joined #ruby
[01:21:06] Bock: has joined #ruby
[01:24:03] Bock: has joined #ruby
[01:28:08] jenrzzz: has joined #ruby
[01:28:08] jenrzzz: has joined #ruby
[01:29:14] bataii: has joined #ruby
[01:31:24] c_nick: has joined #ruby
[01:33:45] c_nick: Hi .. I used Ruby 2.3.3 and installed the sqlite3 gem, the gem gets installed but it fails for sqlite3_adapter, i have downloaded the libsqlite3.dll from sqlite3 website and copied it in the C:\WIndows directory. When i try with Ruby 2.0 everything works fine. Even Ruby 2.2.6 does not work
[01:34:00] c_nick: Note: This is on WIndows'
[01:36:51] Lucky_ABA: has joined #ruby
[01:38:49] VladGh_: has joined #ruby
[01:41:09] brent__: has joined #ruby
[01:44:43] skade_: has joined #ruby
[01:44:51] Pumukel: has joined #ruby
[01:50:06] jenrzzz: has joined #ruby
[01:52:45] banisterfiend: has joined #ruby
[01:52:48] gizmore: has joined #ruby
[01:52:56] Guest96: has joined #ruby
[01:53:11] patarr: has joined #ruby
[01:53:42] cschneid_: has joined #ruby
[01:59:13] banisterfiend: anone here familiar with oauth 1.0 ?
[02:02:52] jcao219: has joined #ruby
[02:05:20] libastral: has joined #ruby
[02:08:39] y2mq37: has joined #ruby
[02:10:11] iliketurtles: has joined #ruby
[02:11:12] enterprisey: has joined #ruby
[02:11:14] Channel6: has joined #ruby
[02:11:43] Jameser: has joined #ruby
[02:13:36] skweek: has joined #ruby
[02:18:43] bronson: has joined #ruby
[02:20:24] genpaku: has joined #ruby
[02:30:33] __Yiota: has joined #ruby
[02:33:28] TreyG: has joined #ruby
[02:34:23] mim1k: has joined #ruby
[02:35:23] bataii: has joined #ruby
[02:36:48] juiko: has joined #ruby
[02:44:08] JeanCarloMachado: has joined #ruby
[02:45:43] skade_: has joined #ruby
[02:46:04] __Yiota: has joined #ruby
[02:52:54] JeanCarloMachado: has joined #ruby
[02:58:09] destroy``: has joined #ruby
[03:02:13] Puffball: has joined #ruby
[03:03:07] JeanCarloMachado: has joined #ruby
[03:08:31] JeanCarloMachado: has joined #ruby
[03:11:09] __Yiota: has joined #ruby
[03:14:26] xall: has joined #ruby
[03:17:02] JeanCarloMachado: has joined #ruby
[03:19:11] Silthias: has joined #ruby
[03:20:03] bronson: has joined #ruby
[03:22:59] skweek: has joined #ruby
[03:30:16] QpQ4__: has joined #ruby
[03:31:21] Silthias: has joined #ruby
[03:32:25] patarr: has joined #ruby
[03:33:24] mim1k: has joined #ruby
[03:33:37] Pumukel: has joined #ruby
[03:35:38] TreyG: has joined #ruby
[03:39:07] bronson: has joined #ruby
[03:39:19] jenrzzz: has joined #ruby
[03:39:20] jenrzzz: has joined #ruby
[03:43:41] JeanCarloMachado: has joined #ruby
[03:46:44] skade_: has joined #ruby
[03:47:08] perniciouscaffei: has joined #ruby
[03:49:09] nofxx: has joined #ruby
[03:52:23] JeanCarloMachado: has joined #ruby
[03:52:54] sp4rrow: has joined #ruby
[03:56:28] sp4rrow: has joined #ruby
[04:01:14] tohuw: has joined #ruby
[04:01:14] tohuw: has joined #ruby
[04:04:30] dionysus69: has joined #ruby
[04:05:09] gix: has joined #ruby
[04:06:58] JeanCarloMachado: has joined #ruby
[04:09:49] rkazak: has joined #ruby
[04:13:22] patarr: has joined #ruby
[04:14:51] JeanCarloMachado: has joined #ruby
[04:21:37] Jayson_Virissimo: has joined #ruby
[04:22:03] DrCode: has joined #ruby
[04:24:59] eljimbo: has joined #ruby
[04:30:36] JeanCarloMachado: has joined #ruby
[04:32:56] conta: has joined #ruby
[04:35:55] y2mq37: has joined #ruby
[04:41:50] enterprisey: has joined #ruby
[04:43:47] Ellimist: has joined #ruby
[04:45:14] JeanCarloMachado: has joined #ruby
[04:45:54] Guest96: has joined #ruby
[04:48:14] skade_: has joined #ruby
[04:50:40] QpQ4: has joined #ruby
[04:50:40] mniip: has joined #ruby
[04:59:02] JeanCarloMachado: has joined #ruby
[04:59:44] skade_: has joined #ruby
[05:03:22] omarek: has joined #ruby
[05:08:25] Silthias1: has joined #ruby
[05:09:50] JeanCarloMachado: has joined #ruby
[05:10:16] charliesome: has joined #ruby
[05:14:46] nesoi: has joined #ruby
[05:15:05] nesoi: hello, how do I install a local gem file in ruby (on windows if that matters)?
[05:15:15] nesoi: it's actually an update to an existing gem file that I have installed
[05:16:02] baweaver: What have you tried?
[05:16:32] nesoi: gem install —local ./gemname
[05:16:49] nesoi: while in the root directory of the gem
[05:16:56] baweaver: and that didn't work?
[05:17:14] nesoi: ERROR: Could not find a valid gem './gem-name' (>=0) in any repository
[05:17:35] baweaver: look at that error
[05:17:47] baweaver: those are two different names
[05:17:50] nesoi: I am not a ruby guy so it isn't informative to me
[05:18:04] baweaver: gemname vs gem-name
[05:18:05] nesoi: I mistyped
[05:18:09] nesoi: it was gem-name in both cases
[05:18:09] baweaver: making sure
[05:18:23] baweaver: gem install --user-install gem_name
[05:18:36] nesoi: not gem-name.gemspec right?
[05:19:01] baweaver: have you built it at all?
[05:19:08] baweaver: gem build gemspec
[05:19:21] baweaver: gem install name-0.0.1.gem
[05:19:23] nesoi: I got it from a repo that has it built already
[05:19:32] nesoi: so there is a .gemspec file there
[05:19:40] baweaver: gem != gemspec
[05:20:22] nesoi: it's a directory with subdirectories bin lib and spec
[05:20:54] nesoi: gem install seems to be searching the internet not looking locally
[05:21:01] nesoi: it came back with alternatives from other repos
[05:21:30] nesoi: this is the repo https://github.com/jaysonvirissimo/ruby-mws
[05:21:36] baweaver: gem build gemspec
[05:21:40] Pumukel: has joined #ruby
[05:21:46] nesoi: I just downloaded the zip file and unzipped it
[05:21:54] nesoi: now am trying to install. it updates a previous version of this gem
[05:22:07] baweaver: gem build ruby-mws.gemspec
[05:22:18] baweaver: make sure to increment the version
[05:22:22] JeanCarloMachado: has joined #ruby
[05:22:31] baweaver: https://github.com/jaysonvirissimo/ruby-mws/blob/master/lib/ruby-mws/version.rb
[05:22:31] nesoi: not sure how to do that
[05:22:37] baweaver: you add one to it
[05:22:38] nesoi: maybe best to uninstall the original gem?
[05:23:36] nesoi: I tried gem build ruby-mws.gemspec and it returned Invalid gemspec in [ruby-mws.gemspec-: no such file or directory - git ls-files
[05:23:44] nesoi: ERROR: error loading gemspec. aborting
[05:23:45] baweaver: read what I just said
[05:23:50] baweaver: gem build ruby-mws.gemspec
[05:23:54] baweaver: exactly that
[05:24:00] nesoi: that's the error message I got doing exactly that
[05:24:30] nesoi: thanks for helping btw
[05:24:40] baweaver: it's because you downloaded it as a zip file
[05:24:44] baweaver: do you know how to use git?
[05:24:49] baweaver: what OS are you on?
[05:24:58] wheatley: has joined #ruby
[05:24:58] nesoi: windows, but the zip file should be ok no?
[05:25:09] baweaver: Look up how to install Git for your OS
[05:25:13] nesoi: I have git on it
[05:25:16] baweaver: The gemspec is trying to use git
[05:25:32] baweaver: you'll likely have to modify the gemspec file to not do that
[05:26:08] baweaver: Yeah, it's an older gem, one sec, looking for the non-git version
[05:27:21] baweaver: Dir.glob("**/*") would get all files
[05:27:35] baweaver: for whatever reason git isn't recognized on your box
[05:28:16] y2mq37: has joined #ruby
[05:28:40] baweaver: the faster way though is to make git work on there
[05:28:51] baweaver: too many shenanigans some times
[05:29:11] dionysus69: has joined #ruby
[05:30:23] nesoi: so what should I do???
[05:30:43] madhatter: has joined #ruby
[05:30:59] nesoi: can I point gem install to that repo?
[05:31:27] nesoi: hm. yeah 'git' isn't working from the command line
[05:31:44] baweaver: http://stackoverflow.com/questions/2577346/how-to-install-gem-from-github-source
[05:31:51] baweaver: see the specific_install bit
[05:35:18] hays_: has joined #ruby
[05:35:18] hays_: has joined #ruby
[05:35:52] nesoi: right I tried that
[05:36:25] nesoi: or some of it
[05:36:27] nesoi: not sure what to do really
[05:36:34] nesoi: I should be able to install it from the local copy no?
[05:36:56] baweaver: to do that you need git
[05:37:03] baweaver: otherwise it's not going to build
[05:37:15] baweaver: either that or to replace the git ls-files with something equivalent
[05:37:30] baweaver: like Dir.glob("**/*")
[05:37:37] nesoi: unknown command specific_install
[05:37:49] JeanCarloMachado: has joined #ruby
[05:37:59] baweaver: https://github.com/baweaver/izzy/blob/master/izzy.gemspec#L15
[05:38:25] baweaver: the number of stupid things with Windows support for Ruby....
[05:38:35] nesoi: not sure what I would do with that
[05:38:41] nesoi: the previous version is installed though
[05:38:48] nesoi: so it should be possible to install this update
[05:39:22] baweaver: Why not use a more maintained gem like https://github.com/hakanensari/peddler >
[05:40:02] nesoi: I have code that uses this gem and I just need the update
[05:40:26] baweaver: does it have a gemfile?
[05:40:39] baweaver: because you can point to a directory with that
[05:40:39] nesoi: does what have a gemfile?
[05:40:45] baweaver: the code that uses it
[05:41:06] nesoi: there's a Gemfile in this update I'm trying to install
[05:41:09] baweaver: still though, a 4-5+ year old gem with little to no updates is potentially risky
[05:41:16] nesoi: it was updated last December
[05:41:25] nesoi: so how do I install it with the Gemfile?
[05:41:41] baweaver: bundle install
[05:43:15] VladGh: has joined #ruby
[05:43:35] jcao219: has joined #ruby
[05:43:52] nesoi: bundle is not recognized as an internal or external command
[05:44:13] baweaver: gem 'gemname', path: 'path'
[05:44:24] baweaver: in the gemfile
[05:44:36] Radar: Did you "gem install bundler" first?
[05:44:36] baweaver: so in command line you can't run bundle?
[05:44:59] baweaver: !cookie Radar
[05:45:04] ruby[bot]: here's your cookie: 🍪
[05:45:21] nesoi: no, because I didn't know about bundler
[05:46:07] nesoi: so now that I installed bundler?
[05:46:24] baweaver: add that above to your gemfile in your code
[05:46:36] baweaver: also, if possible, I would avoid using Windows for Ruby.
[05:46:47] baweaver: There are a lot of very interesting quirks.
[05:47:20] nesoi: ok, so put in the gemfile
[05:47:23] baweaver: Most of the community use Unix-like OS's, meaning they rarely think about Windows users
[05:47:39] nesoi: gem 'gemname', path: 'local path to base directory on the current machine' ?
[05:47:44] baweaver: now if you run `bundle install` it'll grab that
[05:47:45] marlinc: has joined #ruby
[05:47:50] baweaver: absolute path
[05:47:53] nesoi: I will move it to osx after I get this working
[05:47:55] JeanCarloMachado: has joined #ruby
[05:48:25] baweaver: Radar wrote an entire guide on that one (that I'm too lazy to google. Help a brother out Radar?)
[05:48:44] Radar: baweaver: I did? You mean how to build a gem?
[05:49:02] Radar: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you
[05:49:04] baweaver: We should make a command for that already
[05:49:11] nesoi: so put it under gemspec or where?
[05:49:32] baweaver: the line from above? no, Gemfile
[05:49:46] nesoi: within the Gemfile
[05:49:49] nesoi: where should it go?
[05:49:50] anisha: has joined #ruby
[05:50:24] baweaver: Just put it at the end of the file
[05:50:38] baweaver: make sure you use the gem name and the directory there
[05:50:47] baweaver: and if it's in gemspec remove it.
[05:51:01] enterprisey: has joined #ruby
[05:51:25] nesoi: there is gemspec
[05:51:33] nesoi: then under that a bunch of gem 'name'
[05:51:48] baweaver: Yeah, add it under those
[05:52:03] baweaver: if that gem name is in the gemspec itself though, remove it so it defaults to the Gemfile
[05:52:34] nesoi: so should I just delete the entire directory under gems which contains the old version or is there a better way to remove it?
[05:53:38] nesoi: no I shouldn't or no there's not a better way?
[05:53:42] baweaver: http://stackoverflow.com/a/14636783
[05:53:54] baweaver: trying to parse that statement
[05:54:09] baweaver: why do you think you need to delete that entire directory?
[05:54:19] nesoi: because it may be the same version #
[05:54:24] nesoi: and I don't want it to be confused
[05:54:36] baweaver: bundler keeps things scoped to a directory
[05:54:48] baweaver: i.e. if your Gemfile points elsewhere it sources from there
[05:54:58] baweaver: and it'll also take github links
[05:55:00] baweaver: see link above
[05:55:07] nesoi: right, but I don't want two gems with the same name
[05:55:13] nesoi: so I definitely want to get rid of the old version
[05:55:25] baweaver: it won't matter with bundler, leave it be for now
[05:55:34] nesoi: so wait I have to specify it differently in my code?
[05:55:41] JeanCarloMachado: has joined #ruby
[05:55:45] nesoi: so bundle Gemfile?
[05:55:55] baweaver: just bundle install in that directory
[05:56:13] nesoi: I have a directory containing the unzipped gem
[05:56:13] baweaver: as long as the Gemfile specifies a different path to that gem it'll go there to find it
[05:56:16] y2mq37: has joined #ruby
[05:56:25] nesoi: in that directory I should type "bundle install"?
[05:56:33] nesoi: or "bundle install Gemfile"?
[05:56:34] baweaver: in your application that's using it
[05:56:45] nesoi: all the gems are in the ruby directory now
[05:56:49] destroy``: has joined #ruby
[05:56:57] Silthias: has joined #ruby
[05:57:01] nesoi: none are in the application directory
[05:57:05] baweaver: that has nothing to do with anything we've just been going over
[05:57:29] baweaver: Ok, so from the top then...
[05:57:42] baweaver: Application Foo requires Gem Bar that's local
[05:57:53] bataii: has joined #ruby
[05:57:59] baweaver: in the Gemfile of Application Foo you want to edit its Gemfile to point to your local Gem Bar
[05:58:01] nesoi: and which has been working
[05:58:14] nesoi: application foo has no Gemfile
[05:58:26] baweaver: Then it needs one
[05:58:27] nesoi: it's just a ruby program
[05:58:37] nesoi: I just want to update this gem as it was
[05:58:47] nesoi: it's under gems in the ruby directory
[05:59:18] baweaver: That's irrelevant
[05:59:22] baweaver: forget your gem directory
[06:00:06] VladGh: has joined #ruby
[06:00:17] baweaver: Make sure your Ruby script is in its own directory, and add a Gemfile to it to make sure it points to that
[06:00:46] nesoi: this has worked fine for years
[06:00:54] nesoi: I just need a new version of this gem to be available
[06:01:00] nesoi: I don't want to make any changes to the existing app
[06:03:03] Pumukel: has joined #ruby
[06:03:23] bataii: has joined #ruby
[06:04:20] rkazak: has joined #ruby
[06:06:51] sp4rrow_: has joined #ruby
[06:08:30] Silthias: has joined #ruby
[06:08:42] hays_: is there any hope that ruby will get things like pandas, numpy, scipy, matplotlib, sklearn, etc
[06:09:59] JeanCarloMachado: has joined #ruby
[06:10:24] xall: has joined #ruby
[06:14:11] nesoi: baweaver: I think I got it to work by just copying the entire directory over the old one
[06:16:27] JeanCarloMachado: has joined #ruby
[06:18:45] Silthias: has joined #ruby
[06:19:12] nesoi: thanks for the peddler link
[06:24:16] vali: has joined #ruby
[06:26:57] JeanCarloMachado: has joined #ruby
[06:28:28] duderonomy: has joined #ruby
[06:28:58] ttilley: has joined #ruby
[06:29:20] ttilley: has joined #ruby
[06:30:08] Ellimist: has joined #ruby
[06:30:12] Silthias: has joined #ruby
[06:31:25] interki: has joined #ruby
[06:33:25] JeanCarloMachado: has joined #ruby
[06:33:56] xall_: has joined #ruby
[06:36:44] patarr: has joined #ruby
[06:38:36] last_staff: has joined #ruby
[06:38:47] JeanCarloMachado: has joined #ruby
[06:42:30] Silthias: has joined #ruby
[06:45:30] valentinul: has joined #ruby
[06:47:23] JeanCarloMachado: has joined #ruby
[06:48:23] burgestrand: has joined #ruby
[06:49:22] SteenJobs: has joined #ruby
[06:50:06] foxmask: has joined #ruby
[06:52:52] vondruch: has joined #ruby
[06:53:23] yogg-saron: has joined #ruby
[06:55:33] bronson: has joined #ruby
[06:55:54] JeanCarloMachado: has joined #ruby
[06:56:03] vali: has joined #ruby
[06:58:57] djbkd_: has joined #ruby
[07:05:23] JeanCarloMachado: has joined #ruby
[07:06:00] Silthias: has joined #ruby
[07:10:16] xall_: has joined #ruby
[07:12:45] skweek: has joined #ruby
[07:12:48] mjora7: has joined #ruby
[07:17:14] Jameser: has joined #ruby
[07:19:12] Silthias: has joined #ruby
[07:19:37] grh: has joined #ruby
[07:23:48] JustJosh: has joined #ruby
[07:25:18] Jameser: has joined #ruby
[07:27:29] kristofferR: has joined #ruby
[07:28:43] anisha: has joined #ruby
[07:30:00] mikecmpbll: has joined #ruby
[07:32:14] Silthias: has joined #ruby
[07:32:21] mark_66: has joined #ruby
[07:32:50] Pumukel: has joined #ruby
[07:33:01] JustJosh: Does anybody have tips for setting up a local environment to contribute to Ruby Core?
[07:33:29] JustJosh: I've only contributed once before, I added Array#prepend and Array#append
[07:33:41] andikr: has joined #ruby
[07:33:55] JustJosh: But testing changes was a pain, since I had to install from source each time.
[07:34:08] jeyraof^mbpr: has joined #ruby
[07:35:32] Pumukel: has joined #ruby
[07:36:55] blackmesa: has joined #ruby
[07:38:02] JeanCarloMachado: has joined #ruby
[07:38:23] renchan: has joined #ruby
[07:40:12] KrzaQ: What is the 'Data' constant? I can't use it in my scripts because they yell at me for redefining a constant, but it contains now data
[07:41:37] JustJosh: I'm not sure, KrzaQ. I'm curious though. I'm going to look into it real quick.
[07:42:01] `derpy: http://ruby-doc.org/core-2.4.1/Data.html
[07:43:29] KrzaQ: too bad such a common name is restricted like that
[07:44:06] blackmesa: has joined #ruby
[07:44:21] jcao219: has joined #ruby
[07:45:07] herwin: JustJosh: `make` creates an executable that you can use without installing, so something like `make && bin/ruby -I lib/whatever test/test.rb`
[07:45:22] herwin: not sure about the paths
[07:45:38] rkellermeyer: has joined #ruby
[07:47:25] JustJosh: Thanks, herwin
[07:48:37] JeanCarloMachado: has joined #ruby
[07:49:50] tweezer: has joined #ruby
[07:51:10] Silthias: has joined #ruby
[07:51:48] Jameser: has joined #ruby
[07:52:33] skweek: has joined #ruby
[07:53:06] herwin: there might be smarter solutions, but this works and i haven't spent enough time in the mri-source to be bothered by it
[07:56:02] JustJosh: I'll probably just alias what you sent me and stick with that for now.
[07:56:03] bronson: has joined #ruby
[07:56:46] bweston92: has joined #ruby
[07:57:14] ddffg: has joined #ruby
[07:58:38] mikecmpbll: has joined #ruby
[08:02:32] guardianJ: has joined #ruby
[08:02:53] JeanCarloMachado: has joined #ruby
[08:06:47] perniciouscaffei: has joined #ruby
[08:07:49] skade_: has joined #ruby
[08:09:31] Jameser: has joined #ruby
[08:11:31] Silthias: has joined #ruby
[08:12:21] JeanCarloMachado: has joined #ruby
[08:13:16] jsrn_: has joined #ruby
[08:13:19] TreyG: has joined #ruby
[08:14:36] flying: has joined #ruby
[08:20:15] Silthias: has joined #ruby
[08:20:16] jaruga: has joined #ruby
[08:21:57] archon-: has joined #ruby
[08:22:21] archon-: has joined #ruby
[08:22:40] tomphp: has joined #ruby
[08:22:41] Jameser: has joined #ruby
[08:22:47] archon-: has joined #ruby
[08:25:15] JeanCarloMachado: has joined #ruby
[08:26:03] vali: has joined #ruby
[08:26:18] Mia: has joined #ruby
[08:26:18] Mia: has joined #ruby
[08:27:07] jenrzzz: has joined #ruby
[08:27:08] jenrzzz: has joined #ruby
[08:27:25] nadir: has joined #ruby
[08:28:12] xenops: has joined #ruby
[08:32:19] mim1k: has joined #ruby
[08:36:34] Guest96: has joined #ruby
[08:36:51] jcao219: has joined #ruby
[08:38:30] burgestrand: has joined #ruby
[08:38:51] aufi: has joined #ruby
[08:39:48] marr: has joined #ruby
[08:40:10] JeanCarloMachado: has joined #ruby
[08:43:35] jenrzzz: has joined #ruby
[08:43:50] User458764: has joined #ruby
[08:44:55] cgfbee: has joined #ruby
[08:47:01] Pumukel: has joined #ruby
[08:53:16] lxsameer: has joined #ruby
[08:53:17] aupadhye: has joined #ruby
[08:58:21] Guest96: has joined #ruby
[09:00:28] jgnagy: has joined #ruby
[09:07:14] esObe_: has joined #ruby
[09:08:45] pandaant: has joined #ruby
[09:13:47] Rory: has joined #ruby
[09:17:07] patarr: has joined #ruby
[09:24:29] Jameser: has joined #ruby
[09:27:23] Rory: has left #ruby: ()
[09:28:56] kegster: has joined #ruby
[09:32:50] scrooloose: has joined #ruby
[09:34:42] hs366: has joined #ruby
[09:34:58] antib: has joined #ruby
[09:35:29] quobo: has joined #ruby
[09:35:59] mim1k: has joined #ruby
[09:39:07] al2o3-cr: why? #<RuntimeError: implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly.>
[09:39:26] TreyG: has joined #ruby
[09:39:31] alif_bae: has joined #ruby
[09:40:16] cschneid_: has joined #ruby
[09:40:52] jenrzzz: has joined #ruby
[09:40:57] jenrzzz: has joined #ruby
[09:41:06] antgel: has joined #ruby
[09:43:44] User458764: has joined #ruby
[09:44:17] mim1k: has joined #ruby
[09:45:38] anisha: has joined #ruby
[09:46:08] last_staff: has joined #ruby
[09:53:04] rgr: has joined #ruby
[09:54:51] Jameser: has joined #ruby
[09:56:54] bronson: has joined #ruby
[09:56:58] jenrzzz: has joined #ruby
[09:56:58] jenrzzz: has joined #ruby
[09:58:08] guardianJ: has joined #ruby
[09:58:11] mim1k: has joined #ruby
[10:00:53] yCrazyEdd: has joined #ruby
[10:04:01] romank: has joined #ruby
[10:04:18] al2o3-cr: thank crunchie it's friday :)
[10:05:23] Casey: has joined #ruby
[10:06:11] tomphp: has joined #ruby
[10:06:40] Casey: how do i hacks wit cmd
[10:08:37] jamesaxl: has joined #ruby
[10:12:35] alif_bae: has joined #ruby
[10:14:35] ferr: has joined #ruby
[10:15:27] guardianJ: has joined #ruby
[10:16:15] blackmesa: has joined #ruby
[10:22:41] d^sh: has joined #ruby
[10:24:13] shuduo_: has joined #ruby
[10:24:32] alif: has joined #ruby
[10:25:17] lel: has joined #ruby
[10:28:38] govg: has joined #ruby
[10:31:10] mim1k: has joined #ruby
[10:31:13] m1911: has joined #ruby
[10:32:18] tomphp: has joined #ruby
[10:32:48] Guest96: has joined #ruby
[10:35:51] guardianJ: has joined #ruby
[10:36:01] BSaboia: has joined #ruby
[10:36:22] Guest96: has joined #ruby
[10:39:50] blackmesa: has joined #ruby
[10:41:45] Guest96: has joined #ruby
[10:44:11] mim1k: has joined #ruby
[10:47:20] al2o3-cr: it must be doing 'Z'.prepend('a').prepend('b').prepend('c') by the number of elements
[10:47:34] al2o3-cr: ^ scrooloose
[10:48:32] helpa-bot: has joined #ruby
[10:48:37] Axy: has joined #ruby
[10:48:37] Axy: has joined #ruby
[10:48:53] dn`_: has joined #ruby
[10:49:12] mim1k_: has joined #ruby
[10:50:02] nickjj_: has joined #ruby
[10:50:50] guardianJ: has joined #ruby
[10:50:59] t-recx: has joined #ruby
[10:51:35] helpa: has joined #ruby
[10:51:42] mortimer: has joined #ruby
[10:59:06] al2o3-cr: %w(a b c).map &'Z'.method(:<<) does the same weird
[11:00:00] tvw: has joined #ruby
[11:08:12] tomphp: has joined #ruby
[11:13:21] anisha: has joined #ruby
[11:17:04] petruff1: has joined #ruby
[11:17:40] patarr: has joined #ruby
[11:18:27] loechel: has joined #ruby
[11:20:08] mortimer: In one of my app, with big loop (displaying progress of process), printing result to stdout significantly slows whole process
[11:20:31] nofxx: has joined #ruby
[11:20:35] canton7: how often do you print the progress?
[11:21:21] mortimer: With the speed the proccess, the maximum speed, it's about 1k in second (or even more)
[11:21:29] canton7: yeah, that's going to slow it down :P
[11:21:37] canton7: print to stdout is relatively expensive, in almost any language
[11:21:56] mortimer: ^.^ This is why to my class Progressbar I added option to turn off displaying result :P
[11:22:18] canton7: limit yourself to printing a couple of times a second, or once every N iterations of your loop
[11:22:53] mortimer: I actually did it, it is pretty obvious step of optimalization
[11:23:40] guardianJ: has joined #ruby
[11:23:45] mortimer: Well, goodbye for now o/
[11:26:34] tomphp: has joined #ruby
[11:31:51] stoffus: has joined #ruby
[11:35:58] mim1k: has joined #ruby
[11:40:56] cschneid_: has joined #ruby
[11:44:32] dacod: has joined #ruby
[11:44:36] mim1k: has joined #ruby
[11:45:46] mortimer: has joined #ruby
[11:46:47] ldnunes: has joined #ruby
[11:49:03] dacod: has joined #ruby
[11:49:57] dacod: has joined #ruby
[11:57:07] synthroid: has joined #ruby
[11:57:38] blackmesa: has joined #ruby
[11:58:04] bronson: has joined #ruby
[11:59:45] synthroid: has joined #ruby
[12:02:29] __Yiota: has joined #ruby
[12:03:14] Pip_: has joined #ruby
[12:03:28] Pip_: So Matz didn't attend the 2017 RubyConf?
[12:03:38] User458764: has joined #ruby
[12:04:16] sepp2k: has joined #ruby
[12:06:03] guardianJ: has left #ruby: ()
[12:09:46] charliesome: has joined #ruby
[12:12:42] Pumukel: has joined #ruby
[12:16:06] DeeJayh_: has joined #ruby
[12:22:52] blackmesa: has joined #ruby
[12:30:32] jcao219: has joined #ruby
[12:34:43] omarek: has joined #ruby
[12:35:30] __Yiota: has joined #ruby
[12:40:32] Pip_: has joined #ruby
[12:44:03] rkellermeyer: has joined #ruby
[12:46:18] scrooloose: has joined #ruby
[12:46:46] nertzy2: has joined #ruby
[12:48:12] randomguy: has joined #ruby
[12:52:16] minimalism: has joined #ruby
[12:53:29] helpa-bot: has joined #ruby
[12:53:36] archtaku: has joined #ruby
[12:54:05] jsrn__: has joined #ruby
[12:54:06] Pisuke: has joined #ruby
[12:54:08] Mia: has joined #ruby
[12:54:57] dn`_: has joined #ruby
[12:55:30] helpa-bot: has joined #ruby
[12:57:32] helpa-bot: has joined #ruby
[12:58:05] genpaku_: has joined #ruby
[12:58:23] krandi: has joined #ruby
[12:59:33] helpa-bot: has joined #ruby
[13:01:34] helpa-bot: has joined #ruby
[13:02:23] jgnagy: has joined #ruby
[13:03:36] helpa: has joined #ruby
[13:04:04] ramortegui: has joined #ruby
[13:04:05] d^sh: has joined #ruby
[13:04:05] bweston92: has joined #ruby
[13:04:40] Jameser: has joined #ruby
[13:04:50] guardianJ: has joined #ruby
[13:05:16] mim1k: has joined #ruby
[13:05:36] Pumukel: has joined #ruby
[13:06:07] synthroid: has joined #ruby
[13:06:16] Pip: has joined #ruby
[13:09:32] ldnunes: has joined #ruby
[13:09:36] mortimer: has joined #ruby
[13:09:57] aupadhye: has joined #ruby
[13:10:22] toretore: has joined #ruby
[13:10:37] al2o3-cr: has joined #ruby
[13:10:41] sepp2k: has joined #ruby
[13:11:06] mark_66: has joined #ruby
[13:13:12] minimalism: has joined #ruby
[13:14:31] sparr: has joined #ruby
[13:14:31] coredump: has joined #ruby
[13:14:31] guidos: has joined #ruby
[13:14:31] mattwc: has joined #ruby
[13:14:31] silverdust: has joined #ruby
[13:15:47] gaucheph: has joined #ruby
[13:16:08] sparr: has joined #ruby
[13:16:55] LufyCZ: has joined #ruby
[13:18:47] JeanCarloMachado: has joined #ruby
[13:20:10] LufyCZ: Hi, Im a beginner, and I would want to ask, how could you tell if a variable is something, and then do something. If the variable is not the something proceed further. WIth this I mean: x = asd (would be gets) if x = asd, do something, if x = dsa, do something else. How could you accomplish this ?
[13:20:50] guardianJ: if-else statements
[13:21:21] minimalism: has joined #ruby
[13:21:54] LufyCZ: Could you please write a line of code for me ?
[13:21:56] MrBusiness: has joined #ruby
[13:22:29] LukyCZ: has joined #ruby
[13:22:42] guardianJ: https://www.tutorialspoint.com/ruby/ruby_if_else.htm
[13:22:51] LukyCZ: Kk will look into it thx
[13:23:19] mortimer: And if You want to i.e. stop execution of /function/ use "return"
[13:23:24] mortimer: oh, he left
[13:23:48] LBRapid: has joined #ruby
[13:23:58] rippa: has joined #ruby
[13:27:28] mattwc: has joined #ruby
[13:27:46] coredump: has joined #ruby
[13:28:01] guidos: has joined #ruby
[13:28:05] jrafanie: has joined #ruby
[13:29:00] esObe_: has joined #ruby
[13:29:17] ResidentBiscuit: has joined #ruby
[13:30:18] jphase_: has joined #ruby
[13:30:37] DLSteve: has joined #ruby
[13:30:44] millerti: has joined #ruby
[13:31:34] JeanCarloMachado: has joined #ruby
[13:38:53] jcao219: has joined #ruby
[13:41:19] alif_bae: has joined #ruby
[13:43:43] jrafanie: has joined #ruby
[13:44:20] _sfiguser: has joined #ruby
[13:50:17] JeanCarloMachado: has joined #ruby
[13:52:39] charliesome: has joined #ruby
[13:52:46] petruff1: has joined #ruby
[13:54:04] GinoMan: has joined #ruby
[13:55:24] alif: has joined #ruby
[13:56:47] alif: has joined #ruby
[13:58:23] destroy``: has joined #ruby
[13:59:07] bronson: has joined #ruby
[14:02:12] mim1k: has joined #ruby
[14:04:42] User458764: has joined #ruby
[14:07:00] patarr: has joined #ruby
[14:07:57] Guest96_: has joined #ruby
[14:08:30] swills: has joined #ruby
[14:10:03] SteenJobs: has joined #ruby
[14:11:16] charliesome: has joined #ruby
[14:12:56] toretore: has joined #ruby
[14:13:02] chouhoulis: has joined #ruby
[14:13:18] zapata: has joined #ruby
[14:15:34] _sfiguser: is ruby generally equivalent to python ? i mean in both performances/uses ?
[14:16:20] ljarvis: _sfiguser: it depends on what it's doing, but sure
[14:18:05] _sfiguser: ljarvis, i have to do machine learning
[14:20:20] choke: has joined #ruby
[14:20:28] __Yiota: has joined #ruby
[14:22:35] yeticry_: has joined #ruby
[14:23:14] cschneid_: has joined #ruby
[14:25:02] Silthias: has joined #ruby
[14:29:34] DrCode: has joined #ruby
[14:29:53] LastWhisper____: has joined #ruby
[14:31:56] KeyJoo: has joined #ruby
[14:33:30] rkazak: has joined #ruby
[14:34:08] swills: has joined #ruby
[14:36:10] LufyCZ: has joined #ruby
[14:36:15] Pumukel: has joined #ruby
[14:36:40] DrCode: has joined #ruby
[14:38:22] LufyCZ: Hi, how can I replace a string, that was put in by the user by a number ? In particular: symbol = + , but I need to make a number out of it so that + = 1. Thanks
[14:39:35] rgr_: has joined #ruby
[14:42:00] |RicharD|: has joined #ruby
[14:44:00] mortimer: LufyCZ: You mean something like calculator from user input?
[14:44:15] LufyCZ: #mortimer: Exactly
[14:44:25] mortimer: I put in console: 5 + 2, and get 7 in return?
[14:44:57] mortimer: Do You want it to work with complex expression, or only "number *operation* number" ?
[14:44:58] LufyCZ: I want the calculator to be able to do - + * and /
[14:45:05] ResidentBiscuit: has joined #ruby
[14:45:58] mortimer: First case is somehow best to write with *eval*
[14:48:00] mortimer: Second case is better to write with something like this:https://paste.ofcode.org/SRErQj8Ts396TZkyrhqLXY
[14:51:42] Alina-malina: has joined #ruby
[14:58:14] axyjo: has joined #ruby
[14:58:33] kirun: has joined #ruby
[14:58:59] hutch34: has joined #ruby
[14:59:10] Alina-malina: has joined #ruby
[15:00:08] SteenJobs: has joined #ruby
[15:00:25] Silthias: has joined #ruby
[15:00:57] d10n-work: has joined #ruby
[15:03:21] TomyLobo2: has joined #ruby
[15:03:27] scrooloose: has joined #ruby
[15:04:02] scrooloose: has joined #ruby
[15:05:48] scrooloose: has joined #ruby
[15:06:33] SteenJobs: has joined #ruby
[15:09:42] scrooloose: has joined #ruby
[15:09:52] al2o3-cr: has joined #ruby
[15:11:40] apparition: has joined #ruby
[15:12:13] bronson: has joined #ruby
[15:12:22] erz: has joined #ruby
[15:16:58] itarato: has joined #ruby
[15:19:26] jusa: has joined #ruby
[15:21:01] skade_: has joined #ruby
[15:21:10] haylon: has joined #ruby
[15:22:13] ozcanesen: has joined #ruby
[15:22:46] kegster: has joined #ruby
[15:25:23] alif_bae: has joined #ruby
[15:25:45] Silthias: has joined #ruby
[15:30:02] alif: has joined #ruby
[15:30:19] brent__: has joined #ruby
[15:30:31] erz: what is ruby anyway?
[15:30:51] apparition: has joined #ruby
[15:31:37] ytti: A ruby is a pink to blood-red colored gemstone, a variety of the mineral corundum (aluminium oxide).
[15:31:38] cschneid_: has joined #ruby
[15:31:41] havenwood: erz: It's a programming language.
[15:32:14] brent__: has joined #ruby
[15:32:21] gaucheph: has joined #ruby
[15:32:23] ytti: hmm, i can turn my pepsi cans to ruby by exposing them to oxygen?
[15:32:28] ytti: game changer
[15:33:29] erz: oh, thanks - seems there is some life here. the pepsi is cool :)
[15:36:09] DeeJayh_: has joined #ruby
[15:37:20] LastWhisper____: has joined #ruby
[15:38:31] synthroid: has joined #ruby
[15:42:47] eljimbo: has joined #ruby
[15:43:05] KCmetro: has joined #ruby
[15:43:26] [Butch]: has joined #ruby
[15:43:42] omarek: has joined #ruby
[15:45:59] rkazak: has joined #ruby
[15:46:41] _sfiguser: has joined #ruby
[15:46:59] HoierM: has joined #ruby
[15:47:52] HoierM: has joined #ruby
[15:48:37] GodFather: has joined #ruby
[15:48:41] HoierM: has joined #ruby
[15:49:00] babblebre: has joined #ruby
[15:49:02] mim1k: has joined #ruby
[15:49:40] HoierM: has joined #ruby
[15:50:11] apparition: has joined #ruby
[15:50:56] HoierM: has joined #ruby
[15:51:53] HoierM: has joined #ruby
[15:52:44] HoierM: has joined #ruby
[15:53:46] HoierM: has joined #ruby
[15:54:09] gusrub: has joined #ruby
[15:54:17] jphase: has joined #ruby
[15:54:49] HoierM: has joined #ruby
[15:55:37] polishdub: has joined #ruby
[15:56:05] HoierM: has joined #ruby
[15:56:56] HoierM: has joined #ruby
[15:57:32] amclain: has joined #ruby
[15:57:57] HoierM: has joined #ruby
[15:58:18] electrostat: has joined #ruby
[15:58:38] Guest96: has joined #ruby
[15:58:52] HoierM: has joined #ruby
[15:59:26] gaucheph: has joined #ruby
[15:59:52] HoierM: has joined #ruby
[16:01:14] HoierM: has joined #ruby
[16:02:30] HoierM: has joined #ruby
[16:03:33] HoierM: has joined #ruby
[16:04:05] Eindoofus: has joined #ruby
[16:04:14] tomphp: has joined #ruby
[16:04:37] HoierM: has joined #ruby
[16:05:52] HoierM: has joined #ruby
[16:06:53] HoierM: has joined #ruby
[16:07:39] Silthias1: has joined #ruby
[16:08:22] BTRE: has joined #ruby
[16:08:41] HoierM: has joined #ruby
[16:09:13] gusrub: has joined #ruby
[16:10:08] HoierM: has joined #ruby
[16:10:37] perniciouscaffei: has joined #ruby
[16:11:05] HoierM: has joined #ruby
[16:11:54] HoierM: has joined #ruby
[16:12:44] HoierM: has joined #ruby
[16:13:11] __Yiota: has joined #ruby
[16:19:58] mniip: has joined #ruby
[16:21:32] Dimik: has joined #ruby
[16:22:07] nitric: has joined #ruby
[16:22:18] tomphp: has joined #ruby
[16:22:27] JoshS: has joined #ruby
[16:24:07] juggler: has joined #ruby
[16:25:03] kirun_: has joined #ruby
[16:25:09] SteenJobs: has joined #ruby
[16:25:46] DeeJayh_: has joined #ruby
[16:27:04] synthroid: has joined #ruby
[16:27:37] tomphp: has joined #ruby
[16:28:53] gusrub: has joined #ruby
[16:29:14] esObe_: has joined #ruby
[16:30:52] DeeJayh-L_: has joined #ruby
[16:31:46] DeeJayh-L: has joined #ruby
[16:33:04] DeeJayh-L: has joined #ruby
[16:34:08] jphase_: has joined #ruby
[16:34:58] TomyLobo2: has joined #ruby
[16:43:30] blackmesa: has joined #ruby
[16:48:45] bungoman: has joined #ruby
[16:53:45] Silthias: has joined #ruby
[16:55:09] petruff: has joined #ruby
[17:00:06] haylon: Has anyone used the Mechanize gem? I have some questions about it.
[17:00:57] TreyG: has joined #ruby
[17:01:07] havenwood: haylon: Ask away! Lot of folk here have used it and some might know the answer.
[17:02:44] haylon: I'm trying to convert this Python script that uses its flavor of Mechanize to the Ruby flavor. I see it setting some settings like #set_cookiejar(), #set_handle_equiv() and some other parts, but I didn't see those in the docs, or initalize method for the class, otherwise I'm not looking for the correct words.
[17:02:49] jusa: has joined #ruby
[17:02:50] petruff: has joined #ruby
[17:04:02] jgnagy: has joined #ruby
[17:04:26] __Yiota: has joined #ruby
[17:04:50] esObe_: has joined #ruby
[17:10:05] rkazak: has joined #ruby
[17:14:06] bitcycle: has joined #ruby
[17:14:38] jrafanie: has joined #ruby
[17:14:45] mostlybadfly: has joined #ruby
[17:15:00] dlitvak: has joined #ruby
[17:16:04] hutch34: has joined #ruby
[17:16:59] AndrewIsHere: has joined #ruby
[17:19:07] Silthias: has left #ruby: ()
[17:21:26] gusrub: has joined #ruby
[17:24:10] User458764: has joined #ruby
[17:24:40] kirun: has joined #ruby
[17:24:47] Mon_Ouie: has joined #ruby
[17:27:09] kies^: has joined #ruby
[17:28:26] TomyLobo: has joined #ruby
[17:33:01] grymmjack: has joined #ruby
[17:35:01] conta5: has joined #ruby
[17:36:51] mim1k: has joined #ruby
[17:38:01] makerops: has joined #ruby
[17:38:55] makerops: how do I change application/xm in rest-client?
[17:39:15] xall_: has joined #ruby
[17:39:32] makerops: I tried content_type, accept, default_headers, but it keeps sending application/xml
[17:40:40] bronson: has joined #ruby
[17:42:00] gusrub: has joined #ruby
[17:45:29] tomphp: has joined #ruby
[17:46:52] nofxx: has joined #ruby
[17:47:18] haylon: you might have to manually set the header. I think there's an option to set manual headers, and just put in Content-Type: application/xml
[17:48:13] u0_a170: has joined #ruby
[17:49:01] mikecmpbll: has joined #ruby
[17:49:46] brendan-: has joined #ruby
[17:49:51] synthroid: has joined #ruby
[17:50:46] Eindoofus: has joined #ruby
[17:53:34] SeepingN: has joined #ruby
[17:54:01] makerops: yeah, I tried overriding it in the headers, but I think the default acccfept is getting precedence when apache processes the request
[17:54:08] makerops: im on rest-client 2.0.2
[17:55:14] alif: has joined #ruby
[17:55:40] tomphp: has joined #ruby
[17:56:05] mikecmpbll: has joined #ruby
[17:56:08] gusrub: has joined #ruby
[17:56:45] LufyCZ: How can I tell the program, that when the user inputs "twelwe" it means 12 ?
[17:57:25] cdg: has joined #ruby
[17:59:07] cschneid_: has joined #ruby
[18:01:08] Pumukel: has joined #ruby
[18:02:51] dhollinger: has joined #ruby
[18:03:36] gusrub: has joined #ruby
[18:05:31] chee: has joined #ruby
[18:06:07] KeyJoo: LufyCZ: use var, & block if
[18:06:33] synthroid: has joined #ruby
[18:06:55] LufyCZ: KeyJoo: Uh, I didnt understand almost anything of that.
[18:08:03] chee: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:09:06] KeyJoo: read about If-construction(for all languages)
[18:09:14] LufyCZ: Will do, thanks
[18:09:54] KeyJoo: but your first step - to mind : What is variable
[18:10:18] LufyCZ: Something that can change during the runtime
[18:11:17] segy: has joined #ruby
[18:15:11] ahrs: has joined #ruby
[18:15:25] KeyJoo: LufyCZ: elementery type of var = var['symbol','nunber','string']
[18:18:31] User458764: has joined #ruby
[18:18:48] LufyCZ: twelwe = 12 ?
[18:19:03] enterprisey: has joined #ruby
[18:20:22] segy: has joined #ruby
[18:20:44] havenwood: LufyCZ: Here are three related gems you might look at: https://github.com/diasks2/ruby-nlp#numbers
[18:21:00] bronson: has joined #ruby
[18:21:37] dcunit3d: has joined #ruby
[18:22:25] LufyCZ: havenwood: I dont mean all the numbers, just like 5 of them
[18:25:44] nofxx: has joined #ruby
[18:25:57] nofxx: has joined #ruby
[18:27:47] LufyCZ: So when the user inputs b, it will be 0
[18:27:48] KeyJoo: if b = twelve then b = a
[18:29:20] KeyJoo: When user input b, than you put in b = a = 12
[18:30:21] LufyCZ: https://paste.ofcode.org/mu3MfstcMEHUipe9AY6bzf ?
[18:33:10] mjora7: has joined #ruby
[18:33:18] patr0clus: has joined #ruby
[18:34:21] jrafanie: has joined #ruby
[18:35:24] nobodyzxc: has joined #ruby
[18:35:32] synthroid: has joined #ruby
[18:39:15] KeyJoo: LufyCZ: in logic-algorithm >> your code = true
[18:41:51] TomyLobo: has joined #ruby
[18:42:02] tomphp_: has joined #ruby
[18:42:06] Pumukel: has joined #ruby
[18:45:32] JeanCarloMachado: has joined #ruby
[18:45:43] nesoi: has left #ruby: ()
[18:54:06] mjora7: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:55:18] planigan: has joined #ruby
[18:56:11] lxsameer: has joined #ruby
[18:56:27] friday: has joined #ruby
[18:59:20] haylon: I think I just don't know what I'm doing with this Mechanize Gem.
[18:59:51] PaulCapestany: has joined #ruby
[19:00:24] User458764: has joined #ruby
[19:04:54] andrzejku: has joined #ruby
[19:13:29] ddffg: what does this command mean "bundler install --binstubs"
[19:13:40] yogg-saron: has joined #ruby
[19:14:15] last_staff1: has joined #ruby
[19:16:12] millerti: has joined #ruby
[19:17:02] havenwood: ddffg: Do you know what just `bundler install` means?
[19:17:21] havenwood: ddffg: See: bundle install --help
[19:17:33] havenwood: ddffg: "Creates a directory (defaults to ~/bin) and place any executables from the gem there. These executables run in Bundler's context."
[19:17:56] havenwood: "Bundler's context" just means using the exact versions of gems from the Gemfile.lock.
[19:18:18] synthroid: has joined #ruby
[19:18:25] havenwood: ddffg: Ask away if any of that doesn't make sense.
[19:20:02] alif_bae: has joined #ruby
[19:20:21] ddffg: what is the difference between "bundler" and "bundle"
[19:23:20] elomatreb: None, one is an alias for the other (can't remember which way around though)
[19:27:21] blackmesa: has joined #ruby
[19:27:24] enterprisey: has joined #ruby
[19:29:07] TomyLobo: has joined #ruby
[19:30:00] havenwood: bundler is a shim for bundle
[19:31:44] havenwood: https://github.com/bundler/bundler/blob/master/exe/bundler
[19:31:52] jackjackdripper: has joined #ruby
[19:32:50] JeanCarloMachado: has joined #ruby
[19:34:57] Komic_: has joined #ruby
[19:36:47] sparr: has joined #ruby
[19:37:42] cyphase: has joined #ruby
[19:38:34] TreyG: has joined #ruby
[19:43:14] patarr1: has joined #ruby
[19:44:21] tomphp: has joined #ruby
[19:45:19] romank: has joined #ruby
[19:51:31] alif_bae: has joined #ruby
[19:51:31] Jayson_Virissimo: has joined #ruby
[19:54:10] tomphp: has joined #ruby
[19:54:32] hobodave: has joined #ruby
[19:57:17] enterprisey: has joined #ruby
[19:57:48] cfec0b8d: has joined #ruby
[19:58:08] KCmetro: has joined #ruby
[20:01:54] tomphp: has joined #ruby
[20:04:06] hobodave_: has joined #ruby
[20:06:58] hutch34: has joined #ruby
[20:08:46] itarato: has joined #ruby
[20:11:46] dionysus69: has joined #ruby
[20:13:55] DeeJayh: has joined #ruby
[20:14:53] romank: has joined #ruby
[20:16:53] kies^: has joined #ruby
[20:17:47] romank: has joined #ruby
[20:18:32] jcao219: has joined #ruby
[20:21:43] nobodyzxc: has joined #ruby
[20:23:42] synthroid: has joined #ruby
[20:34:32] toretore: has joined #ruby
[20:36:53] bronson: has joined #ruby
[20:36:57] nankyokusei: has joined #ruby
[20:37:44] ruby-lang590: has joined #ruby
[20:40:34] duderonomy: has joined #ruby
[20:41:11] blackmesa: has joined #ruby
[20:41:29] eljimbo: has joined #ruby
[20:41:33] oleo: has joined #ruby
[20:47:54] Lucky_ABA: has joined #ruby
[20:48:12] JeanCarloMachado: has joined #ruby
[20:48:14] jusa: has joined #ruby
[20:48:34] __Yiota: has joined #ruby
[20:51:06] foli: has joined #ruby
[20:51:59] yqt: has joined #ruby
[20:53:35] jenrzzz: has joined #ruby
[20:53:36] jenrzzz: has joined #ruby
[20:53:55] patr0clus: has joined #ruby
[20:54:18] rkazak: has joined #ruby
[20:57:07] omarek: has joined #ruby
[20:57:31] omarek: has left #ruby: ()
[20:58:01] jcao219: has joined #ruby
[21:00:21] amperry: has joined #ruby
[21:01:31] amperry: hi folks, can someone point me in the direction of a quick primer on 'nokogiri'? I'm trying to rewrite some files that all have an '<h2>' element surrounded by two '<br>' elements.
[21:03:17] vikaton: has joined #ruby
[21:04:44] ljarvis: amperry: http://www.nokogiri.org/tutorials/modifying_an_html_xml_document.html#creating_new_nodes
[21:05:07] oleo: has joined #ruby
[21:05:22] jgnagy: has joined #ruby
[21:06:06] nofxx: has joined #ruby
[21:06:09] amperry: ljarvis: thanks, I'll take a look
[21:10:55] skweek: has joined #ruby
[21:17:11] mim1k: has joined #ruby
[21:17:38] DeeJayh: https://gist.github.com/Ruined1/be2f5073d1c36f29998e731bb335b08f
[21:17:54] DeeJayh: The number is constantly puts'd after 0, instead of only when it changes
[21:18:36] DeeJayh: Basically I'm trying to get the output to 1;2;3 instead of 1111111111111111;222222222222222222;3333333333333
[21:18:41] antgel: has joined #ruby
[21:20:47] havenwood: DeeJayh: Just for future reference, if you name your gist with a .rb extension it'll do nice syntax highlighting and make it easier for us to clone and try.
[21:21:38] DeeJayh: excellent and duely noticed
[21:21:38] silverdust: has joined #ruby
[21:22:00] DeeJayh: havenwood, updated wit rb ext
[21:23:34] postmodern: has joined #ruby
[21:23:54] bbr: has joined #ruby
[21:24:37] ptx0: has joined #ruby
[21:26:05] HoierM: has joined #ruby
[21:26:22] rkellermeyer: has joined #ruby
[21:27:04] HoierM: has joined #ruby
[21:27:46] DeeJayh: logically it should be calling as fast as the processor can handle, and as a float, but each iteration it should store the current number of elapsed seconds as an integer (thus cutting off the float and leaving a whole number)
[21:28:39] DeeJayh: so change = 0, eventually elapsed will equal 1, so puts elapsed and save change as 1
[21:29:10] DeeJayh: now that change is 1 and elapsed continues to be 1, they shouldn't puts again until elapsed becomes 2
[21:30:08] havenwood: DeeJayh: I'd suggest first rewriting your ternary operator as an if statement or case statement.
[21:31:34] havenwood: DeeJayh: Note the `else` doesn't happen if the `if` does.
[21:31:35] Klumben: has joined #ruby
[21:31:46] havenwood: Same with case statements.
[21:32:07] DeeJayh: @havenwood, why does no one in any language like single line if statements? I just got told the same thing for a similar style in python. They work just as well and end in less line of code. Is it a readability issue, or are you saying I'm missing a logical error and might notice it better if I wrote it out instead of one lining it?
[21:32:11] havenwood: And ternary. I don't think the ternary is working the way it was imagined.
[21:32:50] havenwood: DeeJayh: I think you're missing logical errors because of it.
[21:33:00] DeeJayh: kk I will give it a shot
[21:33:08] DeeJayh: I wrote a way more complex one
[21:33:09] DeeJayh: winning_color = winning_number.between?(37,38) ? "Green" : (winning_number.between?(1,9) || winning_number.between?(19,27) ? (winning_parity == "Even" ? "Black" : "Red") : (winning_parity == "Odd" ? "Black" : "Red"))
[21:33:15] DeeJayh: and it works just fine lol
[21:33:40] havenwood: DeeJayh: (As you have it `change = elapsed` only when `change == elapsed`)
[21:33:56] havenwood: So it's a noop.
[21:34:35] DeeJayh: oh, is it considering line 9 as the ending of line 8?
[21:34:48] DeeJayh: I thought you could have blanks in python
[21:36:17] DeeJayh: yea I changed it to change != elapsed ? (puts elapsed) : (puts "Nope") and it just constantly puts Nope
[21:36:21] alem0lars: has joined #ruby
[21:36:35] DeeJayh: alright, so back to making it an if statement and checking logic
[21:37:21] volty: has joined #ruby
[21:38:47] oleo: has joined #ruby
[21:40:24] __Yiota: has joined #ruby
[21:43:43] cschneid_: has joined #ruby
[21:50:18] unixabg_: has left #ruby: ()
[21:54:49] perniciouscaffei: has joined #ruby
[21:56:17] ddffg: has joined #ruby
[21:57:59] skweek: has joined #ruby
[21:59:49] eljimbo: has joined #ruby
[22:00:35] eljimbo: has joined #ruby
[22:01:21] eljimbo: has joined #ruby
[22:02:11] eljimbo: has joined #ruby
[22:02:48] LightStalker: has joined #ruby
[22:03:10] eljimbo: has joined #ruby
[22:03:37] bkxd: has joined #ruby
[22:09:34] Pumukel: has joined #ruby
[22:09:55] raspado: has joined #ruby
[22:14:49] brent__: has joined #ruby
[22:16:10] ledestin: has joined #ruby
[22:20:06] jcao219: has joined #ruby
[22:23:15] jamesaxl: has joined #ruby
[22:26:56] enterprisey: has joined #ruby
[22:29:06] alif_bae: has joined #ruby
[22:29:37] hutch34: has joined #ruby
[22:33:03] oleo: has joined #ruby
[22:33:38] Guest96: has joined #ruby
[22:36:34] jamesaxl: has joined #ruby
[22:39:05] Pumukel: has joined #ruby
[22:39:52] Pumukel: has joined #ruby
[22:40:40] Pumukel: has joined #ruby
[22:41:29] Pumukel: has joined #ruby
[22:42:01] cagomez: has joined #ruby
[22:42:16] Pumukel: has joined #ruby
[22:49:10] jusa: has joined #ruby
[22:49:14] minimalism: has joined #ruby
[22:52:56] m0d: has joined #ruby
[22:55:20] nankyokusei: has joined #ruby
[22:56:50] jackjackdripper1: has joined #ruby
[23:07:22] dcunit3d: has joined #ruby
[23:09:47] GodFather: has joined #ruby
[23:09:47] matherr: has joined #ruby
[23:10:43] matherr: hi . Why does this code return 184, instead of 268
[23:10:47] matherr: a = 03+0265 puts a
[23:11:50] Zarthus: Why do you prefix those numbers with a 0?
[23:12:10] matherr: without the trailing zero it gives correct answer. And with 0 too in case of two digit numbers.
[23:12:35] Zarthus: I *believe* it becomes hex that way, I'm kind of tired so i'll need to confirm
[23:12:38] gaucheph: has joined #ruby
[23:12:50] Zarthus: it's not hex
[23:14:26] matherr: Can you point me to some ruby documentation that tells why it happens?
[23:14:36] matherr: I couldn't find anything anywhere
[23:14:50] Zarthus: The prefixing 0 just means it will become an Octal digit
[23:15:00] Zarthus: the same way 0xFF becomes hex, and 0b11 becomes binary
[23:15:22] PaulCapestany: has joined #ruby
[23:15:24] Zarthus: it looks like the octal prefix is 0o000
[23:16:15] Zarthus: https://ruby-doc.org/core-2.3.0/doc/syntax/literals_rdoc.html#label-Numbers is something I found just out in the loose which should be a decent starting point
[23:16:21] matherr: Is that a small o after first 0?
[23:16:23] Zarthus: it's not very elaborate
[23:16:30] Zarthus: yes, although it is case insensitive
[23:16:49] matherr: But I don't use that in my code. It should still convert into octal?
[23:17:06] matherr: just because of the single 0
[23:17:09] Zarthus: It looks like the default is octal when you start with a 0
[23:17:14] Zarthus: Why are you prefixing it with a 0?
[23:17:19] matherr: I see. Thank you
[23:17:37] mim1k: has joined #ruby
[23:17:46] matherr: I was trying to experiment with different numbers and noticed that behaviour, and how it only happened with 3 digit numbers
[23:17:54] Zarthus: You can use 0d0023 to properly write your numbers
[23:18:14] matherr: Have a great day
[23:18:18] Zarthus: You too :)
[23:19:44] NightMonkey: has joined #ruby
[23:19:46] __Yiota: has joined #ruby
[23:23:21] PaulCapestany: has joined #ruby
[23:23:27] DLSteve: has joined #ruby
[23:24:40] DeeJayh: @havenwood, I just ended up needing some kind of noop, my logic was fine, but it was doing what I thought it was and taking line 9 as the ending of line 8, so now I have:
[23:24:41] DeeJayh: change != elapsed ? (puts elapsed) : nil
[23:24:48] DeeJayh: which works perfectly! cheers
[23:24:49] patarr: has joined #ruby
[23:27:14] charliesome: has joined #ruby
[23:29:09] oleo: has joined #ruby
[23:33:53] jcao219: has joined #ruby
[23:35:48] sp4rrow: has joined #ruby
[23:38:07] bronson: has joined #ruby
[23:38:40] vivekananda: has joined #ruby
[23:41:54] Joufflu: has joined #ruby
[23:44:36] cschneid_: has joined #ruby
[23:52:27] _sfiguser: has joined #ruby
[23:55:44] hutch34: has joined #ruby
[23:57:40] SCHAPiE: has joined #ruby
[23:58:23] Qommand0r: has joined #ruby