strongmind-platform-sdk 2.16.3 → 3.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/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/platform_sdk/id_mapper/client.rb +0 -36
- data/lib/platform_sdk/id_mapper/models/domain.rb +1 -1
- data/lib/platform_sdk/id_mapper/models.rb +0 -2
- data/lib/platform_sdk/version.rb +1 -1
- metadata +2 -4
- data/lib/platform_sdk/id_mapper/models/domain_lti.rb +0 -18
- data/lib/platform_sdk/id_mapper/models/lti.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af0bb9bb301d3ac21ab8b51699c2b55acda385db50d9b40da2f98369c2d1fb03
|
4
|
+
data.tar.gz: 0acb9f790fb2385dd132f0c83da3210285c60320fe471b6d728b2490239de3f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8becc23e5879eb0c645cd15b3b4780831f09337e8f01d40573abb2e5f0756ca7cfb75bc3cebd6c865995a81e8e13a928ebcdbc9339ae6e2cce18dfb25e8a6110
|
7
|
+
data.tar.gz: 336cefee6f259e50f5efef3b4d86ecb6f3778cfa3427043f86a8d5bbbebb7f2f49d59bdd652f2441b3c357cc649e1688df30c32c8c3eea6a4551d1b624ba4b80
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
strongmind-platform-sdk (
|
4
|
+
strongmind-platform-sdk (3.0.0)
|
5
5
|
aws-sdk-secretsmanager (~> 1.66)
|
6
6
|
devise
|
7
7
|
faraday (~> 2.5, >= 2.5.2)
|
@@ -215,7 +215,7 @@ GEM
|
|
215
215
|
tzinfo (2.0.6)
|
216
216
|
concurrent-ruby (~> 1.0)
|
217
217
|
unicode-display_width (2.4.2)
|
218
|
-
uri (0.12.
|
218
|
+
uri (0.12.2)
|
219
219
|
validate_email (0.1.6)
|
220
220
|
activemodel (>= 3.0)
|
221
221
|
mail (>= 2.2.5)
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ First [configure your GitHub credentials](#configure-github-credentials)
|
|
11
11
|
Install the gem and add to the application's Gemfile by executing:
|
12
12
|
|
13
13
|
```
|
14
|
-
gem "strongmind-platform-sdk", "~>
|
14
|
+
gem "strongmind-platform-sdk", "~> 3.0.0"
|
15
15
|
```
|
16
16
|
|
17
17
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
@@ -62,42 +62,6 @@ module PlatformSdk
|
|
62
62
|
body = get(path)
|
63
63
|
models::Domain.new(body)
|
64
64
|
end
|
65
|
-
|
66
|
-
def domain_ltis(**params)
|
67
|
-
path = 'api/v1/domainLtis/'
|
68
|
-
body = get(path, params)
|
69
|
-
list_of_models(models::DomainLti, body)
|
70
|
-
end
|
71
|
-
|
72
|
-
def domain_ltis_by_domain(domain_name)
|
73
|
-
path = "api/v1/domains/#{domain_name}/ltis/"
|
74
|
-
body = get(path)
|
75
|
-
list_of_models(models::DomainLti, body)
|
76
|
-
end
|
77
|
-
|
78
|
-
def domain_ltis_by_lti(lti_identifier)
|
79
|
-
path = "api/v1/domainLtis/?lti__identifier=#{lti_identifier}"
|
80
|
-
body = get(path)
|
81
|
-
list_of_models(models::DomainLti, body)
|
82
|
-
end
|
83
|
-
|
84
|
-
def domain_lti_by_domain_and_lti(domain_name, lti_identifier)
|
85
|
-
path = "api/v1/domains/#{domain_name}/ltis/#{lti_identifier}/"
|
86
|
-
body = get(path)
|
87
|
-
list_of_models(models::DomainLti, body)
|
88
|
-
end
|
89
|
-
|
90
|
-
def ltis(**params)
|
91
|
-
path = 'api/v1/ltis/'
|
92
|
-
body = get(path, params)
|
93
|
-
list_of_models(models::Lti, body)
|
94
|
-
end
|
95
|
-
|
96
|
-
def lti_by_identifier(identifier)
|
97
|
-
path = "api/v1/ltis/#{identifier}/"
|
98
|
-
body = get(path)
|
99
|
-
models::Lti.new(body)
|
100
|
-
end
|
101
65
|
end
|
102
66
|
end
|
103
67
|
end
|
@@ -5,7 +5,7 @@ module PlatformSdk
|
|
5
5
|
module Models
|
6
6
|
# Domain object returned by IdMapper
|
7
7
|
class Domain
|
8
|
-
attr_accessor :id, :name, :key, :secret, :is_disabled, :partner
|
8
|
+
attr_accessor :id, :name, :key, :secret, :token, :is_disabled, :partner
|
9
9
|
|
10
10
|
def initialize(attributes = {})
|
11
11
|
attributes.each do |key, value|
|
data/lib/platform_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-platform-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platform Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -165,8 +165,6 @@ files:
|
|
165
165
|
- lib/platform_sdk/id_mapper/constants.rb
|
166
166
|
- lib/platform_sdk/id_mapper/models.rb
|
167
167
|
- lib/platform_sdk/id_mapper/models/domain.rb
|
168
|
-
- lib/platform_sdk/id_mapper/models/domain_lti.rb
|
169
|
-
- lib/platform_sdk/id_mapper/models/lti.rb
|
170
168
|
- lib/platform_sdk/identity.rb
|
171
169
|
- lib/platform_sdk/identity/clients.rb
|
172
170
|
- lib/platform_sdk/one_roster.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module PlatformSdk
|
4
|
-
module IdMapper
|
5
|
-
module Models
|
6
|
-
# DomainLti object returned by IdMapper
|
7
|
-
class DomainLti
|
8
|
-
attr_accessor :key, :secret, :is_disabled, :domain, :domain_name, :lti, :lti_title, :lti_identifier, :lti_is_disabled
|
9
|
-
|
10
|
-
def initialize(attributes = {})
|
11
|
-
attributes.each do |key, value|
|
12
|
-
instance_variable_set("@#{key}", value)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module PlatformSdk
|
4
|
-
module IdMapper
|
5
|
-
module Models
|
6
|
-
# Lti object returned by IdMapper
|
7
|
-
class Lti
|
8
|
-
attr_accessor :id, :title, :identifier, :is_disabled
|
9
|
-
|
10
|
-
def initialize(attributes = {})
|
11
|
-
attributes.each do |key, value|
|
12
|
-
send("#{key}=", value)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|