« Back to channel list

#ruby - 01 August 2015

« Back 1 day Forward 1 day »
[00:00:08] rbowlby__: has joined #ruby
[00:00:42] srid-erc: has joined #ruby
[00:01:01] Muhannad: has joined #ruby
[00:02:49] danzilio: has joined #ruby
[00:03:19] juanpablo_______: has joined #ruby
[00:11:25] SuMo_D: has joined #ruby
[00:13:44] tno: has joined #ruby
[00:14:18] rickmasta: has joined #ruby
[00:15:08] bb010g: has joined #ruby
[00:16:11] benlovell: has joined #ruby
[00:18:41] tuelz1: has joined #ruby
[00:18:53] _seanc_: has joined #ruby
[00:21:31] TeresaP: has joined #ruby
[00:21:33] SuMo_D: has joined #ruby
[00:22:17] OrbitalKitten: has joined #ruby
[00:22:20] charliesome: has joined #ruby
[00:23:54] SuMo_D_: has joined #ruby
[00:24:10] NeverDie: has joined #ruby
[00:24:27] _blizzy_: has joined #ruby
[00:26:30] TeresaP: I have another question about Arrays/Hashes :-|. If I have an array of hashes (some are nested), and I want to use a key to look up something that is in one hash and get the value from something that matches that key and is nested inside a different hash, what's the best way to go about that?
[00:28:18] shevy: I'd use a method that does that
[00:28:28] shevy: or if you can get away, to use a hash
[00:28:44] mleung: has joined #ruby
[00:28:54] shevy: the method can ensure that you always get the desired result reliably
[00:29:01] luckyno7: has joined #ruby
[00:29:22] benlieb: has joined #ruby
[00:30:34] ivanf: has joined #ruby
[00:31:25] TeresaP: shevy -- are you saying there's nothing out there that can do lookups so I should just write something
[00:33:07] shevy: you can always apply .select
[00:33:42] shevy: I like methods
[00:34:27] JimmyNeutron: has joined #ruby
[00:36:26] ndrei: has joined #ruby
[00:36:37] Inside: has joined #ruby
[00:36:37] Inside: has joined #ruby
[00:37:17] tuelz1: has joined #ruby
[00:37:35] danzilio: has joined #ruby
[00:38:41] Ox0dea: >> foo = {a: {b: 1, c: 2}}; [foo[:a][:b], foo[:a][:c]] # TeresaP
[00:38:42] ruboto: Ox0dea # => [1, 2] (https://eval.in/409901)
[00:39:01] Ox0dea: But I realize now that I misunderstood the question.
[00:39:32] TeresaP: Ox0dea I probably sucked at explaining it
[00:39:35] TeresaP: http://pastie.org/private/koowkjtvze333mh0xbd1uq#1-2
[00:40:10] nofxx: has joined #ruby
[00:40:41] Ox0dea: It really feels like these shouldn't all be in the same collection.
[00:40:44] TeresaP: For each article, I want to say match the article id with a given value to a "children" hash with that id, then get its title
[00:41:18] Scripore: has joined #ruby
[00:41:35] shevy: scary data
[00:42:10] TeresaP: It's proprietary so I had to mask some stuff
[00:42:21] TeresaP: But yes, rather annoying
[00:42:32] shevy: is the id unique?
[00:42:43] TeresaP: Sorry, getting called away. I'll be back in a bit
[00:43:16] shevy: I'd re-do the hash for id-based keys; I use that for my video collection... I number from 1 to ... dunno... 300 or so so far, and access via the number alone
[00:47:35] bodgix: has joined #ruby
[00:48:16] neoseeker: has joined #ruby
[00:48:16] bufferloss: has joined #ruby
[00:50:09] schaerli: has joined #ruby
[00:51:29] dgutierrez1287: has joined #ruby
[00:51:34] lwu: has joined #ruby
[00:52:23] baweaver: has joined #ruby
[00:53:46] rbowlby: has joined #ruby
[00:55:18] neoseeker: has joined #ruby
[00:55:24] casadei_: has joined #ruby
[00:55:43] Phrogz: has joined #ruby
[01:01:20] rdema: has joined #ruby
[01:03:15] drewo: has joined #ruby
[01:04:29] michael_mbp: has joined #ruby
[01:05:16] Azure: has joined #ruby
[01:08:10] werelivinginthef: has joined #ruby
[01:08:44] swgillespie: has joined #ruby
[01:10:33] mxrguspxrt: has joined #ruby
[01:12:01] eggoez: has joined #ruby
[01:12:40] rubynuby: has joined #ruby
[01:15:59] craysiii: has joined #ruby
[01:16:47] startupality: has joined #ruby
[01:19:36] bufferloss: has joined #ruby
[01:20:04] rubynuby: has joined #ruby
[01:21:52] rubynuby: has joined #ruby
[01:22:32] werelivinginthef: has left #ruby: ()
[01:22:45] rubynuby: has left #ruby: ()
[01:24:45] Yzguy: has joined #ruby
[01:27:31] fgo: has joined #ruby
[01:28:34] cappsio: has left #ruby: ()
[01:28:39] dfockler: has joined #ruby
[01:29:55] Cache_Money: has joined #ruby
[01:31:29] bmurt: has joined #ruby
[01:32:17] dc: has joined #ruby
[01:33:33] rubynuby: has joined #ruby
[01:33:50] centrx: has joined #ruby
[01:34:53] Musashi007: has joined #ruby
[01:35:54] startupality: has joined #ruby
[01:36:17] asianMike: has left #ruby: ()
[01:37:10] braincra-: has joined #ruby
[01:37:26] bruno-_: has joined #ruby
[01:37:51] dseitz: has joined #ruby
[01:41:01] EminenceHC: has joined #ruby
[01:42:31] Phrogz: has joined #ruby
[01:44:29] michael_mbp: has joined #ruby
[01:45:08] fgo: has joined #ruby
[01:45:40] MAQ: has joined #ruby
[01:49:50] aiesec: has joined #ruby
[01:51:20] ichirin: has joined #ruby
[01:52:04] juanpablo_______: has joined #ruby
[01:53:00] mdavid613: has joined #ruby
[01:53:15] Godd2: has joined #ruby
[01:53:36] olistik: has joined #ruby
[01:55:36] unreal: has joined #ruby
[01:58:33] Pisuke: has joined #ruby
[01:59:46] rickmasta: has joined #ruby
[02:02:28] Pisuke: has joined #ruby
[02:04:25] rdema: has joined #ruby
[02:04:32] pwnd_nfsw: has joined #ruby
[02:05:21] Godd2: has joined #ruby
[02:06:37] Sembei: has joined #ruby
[02:09:03] charliesome_: has joined #ruby
[02:09:11] Godd2: has joined #ruby
[02:11:21] Sembei: has joined #ruby
[02:12:44] benlieb: has joined #ruby
[02:14:21] x0F: has joined #ruby
[02:14:47] rbowlby: has joined #ruby
[02:15:00] MyMind: has joined #ruby
[02:17:02] benlovell: has joined #ruby
[02:18:56] rdema: has joined #ruby
[02:19:06] j4cknewt: has joined #ruby
[02:19:39] Pisuke: has joined #ruby
[02:19:55] s2013: has joined #ruby
[02:23:12] Sembei: has joined #ruby
[02:24:44] kotk: has joined #ruby
[02:24:45] kotk_: has joined #ruby
[02:25:12] curses: has joined #ruby
[02:25:19] s2013: has joined #ruby
[02:27:20] MyMind: has joined #ruby
[02:27:57] kappy: has joined #ruby
[02:28:11] texasmade: has joined #ruby
[02:28:30] Musashi007: has joined #ruby
[02:28:53] CloCkWeRX: has left #ruby: ()
[02:29:06] cornerma1: has joined #ruby
[02:29:23] RegulationD: has joined #ruby
[02:29:45] Azure: has joined #ruby
[02:30:22] saddad: has joined #ruby
[02:31:05] aiesec: has joined #ruby
[02:31:49] saddad: has joined #ruby
[02:31:59] MyMind: has joined #ruby
[02:32:49] troulouliou_dev: has joined #ruby
[02:32:56] houhoulis: has joined #ruby
[02:33:17] saddad: has joined #ruby
[02:34:38] s00pcan: has joined #ruby
[02:35:33] niiamon: has joined #ruby
[02:35:52] MyMind: has joined #ruby
[02:37:13] s2013: has joined #ruby
[02:37:22] bonhoeffer: has joined #ruby
[02:37:38] saddad: has joined #ruby
[02:37:54] kappy: has joined #ruby
[02:38:59] kappy: has joined #ruby
[02:39:24] saddad: has joined #ruby
[02:39:40] Pisuke: has joined #ruby
[02:42:12] kappy: has joined #ruby
[02:42:48] x0F: has joined #ruby
[02:43:39] SuMo_D: has joined #ruby
[02:43:50] Sembei: has joined #ruby
[02:43:55] rehat: I'm using mechanize, does hitting 3k pages in 30 minutes seem long or could I be using my loops badly? lol
[02:44:06] eggoez: has joined #ruby
[02:44:15] casadei_: has joined #ruby
[02:46:03] centrx: rehat, Depends on how big the pages are, how fast the server is, network latency, etc.
[02:46:11] centrx: rehat, that's almost two pages a second, so not bad
[02:46:13] rickmasta: has joined #ruby
[02:46:29] aiesec: has joined #ruby
[02:47:20] michaeldeol: has joined #ruby
[02:48:14] kappy: has joined #ruby
[02:48:35] Sembei: has joined #ruby
[02:52:43] MyMind: has joined #ruby
[02:52:47] juanpablo_______: has joined #ruby
[02:54:24] x0F: has joined #ruby
[02:56:12] MyMind: has joined #ruby
[02:58:08] benlovell: has joined #ruby
[03:00:18] Pisuke: has joined #ruby
[03:01:06] christiandsg: has joined #ruby
[03:01:34] s2013: has joined #ruby
[03:02:18] arescorpio: has joined #ruby
[03:03:35] x0F: has joined #ruby
[03:03:44] x0F: has joined #ruby
[03:04:41] Sembei: has joined #ruby
[03:06:10] scorp007: has joined #ruby
[03:06:57] darkf: has joined #ruby
[03:07:40] scorp007: I'm trying to make a hello-world ruby C application. I get an access violation. Is this valid code? https://gist.github.com/anonymous/fc3f502bbfc703da8a9d
[03:08:22] fedexo: has joined #ruby
[03:08:37] MyMind: has joined #ruby
[03:08:37] scorp007: the stack is: https://gist.github.com/anonymous/38332059367381d0381d
[03:08:54] fenjamin: has joined #ruby
[03:09:08] [k-: has joined #ruby
[03:09:31] lannonbr: has joined #ruby
[03:12:35] Respek: has joined #ruby
[03:13:20] MyMind: has joined #ruby
[03:14:42] _seanc_: has joined #ruby
[03:15:38] braincrash: has joined #ruby
[03:16:30] _blizzy_: has joined #ruby
[03:17:06] x0F: has joined #ruby
[03:17:26] MyMind: has joined #ruby
[03:17:38] x0F_: has joined #ruby
[03:18:01] aiesec: has joined #ruby
[03:20:55] MyMind: has joined #ruby
[03:21:39] bronson: has joined #ruby
[03:21:54] CloCkWeRX: has joined #ruby
[03:22:39] aiesec: has joined #ruby
[03:24:40] djbkd: has joined #ruby
[03:25:44] MyMind: has joined #ruby
[03:27:02] christiandsg: has joined #ruby
[03:27:46] _blizzy_: has joined #ruby
[03:29:14] Pisuke: has joined #ruby
[03:29:55] towski_: has joined #ruby
[03:30:03] bufferloss: has joined #ruby
[03:32:16] bruno-: has joined #ruby
[03:33:21] Pisuke: has joined #ruby
[03:33:28] hahuang61: has joined #ruby
[03:35:04] blue_deref: has joined #ruby
[03:36:28] htmldrum: has joined #ruby
[03:37:07] christiandsg: has joined #ruby
[03:37:45] tkuchiki: has joined #ruby
[03:38:03] Pisuke: has joined #ruby
[03:39:08] gix: has joined #ruby
[03:41:36] Sembei: has joined #ruby
[03:44:33] [k-: Ox0dea!
[03:46:19] Sembei: has joined #ruby
[03:47:09] rakm: has joined #ruby
[03:50:27] MyMind: has joined #ruby
[03:50:53] chinmay_dd: has joined #ruby
[03:52:58] swgillespie: has joined #ruby
[03:53:42] hahuang61: has joined #ruby
[03:54:16] MyMind: has joined #ruby
[03:55:12] RobertBirnie: has joined #ruby
[03:56:22] Musashi007: has left #ruby: ()
[03:58:32] Musashi007: has joined #ruby
[03:58:41] MyMind: has joined #ruby
[03:59:03] aiesec: has joined #ruby
[03:59:58] rickmasta: has joined #ruby
[03:59:59] tubuliferous: has joined #ruby
[04:01:46] RickHull: has left #ruby: ()
[04:02:14] MyMind: has joined #ruby
[04:05:06] codecop: has joined #ruby
[04:06:07] hakunin: has joined #ruby
[04:06:09] arup_r: has joined #ruby
[04:06:20] MyMind: has joined #ruby
[04:07:01] ivanskie: has joined #ruby
[04:07:26] Kyuujitsu: has joined #ruby
[04:07:36] Vile`: has joined #ruby
[04:09:33] tjohnson: has joined #ruby
[04:10:09] hahuang61: has joined #ruby
[04:11:04] MyMind: has joined #ruby
[04:11:42] theery: has joined #ruby
[04:15:10] MyMind: has joined #ruby
[04:17:40] Rixius: has joined #ruby
[04:17:44] bluOxigen: has joined #ruby
[04:18:43] MyMind: has joined #ruby
[04:18:57] ndrei: has joined #ruby
[04:20:54] schaerli: has joined #ruby
[04:21:08] aiesec: has joined #ruby
[04:21:54] user1138_: has joined #ruby
[04:23:16] baweaver: has joined #ruby
[04:23:29] MyMind: has joined #ruby
[04:24:49] Vile`: has joined #ruby
[04:25:59] aiesec: problem with rbenv, "rbenv install 2.2.2" gives me this
[04:26:01] aiesec: Usage: ruby-build [-kvp] <definition> <prefix>
[04:26:03] aiesec: ruby-build --definitions
[04:26:13] aiesec: whats that?
[04:26:57] Pisuke: has joined #ruby
[04:28:25] hahuang61: has joined #ruby
[04:30:02] lwu_: has joined #ruby
[04:30:31] fedexo: has joined #ruby
[04:31:26] Feyn: has joined #ruby
[04:31:43] Pisuke: has joined #ruby
[04:32:23] havenwood: aiesec: rbenv uses ruby-build to install rubies and it look like you're getting its help message
[04:32:27] Musashi007: has joined #ruby
[04:32:43] havenwood: aiesec: check that you're using the latest versions of both
[04:33:08] casadei_: has joined #ruby
[04:33:23] arup_r: any reason to keep a `nil` inside it? does it make any sense ?
[04:33:34] havenwood: arup_r: nil, where?!
[04:33:38] arup_r: >> ruby 'date'; p Date::ABBR_MONTHNAMES
[04:33:39] ruboto: arup_r # => undefined method `ruby' for main:Object (NoMethodError) ...check link for more (https://eval.in/409929)
[04:33:47] havenwood: arup_r: huh?
[04:33:51] arup_r: >> require 'date'; p Date::ABBR_MONTHNAMES
[04:33:52] ruboto: arup_r # => [nil, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] ...check link for more (https://eval.in/409931)
[04:33:55] Kyuujitsu: has joined #ruby
[04:34:04] arup_r: sorry for the first time.. :p
[04:34:06] aiesec: havenwood i followed the github guide and thats how i got, any tips how to fix it?
[04:34:11] Channel6: has joined #ruby
[04:34:19] arup_r: It doesn't make any sense to have `nil`
[04:34:30] havenwood: arup_r: Jan is 1.
[04:34:40] kljk: has joined #ruby
[04:34:45] arup_r: aww... that's why
[04:34:48] havenwood: >> [nil, "Jan", "Feb"][1]
[04:34:49] ruboto: havenwood # => "Jan" (https://eval.in/409932)
[04:35:07] arup_r: havenwood, makes sense now.
[04:35:10] Sembei: has joined #ruby
[04:35:19] havenwood: aiesec: Try?: rbenv --debug install 2.2.2
[04:35:35] havenwood: aiesec: I think that's right at least, I don't actually use rbenv.
[04:35:51] eggoez: has joined #ruby
[04:35:57] aiesec: havenwood thanx
[04:36:01] havenwood: aiesec: I'd confirm that `rbenv --version` and `ruby-build` version are latest.
[04:36:15] havenwood: `ruby-build --version` i mean
[04:36:30] havenwood: that you're not getting an old install of one or the other
[04:36:45] havenwood: the error doesn't look familiar to me
[04:38:12] havenwood: aiesec: I'd just use ruby-install to install 2.2.2 for rbenv if I had to use rbenv: ruby-install --install-dir ~/.rbenv/versions/2.2.2 ruby 2.2.2
[04:38:14] hahuang61: has joined #ruby
[04:38:46] havenwood: aiesec: Or if you want to get to the bottom of the issue, try the install directly with ruby-build.
[04:38:49] arup_r: any better way of this ?
[04:39:01] arup_r: >> require 'date'; p 1.upto(12).map { |n| [ "%02d" % n, Date::ABBR_MONTHNAMES[ n ] ] }
[04:39:02] ruboto: arup_r # => [["01", "Jan"], ["02", "Feb"], ["03", "Mar"], ["04", "Apr"], ["05", "May"], ["06", "Jun"], ["07", "J ...check link for more (https://eval.in/409937)
[04:39:14] arup_r: to produce the same output
[04:40:00] Sembei: has joined #ruby
[04:40:31] curses: has joined #ruby
[04:40:42] jesseherrick: has joined #ruby
[04:41:35] juanpablo_______: has joined #ruby
[04:42:32] xcesariox: has joined #ruby
[04:42:58] Jester13: has joined #ruby
[04:43:02] havenwood: arup_r: One way: '01'.upto('12').zip Date::ABBR_MONTHNAMES.drop(1)
[04:43:31] MyMind: has joined #ruby
[04:44:25] arup_r: havenwood, I'll use your code.. as it is short code
[04:46:40] simplyianm: has joined #ruby
[04:46:46] theery: has joined #ruby
[04:47:51] MyMind: has joined #ruby
[04:51:23] Kyuujitsu: has joined #ruby
[04:51:45] Pisuke: has joined #ruby
[04:54:56] [k-: zip zips two arrays together
[04:55:05] [k-: make sure you understand it
[04:55:14] [k-: or else it is for nought
[04:56:04] [k-: &ri Array#zip
[04:56:04] `derpy: http://www.rubydoc.info/stdlib/core/Array#zip-instance_method
[04:56:24] Kyuujitsu: has joined #ruby
[04:56:27] Pisuke: has joined #ruby
[04:57:41] ponga: has joined #ruby
[04:58:36] aiesec: i am in mainland china, i can't do "gem install" without getting "Errno::ECONNRESET: Connection reset by peer - SSL_connect.."
[04:59:10] fgo: has joined #ruby
[04:59:10] aiesec: posted #rubygems
[04:59:45] havenwood: aiesec: How'd you install Ruby? What version of Ruby? What version of RubyGems?
[04:59:55] konsolebox: has joined #ruby
[04:59:59] Sembei: has joined #ruby
[05:00:23] havenwood: aiesec: Check `ruby -v` and `gem -v`?
[05:00:38] casadei_: has joined #ruby
[05:00:59] niiamon: has joined #ruby
[05:01:10] aiesec: havenwood now i got 2.2.2 from rbenv via "rbenv install 2.2.2"
[05:01:21] aiesec: my global is 2.2
[05:01:30] havenwood: aiesec: Which OS?
[05:01:48] Kyuujitsu: has joined #ruby
[05:01:50] aiesec: peppermind(ubuntu)
[05:01:58] aiesec: peppermint*
[05:02:17] bmcginty: has joined #ruby
[05:02:21] havenwood: aiesec: sudo apt-get install ca-certificates
[05:02:35] aiesec: its a fresh install via a usb for travel, ok will try that
[05:03:42] aiesec: i get this " Errno::ECONNRESET: Connection reset by peer - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://api.rubygems.org/quick/Marshal.4.8/sinatra-1.4.6.gemspec.rz)
[05:04:43] Sembei: has joined #ruby
[05:05:28] ledestin: has joined #ruby
[05:06:47] baweaver_: has joined #ruby
[05:07:11] riotjones: has joined #ruby
[05:08:16] MyMind: has joined #ruby
[05:10:15] hahuang61: has joined #ruby
[05:10:45] havenwood: aiesec: Try installing again with the --verbose flag?
[05:11:47] Kyuujitsu: has joined #ruby
[05:12:54] MyMind: has joined #ruby
[05:13:27] Trynemjoel: has joined #ruby
[05:13:30] havenwood: aiesec: Looks like there's an issue between you and the fastly CDN. Gist your output from?: http://www.fastly-debug.com
[05:15:04] aiesec: the gist is ugly, you sure?
[05:15:18] eggoez: has joined #ruby
[05:15:23] aiesec: ewogICJnZW9pcCI6IHsKICAgICJjaSI6ICJIYW5nemhvdSIsCiAgICAic3QiOiAiMDIiLAogICAgImN0IjogIkNoaW5hIiwKICAgICJjbyI6ICJBUyIKICB9LAogICJwb3BMYXRlbmN5IjogewogICAgIm5ydCI6IDExNiwKICAgICJoa2ciOiA5MSwKICAgICJzaW4iOiAxODgsCiAgICAibGF4IjogMTk1LAogICAgImZyYSI6IDQxMQogIH0sCiAgInBvcEFzc2lnbm1lbnRzIjogewogICAgImFjIjogIml0bSIsCiAgICAiYXMiOiAiaXRtIiwKICAgICJkeSI6ICJucnQiCiAgfSwKICAicmVxdWVzdCI6IHsKICAgICJ0aW1lIjogIjIwMTUtMDgtMDFUMD
[05:15:24] aiesec: U6MTQ6MjUuMDAwWiIsCiAgICAiaG9zdCI6ICJ3d3cuZmFzdGx5LWRlYnVnLmNvbSIsCiAgICAiYWNjZXB0IjogInRleHQvaHRtbCxhcHBsaWNhdGlvbi94aHRtbCt4bWwsYXBwbGljYXRpb24veG1sO3E9MC45LGltYWdlL3dlYnAsKi8qO3E9MC44IiwKICAgICJ1c2VyYWdlbnQiOiAiTW96aWxsYS81LjAgKFgxMTsgTGludXggaTY4NikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgVWJ1bnR1IENocm9taXVtLzQzLjAuMjM1Ny4xMzAgQ2hyb21lLzQzLjAuMjM1Ny4xMzAgU2FmYXJpLzUzNy4zNiIsCiAgICAiYWNjZXB0bGFu
[05:15:26] aiesec: Z3VhZ2UiOiAiZW4tVVMsZW47cT0wLjgiLAogICAgImFjY2VwdGVuY29kaW5nIjogImd6aXAiLAogICAgImZhc3RseXNlcnZlcmlwIjogIjEwMy4yNDUuMjIyLjY0IiwKICAgICJ4ZmYiOiAiIiwKICAgICJkYXRhY2VudGVyIjogIklUTSIsCiAgICAiYmFuZHdpZHRoX21icHMiOiAiNC4yNSIsCiAgICAicmVzb2x2ZXJfaXAiOiAiMjE4LjEwOC4yNDQuMjM0IiwKICAgICJyZXNvbHZlcl9hc19uYW1lIjogIkNOTklDLVdBU1UtQVAgV0FTVSBUViAmIENvbW11bmljYXRpb24gSG9sZGluZyBDby4sTHRkLixDTiIsCiAgICAicmVzb2x2ZXJfYXNfbnVtYm
[05:15:28] aiesec: VyIjogIjI0MTM5IiwKICAgICJyZXNvbHZlcl9iZ3BfcHJlZml4IjogIjIxOC4xMDguMjI0LjAvMTkiLAogICAgInJlc29sdmVyX2NvdW50cnlfY29kZSI6ICJDTiIsCiAgICAiY2xpZW50X2lwIjogIjIxOS44Mi41Ni4xMDEiLAogICAgImNsaWVudF9hc19uYW1lIjogIkNOTklDLVdBU1UtQVAgV0FTVSBUViAmIENvbW11bmljYXRpb24gSG9sZGluZyBDby4sTHRkLixDTiIsCiAgICAiY2xpZW50X2FzX251bWJlciI6ICIyNDEzOSIsCiAgICAiY2xpZW50X2JncF9wcmVmaXgiOiAiMjE5LjgyLjMyLjAvMTkiCiAgfQp9
[05:16:31] Pisuke: has joined #ruby
[05:16:33] tmtwd: has joined #ruby
[05:18:58] theery: has joined #ruby
[05:21:12] Pisuke: has joined #ruby
[05:21:23] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[05:21:38] Kyuujitsu: has joined #ruby
[05:22:02] yfeldblum: has joined #ruby
[05:22:44] havenwood: aiesec: Hehe, by Gist I meant: https://gist.github.com
[05:22:50] havenwood: aiesec: Please paste links to Gists for more than three lines.
[05:23:04] havenwood: aiesec: You may need to start a support ticket with fastly or an issue on RubyGem's Github so they can check with fastly.
[05:24:50] aiesec: havenwood sorry my mistake
[05:25:06] Sembei: has joined #ruby
[05:25:09] yfeldblum: has joined #ruby
[05:27:11] fedexo: has joined #ruby
[05:28:28] Trynemjoel: has joined #ruby
[05:29:30] Sembei: has joined #ruby
[05:29:42] havenwood: aiesec: no prob
[05:31:21] xcesariox: has joined #ruby
[05:31:50] brianpWins: has joined #ruby
[05:32:10] Kyuujitsu: has joined #ruby
[05:32:12] nofxx: has joined #ruby
[05:32:57] Sembei: has joined #ruby
[05:33:24] bruno-: has joined #ruby
[05:34:01] havenwood: aiesec: sudo apt-get -y install traceroute && traceroute rubygems.global.ssl.fastly.net
[05:35:34] havenwood: aiesec: ^ see what you get from a traceroute?
[05:36:12] serivichi: has joined #ruby
[05:36:12] serivich: has joined #ruby
[05:37:08] Kyuujitsu: has joined #ruby
[05:37:44] MyMind: has joined #ruby
[05:38:10] havenwood: aiesec: You might make a Gist of the traceroute and paste a link for #rubygems, though I'm not sure if anyone will be around before tomorrow.
[05:38:15] modern: has joined #ruby
[05:41:10] _seanc_: has joined #ruby
[05:41:11] Pisuke: has joined #ruby
[05:42:35] havenwood: aiesec: Also check?: mtr rubygems.global.ssl.fastly.net
[05:43:03] havenwood: aiesec: If not already installed: sudo apt-get -y install mtr-tiny
[05:45:10] havenwood: aiesec: If you have a chance you might check if it works on another network.
[05:45:20] Pisuke: has joined #ruby
[05:46:41] agent_white: has joined #ruby
[05:46:52] Kyuujitsu: has joined #ruby
[05:48:11] tubuliferous: has joined #ruby
[05:49:38] Sembei: has joined #ruby
[05:51:40] schaerli: has joined #ruby
[05:53:20] fedexo: has joined #ruby
[05:53:34] Sembei: has joined #ruby
[05:56:06] niiamon: has joined #ruby
[05:56:35] hahuang61: has joined #ruby
[05:56:50] Kyuujitsu: has joined #ruby
[05:57:31] lennae: has joined #ruby
[05:58:19] Sembei: has joined #ruby
[06:02:29] Sembei: has joined #ruby
[06:04:58] charliesome: has joined #ruby
[06:06:36] Sembei: has joined #ruby
[06:06:42] Kyuujitsu: has joined #ruby
[06:07:56] riotjones: has joined #ruby
[06:08:29] hahuang61: has joined #ruby
[06:09:23] htmldrum: has joined #ruby
[06:10:09] MyMind: has joined #ruby
[06:11:59] Kyuujitsu: has joined #ruby
[06:13:34] ledestin_: has joined #ruby
[06:14:55] MyMind: has joined #ruby
[06:16:22] havenwood: !unmute agent_white
[06:16:22] ruboto: -q agent_white!*@*
[06:16:22] ruboto: -o ruboto
[06:16:29] S1kx: has joined #ruby
[06:17:21] sross_work|2: has joined #ruby
[06:18:58] MyMind: has joined #ruby
[06:20:51] mistermocha: has joined #ruby
[06:21:44] Kyuujitsu: has joined #ruby
[06:22:16] M-_mis: has joined #ruby
[06:22:30] Pisuke: has joined #ruby
[06:22:30] riffraff: has joined #ruby
[06:22:37] bronson: has joined #ruby
[06:23:27] Zai00: has joined #ruby
[06:24:24] mistermo_: has joined #ruby
[06:27:15] Pisuke: has joined #ruby
[06:27:20] Kyuujitsu: has joined #ruby
[06:30:20] juanpablo_______: has joined #ruby
[06:31:09] mhrc: has joined #ruby
[06:31:22] Pisuke: has joined #ruby
[06:31:35] i8igmac: has joined #ruby
[06:31:36] hahuang61: has joined #ruby
[06:31:37] RegulationD: has joined #ruby
[06:32:41] Kyuujitsu: has joined #ruby
[06:34:49] Sembei: has joined #ruby
[06:39:02] MyMind: has joined #ruby
[06:41:10] rht: has joined #ruby
[06:41:26] safeforge: has joined #ruby
[06:43:01] last_staff: has joined #ruby
[06:43:02] nikhgupta: has joined #ruby
[06:43:33] Kyuujitsu: has joined #ruby
[06:43:40] MyMind: has joined #ruby
[06:47:17] Pisuke: has joined #ruby
[06:50:15] casadei_: has joined #ruby
[06:51:16] RobertBirnie: has joined #ruby
[06:51:55] Pisuke: has joined #ruby
[06:53:15] Kyuujitsu: has joined #ruby
[06:53:28] hahuang61: has joined #ruby
[06:55:33] rippa: has joined #ruby
[06:55:35] dfockler: has joined #ruby
[06:55:47] dvb_ua: has joined #ruby
[06:56:00] texasmade: has joined #ruby
[06:58:34] stardiviner: has joined #ruby
[06:59:16] towski_: has joined #ruby
[06:59:43] user1138: has joined #ruby
[07:02:53] Kyuujitsu: has joined #ruby
[07:03:28] hahuang61: has joined #ruby
[07:07:43] arup_r: has joined #ruby
[07:07:45] RobertBirnie: has joined #ruby
[07:08:57] Musashi007: has joined #ruby
[07:11:05] ruby-lang851: has joined #ruby
[07:12:40] Kyuujitsu: has joined #ruby
[07:12:43] doodleha_: has joined #ruby
[07:14:47] krz: has joined #ruby
[07:15:22] djbkd_: has joined #ruby
[07:15:24] agent_white: It is quiet in here.
[07:15:47] arup_r: Why this method giving syntax error in Production https://gist.github.com/aruprakshit/7e2785977511c0e72862#file-payment_controller_notworking-rb-L43 but working fine this way
[07:15:54] arup_r: https://gist.github.com/aruprakshit/7e2785977511c0e72862#file-payment_controller_working-rb
[07:16:05] arup_r: For me both method are same..
[07:16:24] Zai00: has joined #ruby
[07:16:35] arup_r: In development it is fine.. but in production one is throwing error, and the other is ok
[07:16:37] fedexo: has joined #ruby
[07:16:47] arup_r: I don't find any reason of it...
[07:16:49] [k-: home/ubuntu/gobgob-ror/releases/20150801065400/app/controllers/payments_controller.rb:46: syntax error, unexpected '\n', expecting => (SyntaxError)
[07:16:50] [k-: ????????????????from /home/ubuntu/gobgob-ror/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
[07:17:05] [k-: ignore the second line
[07:17:10] arup_r: why the syntax error?
[07:17:17] arup_r: nothing wrong with the method
[07:17:23] arup_r: it is pretty ok
[07:17:41] arup_r: what syntax is wrong here https://gist.github.com/aruprakshit/7e2785977511c0e72862#file-payment_controller_notworking-rb-L43
[07:17:55] Kyuujitsu: has joined #ruby
[07:18:16] lxsameer: has joined #ruby
[07:18:17] arup_r: more embrassing is it did not complain development environment.. but it does in Production
[07:18:22] [k-: wait wait om on my phone
[07:18:48] arup_r: and I made the my server up by writing it like https://gist.github.com/aruprakshit/7e2785977511c0e72862#file-payment_controller_working-rb-L1
[07:18:59] arup_r: but I don't why the error was coming..
[07:19:32] [k-: Ruby treats the arguments as a hash
[07:19:56] [k-: so you can't end with :gateway name
[07:19:57] arup_r: yes,, but why it is doing
[07:20:08] arup_r: this is not convincing... at all
[07:20:19] ruboto: Why don't you try it and see for yourself?
[07:20:32] arup_r: I think it is a bug (logically)
[07:21:32] [k-: >> def foo *args;end; foo(a: ?b, c: ?d, :e)
[07:21:33] ruboto: [k- # => /tmp/execpad-96909ecaace7/source-96909ecaace7:2: syntax error, unexpected ')', expecting => (https://eval.in/409983)
[07:21:34] workmad3: has joined #ruby
[07:21:54] sepp2k: has joined #ruby
[07:22:15] [k-: you aren't always right
[07:22:50] hahuang61: has joined #ruby
[07:23:24] Kyuujitsu: has joined #ruby
[07:23:25] arup_r: So in method argument passing, after hash I can't pass normal argument ? Is it ?
[07:23:41] arup_r: [k-, I think so from the behavior..
[07:23:58] [k-: you cant use the syntatic sugar like that
[07:24:15] doodleha_: has joined #ruby
[07:24:20] [k-: to do that, you need to surround it with {}
[07:25:49] [k-: >> def foo *args;end; foo(key: "value", key2: "value", :randomThing)
[07:25:50] ruboto: [k- # => /tmp/execpad-16895f47121b/source-16895f47121b:2: syntax error, unexpected ')', expecting => (https://eval.in/409987)
[07:26:20] Mendenhall: has joined #ruby
[07:26:29] [k-: >> def foo *args;end; foo(key: "value", key2: "value", :randomThing => "test")
[07:26:30] ruboto: [k- # => nil (https://eval.in/409991)
[07:26:44] [k-: do you see the difference
[07:27:01] arup_r: The very important thing is.. It didn't throw in developement mode, but shouting in production.. that was strange
[07:27:02] funfunctor: has joined #ruby
[07:27:13] arup_r: any way [k- thanks
[07:27:38] rippa: has joined #ruby
[07:27:41] [k-: you reordered the arguments
[07:27:56] doodleha_: has joined #ruby
[07:28:36] [k-: working and not_working are different
[07:28:51] [k-: i assume one is dev and one is production, no?
[07:29:06] arup_r: no.. not working code was fine in my dev environment.. but the same code was buggy in production..
[07:29:10] arup_r: that was strange
[07:29:23] arup_r: later i changed the code.. while trying to fix it..
[07:29:45] [k-: it should have crashed
[07:32:45] Kyuujitsu: has joined #ruby
[07:35:40] fantazo: has joined #ruby
[07:36:08] Aleserche: has joined #ruby
[07:36:20] tubuliferous: has joined #ruby
[07:37:25] doodleha_: has joined #ruby
[07:37:26] schaerli: has joined #ruby
[07:37:31] tmtwd: has joined #ruby
[07:37:45] Kyuujitsu: has joined #ruby
[07:38:35] arup_r: It did not.. that's why I was confused.. it took time to fix
[07:38:50] serivich: has joined #ruby
[07:40:08] serivichi: has joined #ruby
[07:41:56] hahuang61: has joined #ruby
[07:42:36] lennae: has joined #ruby
[07:44:22] Inside: has joined #ruby
[07:44:23] Inside: has joined #ruby
[07:45:28] Antiarc: has joined #ruby
[07:46:50] doodleha_: has joined #ruby
[07:47:23] serivich: has joined #ruby
[07:47:26] Kyuujitsu: has joined #ruby
[07:50:03] Anne: has joined #ruby
[07:52:18] jenrzzz: has joined #ruby
[07:52:30] yardenbar: has joined #ruby
[07:52:32] doodleha_: has joined #ruby
[07:52:32] jaimessi: has joined #ruby
[07:54:31] ndrei: has joined #ruby
[07:55:51] Ilyas: has joined #ruby
[07:56:16] Aleserche: has joined #ruby
[07:57:12] Kyuujitsu: has joined #ruby
[07:57:37] Aleserche: has joined #ruby
[07:59:03] Ilyas_: has joined #ruby
[07:59:12] Aleserche: has joined #ruby
[08:01:54] doodleha_: has joined #ruby
[08:02:02] khebbie: has joined #ruby
[08:03:49] doodleha_: has joined #ruby
[08:06:08] Trynemjoel: has joined #ruby
[08:06:50] Kyuujitsu: has joined #ruby
[08:07:35] doodleha_: has joined #ruby
[08:09:38] doodleha_: has joined #ruby
[08:11:21] polyrob: has joined #ruby
[08:15:06] doodleha_: has joined #ruby
[08:16:31] speakingcode: has joined #ruby
[08:16:32] Kyuujitsu: has joined #ruby
[08:18:51] doodleha_: has joined #ruby
[08:18:52] jenrzzz: has joined #ruby
[08:19:33] yardenbar: has joined #ruby
[08:20:27] funfunctor: has joined #ruby
[08:20:46] doodleha_: has joined #ruby
[08:20:52] auld: has joined #ruby
[08:21:31] hahuang61: has joined #ruby
[08:21:38] Kyuujitsu: has joined #ruby
[08:24:27] doodleha_: has joined #ruby
[08:26:41] Kyuujitsu: has joined #ruby
[08:27:30] Anne: has joined #ruby
[08:28:06] Anne: has joined #ruby
[08:28:14] charliesome: has joined #ruby
[08:28:48] Anne: has joined #ruby
[08:29:34] hahuang61: has joined #ruby
[08:29:49] Annie: has joined #ruby
[08:32:00] doodleha_: has joined #ruby
[08:33:04] goldfax: has joined #ruby
[08:35:21] lkba: has joined #ruby
[08:35:29] htmldrum: has joined #ruby
[08:37:41] Trynemjoel: has joined #ruby
[08:38:15] jenrzzz: has joined #ruby
[08:38:32] Anne: has joined #ruby
[08:38:51] quimrstorres: has joined #ruby
[08:39:16] casadei_: has joined #ruby
[08:40:09] Anne: has joined #ruby
[08:40:18] hahuang61: has joined #ruby
[08:40:52] Anne: has joined #ruby
[08:40:56] Kyuujitsu: has joined #ruby
[08:41:17] Anne: has joined #ruby
[08:41:49] Anne: has joined #ruby
[08:42:24] Anne: has joined #ruby
[08:42:55] bodgix: has joined #ruby
[08:45:27] DoubleMalt: has joined #ruby
[08:45:58] Kyuujitsu: has joined #ruby
[08:48:00] jgt1: has joined #ruby
[08:49:41] skade: has joined #ruby
[08:52:25] hahuang61: has joined #ruby
[08:52:43] doodleha_: has joined #ruby
[08:55:46] Kyuujitsu: has joined #ruby
[08:56:16] doublemalt_: has joined #ruby
[08:58:24] doodleha_: has joined #ruby
[09:00:19] doodleha_: has joined #ruby
[09:01:34] serivich: has joined #ruby
[09:02:17] schaerli: has joined #ruby
[09:02:39] TomyLobo: has joined #ruby
[09:03:11] TomyLobo: i installed ruby using rvm and it's all working nicely
[09:03:32] funfunctor: has joined #ruby
[09:04:17] TomyLobo: i can install most gems fine, but installing the "rerun" gem results in the error "/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)"
[09:04:36] TomyLobo: i dont get why it's going to ruby 1.9.1 there
[09:04:55] TomyLobo: maybe sudo filters out whatever rvm adds
[09:05:53] Kyuujitsu: has joined #ruby
[09:06:01] michael_mbp: has joined #ruby
[09:06:28] bodgix: has joined #ruby
[09:07:43] htmldrum: has joined #ruby
[09:07:53] doodleha_: has joined #ruby
[09:08:03] sevenseacat: has joined #ruby
[09:08:10] shevy: TomyLobo that sounds as if you have a debian ruby
[09:09:33] TomyLobo: shevy, close, ubuntu :)
[09:09:52] k3asd`: has joined #ruby
[09:09:52] shevy: yeah debian-base
[09:10:03] TomyLobo: hmm i'll try sudo rvm do gem install
[09:10:25] shevy: if you don't need the debian ruby you could remove it
[09:10:43] shevy: it apparently finds the wrong ruby version, can you invoke the rvm "gem env" command?
[09:10:53] Kyuujitsu: has joined #ruby
[09:10:53] TomyLobo: i probably need it for some base system stuff
[09:11:34] doodleha_: has joined #ruby
[09:12:19] TomyLobo: shevy, http://pastebin.com/C44snRU8
[09:12:20] ruboto: TomyLobo, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ec97935b582f49453baf
[09:12:20] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[09:12:51] shevy: yeah you can see it
[09:12:57] shevy: GEM PATHS
[09:12:58] shevy: - /home/vagrant/.rvm/gems/ruby-2.1.5
[09:12:59] shevy: - /home/vagrant/.rvm/gems/ruby-2.1.5@global
[09:13:06] shevy: does not mention /usr/lib/ruby/1.9.1
[09:13:28] doodleha_: has joined #ruby
[09:13:39] tvw: has joined #ruby
[09:13:43] apeiros: TomyLobo: no sudo with rvm
[09:14:57] TomyLobo: apeiros, so how do i install gems globally?
[09:15:37] CloCkWeRX: has left #ruby: ()
[09:15:46] niiamon: has joined #ruby
[09:19:07] doodleha_: has joined #ruby
[09:20:14] apeiros: TomyLobo: with rvm you usually do a user install of ruby and hence don't install gems globally either
[09:20:25] Kyuujitsu: has joined #ruby
[09:20:33] TomyLobo: ok, i'll try that
[09:20:38] hahuang61: has joined #ruby
[09:21:06] apeiros: and yes, if you do `sudo gem` instead of just `gem`, it'll not use your rvm's ruby
[09:21:58] apeiros: that "/usr/lib/ruby" path is a tell. it should be something like "/home/YOURNAME/.rvm/rubies/ruby-VERSION/???"
[09:22:23] firoxer: What about rvmsudo?
[09:22:34] firoxer: Is it evil or...?
[09:23:09] apeiros: I haven't used it, so can't tell you anything about it
[09:23:27] apeiros: #rvm can tell you more
[09:24:14] TomyLobo: oh great, now my part of my .rvm dir belongs to root
[09:24:29] tubuliferous: has joined #ruby
[09:24:49] doodleha_: has joined #ruby
[09:25:14] TomyLobo: however i managed to do that :)
[09:25:28] Trynemjoel: has joined #ruby
[09:25:37] firoxer: I only have systems where I am the only user so to me it makes sense to use rvmsudo
[09:25:59] firoxer: Since I never hear of people using it I thought it was bad or something
[09:26:10] apeiros: firoxer: on systems with only one user, there's no need to use sudo at all just for using ruby
[09:26:32] TomyLobo: apeiros, i think he means the only person using the system
[09:26:33] apeiros: except maybe for interaction with your package manager for external dependencies like imagemagick etc.
[09:26:36] TomyLobo: not the only unix user
[09:26:46] firoxer: TomyLobo, that's right
[09:26:58] apeiros: TomyLobo: yes? that's how I understood it.
[09:27:07] firoxer: I like to have both my personal user and www-data be able to use the gems
[09:27:23] chrisco: has joined #ruby
[09:28:30] shevy: I think you can use/require the gems anyway
[09:29:27] firoxer: shevy: without changing PATHs?
[09:29:40] hahuang61: has joined #ruby
[09:29:49] shevy: well, if you have more than one ruby version then you may also have a different set of gems
[09:30:15] shevy: such as TomyLobo seems to have :)
[09:30:29] firoxer: Good point :)
[09:30:37] TomyLobo: shevy, with little intention :)
[09:30:38] chrisco: has left #ruby: ()
[09:30:44] serivichi: has joined #ruby
[09:34:21] charliesome: has joined #ruby
[09:34:27] bruno-: has joined #ruby
[09:34:47] leafybasil: has joined #ruby
[09:37:18] Elbichejo: has joined #ruby
[09:39:46] bizportal: has joined #ruby
[09:39:52] lordkryss: has joined #ruby
[09:40:20] hahuang61: has joined #ruby
[09:40:36] drizz: has joined #ruby
[09:41:59] Trynemjoel: has joined #ruby
[09:43:11] nikhgupta: has joined #ruby
[09:45:15] skade: has joined #ruby
[09:45:47] bolar: has joined #ruby
[09:47:33] Outlastsheep: has joined #ruby
[09:48:01] Outlastsheep: Quick question: Would Ruby have difficulty opening/closing 17MB files?
[09:49:29] sevenseacat: wouldnt think so
[09:50:35] Outlastsheep: Oh god d- this is painful.
[09:50:41] CustosLimen: has joined #ruby
[09:51:21] timonv: has joined #ruby
[09:52:01] ttilley: has joined #ruby
[09:52:04] ttilley: has joined #ruby
[09:52:16] bnizzle: has joined #ruby
[09:52:41] lkba: has joined #ruby
[09:52:47] shevy: Outlastsheep how do you access the file? File.read or File.binread?
[09:53:02] shevy: or File.readlines :)
[09:53:11] Aleserche: has joined #ruby
[09:53:15] startupality: has joined #ruby
[09:53:27] apfeluser: has joined #ruby
[09:53:30] Trynemjoel: has joined #ruby
[09:53:57] Outlastsheep: Oh, I don't read it, shevy.
[09:53:59] Outlastsheep: Just writing.
[09:54:12] Outlastsheep: Opening it in Append mode and adding lines.
[09:55:06] simplyianm: has joined #ruby
[09:55:51] Outlastsheep: There's one strange thing though.
[09:56:27] texasmade: has joined #ruby
[09:56:55] Outlastsheep: I'm running an IRC bot that logs the channel. It opens a file in append-mode, and closes it every 6 minutes so the changes go through by reopening it. Now recently I've gotten a terrible error again. Or should I say 'no error' since the bot just disconnects and the Ruby script never realises that it disconnected.
[09:57:23] Outlastsheep: I think it's either the server it's running on being a dick, IRC being a dick, or the I/O system being a dick.
[10:00:29] mikecmpbll: has joined #ruby
[10:01:47] [k-: &ri IO#flush
[10:01:47] `derpy: http://www.rubydoc.info/stdlib/core/IO#flush-instance_method
[10:03:54] Outlastsheep: [k-: does that mean the file on disk updates with what Ruby's written into it?
[10:04:41] hahuang61: has joined #ruby
[10:05:06] Outlastsheep: Huh. I'll try that.
[10:05:20] schaerli: has joined #ruby
[10:06:07] OrbitalKitten: has joined #ruby
[10:07:03] jimms: has joined #ruby
[10:08:37] rdark: has joined #ruby
[10:09:28] charliesome: has joined #ruby
[10:09:55] casadei_: has joined #ruby
[10:12:24] bonhoeffer: has joined #ruby
[10:13:11] vickleton: has joined #ruby
[10:13:16] zz_Outlastsheep: has joined #ruby
[10:14:59] blueOxigen: has joined #ruby
[10:17:44] radgeRayden: has joined #ruby
[10:18:11] troulouliou_dev: has joined #ruby
[10:18:51] bodgix: has joined #ruby
[10:19:44] chris2: has joined #ruby
[10:20:02] Trynemjoel: has joined #ruby
[10:20:52] edwinvdgraaf: has joined #ruby
[10:21:27] hahuang61: has joined #ruby
[10:21:43] niiamon: has joined #ruby
[10:27:35] nikhgupt: has joined #ruby
[10:31:20] startupality: has joined #ruby
[10:32:48] schaerli: has joined #ruby
[10:35:03] Trynemjoel: has joined #ruby
[10:35:23] trouloulioud_dev: has joined #ruby
[10:35:59] leesharma: has joined #ruby
[10:36:06] leafybasil: has joined #ruby
[10:37:25] lxsameer: has joined #ruby
[10:41:05] bruno-: has joined #ruby
[10:41:34] Trynemjoel: has joined #ruby
[10:42:10] sdothum: has joined #ruby
[10:44:36] tkuchiki: has joined #ruby
[10:46:20] bruno-: has joined #ruby
[10:49:35] serivichi: has joined #ruby
[10:51:58] ht__: has joined #ruby
[10:52:35] Trynemjoel: has joined #ruby
[10:56:09] livathinos: has joined #ruby
[10:56:40] Kyuujitsu: has joined #ruby
[10:58:18] Matthews_: has joined #ruby
[10:58:26] schaerli: has joined #ruby
[10:58:27] Silox|: has joined #ruby
[10:58:40] shevy: would a Dir[path_to_the_gem+'**/**.rb'] call for a given gem, if it has a lot of .rb files, work if one wants to require all those various .rb files?
[10:58:55] workmad3: has joined #ruby
[10:59:35] [k-: i have no idea what '**' does!
[10:59:58] apeiros: shevy: it's **/*.rb
[11:00:04] apeiros: ** is for recursive dirs, not for files
[11:00:06] Trynemjoel: has joined #ruby
[11:00:30] apeiros: and while it might work, I wouldn't use that
[11:01:57] sepp2k1: has joined #ruby
[11:01:57] rickmasta: has joined #ruby
[11:02:25] robbyoconnor: has joined #ruby
[11:03:04] niiamon: has joined #ruby
[11:03:19] bruno-: has joined #ruby
[11:05:04] funfunctor: has joined #ruby
[11:05:58] yeticry: has joined #ruby
[11:06:42] Vile`: has joined #ruby
[11:06:51] Kyuujitsu: has joined #ruby
[11:10:39] serivich: has joined #ruby
[11:10:49] casadei_: has joined #ruby
[11:10:50] leafybasil: has joined #ruby
[11:11:50] Kyuujitsu: has joined #ruby
[11:12:41] tubuliferous: has joined #ruby
[11:13:03] schaerli: has joined #ruby
[11:15:31] hahuang61: has joined #ruby
[11:17:33] livathinos: has joined #ruby
[11:17:59] Kyuujitsu: has joined #ruby
[11:19:40] safeforge: has joined #ruby
[11:20:16] Zackio: has joined #ruby
[11:20:25] FernandoBasso: has joined #ruby
[11:21:06] Polysics: has joined #ruby
[11:23:47] prestorium: has joined #ruby
[11:24:55] ndrei: has joined #ruby
[11:30:01] lxsameer: has joined #ruby
[11:32:19] startupality: has joined #ruby
[11:33:47] tylersmith: has joined #ruby
[11:33:54] khebbie: has joined #ruby
[11:34:26] allcentury: has joined #ruby
[11:34:29] hahuang61: has joined #ruby
[11:35:02] stardiviner: has joined #ruby
[11:43:10] Trynemjoel: has joined #ruby
[11:45:25] varun_wadhwani: has joined #ruby
[11:45:49] krz: has joined #ruby
[11:46:00] dgutierrez1287: has joined #ruby
[11:47:08] f4cl3y: has joined #ruby
[11:48:40] Trynemjoel: has joined #ruby
[11:49:06] CloCkWeRX: has joined #ruby
[11:49:40] schaerli: has joined #ruby
[11:53:28] sarkyniin: has joined #ruby
[11:56:07] ndrei: has joined #ruby
[12:01:37] asi_: has joined #ruby
[12:02:49] lxsameer: has joined #ruby
[12:04:09] epochwolf: has joined #ruby
[12:04:12] Trynemjoel: has joined #ruby
[12:04:58] whowhat: has joined #ruby
[12:05:16] whowhat: hey guys i need some help im trying to learn ruby adn keep getting erroe
[12:05:29] Hanmac: has joined #ruby
[12:05:34] [k-: fire away
[12:05:44] whowhat: is it ok to pastebin ?
[12:06:15] [k-: use gist.github.com
[12:06:23] [k-: with your code and the full error
[12:06:33] j3r0: has joined #ruby
[12:06:37] abdulrehman: has joined #ruby
[12:06:52] whowhat: http://pastebin.com/uALcWgJn
[12:06:53] ruboto: whowhat, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/90330450c4564af96ec2
[12:06:53] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[12:07:28] Hanmac: whowhat: just "nokogiri" is enough
[12:07:35] v2px: has joined #ruby
[12:07:38] phutchins: has joined #ruby
[12:07:49] jimms: has joined #ruby
[12:07:54] pengin: has joined #ruby
[12:08:29] whowhat: nokogiri a common error ?
[12:08:47] v2px: ohai. A while ago I printed a hash to a logfile using pp, now I want to read it in again, what would be the best way to do this?
[12:09:26] dorei: has joined #ruby
[12:10:12] whowhat: hanmac: do you have any idea of what it would be ?
[12:10:40] Hanmac: whowhat: reguire "nokogiri"
[12:10:53] whowhat: i have installed nokogiri
[12:11:11] whowhat: by using gem install nokogiri
[12:11:50] Hanmac: whowhat: you dont get it, your require is just wrong
[12:12:12] Trynemjoel: has joined #ruby
[12:12:14] shevy: whowhat you use one "nokogiri/" too much in your require statement
[12:12:26] whowhat: hanmac: what is a "require" and how would i fix it ?
[12:12:33] shevy: oh windows
[12:12:57] shevy: whowhat if you start irb.exe, require 'nokogiri' works ?
[12:13:01] Hanmac: hm i tihnk he did install the wrong nokogiri or did used it wrong
[12:13:39] Hanmac: shevy require nokogiri does require a file like "nokogiri/nokogiri" but it doesnt found the file
[12:14:44] whowhat: shevy: no that doesn't work
[12:16:47] startupality: has joined #ruby
[12:17:30] fantazo: has joined #ruby
[12:18:32] agent_white: Somejuan said... no, no rvm, chruby. Is this true?
[12:18:36] shevy: how did you install nokogiri?
[12:19:09] bodgix1: has joined #ruby
[12:20:11] grios: has joined #ruby
[12:20:48] whowhat: shevy i done it via gem install nokogiri
[12:21:07] [k-_: has joined #ruby
[12:21:37] shevy: this is strange
[12:21:45] shevy: if there was no error then it should have installed properly
[12:22:06] whowhat: shevy i will show you the install
[12:22:55] whowhat: http://pastebin.com/zRS19ujt
[12:22:56] ruboto: whowhat, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4751b8abe5289c589dd4
[12:22:56] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[12:23:52] lordkryss: has joined #ruby
[12:25:06] last_staff: has joined #ruby
[12:25:07] leesharma: has joined #ruby
[12:27:08] domgetter: has joined #ruby
[12:27:22] _5moufl: has joined #ruby
[12:30:37] abara: has joined #ruby
[12:30:58] abara: hi guys. i getting this error https://dpaste.de/uHdE when running bundle install on a project
[12:32:03] Scripore: has joined #ruby
[12:32:23] Hanmac: abara: what is your os?
[12:32:27] apeiros: ?guys abara
[12:32:28] ruboto: abara, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
[12:32:39] apeiros: abara: seems like you're missing the 'make' command
[12:32:44] Trynemjoel: has joined #ruby
[12:32:47] apeiros: "sh: make: command not found"
[12:33:06] apeiros: you probably need some kind of dev package for your distro
[12:33:15] abara: apeiros: how f*** ok
[12:33:25] abara: apeiros: sorry for the mistake :/
[12:33:29] Hanmac: apeiros: i will call you all my "buddies" now, and if feminists are against that than i cant help them
[12:33:51] abdulrehman: has joined #ruby
[12:33:51] Igorshp: has joined #ruby
[12:34:00] abara: ruboto: sorry about that too. i will try to remember this grammar tip.
[12:34:09] abara: thanks for help folks
[12:34:10] [k-_: buddy has a male connotation
[12:34:11] apeiros: ?justabot abara
[12:34:11] ruboto: abara, I'm just a bot. You don't need to address me.
[12:34:14] whowhat: has anyone happened to figure out my issue :(
[12:35:03] apeiros: whowhat: not on windows, sorry.
[12:35:35] banister: has joined #ruby
[12:35:37] apeiros: [k-_: you sure? not a native speaker myself, but I see male & female translations
[12:37:40] whowhat: i think i might do a fresh install
[12:38:10] domgetter: whowhat: Have you added gem 'nokogiri' to your Gemfile in your Rails app? Also, try asking over in #rubyonrails to get more pointed Rails help
[12:38:20] Igorshp: has joined #ruby
[12:38:43] domgetter: apeiros: 'guys' is both male and female as well in common usage.
[12:38:49] apeiros: ?guys2 domgetter
[12:38:49] ruboto: domgetter, it doesn???t matter if it???s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
[12:38:52] whowhat: domgetter: im only new, so i would have no idea how to do that ?
[12:38:59] apeiros: domgetter: and if you want to discuss it -> #ruby-offtopic
[12:39:17] [k-_: apeiros: he was just explaining that guys and buddies have male connotations
[12:39:19] apeiros: oh, already included in that response, hah
[12:39:40] apeiros: [k-_: this applies to you too
[12:39:59] [k-_: http://www.merriam-webster.com/dictionary/buddy
[12:40:11] hahuang61: has joined #ruby
[12:40:19] [k-_: i wasn't using it to refer to a specific group of people!
[12:40:44] apeiros: [k-_: the discussing part
[12:40:47] Hanmac: thats what feminists do, they prevent that someone else can to talk to eachother ...
[12:40:56] apeiros: !kick hanmac OT
[12:40:56] helpa: apeiros: No.
[12:40:57] ruboto: ruboto kicked hanmac:
[12:40:57] ruboto: -o ruboto
[12:41:04] Hanmac: has joined #ruby
[12:41:14] apeiros: you can very well discuss it. but not here.
[12:42:18] bluOxigen: has joined #ruby
[12:44:51] gwendall: has joined #ruby
[12:46:36] hahuang61: has joined #ruby
[12:46:58] leesharma: has joined #ruby
[12:47:55] domgetter: has joined #ruby
[12:48:00] bustrarm: has joined #ruby
[12:48:07] domgetter: apeiros: well now hold on a second, you're the one who brought it up. It doesn't seem very 'decent' to bring something up and then say "no you can't talk about that" when someone responds. But I'll stop talking about it if you want me to.
[12:48:42] DJSpies: has joined #ruby
[12:48:55] prestorium: has joined #ruby
[12:48:56] apeiros: !ban domgetter !T 1h told you to move it to #ruby-offtopic
[12:48:57] ChanServ: +b domgetter!*@*
[12:48:57] ChanServ: ChanServ kicked domgetter: told you to move it to #ruby-offtopic
[12:49:18] startupality: has joined #ruby
[12:50:28] blueOxigen: has joined #ruby
[12:52:16] victortyau: has joined #ruby
[12:56:16] Trynemjoel: has joined #ruby
[12:58:37] dimasg: has joined #ruby
[12:58:48] Aleserche: has joined #ruby
[12:59:37] casadei_: has joined #ruby
[13:00:15] agent_white: hanmac just get kicked?
[13:00:21] dagda1: has joined #ruby
[13:00:42] Oka: has joined #ruby
[13:00:53] tubuliferous: has joined #ruby
[13:01:07] [k-_: ?ot agent_white
[13:01:07] ruboto: agent_white, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[13:01:34] agent_white: [k-_: I will be there to discuss this further. Thank you.
[13:01:41] phutchins: has joined #ruby
[13:01:56] [k-_: you are already there :D
[13:02:59] agent_white: [k-_: I wasn't. Now I am. Anyways, this is offtopic so lets move it to OT.
[13:05:57] leat1: has joined #ruby
[13:08:17] Trynemjoel: has joined #ruby
[13:08:44] skade: has joined #ruby
[13:09:39] iateadonut: has joined #ruby
[13:10:30] otisZart: has joined #ruby
[13:12:14] ruurd: has joined #ruby
[13:12:29] TomyLobo: i'm using a vagrant box (host is win7, guest is ubuntu) to develop ruby stuff. i found this "rerun" tool, which monitors a directory for changes
[13:13:05] TomyLobo: now the problem is, my stuff is on a vagrant shared folder and that doesnt seem to work with the notification mechanism that rerun uses
[13:14:09] TomyLobo: can someone recommend an alternative?
[13:15:01] banister: has joined #ruby
[13:16:48] Trynemjoel: has joined #ruby
[13:18:04] Oka: has joined #ruby
[13:18:55] Oka: has joined #ruby
[13:20:34] chills42: has joined #ruby
[13:21:15] _Aleserche_: has joined #ruby
[13:22:26] lkba_: has joined #ruby
[13:23:25] startupality: has joined #ruby
[13:24:11] konsolebox: has joined #ruby
[13:28:49] Trynemjoel: has joined #ruby
[13:30:18] dimasg: has joined #ruby
[13:31:32] FernandoBasso: has joined #ruby
[13:33:45] symm-: has joined #ruby
[13:34:34] juanpablo_______: has joined #ruby
[13:34:53] prestorium: has joined #ruby
[13:35:19] Trynemjoel: has joined #ruby
[13:35:28] TomyLobo: i went with the NppFTP Notepad++ plugin in order to have the files on an actual linux partition
[13:35:45] TomyLobo: i have another question: is there a prettier way to write "directories.include?(path)"?
[13:36:00] TomyLobo: something more like "path in directories"? :)
[13:36:04] adaedra: You could also directly work on a Linux system, through a VM or physically
[13:36:19] TomyLobo: adaedra, it's a VM already
[13:36:29] TomyLobo: but i wont run an X in there
[13:36:48] adaedra: That's what I meant by ???directly???
[13:37:41] adaedra: `directories.include? path` seems good enough for me, what are you trying to do?
[13:38:04] [k-_: path in directories?
[13:38:11] [k-_: that is odd
[13:38:20] [k-_: i think in is reserved in ruby anyway
[13:38:35] [k-_: also, infix methods arent supported by ruby
[13:38:36] adaedra: what is reserved?
[13:38:47] [k-_: a keyword
[13:39:38] [k-_: reserved actually means "kept specially for a particular person."
[13:39:40] adaedra: ah, thought you were referring to the first line
[13:41:14] CloCkWeRX: has joined #ruby
[13:42:50] Oka: has joined #ruby
[13:43:19] Oka: has joined #ruby
[13:43:55] havenwood: has joined #ruby
[13:47:50] Trynemjoel: has joined #ruby
[13:48:50] ponga: has joined #ruby
[13:48:56] ChanServ: -b domgetter!*@*
[13:48:58] khebbie: has joined #ruby
[13:49:26] Oka: has joined #ruby
[13:49:34] schaerli: has joined #ruby
[13:50:54] tennis_: has joined #ruby
[13:55:21] Trynemjoel: has joined #ruby
[13:55:22] niiamon: has joined #ruby
[13:56:42] fenjamin: has joined #ruby
[13:57:17] freerobby: has joined #ruby
[13:57:24] leat1: has joined #ruby
[13:58:02] TomyLobo: what's a decent free ide with no relation to eclipse and autocomplete for ruby
[13:58:31] adaedra: If you really want an IDE, there's RubyMine
[13:58:46] adaedra: But generally, people do without IDE
[13:58:55] TomyLobo: hmm but that's not free
[13:59:03] havenwood: TomyLobo: It's more of a text editor but you might try Atom with some plugins.
[13:59:17] adaedra: Ah yes, free.
[13:59:19] abdulrehman: has joined #ruby
[13:59:25] adaedra: It is if you're student.
[13:59:50] [k-_: you dont need an ide in ruby
[13:59:51] adaedra: Get an editor and setup it up
[13:59:55] [k-_: trust me
[14:00:09] TomyLobo: [k-_, but then how will i know which methods the string class has?
[14:00:17] adaedra: Documentation!
[14:00:19] [k-_: &ri String
[14:00:19] `derpy: http://www.rubydoc.info/stdlib/core/String
[14:00:26] TomyLobo: yeah without going to the docs each time :)
[14:00:40] [k-_: >> String.methods(false)
[14:00:42] ruboto: [k-_ # => [:try_convert] (https://eval.in/410066)
[14:00:45] adaedra: And I have yet to find an autocompletion that works correctly in Ruy
[14:00:48] [k-_: >> String.instance_methods(false)
[14:00:49] ruboto: [k-_ # => [:<=>, :==, :===, :eql?, :hash, :casecmp, :+, :*, :%, :[], :[]=, :insert, :length, :size, :bytesize, ...check link for more (https://eval.in/410067)
[14:00:58] TomyLobo: things like .eql? arent terribly memorable either :)
[14:01:07] adaedra: It comes with the time
[14:01:12] adaedra: And you have ri command
[14:01:24] adaedra: not only in this channel, in your shell too :)
[14:01:25] TomyLobo: meaning another shell
[14:01:30] TomyLobo: i need Kate :P
[14:01:55] TomyLobo: https://en.wikipedia.org/wiki/Kate_%28text_editor%29
[14:02:20] ruurd: has joined #ruby
[14:02:21] pandaant: has joined #ruby
[14:02:25] adaedra: I'm more a VIM user myself though
[14:02:31] TomyLobo: it has a terminal plugin
[14:02:32] adaedra: And lots of open terminals :)
[14:03:13] TomyLobo: yeah i dont even have a tabbed terminal
[14:03:16] TomyLobo: it's horrible
[14:03:17] khebbie: has joined #ruby
[14:03:23] startupality: has joined #ruby
[14:03:32] adaedra: I don't either
[14:04:59] tmtwd: has joined #ruby
[14:05:19] lkba: has joined #ruby
[14:05:31] TomyLobo: hmm there is map but not filter
[14:05:59] adaedra: Look Enumerable
[14:06:19] [k-_: &ri Array#select
[14:06:19] `derpy: http://www.rubydoc.info/stdlib/core/Array#select-instance_method
[14:06:51] TomyLobo: hmmm there's collect... what's the differnt to map?
[14:06:52] Trynemjoel: has joined #ruby
[14:07:19] TomyLobo: difference*
[14:07:57] adaedra: collect is the same as map
[14:08:28] [k-_: yup, there are numerous methods that do the same thing but under a different name in ruby
[14:08:30] TomyLobo: odd, it usually says "foo is an alias of bar" in the manual if that's the case
[14:09:45] [k-_: inconsistency, i guess
[14:09:52] gamename: has joined #ruby
[14:10:03] adaedra: In the doc, they're together in the same block
[14:10:12] adaedra: &ri Array#collect
[14:10:12] `derpy: http://www.rubydoc.info/stdlib/core/Array#collect-instance_method
[14:10:16] schaerli: has joined #ruby
[14:10:19] dfockler: has joined #ruby
[14:12:01] hahuang61: has joined #ruby
[14:12:35] [k-_: yup, they are explained together using similar examples as well
[14:12:44] [k-_: as seen in Enumerable#collect
[14:14:29] sarkyniin: has joined #ruby
[14:18:03] leat1: has joined #ruby
[14:20:07] centrx: has joined #ruby
[14:24:50] _Aleserche_: has joined #ruby
[14:25:14] hahuang61: has joined #ruby
[14:26:13] k3asd`: has joined #ruby
[14:26:45] CloCkWeRX: has joined #ruby
[14:26:50] CloCkWeRX: has left #ruby: ()
[14:28:07] leafybasil: has joined #ruby
[14:28:47] leat1: has joined #ruby
[14:29:57] ivanskie: has joined #ruby
[14:30:05] khebbie: has joined #ruby
[14:30:09] cornerma1: has joined #ruby
[14:30:17] TomyLobo: "x.each { |p| puts p }" works, "x.each &puts" just outputs empty lines. what am i doing wrong?
[14:30:28] casadei_: has joined #ruby
[14:30:59] [k-_: &:puts shouldn't work too
[14:31:09] TomyLobo: that's a method pointer, right?
[14:31:16] TomyLobo: the error looks like it is :)
[14:31:35] adaedra: ah yes, derp
[14:31:35] centrx: x.each(&:puts) calls y.puts on each member y of x
[14:31:44] shevy: foo = method(:bla)
[14:31:45] adaedra: I read too fast once again
[14:31:46] centrx: puts p != p.puts
[14:31:54] shevy: http://ruby-doc.org/core-2.2.0/Method.html
[14:32:10] shevy: lol ... what kind of documentation does it have
[14:32:12] TomyLobo: so how do i refer to puts properly?
[14:32:33] [k-_: { |p| puts p }
[14:32:37] TomyLobo: "meth == other_meth"? crystal much? :)
[14:32:42] TomyLobo: [k-_, no direct way?
[14:32:56] shevy: the problem is that it wants an argument
[14:33:07] centrx: You can add a method on the class of elements in x
[14:33:07] shevy: and there currently is no way for & to pass an argument in that call
[14:33:29] centrx: class String; def puts; puts self; end; end
[14:33:39] centrx: much monkey though
[14:33:45] [k-_: puts = -> x { Kernel.puts x }
[14:33:52] shevy: much centrx
[14:33:53] [k-_: i think that would work?
[14:34:02] centrx: many guys
[14:34:13] agent_white: Done shitting in offtopic. #ruby needs new ops. Love you enough to believe you can do better when it comes to ops here. This channel is not what it used to be... not ruby. -- "Matz is nice, so we are nice.".
[14:34:34] jonee: has joined #ruby
[14:34:36] [k-_: agent_white: please do not discuss that too here
[14:34:46] Hanmac: checkout the #display method ,P
[14:35:00] [k-_: >> puts = -> x { Kernel.puts x }; %w[a b c].each &puts
[14:35:01] ruboto: [k-_ # => a ...check link for more (https://eval.in/410108)
[14:35:07] [k-_: you dont even need the : now!
[14:35:11] schaerli: has joined #ruby
[14:35:16] leesharma: has joined #ruby
[14:35:29] agent_white: [k-_: Don't discuss #ruby in #ruby?
[14:35:40] ruurd: has joined #ruby
[14:36:05] [k-_: agent_white: the sentence above can be treated as trying to sow discord
[14:36:08] ynroot: has joined #ruby
[14:36:11] [k-_: which is against the rules
[14:36:27] workmad3: has joined #ruby
[14:36:38] agent_white: Luckily I didn't say "you guys". Otherwise I'd be banned.
[14:36:45] troulouliou_dev: has joined #ruby
[14:37:02] busterarm: this is not on topic
[14:37:04] agent_white: Nah I'm done.
[14:37:05] shevy: yeah guys get banned!
[14:37:07] busterarm: clearly not
[14:37:16] apeiros: !ban agent_white good !P You tried hard. Congrats, you got your wish.
[14:37:18] Rinzlit: agent_white: you wanna talk about things in private?
[14:37:25] apeiros: !ban agent_white !P You tried hard. Congrats, you got your wish.
[14:37:25] ChanServ: +b agent_white!*@*
[14:37:26] ChanServ: ChanServ kicked agent_white: You tried hard. Congrats, you got your wish.
[14:37:42] busterarm: man that was just asking for it
[14:37:46] Rinzlit: apeiros, he just seemed upset .-.
[14:38:10] busterarm: he was unhappy with the result of an hour-long discussion about it in OT
[14:38:27] apeiros: Rinzlit: he can be upset wherever. if he can't pull himself together and behave here, then good riddance.
[14:38:28] busterarm: so throw a tantrum...
[14:38:34] busterarm: (??????????????????? ?????????
[14:38:39] sphex: has joined #ruby
[14:38:39] apfeluser: has joined #ruby
[14:38:39] centrx: apeiros, That doesn't sound very inclusive
[14:39:00] Rinzlit: R.I.P. agent_white Q_Q
[14:39:07] Coraline: Being inclusive doesn't mean tolerating problem people.
[14:39:09] Rinzlit: Well time to go back on topic of ruby
[14:39:21] Rinzlit: I bought a Ruby on Rails course
[14:40:00] centrx: Coraline, Order requires excluding people according to some standard, but that doesn't mean it's inclusive.
[14:40:04] Rinzlit: I should probably finish learning ruby first but I'm really impatient so I'm going to just try RoR's anyway
[14:40:11] [k-_: guys is only frowned upon when it is used to refer to #ruby as a whole when it actually does not
[14:40:29] apeiros: ok, PSA: discussing and evolving channel policy happens in #ruby-community. non-ruby talk in #ruby-offtopic.
[14:40:42] apeiros: anybody continuing here will get the boot from me.
[14:40:50] apeiros: and don't come crying. I made myself pretty clear.
[14:41:12] bodgix1: has left #ruby: ()
[14:41:17] apeiros: and centrx, that includes obviously inflammatory comments like your "apeiros, That doesn't sound very inclusive"
[14:41:23] apeiros: I will not tolerate that kind of shit anymore.
[14:41:49] busterarm: you mean in #ruby, right?
[14:41:54] busterarm: can we still say that in OT? :D
[14:42:17] apeiros: I don't police #ruby-offtopic. and I hope I never have to (probably silly to hope for that)
[14:42:32] apeiros: #ruby-community follows the same policies as #ruby.
[14:42:45] centrx: Calling someone out for incorrect terminology is not inflammatory
[14:42:56] Trynemjoel: has joined #ruby
[14:43:35] shevy: ban centrx!
[14:43:44] [k-_: ?ot centrx
[14:43:44] ruboto: centrx, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[14:43:49] apeiros: centrx: don't test my limits. I'm short on them today.
[14:43:55] khebbie: has joined #ruby
[14:44:00] busterarm: shevy come back
[14:44:03] adaedra: shevy: you know you can just ignore DeBot and all message containing its name
[14:44:05] busterarm: i'm sorry :(
[14:44:11] apeiros: centrx: and no, enforcing channel policy is not OT. it's part of channel maintenance.
[14:44:27] shevy: adaedra truthfully I don't think I ignore anything or anyone
[14:44:28] centrx: Am I allowed to respond?
[14:44:35] apeiros: centrx: in #ruby-offtopic
[14:44:52] TomyLobo: i have no idea what's going on
[14:45:22] shevy: yeah that happens when we don't talk about ruby TomyLobo
[14:45:44] TomyLobo: so, talk about ruby more, then?
[14:45:55] centrx: ^ smart guy
[14:46:02] apeiros: TomyLobo: oh, please do. that'd make for a nice and welcome change :)
[14:46:11] jimms: has joined #ruby
[14:46:25] Rinzlit: apeiros how did you learn Ruby?
[14:46:38] Rinzlit: Is that OT? O_o
[14:46:52] [k-_: grey area
[14:47:20] centrx: has joined #ruby
[14:47:29] bruno-: has joined #ruby
[14:47:52] apeiros: Rinzlit: look, OT is tolerated. but once you're told by an op that it's too much and to move on, respect that.
[14:48:21] apeiros: I learned ruby from pickaxe, zenspiders quickref, reading the whole core docs, writing code, asking questions here.
[14:48:54] centrx: #ruby can be, or at least used to be, very off-topic when there is no Important Business to discuss
[14:49:04] tubuliferous: has joined #ruby
[14:49:20] centrx: but this special issue tends to be not really friendly off-topic but arguing
[14:50:43] apeiros: there are topics known to escalate quickly. context matters.
[14:50:51] [k-_: centrx: http://ruby-community.com/pages/user_rules#rule_2_1 http://ruby-community.com/pages/user_rules#rule_2_10
[14:50:53] centrx: Yeah, like PHP
[14:51:16] lannonbr: has joined #ruby
[14:52:01] jesseherrick: has joined #ruby
[14:52:56] Trynemjoel: has joined #ruby
[14:54:32] busterarm: reading the docs super important :)
[14:54:39] busterarm: not in the RTFM sense but as a reference
[14:54:51] busterarm: i use the docs every day on the job
[14:56:12] Muhannad: has joined #ruby
[14:57:11] dagda1: has joined #ruby
[14:59:08] stamina: has joined #ruby
[15:01:00] tmtwd: has joined #ruby
[15:02:22] dgutierrez1287: has joined #ruby
[15:02:26] centrx: busterarm, Please don't use lowercase 'i'. Keep a measure of professionalism and decorum. Thanks.
[15:03:51] cornerman: has joined #ruby
[15:03:52] skade: has joined #ruby
[15:03:57] Trynemjoel: has joined #ruby
[15:04:27] leesharma: has joined #ruby
[15:04:47] willywos: has joined #ruby
[15:04:59] apfeluser: has joined #ruby
[15:04:59] [k-_: has joined #ruby
[15:05:41] [k-_: centrx: http://ruby-community.com/pages/user_rules#rule_2_12
[15:07:09] apeiros: busterarm: I just read all of core to get an idea what's around. it proved very valuable.
[15:07:18] apeiros: also it made me look the docs up a lot less :D
[15:07:23] __Aleserche__: has joined #ruby
[15:07:43] busterarm: centrx: ...what?
[15:07:52] jimms: has joined #ruby
[15:07:56] busterarm: apeiros: I definitely agree there too
[15:08:18] joneshf-laptop: has joined #ruby
[15:08:25] busterarm: i just do it to make sure there isn't a better method I'm forgetting. I know the limitations of my own memory :D
[15:08:32] apeiros: !ban centrx !T 1d I made myself very clear that I wouldn't tolerate such shit anymore
[15:08:33] ChanServ: +b centrx!*@*
[15:08:33] ChanServ: ChanServ kicked centrx: I made myself very clear that I wouldn't tolerate such shit anymore
[15:10:09] AlexRussia: has joined #ruby
[15:10:55] theery: has joined #ruby
[15:11:01] allcentury: has joined #ruby
[15:11:28] Trynemjoel: has joined #ruby
[15:14:23] freerobby: has joined #ruby
[15:14:53] theery: has joined #ruby
[15:16:49] allcentury: has joined #ruby
[15:16:58] Trynemjoel: has joined #ruby
[15:17:38] andersoldahl: has joined #ruby
[15:20:02] leat1: has joined #ruby
[15:21:33] gwendall: has joined #ruby
[15:22:43] simplyianm: has joined #ruby
[15:23:29] Trynemjoel: has joined #ruby
[15:23:36] juanpablo_______: has joined #ruby
[15:29:00] Trynemjoel: has joined #ruby
[15:29:04] lkba: has joined #ruby
[15:29:34] j4cknewt: has joined #ruby
[15:32:25] NeverDie: has joined #ruby
[15:32:29] bruno-: has joined #ruby
[15:37:00] Trynemjoel: has joined #ruby
[15:38:23] diegoviola: has joined #ruby
[15:39:46] twistedpixels: has joined #ruby
[15:40:29] jonee: has joined #ruby
[15:41:33] FernandoBasso: has joined #ruby
[15:43:01] Trynemjoel: has joined #ruby
[15:44:14] airchat4: has joined #ruby
[15:44:14] christiandsg: has joined #ruby
[15:44:17] airchat4: has left #ruby: ()
[15:45:43] Channel6: has joined #ruby
[15:47:28] ttilley: has joined #ruby
[15:48:32] Trynemjoel: has joined #ruby
[15:50:08] leesharma: has joined #ruby
[15:52:26] Kalov: has joined #ruby
[15:53:03] allcentury: has joined #ruby
[15:53:55] eggoez: has joined #ruby
[15:54:20] lannonbr: has joined #ruby
[15:55:13] fantazo: has joined #ruby
[15:55:20] diegoviola: how does capybara compares to cucumber? I'm familiar with capybara but I have no clue about cucumber
[15:55:44] pontiki: they are different things
[15:55:47] diegoviola: "Cucumber is a tool to write human-readable tests that are mapped into code"
[15:55:50] diegoviola: that's vague
[15:55:56] pontiki: cucumber can use capybara the same way rspec can
[15:56:07] mistermocha: has joined #ruby
[15:56:18] troulouliou_dev: has joined #ruby
[15:56:31] ivanskie: has joined #ruby
[15:56:38] hololeap: has joined #ruby
[15:56:47] blue_deref: has joined #ruby
[15:57:12] pontiki: cucumber uses the language Gherkin, which in turn requires you to write a bunch of matching regexps and then ruby code to actually perform the tests
[15:58:15] christia1: has joined #ruby
[15:59:02] Trynemjoel: has joined #ruby
[16:04:33] Trynemjoel: has joined #ruby
[16:05:34] diegoviola: pontiki: ok thanks
[16:07:47] bnizzle: has left #ruby: ()
[16:08:16] christiandsg: has joined #ruby
[16:09:06] ttilley: has joined #ruby
[16:09:38] skade: has joined #ruby
[16:11:04] Trynemjoel: has joined #ruby
[16:14:40] freerobby: has joined #ruby
[16:14:57] bizportal: has joined #ruby
[16:15:34] Mia: has joined #ruby
[16:15:34] Mia: has joined #ruby
[16:18:06] chipotle: has joined #ruby
[16:19:15] casadei_: has joined #ruby
[16:19:57] Jester13: has joined #ruby
[16:20:02] mleung: has joined #ruby
[16:20:24] RegulationD: has joined #ruby
[16:21:05] Trynemjoel: has joined #ruby
[16:21:54] ttilley: has joined #ruby
[16:22:25] FernandoBasso: has joined #ruby
[16:23:10] Pupeno: has joined #ruby
[16:23:12] christiandsg: has joined #ruby
[16:25:39] leesharma: has joined #ruby
[16:25:54] Mia: has joined #ruby
[16:25:54] Mia: has joined #ruby
[16:26:35] Trynemjoel: has joined #ruby
[16:27:18] ruby-lang476: has joined #ruby
[16:27:55] gwendall: has joined #ruby
[16:28:23] shevy: does anyone happen to make good use of include Singleton?
[16:29:28] ndrei: has joined #ruby
[16:32:05] davedev24: has joined #ruby
[16:32:15] aryaching: has joined #ruby
[16:32:37] mleung: has joined #ruby
[16:35:39] saddad: has joined #ruby
[16:36:06] Trynemjoel: has joined #ruby
[16:37:12] Rinzlit: Ruby can be used to replace PHP in websites right?
[16:37:14] tubuliferous: has joined #ruby
[16:37:19] Rinzlit: Or rather Ruby On Rails
[16:37:59] domgetter: has joined #ruby
[16:38:18] geefolk: has joined #ruby
[16:38:32] michael_mbp: has joined #ruby
[16:39:04] [k-_: well, yes and no
[16:39:14] shevy: Rinzlit you can use good old .cgi script just fine
[16:39:26] Rinzlit: .cgi scripts?
[16:39:35] [k-_: dont go there
[16:39:43] shevy: yeah just like .php; with cgi-error you get the errors displayed too just as in php
[16:39:46] geefolk: has joined #ruby
[16:40:08] Rinzlit: -confused-
[16:40:15] cscheib: ignore that
[16:40:35] cscheib: I mean, sure, you can run just about anything as CGI
[16:41:01] christia1: has joined #ruby
[16:41:08] cscheib: but... rails or sinatra is what lots (most?) use to make ruby webapps
[16:41:10] Rinzlit: Ermm whats the RoR's channel?
[16:41:23] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[16:41:54] havenwood: Rinzlit: Here's a bit on CGI and Ruby that you might glean something from: http://www.mikeperham.com/2015/01/05/cgi-rubys-bare-metal/
[16:42:18] symm-: has joined #ruby
[16:42:26] havenwood: Rinzlit: See also: https://github.com/migrs/rack-server-pages
[16:43:16] stamina: has joined #ruby
[16:43:23] jonee: has joined #ruby
[16:43:45] havenwood: Rinzlit: TL;DR: "CGI certainly isn???t the right solution for every problem: each request starts a new Ruby process so there???s a small bit of overhead but for systems which expect little traffic but require maximum reliability, it???s something worth considering."
[16:44:14] jimms: has joined #ruby
[16:44:23] shevy: another cgi dude! \o/ \o/ \o~
[16:44:45] havenwood: Rinzlit: The typical Ruby way is to make a Rack app, usually using a Rack adapter like Rails, Sinatra, Roda or Lotus, etc.
[16:45:12] shevy: havenwood I notice you are much more coherent... that means you must have had at least one coffee already!
[16:45:22] havenwood: shevy: I think I'm on cup five!
[16:45:55] pontiki: ENOTENOUGHCOFFEEE
[16:46:36] Trynemjoel: has joined #ruby
[16:50:52] senayar: has joined #ruby
[16:50:52] senayar: has joined #ruby
[16:50:56] arup_r: shevy, I am done with PhP :/\:
[16:51:10] shevy: arup_r forever - or until the next assignment :)
[16:51:50] shevy: havenwood, for some reason, whenever I see a picture such as this one here http://i.imgur.com/h1W5V8W.jpg it reminds me of you and I don't know why!
[16:51:52] arup_r: no idea..... :(
[16:52:36] [H]unt3r: has joined #ruby
[16:53:34] shevy: well perhaps it's a good trend. more porting going on towards ruby, rather than in the back direction towards php
[16:53:58] quimrstorres: has joined #ruby
[16:59:07] Trynemjoel: has joined #ruby
[17:01:08] chinmay_dd: has joined #ruby
[17:02:44] nateberkopec: has joined #ruby
[17:03:28] shevy: manual requires ...
[17:03:32] shevy: I need to find a better way
[17:03:51] saddad: has joined #ruby
[17:04:28] shevy: interesting... rack uses predominantly autoload()
[17:05:06] quimrstorres: has joined #ruby
[17:05:47] jbw: has joined #ruby
[17:06:13] k3asd`: has joined #ruby
[17:06:33] ytti: swift isn't bad at all
[17:06:56] ytti: been writing some code yesterday and today (Swift2) and so far it does not annoy me
[17:07:10] ytti: not that it really seems to bring anything dramatic to the table
[17:07:57] shevy: but the name implies how agile it is!
[17:08:09] Trynemjoel: has joined #ruby
[17:11:38] jesseherrick: has joined #ruby
[17:11:46] [k-_: because obj-c is a pain in the butt
[17:11:55] ytti: curious to see how the linux port will turn out
[17:12:08] ytti: swift seems very painless to rubyist
[17:12:21] juanpablo_______: has joined #ruby
[17:12:58] ytti: otoh i'm not sure if you can do serious iOS development with it
[17:13:05] Fire-Dragon-DoL: has joined #ruby
[17:13:06] ytti: as probably not many swift libraries out there
[17:13:16] adaedra: you can use any Obj-C library, so it's ok
[17:13:17] ytti: but i guess you can still use obj-c libraries with some header file
[17:13:33] ytti: can you use c libraries?
[17:13:42] ytti: i'm hankering for functional iOS SSH client
[17:13:48] adaedra: Swift has been made to be fully usable with obj-c, in both ways
[17:13:54] ytti: and if/when openssh guys release libopenssh, that might be it
[17:14:20] jonee: has joined #ruby
[17:14:23] adaedra: there's already a libssh
[17:14:53] Zai00: has joined #ruby
[17:15:27] mleung: has joined #ruby
[17:16:43] miah: i've been told that this is among the best ios ssh clients; https://panic.com/prompt/
[17:16:56] miah: i wont store private keys on my idevice though =)
[17:16:57] swgillespie: has joined #ruby
[17:17:23] skade: has joined #ruby
[17:19:38] Musashi007: has joined #ruby
[17:22:40] Trynemjoel: has joined #ruby
[17:24:13] ruurd: has joined #ruby
[17:26:34] Pupeno: has joined #ruby
[17:26:34] Pupeno: has joined #ruby
[17:27:15] DLSteve: has joined #ruby
[17:28:25] decaff: has joined #ruby
[17:29:16] zacstewart: has joined #ruby
[17:29:41] Trynemjoel: has joined #ruby
[17:29:44] lampd1: has joined #ruby
[17:30:06] houhoulis: has joined #ruby
[17:30:32] freerobby: has joined #ruby
[17:34:53] zacstewart: has joined #ruby
[17:35:46] bmurt: has joined #ruby
[17:36:13] RegulationD: has joined #ruby
[17:37:06] Vile`: has joined #ruby
[17:37:42] Trynemjoel: has joined #ruby
[17:40:21] jonee: has joined #ruby
[17:41:09] decaff: has joined #ruby
[17:41:48] hahuang61: has joined #ruby
[17:42:36] mices: has joined #ruby
[17:42:46] mices: what's the rails channel please i'm sorry i forgot
[17:43:02] [k-_: #rubyonrails
[17:43:03] mices: i thought it was rubyrails
[17:43:07] perturbation: has joined #ruby
[17:43:09] mices: ok thanks
[17:43:16] [k-_: your welcome :3
[17:44:11] Scripore: has joined #ruby
[17:44:35] RobertBirnie: has joined #ruby
[17:45:20] ynroot: has joined #ruby
[17:45:24] adaedra: I think it's "you're"
[17:49:01] Gadgetoid: has left #ruby: ()
[17:49:14] spider-mario: has joined #ruby
[17:49:52] BTRE: has joined #ruby
[17:49:59] ruurd: if it's its it's its if it's it's it's it is
[17:50:05] EminenceHC: has joined #ruby
[17:50:11] casadei_: has joined #ruby
[17:50:14] simplyianm: has joined #ruby
[17:51:09] shevy: even the french auto-correct poor [k- now
[17:51:15] leesharma: has joined #ruby
[17:54:43] Trynemjoel: has joined #ruby
[17:55:37] hahuang61: has joined #ruby
[17:56:08] devdazed: has joined #ruby
[17:57:26] adaedra: ruurd: now say that 5 times faster
[18:00:44] RobertBirnie: has joined #ruby
[18:02:33] dgutierrez1287: has joined #ruby
[18:02:51] abdulrehman: has joined #ruby
[18:03:33] Scriptonaut: Hey guys, from ruby I'd like to spawn a shell session, but I'd like it to remain open. I want to be able to call things like, 'cd ~' from the shell, and then have the working directory actually change, so then if I later call 'ls', it will show that I'm in ~. How can I do this? When I use %x or system, it doesn't preserve anything
[18:03:56] Scriptonaut: and I'd like to get the output of the shell
[18:04:36] bmurt: has joined #ruby
[18:04:52] riotjones: has joined #ruby
[18:05:10] lxsameer: has joined #ruby
[18:05:10] lxsameer: has joined #ruby
[18:05:20] skade: has joined #ruby
[18:06:45] quimrstorres: has joined #ruby
[18:07:24] abdulrehman: has joined #ruby
[18:07:26] drewo: has joined #ruby
[18:08:28] [k-_: Scriptonaut: http://tech.natemurray.com/2007/03/ruby-shell-commands.html
[18:10:29] Scriptonaut: [k-_: none of these preserve state though
[18:10:32] shevy: Scriptonaut perhaps via popen
[18:10:32] [k-_: theres also this: http://ruby-doc.org/stdlib-2.2.1/libdoc/shell/rdoc/Shell.html
[18:10:39] edwinvdgraaf: has joined #ruby
[18:10:49] seduce: has joined #ruby
[18:11:47] BTRE: has joined #ruby
[18:12:00] Scriptonaut: maybe you guys can suggest a better way to do what I want. I want to be able to navigate and control a remote server via my irc bot
[18:12:05] Scriptonaut: so users can do: .cd ~
[18:12:11] Scriptonaut: then .pwd, and it will print ~
[18:12:12] Scripore: has joined #ruby
[18:12:17] senayar: has joined #ruby
[18:12:49] bigmac: has joined #ruby
[18:12:51] [k-_: Dir.chdir?
[18:13:28] blue_deref: has joined #ruby
[18:13:30] Scriptonaut: seems like a roundabout way, is there no way to spawn a shell and then put input into STDIN?
[18:14:15] al2o3-cr: that sounds dangerous!
[18:14:32] Scriptonaut: ya, I'm only doing it with a few trusted individuals
[18:14:37] [k-_: yes it does
[18:14:37] mjuszczak: has joined #ruby
[18:14:44] Scriptonaut: I wouldn't spawn that bot in here :P
[18:14:44] [k-_: it sounds very dangerous
[18:14:52] [k-_: also, state is bad
[18:15:10] Scriptonaut: I have essentially zero state besides my database on this project, but I need it for this
[18:15:10] [k-_: it ruins lives!
[18:15:37] [k-_: cd ~ && pwd?
[18:15:47] Scriptonaut: yes, I want to be able to do that
[18:15:53] Scriptonaut: I want to be able to do all commands
[18:15:54] Scriptonaut: including sudo
[18:16:05] leesharma: has joined #ruby
[18:16:09] Scriptonaut: I just wanna feed all input prepending with a . to the server's shell
[18:16:30] baweaver: has joined #ruby
[18:18:31] zacstewart: has joined #ruby
[18:19:31] swgillespie: has joined #ruby
[18:20:18] Scriptonaut: I wonder if I could take user input and Shell.send(their_text.to_sym)
[18:20:30] terlar: has joined #ruby
[18:21:45] Trynemjoel: has joined #ruby
[18:22:31] terlar: has joined #ruby
[18:23:58] edwinvdg_: has joined #ruby
[18:24:38] khebbie: has joined #ruby
[18:25:24] tubuliferous: has joined #ruby
[18:26:49] CloCkWeRX: has joined #ruby
[18:28:08] juanpablo_______: has joined #ruby
[18:29:33] allcentury: has joined #ruby
[18:29:40] freerobby: has joined #ruby
[18:30:04] rehat: has joined #ruby
[18:30:16] Trynemjoel: has joined #ruby
[18:30:38] daynaskully: has joined #ruby
[18:31:07] leat2: has joined #ruby
[18:31:19] CloCkWeRX: has left #ruby: ()
[18:31:35] sedduc: has joined #ruby
[18:32:38] rehat: anyone familiar with Nokigiri? I'm trying to get an html element before a specific text but not sure how to parse element
[18:32:51] sedduc: which is the best place to learn ruby ?
[18:33:10] ljarvis: rehat could you be more specific?
[18:33:20] abdulrehman: has joined #ruby
[18:33:33] baweaver: sedduc: what have you found so far?
[18:34:05] Janno: has joined #ruby
[18:34:20] sedduc: code acedmy
[18:34:30] sedduc: ruby monk
[18:34:42] sedduc: ayn more needed/
[18:35:05] ruboto: I don't know anything about books
[18:35:15] dh64: has joined #ruby
[18:35:35] baweaver: ljarvis: how does one define commands on that again?
[18:36:28] ljarvis: you need to be an op
[18:36:33] rehat: ljarvis: https://gist.github.com/rehat/5a0f4fbb22a79d3e6c1e
[18:36:33] baweaver: Eloquent Ruby and Practical Object Oriented Design in Ruby are probably the two that should be gone through
[18:36:46] BTRE: has joined #ruby
[18:36:49] dymk: Has anyone ever passed an activerecord postgresql connection off to a native extension and lived to tell the tale?
[18:36:51] baweaver: ljarvis: I'll save the cheeky question follow up to that then
[18:36:55] nofxx: has joined #ruby
[18:37:13] rehat: ljarvis: not sure how to select a specific <b> element with parser.css
[18:37:21] dymk: I'd like to do some custom stuff on top of postgres... but not handle all the things like authenticating with the db, i'd like to leave that up to rails
[18:37:22] baweaver: Might be safer to ask on RubyOnRails for that dymk
[18:37:34] dymk: mm thanks baweaver
[18:39:05] CustosLimen: has joined #ruby
[18:39:23] Inside: has joined #ruby
[18:39:24] Inside: has joined #ruby
[18:39:37] godofecht: has joined #ruby
[18:39:55] ljarvis: rehat: that's some unfortunate html
[18:39:57] godofecht: http://codepad.org/Ao4ckKnO
[18:40:05] godofecht: can anybody tell me why I'm getting a syntax error on line 11?
[18:40:10] godofecht: says that there is an unexpected end
[18:40:23] ljarvis: godofecht: because that 'end' closes the 'if' and not the 'for'
[18:40:34] ljarvis: you need an end after if
[18:40:43] treybul: has joined #ruby
[18:40:44] ljarvis: or use a postfix if
[18:41:01] leat2: has joined #ruby
[18:41:06] [k-_: i dont even know how to use for
[18:41:28] al2o3-cr: godofecht: count++ is invalid should be count += 1
[18:41:30] treybul: hi - simple query i think. In rspec how do I check if array size has increased by 1 element?
[18:41:51] godofecht: Using postfix if doesn't solve the issue
[18:41:58] leesharma: has joined #ruby
[18:42:11] baweaver: treybul: are you passing it in?
[18:42:22] ljarvis: godofecht: yes it does, otherwise you have something else wrong
[18:42:25] leafybasil: has joined #ruby
[18:42:31] godofecht: okay, problem fixed
[18:42:47] godofecht: so unary operators don't work here?
[18:42:48] treybul: passing it in?
[18:42:52] baweaver: because if you have it in a variable that you're passing in, there's a very simple solution involving size and plus one
[18:42:55] godofecht: my count++ was the problem
[18:43:04] al2o3-cr: godofecht: and null
[18:43:07] [k-_: you should use n-1.times do |i| ... end
[18:43:16] treybul: I don't have the size of the array stored in a variable
[18:43:33] baweaver: >> [1,2,3].size # who says you need to?
[18:43:34] ruboto: baweaver # => 3 (https://eval.in/410157)
[18:43:34] [k-_: split defaults to ' '
[18:43:58] [k-_: you do not need to explicitly do split(' '), you can just call split or split()
[18:44:03] baweaver: though a method that mutates an array is spooky
[18:44:38] treybul: I think i could use this code if i had a arr_size variable that stored size of array: "expect { subject.arr }.to change{subject.arr_size}.by(1)" - but how can i do it without that variable?
[18:45:03] yfeldblum: has joined #ruby
[18:45:09] ljarvis: rehat: here you go, you need to use xpath: https://gist.github.com/leejarvis/9d9303fa8d2df4365498
[18:45:09] baweaver: you're thinking about it oddly.
[18:45:40] baweaver: subject.arr; expect(subject.arr.size).to eq(5)
[18:45:55] godofecht: <[k-_> how would I go about converting all the split variables into integers?
[18:46:02] ljarvis: treybul: expect { code }.to change { arr.size }.by(1)
[18:46:17] baweaver: >> '1 2 3 4 5'.split.map(&:to_i)
[18:46:18] ruboto: baweaver # => [1, 2, 3, 4, 5] (https://eval.in/410158)
[18:46:33] treybul: thanks ljarvis - let me try it
[18:46:37] [k-_: >> '1 2 3 4 5'.split
[18:46:38] ruboto: [k-_ # => ["1", "2", "3", "4", "5"] (https://eval.in/410159)
[18:46:40] rehat: ljarvis: ahh thanks dude, I will look into that
[18:46:56] [k-_: one step at a time!
[18:47:23] ljarvis: rehat: no worries, this is some pretty bad html so it'll be a pain to parse but most things are possible in xpath
[18:49:09] ellisTAA: has joined #ruby
[18:51:16] leat2: has joined #ruby
[18:51:23] michaeldeol: has joined #ruby
[18:52:17] Trynemjoel: has joined #ruby
[18:52:41] saddad: has joined #ruby
[18:53:00] treybul: that code works ljarvis
[18:53:11] radgeRayden: has joined #ruby
[18:53:24] _whitelogger: has joined #ruby
[18:53:55] treybul: im wondering if i can modify the code so that I don't get an error if the initial arr size is 0
[18:53:56] leesharma: has joined #ruby
[18:54:09] ljarvis: why do you get an error?
[18:54:33] symm-: has joined #ruby
[18:54:41] treybul: if the array is set to arr =[] and i try to delete an element i will get an error
[18:55:07] treybul: just want rspec to cover that possibility
[18:55:11] devyn: has joined #ruby
[18:55:17] ljarvis: if there's no element in the array and the spec covers deleting an element then the spec shouldn't run for an empty array
[18:55:55] zacstewart: has joined #ruby
[18:56:27] ljarvis: might be worth sharing your spec for us to be able to help more though
[18:56:40] treybul: No i think i understand
[18:57:16] al2o3-cr: >> $; = ''; '12345'.split
[18:57:17] ruboto: al2o3-cr # => ["1", "2", "3", "4", "5"] (https://eval.in/410160)
[18:58:45] jackjackdripper: has joined #ruby
[18:59:59] godofecht: what exactly would (array ||= []).push(1) do
[19:00:04] lkba: has joined #ruby
[19:00:32] j4cknewt: has joined #ruby
[19:00:38] al2o3-cr: >> (array ||= []).push(1)
[19:00:39] ljarvis: godofecht: it would set array to an empty array if array is nil or false and then push 1 into the array
[19:00:39] ruboto: al2o3-cr # => [1] (https://eval.in/410161)
[19:00:47] Trynemjoel: has joined #ruby
[19:00:58] godofecht: if array wasn't already nil, would it just go ahead and push?
[19:01:29] NeverDie: has joined #ruby
[19:04:46] bufferloss: has joined #ruby
[19:04:50] theery: has joined #ruby
[19:05:40] rehat: ljarvis: I got my scraper to work with your snippet, now I am trying to understand the meat inside that .at() I'm also new to ruby and reading docs for it. This is all I found on XPath http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/XPath where can I get more info on how it works? Like the text(), contains(), and following::b? :)
[19:05:57] davedev24: has joined #ruby
[19:07:25] ljarvis: rehat: here https://developer.mozilla.org/en-US/docs/Web/XPath
[19:07:27] jonee: has joined #ruby
[19:07:51] rehat: ljarvis: sweet thanks man
[19:07:52] ljarvis: rehat: beware that xpath is a bit of a beast so unless you fully intend on digging right into it, I would recommend just skimming that document
[19:08:12] rehat: will do thanks
[19:08:27] ljarvis: yorickpeterse: yo
[19:08:44] havenwood: has joined #ruby
[19:10:07] al2o3-cr: rehat: you could use this: doc.at('div.productdetails').children[9].text.strip
[19:11:00] al2o3-cr: it that snippet, anyway
[19:11:04] ytti: adaedra, libssh is LGPL and as such can't be used in appstore software
[19:11:10] ytti: adaedra, libssh2 can be used, but it's legacy crap
[19:13:01] reprazent: has joined #ruby
[19:13:11] ljarvis: al2o3-cr: but.. why
[19:14:18] Trynemjoel: has joined #ruby
[19:14:51] prestorium: has joined #ruby
[19:15:02] Asher: has joined #ruby
[19:15:21] shevy: it has many children [k-_
[19:15:39] calleerlandsson: has joined #ruby
[19:15:48] rodfersou: has joined #ruby
[19:16:13] al2o3-cr: ljarvis: no reason
[19:16:58] [k-_: just like you, shevy
[19:17:27] al2o3-cr: really just see how nokogiri stores the html could of used elements[4]
[19:17:36] s00pcan: has joined #ruby
[19:18:45] christiandsg: has joined #ruby
[19:18:57] olistik: has joined #ruby
[19:18:59] al2o3-cr: just to see how the document object model works
[19:19:03] al2o3-cr: ACTION hides
[19:19:07] leesharma: has joined #ruby
[19:19:11] sankaber: has joined #ruby
[19:19:18] shevy: the beautiful XML
[19:21:15] cashnguns: has joined #ruby
[19:21:16] davedev24: has joined #ruby
[19:21:24] ruurd: has joined #ruby
[19:22:45] codecop: has joined #ruby
[19:23:34] eggoez: has joined #ruby
[19:24:02] mjuszczak: has joined #ruby
[19:25:09] reprazent: has joined #ruby
[19:26:12] _blizzy_: has joined #ruby
[19:28:49] Trynemjoel: has joined #ruby
[19:34:10] Westerbly_: has joined #ruby
[19:36:08] OrbitalKitten: has joined #ruby
[19:36:37] zacstewart: has joined #ruby
[19:37:05] dfockler: has joined #ruby
[19:41:20] Trynemjoel: has joined #ruby
[19:41:54] adaedra: ytti: oh, didn't know that
[19:46:47] imperator: has joined #ruby
[19:47:50] Trynemjoel: has joined #ruby
[19:47:51] djbkd_: has joined #ruby
[19:48:22] ytti: adaedra, that's the reason you can't use EC crypto in any ios ssh clients
[19:48:28] ytti: adaedra, or even large RSA keys
[19:48:36] Blaguvest: has joined #ruby
[19:49:39] adaedra: I don't use iOS ssh client
[19:49:49] adaedra: I need more than 40x15
[19:50:08] adaedra: but ok, that explains it
[19:50:19] ytti: you can get hella small lot of letters on iOS screen
[19:50:38] adaedra: and typing is far from practical
[19:51:02] allcentury: has joined #ruby
[19:51:02] dseitz: has joined #ruby
[19:51:59] saddad: has joined #ruby
[19:52:04] The_Phoenix: has joined #ruby
[19:53:25] j4cknewt: has joined #ruby
[19:53:50] leesharma: has joined #ruby
[19:54:27] christiandsg: has joined #ruby
[19:55:16] senayar: has joined #ruby
[19:58:07] shevy: hmm I guess in the coming days, I shall need some pointers in how to make two classes faster
[19:58:41] jonee: has joined #ruby
[19:59:05] Musashi007: has joined #ruby
[20:01:30] eggoez: has joined #ruby
[20:01:47] imperator: hm, seems ConvertTo-Json is generating some hidden token somewhere
[20:01:55] imperator: can't get JSON.parse to parse its output
[20:01:57] fantazo: has joined #ruby
[20:02:17] imperator: {"Id":4184,"ProcessName":"powershell","Handles":539} - looks perfectly valid to me
[20:03:25] ledestin: has joined #ruby
[20:03:59] k3asd`: has joined #ruby
[20:04:09] swgillespie: has joined #ruby
[20:04:39] al2o3-cr: >> require 'json'; {"Id":4184,"ProcessName":"powershell","Handles":539}.to_json
[20:04:40] ruboto: al2o3-cr # => "{\"Id\":4184,\"ProcessName\":\"powershell\",\"Handles\":539}" (https://eval.in/410179)
[20:04:57] gwendall: has joined #ruby
[20:05:36] quimrstorres: has joined #ruby
[20:06:11] imperator: al2o3-cr, i'm actually sending the output to a file, and what i get is: JSON::ParserError: 757: unexpected token at 'test.json'
[20:06:41] ruboto: We can't help you without your code, please post it to https://gist.github.com
[20:07:32] imperator: https://gist.github.com/djberg96/a266fbe1b26e71684838
[20:07:46] skade: has joined #ruby
[20:07:53] imperator: tried with and without -Compress, with and without -Encoding
[20:08:07] al2o3-cr: is that powershell?
[20:08:08] OrbitalKitten: has joined #ruby
[20:09:17] al2o3-cr: can you paste the test.json file?
[20:09:31] rehat: has joined #ruby
[20:09:39] rickmasta: has joined #ruby
[20:09:50] imperator: al2o3-cr, it's what i pasted earlier
[20:09:53] imperator: just that one line
[20:10:16] dagda1: has joined #ruby
[20:10:34] christiandsg: has joined #ruby
[20:11:21] Inside: has joined #ruby
[20:11:21] Inside: has joined #ruby
[20:11:23] [k-_: ruby handles it fine as seen here
[20:11:37] al2o3-cr: imperator: try opening the file
[20:11:44] imperator: i'm seeing some junk when looking at a hex editor
[20:12:50] imperator: some kind of custom tag its inserting? dunno
[20:13:26] al2o3-cr: imperator: JSON.parse(File.read('test.json'))
[20:14:17] bronson: has joined #ruby
[20:15:49] imperator: al2o3-cr, nope, tried that, as well as explicit binary and text mode
[20:16:09] ynroot: has joined #ruby
[20:16:46] imperator: (on a side note, hexed.it is pretty cool)
[20:16:54] juanpablo_______: has joined #ruby
[20:18:27] imperator: al2o3-cr, i added a comment to https://gist.github.com/djberg96/a266fbe1b26e71684838
[20:19:02] al2o3-cr: imperator: why you opening it in binary?
[20:19:18] imperator: al2o3-cr, tried it both ways just to see
[20:19:36] al2o3-cr: so test.json contains this -> {"Id":4184,"ProcessName":"powershell","Handles":539}
[20:19:45] EminenceHC: has joined #ruby
[20:20:12] imperator: intertubes are telling me it's a BOM
[20:21:26] dc: has joined #ruby
[20:22:11] hololeap: has joined #ruby
[20:22:45] hahuang61: has joined #ruby
[20:24:25] khebbie: has joined #ruby
[20:26:41] al2o3-cr: imperator: just been searching try this: JSON.parse(File.read('test.json', :encoding => 'bom|utf-8'))
[20:26:41] saddad: has joined #ruby
[20:27:08] T3: has joined #ruby
[20:27:27] imperator: al2o3-cr, yep, just came across the same - works!
[20:28:00] mleung: has joined #ruby
[20:28:52] havenwood: has joined #ruby
[20:29:29] dgutierrez1287: has joined #ruby
[20:30:07] ruurd: has joined #ruby
[20:30:39] imperator: what a pain
[20:31:24] hahuang61: has joined #ruby
[20:31:51] al2o3-cr: never came across this before
[20:32:44] imperator: me neither, fairly new to powershell
[20:32:49] jester13_: has joined #ruby
[20:32:50] Yzguy: has joined #ruby
[20:33:13] texasmade: has joined #ruby
[20:33:58] gamename: has joined #ruby
[20:34:19] xxneolithicxx: has joined #ruby
[20:35:09] senayar: has joined #ruby
[20:35:26] willywos: has joined #ruby
[20:35:47] Soda: has joined #ruby
[20:36:24] al2o3-cr: ah, you learn something new everyday :)
[20:36:26] bb010g: has joined #ruby
[20:36:54] Trynemjoel: has joined #ruby
[20:37:06] devdazed: has joined #ruby
[20:38:09] allcentury: has joined #ruby
[20:40:22] ellisTAA: has joined #ruby
[20:40:46] arup_r: al2o3-cr + h2So4 ?
[20:41:47] arup_r: But your idea of picking the nickname from Chemistry is innovative.. al2o3-cr
[20:46:41] exadeci: has joined #ruby
[20:47:09] marr: has joined #ruby
[20:49:30] OrbitalKitten: has joined #ruby
[20:50:30] Limix: has joined #ruby
[20:51:11] Ox0dea: That makes three people I know of whose handles were directly inspired by Ruby: al2o3-cr here, and /u/Enumerably_any and /u/0x7262.
[20:51:18] Ox0dea: I suspect there are many more.
[20:51:25] Trynemjoel: has joined #ruby
[20:51:33] al2o3-cr: it was gonna be al2o3::cr but freenode said that errenous :(
[20:51:44] Ox0dea: I know that feeling well. :/
[20:52:25] adaedra: I wanted a nick with no meaning but learned afterwards that it was not the case.
[20:52:29] RegulationD: has joined #ruby
[20:52:45] Guest17350: has joined #ruby
[20:52:58] Ox0dea: Your nick makes me think of Daedric armor.
[20:53:27] gwendall: has joined #ruby
[20:54:04] Nahra: has joined #ruby
[20:55:08] Scripore: has joined #ruby
[20:56:11] josh: has joined #ruby
[20:56:24] charliesome: has joined #ruby
[20:58:45] jtdoncas: has joined #ruby
[20:59:26] Trynemjoel: has joined #ruby
[20:59:33] OrbitalKitten: has joined #ruby
[20:59:36] jimms: has joined #ruby
[20:59:46] kadoppe: has joined #ruby
[21:00:24] monoprotic: has joined #ruby
[21:05:36] bazbing82: has joined #ruby
[21:05:48] shinnya: has joined #ruby
[21:07:26] Trynemjoel: has joined #ruby
[21:07:53] bazbing82: do classes have before_hooks like in rails? So a method can be called before a method in the same instance method gets called? If so, is it possible to do something like this? https://gist.github.com/anonymous/0e57694b1da4334438a1
[21:09:06] Annie: has joined #ruby
[21:11:24] Ox0dea: bazbing82: Do you actually increment your nick every time you join IRC?
[21:12:06] bazbing82: Ox0dea nah I've automated irssi to identify automatically and I think something's gone wrong xD
[21:12:57] Trynemjoel: has joined #ruby
[21:14:05] adaedra: it's ok, Ox0deb
[21:14:49] bazbing82: silly adaedrb
[21:15:26] adaedra: it looks german now
[21:15:39] adaedra: mmh no, still to many vowels
[21:16:12] hahuang61: has joined #ruby
[21:16:23] Ox0dea: bazbing82: Module#prepend seems to be the thing you're looking for.
[21:16:53] monoprotic: has joined #ruby
[21:17:40] sankaber: has joined #ruby
[21:18:00] monoprotic: has joined #ruby
[21:18:17] OrbitalKitten: has joined #ruby
[21:19:39] Ox0dea: >> module Add40; def + other; super - -40 end end; Fixnum.prepend Add40; 1 + 1 # bazbing82
[21:19:40] ruboto: Ox0dea # => 42 (https://eval.in/410241)
[21:20:27] Ox0dea: Interceptor (https://github.com/jamesmoriarty/interceptor) provides a pretty intuitive interface to such machinations.
[21:21:12] Anne: has joined #ruby
[21:21:26] bazbing82: x0dea that's amazing! hat off to Ruby...and yourself thanks
[21:21:38] Anne: has joined #ruby
[21:22:18] monoprotic: has joined #ruby
[21:22:25] Ox0dea: Yay, Ruby!
[21:22:30] Ox0dea: >> @Ruby.to_i <3
[21:22:31] ruboto: Ox0dea # => true (https://eval.in/410245)
[21:22:36] monoprotic: has joined #ruby
[21:22:57] quimrstorres: has joined #ruby
[21:22:59] Ox0dea: Translation: "Ruby, to me, is love."
[21:23:33] bazbing82: Ox0dea :P what, is that an easter egg??
[21:23:37] ohaibbq: has joined #ruby
[21:23:37] snath: has joined #ruby
[21:23:51] ivanskie: has joined #ruby
[21:24:02] bazbing82: ruby is love. ruby is life.
[21:24:07] bazbing82: (it was coming)
[21:24:15] Ox0dea: bazbing82: Nah, undefined instance variables are nil and #to_i coerces nil to 0.
[21:25:08] Ox0dea: Ruby does actually have a few easter eggs, though.
[21:25:32] bazbing82: Ox0dea: ohh I see. yeah, like what?
[21:25:52] Ox0dea: bazbing82: http://blog.turing.io/2015/02/09/rubys-support_joke-easter-eggs/
[21:25:54] theery: has joined #ruby
[21:26:17] Ox0dea: GOTO support and a Douglas Adams reference.
[21:27:52] casadei_: has joined #ruby
[21:28:05] leesharma: has joined #ruby
[21:29:15] bazbing82: Ox0dea: haha brilliant. maybe I should name my module DeepThought
[21:31:21] tejasmanohar: has joined #ruby
[21:33:34] dagda1: has joined #ruby
[21:35:29] Trynemjoel: has joined #ruby
[21:35:30] workmad3: has joined #ruby
[21:35:34] EminenceHC: has joined #ruby
[21:37:57] drewo: has joined #ruby
[21:38:33] quimrstorres: has joined #ruby
[21:40:09] theery: has joined #ruby
[21:41:05] [H]unt3r: has joined #ruby
[21:41:54] charliesome: has joined #ruby
[21:46:35] quimrstorres: has joined #ruby
[21:46:36] snath: has left #ruby: ("Leaving")
[21:47:24] Mia: has joined #ruby
[21:47:25] Mia: has joined #ruby
[21:47:56] dc: has joined #ruby
[21:50:21] j4cknewt: has joined #ruby
[21:50:58] zacstewart: has joined #ruby
[21:51:17] T3: has joined #ruby
[21:51:38] xxneolithicxx: has joined #ruby
[21:52:46] godofecht: how do I subtract every element of an array by 1
[21:52:51] shevy: Ox0dea lol at that ruboto output
[21:53:10] Ox0dea: godofecht: map(&:pred)
[21:53:25] godofecht: I've already got map(&:to_i)
[21:53:27] godofecht: how do i chain them
[21:53:37] Ox0dea: godofecht: map(&:to_i).map(&:pred)
[21:53:43] godofecht: thank you so much
[21:53:48] Ox0dea: Happy to help.
[21:54:47] monsieurp: godofecht: have you tried using pry?
[22:01:35] decoponio: has joined #ruby
[22:02:01] Trynemjoel: has joined #ruby
[22:03:30] godofecht: what's pry?
[22:04:22] ruboto: Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
[22:04:43] banister: ?binding_of_caller
[22:04:43] ruboto: I don't know anything about binding_of_caller
[22:05:06] andrewjanssen: has joined #ruby
[22:05:39] juanpablo_______: has joined #ruby
[22:05:46] Ox0dea: banister: Where does the @ magic happen?
[22:06:05] saddad: has joined #ruby
[22:07:10] Ox0dea: banister: Pry avoids "`@' without identifiers is not allowed as an instance variable name".
[22:07:55] banister: Ox0dea are you referring to the @ alias for the whereami command?
[22:08:59] Channel6: has joined #ruby
[22:09:01] vickleton: has joined #ruby
[22:09:34] hahuang61: has joined #ruby
[22:11:26] erichodges: has joined #ruby
[22:14:53] seventoes: has joined #ruby
[22:15:02] seventoes: has left #ruby: ()
[22:15:56] sarkyniin: has joined #ruby
[22:16:38] djbkd_: has joined #ruby
[22:18:24] xxneolithicxx: has joined #ruby
[22:18:38] Ox0dea: banister: I'm mostly just wondering how you went about avoiding the syntax error.
[22:18:50] banister: Ox0dea ah ok, well pry commands are not methods
[22:18:58] banister: basically we take input from the user
[22:19:08] banister: and look at it to determine if it's a 'command' first
[22:19:11] Ox0dea: Ah, yeah, I derped.
[22:19:21] banister: if it is, then we process it, otherwise, we assume it's ruby and use ruby to evaluate it
[22:19:40] Ox0dea: Yep, I rather naively assumed you were evaluating all input.
[22:19:56] banister: using commands instead gives us a few winds
[22:20:16] banister: it means we can provide a lot of functionality without having to inject a tonne of methods into Object
[22:20:34] banister: it also means we can provide our own syntax that can be more convenient that typical ruby method syntax
[22:20:37] Ox0dea: Makes perfect sense.
[22:20:48] banister: vs: ls '-l'
[22:21:26] tejasmanohar: im writing my first gem from scratch. it's an api wrapper. anyone know another really simple open-source api wrapper gem that i can refer to?
[22:21:43] Ox0dea: To be fair, `ls -l` isn't syntactically invalid, so you could've done some wacky things to make it evaluate as desired.
[22:21:47] tejasmanohar: like a pretty simple one rather than one like twilio-ruby w/ a lot of functionality
[22:22:00] Ox0dea: That's true for everything but @, I believe, which led me to the initial question.
[22:22:04] tejasmanohar: basically wrapping endpoints and parsing data back from them w/ ruby fn
[22:22:09] tejasmanohar: not even doing auth rn
[22:22:11] shevy: tejasmanohar just write!
[22:22:23] shevy: tejasmanohar is your gem already working as-is
[22:22:32] Trynemjoel: has joined #ruby
[22:22:37] tejasmanohar: it's non-existent as is :P shevy
[22:22:54] tejasmanohar: wanted to see another example, understand that one, then go forth
[22:23:10] shevy: finish the code first, then you are 99% towards the finished .gem
[22:23:47] tejasmanohar: write it then abstract it , ok :)
[22:24:04] baweaver: has joined #ruby
[22:24:07] Ox0dea: I disagree; abstractions first.
[22:24:08] tejasmanohar: but i mean i just thought it'd be good to look at how others write api wrappers first, trying to think of a really simple api to look at the api for
[22:24:13] shevy: it's easy to adjust or add to the gem lateron anyway
[22:24:17] tejasmanohar: to see how they lay it out and whatnot
[22:24:33] Ox0dea: tejasmanohar: Wrap the reddit API.
[22:24:52] tejasmanohar: Ox0dea: i already know what api i wanna wrap :) - just want to look at another wrapper first of a simple api
[22:24:57] tejasmanohar: i'll lok at reddit ruby wrapper one sec
[22:25:40] Ox0dea: tejasmanohar: There are several, but I don't believe any of them have been updated to use the new OAuth2 interface.
[22:25:53] tejasmanohar: no auth in the api i'm wrapping
[22:26:26] Ox0dea: tejasmanohar: How simple is it? JSON in, JSON out?
[22:26:34] tejasmanohar: only fetching
[22:26:47] tejasmanohar: all GETs for the parts i wanna wrap
[22:26:54] Vile`: has joined #ruby
[22:26:56] tejasmanohar: it's actually RSS feeds
[22:27:06] tejasmanohar: not JSON out that was a different one
[22:27:13] tejasmanohar: RSS feeds for this one
[22:27:32] Ox0dea: So... no out?
[22:28:05] Ox0dea: What do you intend to do with the RSS feeds you're fetching?
[22:28:06] bodgix: has joined #ruby
[22:28:11] tejasmanohar: http://www.airfarewatchdog.com/rss/?airport={IATA CODE}&direction={departure/arrival}
[22:28:17] simplyianm: has joined #ruby
[22:28:42] casadei_: has joined #ruby
[22:28:57] tejasmanohar: output IATA code + price Ox0dea
[22:28:59] Ox0dea: Sure, but then what do you want to do with the resultant data?
[22:29:07] Ox0dea: Oh, just... display it?
[22:29:35] tejasmanohar: yeah sure just return it really, multiple endpoints though not just that feed
[22:29:50] theery: has joined #ruby
[22:29:53] tejasmanohar: its quite easy to just write a function given IATA code + departure/arrival to go fetch and return that info for me
[22:29:57] tejasmanohar: but i want to write a gem ;)
[22:30:09] Ox0dea: That doesn't really fit under what is typically considered an API wrapper, for reference.
[22:30:17] tejasmanohar: i shouldn't have said that
[22:30:23] Agoldfish: has joined #ruby
[22:30:25] tejasmanohar: it's not like google maps api wrapper or reddit or anything like that
[22:30:46] tejasmanohar: doesn't have actions
[22:32:16] tejasmanohar: i was previously just going to write a module in lib/ folder of my rails app for airfarewatchdog w/ just a few functions like fetch_arrivals(iata_code), fetch_departures(iata_code)
[22:32:18] tejasmanohar: pretty straight-forward
[22:33:00] tejasmanohar: and just have some interaction w/ the feed using https://github.com/cardmagic/simple-rss and then returning a hash maybe
[22:33:12] Ox0dea: Seems reasonable enough.
[22:33:15] tejasmanohar: but was thinking if i make this a gem, how / if i should format this differently?
[22:33:19] tejasmanohar: i guess that's re-usable enough
[22:33:36] tejasmanohar: just thought it'd be good to see an example of a simple gem like this
[22:34:08] tejasmanohar: i.e. should each function make SimpleRSS#parse calls directly or should that be wrapped?
[22:34:10] ledestin: tejasmanohar I extract when I need it elsewhere usually
[22:34:30] tejasmanohar: ledestin: i mean airfarewatchdog rss client may be useful for others too :)
[22:34:37] tejasmanohar: or another of my apps
[22:34:40] Ox0dea: tejasmanohar: Wrap your dependencies: http://www.markphelps.me/2015/07/30/wrap-your-dependencies.html
[22:34:41] tejasmanohar: it's just a universal thing
[22:34:54] tejasmanohar: gotcha thats what i was asking about :)
[22:35:49] tejasmanohar: Ox0dea: but if i use RSS without the gem just with default ruby libraries is there any reason to wrap the dependency?
[22:36:10] Renich: has joined #ruby
[22:36:14] tejasmanohar: since this is an airfarewatchdog rss client, if airfarewatchdog removes rss then it's screwed anyways
[22:36:35] Ox0dea: tejasmanohar: Counting Ruby itself as a dependency seems rather odd. :P
[22:36:39] tejasmanohar: i should probably not use dependencies unless needed
[22:36:51] Ox0dea: Yes, that's generally wise.
[22:37:25] tejasmanohar: Ox0dea: moreover, the question is not whether to count ruby as a dependency but whether to make a open(url) do |rss| ... end call in each function of my api wrapper
[22:37:32] tejasmanohar: i guess it's fine :P
[22:37:45] tejasmanohar: feed = RSS::Parser.parse(rss) etc in every function
[22:38:05] tejasmanohar: or to wrap that as well, just like write a private function parse_rss() or something
[22:38:17] tejasmanohar: it's practically the same thing i suppose
[22:38:51] Ox0dea: tejasmanohar: Does a single call return all the data you're interested in?
[22:39:16] leafybas_: has joined #ruby
[22:40:02] ohaibbq: has joined #ruby
[22:40:02] zacstewart: has joined #ruby
[22:40:11] tejasmanohar: Ox0dea: https://gist.github.com/tejasmanohar/52ae8962e806421ff0c2
[22:40:32] tejasmanohar: posted code + question there :P
[22:40:36] leafybasil: has joined #ruby
[22:40:46] duderonomy: Does "wrap" in this context infer "abstraction layer"?
[22:41:13] simplyianm: has joined #ruby
[22:41:29] tejasmanohar: duderonomy: i suppose so
[22:41:37] Ox0dea: tejasmanohar: You might consider caching the first call, such that subsequent requests can avoid hitting the network.
[22:41:57] tejasmanohar: Ox0dea: in my application or in the gem?
[22:42:04] rehat: has joined #ruby
[22:42:10] Ox0dea: That's your prerogative, really.
[22:42:13] tejasmanohar: i'd think that wouldn't be the responsibility of the wrapper gem but my actual app :P
[22:42:25] tejasmanohar: i just wanted the gem to fetch stuff for me and for other people to use it however they want
[22:42:28] Ox0dea: Why wouldn't users of the wrapper want to avoid unnecessary requests?
[22:42:39] tejasmanohar: so where would it be cached? a database?
[22:42:45] Ox0dea: @feed ||= ...
[22:43:02] tejasmanohar: multiple feeds, multiple functions
[22:43:15] tejasmanohar: but yes, i see what you mean by that Ox0dea
[22:44:17] hahuang61: has joined #ruby
[22:44:18] tejasmanohar: but the question is if each function uses a different feed would you repeat the base rss stuff per function like i did here https://gist.github.com/tejasmanohar/52ae8962e806421ff0c2 ( just updateD)?
[22:44:31] tubuliferous: has joined #ruby
[22:45:03] tejasmanohar: that's really my main question lol
[22:45:08] Ox0dea: tejasmanohar: You should introduce a class.
[22:45:27] tejasmanohar: and each function should just provide an extension to the url, not the full one i guess
[22:45:38] tejasmanohar: extensions off of airfarewatchdog.com/rss/
[22:45:45] Ox0dea: The URL should be constructed per instance, yes.
[22:45:49] tejasmanohar: makes sense to me
[22:46:26] Ox0dea: logs $ tail -n 100 irc.freenode.#ruby.weechatlog | grep -c tejas
[22:48:12] dseitz: has joined #ruby
[22:49:04] Ox0dea: That's gotta be some kinda record.
[22:49:39] tejasmanohar: lol sorry, i'll combine messages ;) ... starting now, so would you make a class to make all the requests to RSS feeds, Ox0dea ? and the class would have a function that basically just returns the `RSS::Parser.parse(rss)` parsed into ruby version of the rss feed?
[22:49:58] simplyianm: has joined #ruby
[22:52:05] devdazed: has joined #ruby
[22:54:01] Ox0dea: tejasmanohar: Hmm, are fetch_arrivals and fetch_departures the only two methods you mean to expose?
[22:55:39] tejasmanohar: Ox0dea: i plan to write a function to scrape all the airport codes supported by airfarewatchdog as well and expose that... but at first, yes i think those are the only two.
[22:55:45] tejasmanohar: there are other feeds but i don't plan to deal w/ them rn
[22:56:30] dgutierrez1287: has joined #ruby
[22:57:05] Ox0dea: tejasmanohar: In that case, you might as well define them as module functions, and expose the IATAs as a public constant.
[22:57:31] Ox0dea: YourThing::IATA_CODES, YourThing.fetch_arrivals...
[23:01:26] tejasmanohar: Ox0dea: makes sense, yeah
[23:01:39] tejasmanohar: Ox0dea: thats what i would've done in the lib/ folder of rails app :P
[23:04:28] drewo: has joined #ruby
[23:05:36] tejasmanohar: Ox0dea: but the real question i had is should each module function make requests to the rss feeds like https://gist.github.com/tejasmanohar/52ae8962e806421ff0c2 or should i write a separate class that makes the requests given the URL extension off of airfarewatchdog.com/rss/ and returns the `RSS::Parser.parse(rss)` result?
[23:05:48] gwendall: has joined #ruby
[23:06:00] tejasmanohar: even though it's only 2 functions rn, trying to write this properly for once :)
[23:06:09] ivanskie: has joined #ruby
[23:07:01] irctc504: has joined #ruby
[23:07:59] irctc504: hello, im trying to query a session with Parse through Ruby and im getting an error. this is my problem http://stackoverflow.com/questions/31766477/trying-to-do-a-query-session-for-parse
[23:08:22] Scripore: has joined #ruby
[23:09:03] valetudo: has joined #ruby
[23:10:26] htmldrum: has joined #ruby
[23:10:30] Ox0dea: tejasmanohar: Either way, I suppose. All things in moderation, even abstraction.
[23:10:51] tejasmanohar: Ox0dea: fair. it's good enough either way i guess
[23:12:06] hahuang61: has joined #ruby
[23:12:44] NoidedSuper: has joined #ruby
[23:14:23] tejasmanohar: Ox0dea: why do you suggest a module instead of class in this case?
[23:14:31] tejasmanohar: you specified so thought i'd ask :)
[23:15:59] Ox0dea: tejasmanohar: You use a class when you'll need more than one of the thing.
[23:16:02] ruby-lang069: has joined #ruby
[23:16:06] al2o3-cr: tejasmanohar: probably because it doesn't warrant a class :p
[23:16:12] tejasmanohar: Ox0dea: oh true
[23:16:19] tejasmanohar: im just exposing some functions that people can re-use
[23:16:28] NoidedSuper: Yeah, module in that case.
[23:18:02] irctc504: hello, im trying to query a session with Parse through Ruby and im getting an error. this is my problem http://stackoverflow.com/questions/31766477/trying-to-do-a-query-session-for-parse
[23:18:09] Ox0dea: tejasmanohar: Thing.fetch_arrivals(iata) > IATA.new(iata).fetch_arrivals, unless you can think of other methods that would belong on IATA.
[23:18:51] Ox0dea: And really, that's not a very semantically meaningful abstraction, so any methods which could conceivably go on IATA would be better on Thing anyhow.
[23:21:00] NoidedSuper: So I read a few blog posts on why Sequel was better than ActiveRecord, agreed with their points (they mostly just pointed out stuff that absolutely infuriated me about AR), and decided to switch. But then I find out that Sequel doesn't really have a good FriendlyId replacement???the closest thing I can find was last updated in 2010 and doesn't work with any of the most recent versions of stuff.
[23:21:25] tejasmanohar: Ox0dea: true, module is all i need right now
[23:21:31] NoidedSuper: So I figured I'd ask here if anybody else had similar problems before I just give up and write a gem for it myself
[23:22:07] tejasmanohar: ok, starting to code ;)
[23:22:15] Ox0dea: shevy: He's starting to code.
[23:25:15] tejasmanohar: on the gem, not the rails app :P
[23:25:37] hahuang61: has joined #ruby
[23:26:02] khebbie: has joined #ruby
[23:29:48] casadei_: has joined #ruby
[23:30:55] devdazed: has joined #ruby
[23:35:01] Musashi007: has joined #ruby
[23:39:04] zacstewart: has joined #ruby
[23:42:52] AndyBotwin: has joined #ruby
[23:43:39] triangles: has joined #ruby
[23:44:48] hahuang61: has joined #ruby
[23:44:55] arescorpio: has joined #ruby
[23:45:20] scrudrv: has joined #ruby
[23:45:52] bronson: has joined #ruby
[23:52:19] SirCmpwn: has left #ruby: ("WeeChat 1.2")
[23:54:44] juanpablo_______: has joined #ruby
[23:55:50] hahuang61: has joined #ruby
[23:56:07] shevy: tejasmanohar you could always try a test-gem and remove it lateron, then you know how to do it
[23:56:11] ribbons: has joined #ruby
[23:56:21] skade: has joined #ruby
[23:56:23] shevy: remove a gem: gem yank name_here --version number_of_version_here
[23:56:27] ixti: has joined #ruby
[23:56:58] yqt: has joined #ruby
[23:57:15] tejasmanohar: what for, shevy ?
[23:57:29] shevy: then you know how to work with a gem
[23:57:52] shevy: like specify the external dependencies
[23:57:56] tejasmanohar: following http://guides.rubygems.org/make-your-own-gem/ shevy
[23:58:14] shevy: yeah I followed that as well when I started with gems
[23:58:27] tejasmanohar: does "test-gem" refer to something specific?
[23:58:36] tejasmanohar: or are you just saying write a gem as a test?
[23:58:44] shevy: make sure to specify .required_ruby_version =
[23:58:51] shevy: and .rubygems_version =
[23:58:55] shevy: a test-gem
[23:58:59] shevy: it does not matter what it is
[23:59:07] shevy: call it tejasmanohar
[23:59:32] tejasmanohar: i'll just learn through this gem i'm writing now anyways by following this guide
[23:59:36] tejasmanohar: i think that should be enough
[23:59:40] Ox0dea: shevy: Shall we compare pingers? https://gist.github.com/0x0dea/67d2f283d9b5901da777
[23:59:45] tejasmanohar: to get started, i mena