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.
- checksums.yaml +4 -4
- data/lib/ncode-syosetu-ssml.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b9dbba925d24ce580c63da74cb1ec12f0ed3bf4
|
4
|
+
data.tar.gz: 40f8bcbf969d189abf7c3f1788582b9cc7e0b388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69804e2fa64f9ddbf0734f4fcec7c404e18b375439759e4835c33e7ea596849e74e8a076c2baf9d7592bfe4bf98424b7b3d7f102e5ff534f28aba9f052358437
|
7
|
+
data.tar.gz: 585217012fadc4f581928f99c7b2677cfa48f3990216fc90ba37a8a3cb8b9960d9a91c3d846237b56b24e36d342c5a6d1af4cdb9fcdfea10e28afa0831433527
|
data/lib/ncode-syosetu-ssml.rb
CHANGED
@@ -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)>), '
|
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.
|
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-
|
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.
|
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.
|
26
|
+
version: 0.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sanitize
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|