rack-backend-api 0.3.0 → 0.3.1

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.
data/lib/backend_api.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class BackendAPI
2
- VERSION = [0,3,0]
2
+ VERSION = [0,3,1]
3
3
  WRAP = <<-EOT
4
4
  <!doctype html>
5
5
  <html>
@@ -103,7 +103,7 @@ class BackendAPI
103
103
 
104
104
  def camel_case(s)
105
105
  return if s.nil?
106
- c = s[0]
106
+ c = RUBY_VERSION>='1.9.0' ? s[0].ord : s[0]
107
107
  c>=65&&c<=90 ? s : s.split('_').map{|e|e.capitalize}.join
108
108
  end
109
109
 
@@ -133,4 +133,4 @@ class BackendAPI
133
133
  end
134
134
 
135
135
  # Require Adapter when known ORM detected
136
- ::Sequel::Model.plugin :rack_backend_api_adapter if defined? Sequel
136
+ ::Sequel::Model.plugin :rack_backend_api_adapter if defined? Sequel
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rack-backend-api'
3
- s.version = "0.3.0"
3
+ s.version = "0.3.1"
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."
@@ -9,4 +9,4 @@ Gem::Specification.new do |s|
9
9
  s.author = "Mickael Riga"
10
10
  s.email = "mig@mypeplum.com"
11
11
  s.homepage = "http://github.com/mig-hub/backend-api"
12
- end
12
+ end
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: 19
5
- prerelease:
4
+ hash: 17
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
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: 2011-08-25 00:00:00 +01:00
18
+ date: 2011-09-11 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements: []
69
69
 
70
70
  rubyforge_project:
71
- rubygems_version: 1.4.2
71
+ rubygems_version: 1.3.7
72
72
  signing_key:
73
73
  specification_version: 3
74
74
  summary: A Rack middleware that provides a simple API for your Admin section