rich_cms 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,10 @@
1
1
  = Rich-CMS CHANGELOG
2
2
 
3
+ == Version 2.1.3 (November 10, 2010)
4
+
5
+ * Fixed rendering bug of Rich-CMS content :as => :html
6
+ * Removed the to_key method from the Rails 2 rich authlogic user generator
7
+
3
8
  == Version 2.1.2 (November 9, 2010)
4
9
 
5
10
  * Defining the 'to_key' method in the correct file (which fixes Authlogic in Rails 3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.1.3
@@ -100,7 +100,7 @@ Rich.Cms.Editor = (function() {
100
100
  inputs.append("<textarea id='cleditor_input' name='" + name + "' style='width: 500px; height: 300px'>" + value + "</textarea>"); break;
101
101
  }
102
102
  } else {
103
- inputs.append("<input name='" + name + "' type='hidden' value='" + value + "'/>");
103
+ inputs.append("<input name='" + name + "' type='hidden' value='" + value + "'/>");
104
104
  }
105
105
  }
106
106
  });
@@ -64,7 +64,7 @@ module Rich
64
64
  attrs << data .collect{|k, v| "data-#{k}=\"#{::ERB::Util.html_escape v}\""}.join(" ")
65
65
  end
66
66
 
67
- tag = options[:tag] || @group.tag || (%w(text html).include?(data.try :fetch, :editable_input_type, nil) ? :div : :span)
67
+ tag = options[:tag] || @group.tag || (%w(text html).include?(options[:as].to_s.downcase) ? :div : :span)
68
68
 
69
69
  "<#{tag} #{attrs.join(" ")}>#{value.blank? ? default : value}</#{tag}>".html_safe
70
70
  end
@@ -4,8 +4,4 @@ class <%= model_class_name %>Session < Authlogic::Session::Base
4
4
  generalize_credentials_error_messages true
5
5
  params_key "user_credentials"
6
6
 
7
- def to_key
8
- new_record? ? nil : [self.send self.class.primary_key]
9
- end
10
-
11
7
  end
data/rich_cms.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_cms}
8
- s.version = "2.1.2"
8
+ s.version = "2.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Engel"]
12
- s.date = %q{2010-11-09}
12
+ s.date = %q{2010-11-10}
13
13
  s.description = %q{Rich-CMS is a module of E9s (http://github.com/archan937/e9s) which provides a frontend for your CMS content. You can use this gem to manage CMS content or translations (in an internationalized application). The installation and setup process is very easily done. You will have to register content at the Rich-CMS engine and also you will have to specify the authentication mechanism. Both are one-liners.}
14
14
  s.email = %q{paul.engel@holder.nl}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rich_cms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
9
+ - 3
10
+ version: 2.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Engel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-09 00:00:00 +01:00
18
+ date: 2010-11-10 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency