sraas 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sraas/consumer.rb +14 -1
- 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: 976687dbc60a097bdeb24f7c1c68bd8b92492d25
|
4
|
+
data.tar.gz: 6a22d1b74c7a15624569aecd11af24d9548ffeff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c95e2e38ff5a4aed083a1500ebdc3164c32e1114fa64e9beb7f4013ea7460d9d5caeaa90938043502eb2aa7ab14d255249fa63ac593d5e67bc66a598d3212d
|
7
|
+
data.tar.gz: e110e7f96c4335f1c41f528917bfed62f916594ade52c0304027f667a349af49c09123ee256f178bdd542feda9e30711017b97a60d613646a6045fc8465976a3
|
data/lib/sraas/consumer.rb
CHANGED
@@ -34,8 +34,21 @@ module Sraas
|
|
34
34
|
info['learned_everything']
|
35
35
|
end
|
36
36
|
|
37
|
+
def first_learn_at
|
38
|
+
info['first_learn_at']
|
39
|
+
end
|
40
|
+
|
41
|
+
def first_review_at
|
42
|
+
info['first_review_at']
|
43
|
+
end
|
44
|
+
|
45
|
+
# Nicer accessors for binary
|
37
46
|
def learned_anything?
|
38
|
-
info['
|
47
|
+
info['first_learn_at']
|
48
|
+
end
|
49
|
+
|
50
|
+
def reviewed_anything?
|
51
|
+
info['first_review_at']
|
39
52
|
end
|
40
53
|
|
41
54
|
def next_review_at
|
data/lib/sraas/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sraas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Siegel
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.6.
|
164
|
+
rubygems_version: 2.6.14
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: SRAAS.io API Gem
|