truty 0.4.2 → 0.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: c21d64ad7195c1b44f9d2b59eb04af46ac2dc50b
4
- data.tar.gz: fd0e3397f94d36b3817c79e1432b7186155cc26e
3
+ metadata.gz: f68912f8f6c1339953b5e1432aa41b5f2390cf0b
4
+ data.tar.gz: d71da06c6ee9d2e3b5a737732a62b06485418f95
5
5
  SHA512:
6
- metadata.gz: 5b33c78c07edd99fd9fdfb1b0abd8f9ba05b3e6ddd4e33439abbcde34713c2f0afa59943dbb92ff46f96cb3fb4ea347d3e3caa7d445423b1950f884441995f50
7
- data.tar.gz: 9324e5b4ff95aa09d008a28892b5abd69e146208f6feb4b81cdbf2d9979ef9dd977f50f5661157c20d5e89a64758317898c622472f180ff03a067a127f1d8eae
6
+ metadata.gz: adbfaf667482914699ba0a63592351bc47dd64de7099ae747db78337a9cbc8268d464806c56997f1a7f9516eeb3ed8141c06866a31c873adf2134823f85e93bf
7
+ data.tar.gz: a91d1c337f10dc2cce0c3017bf2a0bf1e87f908969818fa4f61a97e69ebeabccd3b3c7786f663aaec25d98fc7c4c4ae2f3f99b7f053156ab9bd692431f6c206a
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -13,18 +13,9 @@ module Truty
13
13
  input = soft_hyphens(input, "fr")
14
14
  input = general(input)
15
15
  input = french_double_quotes(input)
16
- input = french_single_quotes(input)
17
16
  end
18
17
 
19
- # Converts single quotes to the typograhic ones.
20
- #
21
- # @param input [String] The paragraph which will be converted.
22
- # @return [String] Paragraph with correct single quotes.
23
- def french_single_quotes(input)
24
- quotes(input, "'", "‹ ", " ›")
25
- end
26
-
27
- # Converts double quotes to the typograhic ones.
18
+ # Converts double quotes to the typograhic ones, guillemets.
28
19
  #
29
20
  # @param input [String] The paragraph which will be converted.
30
21
  # @return [String] Paragraph with correct double quotes.
@@ -144,7 +144,7 @@ module Truty
144
144
  input.gsub(/\s*([\!\?\.,;:…]+)\s*/, '\1 ')
145
145
  end
146
146
 
147
- # Fixes non-breaking spaces betwwen number and unit.
147
+ # Fixes non-breaking spaces between number and unit, mainly SI.
148
148
  #
149
149
  # @param input [String] The paragraph which will be converted.
150
150
  # @return [String] Paragraph with correct spaces between number and unit.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matěj Kašpar Jirásek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-12 00:00:00.000000000 Z
11
+ date: 2015-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: text-hyphen
@@ -130,8 +130,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.4.3
133
+ rubygems_version: 2.4.5.1
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: True typography converter
137
137
  test_files: []
138
+ has_rdoc: