lexical_units 0.0.4 → 0.0.6

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: fb575468ab234bcb093fc2afef714783d6aaf1e6
4
- data.tar.gz: 90dc07a58c80092a35eec789d753be608e9af013
3
+ metadata.gz: 39ea38ff431ac8504a190d5568e7b006343ee6a5
4
+ data.tar.gz: d95f0fcc0db377aa3e4cc265d73142dd77ca8e04
5
5
  SHA512:
6
- metadata.gz: a40c9845569546f2014908aa585bd68ffd1207232aac5eb6870ce435acafb5fb64342721eccb5187ecfc34f9c8bc042f643cf4fc6fce08af17782fe892af5485
7
- data.tar.gz: 7d2eaf43d6faa80ec1fe3da6bc6d0f40e22554e2e8e7416906a88636566f1cf4ba6faf09b48234cc23dee1ed1c6f61aa47d3b9f599460aa9862a4af858fbbb7d
6
+ metadata.gz: ae037e456ef84ebe508ea2ed85781c0ffdb48c967f858cab675ba3437a44effca7805c54db3c267fe28c391fffc9ecbe2523bf8de94de54aae5bcc598cbe885b
7
+ data.tar.gz: a694d6ead66f92d9816a9822060452c88324537becf62174993a34d8d37ec79853a23f765222ce0dead985d1ca5fa0558eecbcfd03ef2b8c6c7955a487f87351
data/.travis.yml CHANGED
@@ -2,4 +2,3 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
- - jruby-head
data/CHANGELOG.md CHANGED
@@ -13,3 +13,11 @@
13
13
  ## v0.0.4
14
14
 
15
15
  * added split into words with Spanish marks
16
+
17
+ ## v0.0.5
18
+
19
+ * removed JRuby support
20
+
21
+ ## v0.0.6
22
+
23
+ * support words with hyphen
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  module LexicalUnits
3
3
  # Split text into sentences
4
4
  #
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  module LexicalUnits
3
3
  module String
4
4
  def words
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  module LexicalUnits
3
3
  def self.syllables(text)
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module LexicalUnits
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  module LexicalUnits
3
3
  # Split text into words
4
4
  #
@@ -14,7 +14,7 @@ module LexicalUnits
14
14
  [
15
15
  '\,', '\:', '\;',
16
16
  '\.', '\?', '\!',
17
- '\-', '\/',
17
+ '\/',
18
18
  '\(', '\)',
19
19
  '\[', '\]',
20
20
  '\>', '\<',
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  require 'spec_helper'
3
3
 
4
4
  describe LexicalUnits do
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  require 'spec_helper'
3
3
 
4
4
  describe LexicalUnits::String do
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  require 'spec_helper'
3
3
 
4
4
  describe LexicalUnits do
@@ -32,10 +32,11 @@ describe LexicalUnits do
32
32
  subject.words(text).should eq(array)
33
33
  end
34
34
 
35
- it "splits text with hyphen into words" do
35
+ it "no splits text with hyphen into words" do
36
36
  text = "Lorem ipsum dolor-sit amet"
37
+ array = %w(Lorem ipsum dolor-sit amet)
37
38
 
38
- subject.words(text).should eq(@array)
39
+ subject.words(text).should eq(array)
39
40
  end
40
41
 
41
42
  it "splits text with slash into words" do
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.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksander Malaszkiewicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-11 00:00:00.000000000 Z
11
+ date: 2013-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler