fraul

Results 35 issues of fraul

It would be nice to have `browser.prefetch?` that detects if the request is coming from a Omnibar prefetch that modern browsers perform. This stackoverflow answer (https://stackoverflow.com/questions/9852257/http-header-to-detect-a-preload-request-by-google-chrome) tells that each browser...

Without the `permitted_classes` param, backups will fail as of Ruby 3.1. The offending line will try to load `yaml_file`, which will be something like `Backup/.data/database/S3.yml`. That file contains a YAML...

I'm trying to refer to my Webpacker entry packs (JS and CSS) in my `serviceworker.js.erb` file, however it's throwing the following JS exception: ``` Uncaught Error: NoMethodError: undefined method `asset_pack_path'...

**Describe the bug** tl; dr: Puma 5.0.3 and 5.0.4 have a bug that, when `fork_worker` is present in the configuration file, a phased restart (`kill -USR1 $(cat puma.pid)`) causes about...

bug

Before I issue a PR I'm opening this question for clarification. After a successful subscription is created, pay creates a `Pay::Charge` in the database (see https://github.com/pay-rails/pay/blob/73f53778ea2c411992d65380d4b38572f2faaa12/lib/pay/stripe/subscription.rb#L85-L88) The comment there states...

question

While debugging some bugs in our app, we arrived this piece of code when syncing a subscription: https://github.com/pay-rails/pay/blob/4c60f16da2a446ecf0bc40b025d2a8f9a4dc7057/lib/pay/stripe/subscription.rb#L46-L49 This is a somewhat recent addition from https://github.com/pay-rails/pay/commit/ed10e864503a364f1e0f17355a7094f89579dea2, due to fix issue...

Summary: This PR fixes the `Stripe::Webhooks::PaymentMethodAttached` not setting the `default` attribute correctly when creating the `Pay::PaymentMethod` in the database Explanation: Using Stripe's dashboard, you can manually add payment methods to...

This PR fixes a non-deterministic `pay_customer#subscription` return if using Postgres. That happened because in Postgres, if an order clause is not specified, the results return in non-deterministic order (https://stackoverflow.com/questions/6585574/postgres-default-sort-by-id-worldship). Psql...

Stripe's `sync_subscriptions` class method wasn't accepting any params. However, it was not syncing canceled subscriptions, because, by Stripe's docs: > By default, returns a list of subscriptions that have not...

`SyncCustomer`'s concern uses an `after_update` callback to sync the customer with the Payment Processor by enqueuing a `CustomerSyncJob`. This simple PR changes this callback to an `after_commit`. Using an `after_update`...