lib/gem/release/data.rb in gem-release-2.0.0.rc.2 vs lib/gem/release/data.rb in gem-release-2.0.0.rc.3
- old
+ new
@@ -16,11 +16,12 @@
email: user_email,
homepage: homepage,
licenses: licenses,
summary: '[summary]',
description: '[description]',
- files: files
+ files: files,
+ bin_files: bin_files
}
end
private
@@ -59,9 +60,17 @@
def license
opts[:license] if opts[:license]
end
def files
+ strategy[:files]
+ end
+
+ def bin_files
+ strategy[:bin_files] if opts.key?(:bin) ? opts[:bin] : File.directory?('./bin')
+ end
+
+ def strategy
STRATEGIES[(opts[:strategy] || :glob).to_sym] || STRATEGIES[:glob]
end
end
end
end