cartoonist-comics 0.0.9 → 0.0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/app/models/comic.rb CHANGED
@@ -17,6 +17,10 @@ class Comic < ActiveRecord::Base
17
17
  "/admin/comic/#{number}/edit"
18
18
  end
19
19
 
20
+ def formatted_description
21
+ Markdown.render description
22
+ end
23
+
20
24
  def lock!
21
25
  self.locked = true
22
26
  save!
@@ -24,7 +24,7 @@ class ComicFeed
24
24
  @title = comic.title
25
25
  @img_url = comic.absolute_img_url
26
26
  @title_text = comic.title_text
27
- @description = comic.description
27
+ @description = comic.formatted_description
28
28
  @pub_date = comic.posted_at.to_time.strftime "%a, %d %b %Y 00:00:01 %z"
29
29
  end
30
30
  end
@@ -10,9 +10,7 @@
10
10
  <p>
11
11
  <img src="#{h item.img_url}" title="#{h item.title_text}" />
12
12
  </p>
13
- <p>
14
- #{h item.description}
15
- </p>
13
+ #{item.description}
16
14
  } %>
17
15
  <% if mobile? %>
18
16
  <%= %{
@@ -17,9 +17,9 @@
17
17
  </div>
18
18
  </p>
19
19
 
20
- <p class="description">
21
- <%= @comic.description %>
22
- </p>
20
+ <div class="description">
21
+ <%= @comic.formatted_description %>
22
+ </div>
23
23
 
24
24
  <% if mobile? %>
25
25
  <p class="title-text">
@@ -2,7 +2,8 @@ Gem::Specification.new do |s|
2
2
  raise "Cannot find version file!" unless File.exists?(File.join(File.dirname(__FILE__), "../CARTOONIST_VERSION"))
3
3
  cartoonist_version = File.read(File.join(File.dirname(__FILE__), "../CARTOONIST_VERSION")).strip
4
4
  s.name = "cartoonist-comics"
5
- s.version = cartoonist_version
5
+ #s.version = cartoonist_version
6
+ s.version = "0.0.9.1"
6
7
  s.date = Time.now.strftime "%Y-%m-%d"
7
8
  s.summary = "Cartoonist Comics"
8
9
  s.description = "This core plugin for Cartoonist adds comics."
@@ -11,5 +12,6 @@ Gem::Specification.new do |s|
11
12
  s.files = `git ls-files`.split("\n")
12
13
  s.require_paths = ["lib"]
13
14
  s.homepage = "http://reasonnumber.com/cartoonist"
14
- s.add_dependency "cartoonist", cartoonist_version
15
+ #s.add_dependency "cartoonist", cartoonist_version
16
+ s.add_dependency "cartoonist", "0.0.9"
15
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartoonist-comics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-15 00:00:00.000000000 Z
12
+ date: 2012-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cartoonist
16
- requirement: &6936700 !ruby/object:Gem::Requirement
16
+ requirement: &18234840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.0.9
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6936700
24
+ version_requirements: *18234840
25
25
  description: This core plugin for Cartoonist adds comics.
26
26
  email: reasonnumber@gmail.com
27
27
  executables: []