linkparser 1.1.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,7 @@
1
- #!/usr/bin/ruby -w
2
- #
3
- # Specification for the LinkParser::Sentence class
4
- # $Id: mixins_spec.rb,v 54e4e2ff8899 2010/11/25 00:50:55 ged $
5
- #
6
- # See the LICENSE file in the distribution for information about copyright and licensing.
7
- #
1
+ # -*- ruby -*-
2
+ # frozen_string_literal: true
8
3
 
9
- BEGIN {
10
- require 'pathname'
11
- basedir = Pathname.new( __FILE__ ).dirname.parent.parent
12
-
13
- libdir = basedir + 'lib'
14
- extdir = basedir + 'ext'
15
-
16
- $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
17
- $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
18
- $LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
19
- }
4
+ require_relative '../helpers'
20
5
 
21
6
  require 'rspec'
22
7
  require 'linkparser/mixins'
@@ -46,18 +31,18 @@ describe LinkParser, "mixins" do
46
31
  end
47
32
 
48
33
  it "provides a function for marking a method as deprecated" do
49
- @object.should_receive( :warn ).with( /deprecated/i )
50
- @object.no_args.should == :no_args_result
34
+ expect( @object ).to receive( :warn ).with( /deprecated/i )
35
+ expect( @object.no_args ).to eq( :no_args_result )
51
36
  end
52
37
 
53
38
  it "provides a function for marking a method that takes arguments as deprecated" do
54
- @object.should_receive( :warn ).with( /deprecated/i )
55
- @object.two_args( :arg_one, :arg_two ).should == [ :arg_one, :arg_two ]
39
+ expect( @object ).to receive( :warn ).with( /deprecated/i )
40
+ expect( @object.two_args( :arg_one, :arg_two ) ).to eq( [ :arg_one, :arg_two ] )
56
41
  end
57
42
 
58
43
  it "provides a function for marking a method with splatted arguments as deprecated" do
59
- @object.should_receive( :warn ).with( /deprecated/i )
60
- @object.splat_args( :arg_one, :arg_two ).should == [ :arg_one, :arg_two ]
44
+ expect( @object ).to receive( :warn ).with( /deprecated/i )
45
+ expect( @object.splat_args( :arg_one, :arg_two ) ).to eq( [ :arg_one, :arg_two ] )
61
46
  end
62
47
 
63
48
 
@@ -1,88 +1,76 @@
1
- #!/usr/bin/ruby -w
2
- #
3
- # Specification for the LinkParser::ParseOptions class
4
- # $Id: parseoptions_spec.rb,v 54e4e2ff8899 2010/11/25 00:50:55 ged $
5
- #
6
- # See the LICENSE file in the distribution for information about copyright and licensing.
7
- #
8
-
9
- BEGIN {
10
- require 'pathname'
11
- basedir = Pathname.new( __FILE__ ).dirname.parent.parent
12
-
13
- libdir = basedir + 'lib'
14
- extdir = basedir + 'ext'
15
-
16
- $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
17
- $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
18
- $LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
19
- }
1
+ # -*- ruby -*-
2
+ # frozen_string_literal: true
20
3
 
21
- require 'rspec'
4
+ require_relative '../helpers'
22
5
 
6
+ require 'rspec'
23
7
  require 'linkparser'
24
8
 
25
9
 
26
10
  describe LinkParser::ParseOptions do
27
11
 
28
- before( :all ) do
29
- $DEBUG = true if ENV['DEBUG']
30
- end
31
-
32
- before( :each ) do
33
- @opts = LinkParser::ParseOptions.new
34
- end
12
+ let( :opts ) { described_class.new }
35
13
 
36
14
 
37
15
  it "starts out with documented defaults" do
38
- @opts.verbosity.should == 1 # Docs say this is 0
39
- @opts.linkage_limit.should == 100 # Docs say this is 10000
40
- @opts.min_null_count.should == 0
41
- @opts.max_null_count.should == 0
42
- @opts.null_block.should == 1
43
- @opts.islands_ok?.should == false
44
- @opts.short_length.should == 6
45
- @opts.display_walls?.should == false
46
- @opts.display_union?.should == false
47
- @opts.allow_null?.should == true
48
- @opts.echo_on?.should == false
49
- @opts.batch_mode?.should == false
50
- @opts.panic_mode?.should == false
51
- @opts.screen_width.should == 79
52
- @opts.display_on?.should == true
53
- @opts.display_postscript? == false
54
- @opts.display_bad?.should == false
55
- @opts.display_links?.should == false
56
- @opts.all_short_connectors?.should == false
57
- end
58
-
59
- it "supports all the members mentioned in the documentation" do
60
- pending "some of them aren't implemented in the link-grammar library" do
61
- @opts.display_short?.should == true # Not in the API
62
- end
16
+ expect( opts.verbosity ).to eq( 1 ) # Docs say this is 0
17
+ expect( opts.linkage_limit ).to eq( 100 ) # Docs say this is 10000
18
+ expect( opts.disjunct_cost ).to eq( 2 )
19
+ expect( opts.min_null_count ).to eq( 0 )
20
+ expect( opts.max_null_count ).to eq( 0 )
21
+ expect( opts.islands_ok? ).to eq( false )
22
+ expect( opts.short_length ).to eq( 16 )
23
+ expect( opts.max_memory ).to eq( -1 )
24
+ expect( opts.max_parse_time ).to eq( -1 )
25
+ expect( opts.all_short_connectors? ).to eq( false )
26
+ expect( opts.cost_model_type ).to eq( :vdal )
63
27
  end
64
28
 
65
29
 
66
30
  it "knows whether the timer constraints were exceeded or not" do
67
- @opts.timer_expired?.should == false
31
+ expect( opts.timer_expired? ).to eq( false )
68
32
  end
69
33
 
34
+
70
35
  it "knows whether the memory constraints were exceeded or not" do
71
- @opts.memory_exhausted?.should == false
36
+ expect( opts.memory_exhausted? ).to eq( false )
72
37
  end
73
38
 
39
+
74
40
  it "knows whether the timer constraints were exceeded or not" do
75
- @opts.resources_exhausted?.should == false
41
+ expect( opts.resources_exhausted? ).to eq( false )
76
42
  end
77
43
 
44
+
78
45
  it "can reset the resource constraints" do
79
- lambda {
80
- @opts.reset_resources
81
- }.should_not raise_error()
46
+ expect {
47
+ opts.reset_resources
48
+ }.to_not raise_error()
82
49
  end
83
50
 
51
+
84
52
  it "knows whether spell_guessing is enabled or not" do
85
- @opts.spell_guessing_enabled?.should == true
53
+ expect( opts.spell_guessing_enabled? ).to be( true ).or( be false )
54
+ end
55
+
56
+
57
+ it "can set the cost model type to :vdal" do
58
+ opts.cost_model_type = :vdal
59
+ end
60
+
61
+
62
+ it "can set the cost model type to :corpus" do
63
+ pending "no way to tell if the underlying library is compiled with CORPUS support or not"
64
+ expect {
65
+ opts.cost_model_type = :corpus
66
+ }.to change { opts.cost_model_type }.from( :vdal ).to( :corpus )
67
+ end
68
+
69
+
70
+ it "doesn't allow the cost model to be set to an invalid value" do
71
+ expect {
72
+ opts.cost_model_type = :rafferty
73
+ }.to raise_error( ArgumentError, /unknown cost model/i )
86
74
  end
87
75
 
88
76
  end
@@ -1,140 +1,120 @@
1
- #!/usr/bin/ruby -w
2
- #
3
- # Specification for the LinkParser::Sentence class
4
- # $Id: sentence_spec.rb,v 1eddd00723e6 2010/11/22 15:59:36 ged $
5
- #
6
- # See the LICENSE file in the distribution for information about copyright and licensing.
7
- #
8
-
9
- BEGIN {
10
- require 'pathname'
11
- basedir = Pathname.new( __FILE__ ).dirname.parent.parent
12
-
13
- libdir = basedir + 'lib'
14
- extdir = basedir + 'ext'
15
-
16
- $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
17
- $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
18
- $LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
19
- }
1
+ # -*- ruby -*-
2
+ # frozen_string_literal: true
20
3
 
21
- require 'rspec'
4
+ require_relative '../helpers'
22
5
 
6
+ require 'rspec'
23
7
  require 'linkparser'
24
8
 
25
9
 
26
10
  describe LinkParser::Sentence do
27
11
 
28
12
  before( :all ) do
29
- @dict = LinkParser::Dictionary.new( 'en', :verbosity => 0 )
30
- $DEBUG = true if ENV['DEBUG']
13
+ @dict = LinkParser::Dictionary.new( 'en', verbosity: 0 )
31
14
  end
32
15
 
33
- before( :each ) do
34
- @sentence = LinkParser::Sentence.new( "The cat runs.", @dict )
35
- end
16
+
17
+ let( :dict ) { @dict }
18
+ let( :sentence ) { described_class.new("The cat runs.", dict) }
36
19
 
37
20
 
38
21
  it "returns an informational string when inspected before it's been parsed" do
39
- @sentence.inspect.should =~ %r{
22
+ expect( sentence.inspect ).to match( %r{
40
23
  <
41
24
  LinkParser::Sentence:0x[[:xdigit:]]+
42
25
  \s
43
26
  \(unparsed\)
44
27
  >
45
- }x
28
+ }x )
46
29
  end
47
30
 
48
31
  it "returns an informational string when inspected after it's been parsed" do
49
- @sentence.parse
50
- @sentence.inspect.should =~ %r{
32
+ sentence.parse
33
+ expect( sentence.inspect ).to match( %r{
51
34
  <
52
35
  LinkParser::Sentence:0x[[:xdigit:]]+
53
36
  \s
54
- (?-x:"LEFT-WALL the cat runs . RIGHT-WALL")
37
+ (?-x:"LEFT-WALL the cat\.n runs\.v . RIGHT-WALL")
55
38
  /\d+\slinkages
56
39
  /\d+\snulls
57
40
  >
58
- }x
41
+ }x )
59
42
  end
60
43
 
61
44
  it "can return itself as a tokenized string" do
62
- @sentence.to_s.should == "LEFT-WALL the cat runs . RIGHT-WALL"
45
+ expect( sentence.to_s ).to eq( "LEFT-WALL the cat.n runs.v . RIGHT-WALL" )
63
46
  end
64
47
 
65
48
 
66
49
  it "returns the linkage count as the result of parsing the sentence" do
67
- @sentence.parse.should == 1
50
+ expect( sentence.parse ).to eq( 3 )
68
51
  end
69
52
 
70
53
 
71
54
  it "accepts parse options when parsing" do
72
- @sentence.parse( :verbosity => 0 )
55
+ sentence.parse( verbosity: 0 )
73
56
  end
74
57
 
75
58
 
76
59
  it "knows how many words are in it, including walls and punctuation" do
77
- @sentence.length == 6
60
+ expect( sentence.length ).to eq( 6 )
78
61
  end
79
62
 
80
63
 
81
64
  it "delegates linkage methods to its first linkage" do
82
- @sentence.num_links.should == 5
65
+ expect( sentence.num_links ).to eq( 6 )
83
66
  end
84
67
 
85
68
 
86
69
  it "knows whether or not it's been parsed" do
87
- @sentence.should_not be_parsed()
88
- @sentence.parse
89
- @sentence.should be_parsed()
70
+ expect( sentence ).to_not be_parsed()
71
+ sentence.parse
72
+ expect( sentence ).to be_parsed()
90
73
  end
91
74
 
92
75
 
93
76
  it "can return its linkages" do
94
- @sentence.should have(1).linkages
95
- @sentence.linkages.first.should be_an_instance_of( LinkParser::Linkage )
77
+ expect( sentence.linkages.count ).to eq( 3 )
78
+ expect( sentence.linkages ).to all( be_an_instance_of(LinkParser::Linkage) )
96
79
  end
97
80
 
98
- it "can return words at a specified position" do
99
- @sentence.word( 0 ).should == 'LEFT-WALL'
100
- @sentence[ -1 ].should == 'RIGHT-WALL'
101
- end
102
81
 
103
82
  it "can return an Array of all tokenized words" do
104
- @sentence.words.should == [
105
- 'LEFT-WALL', 'the', 'cat', 'runs', '.', 'RIGHT-WALL'
106
- ]
83
+ expect( sentence.words ).to eq([
84
+ 'LEFT-WALL', 'the', 'cat.n', 'runs.v', '.', 'RIGHT-WALL'
85
+ ])
107
86
  end
108
87
 
109
88
 
110
89
  it "knows that it doesn't have any superfluous words in it" do
111
- @sentence.null_count == 0
90
+ expect( sentence.null_count ).to eq( 0 )
112
91
  end
113
92
 
114
93
 
115
94
 
116
95
  describe "parsed from a sentence with a superfluous word in it" do
117
96
 
118
- before( :each ) do
119
- @sentence = @dict.parse( "This sentence contains a gravel superfluous word.")
97
+ let( :sentence ) do
98
+ described_class.new("This sentence contains a gravel superfluous word.", dict)
120
99
  end
121
100
 
122
101
 
123
102
  it "knows how many null links it has" do
124
- @sentence.null_count == 1
103
+ sentence.parse( max_null_count: 3, min_null_count: 1 )
104
+ expect( sentence.null_count ).to eq( 1 )
125
105
  end
106
+
126
107
  end
127
108
 
128
109
 
129
110
  describe "parsed from a sentence that yields no linkages" do
130
111
 
131
- before( :each ) do
132
- @sentence = @dict.parse( "The event that he smiled at me gives me hope" )
133
- end
112
+ let( :sentence ) { dict.parse("The event that he smiled at me gives me hope") }
113
+
134
114
 
135
115
  it "raises a descriptive exception if a delegated method is called" do
136
116
  expect {
137
- @sentence.constituent_tree_string
117
+ sentence.diagram
138
118
  }.to raise_error( LinkParser::Error, /sentence has no linkages/i )
139
119
  end
140
120
 
@@ -1,36 +1,22 @@
1
- #!/usr/bin/ruby -w
2
- #
3
- # Specification for the LinkParser library
4
- # $Id: linkparser_spec.rb,v 1eddd00723e6 2010/11/22 15:59:36 ged $
5
- #
6
- # See the LICENSE file in the distribution for information about copyright and licensing.
7
- #
8
-
9
- BEGIN {
10
- require 'pathname'
11
- basedir = Pathname.new( __FILE__ ).dirname.parent
12
-
13
- libdir = basedir + 'lib'
14
- extdir = basedir + 'ext'
15
-
16
- $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
17
- $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
18
- $LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
19
- }
1
+ # -*- ruby -*-
2
+ # frozen_string_literal: true
20
3
 
21
- require 'rspec'
4
+ require_relative 'helpers'
22
5
 
6
+ require 'rspec'
23
7
  require 'linkparser'
24
8
 
25
9
 
26
10
  describe LinkParser do
27
11
 
28
- before( :all ) do
29
- $DEBUG = true if ENV['DEBUG']
12
+ it "knows what version of the link-grammar library it was built against" do
13
+ expect( LinkParser.link_grammar_version ).to match( /link-grammar-\d+\.\d+\.\d+/i )
30
14
  end
31
15
 
32
- it "knows what version of the link-grammar library it was built against" do
33
- LinkParser.link_grammar_version.should =~ /link-grammar-\d+\.\d+\.\d+/i
16
+
17
+ it "knows what the configuration of the link-grammar library was" do
18
+ expect( LinkParser.link_grammar_config ).to match( /compiled with:/i )
34
19
  end
35
20
 
36
- end
21
+ end
22
+
metadata CHANGED
@@ -1,209 +1,169 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: linkparser
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 3
10
- version: 1.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Michael Granger
14
- - Martin Chase
15
- autorequire:
8
+ autorequire:
16
9
  bindir: bin
17
- cert_chain:
10
+ cert_chain:
18
11
  - |
19
12
  -----BEGIN CERTIFICATE-----
20
- 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
- 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
- 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
- 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
- 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
- h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
26
- 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
- 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
- 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
- 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
- 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
- +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
- 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
- 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
- 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
- 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
- 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
34
+ k9FjI4d9EP54gS/4
37
35
  -----END CERTIFICATE-----
38
-
39
- date: 2011-05-16 00:00:00 Z
40
- dependencies:
41
- - !ruby/object:Gem::Dependency
42
- name: rake-compiler
43
- prerelease: false
44
- requirement: &id001 !ruby/object:Gem::Requirement
45
- none: false
46
- requirements:
47
- - - ~>
48
- - !ruby/object:Gem::Version
49
- hash: 5
50
- segments:
51
- - 0
52
- - 7
53
- version: "0.7"
36
+ date: 2020-12-24 00:00:00.000000000 Z
37
+ dependencies:
38
+ - !ruby/object:Gem::Dependency
39
+ name: loggability
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - "~>"
43
+ - !ruby/object:Gem::Version
44
+ version: '0.17'
54
45
  type: :runtime
55
- version_requirements: *id001
56
- - !ruby/object:Gem::Dependency
57
- name: hoe-mercurial
58
46
  prerelease: false
59
- requirement: &id002 !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
62
- - - ~>
63
- - !ruby/object:Gem::Version
64
- hash: 29
65
- segments:
66
- - 1
67
- - 2
68
- - 1
69
- version: 1.2.1
70
- type: :development
71
- version_requirements: *id002
72
- - !ruby/object:Gem::Dependency
73
- name: hoe-highline
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - "~>"
50
+ - !ruby/object:Gem::Version
51
+ version: '0.17'
52
+ - !ruby/object:Gem::Dependency
53
+ name: rake-compiler
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "~>"
57
+ - !ruby/object:Gem::Version
58
+ version: '1.1'
59
+ type: :runtime
74
60
  prerelease: false
75
- requirement: &id003 !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ~>
79
- - !ruby/object:Gem::Version
80
- hash: 29
81
- segments:
82
- - 0
83
- - 0
84
- - 1
85
- version: 0.0.1
86
- type: :development
87
- version_requirements: *id003
88
- - !ruby/object:Gem::Dependency
89
- name: rspec
61
+ version_requirements: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - "~>"
64
+ - !ruby/object:Gem::Version
65
+ version: '1.1'
66
+ - !ruby/object:Gem::Dependency
67
+ name: rdoc
68
+ requirement: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '6.2'
73
+ type: :runtime
90
74
  prerelease: false
91
- requirement: &id004 !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ~>
95
- - !ruby/object:Gem::Version
96
- hash: 11
97
- segments:
98
- - 2
99
- - 4
100
- version: "2.4"
75
+ version_requirements: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '6.2'
80
+ - !ruby/object:Gem::Dependency
81
+ name: rake-deveiate
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '0.15'
101
87
  type: :development
102
- version_requirements: *id004
103
- - !ruby/object:Gem::Dependency
104
- name: hoe-deveiate
105
88
  prerelease: false
106
- requirement: &id005 !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- hash: 19
112
- segments:
113
- - 0
114
- - 0
115
- - 6
116
- version: 0.0.6
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - "~>"
92
+ - !ruby/object:Gem::Version
93
+ version: '0.15'
94
+ - !ruby/object:Gem::Dependency
95
+ name: rdoc-generator-fivefish
96
+ requirement: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - "~>"
99
+ - !ruby/object:Gem::Version
100
+ version: '0.4'
117
101
  type: :development
118
- version_requirements: *id005
119
- - !ruby/object:Gem::Dependency
120
- name: hoe
121
102
  prerelease: false
122
- requirement: &id006 !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 47
128
- segments:
129
- - 2
130
- - 9
131
- - 2
132
- version: 2.9.2
133
- type: :development
134
- version_requirements: *id006
135
- description: |-
136
- This module is a Ruby binding for [the Abiword version][abiword] of CMU's
137
- [Link Grammar][link-grammar], a syntactic parser of English.
138
- email:
139
- - ged@FaerieMUD.org
140
- - stillflame@FaerieMUD.org
103
+ version_requirements: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '0.4'
108
+ description: This module is a Ruby binding for the Abiword version of CMU&#39;s Link
109
+ Grammar, a syntactic parser of English.
110
+ email:
111
+ - ged@faeriemud.org
141
112
  executables: []
142
-
143
- extensions:
144
- - ext/extconf.rb
113
+ extensions:
114
+ - ext/linkparser_ext/extconf.rb
145
115
  extra_rdoc_files: []
146
-
147
- files:
148
- - ChangeLog
116
+ files:
149
117
  - History.md
150
- - LICENSE
151
118
  - README.md
152
- - Rakefile
153
- - ext/dictionary.c
154
- - ext/extconf.rb
155
- - ext/linkage.c
156
- - ext/linkparser.c
157
- - ext/linkparser.h
158
- - ext/parseoptions.c
159
- - ext/sentence.c
119
+ - ext/linkparser_ext/dictionary.c
120
+ - ext/linkparser_ext/extconf.rb
121
+ - ext/linkparser_ext/linkage.c
122
+ - ext/linkparser_ext/linkparser.c
123
+ - ext/linkparser_ext/linkparser.h
124
+ - ext/linkparser_ext/parseoptions.c
125
+ - ext/linkparser_ext/sentence.c
160
126
  - lib/linkparser.rb
127
+ - lib/linkparser/dictionary.rb
161
128
  - lib/linkparser/linkage.rb
162
129
  - lib/linkparser/mixins.rb
130
+ - lib/linkparser/parseoptions.rb
163
131
  - lib/linkparser/sentence.rb
164
132
  - spec/bugfixes_spec.rb
133
+ - spec/helpers.rb
165
134
  - spec/linkparser/dictionary_spec.rb
166
135
  - spec/linkparser/linkage_spec.rb
167
136
  - spec/linkparser/mixins_spec.rb
168
137
  - spec/linkparser/parseoptions_spec.rb
169
138
  - spec/linkparser/sentence_spec.rb
170
139
  - spec/linkparser_spec.rb
171
- - .gemtest
172
- homepage: http://deveiate.org/projects/Ruby-LinkParser
173
- licenses:
174
- - BSD
175
- post_install_message:
176
- rdoc_options:
177
- - --main
178
- - README.md
179
- require_paths:
140
+ homepage: https://hg.sr.ht/~ged/linkparser
141
+ licenses:
142
+ - BSD-3-Clause
143
+ metadata:
144
+ homepage_uri: https://hg.sr.ht/~ged/linkparser
145
+ documentation_uri: http://deveiate.org/code/linkparser
146
+ changelog_uri: http://deveiate.org/code/linkparser/History_md.html
147
+ source_uri: https://hg.sr.ht/~ged/linkparser/browse
148
+ bug_tracker_uri: https://todo.sr.ht/~ged/linkparser/browse
149
+ post_install_message:
150
+ rdoc_options: []
151
+ require_paths:
180
152
  - lib
181
- required_ruby_version: !ruby/object:Gem::Requirement
182
- none: false
183
- requirements:
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ requirements:
184
155
  - - ">="
185
- - !ruby/object:Gem::Version
186
- hash: 57
187
- segments:
188
- - 1
189
- - 8
190
- - 7
191
- version: 1.8.7
192
- required_rubygems_version: !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ requirements:
195
160
  - - ">="
196
- - !ruby/object:Gem::Version
197
- hash: 3
198
- segments:
199
- - 0
200
- version: "0"
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
201
163
  requirements: []
202
-
203
- rubyforge_project: linkparser
204
- rubygems_version: 1.8.1
205
- signing_key:
206
- specification_version: 3
207
- summary: This module is a Ruby binding for [the Abiword version][abiword] of CMU's [Link Grammar][link-grammar], a syntactic parser of English.
164
+ rubygems_version: 3.1.4
165
+ signing_key:
166
+ specification_version: 4
167
+ summary: This module is a Ruby binding for the Abiword version of CMU&#39;s Link Grammar,
168
+ a syntactic parser of English.
208
169
  test_files: []
209
-