md2review 1.0.2 → 1.0.3

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: 19b686d5edb45716671bc879131637baf8555bb1
4
- data.tar.gz: 8e2b3851dd0e906ac8d943b98a1a52d28b952503
3
+ metadata.gz: e2a314f30158cdc5bd419666d477636c6c4ffc27
4
+ data.tar.gz: ebffc365523d1d97c30bf572c4364ba748db1b12
5
5
  SHA512:
6
- metadata.gz: d90bba198b259cdb8d00e86e0669529cb7c31c17477da4c92008cd53029a05db8803ce690dcc26d929df0efcaf08de7000917fc875f5ee53689d140399cbd787
7
- data.tar.gz: 960a8281e3add6d09eddabab8cda6a2eaac12226ee870483df83ba60061aab0b844040b49eb1b4303a7ccaf8b84bd340490c41292f5974b82ae8115fe4920a15
6
+ metadata.gz: c584674a10e738a88c966a478d05c1b7358eb3b112d085946a42211c5641c0ed5fd0f820cd89be6d25392c935f99ad28339cb42dfd382f99d104246937906d66
7
+ data.tar.gz: ddff3d77fa7c6dc98de230ce8ab40c2a1ac4e616d41d3a63c677273c6cc905b39c240e64845c0fc63c232311d50f25be5590f89cc90138ffb2e9c2f09a842ade
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ rvm:
2
+ - 1.9.3
3
+ - 2.0.0
4
+ - 2.1.1
5
+
6
+ branches:
7
+ only:
8
+ - master
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # md2review
2
2
 
3
+ [![Build Status](https://api.travis-ci.org/takahashim/md2review.png)](https://travis-ci.org/takahashim/md2review)
4
+
3
5
  md2review is a converter from Markdown into ReVIEW.
4
6
  This command uses Redcarpet gem to parse markdown.
5
7
 
data/Rakefile CHANGED
@@ -4,4 +4,7 @@ require 'rake/testtask'
4
4
  Rake::TestTask.new('test:unit') do |t|
5
5
  t.test_files = FileList['test/*_test.rb']
6
6
  end
7
+
8
+ task :default => :test
9
+
7
10
  task :test => ['test:unit']
@@ -1,3 +1,3 @@
1
1
  module MD2ReVIEW
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -53,7 +53,7 @@ module Redcarpet
53
53
  "@<tt>{#{escape_inline(code)}}"
54
54
  end
55
55
 
56
- def header(title, level)
56
+ def header(title, level, anchor="")
57
57
  l = level - @header_offset
58
58
  case l
59
59
  when 1
data/md2review.gemspec CHANGED
@@ -17,4 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
  gem.add_dependency('redcarpet', '>2.0.0')
20
+ gem.add_development_dependency "rake"
20
21
  end
data/test/review_test.rb CHANGED
@@ -35,4 +35,9 @@ class ReVIEWTest < Test::Unit::TestCase
35
35
  assert_equal "\n\n@<href>{http://exmaple.com/foo\\,bar,example}\n", @markdown.render("[example](http://exmaple.com/foo,bar)")
36
36
  end
37
37
 
38
+ def test_header
39
+ assert_respond_to @markdown, :render
40
+ assert_equal "\n= AAA\n\n\nBBB\n\n== ccc\n\n\nddd\n", @markdown.render("#AAA\nBBB\n\n##ccc\n\nddd\n")
41
+ end
42
+
38
43
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md2review
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahashim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-16 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>'
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>'
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: a converter MD -> ReVIEW
28
42
  email:
29
43
  - takahashimm@gmail.com
@@ -32,7 +46,8 @@ executables:
32
46
  extensions: []
33
47
  extra_rdoc_files: []
34
48
  files:
35
- - .gitignore
49
+ - ".gitignore"
50
+ - ".travis.yml"
36
51
  - Gemfile
37
52
  - LICENSE.txt
38
53
  - README.md
@@ -52,17 +67,17 @@ require_paths:
52
67
  - lib
53
68
  required_ruby_version: !ruby/object:Gem::Requirement
54
69
  requirements:
55
- - - '>='
70
+ - - ">="
56
71
  - !ruby/object:Gem::Version
57
72
  version: '0'
58
73
  required_rubygems_version: !ruby/object:Gem::Requirement
59
74
  requirements:
60
- - - '>='
75
+ - - ">="
61
76
  - !ruby/object:Gem::Version
62
77
  version: '0'
63
78
  requirements: []
64
79
  rubyforge_project:
65
- rubygems_version: 2.1.5
80
+ rubygems_version: 2.2.0.rc.1
66
81
  signing_key:
67
82
  specification_version: 4
68
83
  summary: a converter MD -> ReVIEW