ruby-dita 0.4.0 → 0.4.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby-dita/topic.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b31fe843ec1265d42538563bb0d6e38c3205c21
4
- data.tar.gz: 7b3fb9d11964629d60b8b577c9d4db082701ede3
3
+ metadata.gz: a8deefbe4406900b6cf05917098dc6a20de314c4
4
+ data.tar.gz: ff7106cbbcb1df4a252a002b430786b85b78c511
5
5
  SHA512:
6
- metadata.gz: b9ecb295ae85435499615c73045c415af583ddec3b0d79b53e580123dd09aaef61d332019456f821143dced11906317a7605db5975b28f576f67fbbe124ae691
7
- data.tar.gz: 63ce68f646a65fd71be9b7b950f4364dabcb724661d68c92d1628b1a561a2f91fdfe024b53f458e3242e64184b697f5aba5b38702186e988fa0187fc5f29f08b
6
+ metadata.gz: ce4133202207995aef07f5d94ab4f21d53c73d38dbf84a2da6dac00eef7ae493a74a6e8a364c6d8558dc3d75a9c2702ebfdf966088224e5070de798f9a35ab95
7
+ data.tar.gz: 900a8e6865b64509d49349d330a9523a9bdbe81f6047e2ba66c9a4e7528db449455e61a5cbd4f09e7fdf9315d2d06fb0e712819fbb5eccf424ca0c41a748b5da
@@ -4,13 +4,13 @@ module Dita
4
4
  include Duxml
5
5
 
6
6
  # @param title [String, Element] string or XML rich-text
7
- # @param content [Array] optional topic body content in array form
7
+ # @param content [Array] optional topic content in array form; added as direct children of <topic>, not <body>
8
8
  # @return [Element] valid Dita <topic>
9
9
  def topic(title, content=nil)
10
10
  t = Element.new('topic')
11
11
  t[:id] = "topic#{t.object_id.to_s}"
12
12
  t << Element.new('title', [title])
13
- t << Element.new('body', content) if content
13
+ t << content if content
14
14
  t
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-dita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Kong