moredown 1.2.0 → 1.3.0

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/moredown.rb +0 -3
  3. data/test/moredown_test.rb +0 -14
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -85,9 +85,6 @@ class Moredown < RDiscount
85
85
  html.gsub!(/<img (.*?) \/>:center/) { |match| "<img style=\"display: block; margin: auto;\" #{$1} />" }
86
86
  end
87
87
 
88
- # code
89
- html.gsub!('<pre>', '<pre class="prettyprint">')
90
-
91
88
  # emoticons
92
89
  if @emotes
93
90
  html.gsub!(':-)', '<img src="/images/emote-smile.png" alt=":-)" width="16" height="16" />')
@@ -64,20 +64,6 @@ TEXT
64
64
  assert_equal html, Moredown.text_to_html(text, :has_stylesheet => true)
65
65
  end
66
66
 
67
- def test_code
68
- text = <<TEXT
69
- Here is some code:
70
-
71
- def test_code
72
- puts 'test'
73
- end
74
-
75
- That is all.
76
- TEXT
77
- html = "<p>Here is some code:</p>\n\n<pre class=\"prettyprint\"><code>def test_code\n puts 'test'\nend\n</code></pre>\n\n<p>That is all.</p>\n"
78
- assert_equal html, Moredown.text_to_html(text)
79
- end
80
-
81
67
  def test_emotes
82
68
  assert_equal "<p>:-)</p>\n", Moredown.text_to_html(':-)'), "Emotes are ignored when the switch is off"
83
69
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moredown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hoad
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-11-28 00:00:00 +10:00
14
+ date: 2010-05-03 00:00:00 +10:00
15
15
  default_executable: rdiscount
16
16
  dependencies: []
17
17