Skip to content

Commit

Permalink
Toying with this as the new layout for gemspecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlea committed May 31, 2011
1 parent 15479af commit bd0d14f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Rakefile
Expand Up @@ -4,7 +4,10 @@ require "rake/rdoctask"

task :default => :package

Rake::GemPackageTask.new(eval(File.read("geminabox.gemspec"))) do |pkg|
%w[geminabox geminabox-client geminabox-server].each do |name|
spec = eval(File.read("#{name}.gemspec"))
Rake::GemPackageTask.new(spec) do |pkg|
end
end

Rake::RDocTask.new do |rd|
Expand Down
16 changes: 16 additions & 0 deletions geminabox-client.gemspec
@@ -0,0 +1,16 @@
Gem::Specification.new do |s|
s.name = 'geminabox-client'
s.version = '0.3.0'
s.summary = 'Really simple rubygem hosting - The Client'
s.description = 'A sinatra based gem hosting app, with client side gem push style functionality.'
s.author = 'Tom Lea'
s.email = 'contrib@tomlea.co.uk'
s.homepage = 'http://tomlea.co.uk/p/gem-in-a-box'

s.has_rdoc = true
s.extra_rdoc_files = %w[README.markdown]
s.rdoc_options = %w[--main README.markdown]

s.files = %w[README.markdown lib/rubygems_plugin.rb] + Dir['lib/rubygems/**/*']
s.require_paths = ['lib']
end
19 changes: 19 additions & 0 deletions geminabox-server.gemspec
@@ -0,0 +1,19 @@
Gem::Specification.new do |s|
s.name = 'geminabox-server'
s.version = '0.3.0'
s.summary = 'Really simple rubygem hosting - The Server'
s.description = 'A sinatra based gem hosting app, with client side gem push style functionality.'
s.author = 'Tom Lea'
s.email = 'contrib@tomlea.co.uk'
s.homepage = 'http://tomlea.co.uk/p/gem-in-a-box'

s.has_rdoc = true
s.extra_rdoc_files = %w[README.markdown]
s.rdoc_options = %w[--main README.markdown]

s.files = %w[README.markdown] + Dir['{lib,public,views}/**/*'].reject{|v| v =~ /lib\/rubygems/}
s.require_paths = ['lib']

s.add_dependency('sinatra')
s.add_dependency('builder')
end
9 changes: 4 additions & 5 deletions geminabox.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'geminabox'
s.version = '0.2.15'
s.version = '0.3.0'
s.summary = 'Really simple rubygem hosting'
s.description = 'A sinatra based gem hosting app, with client side gem push style functionality.'
s.author = 'Tom Lea'
Expand All @@ -11,9 +11,8 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w[README.markdown]
s.rdoc_options = %w[--main README.markdown]

s.files = %w[README.markdown] + Dir['{lib,public,views}/**/*']
s.require_paths = ['lib']
s.files = %w[README.markdown]

s.add_dependency('sinatra')
s.add_dependency('builder')
s.add_dependency('geminabox-server', s.version)
s.add_dependency('geminabox-client', s.version)
end

0 comments on commit bd0d14f

Please sign in to comment.