radiant 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of radiant might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1 +1 @@
1
- = Change Log
1
+ = Change Log
data/bin/radiant CHANGED
@@ -105,10 +105,19 @@ class RadiantCommandApplication
105
105
  when current_version == latest_version
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."
114
123
  end
@@ -348,7 +357,6 @@ class RadiantCommandApplication
348
357
  create script/version
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
 
354
362
  def upgrade_application_to_0_5_1
@@ -396,7 +404,21 @@ class RadiantCommandApplication
396
404
  remove! test/unit/page_context_test.rb.rej
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
402
424
 
@@ -1,7 +1,7 @@
1
1
  # Be sure to restart your web server when you modify this file.
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
7
7
  # you don't control web/app server and can't set it the proper way
data/lib/radiant.rb CHANGED
@@ -5,7 +5,7 @@ unless defined? Radiant::Version
5
5
  module Version
6
6
  Major = '0'
7
7
  Minor = '5'
8
- Tiny = '1'
8
+ Tiny = '2'
9
9
 
10
10
  class << self
11
11
  def to_s
@@ -27,7 +27,7 @@ namespace 'radiant' do
27
27
  s.rubyforge_project = RUBY_FORGE_PROJECT
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'
33
33
  s.add_dependency 'BlueCloth', '>= 1.0.0', '< 1.1'
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: radiant
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.1
7
- date: 2006-08-09 00:00:00 -04:00
6
+ version: 0.5.2
7
+ date: 2006-08-10 00:00:00 -04:00
8
8
  summary: A no-fluff content management system designed for small teams.
9
9
  require_paths:
10
10
  - lib
@@ -316,7 +316,7 @@ dependencies:
316
316
  requirements:
317
317
  - - "="
318
318
  - !ruby/object:Gem::Version
319
- version: 1.1.5
319
+ version: 1.1.6
320
320
  version:
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: radius