meducation_sdk 1.6.14 → 1.6.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2aacdae0cd83a2793b14319ddd2fc4b7241a37f7
4
- data.tar.gz: 47de75a36bdb6d31e388051743ac5d74d99bfe2c
3
+ metadata.gz: 466581b1a7869e2e4830951c1f7c55ca92185453
4
+ data.tar.gz: 3166c4ca38fa32ea5549f5c554ef7d3ba3c17105
5
5
  SHA512:
6
- metadata.gz: aafdfe29c85d330c67c24a78d8db87aa73b8ac37f30568d4cc656114b62de756f5d0f9ec490d3b57919e88e0f95dcadaca3078f532751261b26a16f230e02ced
7
- data.tar.gz: a860a7a15a0f8af1e407b64c5b5d14a6ced4612c1f98c6e735750da08b7137dd00596f9a545a5953e4035c55568fda0f7eba8b9bf1bf38a5fd7df14040805632
6
+ metadata.gz: 08ca2bd79360ef517bf0cde5524ad9cf3033d3552a87c68db46958b33c801d4783383a4b1adc1a9c7b8bc0ddb7ebddfac8e3cd51e89297741abe42996b56aaa5
7
+ data.tar.gz: cb87e23312e528e182ad7f866f0345eb5ca91b5c5d2e70242802266477461d31954f1478a9e07d6de5bb11c044da18982dd3265f254bbe2e16ad3c0894e8ba10
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.6.15 / 2014-03-24
2
+ * [BUGFIX] Add collection onto collection topics
3
+
1
4
  # 1.6.14 / 2014-03-24
2
5
  * [BUGFIX] Fixes users for collection topic
3
6
 
@@ -4,6 +4,10 @@ module MeducationSDK
4
4
 
5
5
  self.path = "/collection_topics"
6
6
 
7
+ def collection
8
+ @collection ||= Collection.find(collection_id)
9
+ end
10
+
7
11
  def authors
8
12
  @authors ||= Author.where(id: author_ids)
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module MeducationSDK
2
- VERSION = "1.6.14"
2
+ VERSION = "1.6.15"
3
3
  end
@@ -10,6 +10,7 @@ module MeducationSDK
10
10
  MeducationSDK::Comment.expects(:where).with(id: [7, 8, 9])
11
11
  topic.comments
12
12
  end
13
+
13
14
  def test_authors_calls_spi
14
15
  authors = [
15
16
  Author.new(user_id: 8),
@@ -21,6 +22,12 @@ module MeducationSDK
21
22
  assert_equal authors, topic.instance_variable_get(:@authors)
22
23
  end
23
24
 
25
+ def test_collection_calls_spi
26
+ topic = CollectionTopic.new(collection_id: 373)
27
+ MeducationSDK::Collection.expects(:find).with(373)
28
+ topic.collection
29
+ end
30
+
24
31
  def test_users_calls_spi
25
32
  authors = [
26
33
  Author.new(user_id: 8),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meducation_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.14
4
+ version: 1.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  version: '0'
259
259
  requirements: []
260
260
  rubyforge_project:
261
- rubygems_version: 2.2.1
261
+ rubygems_version: 2.1.9
262
262
  signing_key:
263
263
  specification_version: 4
264
264
  summary: The SDK for Meducation
@@ -320,3 +320,4 @@ test_files:
320
320
  - test/resources/vote_test.rb
321
321
  - test/services/recommender_test.rb
322
322
  - test/test_helper.rb
323
+ has_rdoc: