evil-front 0.3.8 → 0.3.9

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: dd430cef1fec028461e7405d9a3538f7e437b315
4
- data.tar.gz: a9c8fd5acc1a367bfb538dccedbbfc47805145dc
3
+ metadata.gz: 444d012850c365ce418391e6d5d7d7826f7f1e13
4
+ data.tar.gz: f5ae53ebe7220a8b50c9c591cf7db0900c200108
5
5
  SHA512:
6
- metadata.gz: 83eb42d765886d5f5b516281b00c888dec69e9c8d41b6b428165cd51cafabd6f11d2bf5e7d7a1e06fc5f3722ea3bae84db93b0df3b0fdf4d31e2c4a52d653e1b
7
- data.tar.gz: 74dab0036abe9d404386be7c39bc7ea9db0b7a98917b15029c1b541da064b36970f0a372d5d25fe935062f39b4432022db88f4afd1d2660dcef3c09095e58321
6
+ metadata.gz: 0284ae751466b1d6a630d14d2df32efd348246fa8ca6852fa7ab72c412f918121192a9e6e49e5f823898e48acba386076c4f1cfb25adaec270d5f93095780bff
7
+ data.tar.gz: 3ee9ab55ce19688f68596e9694866d74c05f4e26ce7394ebea41353a712a7e6f6a96e685bf702050880efc5c183c4e994b157f46fe1d6973053bd997a926dd12
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.9
2
+
3
+ * Fix typograph on new line before m-dash.
4
+
1
5
  ## 0.3.8
2
6
 
3
7
  * Import all inner dependenies in mixins to import only necessary mixin.
@@ -47,7 +47,8 @@ module EvilFront
47
47
 
48
48
  # Replace symbols to right ones, like m-dash, quotes, etc.
49
49
  def self.use_right_symbols(text)
50
- StandaloneTypograf::Typograf.new(text).prepare
50
+ StandaloneTypograf::Typograf.new(text)
51
+ .processor(:dashes, :quotes, :mnemonics, :fractions, :ellipsis)
51
52
  .gsub(' —', ' —') # nbsp before m-dash
52
53
  .gsub(/([а-яА-Я])-([а-яА-Я])/, '\1‑\2') # non-break dash
53
54
  end
@@ -1,3 +1,3 @@
1
1
  module EvilFront
2
- VERSION = '0.3.8' unless defined? EvilFront::VERSION
2
+ VERSION = '0.3.9' unless defined? EvilFront::VERSION
3
3
  end
data/spec/russian_spec.rb CHANGED
@@ -71,8 +71,8 @@ describe EvilFront::Russian do
71
71
  expect(nbsp_mark_typograph('а...')).to eq 'а…'
72
72
  end
73
73
 
74
- it 'inserts non-break spaces' do
75
- expect(nbsp_mark_typograph('оно не надо')).to eq 'оно не_надо'
74
+ it 'keeps new line before dash' do
75
+ expect(nbsp_mark_typograph("- Что?\n- То!")).to eq "— Что?\n— То!"
76
76
  end
77
77
 
78
78
  it 'uses non-break dash on for Russian' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evil-front
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-04 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n