linkparser 2.0.0 → 2.1.0.pre20160901165018

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
- SHA1:
3
- metadata.gz: efc4f3a1276fa02671075995ab71b7941fd85dcc
4
- data.tar.gz: 51c133d19189f4f2a20ec69528a0553e5d7cd540
2
+ SHA256:
3
+ metadata.gz: d5fd398b05238db7f64245da3f3e45a3d84432ec4472aafd9b3aae6e5d484415
4
+ data.tar.gz: 634efee94ab971e184088012d76ee8b88614c7e5086224ef83748e1e1f726d49
5
5
  SHA512:
6
- metadata.gz: 2530f1ee151c4edb144c6973ea440fdd7a3efb8ed9968ccbdaec47d168051ac4667e71ef2c785bc183fb994d370c0ba85088fbcb3974e03ce7988b7a6c48493d
7
- data.tar.gz: 24ea588e3cae4243a933c548e2bfae672715f244caa376b8db38956a291581d7ca778416e68f45b6c987f545e52af8291ebeb6603038924dad03485c87d5c3c0
6
+ metadata.gz: a155efd292f3fe17dc296d488c288ec643cf85166fa992d50b4e059ddbbf4c5f5cf25f80843d9f9ea375c9538e5b5bb8644f69b3116d80df28fbc9c056532306
7
+ data.tar.gz: e36c633bcbc49a9bb704ed35d87100ad576d6447b5277669b82fbbb516ec6d81c44488f2aed077c090828c41251847809fa749ebd11cce404d44332a0f271430
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006-2011, The FaerieMUD Consortium
1
+ Copyright (c) 2006-2016, The FaerieMUD Consortium
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -79,7 +79,7 @@ https://www.gnu.org/licenses/lgpl-2.1.html
79
79
 
80
80
  The gem itself is licensed under the BSD license:
81
81
 
82
- Copyright (c) 2006-2015, The FaerieMUD Consortium
82
+ Copyright (c) 2006-2016, The FaerieMUD Consortium
83
83
  All rights reserved.
84
84
 
85
85
  Redistribution and use in source and binary forms, with or without
data/Rakefile CHANGED
@@ -114,6 +114,7 @@ task GEMSPEC do |task|
114
114
  spec.files.delete( '.gemtest' )
115
115
  spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
116
116
  spec.signing_key = nil
117
+ spec.cert_chain = [ 'certs/ged.pem' ]
117
118
  File.open( task.name, 'w' ) do |fh|
118
119
  fh.write( spec.to_ruby )
119
120
  end
data/ext/extconf.rb CHANGED
@@ -35,6 +35,7 @@ have_func( 'dictionary_create' )
35
35
  have_func( 'dictionary_create_lang' )
36
36
  have_func( 'parse_options_get_spell_guess' )
37
37
  have_func( 'linkage_get_disjunct_str' )
38
+ have_func( 'linkgrammar_get_version' )
38
39
 
39
40
  create_header()
40
41
  create_makefile( 'linkparser_ext' )
@@ -35,11 +35,7 @@ describe LinkParser::Linkage do
35
35
 
36
36
  it "can build a diagram string for a sentence wrapped to a screen width" do
37
37
  diagram = linkage.diagram( max_width: 10 )
38
-
39
- pending \
40
- 'link-grammar itself returns "wet.a . \n" as the second-to-last ' \
41
- 'line.'
42
- expect( diagram.each_line.map(&:length) ).to all( be <= 11 )
38
+ expect( diagram.each_line.map(&:strip).map(&:length) ).to all( be <= 10 )
43
39
  end
44
40
 
45
41
 
@@ -50,13 +46,13 @@ describe LinkParser::Linkage do
50
46
 
51
47
  it "can build a 'links and domains' diagram" do
52
48
  expect( linkage.links_and_domains.each_line ).to include(
53
- " LEFT-WALL Xp ----Xp----- Xp .\n",
54
- " (s) (v) LEFT-WALL hWV >---WV----> dWV was.v-d\n",
55
- " LEFT-WALL Wd ----Wd----- Wd flag.n\n",
56
- " (s) flag.n Ss ----Ss----- Ss was.v-d\n",
57
- " (s) the D ----Ds**c-- Ds**c flag.n\n",
58
- " (s) (v) was.v-d Pa ----Pa----- Pa wet.a\n",
59
- " . RW ----RW----- RW RIGHT-WALL\n",
49
+ " LEFT-WALL Xp ----Xp----- Xp .\n",
50
+ " (m) LEFT-WALL hWV >---WV----> dWV was.v-d\n",
51
+ " (m) LEFT-WALL Wd ----Wd----- Wd flag.n\n",
52
+ " (m) flag.n Ss ----Ss----- Ss was.v-d\n",
53
+ " (m) the D ----Ds**c-- Ds**c flag.n\n",
54
+ " (m) was.v-d Pa ----Pa----- Pa wet.a\n",
55
+ " . RW ----RW----- RW RIGHT-WALL\n",
60
56
  "\n"
61
57
  )
62
58
  end
@@ -174,11 +170,11 @@ describe LinkParser::Linkage do
174
170
 
175
171
  it "can return the number of domains for any link" do
176
172
  expect( linkage.link_num_domains(0) ).to eq( 0 )
177
- expect( linkage.link_num_domains(1) ).to eq( 2 )
178
- expect( linkage.link_num_domains(2) ).to eq( 0 )
173
+ expect( linkage.link_num_domains(1) ).to eq( 1 )
174
+ expect( linkage.link_num_domains(2) ).to eq( 1 )
179
175
  expect( linkage.link_num_domains(3) ).to eq( 1 )
180
176
  expect( linkage.link_num_domains(4) ).to eq( 1 )
181
- expect( linkage.link_num_domains(5) ).to eq( 2 )
177
+ expect( linkage.link_num_domains(5) ).to eq( 1 )
182
178
  expect( linkage.link_num_domains(6) ).to eq( 0 )
183
179
 
184
180
  expect( linkage.link_num_domains(112) ).to eq( -1 )
@@ -190,19 +186,19 @@ describe LinkParser::Linkage do
190
186
  expect( linkage.link_domain_names(0) ).to be_empty
191
187
 
192
188
  expect( linkage.link_domain_names(1) ).to be_an_instance_of( Array )
193
- expect( linkage.link_domain_names(1) ).to eq( ['s', 'v'] )
189
+ expect( linkage.link_domain_names(1) ).to eq( ['m'] )
194
190
 
195
191
  expect( linkage.link_domain_names(2) ).to be_an_instance_of( Array )
196
- expect( linkage.link_domain_names(2) ).to be_empty
192
+ expect( linkage.link_domain_names(2) ).to eq( ['m'] )
197
193
 
198
194
  expect( linkage.link_domain_names(3) ).to be_an_instance_of( Array )
199
- expect( linkage.link_domain_names(3) ).to eq( ["s"] )
195
+ expect( linkage.link_domain_names(3) ).to eq( ["m"] )
200
196
 
201
197
  expect( linkage.link_domain_names(4) ).to be_an_instance_of( Array )
202
- expect( linkage.link_domain_names(4) ).to eq( ['s'] )
198
+ expect( linkage.link_domain_names(4) ).to eq( ['m'] )
203
199
 
204
200
  expect( linkage.link_domain_names(5) ).to be_an_instance_of( Array )
205
- expect( linkage.link_domain_names(5) ).to eq( ['s', 'v'] )
201
+ expect( linkage.link_domain_names(5) ).to eq( ['m'] )
206
202
 
207
203
  expect( linkage.link_domain_names(6) ).to be_an_instance_of( Array )
208
204
  expect( linkage.link_domain_names(6) ).to be_empty
@@ -293,7 +289,7 @@ describe LinkParser::Linkage do
293
289
 
294
290
 
295
291
  it "can return the object without stripping the subscript" do
296
- expect( linkage.object(keep_subscript: true) ).to eq( "ball.n-u" )
292
+ expect( linkage.object(keep_subscript: true) ).to eq( linkage.words[5] )
297
293
  end
298
294
 
299
295
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0.pre20160901165018
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -11,27 +11,32 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
14
+ MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
15
15
  GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
16
- HhcNMTQwMzE5MDQzNTI2WhcNMTUwMzE5MDQzNTI2WjA+MQwwCgYDVQQDDANnZWQx
16
+ HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
17
17
  GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
18
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAo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VDsfQm0eJh5zYZD64ZF86phSR7mUX3mXItwH04HrZwkWpvgd871DZVR3i1n
36
+ w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
37
+ p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
33
38
  -----END CERTIFICATE-----
34
- date: 2015-03-12 00:00:00.000000000 Z
39
+ date: 2016-09-01 00:00:00.000000000 Z
35
40
  dependencies:
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: loggability
@@ -67,14 +72,14 @@ dependencies:
67
72
  requirements:
68
73
  - - "~>"
69
74
  - !ruby/object:Gem::Version
70
- version: '0.6'
75
+ version: '0.8'
71
76
  type: :development
72
77
  prerelease: false
73
78
  version_requirements: !ruby/object:Gem::Requirement
74
79
  requirements:
75
80
  - - "~>"
76
81
  - !ruby/object:Gem::Version
77
- version: '0.6'
82
+ version: '0.8'
78
83
  - !ruby/object:Gem::Dependency
79
84
  name: hoe-highline
80
85
  requirement: !ruby/object:Gem::Requirement
@@ -137,14 +142,14 @@ dependencies:
137
142
  requirements:
138
143
  - - "~>"
139
144
  - !ruby/object:Gem::Version
140
- version: '3.13'
145
+ version: '3.15'
141
146
  type: :development
142
147
  prerelease: false
143
148
  version_requirements: !ruby/object:Gem::Requirement
144
149
  requirements:
145
150
  - - "~>"
146
151
  - !ruby/object:Gem::Version
147
- version: '3.13'
152
+ version: '3.15'
148
153
  description: |-
149
154
  This module is a Ruby binding for
150
155
  [the Abiword version](http://www.abisource.com/projects/link-grammar/) of CMU's
@@ -166,7 +171,6 @@ extra_rdoc_files:
166
171
  - ext/parseoptions.c
167
172
  - ext/sentence.c
168
173
  files:
169
- - ".gemtest"
170
174
  - ".simplecov"
171
175
  - ChangeLog
172
176
  - History.md
@@ -212,12 +216,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
216
  version: 2.0.0
213
217
  required_rubygems_version: !ruby/object:Gem::Requirement
214
218
  requirements:
215
- - - ">="
219
+ - - ">"
216
220
  - !ruby/object:Gem::Version
217
- version: '0'
221
+ version: 1.3.1
218
222
  requirements: []
219
223
  rubyforge_project:
220
- rubygems_version: 2.4.5
224
+ rubygems_version: 2.5.1
221
225
  signing_key:
222
226
  specification_version: 4
223
227
  summary: This module is a Ruby binding for [the Abiword version](http://www.abisource.com/projects/link-grammar/)
checksums.yaml.gz.sig DELETED
Binary file
data.tar.gz.sig DELETED
Binary file
data/.gemtest DELETED
File without changes
metadata.gz.sig DELETED
Binary file