populate-me 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -193,7 +193,7 @@ module PopulateMe
193
193
 
194
194
  def crushyform(columns=model.schema.keys, action=nil, meth='POST')
195
195
  columns.delete('_id')
196
- fields = columns.inject(""){|out,c|out+crushyfield(c)}
196
+ fields = columns.inject(""){|out,c|out.force_encoding('utf-8')+crushyfield(c).force_encoding('utf-8')}
197
197
  enctype = fields.match(/type='file'/) ? "enctype='multipart/form-data'" : ''
198
198
  action.nil? ? fields : "<form action='%s' method='%s' %s>%s</form>\n" % [action, meth, enctype, fields]
199
199
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'populate-me'
3
- s.version = "0.0.12"
3
+ s.version = "0.0.13"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = "ALPHA !!! Populate Me is relatively complete but simple CMS"
6
6
  s.description = "ALPHA !!! Populate Me is relatively complete but simple CMS. It includes a Rack middleware for putting in your Rack stack, and a bespoke MongoDB ODM. But Populate Me is not really finished yet."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: populate-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
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-04-30 00:00:00.000000000 Z
12
+ date: 2013-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack-golem