rack-backend-api 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/backend_api.rb +2 -2
- data/rack-backend-api.gemspec +1 -1
- metadata +4 -4
data/lib/backend_api.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class BackendAPI
|
2
|
-
VERSION = [0,3,
|
2
|
+
VERSION = [0,3,3]
|
3
3
|
WRAP = <<-EOT
|
4
4
|
<!doctype html>
|
5
5
|
<html>
|
@@ -86,7 +86,7 @@ class BackendAPI
|
|
86
86
|
@clone_instance = @model_class.backend_get(@req['clone_id']) unless @req['clone_id'].nil?
|
87
87
|
unless @clone_instance.nil?
|
88
88
|
@req['fields'] ||= @clone_instance.cloning_backend_columns.map{|k|k.to_s}
|
89
|
-
@req['model'] = @clone_instance.backend_values.
|
89
|
+
@req['model'] = @clone_instance.backend_values.reject{|k,v| !@req['fields'].include?(k.to_s)}
|
90
90
|
end
|
91
91
|
@req['model'] ||= {}
|
92
92
|
send_404 if @model_instance.nil?&&!@id.nil?
|
data/rack-backend-api.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'rack-backend-api'
|
3
|
-
s.version = "0.3.
|
3
|
+
s.version = "0.3.3"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.summary = "A Rack middleware that provides a simple API for your Admin section"
|
6
6
|
s.description = "The purpose of this Rack Middleware is to provide an API that interfaces with database actions in order to build a CMS."
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-backend-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mickael Riga
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01
|
18
|
+
date: 2012-02-01 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: The purpose of this Rack Middleware is to provide an API that interfaces with database actions in order to build a CMS.
|