meducation_sdk 1.4.1 → 1.4.2

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: b607114f02f3900417a438be5644f80a9701f9e8
4
- data.tar.gz: b9e631994839f87aa28275aa6c8633231d56fe8b
3
+ metadata.gz: f1c0141ee3f1af97206be0455388c51aa2205b56
4
+ data.tar.gz: c03fe358197e2f791b13015ab44598afd2782164
5
5
  SHA512:
6
- metadata.gz: 528d9858a5885ff1084b418a194ede5d8a6903bed8767c86e1b2a16747bb57167a4e9fabdc1419f6e9c5f2d4d3c4a7ad472da9c8e385563379416ce6c2fa7060
7
- data.tar.gz: a12442293a4a5ab62e4d8a152aede39e36e09ac2ed1ae173dab5cd4319f464effb7caeff84374808e41ae18aa46b2b30bea61eda9a026d523d563add14c97f79
6
+ metadata.gz: 72ca02e93e22684c2c27cea695f9c003ff82b56966634e2190f067215642e4134af4a4879220f7faf83036233cdf132985c0046989fd62ac219bce1e70ee76f8
7
+ data.tar.gz: c07f881a2c54cd17158db4577505f4c9cee4e6c4b574a4784c1adabb4cd9c5b35962ef9b93352187972c8fc62c3623309f846c7a28a6597c14f5dac02b941441
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.4.2 / 2014-02-13
2
+ * [BUGFIX] Fix badges mocking
3
+
1
4
  # 1.4.1 / 2014-02-13
2
5
  * [FEATURE] Add badges
3
6
  * [FEATURE] Add blogs and bloggers
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/answerer_badges"
5
5
  end
6
6
 
7
- class AnswererBadgeMock < BadgeMock
7
+ class AnswererBadgeMock < AnswererBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -10,15 +10,6 @@ module MeducationSDK
10
10
  @user ||= User.find(user_id)
11
11
  end
12
12
  end
13
-
14
- class BadgeMock < Badge
15
- extend Loquor::ResourceMock
16
-
17
- self.attributes = {
18
- id: 1,
19
- user_id: 1
20
- }
21
- end
22
13
  end
23
14
  end
24
15
 
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/befriender_badges"
5
5
  end
6
6
 
7
- class BefrienderBadgeMock < BadgeMock
7
+ class BefrienderBadgeMock < BefrienderBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/citizen_badges"
5
5
  end
6
6
 
7
- class CitizenBadgeMock < BadgeMock
7
+ class CitizenBadgeMock < CitizenBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/commentator_badges"
5
5
  end
6
6
 
7
- class CommentatorBadgeMock < BadgeMock
7
+ class CommentatorBadgeMock < CommentatorBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/community_member_badges"
5
5
  end
6
6
 
7
- class CommunityMemberBadgeMock < BadgeMock
7
+ class CommunityMemberBadgeMock < CommunityMemberBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/contributor_badges"
5
5
  end
6
6
 
7
- class ContributorBadgeMock < BadgeMock
7
+ class ContributorBadgeMock < ContributorBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/eminent_author_badges"
5
5
  end
6
6
 
7
- class EminentAuthorBadgeMock < BadgeMock
7
+ class EminentAuthorBadgeMock < EminentAuthorBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/enlightener_badges"
5
5
  end
6
6
 
7
- class EnlightenerBadgeMock < BadgeMock
7
+ class EnlightenerBadgeMock < EnlightenerBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/inquisitive_mind_badges"
5
5
  end
6
6
 
7
- class InquisitiveMindBadgeMock < BadgeMock
7
+ class InquisitiveMindBadgeMock < InquisitiveMindBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/photogenic_badges"
5
5
  end
6
6
 
7
- class PhotogenicBadgeMock < BadgeMock
7
+ class PhotogenicBadgeMock < PhotogenicBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/questioner_badges"
5
5
  end
6
6
 
7
- class QuestionerBadgeMock < BadgeMock
7
+ class QuestionerBadgeMock < QuestionerBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -4,7 +4,9 @@ module MeducationSDK
4
4
  self.path = "/badges/respected_author_badges"
5
5
  end
6
6
 
7
- class RespectedAuthorBadgeMock < BadgeMock
7
+ class RespectedAuthorBadgeMock < RespectedAuthorBadge
8
+ extend Loquor::ResourceMock
9
+ self.attributes = { id: 1, user_id: 1 }
8
10
  end
9
11
  end
10
12
  end
@@ -1,3 +1,3 @@
1
1
  module MeducationSDK
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
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.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  requirements: []
231
231
  rubyforge_project:
232
- rubygems_version: 2.2.1
232
+ rubygems_version: 2.1.9
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: The SDK for Meducation
@@ -284,3 +284,4 @@ test_files:
284
284
  - test/resources/user_test.rb
285
285
  - test/resources/vote_test.rb
286
286
  - test/test_helper.rb
287
+ has_rdoc: