grat 0.0.5 → 0.0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('grat', '0.0.5') do |p|
6
+ Echoe.new('grat', '0.0.5.1') do |p|
7
7
  p.summary = "Minimal CMS for Rack and MongoDB."
8
8
  p.description = "Basic interface for making webpages with Haml and Erb. Supports nested templates."
9
9
  p.url = "http://samsm.com/"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{grat}
5
- s.version = "0.0.5"
5
+ s.version = "0.0.5.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sam Schenkman-Moore"]
@@ -3,7 +3,7 @@ $(document).ready(function(){
3
3
  // New field button + features
4
4
  $('a[href=#new_field]').click(function(){
5
5
 
6
- $('#new_fields').prepend("<div class='new_field'><p class='myEditableText sameaslabel'>Write the title here</p><input name='page[new_field]' value='' /></div>");
6
+ $('#new_fields').prepend("<div class='new_field'><p class='myEditableText sameaslabel'>Write the title here</p><input name='content[new_field]' value='' /></div>");
7
7
 
8
8
  // upon click make label editable and other junk associated with customizing the new field
9
9
  $('.myEditableText').click(function(){
@@ -25,7 +25,7 @@ $(document).ready(function(){
25
25
  key = input.parent().children().filter('p').text();
26
26
  // need to sanitize key
27
27
  sanitized_key = key.replace(/[^a-zA-Z]/g,'_').toLowerCase().replace(/[^a-z]/,'').toLowerCase()
28
- new_name = 'page[' + sanitized_key + ']';
28
+ new_name = 'content[' + sanitized_key + ']';
29
29
 
30
30
  input.attr('name',new_name);
31
31
  })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Schenkman-Moore