lexical_units 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Rakefile +2 -2
- data/lexical_units.gemspec +4 -4
- data/lib/lexical_units/syllables.rb +2 -2
- data/lib/lexical_units/version.rb +1 -1
- data/lib/lexical_units/words.rb +2 -2
- data/lib/lexical_units/words_without_digits.rb +1 -1
- data/spec/lexical_units/words_spec.rb +6 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 706c8ac742555e86307599a7e93ee9bfd6c81a81
|
4
|
+
data.tar.gz: 465e2e0b0652c69934b2aec06a7969498ba44ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f2b3b6aa474eec9cc9631b324ac01955ccf559bbbfab871a580f17376b7335e2f720c1b080ac78de872755b73c7ea55b580067bf16b613c446bccf4741fc0c1
|
7
|
+
data.tar.gz: 6fae074aab3bc77433278b3fcd6e46531e0528b77d9b1f5597bcfe35b3b0a28b2d9a3b01067428fc2fcf19b2f5e6b046bf3acd08c800d60e8f3a53943554d46a
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
data/lexical_units.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = LexicalUnits::VERSION
|
9
9
|
spec.authors = ['Aleksander Malaszkiewicz']
|
10
10
|
spec.email = %w(info@fractalsoft.org)
|
11
|
-
spec.summary = %q
|
11
|
+
spec.summary = %q(Split text into lexical units)
|
12
12
|
spec.homepage = 'https://github.com/fractalsoft/lexical_units'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
21
|
-
spec.add_development_dependency 'rake', '
|
22
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
20
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
21
|
+
spec.add_development_dependency 'rake', '>=0'
|
22
|
+
spec.add_development_dependency 'rspec', '~> 3.0.0'
|
23
23
|
end
|
data/lib/lexical_units/words.rb
CHANGED
@@ -16,8 +16,8 @@ module LexicalUnits
|
|
16
16
|
def self.separators
|
17
17
|
[
|
18
18
|
'\,', '\:', '\;', '\.', '\?', '\!', '\/', '\|', '\~',
|
19
|
-
'\(', '\)', '\[', '\]', '\>', '\<', '\{', '\}',
|
20
|
-
"\¿", "\¡", '\=', '\"', "\»", "\«", '\@', '\#', '\+', '–', '—'
|
19
|
+
'\(', '\)', '\[', '\]', '\>', '\<', '\{', '\}', '„', '”',
|
20
|
+
'\~', "\¿", "\¡", '\=', '\"', "\»", "\«", '\@', '\#', '\+', '–', '—'
|
21
21
|
].join
|
22
22
|
end
|
23
23
|
end
|
@@ -141,5 +141,11 @@ describe LexicalUnits do
|
|
141
141
|
|
142
142
|
expect(subject.words(text)).to eq(@array)
|
143
143
|
end
|
144
|
+
|
145
|
+
it 'split text with long dash (–) into words' do
|
146
|
+
text = %Q(Lorem–ipsum–dolor sit–amet)
|
147
|
+
|
148
|
+
expect(subject.words(text)).to eq(@array)
|
149
|
+
end
|
144
150
|
end
|
145
151
|
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.4
|
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-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,26 +16,26 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 3.0.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.0.0
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- info@fractalsoft.org
|