lexical_units 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lexical_units/version.rb +1 -1
- data/lib/lexical_units/words.rb +1 -1
- data/spec/lexical_units/words_spec.rb +6 -0
- 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: f4f8d55f995e177ba41ee1ca941575ffc87adbf7
|
4
|
+
data.tar.gz: b6c94216afaa175a5a062f8f3e7bd42802a704c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c8393e7782bbe0b484cd6a46e17a5e1e919975c8072783d1877ea85cc3ef93e0aca2973b4c4ee971343111c45f7cb0b2321876a9a6cc423471b089f0e8a4c21
|
7
|
+
data.tar.gz: 65a89ded8f4e592d5b6078d1c7c0e84cdaa8c894ca5af55bf27774fb0125517b48880bdb1faa6cd13e9c645c88f7b0a2f3b466644ecad965f0cab6107ef89557
|
data/lib/lexical_units/words.rb
CHANGED
@@ -17,7 +17,7 @@ module LexicalUnits
|
|
17
17
|
[
|
18
18
|
'\,', '\:', '\;', '\.', '\?', '\!', '\/',
|
19
19
|
'\(', '\)', '\[', '\]', '\>', '\<', '\{', '\}',
|
20
|
-
'\|', '\~', "\¿", "\¡", '\=', '\"', "\»", "\«", '\@', '\#', '\+'
|
20
|
+
'\|', '\~', "\¿", "\¡", '\=', '\"', "\»", "\«", '\@', '\#', '\+', '–'
|
21
21
|
].join
|
22
22
|
end
|
23
23
|
end
|
@@ -123,5 +123,11 @@ describe LexicalUnits do
|
|
123
123
|
|
124
124
|
expect(subject.words(text)).to eq(@array)
|
125
125
|
end
|
126
|
+
|
127
|
+
it 'splite text with minus (–) into words' do
|
128
|
+
text = %Q(Lorem ipsum–dolor sit amet)
|
129
|
+
|
130
|
+
expect(subject.words(text)).to eq(@array)
|
131
|
+
end
|
126
132
|
end
|
127
133
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lexical_units
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksander Malaszkiewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|