atlas_rb 0.0.64 → 0.0.67

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: ab6441903c6dfc0b547d3349a7c42a994d3f32a112f6eccfef7e37f035f5c7b3
4
- data.tar.gz: fd0769537e740a7adf852242b5558537989ade4db09748c5af46f0af80cb5c09
3
+ metadata.gz: de92cd29032e6e991a698d9e230b9add827f7fbade1e163654ca9a14ebbebcf1
4
+ data.tar.gz: 8ef4e513d24a338a71b85e6123c0954a7ae39b4b7e202f46b58a9dded2e3df8b
5
5
  SHA512:
6
- metadata.gz: bc729f3fb35113d487c4eb48fd09b867ec8a62f0153fd5d8bf1221e1b09569ba32965f1682e8721e80ded2e1f862cde29d66966d8b61ab241fcf051de5048901
7
- data.tar.gz: 606132489666d00fb2e025992777b03e77cc6e3a4f4529de71921d8c2d7030bde8a255c1f415051081c86b1a10e16c103b1c816ca78dbafbd4567b21e1f07f17
6
+ metadata.gz: '0991e13334d5ba89e9b5c4d5baa6bc041347335954354b85cf1cad850b0c0d32b6a7655d60bdc6d27c30c650c645ac8aba8590707c3b606da8c0416ec98bc8d6'
7
+ data.tar.gz: adea4ac51f02e39b8da892f7a34ab09cac66737603e54e3a3d74296700d3a79918f6417774ef9d995b9f84638755a6d5621d1c1dbe65a0fc1d2ce8074d6268da
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.64
1
+ 0.0.67
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.64)
4
+ atlas_rb (0.0.67)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -9,37 +9,37 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- diff-lcs (1.5.0)
13
- faraday (2.12.0)
14
- faraday-net_http (>= 2.0, < 3.4)
12
+ diff-lcs (1.6.1)
13
+ faraday (2.13.1)
14
+ faraday-net_http (>= 2.0, < 3.5)
15
15
  json
16
16
  logger
17
17
  faraday-follow_redirects (0.3.0)
18
18
  faraday (>= 1, < 3)
19
- faraday-multipart (1.0.4)
20
- multipart-post (~> 2)
21
- faraday-net_http (3.3.0)
22
- net-http
23
- json (2.7.2)
24
- logger (1.6.1)
19
+ faraday-multipart (1.1.0)
20
+ multipart-post (~> 2.0)
21
+ faraday-net_http (3.4.0)
22
+ net-http (>= 0.5.0)
23
+ json (2.11.3)
24
+ logger (1.7.0)
25
25
  multipart-post (2.4.1)
26
- net-http (0.4.1)
26
+ net-http (0.6.0)
27
27
  uri
28
- rake (13.0.6)
29
- rspec (3.12.0)
30
- rspec-core (~> 3.12.0)
31
- rspec-expectations (~> 3.12.0)
32
- rspec-mocks (~> 3.12.0)
33
- rspec-core (3.12.2)
34
- rspec-support (~> 3.12.0)
35
- rspec-expectations (3.12.3)
28
+ rake (13.2.1)
29
+ rspec (3.13.0)
30
+ rspec-core (~> 3.13.0)
31
+ rspec-expectations (~> 3.13.0)
32
+ rspec-mocks (~> 3.13.0)
33
+ rspec-core (3.13.3)
34
+ rspec-support (~> 3.13.0)
35
+ rspec-expectations (3.13.4)
36
36
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.12.0)
38
- rspec-mocks (3.12.6)
37
+ rspec-support (~> 3.13.0)
38
+ rspec-mocks (3.13.4)
39
39
  diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.12.0)
41
- rspec-support (3.12.1)
42
- uri (0.13.1)
40
+ rspec-support (~> 3.13.0)
41
+ rspec-support (3.13.3)
42
+ uri (1.0.3)
43
43
 
44
44
  PLATFORMS
45
45
  x86_64-linux
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AtlasRb
4
+ class Authentication
5
+ extend AtlasRb::FaradayHelper
6
+
7
+ def self.login(nuid)
8
+ result = JSON.parse(connection({ nuid: nuid }).post('/token')&.body)
9
+ end
10
+
11
+ def self.groups(nuid)
12
+ token = login(nuid)
13
+ # TODO
14
+ end
15
+ end
16
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.64
4
+ version: 0.0.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-03 00:00:00.000000000 Z
11
+ date: 2025-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.12'
69
- description:
69
+ description:
70
70
  email:
71
71
  - david.g.cliff@gmail.com
72
72
  executables: []
@@ -85,6 +85,7 @@ files:
85
85
  - bin/console
86
86
  - bin/setup
87
87
  - lib/atlas_rb.rb
88
+ - lib/atlas_rb/authentication.rb
88
89
  - lib/atlas_rb/blob.rb
89
90
  - lib/atlas_rb/collection.rb
90
91
  - lib/atlas_rb/community.rb
@@ -94,12 +95,12 @@ files:
94
95
  - lib/atlas_rb/version.rb
95
96
  - lib/atlas_rb/work.rb
96
97
  - sig/atlas_rb.rbs
97
- homepage:
98
+ homepage:
98
99
  licenses:
99
100
  - MIT
100
101
  metadata:
101
102
  rubygems_mfa_required: 'false'
102
- post_install_message:
103
+ post_install_message:
103
104
  rdoc_options: []
104
105
  require_paths:
105
106
  - lib
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  version: '0'
116
117
  requirements: []
117
118
  rubygems_version: 3.2.33
118
- signing_key:
119
+ signing_key:
119
120
  specification_version: 4
120
121
  summary: Ruby gem for Atlas API.
121
122
  test_files: []