sraas 0.3.10 → 0.3.11
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/lib/sraas/consumer.rb +16 -2
- data/lib/sraas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c0f8d2e5bc077641448b3524401fc2be175f829
|
4
|
+
data.tar.gz: 2a0a2bb8ac1732c8e427d3959263bb853f518625
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06de9a3698a30b84aec1c8f1fc623a96c6d5ee079e3f30ec8283997aa83b1be6378da639b1c62e2e2d82a7bedcda00e546914038dc29f263b3f3e1e9f38fe999
|
7
|
+
data.tar.gz: c79d560365d14871ad9a157af966b802343b7635d927c974bf53b662904bda2d69601515cc3f06160c1c85ea3f0e24518b90e36222916ce349266698efa7e06b
|
data/lib/sraas/consumer.rb
CHANGED
@@ -6,14 +6,28 @@ module Sraas
|
|
6
6
|
|
7
7
|
validates :consumer_uuid, presence: true
|
8
8
|
|
9
|
-
def
|
9
|
+
def available_to_review
|
10
10
|
info['available_to_review']
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def unavailable_to_review
|
14
|
+
info['unavailable_to_review']
|
15
|
+
end
|
16
|
+
|
17
|
+
def available_to_learn
|
14
18
|
info['available_to_learn']
|
15
19
|
end
|
16
20
|
|
21
|
+
# Renamed them to make method name same as sraas. ane they will be removed in the future
|
22
|
+
def learn_count
|
23
|
+
puts "DEPRECATION WARNING: THIS WILL BE REMOVED IN THE FUTURE. PLEASE USE available_to_learn"
|
24
|
+
available_to_learn
|
25
|
+
end
|
26
|
+
def review_count
|
27
|
+
puts "DEPRECATION WARNING: THIS WILL BE REMOVED IN THE FUTURE. PLEASE USE available_to_review"
|
28
|
+
available_to_review
|
29
|
+
end
|
30
|
+
|
17
31
|
def cards_remaining
|
18
32
|
info['lesson_remaining_cards']
|
19
33
|
end
|
data/lib/sraas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sraas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Siegel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|