rack-backend-api 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -173,7 +173,7 @@ If you do one for DataMapper or whatever, please consider contributing
173
173
  because it would make BackendAPI more interesting.
174
174
 
175
175
  The adapter for Sequel is a regular plugin, but you don't have to declare it.
176
- It is done automatically if the constant `Sequel` is defined.
176
+ It is done automatically if the constant `Sequel` is defined (so you have to require Sequel first).
177
177
 
178
178
  Here are the methods to implement, most of them are just aliases for having a single name:
179
179
 
@@ -203,6 +203,7 @@ CHANGE LOG
203
203
 
204
204
  0.0.1 First version
205
205
  0.0.2 Accept CamelCased class names
206
+ 0.0.3 Fix Form mockup
206
207
 
207
208
  COPYRIGHT
208
209
  =========
data/lib/backend_api.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class BackendAPI
2
- VERSION = [0,0,2]
2
+ VERSION = [0,0,3]
3
3
  WRAP = <<-EOT
4
4
  <!doctype html>
5
5
  <html>
@@ -46,6 +46,7 @@ module ::Sequel::Plugins::RackBackendApiAdapter
46
46
  o << "<label for='#{identifier}'>#{c.to_s.capitalize}</label><br />\n"
47
47
  o << "<textarea id='#{identifier}' name='model[#{c}]'>#{self.send(c)}</textarea><br />\n"
48
48
  end
49
+ o
49
50
  end
50
51
 
51
52
  # Can be overridden
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rack-backend-api'
3
- s.version = "0.0.2"
3
+ s.version = "0.0.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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mickael Riga