legal_markdown 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module LegalMarkdown
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -107,7 +107,7 @@ module LegalMarkdown
107
107
  sub_clause = $2 || ""
108
108
  next if sub_clause[sub_pattern] && clauses_to_delete.include?($1)
109
109
  content = content.gsub( get_it_all, "" )
110
- clauses_to_delete.delete( mixin )
110
+ clauses_to_delete.delete( mixin ) unless content[pattern]
111
111
  end
112
112
  end
113
113
 
@@ -120,7 +120,7 @@ module LegalMarkdown
120
120
  sub_clause = $2 || ""
121
121
  next if sub_clause[sub_pattern] && clauses_to_mixin.include?($1)
122
122
  content = content.gsub( get_it_all, sub_clause )
123
- clauses_to_mixin.delete( mixin )
123
+ clauses_to_mixin.delete( mixin ) unless content[pattern]
124
124
  end
125
125
  end
126
126
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legal_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-02 00:00:00.000000000 Z
12
+ date: 2013-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: roman-numerals
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  segments:
65
65
  - 0
66
- hash: -1663138300287536069
66
+ hash: -2257058454526902014
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  none: false
69
69
  requirements:
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  segments:
74
74
  - 0
75
- hash: -1663138300287536069
75
+ hash: -2257058454526902014
76
76
  requirements: []
77
77
  rubyforge_project:
78
78
  rubygems_version: 1.8.25