profile
viewpoint

ErwinM/acts_as_tenant 1144

Easy multi-tenancy for Rails in a shared database setup.

excid3/betterminitest.com 20

Learn how to write better Minitest tests

excid3/acts_as_tenant 19

Easy multi-tenancy for Rails in a shared database setup.

afomera/tailwind-jsbundling-example 9

Trying out the jsbundling-rails gem with TailwindCSS

excid3/administrate 9

A Rails engine that helps you put together a super-flexible admin dashboard.

excid3/asdf-vars 8

An asdf extension that safely sets global and per-project environment variables, based upon rbenv

applocale/applocale-ruby 7

RubyGem for interfacing with AppLocale.dev to pull translations

excid3/animatedgifme 7

A ruby library for http://animatedgif.me

excid3/actioncable-examples 3

Action Cable Examples

pull request commentexcid3/noticed

Support for StringIO input type for cert_path option

Could you also add examples to the iOS delivery method doc?

https://github.com/excid3/noticed/blob/master/docs/delivery_methods/ios.md

erbunao

comment created time in 3 days

Pull request review commentexcid3/noticed

Support for StringIO input type for cert_path option

 def development?         end       end +      def valid_cert_path?+        case cert_path+        when StringIO

Let's also add File here too, just in case the cert has already been read for whatever reason.

        when File, StringIO
erbunao

comment created time in 3 days

PullRequestReviewEvent
PullRequestReviewEvent

issue commentexcid3/noticed

iOS delivery support certificate based auth method

We didn't really want to encourage certificate authentication because it requires you to renew that cert yearly which makes it more of a pain to manage. Token auth doesn't have that restriction which is really nice.

That said, I'd be happy to accept a PR to support it.

erbunao

comment created time in 3 days

issue commentexcid3/noticed

iOS delivery method does not allow cert_path to be a string

Ah yeah! This easy enough?

raise ArgumentError, "Could not find APN cert at '#{cert_path}'" unless cert_path.is_a?(String) && File.exist?(cert_path)

Then we can include an example in the docs for File or StringIO objects. I don't think we really need a validation for those, do you?

erbunao

comment created time in 4 days

issue commentexcid3/noticed

iOS delivery method does not allow cert_path to be a string

Are there any code changes needed? Since we just pass the value from that method directly to Apnotic it should work already. I guess just updating the docs with the example?

erbunao

comment created time in 4 days

issue commentexcid3/noticed

iOS delivery method does not allow cert_path to be a string

All the Apnotic examples in their readme show it with a filename for cert_path. Does it actually accept a File object?

erbunao

comment created time in 4 days

issue commentexcid3/noticed

iOS delivery method does not allow cert_path to be a string

If you had

config/certs/ios/production.p8
erbunao

comment created time in 4 days

issue commentexcid3/noticed

iOS delivery method does not allow cert_path to be a string

StringIO isn't currently supported, but I'd love to! Just hadn't thought about that yet. 😜

Your option also needs to be a symbol so that it calls the method with the matching name (just like an ActiveRecord callback). So you should have:

  deliver_by :ios, {
    format:            :ios_format,
    cert_path:         :ios_cert_path,
  }

  def ios_cert_path
  end
erbunao

comment created time in 4 days

issue closedpay-rails/pay

How to manually sync a subscription?

Lets say I updated a subscription in the stripe dashboard, but didn't have the webhooks running, so I want to force it to pull changes from stripe, how would I do that?

closed time in 5 days

rathboma

push eventpay-rails/pay

Matthew Rathbone

commit sha a6ef45d758f4c6a6b2803fa40b396d0c11aab2ac

Remove quantity when used with Stripe Checkout shortcut * Fix fake processor trial days issue fix #473 * fixes checkout url, quantity is only valid for line items * Update billable.rb * Update billable.rb * Update billable.rb * Update billable.rb * Update billable.rb Co-authored-by: Chris Oliver <excid3@gmail.com>

view details

push time in 5 days

PR merged pay-rails/pay

Quantity delete fix

Quantity is not valid as a top level property. We already include it for line items, but stripe checkout breaks if you don't delete it from the top level options.

+8 -3

3 comments

1 changed file

rathboma

pr closed time in 5 days

push eventrathboma/pay

Chris Oliver

commit sha e620415991f0b6091a2c1051fb14bb9a672e364a

Update billable.rb

view details

push time in 5 days

push eventrathboma/pay

Chris Oliver

commit sha 989b44f80e002339b17b38659b4fbee5c80f611f

Update billable.rb

view details

push time in 6 days

pull request commentpay-rails/pay

Quantity delete fix

I figure it'd be better to delete the quantity when we use it instead so I moved the delete there. Thanks!

rathboma

comment created time in 6 days

push eventrathboma/pay

Chris Oliver

commit sha a3bdb4fa36af89e05d0c9a3696c0dee1edd8e76f

Update billable.rb

view details

push time in 6 days

push eventrathboma/pay

Chris Oliver

commit sha 70e19af6310a5e0e5da8b112078da2debe834ac3

Update billable.rb

view details

push time in 6 days

push eventrathboma/pay

Chris Oliver

commit sha d85b804cedd91fa2e5c410b7bbef3c7e16851501

Update billable.rb

view details

push time in 6 days

create barnchgorails-screencasts/422-hotwire-datatables

branch : master

created branch time in 6 days

created repositorygorails-screencasts/422-hotwire-datatables

Datatables from Scratch in Rails using Hotwire

created time in 6 days

issue commenthotwired/turbo

Turbo Streams for GET forms

I'm basically recreating datatables.net with Hotwire. I set up two forms that use method="get" action="" to basically update the current page URL with the new params when you change the search filter or items per page.

Basically the same thing as mentioned here: https://github.com/hotwired/turbo/pull/52#issuecomment-829287801

I do think driving the Turbo Frame using the GET form makes sense, especially if it updates the URL.

My initial thought was just to use the TurboStream to replace the item on the page. It just seems intuitive to do that. I was surprised that it didn't work.

excid3

comment created time in 6 days

issue openedhotwired/turbo

Turbo Streams for GET forms

Search forms are a really common pattern. Currently, Turbo does not submit these forms with the Accept turbo stream content type.

It would be really useful for building reactive search results if we could update search results immediately using Turbo Stream responses from the server.

This seems to be the relevant line that does not include the content type in the Accept header. https://github.com/hotwired/turbo/blob/main/src/core/drive/form_submission.ts#L137-L143

@seanpdoyle did you mention this was an anti-pattern in a comment somewhere? I was curious as to why, as this seems like a great use case for Turbo Streams.

created time in 6 days

pull request commentbasecamp/console1984

Add SSH configuration for usernames

Haha no worries @jorgemanrubia! Thanks for your work on this!

excid3

comment created time in 6 days

delete branch excid3/console1984

delete branch : sshd-config

delete time in 6 days

push eventpay-rails/pay

Matthew Rathbone

commit sha ce203f53e45e7c4125f025da27891d84aa9045a9

Fix fake processor trial days issue (#474) * Fix fake processor trial days issue fix #473 * Update billable.rb * Update billable.rb Co-authored-by: Chris Oliver <excid3@gmail.com>

view details

push time in 9 days

PR merged pay-rails/pay

Fix fake processor trial days issue

fix #473

+11 -1

2 comments

2 changed files

rathboma

pr closed time in 9 days

issue closedpay-rails/pay

`trial_period_days` doesn't work with the fake processor

When using the fake_processor, the following throws an error:

    user.payment_processor.subscribe(
      plan: plan,
      name: slug,
      quantity: 1,
      trial_period_days: 14
    )

Workaround is to use trial_ends_at, but the wiki tells you to use trial_period_days

closed time in 9 days

rathboma

pull request commentpay-rails/pay

Fix fake processor trial days issue

Thank you @rathboma 👍

rathboma

comment created time in 9 days

push eventexcid3/noticed

Joe Masilotti

commit sha f9935c5986f79daef27a6ae3229bc34ec1e7fb4a

Update ios.md (#181)

view details

push time in 9 days

more