cognitive_faculty 3.0.1 → 3.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1c78a5552d4d4af308e816866272d3f7be296b5a7bee2add05db61436a599e0
4
- data.tar.gz: cb98e2311b120b2205b9360b39338bce0d581017aa79ff10ecc21cbc71a08d40
3
+ metadata.gz: df6391298b9b225cce26473f9cf5417bfdf509b0cf1718ca9fe0c16cf7a9f4e6
4
+ data.tar.gz: af18301c8ac4f1402a5fe1ef05a1c31d15836958243c334f52f651bf0b1a2847
5
5
  SHA512:
6
- metadata.gz: 3c0ea41abb42a32e132e0eb36b66039af027962a52731ebc75f1cb8893fcb3c561a87cc3f8c32293ad1df04e2aae25d13432db3770ecd1f79a3615567a17a626
7
- data.tar.gz: 9bb19d71734bffd5f564123025fcb9b5ad7e7e32db563cab1a8014a09def2eb794eb65abf0eac3b974d0fb585d1ba3c66f4c6a25ef6c11bb9ba2dbaf5d0f04cf
6
+ metadata.gz: aefea7ca083a2bea0aa0482368899d35c18432a675364622fe18d5683bc491baab257074971c5b7983025e22cc084555374d8dec7d7b9e78e0873bd3426635a1
7
+ data.tar.gz: 622ff372ee9d79f7170f295999902f9169aaaadc6ba0878e81f5a097e6517670c496cb470b337ebb36e3c841cbdb13a82a33ffea157bb592c953f7dcf356b6df
data/.gitignore CHANGED
@@ -7,5 +7,8 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
 
10
+ # gem
11
+ *.gem
12
+
10
13
  # rspec failure tracking
11
14
  .rspec_status
data/Gemfile.lock CHANGED
@@ -1,41 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cognitive_faculty (3.0.0)
5
- activemodel (~> 6.0.2.1)
6
- activesupport (~> 6.0.2.1)
7
- faraday_middleware (~> 0.12.2)
8
- her (~> 1.1.0)
9
- oauth2 (~> 1.4.0)
4
+ cognitive_faculty (3.0.1)
5
+ activemodel (>= 6.0)
6
+ activesupport (>= 6.0.2.1)
7
+ faraday_middleware (>= 0.12.2)
8
+ her (>= 1.1.0)
9
+ oauth2 (>= 1.4.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activemodel (6.0.2.2)
15
- activesupport (= 6.0.2.2)
16
- activesupport (6.0.2.2)
14
+ activemodel (6.0.3.3)
15
+ activesupport (= 6.0.3.3)
16
+ activesupport (6.0.3.3)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
- zeitwerk (~> 2.2)
21
+ zeitwerk (~> 2.2, >= 2.2.2)
22
22
  ast (2.4.0)
23
- concurrent-ruby (1.1.6)
23
+ concurrent-ruby (1.1.7)
24
24
  diff-lcs (1.3)
25
25
  faraday (0.17.3)
26
26
  multipart-post (>= 1.2, < 3)
27
- faraday_middleware (0.12.2)
27
+ faraday_middleware (0.14.0)
28
28
  faraday (>= 0.7.4, < 1.0)
29
29
  her (1.1.0)
30
30
  activemodel (>= 4.2.1)
31
31
  faraday (>= 0.8, < 1.0)
32
32
  multi_json (~> 1.7)
33
- i18n (1.8.3)
33
+ i18n (1.8.5)
34
34
  concurrent-ruby (~> 1.0)
35
35
  jaro_winkler (1.5.4)
36
- jwt (2.2.1)
37
- minitest (5.14.1)
38
- multi_json (1.14.1)
36
+ jwt (2.2.2)
37
+ minitest (5.14.2)
38
+ multi_json (1.15.0)
39
39
  multi_xml (0.6.0)
40
40
  multipart-post (2.1.1)
41
41
  oauth2 (1.4.4)
@@ -77,7 +77,7 @@ GEM
77
77
  tzinfo (1.2.7)
78
78
  thread_safe (~> 0.1)
79
79
  unicode-display_width (1.7.0)
80
- zeitwerk (2.3.0)
80
+ zeitwerk (2.4.0)
81
81
 
82
82
  PLATFORMS
83
83
  ruby
@@ -27,8 +27,6 @@ module CognitiveFaculty
27
27
  end
28
28
  end
29
29
 
30
- private
31
-
32
30
  def eligible?(lp_certs_url, learning_path, user)
33
31
  self.class.get_raw("#{lp_certs_url}/certificates/#{user[:username]}/#{learning_path[:slug]}/status") do |status|
34
32
  status[:data][:eligible]
@@ -1,3 +1,3 @@
1
1
  module CognitiveFaculty
2
- VERSION = "3.0.1".freeze
2
+ VERSION = "3.1.0".freeze
3
3
  end
@@ -34,10 +34,9 @@ module CognitiveFaculty
34
34
 
35
35
  # Response
36
36
  c.use Her::Middleware::DefaultParseJSON
37
- c.use Faraday::Response::Logger, nil, body: true
38
37
 
39
38
  # Adapter
40
- c.use Faraday::Adapter::NetHttp
39
+ c.adapter Faraday::Adapter::NetHttp
41
40
  end
42
41
  require "cognitive_faculty/models"
43
42
  api
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cognitive_faculty
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Aoqui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-11 00:00:00.000000000 Z
11
+ date: 2021-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler