stripe-cli-ruby 0.1.0 → 1.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +29 -0
- data/lib/stripe_cli/upstream.rb +1 -1
- data/lib/stripe_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 716c4967de22f40d4dfe8f076f1edbe19a0035a5b0acd0bd3748e9366e5eca27
|
4
|
+
data.tar.gz: b2aec13af6ae086b44d9b103f93c61494348652efa614c875d22d7c43c323891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50ea69e4d05b347ba2da778dec587978339b1ea3d618ffff9e56d33a5470641b040de1de6905569a4cd0bec7cd394b887f1dcd5f2433cc4a44175e48ee96b8be
|
7
|
+
data.tar.gz: 4e740f7aa86936e0348e395448327b53e3d5bfe6530f17cedb79a3b81488d53d81ae33d9818ed7229c41c3cc02fdd39600ea35146412a983a49f09ec4cffea96
|
data/README.md
CHANGED
@@ -27,6 +27,35 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
27
27
|
gem install stripe-cli-ruby
|
28
28
|
```
|
29
29
|
|
30
|
+
> [!NOTE]
|
31
|
+
> Add the [included puma plugin](#forwarding-events-to-your-web-server) in order to listen for webhook events in development.
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
### Ruby
|
36
|
+
|
37
|
+
The gem makes available `StripeCLI.executable` which is the path to the vendored standalone executable.
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
require "stripe-cli-ruby"
|
41
|
+
StripeCLI.executable
|
42
|
+
# => "/path/to/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/stripe-cli-ruby-0.1.0-x86_64-linux/exe/x86_64-linux/stripe"
|
43
|
+
```
|
44
|
+
|
45
|
+
### Command line
|
46
|
+
|
47
|
+
This gem provides an executable `stripe` shim that will run the vendored standalone executable.
|
48
|
+
|
49
|
+
```bash
|
50
|
+
# where is the shim?
|
51
|
+
$ bundle exec which stripe
|
52
|
+
/path/to/installs/ruby/3.3/bin/stripe
|
53
|
+
|
54
|
+
# run the actual executable through the shim
|
55
|
+
$ bundle exec stripe --help
|
56
|
+
stripe version 1.25.1
|
57
|
+
```
|
58
|
+
|
30
59
|
## Forwarding events to your web server
|
31
60
|
|
32
61
|
Make sure `Stripe.api_key` is set, e.g. in `config/initializers/stripe.rb`:
|
data/lib/stripe_cli/upstream.rb
CHANGED
data/lib/stripe_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe-cli-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zacharias Knudsen
|
@@ -73,7 +73,7 @@ licenses:
|
|
73
73
|
- MIT
|
74
74
|
metadata:
|
75
75
|
source_code_uri: https://github.com/zachasme/stripe-cli-ruby
|
76
|
-
changelog_uri: https://github.com/zachasme/stripe-cli-ruby/CHANGELOG.md
|
76
|
+
changelog_uri: https://github.com/zachasme/stripe-cli-ruby/blob/main/CHANGELOG.md
|
77
77
|
rubygems_mfa_required: 'true'
|
78
78
|
rdoc_options: []
|
79
79
|
require_paths:
|