mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add rake gemspec and gemspecs to the repo
This commit is contained in:
parent
66d713fc8f
commit
67f5d611f5
15 changed files with 293 additions and 3 deletions
5
Rakefile
5
Rakefile
|
@ -3,7 +3,7 @@ require 'rake/rdoctask'
|
|||
|
||||
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
|
||||
|
||||
PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
|
||||
PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord activemodel railties)
|
||||
|
||||
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
|
||||
require version_path
|
||||
|
@ -12,7 +12,7 @@ end
|
|||
desc 'Run all tests by default'
|
||||
task :default => :test
|
||||
|
||||
%w(test isolated_test rdoc pgem package release gem).each do |task_name|
|
||||
%w(test isolated_test rdoc pgem package release gem gemspec).each do |task_name|
|
||||
desc "Run #{task_name} task for all projects"
|
||||
task task_name do
|
||||
errors = []
|
||||
|
@ -30,7 +30,6 @@ task :install => :gem do
|
|||
system("gem install railties/pkg/rails-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc")
|
||||
end
|
||||
|
||||
|
||||
desc "Generate documentation for the Rails framework"
|
||||
Rake::RDocTask.new do |rdoc|
|
||||
rdoc.rdoc_dir = 'doc/rdoc'
|
||||
|
|
|
@ -78,6 +78,11 @@ 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
|
||||
|
||||
desc "Publish the API documentation"
|
||||
task :pgem => [:package] do
|
||||
|
|
33
actionmailer/actionmailer.gemspec
Normal file
33
actionmailer/actionmailer.gemspec
Normal file
File diff suppressed because one or more lines are too long
|
@ -134,6 +134,12 @@ 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
|
||||
|
||||
|
|
39
actionpack/actionpack.gemspec
Normal file
39
actionpack/actionpack.gemspec
Normal file
File diff suppressed because one or more lines are too long
|
@ -67,3 +67,9 @@ Rake::GemPackageTask.new(spec) do |p|
|
|||
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
|
31
activemodel/activemodel.gemspec
Normal file
31
activemodel/activemodel.gemspec
Normal file
|
@ -0,0 +1,31 @@
|
|||
# -*- 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-08-31}
|
||||
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
|
||||
|
||||
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
|
||||
end
|
|
@ -232,6 +232,12 @@ 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
|
||||
|
||||
|
|
34
activerecord/activerecord.gemspec
Normal file
34
activerecord/activerecord.gemspec
Normal file
File diff suppressed because one or more lines are too long
|
@ -94,6 +94,12 @@ 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
|
||||
|
||||
|
|
34
activeresource/activeresource.gemspec
Normal file
34
activeresource/activeresource.gemspec
Normal file
|
@ -0,0 +1,34 @@
|
|||
# -*- 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-08-31}
|
||||
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/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
|
||||
|
||||
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
|
||||
end
|
|
@ -68,6 +68,12 @@ 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
|
||||
|
||||
desc "Publish the beta gem"
|
||||
task :pgem => [:package] do
|
||||
require 'rake/contrib/sshpublisher'
|
||||
|
|
28
activesupport/activesupport.gemspec
Normal file
28
activesupport/activesupport.gemspec
Normal file
File diff suppressed because one or more lines are too long
|
@ -181,6 +181,12 @@ 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"
|
||||
|
|
51
railties/rails.gemspec
Normal file
51
railties/rails.gemspec
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue