sakai-info 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/README.md +3 -3
- data/lib/sakai-info/samigo.rb +2 -2
- data/lib/sakai-info/site.rb +1 -1
- data/lib/sakai-info/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,8 +10,8 @@ tool or the libraries.
|
|
10
10
|
|
11
11
|
## Meta ##
|
12
12
|
|
13
|
-
last updated: 2012-02-
|
14
|
-
author: David Adams (daveadams@gmail.com)
|
13
|
+
last updated: 2012-02-25
|
14
|
+
author: David Adams (daveadams@gmail.com)
|
15
15
|
github url: https://github.com/daveadams/sakai-info
|
16
16
|
|
17
17
|
## Testing ##
|
@@ -26,7 +26,7 @@ Use `rake` to test and build the gem:
|
|
26
26
|
$ rake gem:build
|
27
27
|
|
28
28
|
The resulting gem will be saved to the working directory as
|
29
|
-
`sakai-info-0.2.
|
29
|
+
`sakai-info-0.2.1.gem`.
|
30
30
|
|
31
31
|
Cleanup built gems using:
|
32
32
|
|
data/lib/sakai-info/samigo.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# SakaiInfo::Samigo library
|
3
3
|
#
|
4
4
|
# Created 2012-02-17 daveadams@gmail.com
|
5
|
-
# Last updated 2012-02-
|
5
|
+
# Last updated 2012-02-25 daveadams@gmail.com
|
6
6
|
#
|
7
7
|
# https://github.com/daveadams/sakai-info
|
8
8
|
#
|
@@ -45,7 +45,7 @@ module SakaiInfo
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def self.count_by_site_id(site_id)
|
48
|
-
DB.connect.fetch("select count(*) as count from
|
48
|
+
DB.connect.fetch("select count(*) as count from sam_assessmentbase_t " +
|
49
49
|
"where id in (select qualifierid from sam_authzdata_t " +
|
50
50
|
"where agentid=? and functionid='EDIT_ASSESSMENT')",
|
51
51
|
site_id).first[:count].to_i
|
data/lib/sakai-info/site.rb
CHANGED
@@ -327,7 +327,7 @@ module SakaiInfo
|
|
327
327
|
end
|
328
328
|
if self.published_quiz_count > 0
|
329
329
|
result["quizzes"]["published"] =
|
330
|
-
self.
|
330
|
+
self.published_quizzes.collect { |pq| pq.serialize(:summary) }
|
331
331
|
end
|
332
332
|
result
|
333
333
|
end
|
data/lib/sakai-info/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sakai-info
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Adams
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-02-
|
18
|
+
date: 2012-02-25 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|