learnworlds 0.1.1 → 0.1.2

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: 326b7da781aae52fef008a7b6c28e38ac7df6bd5f7d3e7aaa63a2f49736e3422
4
- data.tar.gz: 0d9967da29d5c941b8470d3d0baf4e2c3d6ed287314cd0faaa02afcd6113b795
3
+ metadata.gz: 0e7ca973754e0870e699b5e871fc215b1a8c3a2c14151740ac7d4487c6f2979d
4
+ data.tar.gz: f916575b2f0d23fdae3ae7bb8bac79a78d4841dafc89595dd36c44e91f580417
5
5
  SHA512:
6
- metadata.gz: d4136813e98e0ab31e54a4abe278f66d6cc63c0eb887913be7cd2948589d4ae740bcc9091d149e49ee945f6655323de3a4560e1f45c1e326a342d7a3d43dc932
7
- data.tar.gz: af249f49f09b4c2d7d1dc476f9bc0dee42c55a795e6cac0ff0a5f8833106bdeb03c8f81ae5c15cdfe5c8ae8a24bd4d0b52ee87d28fdbdf5d6568796a7e0262f4
6
+ metadata.gz: 70163dadb335f7bb27438f3c2c9c96e66903bf0082944196cfd1b5be4479596dc14e0c250495f1bf05b658a5dc03ea7c7b57dffce98140093fb7bfb4f418ab28
7
+ data.tar.gz: cdef31edef774d50c4e8198bd8140ca25d92008150b9fec0c7e79739bc617d511ff1e72ade575cd4933455c02e956fedd8d5fde44304aaf9be0a9527ec0cc3c6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.1] - 2022-06-29
3
+ ## [0.1.2] - 2022-07-06
4
+
5
+ - Fix bug. Env var for client id was with double quotes
6
+ - Documentation updated
7
+
8
+ ## [0.1.1] - 2022-07-06
4
9
 
5
10
  - Add expires_in as parameter to persist_access_token_method
6
11
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- learnworlds (0.1.1)
4
+ learnworlds (0.1.2)
5
5
  faraday (~> 2.3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -61,7 +61,7 @@ LearnWorlds.configure do |config|
61
61
  # return nil if access_token is invalid and you want to proceed with the authentication process
62
62
  config.retrieve_access_token_method = ->() { Rails.cache.fetch("learnworlds_access_token") }
63
63
 
64
- config.persist_access_token_method = ->(access_token) { Rails.cache.write('learnworlds_access_token', access_token) } }
64
+ config.persist_access_token_method = ->(access_token, expires_in) { Rails.cache.write('learnworlds_access_token', access_token) } }
65
65
  end
66
66
  ```
67
67
 
@@ -9,7 +9,7 @@ module LearnWorlds
9
9
  attr_accessor :access_token, :expires_in
10
10
 
11
11
  def initialize(client_id: nil, client_secret: nil, base_url: nil, access_token: nil)
12
- @client_id = client_id || ENV.fetch('"LEARN_WORLDS_CLIENT_ID"')
12
+ @client_id = client_id || ENV.fetch('LEARN_WORLDS_CLIENT_ID')
13
13
  @client_secret = client_secret || ENV.fetch('LEARN_WORLDS_CLIENT_SECRET')
14
14
  @base_url = base_url || ENV.fetch('LEARN_WORLDS_BASE_URL')
15
15
  @access_token = access_token
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LearnWorlds
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learnworlds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nuno Correia