« Back to channel list

#ruby - 21 May 2017

« Back 1 day Forward 1 day »
[00:00:16] alveric1: has joined #ruby
[00:07:13] bmurt: has joined #ruby
[00:07:26] bkxd: has joined #ruby
[00:19:33] eputnam_: has joined #ruby
[00:20:03] Cohedrin: has joined #ruby
[00:24:50] __Yiota: has joined #ruby
[00:38:44] nicesignal: has joined #ruby
[00:42:13] latemus: has joined #ruby
[00:44:55] tristanp: has joined #ruby
[00:49:39] mostlybadfly: has joined #ruby
[00:50:10] sneakerhax: has joined #ruby
[00:51:22] nicesignal: has joined #ruby
[00:56:07] jshjsh: has joined #ruby
[01:01:01] eightlimbed: has joined #ruby
[01:01:11] __Yiota: has joined #ruby
[01:09:11] uZiel: has joined #ruby
[01:09:12] gizmore: has joined #ruby
[01:09:57] bheesham: has joined #ruby
[01:11:24] __Yiota: has joined #ruby
[01:14:39] bronson: has joined #ruby
[01:15:22] nicesignal: has joined #ruby
[01:16:11] al2o3-cr1: has joined #ruby
[01:16:24] comet23: has joined #ruby
[01:19:23] jcao219: has joined #ruby
[01:22:22] charliesome: has joined #ruby
[01:23:14] cyphase: has joined #ruby
[01:26:35] hoocares: has joined #ruby
[01:26:37] Bhootrk_: has joined #ruby
[01:29:27] pb122-two: has joined #ruby
[01:30:39] bambanx: has joined #ruby
[01:35:46] eightlimbs: has joined #ruby
[01:38:14] __Yiota: has joined #ruby
[01:39:29] nicesignal: has joined #ruby
[01:43:15] jenrzzz: has joined #ruby
[01:48:50] houhoulis: has joined #ruby
[01:51:10] d^sh: has joined #ruby
[01:54:22] BSaboia: has joined #ruby
[02:01:10] Jameser: has joined #ruby
[02:06:49] ResidentBiscuit: has joined #ruby
[02:08:02] rdavila: has joined #ruby
[02:14:37] eightlimbed: has joined #ruby
[02:21:50] muelleme: has joined #ruby
[02:27:30] tristanp: has joined #ruby
[02:40:06] mglAC: has joined #ruby
[02:44:27] milardovich: has joined #ruby
[02:45:22] bheesham: has joined #ruby
[02:46:36] tristanp: has joined #ruby
[02:50:29] dasher00: has joined #ruby
[02:55:35] vahe: has joined #ruby
[02:57:56] bkxd: has joined #ruby
[03:00:36] b0mbnet: has joined #ruby
[03:09:17] skweek: has joined #ruby
[03:10:11] jrafanie: has joined #ruby
[03:14:11] jgt: has joined #ruby
[03:15:38] bronson: has joined #ruby
[03:20:15] patr0clus: has joined #ruby
[03:22:55] Jameser: has joined #ruby
[03:23:19] jcao219: has joined #ruby
[03:31:46] tristanp: has joined #ruby
[03:34:11] uZiel: can I merge exception handling with a do while loop?
[03:34:41] uZiel: like: begin.... rescue ... end while <conditional>
[03:39:41] ResidentBiscuit: has joined #ruby
[03:44:09] bheesham: has joined #ruby
[03:47:50] gix: has joined #ruby
[03:48:27] tristanp: has joined #ruby
[03:51:42] eckhardt: has joined #ruby
[04:00:03] tristanp: has joined #ruby
[04:09:45] bheesham: has joined #ruby
[04:13:30] jenrzzz: has joined #ruby
[04:18:52] bkxd: has joined #ruby
[04:20:47] ahrs: has joined #ruby
[04:21:06] Jameser: has joined #ruby
[04:21:27] TreyG: has joined #ruby
[04:22:38] tristanp: has joined #ruby
[04:26:40] bkxd_: has joined #ruby
[04:29:29] eightlimbed: has joined #ruby
[04:35:20] arquebus: has joined #ruby
[04:36:08] arquebus: has joined #ruby
[04:36:57] arquebus: has joined #ruby
[04:37:17] KeyJoo: has joined #ruby
[04:37:59] arquebus: has joined #ruby
[04:52:07] Dreamer3: has joined #ruby
[04:54:47] jenrzzz: has joined #ruby
[04:59:41] uZiel: has joined #ruby
[05:00:36] KnownSyntax: has joined #ruby
[05:11:12] bambanx: has joined #ruby
[05:14:57] jgt: has joined #ruby
[05:16:53] bronson: has joined #ruby
[05:28:32] jenrzzz: has joined #ruby
[05:33:42] enterprisey: has joined #ruby
[05:34:56] segmond: has joined #ruby
[05:35:39] bheesham: has joined #ruby
[05:39:11] _whitelogger: has joined #ruby
[05:43:30] tristanp: has joined #ruby
[05:44:00] tristanp: has joined #ruby
[05:48:56] shinnya: has joined #ruby
[05:54:10] _whitelogger: has joined #ruby
[06:00:20] _whitelogger: has joined #ruby
[06:09:37] tristanp: has joined #ruby
[06:14:11] bkxd: has joined #ruby
[06:21:11] _whitelogger: has joined #ruby
[06:22:36] Nilium: has joined #ruby
[06:29:03] uZiel: can I iterate through an enumerator without a for/while loop?
[06:29:19] nhhc: has joined #ruby
[06:30:37] havenwood: uZiel: sure
[06:30:40] uZiel: enum.next gives the next element fine, but I want to go through all these elements till the end
[06:31:31] havenwood: uZiel: If you're using `for` in Ruby it's probably not idiomatic Ruby. Take a look at the methods on Enumerator and Enumerable.
[06:31:42] uZiel: arr.each_slice(n) gives me an enum, now how do I go through all the slices without for/while loop?
[06:32:53] havenwood: uZiel: You can pass a block to #each_slice.
[06:33:13] uZiel: oh really
[06:33:17] havenwood: uZiel: Consider the following: [1, 2, 3].each_slice(2) { |a, b| p "#{a} and #{b}" }
[06:33:18] uZiel: ha, silly me
[06:33:26] uZiel: ok got it
[06:33:31] uZiel: thanks havenwood
[06:36:21] rippa: has joined #ruby
[06:59:54] newrubycoder: has joined #ruby
[07:00:30] jgt: has joined #ruby
[07:10:00] scrooloose: has joined #ruby
[07:10:00] enterprisey: has joined #ruby
[07:10:34] jgnagy: has joined #ruby
[07:17:50] bronson: has joined #ruby
[07:22:44] antgel: has joined #ruby
[07:25:17] xall: has joined #ruby
[07:25:28] ltem: has joined #ruby
[07:27:34] danguita: has joined #ruby
[07:39:28] Asher: has joined #ruby
[07:41:04] dionysus69: has joined #ruby
[07:42:11] vahe: has joined #ruby
[07:46:13] Nilium_: has joined #ruby
[07:53:53] Yzguy: has joined #ruby
[07:57:10] _whitelogger: has joined #ruby
[08:00:18] tildes: has joined #ruby
[08:01:02] Mon_Ouie: and 'for x in obj; …; end' is similar to 'obj.each { |x| … }'
[08:01:25] _main_: has joined #ruby
[08:01:50] VladGh_: has joined #ruby
[08:02:28] _main_: has joined #ruby
[08:02:43] Yzguy: one line loops doe
[08:04:30] aep: has joined #ruby
[08:05:19] romain_t: has joined #ruby
[08:10:45] mdw: has joined #ruby
[08:11:27] b0mbnet: has joined #ruby
[08:16:11] lxsameer: has joined #ruby
[08:26:11] bheesham: has joined #ruby
[08:28:45] rgr_: has joined #ruby
[08:30:13] ascheel: has joined #ruby
[08:31:47] cfec0b8d: has joined #ruby
[08:33:48] TomyLobo: has joined #ruby
[08:34:53] bheesham: has joined #ruby
[08:44:00] Nicmavr: has joined #ruby
[08:45:21] ResidentBiscuit: has joined #ruby
[08:49:38] blackmesa: has joined #ruby
[08:52:48] belmoussaoui: has joined #ruby
[08:58:02] dasher00: has joined #ruby
[09:00:09] djbkd: has joined #ruby
[09:18:07] belmoussaoui_: has joined #ruby
[09:18:38] bronson: has joined #ruby
[09:20:10] muelleme: has joined #ruby
[09:22:28] djbkd: has joined #ruby
[09:39:09] belmoussaoui_: has joined #ruby
[09:39:53] MrSparkle: has joined #ruby
[09:43:06] belmoussaoui_: has joined #ruby
[10:04:28] Jameser: has joined #ruby
[10:07:40] danguita: has joined #ruby
[10:20:37] BubonicPestilenc: has joined #ruby
[10:22:42] User458764: has joined #ruby
[10:29:15] AlexRussia: has joined #ruby
[10:30:01] Tempesta: has joined #ruby
[10:31:00] nowhere_man: has joined #ruby
[10:37:55] jenrzzz: has joined #ruby
[10:37:55] jenrzzz: has joined #ruby
[10:40:21] normie1: has joined #ruby
[10:44:56] minimalism: has joined #ruby
[10:46:10] BSAlb: has joined #ruby
[10:46:22] oleo: has joined #ruby
[10:46:34] Semtex-H: has joined #ruby
[10:48:12] diegok: has joined #ruby
[10:50:20] BSab: has joined #ruby
[10:50:44] apparition: has joined #ruby
[10:55:23] Guest12483: has joined #ruby
[10:58:05] SteenJobs: has joined #ruby
[10:58:46] antgel: has joined #ruby
[11:03:12] normie1: has joined #ruby
[11:11:10] normie1: has joined #ruby
[11:12:28] Guest14726: has joined #ruby
[11:15:39] blackmesa: has joined #ruby
[11:20:24] bronson: has joined #ruby
[11:30:18] User458764: has joined #ruby
[11:33:03] ResidentBiscuit: has joined #ruby
[11:38:44] belmoussaoui_: has joined #ruby
[11:39:53] normie1: has joined #ruby
[11:43:45] doublemalt_: has joined #ruby
[11:46:35] tildes: has joined #ruby
[11:56:58] charliesome: has joined #ruby
[12:02:07] BSaboia: has joined #ruby
[12:06:12] doublemalt_: has joined #ruby
[12:14:43] bkxd: has joined #ruby
[12:15:20] Kug3lis: has joined #ruby
[12:17:18] mtkd: has joined #ruby
[12:17:23] jcao219: has joined #ruby
[12:17:30] DeeJayh: has joined #ruby
[12:17:59] jgt: has joined #ruby
[12:18:12] cfec0b8d: has joined #ruby
[12:20:56] BSAlb: has joined #ruby
[12:22:25] BSaboia: has joined #ruby
[12:23:47] jgt1: has joined #ruby
[12:25:10] normie1: has joined #ruby
[12:26:13] AlexRussia: has joined #ruby
[12:28:32] ozzy3: has joined #ruby
[12:28:54] ozzy3: hello ruby lover
[12:28:59] romank: has joined #ruby
[12:30:40] bkxd: has joined #ruby
[12:43:39] romank: has joined #ruby
[13:04:36] yeticry: has joined #ruby
[13:05:28] jgt1: has joined #ruby
[13:08:49] b0mbnet: has joined #ruby
[13:15:05] vahe: has joined #ruby
[13:18:57] romank: has joined #ruby
[13:19:06] Emmanuel_Chanel: has joined #ruby
[13:21:13] bronson: has joined #ruby
[13:25:21] BSAlb: has joined #ruby
[13:26:49] BSab: has joined #ruby
[13:31:19] normie1: has joined #ruby
[13:32:37] Phage: has joined #ruby
[13:32:44] jgt1: has joined #ruby
[13:33:14] HoierM: has joined #ruby
[13:33:25] sepp2k: has joined #ruby
[13:34:14] HoierM: has joined #ruby
[13:34:38] normie1_: has joined #ruby
[13:35:13] HoierM: has joined #ruby
[13:35:20] eightlimbed: has joined #ruby
[13:36:10] HoierM: has joined #ruby
[13:40:56] houhoulis: has joined #ruby
[13:45:29] belmoussaoui_: has joined #ruby
[13:45:43] ddffg: has joined #ruby
[13:45:44] mathys: has joined #ruby
[13:52:46] jgt1: has joined #ruby
[13:55:24] blackmesa: has joined #ruby
[13:58:58] stupidsenpai: has joined #ruby
[13:59:03] DeeJayh: has joined #ruby
[14:03:37] doublemalt__: has joined #ruby
[14:06:03] bkxd: has joined #ruby
[14:06:54] belmoussaoui_: has joined #ruby
[14:08:07] dasher00: has joined #ruby
[14:12:47] User458764: has joined #ruby
[14:13:12] Bhootrk_: has joined #ruby
[14:14:26] BSaboia: has joined #ruby
[14:15:23] ResidentBiscuit: has joined #ruby
[14:17:51] MarkBilk: I'm using Ruby 2.3 in MSWindows, trying to use the print method with two objects (OK in 2.4.1 doc), but it gets a syntax error on the comma after the first object. How do I find the docs for Ruby 2.3?
[14:19:11] Lyubo1: has joined #ruby
[14:20:03] Hanmac: MarkBilk: can you make a gist of your code piece?
[14:20:30] Mon_Ouie: http://ruby-doc.org/core-2.3.0/ --- there were no major syntax changes between 2.3 and 2.4 though
[14:22:36] MarkBilk: print ("elemTag.content = ", elemTag.content) elemTag.content is a string (nokogiri)
[14:22:41] normie1: has joined #ruby
[14:23:33] Mon_Ouie: Remove the space after print
[14:26:10] doublemalt__: has joined #ruby
[14:28:11] User458764: has joined #ruby
[14:29:20] jrafanie: has joined #ruby
[14:30:25] DeeJayh: has joined #ruby
[14:30:32] MarkBilk: Thanks! That fixed it.
[14:32:56] normie1: using rvm ruby 2.2, but /usr/bin/ruby -v is saying 2.0.0 and this is what passenger is using causing errors, any ideas?
[14:33:44] belmoussaoui: has joined #ruby
[14:40:39] Mon_Ouie: RVM sets up the PATH environment variable to use the correct Ruby version, it doesn't actually change /usr/bin/ruby. I don't know how to tell Passenger to use the correct version though. Are you sure the passenger process is started in an environment where rvm is correctly loaded?
[14:42:02] BSAlb: has joined #ruby
[14:49:21] romank: has joined #ruby
[14:49:23] Guest12483: https://rvm.io/integration/passenger
[14:52:10] romank: has joined #ruby
[14:53:22] bheesham: has joined #ruby
[14:57:32] blackmesa: has joined #ruby
[15:00:12] jgnagy: has joined #ruby
[15:02:17] DLSteve: has joined #ruby
[15:04:28] tgragnato: has joined #ruby
[15:05:23] belmoussaoui: has joined #ruby
[15:11:45] pankaj: has joined #ruby
[15:15:40] boombox_: has joined #ruby
[15:16:53] jgt1: has joined #ruby
[15:17:29] normie1: has joined #ruby
[15:22:14] bronson: has joined #ruby
[15:22:58] priodev: has joined #ruby
[15:26:29] BSaboia: has joined #ruby
[15:27:02] dionysus69: has joined #ruby
[15:32:08] djbkd: has joined #ruby
[15:37:41] boombox_: has joined #ruby
[15:39:22] Mon_Ouie: has joined #ruby
[15:47:36] vahe: has joined #ruby
[15:58:06] djbkd: has joined #ruby
[16:00:43] pankaj: has joined #ruby
[16:10:10] uZiel: has joined #ruby
[16:10:37] danguita: has joined #ruby
[16:15:52] Sembei: has joined #ruby
[16:18:41] cbyrda: has joined #ruby
[16:20:32] HoierM: has joined #ruby
[16:22:37] romank: has joined #ruby
[16:28:01] dionysus69: has joined #ruby
[16:28:44] vahe: has joined #ruby
[16:35:13] romank: has joined #ruby
[16:38:08] romank: has joined #ruby
[16:38:27] MarkBilk: I used hpricot years ago and it was wonderful. But the gem won't install in Ruby2.3 in MSWindows 8.1, so I'm trying to use Nokogiri and having a very hard time. Element.text is supposed to be a String, but it won't print out.
[16:39:33] MarkBilk: When I try to install the hpricot gem I get: ERROR: While executing gem ... (Gem::Exception)
[16:39:33] MarkBilk: Unable to find spec for #<Gem::NameTuple hpricot, 0.8.6, x86-mswin32>
[16:40:01] cagmz: has joined #ruby
[16:42:57] rgr: has joined #ruby
[16:43:15] tgragnato: MarkBilk: hpricot development is ceased, you should really migrate to something else
[16:44:17] MarkBilk: tgragnato: is there anything other than nokogiri?
[16:45:51] zepy_aq: has joined #ruby
[16:47:54] tomphp_: has joined #ruby
[16:50:12] havenwood: MarkBilk: https://github.com/YorickPeterse/oga
[16:51:01] MarkBilk: Is oga easy and fun like hpricot, unlike nokogiri?
[16:52:59] tgragnato: the documentation is very clear
[16:53:24] MarkBilk: Great! Thanks!
[16:59:43] jcao219: has joined #ruby
[17:08:14] bronson: has joined #ruby
[17:12:01] ikoma: has joined #ruby
[17:14:52] andrzejku: has joined #ruby
[17:22:56] DLSteve: has joined #ruby
[17:28:01] SaschaVoid: has joined #ruby
[17:31:12] Nilium: has joined #ruby
[17:34:01] SteenJobs: has joined #ruby
[17:34:52] segmond: has joined #ruby
[17:37:58] captaintuffy: has joined #ruby
[17:40:36] jgt1: has joined #ruby
[17:40:40] kith: has joined #ruby
[17:42:02] kmhn: has joined #ruby
[17:44:36] romank: has joined #ruby
[17:45:29] dtzuzu: has joined #ruby
[17:46:12] BSAlb: has joined #ruby
[17:47:45] kmhn: has joined #ruby
[17:49:12] BSAlb: has joined #ruby
[17:51:22] __Yiota: has joined #ruby
[17:54:18] kmhn: has joined #ruby
[17:55:43] bkxd: has joined #ruby
[17:56:59] TreyG: has joined #ruby
[18:01:01] bkxd: has joined #ruby
[18:01:56] romank: has joined #ruby
[18:02:54] AlexRussia: has joined #ruby
[18:04:37] workmad3_: has joined #ruby
[18:05:55] PatrikasZvaigzde: has joined #ruby
[18:06:53] nowhere_man: has joined #ruby
[18:08:11] bheesham: has joined #ruby
[18:09:56] BSaboia: has joined #ruby
[18:11:36] boringcpg: has joined #ruby
[18:13:08] ericmathison: has joined #ruby
[18:16:44] tomphp: has joined #ruby
[18:17:59] doublemalt__: has joined #ruby
[18:24:56] tomphp: has joined #ruby
[18:28:53] blackmesa: has joined #ruby
[18:31:45] DeeJayh: has joined #ruby
[18:35:59] ptx0: has joined #ruby
[18:42:49] belmoussaoui_: has joined #ruby
[18:44:42] tomphp: has joined #ruby
[18:50:15] Cohedrin: has joined #ruby
[18:50:56] kmhn: has joined #ruby
[18:56:16] swills: has joined #ruby
[18:56:18] weathermaker: has joined #ruby
[18:56:37] jusa: has joined #ruby
[18:57:39] weathermaker: has joined #ruby
[18:58:18] eckhardt: has joined #ruby
[18:59:41] DeeJayh: has joined #ruby
[18:59:53] blackmesa: has joined #ruby
[19:02:45] segmond: has left #ruby: ()
[19:05:18] kmhn: has joined #ruby
[19:06:20] hndk: has joined #ruby
[19:08:27] marr: has joined #ruby
[19:09:01] patr0clus: has joined #ruby
[19:09:17] bronson: has joined #ruby
[19:11:05] sepp2k1: has joined #ruby
[19:12:20] boringcp1: has joined #ruby
[19:14:43] Ericx2x: has joined #ruby
[19:15:08] gil_: has joined #ruby
[19:15:09] gil_: has joined #ruby
[19:15:40] noob: has joined #ruby
[19:15:53] noob: has left #ruby: ("Leaving")
[19:17:33] dtzuzu: has joined #ruby
[19:17:38] Talltree: has joined #ruby
[19:22:44] ozzy3: has joined #ruby
[19:24:57] mdw: has joined #ruby
[19:25:45] tomphp: has joined #ruby
[19:28:53] tildes: has joined #ruby
[19:29:00] kies: has joined #ruby
[19:31:12] sauvin: has joined #ruby
[19:31:39] yogg-saron: has joined #ruby
[19:32:22] romank: has joined #ruby
[19:32:32] DeeJayh: has joined #ruby
[19:33:01] Cohedrin: has joined #ruby
[19:37:42] User458764: has joined #ruby
[19:38:12] ozzy3: how can i writin select other users nick
[19:39:00] ozzy3: havenwood
[19:39:39] nofxxxx: MarkBilk, nokogiri has no more than 3 methods, what's complex its xpath/css
[19:39:53] nofxxxx: but kinda like regex, after sometime you get usued to it and it's readable
[19:41:10] nofxxxx: To learn each: rubular for regex and browser plugin for xpath... kinda like Ctrl + Shift + C on browser consoles you'll see the xpath
[19:43:13] stormbytes: has joined #ruby
[19:43:55] stormbytes: back to ruby after 4 days of hell dancing around Node's async model
[19:44:12] bheesham: has joined #ruby
[19:50:30] kmhn: has joined #ruby
[19:50:52] nofxxxx: stormbytes, after we decided js was a piece of s* we decided to write everything in JS
[19:52:13] qguv: has joined #ruby
[19:52:16] stormbytes: i dunno about it being a pos. I started with it some 2-3 years back with this project I had at the time and just went on with it... thinking it wasn't all that different than Ruby once you got the hang of it, and with all the Node hype
[19:52:39] stormbytes: but i never got my head around Promises and how to integrate these into a server side scripting workflow
[19:54:36] belmoussaoui: has joined #ruby
[19:55:04] elomatreb: Promises and a comfortable asynchronous workflow are the only reasons why I would even consider writing something JS
[19:55:17] bheesham: has joined #ruby
[19:55:45] stormbytes: i guess if you need that sort of thing
[19:56:11] stormbytes: I need to be able to return values from functions (predictably) and assign those values onwards in my workflow
[19:56:23] stormbytes: all this split-streaming b.s. is for the youngins
[19:56:58] havenwood: ozzy3: type "hav" then hit <tab>
[19:57:32] belmoussaoui_: has joined #ruby
[19:58:52] qguv: has joined #ruby
[19:59:44] al2o3-cr: has joined #ruby
[20:01:47] blackmesa: has joined #ruby
[20:02:58] enterprisey: has joined #ruby
[20:03:51] kegster: has joined #ruby
[20:06:14] bheesham: has joined #ruby
[20:06:45] DeeJayh: has joined #ruby
[20:07:14] stormbytes: elomatreb what kind of tasks require an async workflow?
[20:12:33] havenwood: elomatreb: The last node app I looked at used promises for api calls but if one failed the whole promise broke. I guess promises get better in ES2017.
[20:13:08] fedruantine: has joined #ruby
[20:13:09] elomatreb: By "comfortable" I meant some layer of abstraction above just using raw threads
[20:13:50] mathys: has joined #ruby
[20:15:32] stormbytes: if you don't mind getting me started on my uphill climb back into Ruby, how does the workflow map from javascript?
[20:15:57] qguv: has joined #ruby
[20:16:00] stormbytes: i'm specifically referring to node as all my work is in scripts
[20:16:17] lxnr: has joined #ruby
[20:16:26] stormbytes: so, i presume gem = npm
[20:16:42] stormbytes: are gems stored locally? globally? both?
[20:17:57] eckhardt: has joined #ruby
[20:19:56] nofxxxx: stormbytes, gem install == npm install -g
[20:20:19] User458764: has joined #ruby
[20:20:32] nofxxxx: stormbytes, check `gem env` also, to see where things are going
[20:21:29] stormbytes: so no local/global gems?? all gems installed once then?
[20:21:48] stormbytes: i mean.. with npm every project had its own copies
[20:22:21] nofxxxx: I know, personally I prefer gem default way... but you can install where you want
[20:22:38] nofxxxx: stormbytes, also check out bundler...
[20:23:07] nofxxxx: that's how you'll do in a project... so you can easily install/update global or local
[20:23:42] qguv: has joined #ruby
[20:27:00] stormbytes: ahh that rings a bell!
[20:27:16] stormbytes: bunder is the task runner?
[20:28:02] stormbytes: or something like that
[20:29:23] stormbytes: and.. whats the correct workflow for gem installation + use? Do you start a new project, gem install <whatever gems> then create your files and start coding?
[20:29:40] Bock: has joined #ruby
[20:31:04] havenwood: stormbytes: Usually for an app you'll create a Gemfile, put your deps in there, then run: bundle
[20:31:24] havenwood: stormbytes: That will create a Gemfile.lock with the exact versions of each gem for your app.
[20:31:49] havenwood: stormbytes: You then distribute the Gemfile.lock in version control so everyone can use the same versions of the same deps.
[20:32:15] havenwood: stormbytes: It's more similar to Yarn than npm.
[20:32:50] stormbytes: never used Yarn
[20:32:58] stormbytes: what about gem versions?
[20:33:21] stormbytes: do you explicitly state those in the gemfile?
[20:33:27] havenwood: stormbytes: You can specify those in your Gemfile, then the exact versions and versions of deps will be generated in your Gemfile.lock.
[20:33:53] havenwood: stormbytes: https://bundler.io/v1.5/gemfile.html
[20:34:10] stormbytes: was going to be my next question... :)
[20:34:33] havenwood: stormbytes: Here's a fairly complicated Gemfile, for example: https://github.com/discourse/discourse/blob/master/Gemfile
[20:34:38] havenwood: stormbytes: It's just Ruby code.
[20:35:08] stormbytes: wow that's awesome... you can execute ruby code within the gemfile, state conditions, etc
[20:35:45] stormbytes: must say, its a bit overwhelming having to start over (again) but I feel with Ruby i know what i'm buying......
[20:36:13] stormbytes: the javascript workflow is very disjunct (in my impression)
[20:36:38] havenwood: stormbytes: Give Yarn a try.
[20:37:05] havenwood: stormbytes: https://github.com/yarnpkg/yarn
[20:37:10] havenwood: stormbytes: https://yarnpkg.com/en/
[20:38:38] stormbytes: my main issue with javascript was the asynchronous workflow. I'm doing all of my work on the server (command line scripts, etc)
[20:39:03] stormbytes: need sync execution
[20:40:18] havenwood: (Yarn was done by some of the same folk who started Bundler.)
[20:40:26] havenwood: wycats, et al
[20:40:42] havenwood: https://github.com/bundler/bundler/commit/a8de418f67bf38061795e089a9a42735d2f47bdc
[20:41:03] havenwood: What "Bundler" was born as.
[20:41:29] stormbytes: i came to javascript after about a year or so of working with Ruby, it really seemed like the javascript workflow was essentially a clone... but, that's just my very limited viewpoint
[20:42:03] belmoussaoui: has joined #ruby
[20:42:06] ozzy3: has left #ruby: ()
[20:53:33] ozzy3: has joined #ruby
[20:56:17] tAn: has joined #ruby
[20:57:07] mim1k: has joined #ruby
[21:02:55] Bock: has joined #ruby
[21:06:42] DeeJayh: has joined #ruby
[21:06:55] bheesham: has joined #ruby
[21:07:02] jshjsh: has joined #ruby
[21:09:19] ur5us: has joined #ruby
[21:10:11] bronson: has joined #ruby
[21:15:12] t-recx: has joined #ruby
[21:15:45] swills: has joined #ruby
[21:17:31] aglorei: has joined #ruby
[21:18:01] romank: has joined #ruby
[21:28:00] aglorei: has joined #ruby
[21:31:44] KnownSyntax: has joined #ruby
[21:35:21] bheesham: has joined #ruby
[21:36:42] jusa: has joined #ruby
[21:42:18] boringcpg: has joined #ruby
[21:47:24] minimalism: has joined #ruby
[21:47:24] jshjsh: has joined #ruby
[21:49:33] SaschaVoid: has joined #ruby
[21:49:36] cschneid_: has joined #ruby
[21:50:34] bkxd: has joined #ruby
[21:52:21] SteenJobs: has joined #ruby
[22:03:43] DeeJayh: has joined #ruby
[22:04:03] Rodya_: has joined #ruby
[22:04:29] im0nde: has joined #ruby
[22:04:54] im0nde: has joined #ruby
[22:05:46] milardovich: has joined #ruby
[22:07:11] timvisher: has joined #ruby
[22:07:37] ascarter: has joined #ruby
[22:16:25] bronson: has joined #ruby
[22:24:34] romank: has joined #ruby
[22:25:51] tristanp: has joined #ruby
[22:27:15] romank: has joined #ruby
[22:28:36] anuxivm: has joined #ruby
[22:34:12] milardovich: has joined #ruby
[22:42:38] eputnam_: has joined #ruby
[22:45:15] SaschaVoid: has joined #ruby
[22:50:33] __Yiota: has joined #ruby
[22:52:12] tristanp: has joined #ruby
[22:59:40] tristanp: has joined #ruby
[23:01:23] patr0clus: has joined #ruby
[23:02:47] romank: has joined #ruby
[23:04:26] dviola: has joined #ruby
[23:04:41] anuxivm: has left #ruby: ()
[23:07:57] romank: has joined #ruby
[23:10:46] romank: has joined #ruby
[23:11:10] volty: has joined #ruby
[23:11:30] adgtl: has joined #ruby
[23:12:22] recondite: has joined #ruby
[23:14:53] Hanna: has joined #ruby
[23:15:50] Antiarc: has joined #ruby
[23:19:06] patr0clus: has joined #ruby
[23:19:06] tristanp: has joined #ruby
[23:27:56] romank: has joined #ruby
[23:32:46] romank: has joined #ruby
[23:33:39] Trynemjoel: has joined #ruby
[23:36:31] jusa: has joined #ruby
[23:50:43] tgragnato: has left #ruby: ("Sto andando via")
[23:53:36] romank: has joined #ruby
[23:54:48] MarkBilk: nofxxxx: Problem with Nokogiri: tutorial at http://ruby.bastardsbook.com/chapters/html-parsing/ He says: puts page.css("title")[0].text # => My webpage. Correct, and works on my webpage too: http://www.cosmicpenguin.com/linux/ But change "title" to "img" (of which there are two on my page) and it does not print anything. hpricot was MUCH better.
[23:54:54] wnd: has joined #ruby
[23:55:02] patr0clus: has joined #ruby
[23:57:41] jamesaxl: has joined #ruby
[23:59:40] alveric2: has joined #ruby
[23:59:53] jshjsh: has joined #ruby