improve_typography 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 15c6a003e348a01667d6ee85dd96bfc9f58d5f0e
4
- data.tar.gz: eea933bf75e86f1d4e59c95fe1cbfe93afafc588
3
+ metadata.gz: df52b0b9f2d555f644795f629ea0e5a780162acc
4
+ data.tar.gz: 5ced3986a2e607975ddba752c8e7fdd98649ab3a
5
5
  SHA512:
6
- metadata.gz: 21a3b62b600ed600873b1b50e1e4e74b6bfb44868d2d07147078cd63d1c5c470b8013efc5331e3cc2f60294733f375fcc0a902c92333ca965679deda994404a8
7
- data.tar.gz: bda6a15c8f7b7feb2d9240793564a71ce095be4520c63ef50169cfcbf358e4a43c48ec59cba3d143a741a2bc6159de0dfe1f8a4668fda2ac3c0b82df9169f92d
6
+ metadata.gz: 0fcbffcf86d3608ad0f18fd70a0bc52863f86565b40f88ef271fadd4e90a3ba7b13e07f4fd15d2f96e28af6037a80665cb53f9851d8d2932dc8e8776603db4c5
7
+ data.tar.gz: 10fc67dc749b39cb1ebce049487a63bbd569ec04e55afd9162c3784609b397576ed33c5e8ddd4d6e80a9b39328b644adbb0dbd9cb5b36915cc6e01154f30eb1c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.6
4
+
5
+ * @asgerb: Right now the DoubleQuotes processor only fixes the cases where both beginning and end quote is a straight double quote (") and not the cases where curly quotes are used wrongly
6
+ * @asgerb: Similarly to the DoubleQuotes processor, the SingleQuotes processor currently fixes only the cases where both beginning and end quote is a straight single quote (') and not the cases where curly quotes are used wrongly
7
+
3
8
  ## 0.1.5
4
9
 
5
10
  * Nbsp: `Title. © 2016`
@@ -1,7 +1,7 @@
1
1
  module ImproveTypography
2
2
  module Processors
3
3
  class DoubleQuotes < Processor
4
- REGEXP = /["](.*?)["]/i
4
+ REGEXP = /["“”](.*?)["“”]/i
5
5
 
6
6
  def call
7
7
  replace_double_quotes
@@ -1,7 +1,7 @@
1
1
  module ImproveTypography
2
2
  module Processors
3
3
  class SingleQuotes < Processor
4
- REGEXP = /['](.*)[']/i
4
+ REGEXP = /['’‘](.*?)['’‘](?!\w)/i
5
5
 
6
6
  def call
7
7
  replace_single_quotes
@@ -1,3 +1,3 @@
1
1
  module ImproveTypography
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-24 00:00:00.000000000 Z
11
+ date: 2017-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n