daimon-markdown 0.4.0 → 0.5.0

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: c2324f0c5fcb8c75bb8307546584480ba6ab0891
4
- data.tar.gz: 7b9a33e2febd8456520b2cfd80de4c4fbdb3d300
3
+ metadata.gz: 2ce6c61fead1eb4de755fa2797b8f8d336f7c95e
4
+ data.tar.gz: a26e4d9c03413bcb0edd99b9909457a351ac15c0
5
5
  SHA512:
6
- metadata.gz: 659504168c2212d33231c82e8c9d28e1a113c643ad99a1a23354706ed866ffda7faadf18afdf27a599b512bf6eabb3bd30eb61f674b4ad58276a4626066417f1
7
- data.tar.gz: ec99f88c9ed69b2ed6c4b654595572e3063ca8d5f7aa668797c068087899031613ca74fdbfb607d15d2c8153aff64c2a237c66281ae4b8394f4dddafd9952702
6
+ metadata.gz: 9b35366c4bef0c12023374871b7275dd961e894a6b65423182c19ed5ca391d4c76586499f8ce4b97af44d682a72c767e5d41939b1914affb584cdc11c933a8b6
7
+ data.tar.gz: 9f8805e2d024fd0d30b6d95878f2bcd50bde6b06b65f37b68a0b007e7d4037ed77624b00b18d6be040c69ffc9d87054df6d58f594a9153315fcab9392b9ee4d9
@@ -1,60 +1,3 @@
1
- AllCops:
2
- TargetRubyVersion: 2.3
3
- DisplayCopNames: true
4
- Exclude:
5
- - "vendor/**/*"
1
+ inherit_gem:
2
+ daimon-deka: config/rubocop.yml
6
3
 
7
- Lint/UnderscorePrefixedVariableName:
8
- Enabled: false
9
- Lint/UnusedMethodArgument:
10
- Enabled: false
11
-
12
- Metrics/LineLength:
13
- Enabled: false
14
- Metrics/ClassLength:
15
- Exclude:
16
- - "test/**/*.rb"
17
- Metrics/ParameterLists:
18
- Max: 7
19
- Metrics/MethodLength:
20
- Max: 30
21
-
22
- Style/AsciiComments:
23
- Enabled: false
24
- Style/HashSyntax:
25
- Exclude:
26
- - "**/*.rake"
27
- - "Rakefile"
28
- Style/FrozenStringLiteralComment:
29
- Enabled: false
30
- Style/StringLiterals:
31
- EnforcedStyle: double_quotes
32
- Style/IfUnlessModifier:
33
- Enabled: false
34
- Style/TrailingCommaInLiteral:
35
- Enabled: false
36
- Style/TrailingCommaInArguments:
37
- Enabled: false
38
- Style/FileName:
39
- Enabled: false
40
- Style/Documentation:
41
- Enabled: false
42
- Style/WordArray:
43
- Enabled: false
44
- Style/BarePercentLiterals:
45
- EnforcedStyle: percent_q
46
- Style/SpaceInsideBlockBraces:
47
- EnforcedStyle: space
48
- SpaceBeforeBlockParameters: false
49
- Style/BracesAroundHashParameters:
50
- Enabled: false
51
- Style/MultilineMethodCallIndentation:
52
- EnforcedStyle: indented
53
- Style/SpaceInsideHashLiteralBraces:
54
- EnforcedStyle: no_space
55
- Style/BlockDelimiters:
56
- EnforcedStyle: braces_for_chaining
57
- Style/PercentQLiterals:
58
- Enabled: false
59
- Style/UnneededPercentQ:
60
- Enabled: false
@@ -29,4 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "rake", "~> 11.0"
30
30
  spec.add_development_dependency "test-unit", "> 3"
31
31
  spec.add_development_dependency "test-unit-notify"
32
+ spec.add_development_dependency "rubocop"
33
+ spec.add_development_dependency "daimon-deka"
32
34
  end
@@ -40,8 +40,9 @@ module Daimon
40
40
  previous_level = level
41
41
  end
42
42
  toc_class = context[:toc_class] || "section-nav"
43
+ toc_header = context[:toc_header] || ""
43
44
  unless items.empty?
44
- toc_html = %Q(<ul class="#{toc_class}">\n#{items.join("\n")}\n</ul>)
45
+ toc_html = %Q(#{toc_header}<ul class="#{toc_class}">\n#{items.join("\n")}\n</ul>)
45
46
  end
46
47
  node.parent.replace(toc_html)
47
48
  end
@@ -1,5 +1,5 @@
1
1
  module Daimon
2
2
  module Markdown
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daimon-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daimon developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-30 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline
@@ -108,6 +108,34 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: daimon-deka
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  description: Markdown renderer for Daimon
112
140
  email:
113
141
  - ''
@@ -157,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
185
  version: '0'
158
186
  requirements: []
159
187
  rubyforge_project:
160
- rubygems_version: 2.5.1
188
+ rubygems_version: 2.6.4
161
189
  signing_key:
162
190
  specification_version: 4
163
191
  summary: Markdown renderer for Daimon