-
Notifications
You must be signed in to change notification settings - Fork 3
/
autoloaded.gemspec
50 lines (45 loc) · 2.44 KB
/
autoloaded.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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'autoloaded/version'
Gem::Specification.new do |spec|
spec.name = 'autoloaded'
spec.version = Autoloaded::VERSION
spec.authors = ['Nils Jonsson']
spec.email = ['[email protected]']
spec.summary = <<-end_summary.chomp.gsub(/^\s+/, '').gsub("\n", ' ')
Eliminates the drudgery of handcrafting a Ruby Core
library `autoload` statement for each Ruby source code
file in your project. It also avoids the limitations of
rigid convention-driven facilities such as those provided
by the ActiveSupport RubyGem.
end_summary
spec.description = <<-end_description.chomp.gsub(/^\s+/, '').gsub("\n", ' ')
If you like the ‘Module#autoload’ feature of the Ruby Core
library, you may have wished for Autoloaded. It eliminates
the drudgery of handcrafting an `autoload` statement for
each Ruby source code file in your project. It also avoids
the limitations of rigid convention-driven facilities such
as those provided by the ActiveSupport RubyGem. Autoloaded
assumes, but does not enforce, `CamelCase`-to-`snake_case`
correspondence between the names of constants and source
files. You can combine conventions, even putting multiple
autoloaded constants in a single source file.
end_description
spec.homepage = 'https://njonsson.github.io/autoloaded'
spec.license = 'MIT'
spec.required_ruby_version = '>= 1.9', '< 4'
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0'
if RUBY_VERSION < '2.2'
spec.add_development_dependency 'rake', '~> 12'
else
spec.add_development_dependency 'rake', '~> 13'
end
spec.add_development_dependency 'rspec', '~> 3'
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename f }
spec.require_paths = %w(lib)
end