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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a580c1d8e7c8e7c49471c59ad7f2f58730e71570
4
- data.tar.gz: c4f5f7f0e9702f3feedab6cfb94663b2bb510c38
3
+ metadata.gz: 706c8ac742555e86307599a7e93ee9bfd6c81a81
4
+ data.tar.gz: 465e2e0b0652c69934b2aec06a7969498ba44ea9
5
5
  SHA512:
6
- metadata.gz: 3e930d842913965b4baa7fa7df71210da3df70c7d9e8700e46e8253b563e55659a5d0276f68daaa1b85459f5852241f6202a1c7537ea050bf02d291a7d688893
7
- data.tar.gz: b6e5bc6caf55117d8072f88882c8e8815ada1dadf8cb7606e372c66b5e34becfcd264a22b89fba3fb92e87592d9e2103cccfd3f6e1cba3cfba04e84447dffbbf
6
+ metadata.gz: 1f2b3b6aa474eec9cc9631b324ac01955ccf559bbbfab871a580f17376b7335e2f720c1b080ac78de872755b73c7ea55b580067bf16b613c446bccf4741fc0c1
7
+ data.tar.gz: 6fae074aab3bc77433278b3fcd6e46531e0528b77d9b1f5597bcfe35b3b0a28b2d9a3b01067428fc2fcf19b2f5e6b046bf3acd08c800d60e8f3a53943554d46a
@@ -33,3 +33,11 @@
33
33
  ## v0.0.9
34
34
 
35
35
  * added split into sentences and each into words
36
+
37
+ ## v0.1.0
38
+
39
+ * added split into sentences without end-dot
40
+
41
+ ## v0.1.4
42
+
43
+ * added split into words with long dash marks & fixed bugs
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
3
 
4
- task :default => :spec
4
+ task default: :spec
5
5
  RSpec::Core::RakeTask.new
@@ -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{Split text into lexical units}
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.3'
21
- spec.add_development_dependency 'rake', '~> 0'
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
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
- #
3
+ # Syllables is a complex problem.
4
4
  module LexicalUnits
5
- def self.syllables(text)
5
+ def self.syllables(_)
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
1
  # Gem version
2
2
  module LexicalUnits
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
@@ -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
@@ -18,4 +18,4 @@ module LexicalUnits
18
18
  rescue
19
19
  false
20
20
  end
21
- end
21
+ 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.3
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-08-04 00:00:00.000000000 Z
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.3'
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.3'
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: '3.0'
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: '3.0'
54
+ version: 3.0.0
55
55
  description:
56
56
  email:
57
57
  - info@fractalsoft.org