webink 3.0.0 → 3.0.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.
@@ -80,9 +80,11 @@ module Ink
80
80
  @params.merge!({:header => {}, :cookie => req.cookies})
81
81
  @params[:get] = Rack::Utils.parse_query(@env["QUERY_STRING"], '&;') || {}
82
82
  @params[:post] = {}
83
- if @env['rack.input'].is_a?(StringIO)
84
- @params[:post] =
85
- Rack::Utils.parse_query(@env['rack.input'].read, "&;\n")
83
+ if req.post?
84
+ @params[:post] = req.params
85
+ @params[:post].reject! do |k,v|
86
+ @params[:get][k] and @params[:get][k] == v
87
+ end
86
88
  end
87
89
  self.load_config
88
90
  self.load_routes
@@ -381,9 +381,8 @@ QUERY
381
381
  def self.create
382
382
  result = Array.new
383
383
  if not self.respond_to?(:fields)
384
- raise NotImplementedError.new(<<ERR)
385
- Cannot create a Database without field definitions
386
- ERR
384
+ puts "Skipping #{self.name}...."
385
+ return []
387
386
  end
388
387
 
389
388
  string = "CREATE TABLE #{self.table_name} ("
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webink
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-22 00:00:00.000000000 Z
12
+ date: 2013-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack