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
|
# File 'lib/parka/specification.rb', line 7
def self.new(&block)
gemspec_filename = caller.first.split(':').first
$:.unshift File.expand_path(File.join(File.dirname(gemspec_filename), 'lib'))
require File.basename(gemspec_filename, File.extname(gemspec_filename))
spec = Gem::Specification.new(&block)
spec.author ||= default_author
spec.email ||= default_email
spec.description ||= spec.summary
spec.rubyforge_project = "nowarning"
spec.files = (spec.files + default_files).uniq
add_bundler_dependencies(spec)
spec
end
|