improve_typography 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 444052f9e0f44575f6e7e25bfa3a73cdf934a145d4031fdd1c657608447fe828
4
- data.tar.gz: 525d059d1f1043f6da8ad407c2f5ac6772962400a4ade6c118cc24db2d24c679
3
+ metadata.gz: a15353e5f98379ad53b4cba25f1bb06a9e871d87525400cbcaef028288a3b7cb
4
+ data.tar.gz: 6449e0f1ef011b5178d8a9a9429b7854d22875e44048f191313d11bfe1bd9163
5
5
  SHA512:
6
- metadata.gz: 115d8acbe0c3c573ca6fe0949ae9371838cfcd4926fee8611d468d3549a500af97c6970cd90164b05831b545dcd48e46e1ebdbe91abfa7acc0bc9c05c01429c0
7
- data.tar.gz: b11ba1332885e995a37ad381200036ca1ec7b72c1a9327a73b33ae631773f852696823e4dfc47da0202d1d091433f2e1da1f3d06be647dc49f02b5eae27e3db2
6
+ metadata.gz: 5263165ffa75b7aad4ae268c52cd2f7db550997c9880a645db074ef16756990abb77c45333db1cc43029fc462735894c517377bfecadf81d091b12027848e0f3
7
+ data.tar.gz: 99035ac8f242688c1b3171672ec16e63045d60f5d702bc0be3b561c8a343bfee1792e1d97702dbddc8e62ed6c33a55d9dc0816c3be869345540f7bc988026f9a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.13
4
+
5
+ * skip processing if no processor classes defined
6
+
3
7
  ## 0.1.12
4
8
 
5
9
  * Improve `Multiply` processor to match fractions
@@ -11,6 +11,8 @@ module ImproveTypography
11
11
  end
12
12
 
13
13
  def call
14
+ return str unless processor_classes.count > 0
15
+
14
16
  doc.xpath('.//text()').each do |node|
15
17
  processor_classes.each do |processor|
16
18
  node.content = processor.call(node.content, options)
@@ -1,3 +1,3 @@
1
1
  module ImproveTypography
2
- VERSION = '0.1.12'.freeze
2
+ VERSION = '0.1.13'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: improve_typography
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-08 00:00:00.000000000 Z
11
+ date: 2018-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n