open_recycling 0.0.5 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd4c3a28c3f4f329e8b1419881879a4d2fad212b4bdeb06e778096901884158a
4
- data.tar.gz: 4f2f6a075f8be59d6cb34461ad5529b2fc272828301d68b307078fa6e81b733b
3
+ metadata.gz: 83b6950ac3629ddca167954c0a70c2732630d4dc2aec69d9692d04fbfa441109
4
+ data.tar.gz: 33759ffbea083ce3d2f12cbe39c11c8d3b9a52d6a1ee4b5a3dfb23dd653b5a09
5
5
  SHA512:
6
- metadata.gz: 509765a296ea65bd8e4bff833f67efe67750ba357717d5e32b510f6fc2a2066335c161785e7608517e37deaaf34c09dcf5b3c5db29ea82f20dfe96b67c6e0e2f
7
- data.tar.gz: dd0743472692ed7fe408d2d5b9c6a53cfa9fa985ad1012e1a5ad7e615fee13341c65a670beda9d1663ee1dd36c11694af9339c569c50febf1060a94ae5000b15
6
+ metadata.gz: c34ddbc7e202f943bdefe9d5a3bddf84c36b02f5a72f7e5e048910b44ade7c5efebb9146a70963686112bd77c4a536e099fe7eae7ec3bb7cbdaa0f0323fad64a
7
+ data.tar.gz: 49b93704c4c3c8629ed3cfb53d7bd73dd5cfc7fc02d16212b390838efaaad949bb875dfa228dbe8c8f357400bf1bff2af47017f4266e38e9c2a79b799e54b55b
@@ -1,4 +1,5 @@
1
1
  require_relative "applications"
2
+ require_relative "webhooks"
2
3
 
3
4
  module OpenRecycling
4
5
  module Apps
@@ -10,6 +11,13 @@ module OpenRecycling
10
11
  )
11
12
  end
12
13
 
14
+ def webhooks
15
+ @webhooks ||= OpenRecycling::Org::Webhooks.new(
16
+ base_url: module_url,
17
+ jwt_token: jwt_token
18
+ )
19
+ end
20
+
13
21
  private
14
22
 
15
23
  def module_url
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OpenRecycling
4
+ module Org
5
+ class Webhooks < OpenRecycling::Resource
6
+ def initialize(base_url: nil, jwt_token: nil)
7
+ super(
8
+ root_node_singular: "webhook",
9
+ root_node_plural: "webhooks",
10
+ api_url: "#{base_url}/webhooks",
11
+ jwt_token: jwt_token
12
+ )
13
+ end
14
+ end
15
+ end
16
+ end
@@ -5,8 +5,8 @@ module OpenRecycling
5
5
  class RecyclingAccounts < OpenRecycling::Resource
6
6
  def initialize(base_url: nil, jwt_token: nil)
7
7
  super(
8
- root_node_singular: "recyclingAccount",
9
- root_node_plural: "recyclingAccounts",
8
+ root_node_singular: "recycling_account",
9
+ root_node_plural: "recycling_accounts",
10
10
  api_url: "#{base_url}/recycling_accounts",
11
11
  jwt_token: jwt_token
12
12
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenRecycling
4
- VERSION = "0.0.5"
4
+ VERSION = "0.0.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_recycling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Open Recycling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-14 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -45,6 +45,7 @@ files:
45
45
  - lib/open_recycling.rb
46
46
  - lib/open_recycling/apps/applications.rb
47
47
  - lib/open_recycling/apps/client.rb
48
+ - lib/open_recycling/apps/webhooks.rb
48
49
  - lib/open_recycling/client.rb
49
50
  - lib/open_recycling/client_error.rb
50
51
  - lib/open_recycling/core/client.rb