fastapi 0.1.25 → 0.1.26
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 +4 -4
- data/lib/fastapi.rb +388 -774
- data/lib/fastapi/active_record_extension.rb +5 -7
- metadata +5 -3
@@ -48,31 +48,29 @@ module FastAPIExtension
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def fastapi_custom_order
|
51
|
-
@fastapi_custom_order
|
51
|
+
@fastapi_custom_order || {}
|
52
52
|
end
|
53
53
|
|
54
54
|
def fastapi_fields
|
55
|
-
@fastapi_fields
|
55
|
+
@fastapi_fields || [:id]
|
56
56
|
end
|
57
57
|
|
58
58
|
def fastapi_fields_sub
|
59
|
-
@fastapi_fields_sub
|
59
|
+
@fastapi_fields_sub || [:id]
|
60
60
|
end
|
61
61
|
|
62
62
|
def fastapi_filters_whitelist
|
63
|
-
@fastapi_filters_whitelist
|
63
|
+
@fastapi_filters_whitelist || @fastapi_fields || [:id]
|
64
64
|
end
|
65
65
|
|
66
66
|
def fastapi_filters
|
67
|
-
@fastapi_filters
|
67
|
+
@fastapi_filters || {}
|
68
68
|
end
|
69
69
|
|
70
70
|
def fastapi
|
71
71
|
FastAPI.new(self)
|
72
72
|
end
|
73
|
-
|
74
73
|
end
|
75
|
-
|
76
74
|
end
|
77
75
|
|
78
76
|
ActiveRecord::Base.send(:include, FastAPIExtension)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Horwood
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -139,7 +139,9 @@ dependencies:
|
|
139
139
|
version: 1.4.1
|
140
140
|
description: Easily create robust, standardized API endpoints using lightning-fast
|
141
141
|
database queries
|
142
|
-
email:
|
142
|
+
email:
|
143
|
+
- keithwhor@gmail.com
|
144
|
+
- trevor@strieber.org
|
143
145
|
executables: []
|
144
146
|
extensions: []
|
145
147
|
extra_rdoc_files: []
|