manuscript 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -38,7 +38,7 @@ In the repository directory, edit the file called <tt>config.ru</tt> to match yo
38
38
  require 'rubygems'
39
39
  require 'manuscript'
40
40
 
41
- ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'manuscript.sqlite3.db'
41
+ ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'manuscript.sqlite3.db', :encoding => 'UTF-8'
42
42
 
43
43
  use Rack::Session::Cookie
44
44
  use Rack::Static, :urls => ["/template_files"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
data/config.ru CHANGED
@@ -1,7 +1,7 @@
1
- require 'rubygems'
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__),'lib'))
2
2
  require 'manuscript'
3
3
 
4
- ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'manuscript.sqlite3.db'
4
+ ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'manuscript.sqlite3.db', :encoding => 'UTF-8'
5
5
 
6
6
  use Rack::Session::Cookie
7
7
  use Rack::Static, :urls => ["/template_files"]
data/manuscript.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{manuscript}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["hotink"]
data/views/template.haml CHANGED
@@ -29,4 +29,4 @@
29
29
  = layout.name
30
30
  %label
31
31
  Code
32
- %textarea{:name => "template[code]"}= @template.code
32
+ %textarea{:name => "template[code]"}= escape_html(@template.code)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manuscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - hotink