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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3d2ab7bd1dfd64b9adabac8a25c332f37b0deed
4
- data.tar.gz: fa5a27ca9a4972f565520a8e7344182a3162d969
3
+ metadata.gz: 6c0f8d2e5bc077641448b3524401fc2be175f829
4
+ data.tar.gz: 2a0a2bb8ac1732c8e427d3959263bb853f518625
5
5
  SHA512:
6
- metadata.gz: 40041d5136b5ce79baf02388f01495d63505c47b87088e0bdc4408c230661476ddc5a15933ec2fcc58a03699a99bb28a93b9e2cb6a7fe5644aadb51eaab481b2
7
- data.tar.gz: b27c0aec1b31346b15e7c909c58a45f404b2ce669ff0aa3db864ab7156bb67540c843a148b2c4b40acfc326c7379ba539589a71c9482235662aa485c218a0a62
6
+ metadata.gz: 06de9a3698a30b84aec1c8f1fc623a96c6d5ee079e3f30ec8283997aa83b1be6378da639b1c62e2e2d82a7bedcda00e546914038dc29f263b3f3e1e9f38fe999
7
+ data.tar.gz: c79d560365d14871ad9a157af966b802343b7635d927c974bf53b662904bda2d69601515cc3f06160c1c85ea3f0e24518b90e36222916ce349266698efa7e06b
@@ -6,14 +6,28 @@ module Sraas
6
6
 
7
7
  validates :consumer_uuid, presence: true
8
8
 
9
- def review_count
9
+ def available_to_review
10
10
  info['available_to_review']
11
11
  end
12
12
 
13
- def learn_count
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
@@ -1,3 +1,3 @@
1
1
  module Sraas
2
- VERSION = '0.3.10'
2
+ VERSION = '0.3.11'
3
3
  end
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.10
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-25 00:00:00.000000000 Z
11
+ date: 2018-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client