-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraketeer.gemspec
58 lines (46 loc) Β· 2.18 KB
/
raketeer.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
# encoding: UTF-8
# frozen_string_literal: true
lib = File.expand_path(File.join('..','lib'),__FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'raketeer/version'
Gem::Specification.new do |spec|
spec.name = 'raketeer'
spec.version = Raketeer::VERSION
spec.authors = ['Jonathan Bradley Whited']
spec.email = ['code@esotericpig.com']
spec.licenses = ['LGPL-3.0-or-later']
spec.homepage = '/~https://github.com/esotericpig/raketeer'
spec.summary = 'Extra Ruby Rake Tasks.'
spec.description = <<-DESC
Extra Ruby Rake Tasks for bumping the version, GitHub Packages, Nokogiri, IRB, running, etc.
DESC
spec.metadata = {
'bug_tracker_uri' => '/~https://github.com/esotericpig/raketeer/issues',
'changelog_uri' => '/~https://github.com/esotericpig/raketeer/blob/master/CHANGELOG.md',
'homepage_uri' => '/~https://github.com/esotericpig/raketeer',
'source_code_uri' => '/~https://github.com/esotericpig/raketeer'
}
spec.require_paths = ['lib']
spec.files = Dir.glob(File.join("{#{spec.require_paths.join(',')}}",'**','*.{erb,rb}')) +
Dir.glob(File.join('{test,yard}','**','*.{erb,rb}')) +
%W[ Gemfile #{spec.name}.gemspec Rakefile ] +
%w[ CHANGELOG.md LICENSE.txt README.md ]
spec.required_ruby_version = '>= 2.1.10'
# TODO: also add the below comment to the README & reword for user
#
# If it is a dependency specific to a task, then it should probably be added
# as a development dependency (not a runtime dependency) so that a bunch of
# non-essential dependencies (to the user) are not added.
#
# For example, if the user only uses the Nokogiri tasks, then they don't need
# the IRB dependency.
#
# Therefore, it is up to the user to add the dependencies they need.
# If the user uses the IRB task, then they will have to add 'irb' as a
# development dependency in their own project's Gemspec.
dv = Raketeer::DEP_VERSIONS
spec.add_runtime_dependency 'rake'
spec.add_development_dependency 'bundler','~> 2.2'
spec.add_development_dependency 'irb' ,dv['irb'] # For IRBTask
spec.add_development_dependency 'yard' ,'~> 0.9' # For documentation
end