This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gemspec
79 lines (72 loc) · 3.31 KB
/
.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Gem::Specification.new do |spec|
spec.name = 'bel-search-sqlite'
spec.version = File.read(File.join(
File.expand_path(File.dirname(__FILE__)),
'VERSION'))
spec.summary = '''
Resource search plugin for bel.rb using Sqlite FTS.
'''.gsub(%r{^\s+}, ' ').gsub(%r{\n}, '')
spec.description = '''
A resource search plugin for bel.rb that uses FTS tables in
Sqlite to search annotation and namespace values.
'''.gsub(%r{^\s+}, ' ').gsub(%r{\n}, '')
spec.license = 'Apache-2.0'
spec.authors = [
'Anthony Bargnesi',
]
spec.date = %q{2017-01-13}
spec.email = [
]
spec.files = [
Dir.glob('lib/**/*.{rb,erb}'),
__FILE__,
'CHANGELOG.md',
'LICENSE',
'INSTALL.md',
'README.md',
].flatten!
spec.executables = Dir.glob('bin/*').map(&File.method(:basename))
spec.homepage = 'https://github.com/OpenBEL/bel.rb-search-plugin'
spec.rdoc_options = [
'--title', 'BEL Resource Search - Sqlite',
'--main', 'README.md',
'--line-numbers',
'CHANGELOG.md',
'LICENSE',
'INSTALL.md',
'README.md',
]
if RUBY_ENGINE =~ /jruby/
# dependencies when building for JRuby (Java based)
spec.platform = 'java'
spec.required_ruby_version = '>= 2.0.0'
spec.add_runtime_dependency 'bel', '~> 1.1.0'
spec.add_runtime_dependency 'sequel', '4.28.0'
spec.add_runtime_dependency 'jdbc-sqlite3', '3.8.11.2'
else
# dependencies when building for all other platforms (C based)
spec.platform = 'ruby'
spec.required_ruby_version = '>= 2.0.0'
spec.add_runtime_dependency 'bel', '~> 1.1.0'
spec.add_runtime_dependency 'sequel', '4.28.0'
spec.add_runtime_dependency 'sqlite3', '1.3.11'
end
spec.post_install_message = %Q{
******************************
* bel-search-sqlite plugin *
******************************
Thank you for installing the bel-search-sqlite plugin to bel.rb.
To verify the bel-search-sqlite plugin can be used by bel.rb
execute the bel.rb command:
bel plugins --list
To access this within bel.rb execute the following ruby code:
require 'bel'
search_plugin = BEL::Resource::Search.plugins[:sqlite]
search_plugin.create_search(
:database => 'resources.db'
)
}
end
# vim: ft=ruby ts=2 sw=2:
# encoding: utf-8