polar_sh 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -19
- data/lib/polar/client.rb +1 -1
- data/lib/polar/configuration.rb +1 -1
- data/lib/polar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec3d4123f3e156b0f1831d24dd9657d0c12c34597d3123d9d22ca43913881d63
|
4
|
+
data.tar.gz: c716d766937d240ced1bb1f1fb1fa5b2a1539ff6895ae7db9077d169957d721c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c7ec8ef2136ba7a530579c2f01c97ac7a030d7b31c0c0a1de5a71f4dec1d5887370f34620c9fa6a86476569456d366060e1e3d184ff0f54c2c20423ff1f118
|
7
|
+
data.tar.gz: 5f7ad2caeeff953d840da4b026ef6ee14e8ddc554760a6c405434c98a961b577da364da8deea9d120471001b5f8c0a27e714aa927c06269d2935aba75ab49b82
|
data/README.md
CHANGED
@@ -1,34 +1,31 @@
|
|
1
|
-
#
|
1
|
+
# Polar.sh Ruby API client
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/polar_sh`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
Still in development. [API docs](https://docs.polar.sh/api)
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
12
|
-
|
13
7
|
```bash
|
14
|
-
bundle add
|
15
|
-
```
|
16
|
-
|
17
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
18
|
-
|
19
|
-
```bash
|
20
|
-
gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
8
|
+
bundle add polar_sh
|
21
9
|
```
|
22
10
|
|
23
11
|
## Usage
|
24
12
|
|
25
|
-
|
13
|
+
```ruby
|
14
|
+
Polar.configure do |config|
|
15
|
+
config.access_token = "polar_..."
|
16
|
+
config.sandbox = true
|
17
|
+
end
|
26
18
|
|
27
|
-
|
19
|
+
# Fetch a list of customers
|
20
|
+
pp Polar::Customer.list
|
21
|
+
```
|
28
22
|
|
29
|
-
|
23
|
+
## Development
|
30
24
|
|
31
|
-
|
25
|
+
```sh
|
26
|
+
$ bundle
|
27
|
+
$ rake spec
|
28
|
+
```
|
32
29
|
|
33
30
|
## Contributing
|
34
31
|
|
data/lib/polar/client.rb
CHANGED
data/lib/polar/configuration.rb
CHANGED
data/lib/polar/version.rb
CHANGED