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 +4 -4
- data/ChangeLog.md +4 -0
- data/lib/evil-front/russian.rb +2 -1
- data/lib/evil-front/version.rb +1 -1
- data/spec/russian_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 444d012850c365ce418391e6d5d7d7826f7f1e13
|
4
|
+
data.tar.gz: f5ae53ebe7220a8b50c9c591cf7db0900c200108
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0284ae751466b1d6a630d14d2df32efd348246fa8ca6852fa7ab72c412f918121192a9e6e49e5f823898e48acba386076c4f1cfb25adaec270d5f93095780bff
|
7
|
+
data.tar.gz: 3ee9ab55ce19688f68596e9694866d74c05f4e26ce7394ebea41353a712a7e6f6a96e685bf702050880efc5c183c4e994b157f46fe1d6973053bd997a926dd12
|
data/ChangeLog.md
CHANGED
data/lib/evil-front/russian.rb
CHANGED
@@ -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)
|
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
|
data/lib/evil-front/version.rb
CHANGED
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 '
|
75
|
-
expect(nbsp_mark_typograph(
|
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.
|
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-
|
11
|
+
date: 2014-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|