nora_mark 0.2beta12 → 0.2beta13

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: 878b5a25f32b34e6c9ba1cf27418f876e6ee3bed
4
- data.tar.gz: d0079061039cf71ee91f554cafefd8613cb06895
3
+ metadata.gz: beaac139078706a425464ffe4808407b65fb0c4a
4
+ data.tar.gz: 2fe396e897a4e1ab00a4bbe5440e5c81177e4d55
5
5
  SHA512:
6
- metadata.gz: 9b85d6e2c5ac7d9f05fba7548976874a63176573fd3fb3245934cde97b627a948e1dff94717622625c1d3aa3b136506d0511181bcac47d5673314e274963c064
7
- data.tar.gz: 42cc2bc8cbc5181f365e759c6c61e883b513ae8d8e148d10ed7e53abb6ee5553004889c90e866b2c675fbd434e0fb2e70393aea094fb92de384fc92ab27a1614
6
+ metadata.gz: ffea896a52306f5f375561c28ba9c386dd0b9862caacc23ff6a4dc548654b52e1523af0727965d450f03c478634ec955bbd7babaeacaed26bf5c8d7abe4a294b
7
+ data.tar.gz: 995d5952fed0f74b682857473920847b3286c227fc41d37e6bca73df02ca31c053a96bba75fd3fefe46efdc75d1045a5544e62e7b4ba860afeedcfd72ba7edc8
@@ -44,8 +44,9 @@ module NoraMark
44
44
 
45
45
  modify 'img' do
46
46
  @node.body_empty = true
47
- (@node.attrs ||= {}).merge!({src: [@node.params[0].text ]})
48
- @node.attrs.merge!({alt: [ escape_html(@node.params[1].text.strip)]}) if (@node.p.size > 1 && @node.params[1].text.size > 0)
47
+ @node.attrs ||= {}
48
+ @node.attrs.merge!({src: [@node.params[0].text ]}) if @node.attrs[:src].nil?
49
+ @node.attrs.merge!({alt: [ escape_html(@node.params[1].text.strip)]}) if (@node.attrs[:alt].nil? && @node.p.size > 1 && @node.params[1].text.size > 0)
49
50
  end
50
51
 
51
52
  replace 'image' do
@@ -129,7 +129,6 @@ module NoraMark
129
129
 
130
130
  def rebuild_children
131
131
  @children = @first_child.nil? ? [] : NodeSet.new(@first_child.collect { |node| node })
132
- @children
133
132
  end
134
133
 
135
134
  def children
@@ -1,3 +1,3 @@
1
1
  module NoraMark
2
- VERSION = "0.2beta12"
2
+ VERSION = "0.2beta13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nora_mark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2beta12
4
+ version: 0.2beta13
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOJIMA Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kpeg
@@ -119,7 +119,6 @@ files:
119
119
  - lib/nora_mark.rb
120
120
  - lib/nora_mark/document.rb
121
121
  - lib/nora_mark/extensions.rb
122
- - lib/nora_mark/generator.rb
123
122
  - lib/nora_mark/html/abstract_node_writer.rb
124
123
  - lib/nora_mark/html/context.rb
125
124
  - lib/nora_mark/html/default_transformer.rb
File without changes