Changeset 98
- Timestamp:
- 08/10/06 19:10:59 (2 years ago)
- Files:
-
- trunk/radiant/CHANGELOG (modified) (1 diff)
- trunk/radiant/bin/radiant (modified) (3 diffs)
- trunk/radiant/config/environment.rb (modified) (1 diff)
- trunk/radiant/lib/radiant.rb (modified) (1 diff)
- trunk/radiant/lib/tasks/release.rake (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/radiant/CHANGELOG
r95 r98 1 1 = Change Log 2 2 3 === 0.5.1 4 * Upgraded Rails to 1.1.5 3 === 0.5.2 (August 10, 2006) 4 * Upgraded Rails to 1.1.6 because of a security vulnerability in 1.1.5 5 6 === 0.5.1 (August 10, 2006) 7 * Upgraded Rails to 1.1.5 because of a security vulnerability in 1.1.4 5 8 * Added basic support for upgrades to the `radiant` command 6 9 * Gem now includes the .htaccess file (this should make Apache users happier) trunk/radiant/bin/radiant
r95 r98 106 106 announce_already_upgraded 107 107 else 108 announce "Upgrading Radiant to version #{ latest_version }..." do 109 @backups = @overwrite || ask_yes_or_no("Would you like to create backups of files that Radiant replaces", :no) if @backups.nil? 110 send "upgrade_#{ @application_type }_to_0_5_1" 111 change_radiant_gem_version_in_instance_config_to(latest_version) if @application_type == :instance 108 @backups = @overwrite || ask_yes_or_no("Would you like to create backups of files that Radiant replaces", :no) if @backups.nil? 109 versions = ['0.5.1', '0.5.2'] 110 index_of_current_version = versions.index(current_version) || -1 111 versions.each do |version| 112 if versions.index(version) > index_of_current_version 113 announce "Upgrading Radiant to version #{version}..." do 114 send "upgrade_#{ @application_type }_to_#{ version.gsub('.', '_') }" 115 if version == latest_version 116 change_rails_gem_version_in_environment_to '1.1.6' 117 change_radiant_gem_version_in_instance_config_to(latest_version) if @application_type == :instance 118 end 119 end 120 end 112 121 end 113 122 puts "Done." … … 349 358 } 350 359 make_executable(File.join(@dirname, 'script/version')) 351 change_rails_gem_version_in_environment_to '1.1.5'352 360 end 353 361 … … 397 405 } 398 406 make_executable(File.join(@dirname, 'script/version')) 399 change_rails_gem_version_in_environment_to '1.1.5' 407 end 408 409 def upgrade_instance_to_0_5_2 410 upgrade_files %{ 411 overwrite! CHANGELOG 412 } 413 end 414 415 def upgrade_application_to_0_5_2 416 upgrade_files %{ 417 overwrite bin/radiant 418 overwrite! CHANGELOG 419 overwrite lib/tasks/release.rake 420 overwrite lib/radiant.rb 421 } 400 422 end 401 423 end trunk/radiant/config/environment.rb
r95 r98 2 2 3 3 # Rails Gem Version 4 RAILS_GEM_VERSION = '1.1. 5'4 RAILS_GEM_VERSION = '1.1.6' 5 5 6 6 # Uncomment below to force Rails into production mode when trunk/radiant/lib/radiant.rb
r94 r98 6 6 Major = '0' 7 7 Minor = '5' 8 Tiny = ' 1'8 Tiny = '2' 9 9 10 10 class << self trunk/radiant/lib/tasks/release.rake
r95 r98 28 28 s.platform = Gem::Platform::RUBY 29 29 s.requirements << 'rails, redcloth, bluecloth, radius' 30 s.add_dependency 'rails', '= 1.1. 5'30 s.add_dependency 'rails', '= 1.1.6' 31 31 s.add_dependency 'radius', '>= 0.5.1', '< 0.6' 32 32 s.add_dependency 'RedCloth', '>= 3.0.3', '< 3.1'
