Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved the gemspec to its own file so that we can reference it directl…

…y from our Gemfile at github.
  • Loading branch information...
commit c44b047f5e9744690308ab33d8b692ae76fc05fb 1 parent 9a1f9f1
Kurt Werle authored
Showing with 32 additions and 26 deletions.
  1. +1 −26 Rakefile
  2. +31 −0 rightstuff.gemspec
View
27 Rakefile
@@ -5,32 +5,7 @@ require 'rake/rdoctask'
$:.unshift( File.dirname( __FILE__ ) + '/lib' )
require 'rightstuff'
-ADMIN_FILES = FileList[ 'COPYING', 'Rakefile', 'README.rdoc' ]
-SOURCE_FILES = FileList[ 'lib/**/*.rb' ]
-RDOC_FILES = FileList[ 'COPYING', 'README.rdoc' ] + SOURCE_FILES
-RDOC_OPTS = [ '--quiet', '--main', 'README.rdoc', '--inline-source' ]
-DESCRIPTION = 'Another Ruby Interface for RightScale, providing an OO interface for RightScale accounts'
-
-spec = Gem::Specification.new do |s|
- s.name = 'rightstuff'
- s.summary = 'Another Ruby Interface for RightScale'
- s.description = DESCRIPTION
- s.version = Rightstuff::VERSION::STRING
-
- s.homepage = 'http://github.com/joeyates/rightstuff'
- s.author = 'Joe Yates'
- s.email = 'joe.g.yates@gmail.com'
-
- s.files = ADMIN_FILES +
- SOURCE_FILES
- s.require_paths = [ 'lib' ]
- s.add_dependency( 'nokogiri', '>= 1.4.3.1' )
-
- s.has_rdoc = true
- s.rdoc_options += RDOC_OPTS
- s.extra_rdoc_files = RDOC_FILES
- s.rubyforge_project = 'nowarning'
-end
+spec = eval(File.read("rightstuff.gemspec"))
Rake::GemPackageTask.new( spec ) do |pkg|
end
View
31 rightstuff.gemspec
@@ -0,0 +1,31 @@
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'rightstuff'
+
+ADMIN_FILES = [ 'COPYING', 'Rakefile', 'README.rdoc' ]
+SOURCE_FILES = Dir.glob('lib/**/*.rb')
+RDOC_FILES = [ 'COPYING', 'README.rdoc' ] + SOURCE_FILES
+RDOC_OPTS = [ '--quiet', '--main', 'README.rdoc', '--inline-source' ]
+DESCRIPTION = 'Another Ruby Interface for RightScale, providing an OO interface for RightScale accounts'
+
+Gem::Specification.new do |s|
+ s.name = 'rightstuff'
+ s.summary = 'Another Ruby Interface for RightScale'
+ s.description = DESCRIPTION
+ s.version = Rightstuff::VERSION::STRING
+
+ s.homepage = 'http://github.com/joeyates/rightstuff'
+ s.author = 'Joe Yates'
+ s.email = 'joe.g.yates@gmail.com'
+
+ s.files = ADMIN_FILES +
+ SOURCE_FILES
+ s.require_paths = [ 'lib' ]
+ s.add_dependency( 'nokogiri', '>= 1.4.3.1' )
+
+ s.has_rdoc = true
+ s.rdoc_options += RDOC_OPTS
+ s.extra_rdoc_files = RDOC_FILES
+ s.rubyforge_project = 'nowarning'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.