David Flaherty

Results comments of David Flaherty

I accomplished this by parsing XML sitemaps using Ruby: ``` xml = URI.open sitemap_file_path data = Hash.from_xml(xml) urls = data['urlset'].present? ? data['urlset']['url'] : data['sitemapindex']['sitemap'] urls.map { |url| url['loc'] }.flatten ```...

@jdalton This makes sense, though I'm surprised that the separator pattern `/,? +/` doesn't match a space, given that the comma is optional. Also, this means that there's no way...

@jdalton Yes, I understand. It's just somewhat unintuitive behavior, in my opinion - I would expect this function to match the separator regex before adding the omission, not after. But...

I believe that this issue has cropped up again - I'm not able to get inline object expansion working on master using the following: ``` ruby stripe_charge = Stripe::Charge.retrieve("ch_18WWaW4QFaGycgRKreD14QhN", :expand...

Thanks so much for your prompt response, @brandur! Just tried it out and it worked like a charm. I'll use this syntax moving forward.

Apologies - duplicate of https://github.com/stripe/stripe-ruby/issues/443.

FYI for anyone who stumbles onto this issue: it was resolved with https://github.com/Casecommons/pg_search/commit/38b62368d5f6bb7c6623dfc32eadad6110c4b72b.