axm 1.0.1 → 2.0.0
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/CHANGELOG.md +6 -0
- data/README.md +4 -4
- data/lib/axm/secret.rb +8 -6
- data/lib/axm/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f620f0a8aabfc0e8fe72ecee19764a23173aeaf36cd98806a3398291b82556f1
|
|
4
|
+
data.tar.gz: '082de365f468b36e85e9a6761e68b0f91ce2a81fa0ea7e59dfdd5ced0f1a2554'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d87bbf0091d31e70f57f7409f63ae67832b9fea2594acaac6aa03614ca3fe3fdb4594df3116d4e0676590f39c5deca8d4360274eab48d052edb34ab1d3f3a75
|
|
7
|
+
data.tar.gz: e390b5821d5fd30511adbeec636ac57bfe464555b235782873be07f3e740ea5b432688c8d43219f5b214fdc5683d92b74b8d81b76b34de2f48793fbcde0da800
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -48,12 +48,12 @@ client.get('/v1/some/endpoint', { limit: 10 })
|
|
|
48
48
|
|
|
49
49
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
50
50
|
|
|
51
|
-
If the credentials are stored in the `secrets/` directory, you can use the `Secret.read` method to load them:
|
|
51
|
+
If the credentials are stored in the `secrets/` directory, you can use the `Axm::Secret.read` method to load them:
|
|
52
52
|
|
|
53
53
|
```ruby
|
|
54
|
-
private_key = Secret.read('private_key.pem')
|
|
55
|
-
client_id = Secret.read('client_id')
|
|
56
|
-
key_id = Secret.read('key_id')
|
|
54
|
+
private_key = Axm::Secret.read('private_key.pem')
|
|
55
|
+
client_id = Axm::Secret.read('client_id')
|
|
56
|
+
key_id = Axm::Secret.read('key_id')
|
|
57
57
|
|
|
58
58
|
client = Axm::Client.new(private_key:, client_id:, key_id:)
|
|
59
59
|
```
|
data/lib/axm/secret.rb
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
module
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
module Axm
|
|
4
|
+
module Secret
|
|
5
|
+
def self.read(filename)
|
|
6
|
+
File.read("secrets/#{filename}").strip
|
|
7
|
+
end
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
def self.write(filename, content)
|
|
10
|
+
File.write("secrets/#{filename}", content.strip)
|
|
11
|
+
end
|
|
10
12
|
end
|
|
11
13
|
end
|
data/lib/axm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: axm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nick-f
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-24 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: jwt
|
|
@@ -23,6 +24,7 @@ dependencies:
|
|
|
23
24
|
- - "~>"
|
|
24
25
|
- !ruby/object:Gem::Version
|
|
25
26
|
version: '3.1'
|
|
27
|
+
description:
|
|
26
28
|
email:
|
|
27
29
|
- nick@nickf.dev
|
|
28
30
|
executables: []
|
|
@@ -52,6 +54,7 @@ metadata:
|
|
|
52
54
|
homepage_uri: https://github.com/nick-f/axm
|
|
53
55
|
source_code_uri: https://github.com/nick-f/axm
|
|
54
56
|
rubygems_mfa_required: 'true'
|
|
57
|
+
post_install_message:
|
|
55
58
|
rdoc_options: []
|
|
56
59
|
require_paths:
|
|
57
60
|
- lib
|
|
@@ -66,7 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
66
69
|
- !ruby/object:Gem::Version
|
|
67
70
|
version: '0'
|
|
68
71
|
requirements: []
|
|
69
|
-
rubygems_version: 3.
|
|
72
|
+
rubygems_version: 3.5.22
|
|
73
|
+
signing_key:
|
|
70
74
|
specification_version: 4
|
|
71
75
|
summary: Gem to interact with the Apple Business Manager/Apple School Manager API
|
|
72
76
|
test_files: []
|