improve_typography 0.1.4 → 0.1.5

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: 3356f9e67bc37275321a30efdcaa9e96a181f58f
4
- data.tar.gz: 48a6d0bba2ee01e056169cb78adb359fc0275460
3
+ metadata.gz: 15c6a003e348a01667d6ee85dd96bfc9f58d5f0e
4
+ data.tar.gz: eea933bf75e86f1d4e59c95fe1cbfe93afafc588
5
5
  SHA512:
6
- metadata.gz: 6539e909f5ce62f963cac1e8e3cc3f0751b7c9e5758b1f9ab3684e7613ccf20564ab40561480e9d2c0f24b3ea7c902d816d64d5ad27b04912aee1d9d9219e097
7
- data.tar.gz: f4b2622c076fe28b039bef21b3e249d93a3c555132316dc92922db759695cebf7ae49cd80da53374f0bd76d6bd7afe7e44616874db150a641be14fb094eac961
6
+ metadata.gz: 21a3b62b600ed600873b1b50e1e4e74b6bfb44868d2d07147078cd63d1c5c470b8013efc5331e3cc2f60294733f375fcc0a902c92333ca965679deda994404a8
7
+ data.tar.gz: bda6a15c8f7b7feb2d9240793564a71ce095be4520c63ef50169cfcbf358e4a43c48ec59cba3d143a741a2bc6159de0dfe1f8a4668fda2ac3c0b82df9169f92d
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # CHANGELOG
2
+
3
+ ## 0.1.5
4
+
5
+ * Nbsp: `Title. © 2016`
6
+ * Nbsp: `No. 3`, `Vol. 2`
@@ -6,6 +6,8 @@ module ImproveTypography
6
6
  .gsub(/(\s+)(.|\d+|.\.)(\s+)(.)/, '\1\2 \4') # in the middle of string
7
7
  .gsub(/\A(.|\d+|.\.)(\s+)(.)/, '\1 \3') # at the beginning of string
8
8
  .gsub(/(\s+)(.|\d+|.\.)(\z|[\.?!]\z|[\.?!]\s)/, ' \2\3') # at the end of string
9
+ .gsub(/(\A|\s+)(©)(\s+)(\d+)/, '\1\2 \3')
10
+ .gsub(/(\A|\s+)(No\.|Vol\.)(\s+)(\d+)/, '\1\2 \3')
9
11
  end
10
12
  end
11
13
  end
@@ -1,3 +1,3 @@
1
1
  module ImproveTypography
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.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.4
4
+ version: 0.1.5
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-09 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -117,6 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
119
  - ".travis.yml"
120
+ - CHANGELOG.md
120
121
  - Gemfile
121
122
  - Guardfile
122
123
  - LICENSE.txt