Gentoo Archives: gentoo-commits

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/council-webapp:master commit in: site/app/models/, site/
Date: Tue, 05 Jul 2011 15:09:51
Message-Id: 7b372216bb8dbd59c456006e0ea5b9c699107e0b.betelgeuse@gentoo
1 commit: 7b372216bb8dbd59c456006e0ea5b9c699107e0b
2 Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 28 15:36:13 2011 +0000
4 Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 5 15:04:43 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=7b372216
7
8 Allow markdown in agenda item body
9
10 Input is only one line high. This is fixed in newer hobo, but some
11 other, more serious problems are introduced.
12
13 ---
14 site/Gemfile | 1 +
15 site/Gemfile.lock | 2 ++
16 site/app/models/agenda_item.rb | 2 +-
17 3 files changed, 4 insertions(+), 1 deletions(-)
18
19 diff --git a/site/Gemfile b/site/Gemfile
20 index a95faa0..2e090f4 100644
21 --- a/site/Gemfile
22 +++ b/site/Gemfile
23 @@ -4,6 +4,7 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
24 gem 'devise'
25 gem 'hobo_devise', '>=0.0.2'
26 gem 'delayed_job'
27 +gem 'bluecloth'
28
29 group :development, :test do
30 gem 'ruby-debug'
31
32 diff --git a/site/Gemfile.lock b/site/Gemfile.lock
33 index aca3ead..6d5bbb4 100644
34 --- a/site/Gemfile.lock
35 +++ b/site/Gemfile.lock
36 @@ -31,6 +31,7 @@ GEM
37 addressable (2.2.5)
38 arel (2.0.9)
39 bcrypt-ruby (2.1.4)
40 + bluecloth (2.1.0)
41 builder (3.0.0)
42 capybara (0.4.1.2)
43 celerity (>= 0.7.9)
44 @@ -210,6 +211,7 @@ PLATFORMS
45 ruby
46
47 DEPENDENCIES
48 + bluecloth
49 capybara
50 cucumber-rails
51 database_cleaner
52
53 diff --git a/site/app/models/agenda_item.rb b/site/app/models/agenda_item.rb
54 index 0ce60ea..eaa6ede 100644
55 --- a/site/app/models/agenda_item.rb
56 +++ b/site/app/models/agenda_item.rb
57 @@ -5,7 +5,7 @@ class AgendaItem < ActiveRecord::Base
58 fields do
59 title :string
60 discussion :string
61 - body :text
62 + body :markdown
63 rejected :boolean, :default => false
64 timelimits :text, :null => false, :default => ''
65 timestamps