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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # sakai-info Change History #
2
2
 
3
+ ## 0.2.1 ##
4
+
5
+ *Released 2012-02-25*
6
+
7
+ * Bugfix: pending quiz count was reporting incorrect numbers
8
+ * Bugfix: published quiz list was actually listing pending quizzes
9
+
3
10
  ## 0.2.0 ##
4
11
 
5
12
  *Released 2012-02-24*
data/README.md CHANGED
@@ -10,8 +10,8 @@ tool or the libraries.
10
10
 
11
11
  ## Meta ##
12
12
 
13
- last updated: 2012-02-24
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.0.gem`.
29
+ `sakai-info-0.2.1.gem`.
30
30
 
31
31
  Cleanup built gems using:
32
32
 
@@ -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-24 daveadams@gmail.com
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 sam_publishedassessment_t " +
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
@@ -327,7 +327,7 @@ module SakaiInfo
327
327
  end
328
328
  if self.published_quiz_count > 0
329
329
  result["quizzes"]["published"] =
330
- self.pending_quizzes.collect { |pq| pq.serialize(:summary) }
330
+ self.published_quizzes.collect { |pq| pq.serialize(:summary) }
331
331
  end
332
332
  result
333
333
  end
@@ -1,3 +1,3 @@
1
1
  module SakaiInfo
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
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-24 00:00:00 -06:00
18
+ date: 2012-02-25 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency