ncode-syosetu-ssml 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ncode-syosetu-ssml.rb +2 -2
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e213037347c2b043895ba8c5db0139ca9492e5a7
4
- data.tar.gz: 4ee84748df61202058300a23def84f470ca9e04c
3
+ metadata.gz: 7b9dbba925d24ce580c63da74cb1ec12f0ed3bf4
4
+ data.tar.gz: 40f8bcbf969d189abf7c3f1788582b9cc7e0b388
5
5
  SHA512:
6
- metadata.gz: 01bf8a7b09670b47a61fc7e48c35b82f6a2da7005c51ac483d259bf85ef9a9dfde86318942487c6a90a2ccb1481ad7d92b7f81db38d5fac511a3e5afb4caa083
7
- data.tar.gz: b09939f5a151690e5978c4fa7cddd7e805f9f7b68d6d12f5a651dd837e1851f75fd1d69465e53b815b50149dfb930ac464a3751201a13f5b868aaf1b4a2cf8c9
6
+ metadata.gz: 69804e2fa64f9ddbf0734f4fcec7c404e18b375439759e4835c33e7ea596849e74e8a076c2baf9d7592bfe4bf98424b7b3d7f102e5ff534f28aba9f052358437
7
+ data.tar.gz: 585217012fadc4f581928f99c7b2677cfa48f3990216fc90ba37a8a3cb8b9960d9a91c3d846237b56b24e36d342c5a6d1af4cdb9fcdfea10e28afa0831433527
@@ -5,9 +5,9 @@ NcodeSyosetu::Model::Episode.class_eval do
5
5
  def body_ssml
6
6
  Sanitize.
7
7
  fragment(body_html, elements: %w(br p div)).
8
- gsub(%r(<br\s*/?>), "<break>").
8
+ gsub(%r(<br\s*/?>), "<break/>").
9
9
  gsub(%r(<(?:p|div)[^>]*>), '<p>').
10
- gsub(%r(</(?:p|div)>), '<break strength="strong"/></p>')
10
+ gsub(%r(</(?:p|div)>), '</p>')
11
11
  end
12
12
 
13
13
  def ssml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncode-syosetu-ssml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hogelog
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-07 00:00:00.000000000 Z
11
+ date: 2017-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ncode-syosetu-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.2
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.2
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sanitize
29
29
  requirement: !ruby/object:Gem::Requirement