« Back to channel list

#ruby - 19 November 2018

« Back 1 day Forward 1 day »
[00:00:54] jhass: has joined #ruby
[00:08:38] howdoicomputer: has joined #ruby
[00:35:57] jcalla: has joined #ruby
[00:38:16] cd: has joined #ruby
[00:51:59] queip: has joined #ruby
[00:58:37] asphyxia: has joined #ruby
[01:02:15] nchambers: has joined #ruby
[01:10:59] chouhoulis: has joined #ruby
[01:21:13] sgen: has joined #ruby
[01:40:13] chihhsin: has joined #ruby
[01:40:57] Guest24308: has joined #ruby
[01:47:04] queip: has joined #ruby
[02:08:55] Freshnuts: has joined #ruby
[02:10:30] Freshnuts: has joined #ruby
[02:21:01] Exuma: has joined #ruby
[02:27:47] jrhorn424: has joined #ruby
[02:29:15] jrhorn424: has joined #ruby
[02:50:05] esrse: has joined #ruby
[02:52:12] queip: has joined #ruby
[03:00:23] jrhorn424: has joined #ruby
[03:02:30] bmurt: has joined #ruby
[03:05:29] dinfuehr: has joined #ruby
[03:06:16] nertzy: has joined #ruby
[03:07:18] Fusl: has joined #ruby
[03:22:09] themsay: has joined #ruby
[03:29:28] elphe: has joined #ruby
[03:35:09] Nicmavr: has joined #ruby
[04:06:15] ivanskie: has joined #ruby
[04:10:04] braincrash: has joined #ruby
[04:14:10] ivanskie: has joined #ruby
[04:19:36] arescorpio: has joined #ruby
[04:21:39] bairyn: has joined #ruby
[04:25:47] MoritaShinobu: has joined #ruby
[04:38:03] nima_m: has joined #ruby
[04:52:00] asphyxia: has joined #ruby
[05:04:56] ChatCodingLab: has joined #ruby
[05:06:13] cliluw: has joined #ruby
[05:06:28] nima_m: has joined #ruby
[05:17:46] nima_m: has joined #ruby
[05:21:55] nicesignal: has joined #ruby
[05:33:12] tdy: has joined #ruby
[05:53:49] rawrg: has joined #ruby
[06:03:02] marz_d`ghostman: has joined #ruby
[06:04:02] ChatCodingLab: has joined #ruby
[06:09:09] nima_m: has joined #ruby
[06:19:36] nima_m: has joined #ruby
[06:33:28] jaddison: has joined #ruby
[06:36:31] nima_m: has joined #ruby
[06:39:43] jrhorn424: has joined #ruby
[06:41:26] aufi: has joined #ruby
[06:44:49] luhn: has joined #ruby
[06:53:56] conta: has joined #ruby
[06:54:39] jrhorn424: has joined #ruby
[07:09:37] elphe: has joined #ruby
[07:10:09] marmotini_: has joined #ruby
[07:11:48] marmotini_: has joined #ruby
[07:12:01] roshanavand: has joined #ruby
[07:14:04] marmotini_: has joined #ruby
[07:15:19] marmotini_: has joined #ruby
[07:16:48] marmotini_: has joined #ruby
[07:17:24] dionysus69: has joined #ruby
[07:18:20] marmotini_: has joined #ruby
[07:20:29] marz_d`ghostman: I'm trying to test the format of logger, is there like a test specific stream I can use instead of a file?
[07:22:18] marmotini_: has joined #ruby
[07:28:51] roshanavand: has joined #ruby
[07:40:03] lomex: has joined #ruby
[07:40:22] marmotini_: has joined #ruby
[07:51:44] queip: has joined #ruby
[07:59:06] DTZUZO: has joined #ruby
[08:05:09] whysthatso: has joined #ruby
[08:06:33] marmotini_: has joined #ruby
[08:08:39] JamieD: has joined #ruby
[08:12:20] clemens3: has joined #ruby
[08:14:09] jcarl43: has joined #ruby
[08:16:21] marmotini_: has joined #ruby
[08:17:51] marmotini_: has joined #ruby
[08:22:30] venmx: has joined #ruby
[08:23:41] burgestrand: has joined #ruby
[08:25:36] whysthatso: has joined #ruby
[08:31:40] elphe: has joined #ruby
[08:33:12] phaul: has joined #ruby
[08:50:24] marmotini_: has joined #ruby
[08:51:50] vondruch: has joined #ruby
[08:52:21] queip: has joined #ruby
[08:53:19] gix: has joined #ruby
[08:56:05] JamieD: has joined #ruby
[08:57:47] lomex: has joined #ruby
[09:01:11] elphe: has joined #ruby
[09:03:08] apparition: has joined #ruby
[09:09:57] roshanavand: has joined #ruby
[09:14:37] roshanavand: has joined #ruby
[09:18:41] themsay: has joined #ruby
[09:21:55] themsay: has joined #ruby
[09:24:09] sameerynho: has joined #ruby
[09:26:53] themsay: has joined #ruby
[09:28:28] keden: has joined #ruby
[09:35:33] marmotini_: has joined #ruby
[09:36:08] Guest24308: has joined #ruby
[09:38:40] pskosinski: has joined #ruby
[09:39:32] jmcgnh: has joined #ruby
[09:43:05] BH23: has joined #ruby
[09:46:32] leah2: has joined #ruby
[09:49:58] queip: has joined #ruby
[09:52:34] themsay: has joined #ruby
[09:55:50] aufi: has joined #ruby
[09:56:46] lomex: has joined #ruby
[09:57:28] roshanavand: has joined #ruby
[10:01:04] dhollin3: has joined #ruby
[10:01:20] venmx: has joined #ruby
[10:03:27] BH23: has joined #ruby
[10:11:54] roshanavand: has joined #ruby
[10:20:31] roshanavand: has joined #ruby
[10:26:41] za1b1tsu: has joined #ruby
[10:34:52] Iambchop: marz_d`ghostman: not "test specific", but look at StringIO?
[10:35:52] c0ncealed4: has joined #ruby
[10:37:40] yohji: has joined #ruby
[10:37:59] dviola: has joined #ruby
[10:42:19] lomex: has joined #ruby
[10:44:43] roshanavand: has joined #ruby
[10:53:21] themsay: has joined #ruby
[10:53:34] queip: has joined #ruby
[10:58:45] jordila: has joined #ruby
[11:12:23] nowhere_man: has joined #ruby
[11:15:10] GodFather: has joined #ruby
[11:16:18] jrhorn424: has joined #ruby
[11:24:14] marmotini_: has joined #ruby
[11:39:20] Paraxial: has joined #ruby
[11:40:40] AJA4350: has joined #ruby
[11:41:48] Spitfire: has joined #ruby
[11:43:15] nertzy: has joined #ruby
[11:43:17] roshanavand: has joined #ruby
[11:45:53] raggi: has joined #ruby
[11:48:05] aufi: has joined #ruby
[11:50:06] roshanavand: has joined #ruby
[12:14:52] Danielss89: has joined #ruby
[12:17:37] thinkpad: has joined #ruby
[12:18:38] marmotini_: has joined #ruby
[12:26:46] Guest61808: has joined #ruby
[12:35:18] LinuxKnight: has joined #ruby
[12:37:01] roshanavand: has joined #ruby
[12:37:02] ur5us: has joined #ruby
[12:40:16] Guest61808: has joined #ruby
[12:42:57] yohji: has joined #ruby
[12:46:33] gregf_: has joined #ruby
[12:53:47] queip: has joined #ruby
[12:58:16] roshanavand: has joined #ruby
[13:00:36] keden: has joined #ruby
[13:00:46] JamieD: has joined #ruby
[13:01:01] marz_d`ghostman: Iambchop: thanks I'll look into it
[13:06:39] nowhere_man: has joined #ruby
[13:07:50] hiroaki: has joined #ruby
[13:08:00] GodFather: has joined #ruby
[13:09:28] TheBloke: has joined #ruby
[13:17:31] vondruch_: has joined #ruby
[13:20:51] roshanavand: has joined #ruby
[13:29:45] bmurt: has joined #ruby
[13:37:16] bmurt: has joined #ruby
[13:38:08] maximjaffe: has joined #ruby
[13:42:43] keden: has joined #ruby
[13:43:15] crankhar1er: has joined #ruby
[13:50:14] vonfry: has joined #ruby
[13:59:49] vondruch_: has joined #ruby
[14:03:26] jcalla: has joined #ruby
[14:04:20] roshanavand: has joined #ruby
[14:04:59] alan_w: has joined #ruby
[14:05:39] Paraxial: has joined #ruby
[14:11:13] discopatrick: has joined #ruby
[14:15:29] Nicmavr: has joined #ruby
[14:17:31] crankhar1er: has joined #ruby
[14:22:45] awkwords: has joined #ruby
[14:31:04] paulscoder: has joined #ruby
[14:31:06] donofrio: has joined #ruby
[14:39:59] jsc: has joined #ruby
[14:48:21] RougeR: has joined #ruby
[14:48:38] RougeR: hello, has anyone got experience running resque/resque scheduler with docker
[14:52:36] rippa: has joined #ruby
[15:00:26] daemonwrangler: has joined #ruby
[15:01:46] Guest61808: has joined #ruby
[15:01:57] arup_r: has joined #ruby
[15:12:42] Rapture: has joined #ruby
[15:15:35] keden: has joined #ruby
[15:17:38] cmckee: has joined #ruby
[15:21:54] troulouliou_div2: has joined #ruby
[15:22:46] vondruch: has joined #ruby
[15:23:22] kaleido: has joined #ruby
[15:26:50] akaiiro: has joined #ruby
[15:28:09] keden: has joined #ruby
[15:29:04] GodFather: has joined #ruby
[15:30:15] arup_r: has joined #ruby
[15:30:37] Inline: has joined #ruby
[15:34:06] Inside: has joined #ruby
[15:38:55] tuor: has joined #ruby
[15:38:59] dviola: has joined #ruby
[15:40:22] akaiiro: has joined #ruby
[15:53:39] queip: has joined #ruby
[15:56:45] dinfuehr: has joined #ruby
[15:57:00] status402: has joined #ruby
[16:02:10] akosednar: has joined #ruby
[16:05:31] ujjain: has joined #ruby
[16:08:07] saltsa: has joined #ruby
[16:11:14] desperek: has joined #ruby
[16:17:35] aufi: has joined #ruby
[16:23:24] mostlybadfly: has joined #ruby
[16:27:43] Exuma: has joined #ruby
[16:28:35] aufi: has joined #ruby
[16:38:37] elphe: has joined #ruby
[16:42:14] jetchisel: has joined #ruby
[16:44:33] NL3limin4t0r: has joined #ruby
[16:47:52] whysthatso: has joined #ruby
[16:51:11] queip: has joined #ruby
[16:52:43] lomex: has joined #ruby
[16:53:19] jaddison: has joined #ruby
[16:53:28] cow[moo]: has joined #ruby
[16:56:12] nowhere_man: has joined #ruby
[16:57:32] Guest61808: has joined #ruby
[17:02:58] Guest61808: has joined #ruby
[17:03:28] nchambers: has joined #ruby
[17:12:57] Aces1up: has joined #ruby
[17:13:18] Aces1up: just asking here this ROR question as you guys seem more active
[17:13:19] Aces1up: hey all i have been searching around but can not find an answer to this. when i save a datetime to column in rails I know it saves it as utc.. How can I later do a query on that datetime to see if it has passed a certain time in another timezone?
[17:13:19] Aces1up: <aces1up> it is as simple as querying the database using a datetime object set with a different timezone and AR knows what to do from there?
[17:15:11] jordila: has joined #ruby
[17:15:36] Guest61808: has joined #ruby
[17:16:25] RougeR: aces1up, what db
[17:18:03] RougeR: aces1up, https://stackoverflow.com/questions/28872761/time-zone-storage-in-data-type-timestamp-with-time-zone/28876266#28876266
[17:18:06] RougeR: might be of interest
[17:18:37] RougeR: could be that you have to write a sql method otherwise you are going to be doing the checks in rails
[17:19:13] Aces1up: RougeR mysql
[17:19:26] Aces1up: RougeR shouldnt i be having AR do the checks?
[17:19:43] Aces1up: this is actually a standalone ruby project not rails
[17:19:52] Aces1up: but i use active record for dbase stuff
[17:21:23] RougeR: aces1up, ah okay, i dont use rails much either
[17:21:29] RougeR: mostly pure ruby/sinatra
[17:21:41] Aces1up: yeh i use unicorn for web stuff
[17:21:43] RougeR: aces1up, AR is just a DSL for sql
[17:22:01] RougeR: i dont think what you want can be done in active record
[17:22:08] RougeR: and you dont want to load all the objects into memory
[17:22:13] bougyman: AR is an orm
[17:22:16] Aces1up: but activ support has new timezone stuff i should be using in my queries
[17:22:17] bougyman: arel is the dsl for sql, no?
[17:22:31] RougeR: idont know how mysql stores timestamps
[17:22:40] RougeR: i mostly stick to postgres
[17:22:42] RougeR: ill have a look
[17:22:51] RougeR: timezones*
[17:23:20] Aces1up: right now i have an app where i was storing all things as unix timestamp, now i need to adapt it to retreieve stuff based on biz location / timezone
[17:23:26] RougeR: https://dev.mysql.com/doc/refman/5.5/en/datetime.html
[17:23:30] GodFather: has joined #ruby
[17:23:33] Aces1up: from what i seeing i need to create new columns of datetime.
[17:23:33] RougeR: https://stackoverflow.com/questions/33465054/storing-timezone-in-a-database
[17:23:38] RougeR: same as postgres
[17:23:52] RougeR: aces1up, it doesnt store a timezone field though i think
[17:23:56] Aces1up: and do comparisons with date time objects in AR instead of unix timestamps.
[17:23:59] RougeR: it just stores adds an offset
[17:24:21] RougeR: youll want to compare against created_at or maybe current_time
[17:24:25] Aces1up: RougeR as long as AR gets the queries right im good
[17:24:34] RougeR: aces1up, how are you storing the objects
[17:24:40] Aces1up: i understand it stored things as UTC.
[17:24:41] RougeR: id add a column for timezone
[17:25:08] Aces1up: RougeR everything based off unix time stamp using Time.now.to_i
[17:25:18] Aces1up: i have column now for timezone..
[17:25:24] Aces1up: need to integrate it.
[17:25:35] RougeR: you already do, or you just made one?
[17:25:38] Aces1up: but can i use my timestamps?
[17:25:58] RougeR: aces1up, maybe, im just trying to think how to do it
[17:26:10] Aces1up: or should i just switch over everything to date time object so AR can do queries against timezone of business?
[17:26:30] RougeR: aces1up, how often will this query be run
[17:26:34] RougeR: and against how big a db
[17:26:39] jrhorn424: has joined #ruby
[17:27:02] Aces1up: its polling businesses for new leads that come in.. so i have a cron job running every 30 secs.
[17:27:03] RougeR: you could just do
[17:27:08] Aces1up: not too big a db now.
[17:27:29] cthulchu: has joined #ruby
[17:28:47] RougeR: sorry i gotta be brb
[17:28:59] RougeR: im not being much help, trying to finish something at work
[17:29:12] Aces1up: sure let me know your thoughts if i can adapt just Timestamps to work with timezones.
[17:29:35] RougeR: yeah i will do. i honestly might not be back for a while. :(
[17:29:37] Aces1up: i guess i need to convert the timestamp to time object then convert to timezone but then how would I do a query with all those conversions.
[17:29:52] RougeR: i would recommend reading this
[17:29:53] RougeR: https://stackoverflow.com/questions/33465054/storing-timezone-in-a-database
[17:29:55] RougeR: and related
[17:29:57] RougeR: seems similar
[17:30:00] Aces1up: sure man will do
[17:30:19] Aces1up: thanks for the help
[17:39:16] mangold: has joined #ruby
[17:44:03] \void: has joined #ruby
[17:44:40] Dbugger: has joined #ruby
[17:46:46] jcarl43: has joined #ruby
[17:49:52] maximjaffe: has joined #ruby
[17:50:19] queip: has joined #ruby
[17:52:14] sanscoeur: has joined #ruby
[17:56:02] dkmueller: has joined #ruby
[18:02:39] jetchisel: has joined #ruby
[18:05:38] GodFather: has joined #ruby
[18:08:30] crankhar1er: has joined #ruby
[18:11:35] fmccann: has joined #ruby
[18:15:05] baweaver: What's the latest hotness for Timeout in Ruby?
[18:15:18] baweaver: Timeout::timeout is still its regular old fun self.
[18:17:06] Arkantos: has joined #ruby
[18:18:32] reber: has joined #ruby
[18:19:15] Joufflu: has joined #ruby
[18:24:00] Lytol: has joined #ruby
[18:33:04] elcontrastador: has joined #ruby
[18:34:54] crankhar1er: has joined #ruby
[18:39:24] lxsameer: has joined #ruby
[18:49:36] awkwords: has joined #ruby
[18:51:25] sgen: has joined #ruby
[18:53:43] Puffball: has joined #ruby
[18:54:24] queip: has joined #ruby
[18:58:57] dellavg_: has joined #ruby
[18:59:10] awkwords: has joined #ruby
[19:00:19] phaul: &list timeout
[19:00:19] rubydoc: OpenSSL::SSL::Session#timeout, Object#timeout, Timeout.timeout, WEBrick::Utils.timeout
[19:01:03] phaul: &ri Object#timeout
[19:01:03] rubydoc: https://ruby-doc.org/stdlib-2.5.3/libdoc/timeout/rdoc/Object.html#method-i-timeout
[19:01:35] jrhorn424: has joined #ruby
[19:01:36] al2o3-cr: Object.timeout is deprecated.
[19:01:53] awkwords: has joined #ruby
[19:02:40] al2o3-cr: *Object#timeout
[19:04:43] tdy: has joined #ruby
[19:25:44] goatish: has joined #ruby
[19:37:02] Arkantos_: has joined #ruby
[19:43:27] OrangeManBad: has joined #ruby
[19:49:08] SeepingN: has joined #ruby
[19:55:01] queip: has joined #ruby
[19:57:34] cagomez: has joined #ruby
[20:00:19] jobewan: has joined #ruby
[20:05:33] Mike11: has joined #ruby
[20:24:14] Puffball: has joined #ruby
[20:24:52] Ghosties: has joined #ruby
[20:25:46] gnufied: has joined #ruby
[20:26:36] Ghosties: hello, are there any ruby gems for screen recording?
[20:28:41] pabs: has joined #ruby
[20:30:43] cagomez: has joined #ruby
[20:31:28] cagomez: has joined #ruby
[20:32:16] cagomez: has joined #ruby
[20:33:02] cagomez: has joined #ruby
[20:33:47] cagomez: has joined #ruby
[20:36:10] OrangeManBad: has joined #ruby
[20:38:06] Ghosties: has left #ruby: ("fat people are easier to kidnap")
[20:41:24] sgen: has joined #ruby
[20:42:58] elphe: has joined #ruby
[20:44:10] cow[moo]: has joined #ruby
[20:47:22] Puffball: has joined #ruby
[20:54:08] queip: has joined #ruby
[20:55:38] impermanence: has joined #ruby
[20:58:04] akem: has joined #ruby
[20:59:51] conta: has joined #ruby
[21:04:06] sanscoeur: has joined #ruby
[21:25:54] Azure: has joined #ruby
[21:26:14] cow[moo]: has joined #ruby
[21:33:57] sanscoeur: has joined #ruby
[21:40:35] minimal_life: has joined #ruby
[21:44:07] sanscoeur: has joined #ruby
[21:46:11] themsay: has joined #ruby
[21:50:44] nowhere_man: has joined #ruby
[21:51:41] queip: has joined #ruby
[21:54:22] patr0clus: has joined #ruby
[21:56:30] sagax: has joined #ruby
[22:02:19] dviola: has joined #ruby
[22:07:06] Arkantos: has joined #ruby
[22:20:40] akem: has joined #ruby
[22:22:17] akemot: has joined #ruby
[22:34:24] quipa_: has joined #ruby
[22:36:50] dionysus69_: has joined #ruby
[22:37:15] catsed: has joined #ruby
[22:37:25] duckpuppy: has joined #ruby
[22:38:01] Puffball_: has joined #ruby
[22:38:09] elphe_: has joined #ruby
[22:38:36] DTZUZO_: has joined #ruby
[22:38:42] jokke2: has joined #ruby
[22:39:02] Xeago_: has joined #ruby
[22:39:17] asphyxia_: has joined #ruby
[22:39:26] funnel_: has joined #ruby
[22:40:22] havenwood: has joined #ruby
[22:40:24] NightMonkey: has joined #ruby
[22:40:27] j416: has joined #ruby
[22:40:36] chongtxtx: has joined #ruby
[22:40:41] Fire-Dragon-DoL: has joined #ruby
[22:41:21] segy: has joined #ruby
[22:41:22] akosednar: has joined #ruby
[22:43:16] beowuff: has joined #ruby
[22:43:24] spiette: has joined #ruby
[22:47:11] cow[moo]: has joined #ruby
[22:53:18] queip: has joined #ruby
[22:57:52] postmodern: has joined #ruby
[23:01:53] tdy: has joined #ruby
[23:02:09] AJA4350: has joined #ruby
[23:04:32] Tom-_: has joined #ruby
[23:05:22] dachi`: has joined #ruby
[23:05:26] dachi`: how do you do
[23:05:28] dachi`: something like
[23:05:33] dachi`: public_send(res.reason_phrase == "Created" ? *[:a, "PR Created"] : *[:a, "PR not created"])
[23:06:01] dachi`: I mean the :a in last would be :b
[23:06:04] BH23: has joined #ruby
[23:06:19] baweaver: dachi`: What's the full code there?
[23:06:29] baweaver: You should probably break it into multiple methods
[23:07:03] baweaver: 99% of the time you don't need send
[23:07:06] dachi`: So I'd like to convert [:smth, "Arg"] to argument that I can pass to function
[23:07:12] dachi`: baweaver: Ok i'll break it down then
[23:08:26] cow[moo]: has joined #ruby
[23:08:57] nfk: has joined #ruby
[23:09:26] dachi: has joined #ruby
[23:09:57] zenspider: dachi: that looks like an if statement to me. Don't be clever when you don't need to be
[23:10:23] dachi`: zenspider: thanks
[23:10:28] Radar: strong agree with zenspider
[23:11:13] Radar: https://gist.github.com/radar/e7b5d2811fa30fb8dfd6de961ee30cf7
[23:12:08] dachi`: Radar: thanks I broke it down, I was just thinking that one line would be better, but still this looks nicer now
[23:12:27] Radar: Out of those three options I would pick B. Ternaries are good for short bits of code and I think the string there makes it too long.
[23:12:35] Radar: lines of code are cheap
[23:14:19] dachi`: yep thanks guys. i'll leave, i had this bnc but seems something went wrang. I'm in a hurry, tty later maybe, I remember Radar and some other names for 4-5 years already
[23:17:49] discopatrick: has joined #ruby
[23:20:49] zenspider: I could use some jruby help. I posted 2 questions in #jruby but they're dead
[23:29:43] Radar: zenspider: fire away
[23:32:52] zenspider: first foray into jruby in a looong time. Having some problems. Installed 9.2.4.0 via rbenv, but I'm getting heavy handed warnings on every invocation about reflection & security? Is there something I should be doing?
[23:32:54] awkwords: has joined #ruby
[23:32:56] zenspider: I've literally just installed and fired off
[23:33:01] zenspider: Second problem: rbenv seems to hate jgem and probably everything else? stubs just bitch and give up. I have to full path everything. Clue?
[23:33:35] zenspider: java is openjdk 11 2018-09-25 via homebrew
[23:38:19] sanscoeur: has joined #ruby
[23:47:29] queip: has joined #ruby
[23:51:42] dubuc: has joined #ruby
[23:51:49] dubuc: Hello channel
[23:51:59] dubuc: I have a ruby noob question probably
[23:52:47] hutch: has joined #ruby
[23:52:49] dubuc: I am using Puppet provided by my platform team. And for some reason, an Array.to_yaml.lines returns Enumerable instead of Array.
[23:53:01] dubuc: Ruby 2.1.9 apparently.
[23:54:03] zenspider: that is expected
[23:54:12] zenspider: what are you actually trying to do?
[23:54:49] zenspider: you probably don't want `to_yaml.lines` at all, right? what would you be doing with the yaml?
[23:55:17] dubuc: Well this got committed into the puppet module I am using
[23:55:18] dubuc: https://github.com/pcfens/puppet-filebeat/commit/ca68224b93ab2d6d72d4416211d4e0f09a61c55d#diff-3f3faf2c3bb11906e4bf525391805942R195
[23:56:07] zenspider: that's old / bad code. hands down
[23:56:11] dubuc: and essentially dooes to_yaml.lines[1..-1].join()
[23:56:17] zenspider: that worked in... 1.9, maybe? 1.8 definitely
[23:56:31] zenspider: they're trying to drop the first line
[23:56:34] zenspider: for whatever reason
[23:56:54] zenspider: you can modify it to be lines.to_a[1..-1]
[23:56:58] dubuc: yeah because the to_yaml adds ["--- blah blah"]
[23:57:05] dubuc: and it doesnt want the "---"
[23:57:05] zenspider: but really, what they're doing is stupid
[23:57:21] zenspider: that first line is absolutely valid yaml.
[23:57:37] dubuc: it is! but it's a yaml config file. I think they wanted a workaround
[23:57:56] dubuc: So what would be the best practice way to drop the "---"?
[23:58:08] zenspider: there's a lot wrong with that diff fragment already
[23:58:52] zenspider: ah. ok. I see. they're doing this in a yml.erb file... so no, the --- isn't valid at that location... the problem is using to_yaml at all. sec.
[23:59:15] dubuc: btw thanks a lot for your insight zenspider
[23:59:48] awkwords: has joined #ruby