Make gemspecs the authoritative source instead of generating them from the Rakefile
This commit is contained in:
Родитель
0a692e48ae
Коммит
f430d6b63e
|
@ -46,44 +46,14 @@ Rake::RDocTask.new { |rdoc|
|
|||
rdoc.rdoc_files.include('lib/action_mailer/*.rb')
|
||||
}
|
||||
|
||||
spec = eval(File.read('actionmailer.gemspec'))
|
||||
|
||||
# Create compressed packages
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = PKG_NAME
|
||||
s.summary = "Service layer for easy email delivery and testing."
|
||||
s.description = %q{Makes it trivial to test and deliver emails sent from a single service layer.}
|
||||
s.version = PKG_VERSION
|
||||
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.rubyforge_project = "actionmailer"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
|
||||
s.add_dependency('actionpack', '= 3.0.pre' + PKG_BUILD)
|
||||
|
||||
s.has_rdoc = true
|
||||
s.requirements << 'none'
|
||||
s.require_path = 'lib'
|
||||
s.autorequire = 'action_mailer'
|
||||
|
||||
s.files = [ "Rakefile", "install.rb", "README", "CHANGELOG", "MIT-LICENSE" ]
|
||||
s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
||||
s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
||||
end
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |p|
|
||||
p.gem_spec = spec
|
||||
p.need_tar = true
|
||||
p.need_zip = true
|
||||
end
|
||||
|
||||
task :gemspec do
|
||||
File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file|
|
||||
file.puts spec.to_ruby
|
||||
end
|
||||
end
|
||||
|
||||
desc "Publish the API documentation"
|
||||
task :pgem => [:package] do
|
||||
require 'rake/contrib/sshpublisher'
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -77,50 +77,14 @@ Rake::RDocTask.new { |rdoc|
|
|||
end
|
||||
}
|
||||
|
||||
# Create compressed packages
|
||||
dist_dirs = [ "lib", "test" ]
|
||||
spec = eval(File.read('actionpack.gemspec'))
|
||||
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = PKG_NAME
|
||||
s.version = PKG_VERSION
|
||||
s.summary = "Web-flow and rendering framework putting the VC in MVC."
|
||||
s.description = %q{Eases web-request routing, handling, and response as a half-way front, half-way page controller. Implemented with specific emphasis on enabling easy unit/integration testing that doesn't require a browser.} #'
|
||||
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.rubyforge_project = "actionpack"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
|
||||
s.has_rdoc = true
|
||||
s.requirements << 'none'
|
||||
|
||||
s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('activemodel', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('rack', '~> 1.0.0')
|
||||
s.add_dependency('rack-test', '~> 0.5.0')
|
||||
|
||||
s.require_path = 'lib'
|
||||
s.autorequire = 'action_controller'
|
||||
|
||||
s.files = [ "Rakefile", "install.rb", "README", "RUNNING_UNIT_TESTS", "CHANGELOG", "MIT-LICENSE" ]
|
||||
dist_dirs.each do |dir|
|
||||
s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
||||
end
|
||||
end
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |p|
|
||||
p.gem_spec = spec
|
||||
p.need_tar = true
|
||||
p.need_zip = true
|
||||
end
|
||||
|
||||
task :gemspec do
|
||||
File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file|
|
||||
file.puts spec.to_ruby
|
||||
end
|
||||
end
|
||||
|
||||
task :lines do
|
||||
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0
|
||||
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -43,34 +43,10 @@ end
|
|||
require 'rake/packagetask'
|
||||
require 'rake/gempackagetask'
|
||||
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = PKG_NAME
|
||||
s.version = PKG_VERSION
|
||||
s.summary = "A toolkit for building other modeling frameworks like ActiveRecord"
|
||||
s.description = %q{Extracts common modeling concerns from ActiveRecord to share between similar frameworks like ActiveResource.}
|
||||
spec = eval(File.read('activemodel.gemspec'))
|
||||
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.rubyforge_project = "activemodel"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
|
||||
s.has_rdoc = true
|
||||
|
||||
s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD)
|
||||
|
||||
s.require_path = 'lib'
|
||||
s.files = Dir["CHANGELOG", "MIT-LICENSE", "README", "Rakefile", "lib/**/*", "test/**/*"]
|
||||
end
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |p|
|
||||
p.gem_spec = spec
|
||||
p.need_tar = true
|
||||
p.need_zip = true
|
||||
end
|
||||
|
||||
task :gemspec do
|
||||
File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file|
|
||||
file.puts spec.to_ruby
|
||||
end
|
||||
end
|
|
@ -1,31 +1,19 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{activemodel}
|
||||
s.version = "3.0.pre"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["David Heinemeier Hansson"]
|
||||
s.date = %q{2009-09-01}
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = 'activemodel'
|
||||
s.version = '3.0.pre'
|
||||
s.summary = "A toolkit for building other modeling frameworks like ActiveRecord"
|
||||
s.description = %q{Extracts common modeling concerns from ActiveRecord to share between similar frameworks like ActiveResource.}
|
||||
s.email = %q{david@loudthinking.com}
|
||||
s.files = ["CHANGELOG", "MIT-LICENSE", "README", "Rakefile", "lib/active_model", "lib/active_model/attribute_methods.rb", "lib/active_model/conversion.rb", "lib/active_model/deprecated_error_methods.rb", "lib/active_model/dirty.rb", "lib/active_model/errors.rb", "lib/active_model/lint.rb", "lib/active_model/locale", "lib/active_model/locale/en.yml", "lib/active_model/naming.rb", "lib/active_model/observing.rb", "lib/active_model/serialization.rb", "lib/active_model/serializers", "lib/active_model/serializers/json.rb", "lib/active_model/serializers/xml.rb", "lib/active_model/state_machine", "lib/active_model/state_machine/event.rb", "lib/active_model/state_machine/machine.rb", "lib/active_model/state_machine/state.rb", "lib/active_model/state_machine/state_transition.rb", "lib/active_model/state_machine.rb", "lib/active_model/test_case.rb", "lib/active_model/validations", "lib/active_model/validations/acceptance.rb", "lib/active_model/validations/confirmation.rb", "lib/active_model/validations/exclusion.rb", "lib/active_model/validations/format.rb", "lib/active_model/validations/inclusion.rb", "lib/active_model/validations/length.rb", "lib/active_model/validations/numericality.rb", "lib/active_model/validations/presence.rb", "lib/active_model/validations/with.rb", "lib/active_model/validations.rb", "lib/active_model/validations_repair_helper.rb", "lib/active_model/version.rb", "lib/active_model.rb", "lib/activemodel.rb", "test/cases", "test/cases/helper.rb", "test/cases/lint_test.rb", "test/cases/naming_test.rb", "test/cases/observing_test.rb", "test/cases/serializeration", "test/cases/serializeration/json_serialization_test.rb", "test/cases/serializeration/xml_serialization_test.rb", "test/cases/state_machine", "test/cases/state_machine/event_test.rb", "test/cases/state_machine/machine_test.rb", "test/cases/state_machine/state_test.rb", "test/cases/state_machine/state_transition_test.rb", "test/cases/state_machine_test.rb", "test/cases/tests_database.rb", "test/cases/validations", "test/cases/validations/acceptance_validation_test.rb", "test/cases/validations/conditional_validation_test.rb", "test/cases/validations/confirmation_validation_test.rb", "test/cases/validations/exclusion_validation_test.rb", "test/cases/validations/format_validation_test.rb", "test/cases/validations/i18n_generate_message_validation_test.rb", "test/cases/validations/i18n_validation_test.rb", "test/cases/validations/inclusion_validation_test.rb", "test/cases/validations/length_validation_test.rb", "test/cases/validations/numericality_validation_test.rb", "test/cases/validations/presence_validation_test.rb", "test/cases/validations/with_validation_test.rb", "test/cases/validations_test.rb", "test/config.rb", "test/fixtures", "test/fixtures/topics.yml", "test/models", "test/models/contact.rb", "test/models/custom_reader.rb", "test/models/developer.rb", "test/models/person.rb", "test/models/reply.rb", "test/models/topic.rb", "test/schema.rb"]
|
||||
s.homepage = %q{http://www.rubyonrails.org}
|
||||
s.require_paths = ["lib"]
|
||||
s.rubyforge_project = %q{activemodel}
|
||||
s.rubygems_version = %q{1.3.5}
|
||||
s.summary = %q{A toolkit for building other modeling frameworks like ActiveRecord}
|
||||
|
||||
if s.respond_to? :specification_version then
|
||||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
||||
s.specification_version = 3
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.rubyforge_project = "activemodel"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
|
||||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
||||
s.add_runtime_dependency(%q<activesupport>, ["= 3.0.pre"])
|
||||
else
|
||||
s.add_dependency(%q<activesupport>, ["= 3.0.pre"])
|
||||
end
|
||||
else
|
||||
s.add_dependency(%q<activesupport>, ["= 3.0.pre"])
|
||||
end
|
||||
s.has_rdoc = true
|
||||
|
||||
s.add_dependency('activesupport', '= 3.0.pre')
|
||||
|
||||
s.require_path = 'lib'
|
||||
s.files = Dir["CHANGELOG", "MIT-LICENSE", "README", "lib/**/*"]
|
||||
end
|
||||
|
|
|
@ -191,41 +191,7 @@ task :rdoc do
|
|||
end
|
||||
|
||||
|
||||
# Create compressed packages
|
||||
|
||||
dist_dirs = [ "lib", "test", "examples" ]
|
||||
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = PKG_NAME
|
||||
s.version = PKG_VERSION
|
||||
s.summary = "Implements the ActiveRecord pattern for ORM."
|
||||
s.description = %q{Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.}
|
||||
|
||||
s.files = [ "Rakefile", "install.rb", "README", "RUNNING_UNIT_TESTS", "CHANGELOG" ]
|
||||
dist_dirs.each do |dir|
|
||||
s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
||||
end
|
||||
|
||||
s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('activemodel', '= 3.0.pre' + PKG_BUILD)
|
||||
|
||||
s.files.delete FIXTURES_ROOT + "/fixture_database.sqlite"
|
||||
s.files.delete FIXTURES_ROOT + "/fixture_database_2.sqlite"
|
||||
s.files.delete FIXTURES_ROOT + "/fixture_database.sqlite3"
|
||||
s.files.delete FIXTURES_ROOT + "/fixture_database_2.sqlite3"
|
||||
s.require_path = 'lib'
|
||||
s.autorequire = 'active_record'
|
||||
|
||||
s.has_rdoc = true
|
||||
s.extra_rdoc_files = %w( README )
|
||||
s.rdoc_options.concat ['--main', 'README']
|
||||
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
s.rubyforge_project = "activerecord"
|
||||
end
|
||||
spec = eval(File.read('activerecord.gemspec'))
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |p|
|
||||
p.gem_spec = spec
|
||||
|
@ -233,12 +199,6 @@ Rake::GemPackageTask.new(spec) do |p|
|
|||
p.need_zip = true
|
||||
end
|
||||
|
||||
task :gemspec do
|
||||
File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file|
|
||||
file.puts spec.to_ruby
|
||||
end
|
||||
end
|
||||
|
||||
task :lines do
|
||||
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0
|
||||
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -58,50 +58,14 @@ Rake::RDocTask.new { |rdoc|
|
|||
}
|
||||
|
||||
|
||||
# Create compressed packages
|
||||
spec = eval(File.read('activeresource.gemspec'))
|
||||
|
||||
dist_dirs = [ "lib", "test", "examples", "dev-utils" ]
|
||||
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = PKG_NAME
|
||||
s.version = PKG_VERSION
|
||||
s.summary = "Think Active Record for web resources."
|
||||
s.description = %q{Wraps web resources in model classes that can be manipulated through XML over REST.}
|
||||
|
||||
s.files = [ "Rakefile", "README", "CHANGELOG" ]
|
||||
dist_dirs.each do |dir|
|
||||
s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
||||
end
|
||||
|
||||
s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('activemodel', '= 3.0.pre' + PKG_BUILD)
|
||||
|
||||
s.require_path = 'lib'
|
||||
s.autorequire = 'active_resource'
|
||||
|
||||
s.has_rdoc = true
|
||||
s.extra_rdoc_files = %w( README )
|
||||
s.rdoc_options.concat ['--main', 'README']
|
||||
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
s.rubyforge_project = "activeresource"
|
||||
end
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |p|
|
||||
p.gem_spec = spec
|
||||
p.need_tar = true
|
||||
p.need_zip = true
|
||||
end
|
||||
|
||||
task :gemspec do
|
||||
File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file|
|
||||
file.puts spec.to_ruby
|
||||
end
|
||||
end
|
||||
|
||||
task :lines do
|
||||
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0
|
||||
|
||||
|
|
|
@ -1,37 +1,24 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{activeresource}
|
||||
s.version = "3.0.pre"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["David Heinemeier Hansson"]
|
||||
s.autorequire = %q{active_resource}
|
||||
s.date = %q{2009-09-01}
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = 'activeresource'
|
||||
s.version = '3.0.pre'
|
||||
s.summary = "Think Active Record for web resources."
|
||||
s.description = %q{Wraps web resources in model classes that can be manipulated through XML over REST.}
|
||||
s.email = %q{david@loudthinking.com}
|
||||
s.extra_rdoc_files = ["README"]
|
||||
s.files = ["Rakefile", "README", "CHANGELOG", "lib/active_resource", "lib/active_resource/base.rb", "lib/active_resource/connection.rb", "lib/active_resource/custom_methods.rb", "lib/active_resource/exceptions.rb", "lib/active_resource/formats", "lib/active_resource/formats/json_format.rb", "lib/active_resource/formats/xml_format.rb", "lib/active_resource/formats.rb", "lib/active_resource/http_mock.rb", "lib/active_resource/observing.rb", "lib/active_resource/validations.rb", "lib/active_resource/version.rb", "lib/active_resource.rb", "lib/activeresource.rb", "test/abstract_unit.rb", "test/cases", "test/cases/authorization_test.rb", "test/cases/base", "test/cases/base/custom_methods_test.rb", "test/cases/base/equality_test.rb", "test/cases/base/load_test.rb", "test/cases/base_errors_test.rb", "test/cases/base_test.rb", "test/cases/finder_test.rb", "test/cases/format_test.rb", "test/cases/observing_test.rb", "test/cases/validations_test.rb", "test/connection_test.rb", "test/debug.log", "test/fixtures", "test/fixtures/beast.rb", "test/fixtures/customer.rb", "test/fixtures/person.rb", "test/fixtures/project.rb", "test/fixtures/proxy.rb", "test/fixtures/street_address.rb", "test/setter_trap.rb", "examples/simple.rb"]
|
||||
s.homepage = %q{http://www.rubyonrails.org}
|
||||
s.rdoc_options = ["--main", "README"]
|
||||
s.require_paths = ["lib"]
|
||||
s.rubyforge_project = %q{activeresource}
|
||||
s.rubygems_version = %q{1.3.5}
|
||||
s.summary = %q{Think Active Record for web resources.}
|
||||
|
||||
if s.respond_to? :specification_version then
|
||||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
||||
s.specification_version = 3
|
||||
s.files = Dir['CHANGELOG', 'README', 'examples/**/*', 'lib/**/*']
|
||||
|
||||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
||||
s.add_runtime_dependency(%q<activesupport>, ["= 3.0.pre"])
|
||||
s.add_runtime_dependency(%q<activemodel>, ["= 3.0.pre"])
|
||||
else
|
||||
s.add_dependency(%q<activesupport>, ["= 3.0.pre"])
|
||||
s.add_dependency(%q<activemodel>, ["= 3.0.pre"])
|
||||
end
|
||||
else
|
||||
s.add_dependency(%q<activesupport>, ["= 3.0.pre"])
|
||||
s.add_dependency(%q<activemodel>, ["= 3.0.pre"])
|
||||
end
|
||||
s.add_dependency('activesupport', '= 3.0.pre')
|
||||
s.add_dependency('activemodel', '= 3.0.pre')
|
||||
|
||||
s.require_path = 'lib'
|
||||
s.autorequire = 'active_resource'
|
||||
|
||||
s.has_rdoc = true
|
||||
s.extra_rdoc_files = %w( README )
|
||||
s.rdoc_options.concat ['--main', 'README']
|
||||
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
s.rubyforge_project = "activeresource"
|
||||
end
|
||||
|
|
|
@ -137,56 +137,12 @@ Rake::RDocTask.new { |rdoc|
|
|||
|
||||
# Generate GEM ----------------------------------------------------------------------------
|
||||
|
||||
PKG_FILES = FileList[
|
||||
'[a-zA-Z]*',
|
||||
'bin/**/*',
|
||||
'builtin/**/*',
|
||||
'guides/**/*',
|
||||
'lib/**/{*,.[a-z]*}'
|
||||
] - [ 'test' ]
|
||||
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = 'rails'
|
||||
s.version = PKG_VERSION
|
||||
s.summary = "Web-application framework with template engine, control-flow layer, and ORM."
|
||||
s.description = <<-EOF
|
||||
Rails is a framework for building web-application using CGI, FCGI, mod_ruby, or WEBrick
|
||||
on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates.
|
||||
EOF
|
||||
|
||||
s.add_dependency('rake', '>= 0.8.3')
|
||||
s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('activerecord', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('actionpack', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('actionmailer', '= 3.0.pre' + PKG_BUILD)
|
||||
s.add_dependency('activeresource', '= 3.0.pre' + PKG_BUILD)
|
||||
|
||||
s.rdoc_options << '--exclude' << '.'
|
||||
s.has_rdoc = false
|
||||
|
||||
s.files = PKG_FILES.to_a.delete_if {|f| f =~ %r{\.svn|guides/output}}
|
||||
s.require_path = 'lib'
|
||||
s.bindir = "bin" # Use these for applications.
|
||||
s.executables = ["rails"]
|
||||
s.default_executable = "rails"
|
||||
|
||||
s.author = "David Heinemeier Hansson"
|
||||
s.email = "david@loudthinking.com"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
s.rubyforge_project = "rails"
|
||||
end
|
||||
spec = eval(File.read('rails.gemspec'))
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |pkg|
|
||||
pkg.gem_spec = spec
|
||||
end
|
||||
|
||||
task :gemspec do
|
||||
File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file|
|
||||
file.puts spec.to_ruby
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# Publishing -------------------------------------------------------
|
||||
desc "Publish the rails gem"
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Загрузка…
Ссылка в новой задаче