atlas_rb 0.0.64 → 0.0.68
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/.version +1 -1
- data/Gemfile.lock +24 -24
- data/lib/atlas_rb/authentication.rb +16 -0
- data/lib/atlas_rb.rb +1 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2627912266a2a3cb2f9e104559f36fe96523c23f973f8d3806ae8fe2ddb2121
|
4
|
+
data.tar.gz: b1f9aa0fb5951f17fb5b55ed5b5d3b9a5be21e85eda32dae15c88069325ce43d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4aa6605d781e61bcd38da8f0b2872c8918fa2d481f070bb8c99cc1783a4bf7171d02e5f3d6741a8b6157193df4e0cf28fe47f21b9a07161c6a16d75a151838c
|
7
|
+
data.tar.gz: 4927365203f81f6c81bbe37f1f0bf4da7f8cb6620240511ecf38c367d7c2063238ed59ef0dca4890217e0fae0742b7243c1a5ac0a6e89d2cc04885531468d176
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.68
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
atlas_rb (0.0.
|
4
|
+
atlas_rb (0.0.68)
|
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.
|
13
|
-
faraday (2.
|
14
|
-
faraday-net_http (>= 2.0, < 3.
|
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
|
20
|
-
multipart-post (~> 2)
|
21
|
-
faraday-net_http (3.
|
22
|
-
net-http
|
23
|
-
json (2.
|
24
|
-
logger (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.
|
26
|
+
net-http (0.6.0)
|
27
27
|
uri
|
28
|
-
rake (13.
|
29
|
-
rspec (3.
|
30
|
-
rspec-core (~> 3.
|
31
|
-
rspec-expectations (~> 3.
|
32
|
-
rspec-mocks (~> 3.
|
33
|
-
rspec-core (3.
|
34
|
-
rspec-support (~> 3.
|
35
|
-
rspec-expectations (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.
|
38
|
-
rspec-mocks (3.
|
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.
|
41
|
-
rspec-support (3.
|
42
|
-
uri (0.
|
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
|
data/lib/atlas_rb.rb
CHANGED
@@ -5,6 +5,7 @@ require "faraday/multipart"
|
|
5
5
|
require "faraday/follow_redirects"
|
6
6
|
require_relative "atlas_rb/version"
|
7
7
|
require_relative "atlas_rb/faraday_helper"
|
8
|
+
require_relative "atlas_rb/authentication"
|
8
9
|
require_relative "atlas_rb/resource"
|
9
10
|
require_relative "atlas_rb/community"
|
10
11
|
require_relative "atlas_rb/collection"
|
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.
|
4
|
+
version: 0.0.68
|
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:
|
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: []
|