enhanced_migrations 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ 2007-11-15 Sean Soper <sean.soper@revolutionhealth.com>
2
+ * Changed name of the database yaml file to fix a strange bug whereby sometimes an app picked up the gem's database config
3
+ * Added a manifest yaml file to better work with RHG's packaging system
4
+ * Up'd tiny version (1.2.1)
5
+
1
6
  2007-11-05 Sean Soper <sean.soper@revolutionhealth.com>
2
7
  * Ripping out of plugems architecture to make this into a standard plugin
3
8
 
data/Rakefile CHANGED
@@ -26,17 +26,20 @@ Rake::TestTask.new(:test) do |t|
26
26
  t.libs << 'lib'
27
27
  t.pattern = 'test/*_test.rb'
28
28
  t.verbose = true
29
+ Rake::Task['enhanced_migrations:clean_sqlite_db'].invoke
29
30
  end
30
31
 
31
32
  dist_dirs = [ "config", "db", "lib", "migrations", "tasks", "test" ]
32
33
 
33
34
  gem_spec = Gem::Specification.new do |s|
34
- s.platform = Gem::Platform::RUBY
35
- s.name = "enhanced_migrations"
36
- s.version = "1.2.0"
37
- s.author = "RHG Team"
38
- s.email = "rails-trunk@revolution.com"
39
- s.summary = "Rails Enhanced Migrations"
35
+ manifest = YAML.load_file(File.join(File.dirname(__FILE__),"config","manifest.yml"))
36
+ tiny_ver = 1
37
+ s.platform = Gem::Platform::RUBY
38
+ s.name = "enhanced_migrations"
39
+ s.version = manifest[:version].join(".") + ".#{tiny_ver}"
40
+ s.author = "RHG Team"
41
+ s.email = "rails-trunk@revolution.com"
42
+ s.summary = manifest[:description]
40
43
  s.files = [ "Changelog", "MIT-LICENSE", "Rakefile", "README" ]
41
44
  dist_dirs.each do |dir|
42
45
  s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| /(\.[svn|log|db])|(schema\.rb)/ === item }
@@ -46,7 +49,9 @@ gem_spec = Gem::Specification.new do |s|
46
49
  s.test_files = Dir.glob('test/*_test.rb')
47
50
  s.has_rdoc = false
48
51
  s.extra_rdoc_files = ["README", "Changelog"]
49
- s.add_dependency('rails', '>= 1.1.6')
52
+ manifest[:dependencies].each do|pkg,version|
53
+ s.add_dependency(pkg, version)
54
+ end
50
55
  end
51
56
 
52
57
  gem = Rake::GemPackageTask.new(gem_spec) do |pkg|
File without changes
@@ -4,6 +4,7 @@ unless defined? HAS_LOADED_ENVIRONMENT
4
4
 
5
5
  Rails::Initializer.run do |config|
6
6
  config.frameworks -= [ :action_web_service, :action_mailer ]
7
+ config.database_configuration_file = 'config/em_database.yml'
7
8
  end
8
9
 
9
10
  RAILS_DEFAULT_LOGGER.info "Rails version: #{Rails::VERSION}"
@@ -0,0 +1,7 @@
1
+ ---
2
+ :version: [1, 2]
3
+ :name: "enhanced_migrations"
4
+ :title: "RHG Enhanced Migrations"
5
+ :description: "Timestamp based migration support"
6
+ :dependencies:
7
+ - ['rails', '>= 1.1.6']
metadata CHANGED
@@ -3,9 +3,9 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: enhanced_migrations
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.0
7
- date: 2007-11-06 00:00:00 -05:00
8
- summary: Rails Enhanced Migrations
6
+ version: 1.2.1
7
+ date: 2007-11-15 00:00:00 -05:00
8
+ summary: Timestamp based migration support
9
9
  require_paths:
10
10
  - lib
11
11
  email: rails-trunk@revolution.com
@@ -34,9 +34,10 @@ files:
34
34
  - Rakefile
35
35
  - README
36
36
  - config/boot.rb
37
- - config/database.yml
37
+ - config/em_database.yml
38
38
  - config/environment.rb
39
39
  - config/environments
40
+ - config/manifest.yml
40
41
  - config/routes.rb
41
42
  - config/environments/development.rb
42
43
  - config/environments/production.rb