strongmind-platform-sdk 3.9.1 → 3.9.3

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: 2c4e1f27b602fdeeec574fdca1aa2d501b034ae880ae96559651f6cc80fc73a7
4
- data.tar.gz: 844e8aa6a75702de3edcbc3ad7227c56eedb67c8de2de259dce24dea94793c8a
3
+ metadata.gz: db7f2bbcd164f38c2f732399aafa0346b26d411aa3e8815c2491d2d90efe0799
4
+ data.tar.gz: ddc55d1cf0bd02e0ce885b45092b6617ab6df642b6ea767f9eb4c36a9ed7a67c
5
5
  SHA512:
6
- metadata.gz: b7c648a61096300e5476ef6f34bb0438987459dfcc38bab3060f8665ae911717d6f57330fd54e65e7d8144c84b37724a4009568894365b538febd686cbcad16e
7
- data.tar.gz: f53a3260112c78b92e8541f00bd6bd46367164e5d24a4887a50aca5a4144c8661426dc3f0d7b84e5463d8662b2efe24de242be8e9b6efc387d41e22c490e6334
6
+ metadata.gz: a04af30b6a35b8fa9cd0a19033bb29b3fb04a2af7ab1e4c6949fc4e2c6c68e0c8471e808613ca12908cf93daae5e94f6ddfe642d55990db566386d3d2e77dcb2
7
+ data.tar.gz: b9f8384ffb7d50a31b6f051db824c8bd2c97b8a10af8578c03feffff13cff33ed4e709a793c332f9c9ed1824ce279523451a47cc439573d89ce356f74307f172
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.9.1)
4
+ strongmind-platform-sdk (3.9.3)
5
5
  aws-sdk-secretsmanager (~> 1.66)
6
6
  devise
7
7
  faraday (~> 2.5, >= 2.5.2)
@@ -124,10 +124,6 @@ GEM
124
124
  nokogiri (1.16.0)
125
125
  mini_portile2 (~> 2.8.2)
126
126
  racc (~> 1.4)
127
- nokogiri (1.16.0-x86_64-darwin)
128
- racc (~> 1.4)
129
- nokogiri (1.16.0-x86_64-linux)
130
- racc (~> 1.4)
131
127
  omniauth (2.1.2)
132
128
  hashie (>= 3.4.6)
133
129
  rack (>= 2.2.3)
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", "~> 3.9.1"
14
+ gem "strongmind-platform-sdk", "~> 3.9.2"
15
15
  ```
16
16
 
17
17
  If bundler is not being used to manage dependencies, install the gem by executing:
@@ -13,6 +13,7 @@ module PlatformSdk
13
13
  @credentials = credentials
14
14
 
15
15
  raise ArgumentError, "learnosity_host is required" if @credentials[:learnosity_host].nil?
16
+ raise ArgumentError, "learnosity_version is required" if @credentials[:learnosity_version].nil?
16
17
  raise ArgumentError, "service is required" if @credentials[:service].nil?
17
18
  raise ArgumentError, "consumer_key is required" if @credentials[:consumer_key].nil?
18
19
  raise ArgumentError, "consumer_secret is required" if @credentials[:consumer_secret].nil?
@@ -38,7 +39,8 @@ module PlatformSdk
38
39
  end
39
40
 
40
41
  def post(path, request)
41
- uri = URI("https://#{@credentials[:learnosity_host]}/#{path}")
42
+ request["organisation_id"] = @credentials[:organisation_id]
43
+ uri = URI("https://#{@credentials[:learnosity_host]}/#{@credentials[:learnosity_version]}/#{path}")
42
44
  Net::HTTP.post_form(uri, sign(request))
43
45
  end
44
46
  end
@@ -2,13 +2,13 @@
2
2
 
3
3
  module PlatformSdk
4
4
  module Sentry
5
- def sentry_ignored(event, ignored_urls = sentry_ignored_urls)
5
+ def self.sentry_ignored(event, ignored_urls = sentry_ignored_urls)
6
6
  return true if ignored_urls.any? { |url| event.url.match?(url) }
7
7
 
8
8
  false
9
9
  end
10
10
 
11
- def sentry_ignored_urls
11
+ def self.sentry_ignored_urls
12
12
  [
13
13
  %r{/up$}i,
14
14
  %r{/health_check$}i,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.9.1"
4
+ VERSION = "3.9.3"
5
5
  end
@@ -3,6 +3,7 @@ module PlatformSdk
3
3
 
4
4
  type credentials = {
5
5
  learnosity_host: string,
6
+ learnosity_version: string,
6
7
  services: string,
7
8
  consumer_key: string,
8
9
  consumer_secret: string,
@@ -22,7 +23,7 @@ module PlatformSdk
22
23
 
23
24
  def initialize: (credentials: credentials) -> void
24
25
 
25
- def sign: (request: Hash[string, untyped]) -> Hash[string, untyped]
26
+ def sign: (request: Hash[string, untyped]) -> string
26
27
 
27
28
  def post: (path: string, request: Hash[string, untyped]) -> Net::HTTPResponse
28
29
  end
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: 3.9.1
4
+ version: 3.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-31 00:00:00.000000000 Z
11
+ date: 2024-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday