linkparser 2.1.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.md +20 -0
- data/README.md +23 -6
- data/ext/{dictionary.c → linkparser_ext/dictionary.c} +3 -3
- data/ext/{extconf.rb → linkparser_ext/extconf.rb} +3 -0
- data/ext/{linkage.c → linkparser_ext/linkage.c} +6 -9
- data/ext/{linkparser.c → linkparser_ext/linkparser.c} +26 -4
- data/ext/{linkparser.h → linkparser_ext/linkparser.h} +1 -1
- data/ext/{parseoptions.c → linkparser_ext/parseoptions.c} +15 -4
- data/ext/{sentence.c → linkparser_ext/sentence.c} +3 -3
- data/lib/linkparser/dictionary.rb +1 -1
- data/lib/linkparser/linkage.rb +1 -1
- data/lib/linkparser/mixins.rb +1 -1
- data/lib/linkparser/parseoptions.rb +1 -1
- data/lib/linkparser/sentence.rb +1 -1
- data/lib/linkparser.rb +3 -3
- data/spec/bugfixes_spec.rb +1 -1
- data/spec/helpers.rb +1 -1
- data/spec/linkparser/dictionary_spec.rb +1 -1
- data/spec/linkparser/linkage_spec.rb +19 -16
- data/spec/linkparser/mixins_spec.rb +1 -1
- data/spec/linkparser/parseoptions_spec.rb +2 -2
- data/spec/linkparser/sentence_spec.rb +1 -1
- data/spec/linkparser_spec.rb +6 -1
- data.tar.gz.sig +0 -0
- metadata +61 -138
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
- data/.simplecov +0 -9
- data/ChangeLog +0 -882
- data/LICENSE +0 -27
- data/Manifest.txt +0 -29
- data/Rakefile +0 -131
data/LICENSE
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
Copyright (c) 2006-2016, The FaerieMUD Consortium
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
Redistribution and use in source and binary forms, with or without
|
5
|
-
modification, are permitted provided that the following conditions are met:
|
6
|
-
|
7
|
-
* Redistributions of source code must retain the above copyright notice,
|
8
|
-
this list of conditions and the following disclaimer.
|
9
|
-
|
10
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
11
|
-
this list of conditions and the following disclaimer in the documentation
|
12
|
-
and/or other materials provided with the distribution.
|
13
|
-
|
14
|
-
* Neither the name of the author/s, nor the names of the project's
|
15
|
-
contributors may be used to endorse or promote products derived from this
|
16
|
-
software without specific prior written permission.
|
17
|
-
|
18
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
19
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
20
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
22
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
23
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
24
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
25
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
26
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
27
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/Manifest.txt
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
.gemtest
|
2
|
-
.simplecov
|
3
|
-
ChangeLog
|
4
|
-
History.md
|
5
|
-
LICENSE
|
6
|
-
Manifest.txt
|
7
|
-
README.md
|
8
|
-
Rakefile
|
9
|
-
ext/dictionary.c
|
10
|
-
ext/extconf.rb
|
11
|
-
ext/linkage.c
|
12
|
-
ext/linkparser.c
|
13
|
-
ext/linkparser.h
|
14
|
-
ext/parseoptions.c
|
15
|
-
ext/sentence.c
|
16
|
-
lib/linkparser.rb
|
17
|
-
lib/linkparser/dictionary.rb
|
18
|
-
lib/linkparser/linkage.rb
|
19
|
-
lib/linkparser/mixins.rb
|
20
|
-
lib/linkparser/parseoptions.rb
|
21
|
-
lib/linkparser/sentence.rb
|
22
|
-
spec/bugfixes_spec.rb
|
23
|
-
spec/helpers.rb
|
24
|
-
spec/linkparser/dictionary_spec.rb
|
25
|
-
spec/linkparser/linkage_spec.rb
|
26
|
-
spec/linkparser/mixins_spec.rb
|
27
|
-
spec/linkparser/parseoptions_spec.rb
|
28
|
-
spec/linkparser/sentence_spec.rb
|
29
|
-
spec/linkparser_spec.rb
|
data/Rakefile
DELETED
@@ -1,131 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
|
3
|
-
require 'rbconfig'
|
4
|
-
require 'pathname'
|
5
|
-
|
6
|
-
begin
|
7
|
-
require 'hoe'
|
8
|
-
rescue LoadError => err
|
9
|
-
abort "This Rakefile requires 'hoe' (gem install hoe)."
|
10
|
-
end
|
11
|
-
|
12
|
-
begin
|
13
|
-
require 'rake/extensiontask'
|
14
|
-
rescue LoadError => err
|
15
|
-
abort "This Rakefile requires 'rake-compiler' (gem install rake-compiler)"
|
16
|
-
end
|
17
|
-
|
18
|
-
# Build constants
|
19
|
-
BASEDIR = Pathname( __FILE__ ).dirname.relative_path_from( Pathname.pwd )
|
20
|
-
SPECDIR = BASEDIR + 'spec'
|
21
|
-
EXTDIR = BASEDIR + 'ext'
|
22
|
-
LIBDIR = BASEDIR + 'lib'
|
23
|
-
|
24
|
-
DLEXT = RbConfig::CONFIG['DLEXT']
|
25
|
-
|
26
|
-
EXTCONF = EXTDIR + 'extconf.rb'
|
27
|
-
EXT = LIBDIR + "linkparser_ext.#{DLEXT}"
|
28
|
-
|
29
|
-
GEMSPEC = 'linkparser.gemspec'
|
30
|
-
|
31
|
-
# Hoe plugins
|
32
|
-
Hoe.plugin :mercurial
|
33
|
-
Hoe.plugin :publish
|
34
|
-
Hoe.plugin :signing
|
35
|
-
|
36
|
-
Hoe.plugins.delete :rubyforge
|
37
|
-
|
38
|
-
# Main gem configuration
|
39
|
-
hoespec = Hoe.spec 'linkparser' do
|
40
|
-
self.license 'BSD'
|
41
|
-
self.readme_file = 'README.md'
|
42
|
-
self.history_file = 'History.md'
|
43
|
-
self.extra_rdoc_files = FileList[ '*.md', 'ext/*.[ch]' ]
|
44
|
-
self.license 'BSD-3-Clause'
|
45
|
-
self.urls = {
|
46
|
-
home: 'http://bitbucket.org/ged/linkparser',
|
47
|
-
code: 'http://bitbucket.org/ged/linkparser',
|
48
|
-
docs: 'http://deveiate.org/code/linkparser',
|
49
|
-
github: 'http://github.com/ged/linkparser',
|
50
|
-
}
|
51
|
-
|
52
|
-
self.developer 'Michael Granger', 'ged@FaerieMUD.org'
|
53
|
-
self.developer 'Martin Chase', 'stillflame@FaerieMUD.org'
|
54
|
-
|
55
|
-
self.dependency 'loggability', '~> 0.11'
|
56
|
-
self.dependency 'rake-compiler', '~> 1.0', :development
|
57
|
-
self.dependency 'hoe-deveiate', '~> 0.9', :development
|
58
|
-
self.dependency 'rdoc-generator-fivefish', '~> 0.3', :development
|
59
|
-
|
60
|
-
self.spec_extras[:extensions] = [ EXTCONF.to_s ]
|
61
|
-
|
62
|
-
self.require_ruby_version( '>=2.3.0' )
|
63
|
-
self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
|
64
|
-
self.check_history_on_release = true if self.respond_to?( :check_history_on_release= )
|
65
|
-
self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
|
66
|
-
end
|
67
|
-
|
68
|
-
ENV['VERSION'] ||= hoespec.spec.version.to_s
|
69
|
-
|
70
|
-
# Running the tests depends on compilation
|
71
|
-
# Need to (re)compile before running specs
|
72
|
-
task :spec => :compile
|
73
|
-
|
74
|
-
desc "Turn on warnings and debugging in the build."
|
75
|
-
task :maint do
|
76
|
-
ENV['MAINTAINER_MODE'] = 'yes'
|
77
|
-
end
|
78
|
-
|
79
|
-
ENV['RUBY_CC_VERSION'] = '2.0.0:2.1:2.2'
|
80
|
-
|
81
|
-
# Rake-compiler task
|
82
|
-
Rake::ExtensionTask.new do |ext|
|
83
|
-
ext.gem_spec = hoespec.spec
|
84
|
-
ext.name = 'linkparser_ext'
|
85
|
-
ext.ext_dir = 'ext'
|
86
|
-
ext.lib_dir = 'lib'
|
87
|
-
ext.source_pattern = "*.{c,h}"
|
88
|
-
ext.cross_compile = true
|
89
|
-
ext.cross_platform = %w[i386-mswin32 i386-mingw32]
|
90
|
-
end
|
91
|
-
|
92
|
-
|
93
|
-
# Ensure the specs pass before checking in
|
94
|
-
task 'hg:precheckin' => [:check_history, :check_manifest, :gemspec, :spec]
|
95
|
-
|
96
|
-
desc "Build a coverage report"
|
97
|
-
task :coverage do
|
98
|
-
ENV["COVERAGE"] = 'yes'
|
99
|
-
Rake::Task[:spec].invoke
|
100
|
-
end
|
101
|
-
|
102
|
-
|
103
|
-
# Use the fivefish formatter for docs generated from development checkout
|
104
|
-
if File.directory?( '.hg' )
|
105
|
-
require 'rdoc/task'
|
106
|
-
|
107
|
-
Rake::Task[ 'docs' ].clear
|
108
|
-
RDoc::Task.new( 'docs' ) do |rdoc|
|
109
|
-
rdoc.main = "README.md"
|
110
|
-
rdoc.rdoc_files.include( "*.md", "ChangeLog", "lib/**/*.rb", "ext/**/*.c" )
|
111
|
-
rdoc.generator = :fivefish
|
112
|
-
rdoc.title = "Ruby LinkParser"
|
113
|
-
rdoc.rdoc_dir = 'doc'
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
task :gemspec => GEMSPEC
|
118
|
-
file GEMSPEC => __FILE__
|
119
|
-
task GEMSPEC do |task|
|
120
|
-
spec = $hoespec.spec
|
121
|
-
spec.files.delete( '.gemtest' )
|
122
|
-
spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
|
123
|
-
spec.signing_key = nil
|
124
|
-
spec.cert_chain = [ 'certs/ged.pem' ]
|
125
|
-
File.open( task.name, 'w' ) do |fh|
|
126
|
-
fh.write( spec.to_ruby )
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
CLOBBER.include( GEMSPEC.to_s )
|
131
|
-
task :default => :gemspec
|