hypermodel 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,9 @@
1
1
  require 'test_helper'
2
2
  require 'json'
3
3
 
4
- class PostsControllerTest < ActionController::TestCase
4
+ class MemberTest < ActionController::TestCase
5
+ tests PostsController
6
+
5
7
  def setup
6
8
  @blog = Blog.create(title: 'Rants')
7
9
  @post = Post.create(
@@ -28,7 +30,6 @@ class PostsControllerTest < ActionController::TestCase
28
30
 
29
31
  test "returns the post" do
30
32
  body = JSON.load(response.body)
31
- pp body
32
33
 
33
34
  assert_equal @post.id.to_s, body['_id']
34
35
  assert_equal 'My post', body['title']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypermodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-21 00:00:00.000000000 Z
12
+ date: 2012-05-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -67,18 +67,23 @@ executables: []
67
67
  extensions: []
68
68
  extra_rdoc_files: []
69
69
  files:
70
+ - lib/hypermodel/collection.rb
70
71
  - lib/hypermodel/resource.rb
71
72
  - lib/hypermodel/responder.rb
73
+ - lib/hypermodel/serializer.rb
72
74
  - lib/hypermodel/serializers/mongoid.rb
75
+ - lib/hypermodel/traverse_ancestors.rb
73
76
  - lib/hypermodel/version.rb
74
77
  - lib/hypermodel.rb
75
78
  - lib/tasks/hypermodel_tasks.rake
76
79
  - MIT-LICENSE
77
80
  - Rakefile
78
81
  - README.md
82
+ - test/collection_test.rb
79
83
  - test/dummy/app/assets/javascripts/application.js
80
84
  - test/dummy/app/assets/stylesheets/application.css
81
85
  - test/dummy/app/controllers/application_controller.rb
86
+ - test/dummy/app/controllers/comments_controller.rb
82
87
  - test/dummy/app/controllers/posts_controller.rb
83
88
  - test/dummy/app/helpers/application_helper.rb
84
89
  - test/dummy/app/models/author.rb
@@ -112,7 +117,7 @@ files:
112
117
  - test/dummy/Rakefile
113
118
  - test/dummy/README.rdoc
114
119
  - test/dummy/script/rails
115
- - test/hypermodel_test.rb
120
+ - test/member_test.rb
116
121
  - test/test_helper.rb
117
122
  homepage: https://github.com/codegram/hypermodel
118
123
  licenses: []
@@ -128,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
133
  version: '0'
129
134
  segments:
130
135
  - 0
131
- hash: 3863888300103512107
136
+ hash: 2017700916927229780
132
137
  required_rubygems_version: !ruby/object:Gem::Requirement
133
138
  none: false
134
139
  requirements:
@@ -137,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
142
  version: '0'
138
143
  segments:
139
144
  - 0
140
- hash: 3863888300103512107
145
+ hash: 2017700916927229780
141
146
  requirements: []
142
147
  rubyforge_project:
143
148
  rubygems_version: 1.8.21
@@ -146,9 +151,11 @@ specification_version: 3
146
151
  summary: Rails Responder to generate an automagic JSON HAL representation for your
147
152
  Mongoid models
148
153
  test_files:
154
+ - test/collection_test.rb
149
155
  - test/dummy/app/assets/javascripts/application.js
150
156
  - test/dummy/app/assets/stylesheets/application.css
151
157
  - test/dummy/app/controllers/application_controller.rb
158
+ - test/dummy/app/controllers/comments_controller.rb
152
159
  - test/dummy/app/controllers/posts_controller.rb
153
160
  - test/dummy/app/helpers/application_helper.rb
154
161
  - test/dummy/app/models/author.rb
@@ -182,6 +189,6 @@ test_files:
182
189
  - test/dummy/Rakefile
183
190
  - test/dummy/README.rdoc
184
191
  - test/dummy/script/rails
185
- - test/hypermodel_test.rb
192
+ - test/member_test.rb
186
193
  - test/test_helper.rb
187
194
  has_rdoc: