-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsequitur.gemspec
63 lines (56 loc) · 2.03 KB
/
sequitur.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
# frozen_string_literal: true
# Gem specification file for the Sequitur project.
require 'rubygems'
# The next line generates an error with Bundler
require_relative './lib/sequitur/constants'
SEQUITUR_GEMSPEC = Gem::Specification.new do |pkg|
pkg.name = 'sequitur'
pkg.version = Sequitur::Version
pkg.author = 'Dimitri Geshef'
pkg.email = '[email protected]'
pkg.homepage = 'https://github.com/famished-tiger/Sequitur'
pkg.platform = Gem::Platform::RUBY
pkg.summary = Sequitur::Description
pkg.description = <<~END_DESCR
Ruby implementation of the Sequitur algorithm. This algorithm automatically
finds repetitions and hierarchical structures in a given sequence of input
tokens. It encodes the input into a context-free grammar.
The Sequitur algorithm can be used to
a) compress a sequence of items,
b) discover patterns in an sequence,
c) generate grammar rules that can represent a given input.
END_DESCR
pkg.post_install_message = <<~EOSTRING
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thank you for installing Sequitur...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EOSTRING
pkg.rdoc_options << '--charset=UTF-8 --exclude="examples|features|spec"'
file_list = Dir[
'.rubocop.yml', '.rspec', '.ruby-gemset',
'.yardopts', 'appveyor.yml', 'Gemfile',
'Rakefile',
'CHANGELOG.md',
'LICENSE.txt', 'README.md',
'lib/*.*', 'lib/**/*.rb',
'spec/**/*.rb',
'examples/*.*',
'sig/*.rbs', 'sig/**/*.rbs'
]
pkg.files = file_list
pkg.test_files = Dir['spec/**/*_spec.rb']
pkg.require_path = 'lib'
pkg.extra_rdoc_files = ['README.md']
pkg.add_development_dependency 'rake', '~> 13.0.0', '>= 13.0.0'
pkg.add_development_dependency 'rspec', '~> 3.10.0', '>= 3.10.0'
pkg.add_development_dependency 'rubygems', '~> 3.2', '>= 3.2.0'
# pkg.bindir = 'bin'
# pkg.executables = %w(sequitur)
pkg.license = 'MIT'
pkg.required_ruby_version = '>= 3.0.0'
end
if $PROGRAM_NAME == __FILE__
require 'rubygems/package'
Gem::Package.build(SEQUITUR_GEMSPEC)
end
# End of file