srx-english 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/changelog.txt CHANGED
@@ -1,2 +1,4 @@
1
+ 0.1.1
2
+ - Use getc instead of readchar
1
3
  0.1.0
2
4
  - First release of sentence segmentation rules for English
@@ -54,7 +54,7 @@ module SRX
54
54
  sentence = ""
55
55
  before_buffer = ""
56
56
  @input.pos = 0
57
- after_buffer = buffer_length.times.map{|i| @input.readchar}.join("")
57
+ after_buffer = buffer_length.times.map{|i| @input.getc }.join("")
58
58
  matched_rule = nil
59
59
  while(!@input.eof?) do
60
60
  matched_before = BEFORE_RE.match(before_buffer)
data/srx-english.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "srx-english"
6
- s.version = "0.1.0"
6
+ s.version = "0.1.1"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Aleksander Pohl"]
9
9
  s.email = ["apohllo@o2.pl"]
metadata CHANGED
@@ -1,38 +1,40 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: srx-english
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
4
5
  prerelease:
5
- version: 0.1.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Aleksander Pohl
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-04-19 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-10-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: term-ansicolor
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
23
21
  version: 1.0.5
24
22
  type: :runtime
25
- version_requirements: *id001
26
- description: "English sentence and word segmentation rules. The sentence segmentation rules are based on Marcin Mi\xC5\x82kowski's SRX rules."
27
- email:
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.5
30
+ description: English sentence and word segmentation rules. The sentence segmentation
31
+ rules are based on Marcin Miłkowski's SRX rules.
32
+ email:
28
33
  - apohllo@o2.pl
29
34
  executables: []
30
-
31
35
  extensions: []
32
-
33
36
  extra_rdoc_files: []
34
-
35
- files:
37
+ files:
36
38
  - .gitignore
37
39
  - README.rdoc
38
40
  - changelog.txt
@@ -45,33 +47,31 @@ files:
45
47
  - srx-english.gemspec
46
48
  homepage: http://github.com/apohllo/srx2ruby
47
49
  licenses: []
48
-
49
50
  post_install_message:
50
51
  rdoc_options: []
51
-
52
- require_paths:
52
+ require_paths:
53
53
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
55
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: "0"
60
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  none: false
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
66
  requirements: []
67
-
68
67
  rubyforge_project: srx-english
69
- rubygems_version: 1.8.21
68
+ rubygems_version: 1.8.24
70
69
  signing_key:
71
70
  specification_version: 3
72
71
  summary: English sentence and word segmentation rules.
73
- test_files:
72
+ test_files:
74
73
  - features/sentence_splitter.feature
75
74
  - features/steps/sentence_splitter.rb
76
75
  - features/steps/word_splitter.rb
77
76
  - features/word_splitter.feature
77
+ has_rdoc: false