ssmd 0.6.0 → 0.6.1

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: e1072f2246db4e38fe72f48c909bd41a0ef3de15
4
- data.tar.gz: 6d13a771d0699df8bd167d81b91d7c475788a1f7
3
+ metadata.gz: 1f34d91a175036bcba54aebf0a3de916ef9ba463
4
+ data.tar.gz: b4235616cbf5f6767bc7e709b037b1f4b152f997
5
5
  SHA512:
6
- metadata.gz: '079ba3acf4807aef4a98133a3ab572efa039e1e078ddc60a3f92e26011a2fb15706d06db416ba87b19417b5a483d87bb0b0a5277ea62e83d6ec684e820bebf0c'
7
- data.tar.gz: 065fdf57abff4dabf7b6b58bd010b677974c6d070fea7ad5588dd8d62521dba498e4d5d09c9a4d401698049d9e45bc91dcc411c1b8dd3644075affd4f33d61f1
6
+ metadata.gz: aaf0d622360f70bca2f64c01f9a8ea77e6b332eccf5c506558b75bf15cb2b2b699b45055af1a76d9381dc1b0d553327aae817501acdbdf8674909d0c241745d8
7
+ data.tar.gz: 48f0e911ac1c06d3faaebd9506a486eb85e248e5a410d1d5c0750679f15d37839e74667850d7d34b18e30eccd9be6b40028b54ea75c652cf5ea8a09f9e8aaf59
@@ -57,12 +57,14 @@ module SSMD::Annotations
57
57
 
58
58
  def wrap(text)
59
59
  attributes = [
60
+ "",
60
61
  ("volume=\"#{volume}\"" if volume),
61
62
  ("rate=\"#{rate}\"" if rate),
62
63
  ("pitch=\"#{pitch}\"" if pitch)
63
64
  ]
65
+ .compact
64
66
 
65
- "<prosody #{attributes.join(' ')}>#{text}</prosody>"
67
+ "<prosody#{attributes.join(' ')}>#{text}</prosody>"
66
68
  end
67
69
 
68
70
  def combine(annotation)
@@ -81,7 +81,7 @@ module SSMD::Processors
81
81
  def regex
82
82
  @regex ||= %r{
83
83
  \[ # opening text
84
- ([^\]]+) # annotated text
84
+ ([^\[\]]+) # annotated text
85
85
  \] # closing text
86
86
  \( # opening annotations
87
87
  ((?:
data/lib/ssmd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SSMD
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Kahl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.6.12
147
+ rubygems_version: 2.5.2
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Speech Synthesis Markdown (SSMD) is an lightweight alternative syntax for