acts_as_api 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/acts_as_api/rendering.rb +1 -1
- data/lib/acts_as_api/version.rb +1 -1
- metadata +15 -13
@@ -46,7 +46,7 @@ module ActsAsApi
|
|
46
46
|
|
47
47
|
api_root_name = api_root_name.underscore.tr('/', '_')
|
48
48
|
|
49
|
-
if api_model.is_a?(Array) || api_model.is_a?(ActiveRecord::Relation)
|
49
|
+
if api_model.is_a?(Array) || (defined?(ActiveRecord) && api_model.is_a?(ActiveRecord::Relation))
|
50
50
|
api_root_name = api_root_name.pluralize
|
51
51
|
end
|
52
52
|
|
data/lib/acts_as_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-10-03 00:00:00.000000000 +02:00
|
13
|
+
default_executable:
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: activemodel
|
16
|
-
requirement: &
|
17
|
+
requirement: &2257419040 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ! '>='
|
@@ -21,10 +22,10 @@ dependencies:
|
|
21
22
|
version: 3.0.0
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
+
version_requirements: *2257419040
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
27
|
name: activesupport
|
27
|
-
requirement: &
|
28
|
+
requirement: &2257418540 !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
@@ -32,10 +33,10 @@ dependencies:
|
|
32
33
|
version: 3.0.0
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
+
version_requirements: *2257418540
|
36
37
|
- !ruby/object:Gem::Dependency
|
37
38
|
name: rack
|
38
|
-
requirement: &
|
39
|
+
requirement: &2257417900 !ruby/object:Gem::Requirement
|
39
40
|
none: false
|
40
41
|
requirements:
|
41
42
|
- - ! '>='
|
@@ -43,10 +44,10 @@ dependencies:
|
|
43
44
|
version: 1.1.0
|
44
45
|
type: :runtime
|
45
46
|
prerelease: false
|
46
|
-
version_requirements: *
|
47
|
+
version_requirements: *2257417900
|
47
48
|
- !ruby/object:Gem::Dependency
|
48
49
|
name: rails
|
49
|
-
requirement: &
|
50
|
+
requirement: &2257417280 !ruby/object:Gem::Requirement
|
50
51
|
none: false
|
51
52
|
requirements:
|
52
53
|
- - ! '>='
|
@@ -54,10 +55,10 @@ dependencies:
|
|
54
55
|
version: 3.1.0
|
55
56
|
type: :development
|
56
57
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
+
version_requirements: *2257417280
|
58
59
|
- !ruby/object:Gem::Dependency
|
59
60
|
name: mongoid
|
60
|
-
requirement: &
|
61
|
+
requirement: &2257416660 !ruby/object:Gem::Requirement
|
61
62
|
none: false
|
62
63
|
requirements:
|
63
64
|
- - ! '>='
|
@@ -65,7 +66,7 @@ dependencies:
|
|
65
66
|
version: 2.0.1
|
66
67
|
type: :development
|
67
68
|
prerelease: false
|
68
|
-
version_requirements: *
|
69
|
+
version_requirements: *2257416660
|
69
70
|
description: acts_as_api enriches the models and controllers of your app in a rails-like
|
70
71
|
way so you can easily determine how your XML/JSON API responses should look like.
|
71
72
|
email:
|
@@ -176,6 +177,7 @@ files:
|
|
176
177
|
- spec/support/model_examples/undefined.rb
|
177
178
|
- spec/support/model_examples/untouched.rb
|
178
179
|
- spec/support/simple_fixtures.rb
|
180
|
+
has_rdoc: true
|
179
181
|
homepage: https://github.com/fabrik42/acts_as_api
|
180
182
|
licenses: []
|
181
183
|
post_install_message:
|
@@ -197,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
199
|
version: '0'
|
198
200
|
requirements: []
|
199
201
|
rubyforge_project:
|
200
|
-
rubygems_version: 1.
|
202
|
+
rubygems_version: 1.6.2
|
201
203
|
signing_key:
|
202
204
|
specification_version: 3
|
203
205
|
summary: Makes creating XML/JSON responses in Rails 3 easy and fun.
|