trac-wiki 0.3.24 → 0.3.25

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22a2efb3c9aa6e36324781de0fb805e3a50c6194
4
- data.tar.gz: c03c21f99e66e561813158eddc82dd3f281e0f49
3
+ metadata.gz: 9359bd5e7cf0789f5544e53c55a3fc52308ed3f1
4
+ data.tar.gz: e83046ec1c50dc16c1b4c743d64ffabe478ab9e6
5
5
  SHA512:
6
- metadata.gz: e2c7e3a974e849c1f29b2dc0ee62b42de0a7ba38e98ce3291de862abf5a837aece98847a8b4a41326d7e5c8474043e80234733c8ae0722dc3eaa64cae47888da
7
- data.tar.gz: bc5a680d7dd8d2ff824eff79a4c39bd8c64ae879a04e6644f99542bcba49bb654aab43b03c44d1a48443c2f816983bc61a0335d55317ad4b802dccf52c4b7076
6
+ metadata.gz: c14df8bb91c05140862e331a75279185d6ea9b2f4cdc7c0467ef726095273ae3c2e6629115c2d9d2e0ad866bd881c64b83fd562f5619230b5181127f009f5386
7
+ data.tar.gz: 2a9a2756c44c5726059408a1c52d2f1ba79a6dc58925eda4d085a9ac75a769a15934be841b59db87217c445c44088d47519620b92a6508461310bb865a4fc82a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trac-wiki (0.3.23)
4
+ trac-wiki (0.3.24)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -160,12 +160,13 @@ module TracWiki
160
160
  :td => [:colspan, :rowspan, :style],
161
161
  :th => [:colspan, :rowspan, :style],
162
162
  :ol => [:type ],
163
- :_all => [:class, :title, :id],
163
+ :_all => [:class, :title, :id, :style],
164
164
  }
165
165
 
166
166
  ATTRIBUTE_DATA_REX = /\Adata-[-a-z]+\Z/i
167
167
  ATTRIBUTE_STYLE_REX = /\A( text-align:(center|right|left) |
168
168
  margin: \d+(px|em)? |
169
+ (background|color): [-_#a-zA-Z0-9]+ |
169
170
  ;
170
171
  )+\Z/x
171
172
  def attrs_to_s(tag, attrs)
@@ -1,3 +1,3 @@
1
1
  module TracWiki
2
- VERSION = '0.3.24'
2
+ VERSION = '0.3.25'
3
3
  end
data/test/parser_test.rb CHANGED
@@ -1083,6 +1083,7 @@ eos
1083
1083
  tc "<p><span>Span</span></p>\n", "<span>Span</span>\n", allow_html: true
1084
1084
  tc "<p><strong><span>Span</span></strong></p>\n", "**<span>Span</span>**\n", allow_html: true
1085
1085
  tc "<div class=\"ahoj\">Div</div>\n", "<div class=\"ahoj\">Div</div>\n", allow_html: true
1086
+ tc "<div style=\"background:red\">Div</div>\n", "<div style=\"background:red\">Div</div>\n", allow_html: true
1086
1087
  tc "<p><strong>ahoj</strong></p>\n<div class=\"ahoj\">Div</div>\n", "**ahoj<div class=\"ahoj\">Div</div>\n", allow_html: true
1087
1088
  tc "<p><span>Span</span><span>Span</span></p>\n", "<span>Span</span><span>Span</span>\n", allow_html: true
1088
1089
  tc "<p><em><b>boldoitali</b></em>cE</p>\n", "<p>''<b>boldoitali''c</b>E</p>", allow_html: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trac-wiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.24
4
+ version: 0.3.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitas Stradal