rpeg-multimarkdown 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ad16113d208ab57ccf7948e4fc1619d9e1b38c0
4
- data.tar.gz: 67c7e3e4ce2760a7f795c07b63928585a07d2473
3
+ metadata.gz: 153a563efa3e2d15f47874308fb8ff2060752964
4
+ data.tar.gz: 9459fdddb5815ca24026973817a7744b82da97a7
5
5
  SHA512:
6
- metadata.gz: 9af9add990883aea35b0153b466fbc5e4f61618004cac29922c5910fc4ca680cc1c0c0208f267c2b88d72ac744012154f2f0fa7723f384ec5626810f9705876b
7
- data.tar.gz: 35ec043a14a36b40484946fcf577d977263451e88feae0be3dffda11ce54d1d7084e513dcc6c779cbd07f2bbc0ba2bbb914cb41360afc1b7a0d817a8cbb4fcc9
6
+ metadata.gz: 375d6044a041d31de74bb7e166900f5f1df03a32bf75694544f0cf455c93475afc8b40d2165331658a8d2a60185116abb9f54f942510e98037062461c019f71c
7
+ data.tar.gz: 667c389c1a25ee4abda0acc197bb86a93e6adc91a5505dd6e27a7a9714c0997b459f7929daa3bee6831b7dbc3213a9dc08a414f7d40f5d124bda125821bc2b99
data/README.markdown CHANGED
@@ -50,6 +50,10 @@ Hacking:
50
50
  Changes
51
51
  -------
52
52
 
53
+ * [Version 0.2.1](http://github.com/djungelvral/rpeg-multimarkdown/tree/v0.2.1)
54
+ * Fixed ruby module tests, which weren't actually running
55
+ * [Version 0.2](http://github.com/djungelvral/rpeg-multimarkdown/tree/v0.2)
56
+ * Bringing everything up to date with the last version of peg-multimarkdown
53
57
  * [Version 0.1.1](http://github.com/djungelvral/rpeg-multimarkdown/tree/v0.1.1)
54
58
 
55
59
  COPYING
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rubygems/package_task'
8
8
  task :default => :test
9
9
 
10
10
  DLEXT = RbConfig::CONFIG['DLEXT']
11
- VERS = '0.2'
11
+ VERS = '0.2.1'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = "rpeg-multimarkdown"
@@ -1,11 +1,12 @@
1
1
  $: << File.join(File.dirname(__FILE__), "../lib")
2
2
 
3
3
  require 'minitest'
4
+ require 'minitest/autorun'
4
5
  require 'multimarkdown'
5
6
 
6
7
  MARKDOWN_TEST_DIR = "#{File.dirname(__FILE__)}/MultiMarkdownTest"
7
8
 
8
- class MultiMarkdownTest < MiniTest::Unit::TestCase
9
+ class MultiMarkdownTest < MiniTest::Test
9
10
 
10
11
  def test_that_extension_methods_are_present_on_multimarkdown_class
11
12
  assert MultiMarkdown.instance_methods.include?(:to_html),
@@ -36,8 +37,8 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
36
37
  assert_respond_to multimarkdown, restriction
37
38
  assert_respond_to multimarkdown, "#{restriction}="
38
39
  end
39
- assert_not_equal true, multimarkdown.filter_html
40
- assert_not_equal true, multimarkdown.filter_styles
40
+ refute_equal true, multimarkdown.filter_html
41
+ refute_equal true, multimarkdown.filter_styles
41
42
 
42
43
  multimarkdown = MultiMarkdown.new('Hello World.', :filter_html, :filter_styles)
43
44
  assert_equal true, multimarkdown.filter_html
@@ -48,7 +49,7 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
48
49
  multimarkdown = MultiMarkdown.new('Hello World.')
49
50
  assert_respond_to multimarkdown, :fold_lines
50
51
  assert_respond_to multimarkdown, :fold_lines=
51
- assert_not_equal true, multimarkdown.fold_lines
52
+ refute_equal true, multimarkdown.fold_lines
52
53
 
53
54
  multimarkdown = MultiMarkdown.new('Hello World.', :fold_lines)
54
55
  assert_equal true, multimarkdown.fold_lines
@@ -56,7 +57,7 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
56
57
 
57
58
  def test_that_redcloth_to_html_with_single_arg_is_supported
58
59
  multimarkdown = MultiMarkdown.new('Hello World.')
59
- assert_nothing_raised(ArgumentError) { multimarkdown.to_html(true) }
60
+ multimarkdown.to_html(true)
60
61
  end
61
62
 
62
63
 
@@ -73,13 +74,13 @@ class MultiMarkdownTest < MiniTest::Unit::TestCase
73
74
  define_method "test_#{method_name}" do
74
75
  multimarkdown = MultiMarkdown.new(File.read(text_file),:compatibility)
75
76
  actual_html = multimarkdown.to_html
76
- assert_not_nil actual_html
77
+ refute_nil actual_html
77
78
  end
78
79
 
79
80
  define_method "test_#{method_name}_with_smarty_enabled" do
80
81
  multimarkdown = MultiMarkdown.new(File.read(text_file), :smart)
81
82
  actual_html = multimarkdown.to_html
82
- assert_not_nil actual_html
83
+ refute_nil actual_html
83
84
  end
84
85
 
85
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpeg-multimarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Whyte