« Back to channel list

#ruby - 09 May 2016

« Back 1 day Forward 1 day »
[00:02:43] Moosashi: has joined #ruby
[00:03:00] skolman_: has joined #ruby
[00:03:34] chipotle: has joined #ruby
[00:05:41] hahuang61: has joined #ruby
[00:08:34] chouhoulis: has joined #ruby
[00:09:23] SilverKey: has joined #ruby
[00:12:21] banister: has joined #ruby
[00:12:31] dikaio: has joined #ruby
[00:14:36] mjuszczak: has joined #ruby
[00:16:02] xcesariox: has joined #ruby
[00:16:12] stannard: has joined #ruby
[00:17:43] rbennacer: has joined #ruby
[00:18:27] Musashi007: has joined #ruby
[00:18:34] electrostat: has joined #ruby
[00:20:45] dudepare: has joined #ruby
[00:28:58] mjuszczak: has joined #ruby
[00:29:40] `tim`: has joined #ruby
[00:31:58] dikaio: has joined #ruby
[00:37:03] houhoulis: has joined #ruby
[00:39:33] drewo: has joined #ruby
[00:40:34] Moosashi: has joined #ruby
[00:42:43] gooodroot: has joined #ruby
[00:43:46] dikaio: has joined #ruby
[00:44:06] Musashi007: has joined #ruby
[00:45:53] Rubie: has joined #ruby
[00:50:16] grenierm: has joined #ruby
[00:50:59] Ropeney: has joined #ruby
[00:52:30] ledestin: has joined #ruby
[00:54:55] amincd: has joined #ruby
[00:55:16] amincd: hi, what does the "%w" in %w"some string" do?
[00:56:40] llua: >> %w'foo bar baz'.each { |w| p w }
[00:56:41] ruby[bot]: llua: # => "foo" ...check link for more (https://eval.in/567141)
[00:59:02] goooodroot: has joined #ruby
[01:00:14] Moosashi: has joined #ruby
[01:00:38] amincd: llua so it turns it into an array with each substring delimited by a space turned into one element?
[01:00:56] soahccc: amincd: http://teohm.com/blog/2012/10/15/start-using-ruby-percent-notation/
[01:00:58] Musashi007: has joined #ruby
[01:01:09] amincd: soahccc: thanks
[01:03:12] Ox0dea: amincd: http://idiosyncratic-ruby.com/15-207-ways-to-rome.html
[01:03:41] mjuszczak: has joined #ruby
[01:03:46] `tim`: has joined #ruby
[01:06:29] amincd: Ox0dea: cheers
[01:07:02] diego1: has joined #ruby
[01:07:05] Ox0dea: amincd: No worries. The community style guide recommends %w(), but I think %w[] is better.
[01:07:20] Ox0dea: I mean, it's an Array...
[01:08:31] mjuszczak: has joined #ruby
[01:12:48] devbug: has joined #ruby
[01:13:17] skweek: has joined #ruby
[01:13:37] arescorpio: has joined #ruby
[01:14:25] amincd: Ox0dea: yea makes sense
[01:14:57] baweaver: maybe but I've yet to see it in the wild as that
[01:15:21] baweaver: there's something to be said for staying at least somewhat consistent with how the community does things
[01:15:32] baweaver: then again this isn't Python either, so...
[01:16:16] patrick_star_3: has joined #ruby
[01:16:20] LoneHerm_: has joined #ruby
[01:16:36] Ox0dea: And, so, but, well, why did the community settle on %w() in the first place?
[01:16:40] baweaver: anyways, my general thought on style is try and stay with what the community says as much as possible to avoid bikeshedding over silly things
[01:16:47] baweaver: ACTION shrugs
[01:17:07] baweaver: no one said it has to make the most sense in the world, you could always justify things
[01:17:15] Ox0dea: Try justifying this one.
[01:17:29] baweaver: point being if someone shows up on a code review and tries to change all that I'd ignore them
[01:17:38] baweaver: just like I'm going to ignore this and not bother
[01:17:53] baweaver: it's a waste of time over something trivial
[01:21:26] hahuang61: has joined #ruby
[01:23:27] djbkd: has joined #ruby
[01:26:12] djbkd: has joined #ruby
[01:31:10] nofxx: has joined #ruby
[01:31:10] nofxx: has joined #ruby
[01:33:08] tmtwd: has joined #ruby
[01:34:15] binaryplease: has joined #ruby
[01:37:12] moeabdol: has joined #ruby
[01:37:40] northrup: has joined #ruby
[01:40:32] crystal77: has joined #ruby
[01:40:35] zacts: has joined #ruby
[01:46:12] djbkd: has joined #ruby
[01:46:36] diego1: has joined #ruby
[01:46:56] chipotle: has joined #ruby
[01:47:21] diego1: has joined #ruby
[01:51:43] pickandmix: has joined #ruby
[01:51:50] djbkd: has joined #ruby
[01:52:00] solocshaw1: has joined #ruby
[01:54:21] RenatoSilva: has joined #ruby
[01:55:27] RenatoSilva: Ox0dea: ended up using powershell https://github.com/renatosilva/scripts/blob/master/notestopdf.rb :-/
[01:57:14] jenrzzz: has joined #ruby
[01:58:15] djbkd: has joined #ruby
[01:58:17] mjuszczak: has joined #ruby
[02:00:07] Ox0dea: renatosilva: Ah, well, glad you got it sorted, anyway. :P
[02:00:39] stardiviner: has joined #ruby
[02:00:46] nbdy: has joined #ruby
[02:00:49] tvon: has joined #ruby
[02:02:29] d5sx43: has joined #ruby
[02:04:10] Moosashi: has joined #ruby
[02:05:13] drewo: has joined #ruby
[02:05:38] dikaio: has joined #ruby
[02:08:09] sp4rrow: has joined #ruby
[02:10:18] RegulationD: has joined #ruby
[02:10:18] electrostat: has joined #ruby
[02:11:51] tatsuo: has joined #ruby
[02:14:26] gooooodroot: has joined #ruby
[02:15:49] RenatoSilva: has left #ruby: ("http://renatosilva.net - Renato Silva")
[02:15:59] brent__: has joined #ruby
[02:16:22] brent__: hello, stupid question. If i was to create a Gemfile, what extension should i give it?
[02:16:37] Arcaire: brent__: none
[02:16:45] brent__: thats what i thought
[02:16:53] brent__: any idea how to remove it on OSX?
[02:17:02] Arcaire: Just delete that bit in Finder.
[02:17:16] brent__: i clicked rename and deleted the .txt, however when i type ls in terminal it still shows the .txt
[02:17:21] brent__: and says it can't find a gemfile
[02:17:24] Arcaire: mv Gemfile.txt Gemfile
[02:17:25] Arcaire: in terminal
[02:17:28] Arcaire: should do it just fine
[02:17:40] Arcaire: Do this, also: https://support.apple.com/kb/PH19072?locale=en_US
[02:17:43] Arcaire: For future.
[02:18:02] nando293921: has joined #ruby
[02:18:34] brent__: yeah i have it show file extensions
[02:19:28] brent__: it was weird that removing the .txt in extension wasn't actually removing it
[02:19:41] brent__: Thanks for the help Arcaire!
[02:20:17] electrostat: has joined #ruby
[02:21:04] Arcaire: All good yo.
[02:26:34] Ruby3X3: has joined #ruby
[02:26:46] `tim`: has joined #ruby
[02:27:35] cdg: has joined #ruby
[02:28:09] skolman_: has joined #ruby
[02:28:37] LoneHermit: has joined #ruby
[02:37:13] stannard: has joined #ruby
[02:42:22] Moosashi: has joined #ruby
[02:44:13] kam270: has joined #ruby
[02:45:18] shakes: has joined #ruby
[02:46:13] ur5us: has joined #ruby
[02:46:31] ur5us: has joined #ruby
[02:47:41] shakes: has joined #ruby
[02:48:17] hashrate_: has joined #ruby
[02:50:36] chouhoulis: has joined #ruby
[02:50:47] skolman: has joined #ruby
[02:52:00] chopin: has joined #ruby
[02:53:17] skolman: has joined #ruby
[02:53:29] hahuang61: has joined #ruby
[02:57:46] d0nn1e: has joined #ruby
[02:58:37] Yzguy: has joined #ruby
[02:59:19] drewo: has joined #ruby
[02:59:23] jdawgaz: has joined #ruby
[03:01:14] LoneHermit: has joined #ruby
[03:02:13] yfeldblum: has joined #ruby
[03:03:59] idefine: has joined #ruby
[03:04:12] kkeuning: has joined #ruby
[03:05:06] bruno-: has joined #ruby
[03:07:46] Devalo: has joined #ruby
[03:10:56] cdg: has joined #ruby
[03:13:01] braincrash: has joined #ruby
[03:13:12] mjuszczak: has joined #ruby
[03:14:45] chopin: has joined #ruby
[03:15:34] chopin_: has joined #ruby
[03:19:20] kkeuning: has joined #ruby
[03:21:02] kkeuning: has joined #ruby
[03:23:43] gix: has joined #ruby
[03:24:15] goodroot: has joined #ruby
[03:24:16] xue: has joined #ruby
[03:25:41] moeabdol: has joined #ruby
[03:27:25] greves: has joined #ruby
[03:28:24] idefine: has joined #ruby
[03:32:09] tatsuo: has joined #ruby
[03:33:36] gooodroot: has joined #ruby
[03:36:06] elifoster: has joined #ruby
[03:45:30] goooodroot: has joined #ruby
[03:49:21] hk238: has joined #ruby
[03:50:39] bruce_lee: has joined #ruby
[03:53:04] d0lph1n98: has joined #ruby
[03:53:33] drewo: has joined #ruby
[03:56:42] chipotle: has joined #ruby
[03:59:44] gooooodroot: has joined #ruby
[04:00:51] postmodern: has joined #ruby
[04:00:59] zacstewart: has joined #ruby
[04:04:28] Yiota: has joined #ruby
[04:05:24] SilverKey: has joined #ruby
[04:07:30] ramfjord: has joined #ruby
[04:08:31] rbennacer: has joined #ruby
[04:09:02] kareeoleez: has joined #ruby
[04:09:28] b|ackwolf: has joined #ruby
[04:11:06] Yiota: has joined #ruby
[04:12:55] pawnbox: has joined #ruby
[04:12:59] nes: has joined #ruby
[04:13:09] jdawgaz: has joined #ruby
[04:13:45] fernando: has joined #ruby
[04:14:08] Moosashi: has joined #ruby
[04:19:00] goodroot: has joined #ruby
[04:19:11] djbkd: has joined #ruby
[04:19:53] connor_goodwolf: has joined #ruby
[04:25:25] ramfjord_: has joined #ruby
[04:27:14] sdwrage: has joined #ruby
[04:29:40] noService: has joined #ruby
[04:33:24] syk: has joined #ruby
[04:34:10] grenierm: has joined #ruby
[04:34:43] brent__: hello. Looking for some help understanding how to use "require 'file'" in pry
[04:35:22] brent__: https://gist.github.com/brentluna/928daa32294f9219d402b9177ae56c23 is what i get
[04:35:51] havenwood: brent__: Is it not working? What's unexpected?
[04:36:11] havenwood: brent__: From Pry: gem-install mines
[04:36:30] brent__: havenwood: did you see the gist? it just says LoadError: cannot-load such fiel
[04:36:50] havenwood: brent__: Did you run `gem-install mines` from pry
[04:36:59] brent__: interesting, so i need to do 'gem-install "filename"' first/
[04:37:19] dikaio: has joined #ruby
[04:37:21] fedexo: has joined #ruby
[04:37:23] chopin: has joined #ruby
[04:37:40] havenwood: brent__: That's just the way to install and require a gem from within Pry.
[04:37:43] zzak: has joined #ruby
[04:38:01] brent__: I was watching the screencast form here http://pryrepl.org/
[04:38:03] havenwood: You can alternatively install the gem from the command line then restart Pry and require it.
[04:38:16] havenwood: gem install mines
[04:38:29] havenwood: brent__: Since you're using rbenv you may have to `rbenv rehash`.
[04:38:34] ruby[bot]: Missing command under rbenv? Did you try `rbenv rehash`?
[04:39:55] brent__: why would i need to do 'gem-install mines'?
[04:40:03] brent__: it's not a gem, just a .rb file
[04:40:22] havenwood: brent__: I assumed it's a gem. If it's a file the problem is likely that it's not in your $LOAD_PATH.
[04:40:32] havenwood: Or not accessible from a dir that is, rather.
[04:40:38] drewo: has joined #ruby
[04:41:07] havenwood: brent__: Familiar with the #require_relative method?
[04:41:20] Ox0dea: brent__: You could say `require './mines'` or `require_relative 'mines'`, but it's better to get the necessary directory into $LOAD_PATH so that you can just say what you've got now.
[04:41:20] brent__: i have used it in the past
[04:41:38] havenwood: brent__: In Ruby 1.8 "." was in the $LOAD_PATH.
[04:42:38] brent__: Ox0dea: the directory may be changing for my files, does it still make sense to chang ethe $LOAD_path?
[04:43:18] havenwood: brent__: Say more about what you're doing.
[04:43:37] brent__: right now i'm just trying to learn some extra pry functionality
[04:44:07] havenwood: Take a look at: $LOAD_PATH
[04:44:08] brent__: not specifically doing anything, i suppose. Just trying to learn how to use pry
[04:44:59] havenwood: Yup, type: $LOAD_PATH
[04:45:09] brent__: k, see a lot for .rbenv directories listed
[04:45:29] moeabdol: has joined #ruby
[04:45:57] havenwood: brent__: Those are places #require will look.
[04:46:21] astrobunny: has joined #ruby
[04:47:10] havenwood: http://ruby-doc.org/core/Kernel.html#method-i-require
[04:47:23] havenwood: And #require_relative right beneath it
[04:47:27] brent__: okay, looking at how to add a directory
[04:49:18] havenwood: brent__: When you run pry you can `pry -I DIR` to "[a]dd a path to the $LOAD_PATH."
[04:50:40] brent__: does pry recognize which directory you invoked it from?
[04:51:55] Adam_FrVancouver: has joined #ruby
[04:54:48] bronson: has joined #ruby
[04:57:09] brent__: havenwood is it just 'pry -I DIR'? i'm getting 'unkown constant'
[04:57:23] brent__: or 'unexpected* constant"
[04:57:41] havenwood: brent__: By DIR I just mean the directory you want to add to the $LOAD_PATH. See: pry -h
[05:00:47] brent__: when starting pry with that command, it's still not fnding it w/ just 'require'
[05:01:34] Oog: has joined #ruby
[05:02:58] bruno-: has joined #ruby
[05:03:42] havenwood: brent__: Do you see the dir in your $LOAD_PATH and is the file you're loading in that dir?
[05:04:57] brent__: there it goes
[05:05:14] gooodroot: has joined #ruby
[05:05:40] brent__: brain farting and misspelled it the first time
[05:06:19] last_staff: has joined #ruby
[05:07:52] brent__: thanks for helping havenwood
[05:08:10] havenwood: you're welcome
[05:08:48] Don_John: has joined #ruby
[05:11:07] aibot: has joined #ruby
[05:11:29] goooodroot: has joined #ruby
[05:12:46] justin_pdx: has joined #ruby
[05:12:47] brent__: you guys really make a difference for people trying to learn
[05:14:02] rbennacer: has joined #ruby
[05:14:27] elifoster: has joined #ruby
[05:14:50] yfeldblum: has joined #ruby
[05:15:15] moeabdol: has joined #ruby
[05:15:28] abucha: has joined #ruby
[05:16:58] abucha_: has joined #ruby
[05:18:11] abucha__: has joined #ruby
[05:18:36] aufi: has joined #ruby
[05:19:49] Devalo: has joined #ruby
[05:24:48] Arcaire: brent__: yeah #ruby is mostly good like that :D
[05:25:30] Arcaire: There's some help channels around here that won't help you or will actively scorn you unless you fit within the bounds of 30-odd rules immediately before you ask for help, luckily this isn't one of them. ;)
[05:26:19] wolffles: has joined #ruby
[05:27:02] Ox0dea: >> @Ruby == @love
[05:27:03] ruby[bot]: Ox0dea: # => true (https://eval.in/567158)
[05:29:38] jaguarmagenta: has joined #ruby
[05:31:32] solocshaw: has joined #ruby
[05:33:06] ramfjord: has joined #ruby
[05:33:55] baweaver: ACTION snickers at Arcaire 
[05:34:40] CausaMortis: has joined #ruby
[05:34:52] skade: has joined #ruby
[05:35:43] brent__: I dunno, i've seen Ox0dea laying down the hammer
[05:36:03] Arcaire: That's nothing comparatively, trust me. :P
[05:36:39] Arcaire: You know those boarding schools in TV shows that are depicting ~mid 60s - ~mid 80s? Imagine that.
[05:36:54] Arcaire: Internet Q&A is the most serious business since Pentagon FOUO.
[05:37:35] Tristan-Speccy: has joined #ruby
[05:41:31] TheWhip: has joined #ruby
[05:41:50] brent__: i'm glad to have this resource, start a ruby/rails boot camp tomorrow, so going to need it i'm sure
[05:42:20] Arcaire: Good stuff.
[05:46:13] dionysus69: has joined #ruby
[05:46:50] the_drow: has joined #ruby
[05:49:33] sdwrage: has joined #ruby
[05:50:15] kam270: has joined #ruby
[05:51:33] b|ackwolf: has joined #ruby
[05:54:03] yardenbar: has joined #ruby
[05:56:09] moeabdol: has joined #ruby
[05:56:30] kareeoleez: has joined #ruby
[05:56:41] tax: has joined #ruby
[05:56:51] the_drow: has joined #ruby
[05:58:10] kareeoleez: has joined #ruby
[05:58:50] moeabdol: has joined #ruby
[05:59:05] _aeris_: has joined #ruby
[06:01:10] EdwardIII: has joined #ruby
[06:01:44] zacstewart: has joined #ruby
[06:02:21] ramfjord: has joined #ruby
[06:03:48] solars: has joined #ruby
[06:07:31] scepticulous: has joined #ruby
[06:07:53] anes: has joined #ruby
[06:08:03] tatsuo: has joined #ruby
[06:08:42] anes: Hi friends, I need to install ruby 2.1.9 in ubuntu 15.10, my current version is 2.1.5
[06:08:48] anes: any idea ?
[06:09:00] skade: has joined #ruby
[06:09:09] Devalo: has joined #ruby
[06:09:15] Ropeney: anes, https://github.com/rbenv/rbenv
[06:10:46] gooooodroot: has joined #ruby
[06:11:12] anes: Ropeney: I download it , unzip ..tell me how to install?
[06:11:28] Ropeney: anes, install what?
[06:11:48] RegulationD: has joined #ruby
[06:11:54] anes: i need to upgrade ruby version 2.1.5 to 2.1.9
[06:12:01] Musashi007: has joined #ruby
[06:12:09] Ropeney: is the link I provided no good?
[06:12:33] anes: Ropeney: it's a download page link in github
[06:12:51] anes: Ropeney: I download it and what else i do for
[06:12:57] Ropeney: follow the instructions
[06:13:32] Ropeney: me saying it and you reading it there... are the same except I have to say it...
[06:13:33] akem: has joined #ruby
[06:13:45] brianpWins_: has joined #ruby
[06:13:58] edwinvdgraaf: has joined #ruby
[06:15:16] the_drow: has joined #ruby
[06:15:19] Ox0dea: anes: https://www.brightbox.com/docs/ruby/ubuntu/
[06:15:33] kam270: has joined #ruby
[06:15:50] Ox0dea: That's the easiest way to get a sane Ruby environment on Ubuntu, as I understand it.
[06:16:11] Ropeney: Ox0dea, I didn't think they had 2.1.9?
[06:16:20] Ox0dea: Ropeney: I can't imagine why they wouldn't?
[06:17:09] Ropeney: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
[06:17:58] Ox0dea: Well, that's a shame.
[06:18:11] tatsuo_: has joined #ruby
[06:18:25] bigkevmcd: has joined #ruby
[06:19:21] ur5us: has joined #ruby
[06:19:23] anes: Ox0dea: Thanks your idea works fine
[06:19:37] Ox0dea: anes: Installing 2.1 gets you 2.1.9, then?
[06:19:38] Ropeney: they do have 2.1.9?
[06:19:51] anes: installed 2.2
[06:20:17] anes: exact version ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-linux-gnu]
[06:20:27] Ox0dea: Why not 2.3?
[06:20:37] Ropeney: they don't have 2.3 :P
[06:20:52] anes: but still wpscan show error as : [ERROR] cannot load such file -- bundler/setup
[06:20:58] Ropeney: doesn't ubuntu have a apt-get install ruby2.2 ?
[06:21:12] anes: yea that works
[06:21:42] Ropeney: Ox0dea, we don't all look at the second page :P
[06:21:46] the_drow: has joined #ruby
[06:21:59] Ox0dea: Ropeney: I was just going by the Brightbox docs page.
[06:22:12] anes: Ropeney,Ox0dea: but still wpscan show error as : [ERROR] cannot load such file -- bundler/setup
[06:22:24] anes: please advise why this error?
[06:22:41] Ox0dea: anes: You'll need to install Bundler.
[06:22:43] patrick_star_2: has joined #ruby
[06:22:48] Ropeney: gem install bundler
[06:24:00] firstdayonthejob: has joined #ruby
[06:24:16] anes: i installed it , but still show error : [ERROR] cannot load such file -- bundler/setup
[06:24:45] anes: anes@insight:~/Downloads/wpscan$ sudo gem install bundler [sudo] password for anes: Fetching: bundler-1.12.3.gem (100%)
[06:24:55] duncannz: has joined #ruby
[06:24:58] anes: it's successfully installed
[06:25:06] anes: but still error
[06:26:50] DoubleMalt: has joined #ruby
[06:27:12] anes: Ox0dea,Ropeney : what can do now ?
[06:27:54] Ox0dea: anes: Take it as a sign and leave the innocent WordPressers alone.
[06:28:26] Ox0dea: The README looks pretty thorough. Maybe give it a once-over.
[06:28:32] rbennacer: has joined #ruby
[06:28:33] anes: actually it's to check our black listed web site , not to harm any one lol
[06:30:14] jaiks1: has joined #ruby
[06:30:21] anes: Ox0dea: any free tool to identify and remove wp hacked stuff?
[06:30:32] Ox0dea: ¯\_(ツ)_/¯
[06:31:41] Yzguy: has joined #ruby
[06:32:23] Ropeney: might have more luck asking in a Wordpress chanel about that,
[06:34:20] d0lph1n98: has joined #ruby
[06:34:55] tAn: has joined #ruby
[06:35:58] xue: has joined #ruby
[06:37:34] roamingdog: has joined #ruby
[06:38:54] tildes: has joined #ruby
[06:39:58] ctp: has joined #ruby
[06:40:05] lxsameer: has joined #ruby
[06:40:58] the_drow: has joined #ruby
[06:42:04] ddffg: has joined #ruby
[06:42:58] Tichodroma: has joined #ruby
[06:44:04] ur5us: has joined #ruby
[06:44:47] idefine: has joined #ruby
[06:45:49] the_drow: has joined #ruby
[06:46:17] LoneHerm_: has joined #ruby
[06:51:47] tildes: has joined #ruby
[06:53:55] lsmola: has joined #ruby
[06:55:38] LoneHerm_: has joined #ruby
[06:55:45] ctp: has joined #ruby
[06:57:36] laska: has joined #ruby
[06:57:38] aganov: has joined #ruby
[06:58:15] CausaMortis: has joined #ruby
[06:59:42] Pumukel: has joined #ruby
[07:01:09] rbennacer: has joined #ruby
[07:02:30] anisha: has joined #ruby
[07:03:48] biberu: has joined #ruby
[07:03:52] Fernandos: has joined #ruby
[07:04:00] skade: has joined #ruby
[07:04:36] tagaulap: has joined #ruby
[07:04:44] laska: has left #ruby: ()
[07:05:15] ur5us: has joined #ruby
[07:05:25] ramfjord: has joined #ruby
[07:05:50] antgel: has joined #ruby
[07:06:21] drewo: has joined #ruby
[07:07:29] nbudua: has joined #ruby
[07:09:07] tesuji: has joined #ruby
[07:09:20] johnDoe111: has joined #ruby
[07:10:50] tatsuo: has joined #ruby
[07:12:54] TomyWork: has joined #ruby
[07:12:57] nisstyre: has joined #ruby
[07:14:55] gagrio: has joined #ruby
[07:16:17] Mon_Ouie: has joined #ruby
[07:17:41] janno_: has joined #ruby
[07:18:26] kam270: has joined #ruby
[07:18:47] johnDoe111^: has joined #ruby
[07:24:53] dionysus69: has joined #ruby
[07:31:10] vondruch: has joined #ruby
[07:33:23] shevy: we could write rordpress - in ruby!
[07:33:47] LoneHerm_: has joined #ruby
[07:34:31] agit0: has joined #ruby
[07:34:42] bluOxigen: has joined #ruby
[07:34:53] mikecmpbll: has joined #ruby
[07:35:08] goodroot: has joined #ruby
[07:37:14] platzhirsch: has joined #ruby
[07:39:14] Macaveli: has joined #ruby
[07:39:41] vdamewood: has joined #ruby
[07:39:52] Arahael: has joined #ruby
[07:40:35] Musashi007: has joined #ruby
[07:40:54] Arahael: Why might a be a string, yet be of length 0 and not be equal to ""?
[07:41:23] Arahael: Ie, (a == "") is False, but (a.length == 0) is true.
[07:43:13] Arahael: Hmm, when I'm being stupid.
[07:43:17] Arahael: ACTION retracts the entire question!
[07:44:28] Oog: has joined #ruby
[07:45:16] idefine: has joined #ruby
[07:46:55] loechel: has joined #ruby
[07:47:57] fernando: has joined #ruby
[07:48:05] shevy: perhaps it has so invisible characters that not even ruby itself can find them
[07:51:06] tatsuo: has joined #ruby
[07:51:27] solocshaw: has joined #ruby
[07:53:02] andikr: has joined #ruby
[07:53:33] Arahael: shevy: Nope. It wasn't a string.
[07:53:36] snowy: has joined #ruby
[07:53:48] Arahael: shevy: I discovered I was being stupid. :(
[07:56:24] pawnbox: has joined #ruby
[07:57:30] bronson: has joined #ruby
[07:58:27] mikecmpbll: has joined #ruby
[07:59:23] pawnbox: has joined #ruby
[08:00:25] drewo: has joined #ruby
[08:01:15] drptbl: has joined #ruby
[08:04:14] drptbl: has joined #ruby
[08:04:51] haxrbyte: has joined #ruby
[08:05:07] edavis: has joined #ruby
[08:06:31] bruno-: has joined #ruby
[08:06:33] the_drow: has joined #ruby
[08:06:59] CloCkWeRX: has joined #ruby
[08:07:33] GioVdK: has joined #ruby
[08:08:17] edavis_: has joined #ruby
[08:11:08] rbennacer: has joined #ruby
[08:11:40] robh71: has joined #ruby
[08:12:06] robh71: has joined #ruby
[08:12:10] mark_66: has joined #ruby
[08:12:36] RegulationD: has joined #ruby
[08:14:21] jaruga___: has joined #ruby
[08:16:03] finnnnnnnnnnn: has joined #ruby
[08:18:00] toretore: has joined #ruby
[08:18:01] Shashikant86: has joined #ruby
[08:19:34] robh71: has joined #ruby
[08:20:14] johnDoe111^: has joined #ruby
[08:21:19] fsvehla: has joined #ruby
[08:22:16] ishe: has joined #ruby
[08:23:40] haxrbyte: has joined #ruby
[08:24:08] Couch: has joined #ruby
[08:24:46] astrobunny: has joined #ruby
[08:24:50] rbennacer: has joined #ruby
[08:24:51] chihhsin: has joined #ruby
[08:27:37] tvw: has joined #ruby
[08:27:45] marr: has joined #ruby
[08:36:52] rkoller: has joined #ruby
[08:37:16] mrgrieves: has joined #ruby
[08:38:02] aupadhye: has joined #ruby
[08:41:43] sdwrage: has joined #ruby
[08:43:24] gooodroot: has joined #ruby
[08:46:08] evidex: has joined #ruby
[08:47:38] lubekpl: has joined #ruby
[08:48:03] idefine: has joined #ruby
[08:48:49] moeabdol: has joined #ruby
[08:51:38] goooodroot: has joined #ruby
[08:51:47] jaguarmagenta: has joined #ruby
[08:54:04] opus_: has joined #ruby
[08:54:15] akem: has joined #ruby
[08:54:32] drewo: has joined #ruby
[08:56:25] blaxter: has joined #ruby
[08:58:23] johnDoe111^: has joined #ruby
[08:59:24] johnDoe111^: has joined #ruby
[08:59:34] TheWhip: has joined #ruby
[08:59:42] finnnnnnnnnnn: has joined #ruby
[09:01:24] ujjain: what does tries ||= 3 mean?
[09:02:05] Labaleine: has joined #ruby
[09:03:17] gregf_: ujjain: have you tried something?
[09:03:34] ujjain: no, just would like to know what ||= means... I found it on stackoverflow in the code
[09:03:54] gregf_: >> a ||=3; b = 4; b||=5 [ a,b ]
[09:03:56] ruby[bot]: gregf_: # => 4 (https://eval.in/567253)
[09:04:14] codecop: has joined #ruby
[09:04:57] gregf_: a ||=3 is like a shortcircuit operator. so, if a is set use it else use the other(default)
[09:05:21] gregf_: >> a = a || 3;[a]
[09:05:22] ruby[bot]: gregf_: # => [3] (https://eval.in/567254)
[09:05:54] pawnbox: has joined #ruby
[09:07:44] kareeole_: has joined #ruby
[09:14:23] gregf_: *wonders if java is even taught in uni's now*
[09:15:01] moeabdol: has joined #ruby
[09:15:22] gregf_: the first thing one learns in programming is assignment and declarations and variables *sigh*
[09:15:43] blackmes1: has joined #ruby
[09:15:57] Mon_Ouie: has joined #ruby
[09:16:32] DaniG2k: has joined #ruby
[09:16:46] bluOxigen_: has joined #ruby
[09:17:11] johnDoe111^: has joined #ruby
[09:20:17] vcoinminer: has joined #ruby
[09:27:31] CausaMortis: has joined #ruby
[09:28:23] rodfersou: has joined #ruby
[09:29:08] jolts: has joined #ruby
[09:30:36] CausaMortis: has joined #ruby
[09:34:11] workmad3: has joined #ruby
[09:38:09] mrgrieves: has joined #ruby
[09:38:17] DanyC: has joined #ruby
[09:39:12] Labaleine: Hello. Small problem. My puts is not showing my variable #{description}. I tried to fix it adding a method to_sym but it is not working. Here is the code. Thank you very much for your help
[09:39:19] DanyC: has left #ruby: ()
[09:39:19] Labaleine: https://gist.github.com/anonymous/48dbf3515a7460ae02db3a13b00f286a
[09:39:51] adaedra: @variables are tied to an object instance.
[09:39:56] b|ackwolf: has joined #ruby
[09:40:26] adaedra: L. 22, you're outside of your Task instance scope, so @description is not referring to the same thing it is L. 14 and 18.
[09:41:21] finnnnnnnnnnn: has joined #ruby
[09:42:08] adaedra: If you want to access it, you have to make an accessor and access through this. Add a `attr_reader :description` in your class Task, then use task.description in your puts.
[09:42:30] YP-QMUL-W: has joined #ruby
[09:42:36] Hanmac: Labaleine: because you did define to_s you might do it puts "you have created the task #{my_task}"
[09:42:45] pLaToOn: has joined #ruby
[09:45:30] Labaleine: Thank you. I get it :)
[09:47:49] TheWhip: has joined #ruby
[09:48:44] drewo: has joined #ruby
[09:50:17] Gasher: has joined #ruby
[09:52:17] anes: has joined #ruby
[09:53:01] anes: Hi friends, I got error when running wpscan as ruby wpscan.rb --url http://daisy.kfbyf.org
[09:53:20] anes: error is [ERROR] cannot load such file -- bundler/setup
[09:53:38] anes: any body please advise bcoz I am not a ruby programmer
[09:54:45] pawnbox: has joined #ruby
[09:55:10] awk: you probably have multiple versions of ruby installed
[09:55:35] awk: or gem install bundler
[09:56:08] anes: awk: already I installed same !
[09:56:38] awk: ruby -v
[09:57:24] awk: Read this http://rvm.io/rubies/default
[09:57:54] anes: awk : version is ruby 2.1.9p490 (2016-03-30 revision 54437) [i686-linux]
[09:58:43] terlar: has joined #ruby
[09:59:22] bronson: has joined #ruby
[10:00:11] anes: when I give command rvm --default use 2.1.9
[10:00:11] Kedare: has joined #ruby
[10:00:12] anes: got result as : No command 'rvm' found, but there are 21 similar ones rvm: command not found
[10:00:46] blackgoat: has joined #ruby
[10:03:03] blackmes1: has joined #ruby
[10:03:13] zacstewart: has joined #ruby
[10:04:06] gregf_: anes: that error message prolly means either 1)rvm is not installed or 2) rvm is not on yor path
[10:04:19] gregf_: s/yor/your/
[10:04:30] gregf_: what does `which rvm` return?
[10:04:58] anes: yes there is no rvm
[10:06:36] ur5us: has joined #ruby
[10:07:32] nes: has joined #ruby
[10:08:17] bruno-: has joined #ruby
[10:08:59] pawnbox: has joined #ruby
[10:10:29] kareeoleez: would that be possible to break down "bundle install" into parts ? So I'll decrease the resources' consumption, especially in memory ?
[10:11:00] kareeoleez: I got a great problem with memory as it seems to cannot allocate it
[10:13:24] RegulationD: has joined #ruby
[10:13:39] johnDoe111^: has joined #ruby
[10:14:26] charliesome: has joined #ruby
[10:15:16] d0lph1n98: has joined #ruby
[10:17:13] pawnbox: has joined #ruby
[10:21:23] johnDoe111^: has joined #ruby
[10:22:19] johnDoe111^: has joined #ruby
[10:25:27] DaniG2k_: has joined #ruby
[10:25:45] apeiros: kareeoleez: if you run out of resources during dependency resolution, then try to provide more specific gem versions in your Gemfile
[10:25:49] mdw: has joined #ruby
[10:25:52] gooooodroot: has joined #ruby
[10:26:05] kareeoleez: apeiros: with ~> ?
[10:26:18] kareeoleez: I can try this
[10:26:33] kareeoleez: any additional ideas ?
[10:30:24] hk238: has joined #ruby
[10:35:14] pandaant: has joined #ruby
[10:35:33] rbennacer: has joined #ruby
[10:36:44] anes: has joined #ruby
[10:36:53] tildes: has joined #ruby
[10:42:54] drewo: has joined #ruby
[10:46:01] CloCkWeRX: has joined #ruby
[10:47:53] syath: has joined #ruby
[10:49:04] pabs: has joined #ruby
[10:49:53] idefine: has joined #ruby
[10:50:27] howdoi: has joined #ruby
[10:50:28] johnDoe111^: has joined #ruby
[10:51:16] harry111: has joined #ruby
[10:52:33] jaguarmagenta: has joined #ruby
[10:52:54] pawnbox: has joined #ruby
[11:00:18] zotherstupidguy: has joined #ruby
[11:01:45] xue: has joined #ruby
[11:02:49] blaxter: has joined #ruby
[11:02:55] johnDoe111^: has joined #ruby
[11:05:32] GodFather: has joined #ruby
[11:06:24] apeiros: hi harry111
[11:09:17] skade: has joined #ruby
[11:09:37] bruno-: has joined #ruby
[11:10:49] Macaveli: has joined #ruby
[11:12:11] rbennacer: has joined #ruby
[11:12:39] Gasher: has joined #ruby
[11:14:12] A124: has joined #ruby
[11:15:49] finnnnnnnnnnn_: has joined #ruby
[11:16:32] pawnbox: has joined #ruby
[11:22:07] goodroot: has joined #ruby
[11:22:08] johnDoe111^: has joined #ruby
[11:23:40] CloCkWeRX: has joined #ruby
[11:26:08] johnmilton: has joined #ruby
[11:28:39] anku: has joined #ruby
[11:29:40] brianpWins: has joined #ruby
[11:30:27] sdothum: has joined #ruby
[11:30:44] gnufied: has joined #ruby
[11:30:48] umdstu: has joined #ruby
[11:31:16] blackmes1: has joined #ruby
[11:32:11] pawnbox: has joined #ruby
[11:32:50] johnDoe111^: has joined #ruby
[11:39:05] TheWhip: has joined #ruby
[11:39:28] ldnunes: has joined #ruby
[11:42:04] d0lph1n98: has joined #ruby
[11:43:14] CloCkWeRX: has joined #ruby
[11:47:14] terlar: has joined #ruby
[11:48:05] |2701: has joined #ruby
[11:53:31] stannard: has joined #ruby
[11:54:03] nofxx: has joined #ruby
[11:54:11] Ropeney: has joined #ruby
[11:56:00] Yiota: has joined #ruby
[11:59:26] johnDoe111^: has joined #ruby
[12:00:16] jdawgaz: has joined #ruby
[12:00:42] bronson: has joined #ruby
[12:02:53] ferr: has joined #ruby
[12:03:55] ishe: has joined #ruby
[12:03:59] zacstewart: has joined #ruby
[12:04:25] CloCkWeRX: has joined #ruby
[12:05:25] Hanmac: has joined #ruby
[12:06:41] johnDoe111^: has joined #ruby
[12:06:56] matp: has joined #ruby
[12:07:46] Macaveli: has joined #ruby
[12:10:13] gagrio: has joined #ruby
[12:10:46] tatsuo: has joined #ruby
[12:11:12] chipotle: has joined #ruby
[12:14:29] GinoManWorks: has joined #ruby
[12:14:31] |2701: how should I know when I should #extend an object, and when to do it another way?
[12:14:54] apeiros: you use extend when you want to add methods to a single object only
[12:15:20] apeiros: it's relatively rare that you'd use extend, most often you'd use it to add class methods to a class.
[12:16:18] |2701: so if I had multiple objects, and I wanted them to have a method, I should probably do it different?
[12:16:35] Elysia: I thought #extend was the same as class Stuff < OtherClass
[12:17:01] |2701: I'm working with individual bytes and changing them between hex and decimal and bitstring representations, so I'm trying to keep it pretty light so that I'm not blowing cycles
[12:17:29] |2701: so should I write it as a couple Procs that I can pass the bytes into, or should I extend the objects with the methods I want?
[12:17:33] rbennacer: has joined #ruby
[12:17:56] apeiros: Elysia: it isn't.
[12:18:02] Ox0dea: |2701: There are already methods for converting between bases.
[12:18:29] apeiros: `class Foo < Other` requires Other to be a Class. `foo.extend Other` requires Other to be a Module
[12:19:06] millerti: has joined #ruby
[12:19:34] |2701: Ox0dea: I'm writing this to learn, if that's alright with you
[12:19:39] |2701: and for fun, too
[12:20:38] Elysia: apeiros: I guess I'll have to look up how to dd more than one class with `<`, because class A < B, C didn't work
[12:20:45] synthroid: has joined #ruby
[12:20:57] apeiros: Elysia: ruby does not have multiple inheritance
[12:21:00] Ox0dea: Elysia: Sounds like you want composition rather than inheritance.
[12:22:37] Elysia: >> class A; end; class B < A; end; class C < B; end; C.new
[12:22:38] ruby[bot]: Elysia: # => #<C:0x41cf9888> (https://eval.in/567376)
[12:22:44] Elysia: at least that still works
[12:23:29] chouhoulis: has joined #ruby
[12:25:18] chouhoulis: has joined #ruby
[12:25:18] apeiros: >> class C < (class B < (class A; self; end); self; end); end; C.new # no particular reason
[12:25:19] ruby[bot]: apeiros: # => #<C:0x4126d89c> (https://eval.in/567387)
[12:25:31] kkeuning: has joined #ruby
[12:25:59] matp: has joined #ruby
[12:27:29] Ox0dea: >> C = Class.new B = Class.new(A = Class.new); C.ancestors # for the lulz
[12:27:30] ruby[bot]: Ox0dea: # => [C, B, A, Object, Kernel, BasicObject] (https://eval.in/567396)
[12:29:11] frankieleef: has joined #ruby
[12:29:24] araujo_: has joined #ruby
[12:29:54] banister: has joined #ruby
[12:30:20] nadir: has joined #ruby
[12:30:56] frankieleef: hi all, is there anyone who could help me out with the following question? I'm not able to figure it out myself http://stackoverflow.com/questions/37114767/connection-refused-when-using-rack-proxy
[12:30:59] djcp: has joined #ruby
[12:31:03] drewo: has joined #ruby
[12:32:38] htmldrum: has joined #ruby
[12:37:50] cfillion: has joined #ruby
[12:40:31] deadnull_: has joined #ruby
[12:41:15] crystal77: has joined #ruby
[12:41:37] duckpupp1: has joined #ruby
[12:42:48] blaxter: has joined #ruby
[12:43:11] p337rB: has joined #ruby
[12:43:41] brianpWins: has joined #ruby
[12:44:34] mdw: has joined #ruby
[12:45:43] yosafbridge: has joined #ruby
[12:47:56] finnnnnnnnnnn: has joined #ruby
[12:49:22] gooodroot: has joined #ruby
[12:49:25] the_drow: has joined #ruby
[12:50:18] skade: has joined #ruby
[12:50:26] Yiota: has joined #ruby
[12:51:26] noServic1: has joined #ruby
[12:51:39] idefine: has joined #ruby
[12:52:04] cdg: has joined #ruby
[12:53:21] jaguarmagenta: has joined #ruby
[12:53:35] jokke: has joined #ruby
[12:54:37] pickandmix: has joined #ruby
[12:55:08] pawnbox: has joined #ruby
[12:55:42] roamingdog: has joined #ruby
[12:56:05] jdawgaz: has joined #ruby
[12:56:36] roamingdog: has joined #ruby
[12:58:18] kareeoleez: has joined #ruby
[12:58:38] roamingdog: has joined #ruby
[12:58:45] bruno-: has joined #ruby
[13:00:05] |2701: on a fresh ubuntu 14.04 vm, installed 2.3.1p112 from source, but gem install gives an error about zlib, gem update --system gives the same error
[13:00:13] |2701: but zlib1g is already installed through apt
[13:00:26] |2701: have i missed something somewhere?
[13:01:34] TheWhip: has joined #ruby
[13:01:42] dstarh: has joined #ruby
[13:02:05] CloCkWeRX: has joined #ruby
[13:02:18] toretore: |2701: did you install zlib1g-dev before compiling ruby?
[13:02:34] |2701: hmm, i'm not sure.
[13:03:10] toretore: uninstall ruby, then apt-get install libssl-dev libreadline6-dev zlib1g-dev, then install ruby again
[13:03:27] |2701: yep, thats what I'll have to do.
[13:03:58] mdw7: has joined #ruby
[13:05:25] banister: has joined #ruby
[13:05:38] ramortegui: has joined #ruby
[13:07:04] fmcgeough: has joined #ruby
[13:08:02] the_drow: has joined #ruby
[13:08:34] GodFather: has joined #ruby
[13:08:57] |2701: toretore: mk, I did that and I'm still getting the same error after reinstalling
[13:08:58] beagles: has left #ruby: ()
[13:09:39] tatsuo: has joined #ruby
[13:10:17] CloCkWeRX: has left #ruby: ()
[13:10:59] malconis: has joined #ruby
[13:11:41] karapetyan: has joined #ruby
[13:12:34] malconis: has joined #ruby
[13:13:01] tvw: has joined #ruby
[13:13:28] gagrio: has joined #ruby
[13:14:36] nhhc: has joined #ruby
[13:18:02] sgambino_: has joined #ruby
[13:18:03] sgambino: has joined #ruby
[13:18:13] sgambino: has left #ruby: ()
[13:19:02] sgambino_: has left #ruby: ()
[13:19:54] platzhirsch: has joined #ruby
[13:20:04] eljimmy: has joined #ruby
[13:20:36] Macaveli: has joined #ruby
[13:21:10] aegis3121: has joined #ruby
[13:21:29] sdothum: has joined #ruby
[13:23:10] |2701: well, solved my issue with ruby-install. case closed, I guess
[13:24:41] rbennacer: has joined #ruby
[13:25:00] rbennacer: has joined #ruby
[13:25:12] drewo: has joined #ruby
[13:25:47] rbennacer: has joined #ruby
[13:26:25] platzhirsch: shevy: so, I moved back to Berlin
[13:26:49] chouhoulis: has joined #ruby
[13:27:34] chouhoulis: has joined #ruby
[13:29:05] cdg: has joined #ruby
[13:30:53] cdg: has joined #ruby
[13:32:29] CloCkWeRX: has joined #ruby
[13:33:36] stannard: has joined #ruby
[13:36:40] noService: has joined #ruby
[13:38:19] nando293921: has joined #ruby
[13:39:23] statelesscode: has joined #ruby
[13:41:08] swills_: has joined #ruby
[13:41:10] Hanmac: platzhirsch: you mean that place where you need turkish as second language? ;P
[13:41:38] platzhirsch: hanmac: Depends, in Mitte it's English by now. Man my home town has changed@
[13:42:19] mdw: has joined #ruby
[13:42:51] matp: has joined #ruby
[13:44:28] Hanmac: platzhirsch: i live in Dresden in Saxony, sometimes i also think how my home town has changed ...
[13:44:44] platzhirsch: yeah that's fucked
[13:45:26] Hanmac: i try to not enter the city on Monday evening because of the Pegida guys ...
[13:46:28] millerti: has joined #ruby
[13:48:13] platzhirsch: has left #ruby: ()
[13:50:18] freerobby: has joined #ruby
[13:50:41] SilverKey: has joined #ruby
[13:51:28] `tim`: has joined #ruby
[13:51:32] |2701: wait isnt pegida anti-islam? thats a good thing
[13:53:12] zacstewart: has joined #ruby
[13:54:31] griffindy: has joined #ruby
[13:54:43] platzhirsch: has joined #ruby
[13:54:55] platzhirsch: has left #ruby: ()
[13:56:49] crameth: has joined #ruby
[13:58:04] idefine: has joined #ruby
[14:00:33] whippythellama: has joined #ruby
[14:02:31] kareeoleez: has joined #ruby
[14:02:32] bronson: has joined #ruby
[14:03:08] cdg: has joined #ruby
[14:03:28] sepp2k: has joined #ruby
[14:03:56] morochena: has joined #ruby
[14:05:23] idle_task: has joined #ruby
[14:06:18] finnnnnnnnnnn: has joined #ruby
[14:06:29] stannard: has joined #ruby
[14:07:36] millerti: has joined #ruby
[14:08:06] weemsledeux: has joined #ruby
[14:09:45] TheWhip: has joined #ruby
[14:11:10] solocshaw1: has joined #ruby
[14:13:11] shevy: hanmac hah coul... I think my cousin is in Dresden... or was it Leipzig... wherever there is a university for rocket sciences
[14:14:54] RegulationD: has joined #ruby
[14:14:59] platzhirsch: has joined #ruby
[14:15:08] platzhirsch: has left #ruby: ()
[14:15:35] ctp: has joined #ruby
[14:18:24] dopamean_: has joined #ruby
[14:18:44] swills_: has joined #ruby
[14:19:13] LastWhisper____: has joined #ruby
[14:19:13] tatsuo: has joined #ruby
[14:19:15] drewo: has joined #ruby
[14:19:30] zast: has joined #ruby
[14:22:25] nofacade: has joined #ruby
[14:22:52] kobain: has joined #ruby
[14:23:45] kobain: has joined #ruby
[14:23:53] kobain: has joined #ruby
[14:25:26] LoneHerm_: has joined #ruby
[14:25:40] agent_white: has joined #ruby
[14:26:57] karmatr0n: has joined #ruby
[14:28:01] rht: has joined #ruby
[14:28:34] adgtl: has joined #ruby
[14:28:34] adgtl: has joined #ruby
[14:29:03] platzhirsch: has joined #ruby
[14:29:12] bruno-: has joined #ruby
[14:29:44] tatsuo: has joined #ruby
[14:30:45] millerti: has joined #ruby
[14:31:22] shevy: I can't even spell cool :P
[14:31:23] shevy: yo agent_white
[14:33:30] htmldrum: has joined #ruby
[14:40:18] bluOxigen: has joined #ruby
[14:42:01] banister: has joined #ruby
[14:42:54] jliberman: has joined #ruby
[14:43:14] [Butch]: has joined #ruby
[14:45:34] mikecmpbll: has joined #ruby
[14:45:51] jliberman: why does `URI.join 'http://example.com/api', 'users'` return `http://example.com/users` instead of `http://example.com/api/users` ? Is this a bug?
[14:46:07] malconis: has joined #ruby
[14:46:18] benzrf: jliberman: URI.join means, "if argument 2 were in an href on a page at argument 1, what would it go to"
[14:46:34] benzrf: it's not terribly well named
[14:47:05] jliberman: that distinction is not really made clear in the docs
[14:47:45] sjums: has joined #ruby
[14:48:20] futilegames: has joined #ruby
[14:50:08] Devalo: has joined #ruby
[14:50:49] apeiros: jliberman: `URI.join 'http://example.com/api/', 'users'` would probably do what you want
[14:51:29] jliberman: yeah that's what I figured :)
[14:53:26] kareeoleez: has joined #ruby
[14:54:05] jaguarmagenta: has joined #ruby
[14:55:27] sdothum: has joined #ruby
[14:56:38] millerti: has joined #ruby
[14:57:34] shinnya: has joined #ruby
[14:58:29] alxgsv: has joined #ruby
[14:59:18] jgt: has joined #ruby
[15:00:13] ljames: has joined #ruby
[15:01:23] jhack: has joined #ruby
[15:01:31] rkazak: has joined #ruby
[15:01:33] ctrlrsf: has joined #ruby
[15:02:20] davedev24: has joined #ruby
[15:02:35] Slackman1: has joined #ruby
[15:03:22] Guest91: has joined #ruby
[15:04:08] kareeoleez: has joined #ruby
[15:04:27] Guest91: has joined #ruby
[15:04:55] Mon_Ouie: has joined #ruby
[15:05:40] finnnnnnnnnnn: has joined #ruby
[15:05:54] Slackman1: has joined #ruby
[15:06:12] zel: has joined #ruby
[15:06:43] flopsec: has joined #ruby
[15:06:56] wilbert: has joined #ruby
[15:07:42] phpwebdev: has joined #ruby
[15:10:50] DoubleMalt: has joined #ruby
[15:11:29] tjohnson: has joined #ruby
[15:13:20] drewo: has joined #ruby
[15:13:34] aegis3121: has joined #ruby
[15:14:18] shevy: do you people have preferences when you write a class, where to put: include statements; constants pertaining to that class; aliases? I ask because I seem to prefer putting all of this before "def initialize" and I wonder whether that is common
[15:15:20] toretore: i think that's pretty common
[15:15:27] rippa: has joined #ruby
[15:16:07] chopin: has joined #ruby
[15:16:28] polishdub: has joined #ruby
[15:17:07] jokke: has joined #ruby
[15:20:57] binaryplease: has joined #ruby
[15:21:20] finnnnnnnnnnn: has joined #ruby
[15:22:13] d10n-work: has joined #ruby
[15:22:57] DoubleMalt: has joined #ruby
[15:25:16] bluOxigen_: has joined #ruby
[15:25:51] dionysus69: has joined #ruby
[15:26:05] elifoster: has joined #ruby
[15:26:41] brent__: has joined #ruby
[15:28:54] mdw: has joined #ruby
[15:32:37] dhollinger: has joined #ruby
[15:34:44] moeabdol: has joined #ruby
[15:35:23] nes: has joined #ruby
[15:37:31] CausaMortis: has joined #ruby
[15:38:18] slackbotgz: has joined #ruby
[15:38:56] rodferso1: has joined #ruby
[15:39:00] Yiota: has joined #ruby
[15:40:01] hobodave: has joined #ruby
[15:40:14] jliberman: has joined #ruby
[15:40:23] noService: has joined #ruby
[15:42:14] synthroid: has joined #ruby
[15:42:46] RegulationD: has joined #ruby
[15:42:59] lxsameer: has joined #ruby
[15:44:56] Mia: has joined #ruby
[15:44:56] Mia: has joined #ruby
[15:45:26] Chachi: has joined #ruby
[15:46:45] mdw: has joined #ruby
[15:49:10] `tim`: has joined #ruby
[15:49:13] Ebok: has joined #ruby
[15:49:21] amclain: has joined #ruby
[15:50:40] Yiota: has joined #ruby
[15:50:41] grenierm: has joined #ruby
[15:50:48] smathy: has joined #ruby
[15:52:33] TheWhip: has joined #ruby
[15:54:57] araujo: has joined #ruby
[15:54:57] araujo: has joined #ruby
[15:56:05] drale2k: has joined #ruby
[15:59:49] Devalo: has joined #ruby
[16:00:07] ramfjord: has joined #ruby
[16:01:58] goooodroot: has joined #ruby
[16:01:59] mdw7: has joined #ruby
[16:02:38] Labaleine: has joined #ruby
[16:02:39] hobodave_: has joined #ruby
[16:04:20] bronson: has joined #ruby
[16:04:21] SilverKey: has joined #ruby
[16:05:37] skolman_: has joined #ruby
[16:05:56] Labaleine: has joined #ruby
[16:07:29] drewo: has joined #ruby
[16:07:49] blackmes1: has joined #ruby
[16:11:57] diegoaguilar: has joined #ruby
[16:13:20] DanyC: has joined #ruby
[16:13:28] skakri: has joined #ruby
[16:14:09] DanyC: has left #ruby: ()
[16:14:28] Ebok: has joined #ruby
[16:14:37] jdawgaz: has joined #ruby
[16:14:44] rkazak: has joined #ruby
[16:14:55] devbug: has joined #ruby
[16:15:01] gunterja_: has joined #ruby
[16:17:02] finisherr: has joined #ruby
[16:19:26] nes: has joined #ruby
[16:21:37] Labaleine: has joined #ruby
[16:22:36] Guest38: has joined #ruby
[16:24:24] diegoviola: has joined #ruby
[16:24:35] ramfjord: has joined #ruby
[16:25:26] Gasher: has joined #ruby
[16:25:56] cschneid_: has joined #ruby
[16:26:34] cschneid_: is there a way to have bundler constraints on .pre1, .pre2? And have bundle update automatically pick up a new .pre?
[16:26:40] i: has joined #ruby
[16:26:46] cschneid_: (and if so, how does it sort?
[16:26:52] skolman_: has joined #ruby
[16:27:58] whathappens: has joined #ruby
[16:29:05] nrd_pxs: has joined #ruby
[16:29:39] jgpawletko: has joined #ruby
[16:30:30] charliesome: has joined #ruby
[16:31:11] smathy: cschneid_, the following works with Rails5: ">= 5.0.0.beta1", "< 5.1" - but I'm not sure if they've done something special.
[16:32:01] smathy: ...ie. having those constraints has just installed rc1 with a `bundle update rails`, probably because "r" > "b"
[16:32:33] cschneid_: smathy: cool. I have a gem I'm releasing to some customers that'll likely go through several .preN versions. Don't want to get bit if we go from .pre9 to .pre10, and have 10 sort silly.
[16:32:37] cschneid_: I'll go poke around more - thanks
[16:33:27] smathy: cschneid_, ah right, yeah, might need 0 prefixes.
[16:33:52] htmldrum: has joined #ruby
[16:33:57] devbug_: has joined #ruby
[16:34:08] TomyLobo: has joined #ruby
[16:34:13] azor: has joined #ruby
[16:34:59] jgpawletko: has left #ruby: ()
[16:35:33] Musashi007: has joined #ruby
[16:38:34] BlacksmithMetash: has joined #ruby
[16:38:56] BlacksmithMetash: i would like some help in a program
[16:43:01] skade: has joined #ruby
[16:43:09] jgt: has joined #ruby
[16:43:57] robh71: has joined #ruby
[16:44:13] gooooodroot: has joined #ruby
[16:44:31] jgpawletko: has joined #ruby
[16:45:38] hk238: has joined #ruby
[16:46:48] reppair: has joined #ruby
[16:47:19] A124: has joined #ruby
[16:47:21] pietr0: has joined #ruby
[16:49:16] jaruga___: has joined #ruby
[16:51:36] symm-: has joined #ruby
[16:52:53] whathappens: has joined #ruby
[16:54:17] reppair: Hello all. I'm using ruby without rails. How can I define a 'section' in .erb file and then yield some html into it from another template.erb? for example: in my main.erb I want to define <title><%= 'section_name' %></title>, and then from another template that I am yielding content in the <body> tag, I also like to yield the title for page from that template.. ?
[16:55:10] |2701: #rubyonrails probably knows
[16:55:29] reppair: yeah but it for rails
[16:55:41] hxegon_AFK: reppair: I think you're looking for partials, but |2701 is right
[16:55:45] reppair: and i am stuck without rails :)
[16:56:05] hxegon_AFK: reppair: yeah, but that channel has more expertise on erb.
[16:56:06] aegis3121: has joined #ruby
[16:56:06] reppair: nop, partials won't work for that
[16:56:09] |2701: right, this is not the rails channel
[16:56:47] reppair: well .. as i saied i'm not using rails guys :)
[16:56:51] Devalo: has joined #ruby
[16:56:59] drewo: has joined #ruby
[16:57:06] minot: has joined #ruby
[16:57:09] |2701: that was literally the first thing you said
[16:57:15] |2701: re-read it
[16:57:25] |2701: okay, well they probably know erb better anyways
[16:57:33] djbkd: has joined #ruby
[16:57:59] reppair: and what they said was well ..you are not using rails so ..
[16:58:13] reppair: well any ideas ?
[16:58:19] |2701: I'm in the rails channel and I have not seen you ask in there.
[16:58:30] SilverKey: has joined #ruby
[16:58:34] reppair: it was couple of days ago
[16:59:03] BlacksmithMetash: |2701: https://paste.gnome.org/ppaije9oi/uutywf
[16:59:09] BlacksmithMetash: i wanna help on this
[16:59:28] |2701: help with that?
[16:59:36] |2701: what have you done so far
[16:59:42] BlacksmithMetash: i tryed two times using
[16:59:53] djbkd: has joined #ruby
[16:59:54] BlacksmithMetash: https://richonrails.com/articles/importing-csv-files
[17:00:45] |2701: BlacksmithMetash: if you have a specific question I'm sure we could help, but I doubt anybody is going to just write it for you.
[17:02:16] BlacksmithMetash: first, can you receive what i progress so far?
[17:02:28] BlacksmithMetash: i have a zip file or git
[17:02:46] tvw: has joined #ruby
[17:03:38] BlacksmithMetash: |2701: i will execute again my project here in Ruby, and i have a bug, i come back, is that better?
[17:06:07] charliesome: has joined #ruby
[17:06:38] mikecmpbll: has joined #ruby
[17:07:53] Xiti: has joined #ruby
[17:08:37] nisstyre: has joined #ruby
[17:08:43] Devalo: has joined #ruby
[17:08:49] maikowblue: has joined #ruby
[17:08:51] Cohedrin: has joined #ruby
[17:10:37] whathappens: has joined #ruby
[17:11:27] bluOxigen: has joined #ruby
[17:11:47] d0nn1e: has joined #ruby
[17:12:09] weemsledeux: has joined #ruby
[17:12:40] ferr: has joined #ruby
[17:13:49] noService: has joined #ruby
[17:14:59] Devalo: has joined #ruby
[17:16:54] firstdayonthejob: has joined #ruby
[17:20:11] horaceheaven: has joined #ruby
[17:21:28] nando293921: has joined #ruby
[17:22:30] kgrz: has joined #ruby
[17:23:12] idefine: has joined #ruby
[17:24:49] reppair: has left #ruby: ("Ex-Chat")
[17:25:43] daftdolphin: has joined #ruby
[17:27:11] idefine_: has joined #ruby
[17:27:18] stannard: has joined #ruby
[17:28:19] whathappens: has joined #ruby
[17:29:05] spider-mario: has joined #ruby
[17:29:28] idefine: has joined #ruby
[17:29:30] ctp: has joined #ruby
[17:31:09] Tilo: has joined #ruby
[17:32:34] whathappens: has joined #ruby
[17:32:42] eljimmy: has joined #ruby
[17:32:57] Ishido: has joined #ruby
[17:33:41] jdawgaz: has joined #ruby
[17:35:54] LastWhisper____: has joined #ruby
[17:36:29] azor: has left #ruby: ("WeeChat 1.4")
[17:37:08] jxs_: has joined #ruby
[17:37:18] symm-: has joined #ruby
[17:40:53] skolman_: has joined #ruby
[17:41:53] synthroid: has joined #ruby
[17:42:13] jgt: has joined #ruby
[17:42:19] skolman_: has joined #ruby
[17:42:28] grenierm: has joined #ruby
[17:42:54] kkeuning: has joined #ruby
[17:45:41] djbkd: has joined #ruby
[17:46:14] djbkd: has joined #ruby
[17:46:30] aegis3121: has joined #ruby
[17:49:02] babblebre: has joined #ruby
[17:52:49] last_staff: has joined #ruby
[17:53:30] hobodave: has joined #ruby
[17:54:13] domi: has joined #ruby
[17:57:00] whathappens: has joined #ruby
[17:57:03] SilverKey: has joined #ruby
[17:58:18] whathapp_: has joined #ruby
[18:00:03] raeoks: has joined #ruby
[18:00:39] crystal77: has joined #ruby
[18:01:24] duoi: has joined #ruby
[18:03:19] karmatr0n: has joined #ruby
[18:03:54] djbkd: has joined #ruby
[18:04:25] grenierm: has joined #ruby
[18:05:13] justin_pdx: has joined #ruby
[18:07:44] DanyC: has joined #ruby
[18:07:45] SilverKey: has joined #ruby
[18:07:51] JoshGlzBrk: has joined #ruby
[18:08:04] horaceheaven: How do I get the If-None-Match header from the incoming request? for some reason it doesn’t show up in the headers object when I try to do headers[‘if-None-Match’]
[18:08:24] bronson: has joined #ruby
[18:10:36] whathappens: has joined #ruby
[18:13:29] JoshGlzBrk: has joined #ruby
[18:13:32] karmatr0n: has joined #ruby
[18:14:32] whathappens: has joined #ruby
[18:15:29] kareeoleez: has joined #ruby
[18:18:34] weemsledeux: has joined #ruby
[18:18:54] QORRiE: has joined #ruby
[18:19:26] QORRiE: has joined #ruby
[18:19:56] toretore: horaceheaven: define: incoming request
[18:20:04] toretore: and "headers object"
[18:20:08] blackmes1: has joined #ruby
[18:23:07] BlacksmithMetash: i have working with my ruby program
[18:23:13] BlacksmithMetash: and then give me this
[18:23:14] BlacksmithMetash: http://picpaste.com/qT2dN1Yp.jpg
[18:25:33] BlacksmithMetash: ACTION |2701 are you there man?
[18:25:49] BlacksmithMetash: can anybody help me
[18:25:55] mdw: has joined #ruby
[18:26:15] zenguy_pc: has joined #ruby
[18:27:42] tax: has joined #ruby
[18:28:46] mikecmpbll: has joined #ruby
[18:30:17] Ox0dea: BlacksmithMetash: Looks like you might have a typo.
[18:31:39] BlacksmithMetash: what do ou mean Ox0dea?
[18:31:56] skolman: has joined #ruby
[18:32:02] BlacksmithMetash: look my codes, i will paste for you, one moment
[18:32:07] JoshGlzBrk: has joined #ruby
[18:32:43] Ox0dea: BlacksmithMetash: Well, it's "compradore" everywhere else, but the error is being caused by a method with "comprador" in.
[18:33:19] xall: has joined #ruby
[18:33:57] TomyLobo: has joined #ruby
[18:34:07] djbkd: has joined #ruby
[18:34:08] htmldrum: has joined #ruby
[18:35:19] BlacksmithMetash: Ox0dea: i don't know exactly
[18:35:36] mdw7: has joined #ruby
[18:35:41] BlacksmithMetash: because i get confuse in what is and what is not that i have to edit
[18:35:47] BlacksmithMetash: look my whole code: https://paste.gnome.org/pmu4shrn3/mwewcy
[18:35:48] nankyokusei: has joined #ruby
[18:36:25] mdw7: has joined #ruby
[18:37:13] mdw7: has joined #ruby
[18:40:13] djbkd: has joined #ruby
[18:41:41] aeterne: has joined #ruby
[18:42:53] seitensei: has joined #ruby
[18:42:58] robh71: has joined #ruby
[18:43:15] kgrz: has joined #ruby
[18:43:33] robh71: has joined #ruby
[18:45:12] GinoManWorks: has joined #ruby
[18:46:28] duckpupp1: has joined #ruby
[18:46:42] Hanmac: shevy: me at programming https://xkcd.com/1671/
[18:46:54] horaceheaven: has left #ruby: ()
[18:47:26] jdawgaz: has joined #ruby
[18:47:58] wilbert: has joined #ruby
[18:48:03] Antiarc: has joined #ruby
[18:48:06] BlacksmithMetash: hahaha nice hanmac
[18:48:12] swills: has joined #ruby
[18:49:27] codecop: has joined #ruby
[18:50:12] QORRiE: has joined #ruby
[18:50:31] PlasmaStar: has joined #ruby
[18:51:40] CoderPuppy: has joined #ruby
[18:52:29] DanyC: has joined #ruby
[18:55:05] TomyLobo: has joined #ruby
[18:55:08] BlacksmithMetash: has joined #ruby
[18:55:17] jaguarmagenta: has joined #ruby
[18:56:41] dikaio: has joined #ruby
[18:57:04] mynameisbrian: has joined #ruby
[18:57:39] mynameisbrian: Hey guys. If you're bored, check out this code. Look at the comments at the top to see input/output. I'm new to Ruby, and just wondering if there's a better way to code this small program. https://gist.github.com/anonymous/306f0a1fe2a694c9a0b54ba41e244b71
[18:59:00] mynameisbrian: Ignore the .py in the first comment. The program was in Python and I converted it to Ruby
[18:59:27] ytti: it seems fairly idiomatic code
[18:59:36] mikecmpbll: has joined #ruby
[18:59:37] ytti: i would personally never write without wrapping inside class
[18:59:43] ytti: regardless how simple piece of code
[19:00:03] ytti: because when you write without class definitino, you're monkey-patching 'Object' class
[19:00:20] cpup: has joined #ruby
[19:00:22] ytti: which can cause all kind of weird side-effects, if you happen to redefine some of its methods, prominently 'send'
[19:00:33] mynameisbrian: awesome, thanks for the advice
[19:01:04] mynameisbrian: I'm using Ruby Monk's course to learn
[19:01:05] Dimik: has joined #ruby
[19:02:58] shevy: hanmac lol
[19:03:09] mynameisbrian: It's really amazing so far. I'm used to PHP, and this language just makes sense. It's designed really well. I love how everything is an object, and just works that way. Even allowing weird things like 1.*(5), because well, it's an object and it should work even that way
[19:03:13] Macaveli: has joined #ruby
[19:03:30] shevy: mynameisbrian yeah that problem will go away the more and more code you write. Once you start using classes, and modules, things can always be easily re-usable
[19:05:23] mynameisbrian: I basically want a language that I can become a master of. Right now I just kind of fuck around and use them when I need to. I don't even really know PHP, I just sort of use it and look things up when I need to. I decided that Ruby would be the language I'll learn really well and everything about
[19:05:24] blackmes1: has joined #ruby
[19:06:01] mynameisbrian: I do know JavaScript well too, but I need a general purpose language
[19:06:51] shevy: mynameisbrian here is the first to-class rewrite of the above code http://pastie.org/10830549
[19:07:02] shevy: I still would not write it like that, it is just a more or less 1:1 mapping of what you wrote before
[19:07:16] shevy: in typical "class-thinking", one can use methods to operate on the dataset
[19:07:37] shevy: and strictly speaking, in that class code, one would not need any @ivars
[19:07:39] idefine: has joined #ruby
[19:07:44] whathappens: has joined #ruby
[19:08:00] ytti: for simple stuff probably just
[19:08:03] ytti: class Foo
[19:08:04] Hobart: has left #ruby: ()
[19:08:09] ytti: def self.bar args
[19:08:31] ytti: because you want to return stuff, and Foo.new.run is kinda icky for single method stuff
[19:08:40] mynameisbrian: cool, thanks. yeah the only part of that syntax I don't know so far is the @ for the properties. Otherwise I knew .new and the constructure initialize. I'm just about to read up on classes in this Monk's course
[19:09:42] shevy: php is actually pretty simple. it's not pretty, not very logical... but I myself found it easier to use than perl oddly enough
[19:09:53] Ox0dea: mynameisbrian: It's not "bad", but I'd favor Range#step and #map over "explicit" looping and building up a String.
[19:10:09] Ox0dea: Somesing like zees: https://eval.in/567580
[19:11:20] mynameisbrian: yeah that looks much better, I figured there would be a way to get rid of the ugly coupon = ''
[19:11:31] goodroot: has joined #ruby
[19:11:36] mynameisbrian: php is much easier than perl
[19:12:49] Ox0dea: Where'd that come from?
[19:12:52] MissionCritical: has joined #ruby
[19:13:01] mynameisbrian: shevy's comment above
[19:13:01] Ox0dea: Never mind.
[19:13:27] mynameisbrian: peanut butter! C is cool! php is easy!
[19:14:00] Ox0dea: mynameisbrian: Even uglier is having to chop off the superfluous delimiter.
[19:14:16] Ox0dea: That's a sure sign you've done it the wrong way, 999 times out of a thousand.
[19:14:25] mynameisbrian: hahah yeah true
[19:14:56] jenrzzz: has joined #ruby
[19:14:56] jenrzzz: has joined #ruby
[19:17:07] skolman_: has joined #ruby
[19:18:40] mynameisbrian: 0x0dea which part of the code is making sure the | isn't put on last?
[19:19:57] Ox0dea: >> [1,2,3].join('|') # mynameisbrian
[19:19:58] mynameisbrian: I think it's the step part
[19:19:59] ruby[bot]: Ox0dea: # => "1|2|3" (https://eval.in/567582)
[19:20:08] SilverKey: has joined #ruby
[19:20:17] Ox0dea: I used String#* instead of #join to sow discord.
[19:20:42] scepticulous: has joined #ruby
[19:20:46] griffindy: has joined #ruby
[19:21:20] karmatr0_: has joined #ruby
[19:21:34] Ox0dea: It's an alias that people on high horses will tell you not to use.
[19:22:37] kgrz: has joined #ruby
[19:28:12] mynameisbrian: thanks. that code just really shows the power of ruby, so fancy
[19:28:30] mynameisbrian: all the little ugly parts of coding are gone
[19:28:37] stryek: has joined #ruby
[19:29:02] ftj: has joined #ruby
[19:29:02] mynameisbrian: Don't fully understand how it works, I'll just keep going through the tutorial. Need to learn about ranges and such
[19:29:47] shevy: it is packed with information content
[19:30:07] QORRiE: has joined #ruby
[19:30:43] shevy: there is more than one way!
[19:30:57] Devalo: has joined #ruby
[19:32:04] whathappens: has joined #ruby
[19:32:16] yfeldblum: has joined #ruby
[19:32:46] mynameisbrian: that's the exact reason why I chose Ruby over Python. I do like Python's one way philosophy. But a language that I want to master... I need more freedom and more fun.
[19:33:13] htmldrum: has joined #ruby
[19:33:21] Zarthus: you'll find some ruby developers have a funny way of defining fun
[19:33:40] nofacade: has joined #ruby
[19:35:58] rbennacer: has joined #ruby
[19:36:07] Devalo: has joined #ruby
[19:36:33] Mon_Ouie: def fun; end ?
[19:37:53] kgrz: has joined #ruby
[19:38:39] haxrbyte: has joined #ruby
[19:39:58] tAn: has joined #ruby
[19:40:42] skade: has joined #ruby
[19:40:50] Blaguvest: has joined #ruby
[19:41:22] jaruga___: has joined #ruby
[19:41:34] sepp2k: has joined #ruby
[19:41:55] CoderPuppy: has joined #ruby
[19:43:50] yfeldblum: has joined #ruby
[19:44:52] mooe: has joined #ruby
[19:45:34] rubynuby: has joined #ruby
[19:45:51] jobewan: has joined #ruby
[19:46:06] noService: has joined #ruby
[19:46:59] karmatr0n: has joined #ruby
[19:47:28] Ox0dea: >> fun = defined? fun
[19:47:29] ruby[bot]: Ox0dea: # => "local-variable" (https://eval.in/567591)
[19:47:33] rubynuby: I'm writing an activerecord app with some rspec tests, working with a codeship team. App talks to mysql via activerecord. There's a single piece of code which runs a query, and a single rspec tests that passes (testing the result of that query). But when I push to codeship it fails because it can't connect to mysql. My question is... how can I emulate the codeship bundle exec rspec tests (or is it the same as my local command)
[19:47:53] dopamean_: has joined #ruby
[19:48:22] rubynuby: And the more important question is, how can I write a rspec test that passes without a database, I've gathered from googling that I will need class_double or maybe mysql double, but beyond that I haven't been able to find any pointers or examples... and I can't get it to pass my rspec test in 'codeship/offline' mode.. Any pointers/clues are welcome
[19:52:15] aegis3121: has joined #ruby
[19:54:05] mynameisbrian: >> language = 'ruby'; puts 'fun' unless language == 'PHP'
[19:54:06] ruby[bot]: mynameisbrian: # => fun ...check link for more (https://eval.in/567592)
[19:55:02] jancel: has joined #ruby
[19:55:12] BlacksmithMetash: how i can access sqlite in bash?
[19:55:41] Ox0dea: BlacksmithMetash: $ sqlite3 --help
[19:56:48] skolman_: has joined #ruby
[20:00:09] yfeldblum: has joined #ruby
[20:00:36] lomex: has joined #ruby
[20:00:50] senayar: has joined #ruby
[20:01:16] SilverKey: has joined #ruby
[20:02:47] Coldblackice: has joined #ruby
[20:03:42] jenrzzz_: has joined #ruby
[20:05:36] djbkd: has joined #ruby
[20:06:06] bluOxigen_: has joined #ruby
[20:06:32] robh71: has joined #ruby
[20:06:44] yqt: has joined #ruby
[20:07:53] jhack: has joined #ruby
[20:08:18] daftdolphin: has joined #ruby
[20:09:03] cdg: has joined #ruby
[20:14:16] Gasher: has joined #ruby
[20:20:56] postmodern: has joined #ruby
[20:22:55] pawnbox: has joined #ruby
[20:23:08] DanyC: has joined #ruby
[20:23:56] mynameisbrian: Ox0dea how can I access mysql in batch
[20:24:27] blackgoat: has joined #ruby
[20:24:34] cpup: has joined #ruby
[20:24:39] adaedra: we're going offtopic now are we?
[20:24:50] mynameisbrian: I'm just making fun of that other user
[20:25:09] mynameisbrian: <BlacksmithMetash> how i can access sqlite in bash?
[20:25:35] tekacs: has joined #ruby
[20:25:58] adaedra: hilarious.
[20:26:41] elifoster: has joined #ruby
[20:26:57] stannard: has joined #ruby
[20:27:20] EvilJStoker: has joined #ruby
[20:27:20] JStoker: has joined #ruby
[20:27:22] davedev24: has joined #ruby
[20:27:44] RegulationD: has joined #ruby
[20:28:45] joast: has joined #ruby
[20:29:02] ur5us: has joined #ruby
[20:30:13] eljimmy: has joined #ruby
[20:30:43] DanyC: has joined #ruby
[20:32:04] jenrzzz: has joined #ruby
[20:32:33] zeroDi: has joined #ruby
[20:35:27] nerium: has joined #ruby
[20:35:42] tris: has joined #ruby
[20:38:38] rubynuby: I guess rspec isn't mature enough to easily mock ar requests... will have to use a local sqlite which is probably better practice anyway
[20:40:18] bruce_lee: has joined #ruby
[20:40:19] bruce_lee: has joined #ruby
[20:41:20] CoderPuppy: has joined #ruby
[20:42:37] ramfjord: has joined #ruby
[20:44:57] jancel: has joined #ruby
[20:49:11] idefine: has joined #ruby
[20:53:07] bronson: has joined #ruby
[20:53:23] CausaMortis: has joined #ruby
[20:53:23] jdawgaz: has joined #ruby
[20:54:57] cpup: has joined #ruby
[20:55:13] Puffball: has joined #ruby
[20:55:54] jenrzzz: has joined #ruby
[20:56:21] jaguarmagenta: has joined #ruby
[20:57:51] minimalism: has joined #ruby
[20:59:13] mikecmpbll: has joined #ruby
[21:00:07] bronson: has joined #ruby
[21:03:12] Renich: has joined #ruby
[21:04:21] grenierm: has joined #ruby
[21:05:26] stannard: has joined #ruby
[21:06:36] jenrzzz: has joined #ruby
[21:06:55] patrick99e99: has joined #ruby
[21:07:19] Coldblackice: has joined #ruby
[21:07:55] blackmes1: has joined #ruby
[21:08:09] edwinvdgraaf: has joined #ruby
[21:08:29] voodoofish430: has joined #ruby
[21:08:34] workmad3: has joined #ruby
[21:09:42] patrick99e99: hey everyone.. I have some custom middleware in my rails app which is just doing @app.call(env), and this blows up if my original request url has quotes in it. However if prior to @app.call(env) i do: ["PATH_INFO", "ORIGINAL_FULLPATH", "SCRIPT_URL", "SCRIPT_URI", "REQUEST_URI"].each { |k| env[key] = URI.escape(env[key]), then that fixes the problem.. but it seems really horrible that I have to manually escape all those values..
[21:10:07] patrick99e99: Is there any other way to force the env object to be escaped prior to the rack app getting it?
[21:10:25] yfeldblum: has joined #ruby
[21:10:50] idefine: has joined #ruby
[21:10:58] bobbycvi: has joined #ruby
[21:12:34] smathy: Just throw 400s until that asshat client sorts its shit out.
[21:12:40] minimalism: has joined #ruby
[21:13:42] workmad3: has joined #ruby
[21:14:36] whathappens: has joined #ruby
[21:15:03] sdothum: has joined #ruby
[21:15:37] karmatr0n: has joined #ruby
[21:16:38] SilverKey: has joined #ruby
[21:17:00] danostrowski: has joined #ruby
[21:19:01] sphex: has joined #ruby
[21:19:11] trinaldi: has joined #ruby
[21:20:12] havenwood: patrick99e99: you might look at the rack-protection gem's Rack::Protection::EscapedParams module: https://github.com/sinatra/rack-protection#cross-site-scripting
[21:20:22] havenwood: https://github.com/sinatra/rack-protection/blob/master/lib/rack/protection/escaped_params.rb
[21:20:47] ramfjord: has joined #ruby
[21:20:54] havenwood: patrick99e99: require 'rack/protection/escaped_params'
[21:21:09] havenwood: use Rack::Protection::EscapedParams
[21:21:18] whathappens: has joined #ruby
[21:21:32] patrick99e99: thanks havenwood
[21:22:03] platzhirsch: has joined #ruby
[21:22:45] whathapp_: has joined #ruby
[21:22:59] sneakerhax: has joined #ruby
[21:23:10] patrick99e99: havenwood: So I just do that use command inside my call method?
[21:23:30] havenwood: patrick99e99: see the examples: https://github.com/sinatra/rack-protection#usage
[21:24:44] jancel: has joined #ruby
[21:24:49] robbyoconnor: has joined #ruby
[21:26:01] A124: has joined #ruby
[21:26:12] patrick99e99: havenwood: yeah-- I saw those, but that doesn't explain how to use it.. "use" is undefined method inside my rack app's call method.
[21:27:38] havenwood: patrick99e99: You're doing it in your config.ru file like the examples? I've got to run out for a minute but I'm sure others here or in the #rubyonrails channel can help.
[21:28:17] patrick99e99: oh.. not I don't have a .ru in my rails app.. I just am manually inserting this rack app as middleware
[21:28:45] havenwood: patrick99e99: Err, you don't have a config.ru in your Rails app? Are you sure?
[21:29:12] havenwood: patrick99e99: It's part of a default Rails app. I guess you may have renamed it? Dunno. Maybe ask in #rubyonrails and just let them know you're crossposting from here.
[21:29:13] patrick99e99: oops.. yeah i guess i do.
[21:29:33] patrick99e99: ok, thanks for your help havenwood
[21:29:38] havenwood: patrick99e99: you're welcome
[21:29:40] havenwood: patrick99e99: happy coding!
[21:31:08] jdawgaz: has joined #ruby
[21:31:40] symm-: has joined #ruby
[21:32:57] millerti: has joined #ruby
[21:34:14] Azure|dc: has joined #ruby
[21:35:58] banisterfiend: has joined #ruby
[21:37:12] BtcBen: has joined #ruby
[21:37:20] BtcBen: has left #ruby: ()
[21:40:47] jdawgaz: has joined #ruby
[21:43:34] skalfyfan: has joined #ruby
[21:45:46] kareeoleez: has joined #ruby
[21:46:50] whathappens: has joined #ruby
[21:47:33] yfeldblum: has joined #ruby
[21:49:51] jdawgaz: has joined #ruby
[21:52:27] benlieb: has joined #ruby
[21:52:57] Zackio: has joined #ruby
[21:53:19] ledestin: has joined #ruby
[21:54:17] yude: has joined #ruby
[21:55:01] benlieb: I've been tasked with using Brakeman (vulnerability analyzer) on code I didn't write. It has rightly identified the following line as a possible command injection vulnerability. system("zip -q -j -0 \"#{tmp_zip}\" #{created_zips}")
[21:55:10] benlieb: Both tmp_zip and created_zips are quite complex methods that have many logical branching possibilities (https://gist.github.com/benlieb/db71085e64eff8da2a84891206ace924). Is there a simple way to avoid the vulnerability. Some way of escaping?
[21:55:59] baweaver: you can set it as an ignore case
[21:58:15] Gasher: has joined #ruby
[22:01:38] whathapp_: has joined #ruby
[22:02:25] jenrzzz_: has joined #ruby
[22:02:52] htmldrum: has joined #ruby
[22:03:36] jancel: has joined #ruby
[22:07:25] jenrzzz: has joined #ruby
[22:11:03] zrl_: has joined #ruby
[22:11:33] al2o3-cr: has joined #ruby
[22:11:57] drewo: has joined #ruby
[22:12:51] Puffball: has joined #ruby
[22:13:33] Trynemjoel: has joined #ruby
[22:14:43] jdawgaz: has joined #ruby
[22:16:21] skolman: has joined #ruby
[22:16:31] whathappens: has joined #ruby
[22:17:09] whathapp_: has joined #ruby
[22:17:35] skolman: has joined #ruby
[22:17:46] jenrzzz: do you guys think rubygems.org executes gemspecs or just statically parses them? i'm wondering how they find the runtime depenendencies to show on the gem page
[22:17:48] jenrzzz: e.g. https://rubygems.org/gems/rails
[22:21:05] karmatr0n: has joined #ruby
[22:22:28] workmad3: has joined #ruby
[22:25:01] jancel: has joined #ruby
[22:28:55] jdawgaz: has joined #ruby
[22:30:15] Puffball: has joined #ruby
[22:31:16] skalfyfan: has joined #ruby
[22:32:19] whathappens: has joined #ruby
[22:32:19] freerobby: has joined #ruby
[22:34:17] devbug: has joined #ruby
[22:34:25] sp4rrow: has joined #ruby
[22:35:31] Drakx: has joined #ruby
[22:35:42] cstrahan: has joined #ruby
[22:36:25] nando293921: has joined #ruby
[22:36:42] zenlot: has joined #ruby
[22:37:31] rbennacer: has joined #ruby
[22:37:56] symm-: has joined #ruby
[22:39:24] Oog: has joined #ruby
[22:40:54] devbug: has joined #ruby
[22:44:41] whathappens: has joined #ruby
[22:46:13] nerium: has joined #ruby
[22:48:16] Yiota_: has joined #ruby
[22:49:48] |2701: has joined #ruby
[22:51:33] d5sx43: has joined #ruby
[22:52:14] yfeldblum: has joined #ruby
[22:53:02] PlasmaStar: has joined #ruby
[22:53:40] EdwardIII: has joined #ruby
[22:54:18] CausaMortis: has joined #ruby
[22:55:19] Puffball: has joined #ruby
[22:55:21] Labaleine: has joined #ruby
[22:55:22] jenrzzz: has joined #ruby
[22:55:22] jenrzzz: has joined #ruby
[22:57:06] jaguarmagenta: has joined #ruby
[22:58:41] crystal77: has joined #ruby
[22:58:53] GodFather: has joined #ruby
[23:00:05] JoshGlzBrk: has joined #ruby
[23:00:29] Oog: has joined #ruby
[23:01:27] jenrzzz: has joined #ruby
[23:01:30] kddeisz: has joined #ruby
[23:02:19] `tim`: has joined #ruby
[23:02:28] whathappens: has joined #ruby
[23:02:43] kddeisz: Hi everyone! I'm writing my first C extension any had a question. My function is pretty simple, it just does some basic char* manipulation. I get the char* from a ruby string by doing `char *orig_str = rb_string_value_cstr(&str);`. The problem is the function could also be called with a symbol. Anyone know the right way to convert it over?
[23:03:04] jancel: has joined #ruby
[23:03:08] rbennacer: has joined #ruby
[23:03:14] kddeisz: (I've tried `rb_any_to_s` but that doesn't seem to work like I thought it would...)
[23:08:23] Cohedrin: has joined #ruby
[23:08:28] LaT0rtue: has joined #ruby
[23:08:31] crdpink2: has joined #ruby
[23:09:13] Yiota: has joined #ruby
[23:09:40] EdwardIII: has joined #ruby
[23:10:50] d5sx43: has joined #ruby
[23:13:35] chopin: has joined #ruby
[23:13:40] Cohedrin: has joined #ruby
[23:16:31] charliesome: has joined #ruby
[23:16:43] JoshGlzBrk: has joined #ruby
[23:19:29] drewo: has joined #ruby
[23:21:54] weemsledeux: has joined #ruby
[23:22:26] idefine: has joined #ruby
[23:22:34] charliesome: has joined #ruby
[23:23:05] htmldrum: has left #ruby: ()
[23:24:47] grepwood: has joined #ruby
[23:25:18] grepwood: I've set up my application as such:
[23:25:20] grepwood: server "mycooldomain", :roles => %w(web app db), :primary => true, :user => "bestappintheuniverse", :keys => %w(/var/lib/bestappintheuniverse/.ssh/id_rsa), :auth_methods => %w(publickey)
[23:25:39] grepwood: that's all fine and good, sshkit accepts all of these options
[23:25:49] grepwood: except for :keys and :auth_methods :(
[23:25:57] grepwood: could someone please help?
[23:27:18] dn`: has joined #ruby
[23:28:03] danostrowski: has joined #ruby
[23:28:06] Nanuq: has joined #ruby
[23:28:15] idefine: has joined #ruby
[23:29:19] grepwood: oh wait, nevermind
[23:29:22] grepwood: has left #ruby: ()
[23:31:28] danostrowski: has joined #ruby
[23:31:31] jenrzzz: has joined #ruby
[23:34:40] postmodern: has joined #ruby
[23:36:34] Es0teric: has joined #ruby
[23:36:37] jud: has joined #ruby
[23:36:55] johnmilton: has joined #ruby
[23:37:11] EdwardIII: has joined #ruby
[23:41:31] freerobby1: has joined #ruby
[23:42:51] karmatr0_: has joined #ruby
[23:46:29] kgrz: has joined #ruby
[23:47:33] Puffball: has joined #ruby
[23:48:13] SVR4: has joined #ruby
[23:49:07] JoshGlzBrk: has joined #ruby
[23:50:29] stannard: has joined #ruby
[23:51:55] zacstewart: has joined #ruby
[23:58:40] EdwardIII: has joined #ruby
[23:59:05] jdawgaz: has joined #ruby
[23:59:10] jancel: has joined #ruby