templates/ruby/src/__lower__.gemspec in noe-1.5.0 vs templates/ruby/src/__lower__.gemspec in noe-1.5.1
- old
+ new
@@ -1,85 +1,85 @@
-# We require your library, mainly to have access to the VERSION number.
+# We require your library, mainly to have access to the VERSION number.
# Feel free to set $version manually.
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require "!{lower}/version"
$version = !{upper}::Version.to_s
#
# This is your Gem specification. Default values are provided so that your library
# should be correctly packaged given what you have described in the .noespec file.
#
Gem::Specification.new do |s|
-
+
################################################################### ABOUT YOUR GEM
-
- # Gem name (required)
+
+ # Gem name (required)
s.name = +{lower}
-
+
# Gem version (required)
s.version = $version
-
+
# A short summary of this gem
#
# This is displayed in `gem list -d`.
s.summary = +{summary}
# A long description of this gem (required)
#
# The description should be more detailed than the summary. For example,
# you might wish to copy the entire README into the description.
s.description = +{description}
-
+
# The URL of this gem home page (optional)
s.homepage = +{links.first}
# Gem publication date (required but auto)
#
# Today is automatically used by default, uncomment only if
# you know what you do!
#
# s.date = Time.now.strftime('%Y-%m-%d')
-
+
# The license(s) for the library. Each license must be a short name, no
# more than 64 characters.
#
# s.licences = %w{}
# The rubyforge project this gem lives under (optional)
#
# s.rubyforge_project = nil
################################################################### ABOUT THE AUTHORS
-
+
# The list of author names who wrote this gem.
#
# If you are providing multiple authors and multiple emails they should be
# in the same order.
- #
+ #
s.authors = +{authors.collect{|a| a.name}}
-
+
# Contact emails for this gem
#
# If you are providing multiple authors and multiple emails they should be
# in the same order.
#
- # NOTE: Somewhat strangly this attribute is always singular!
+ # NOTE: Somewhat strangly this attribute is always singular!
# Don't replace by s.emails = ...
s.email = +{authors.collect{|a| a.email}}
################################################################### PATHS, FILES, BINARIES
-
- # Paths in the gem to add to $LOAD_PATH when this gem is
+
+ # Paths in the gem to add to $LOAD_PATH when this gem is
# activated (required).
#
# The default 'lib' is typically sufficient.
s.require_paths = +{gemspec.require_paths}
-
+
# Files included in this gem.
#
# By default, we take all files included in the Manifest.txt file on root
- # of the project. Entries of the manifest are interpreted as Dir[...]
+ # of the project. Entries of the manifest are interpreted as Dir[...]
# patterns so that lazy people may use wilcards like lib/**/*
#
here = File.expand_path(File.dirname(__FILE__))
s.files = File.readlines(File.join(here, 'Manifest.txt')).
inject([]){|files, pattern| files + Dir[File.join(here, pattern.strip)]}.
@@ -105,11 +105,11 @@
# < Less than version
# >= Greater than or equal to
# <= Less than or equal to
# ~> Approximately greater than
#
- # Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
+ # Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
# for setting your gem version.
#
# For your requirements to other gems, remember that
# ">= 2.2.0" (optimistic: specify minimal version)
# ">= 2.2.0", "< 3.0" (pessimistic: not greater than the next major)
@@ -117,11 +117,11 @@
# "~> 2.2.0" (shortcut for ">= 2.2.0", "< 2.3.0")
#
#
# One call to add_dependency('gem_name', 'gem version requirement') for each
- # runtime dependency. These gems will be installed with your gem.
+ # runtime dependency. These gems will be installed with your gem.
# One call to add_development_dependency('gem_name', 'gem version requirement')
# for each development dependency. These gems are required for developers
#
*{dependencies.select{|dep| dep.groups != ['runtime']} as dep}{s.add_development_dependency(+{dep.name}, +{dep.version})}{!{"\n "}}
*{dependencies.select{|dep| dep.groups.include?('runtime')} as dep}{s.add_dependency(+{dep.name}, +{dep.version})}{!{"\n "}}
@@ -138,22 +138,22 @@
# The platform this gem runs on. See Gem::Platform for details.
#
# s.platform = nil
- # Extensions to build when installing the gem.
+ # Extensions to build when installing the gem.
#
- # Valid types of extensions are extconf.rb files, configure scripts
+ # Valid types of extensions are extconf.rb files, configure scripts
# and rakefiles or mkrf_conf files.
#
s.extensions = +{gemspec.extensions}
-
- # External (to RubyGems) requirements that must be met for this gem to work.
+
+ # External (to RubyGems) requirements that must be met for this gem to work.
# It’s simply information for the user.
#
s.requirements = +{gemspec.requirements}
-
+
# A message that gets displayed after the gem is installed
#
# Uncomment and set this if you want to say something to the user
# after gem installation
#
@@ -167,10 +167,10 @@
# The certificate chain used to sign this gem. See Gem::Security for
# details.
#
# s.cert_chain = []
-
+
################################################################### RDOC
# An ARGV style array of options to RDoc
#
# See 'rdoc --help' about this