payload-api 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bab3aa7202ecf90ba0e88cfcdaf91eda738ee593a1ea2d38a390a29fd87b9813
4
- data.tar.gz: 4380c8d7ce309fc97aed9a2f07d1fa0d1516b3b9823de647df831483ded14f54
3
+ metadata.gz: 410ad3e6bb1c8ab38fea40e0d5046c66e1b5d63e3b5fe50aa3931a7b42980d91
4
+ data.tar.gz: 2f5ac214282f541c13c43b70bf40b43be119a9153e4dd4075729c15461e02c75
5
5
  SHA512:
6
- metadata.gz: eb8e9e90bb630c7dbccd23161e0dac207ff53068e6f95b8438a03dc9b3176a423b2da3e85b9b188f77a023ead8b583723528e50c83c35c143f08e8925580ac4f
7
- data.tar.gz: b6d2f1d4a6923fc64ea7b08b8d89247fd9905ee212e90a93e80e6984d20ea20c93c88c573ff4f6ee31450d0af0460c2a4678c16bc809568b27076e7a71ef29fa
6
+ metadata.gz: 0f6b7bff1dab83694ced4da76dadced6eb1741be8ee3bc52cba51b586857b155ba78da726d90abc624c36b9e5e3bea1c4031ecbe04a35befca6b65e4b2061b8f
7
+ data.tar.gz: 675be795cafbd78ebef628fcdf7f7802c87c08fc4c12edb12f86fd9f9d74779a62cac81963e074b16450db922f28e9527eb7a24f71962b83ac4153bdb479f4ac
@@ -0,0 +1,26 @@
1
+ name: Publish Gem
2
+ on:
3
+ release:
4
+ types: [published]
5
+ jobs:
6
+ publish:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v4
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.0.1
14
+ - run: |
15
+ mkdir -p $HOME/.gem
16
+ touch $HOME/.gem/credentials
17
+ chmod 0600 $HOME/.gem/credentials
18
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
19
+ gem build *.gemspec
20
+ gem push *.gem
21
+ env:
22
+ # Make sure to update the secret name
23
+ # if yours isn't named RUBYGEMS_AUTH_TOKEN
24
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
25
+ - run: gem build *.gemspec
26
+ - run: gem push *.gem
@@ -194,10 +194,10 @@ module Payload
194
194
  next
195
195
  end
196
196
 
197
- raise error.new(data['description'], data)
197
+ raise error.new(data['error_description'], data)
198
198
  end
199
199
 
200
- raise Payload::BadRequest.new(data['description'], data)
200
+ raise Payload::BadRequest.new(data['error_description'], data)
201
201
  end
202
202
  end
203
203
  end
@@ -10,6 +10,10 @@ module Payload
10
10
  @poly = { 'type' => 'client' }
11
11
  end
12
12
 
13
+ class OAuthToken < ARMObject
14
+ @spec = { 'object' => 'oauth_token', 'endpoint' => '/oauth/token' }
15
+ end
16
+
13
17
  class Account < ARMObject
14
18
  @spec = { 'object' => 'account' }
15
19
  end
@@ -23,7 +27,7 @@ module Payload
23
27
  end
24
28
 
25
29
  class Org < ARMObject
26
- @spec = { 'object' => 'org', 'endoint' => '/account/orgs' }
30
+ @spec = { 'object' => 'org', 'endpoint' => '/account/orgs' }
27
31
  end
28
32
 
29
33
  class Transaction < ARMObject
@@ -1,3 +1,3 @@
1
1
  module Payload
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payload-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Payload
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple library to interface with the Payload API. See https://docs.payload.co
14
14
  for details.
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".github/workflows/publish.yml"
20
21
  - ".github/workflows/ruby-app.yml"
21
22
  - LICENSE
22
23
  - README.md
@@ -35,7 +36,7 @@ homepage: https://docs.payload.co
35
36
  licenses:
36
37
  - MIT
37
38
  metadata: {}
38
- post_install_message:
39
+ post_install_message:
39
40
  rdoc_options: []
40
41
  require_paths:
41
42
  - lib
@@ -50,8 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
51
  - !ruby/object:Gem::Version
51
52
  version: '0'
52
53
  requirements: []
53
- rubygems_version: 3.3.15
54
- signing_key:
54
+ rubygems_version: 3.2.15
55
+ signing_key:
55
56
  specification_version: 4
56
57
  summary: Payload ruby library
57
58
  test_files: []