muding 0.1.1 → 0.2.0

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.
@@ -0,0 +1,19 @@
1
+ #require 'application'
2
+
3
+ # Make double-sure the MUDING_ENV is set to test,
4
+ # so fixtures are loaded to the right database
5
+ silence_warnings { MUDING_ENV = "test" }
6
+
7
+ require 'test/unit'
8
+ require 'active_record/fixtures'
9
+ #require 'action_controller/test_process'
10
+ #require 'action_controller/integration'
11
+ #require 'action_web_service/test_invoke'
12
+ #require 'breakpoint'
13
+
14
+
15
+ Test::Unit::TestCase.fixture_path = MUDING_ROOT + "/test/fixtures/"
16
+
17
+ def create_fixtures(*table_names)
18
+ Fixtures.create_fixtures(MUDING_ROOT + "/test/fixtures", table_names)
19
+ end
@@ -0,0 +1,11 @@
1
+ module Muding
2
+ module VERSION #:nodoc:
3
+ MAJOR = 0
4
+ MINOR = 2
5
+ TINY = 0
6
+
7
+ STRING = [MAJOR, MINOR, TINY].join('.')
8
+ end
9
+ end
10
+
11
+
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: muding
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2006-07-25 00:00:00 -05:00
6
+ version: 0.2.0
7
+ date: 2006-08-02 00:00:00 -05:00
8
8
  summary: an application framework for building multi-user environments.
9
9
  require_paths:
10
10
  - lib
@@ -42,6 +42,7 @@ files:
42
42
  - bin/destroy
43
43
  - configs/
44
44
  - configs/boot.rb
45
+ - configs/environment.rb
45
46
  - configs/databases/
46
47
  - configs/databases/mysql.yml
47
48
  - configs/databases/oracle.yml
@@ -55,13 +56,21 @@ files:
55
56
  - helpers/mud_helper.rb
56
57
  - helpers/test_helper.rb
57
58
  - lib/
59
+ - lib/initializer.rb
60
+ - lib/code_statistics.rb
61
+ - lib/version.rb
62
+ - lib/test_help.rb
58
63
  - lib/controller.rb
59
64
  - lib/handle.rb
60
65
  - lib/model.rb
61
66
  - lib/muding.rb
62
67
  - lib/muding_generator.rb
63
68
  - lib/ruby_version_check.rb
64
- - lib/tasks/migrate.rake
69
+ - lib/tasks/muding.rb
70
+ - lib/tasks/databases.rake
71
+ - lib/tasks/documentation.rake
72
+ - lib/tasks/statistics.rake
73
+ - lib/tasks/testing.rake
65
74
  - lib/acts/expireable.rb
66
75
  - lib/acts/container.rb
67
76
  - lib/commands/
@@ -1,33 +0,0 @@
1
- #what environment are we working with?
2
- task :environment do
3
- require File.join('lib', 'muding')
4
- end
5
-
6
- task :migrate do
7
- Rake::Task["db:migrate"].invoke
8
- end
9
-
10
- namespace :db do
11
- desc "Migrate the database through scripts in db/migrate. Target specific version with VERSION=x"
12
- task :migrate => :environment do
13
- ActiveRecord::Migrator.migrate("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
14
- Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
15
- end
16
-
17
- namespace :schema do
18
- desc "Create a db/schema.rb file that can be portably used against any DB supported by AR"
19
- task :dump => :environment do
20
- require 'active_record/schema_dumper'
21
- File.open(ENV['SCHEMA'] || "db/schema.rb", "w") do |file|
22
- ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
23
- end
24
- end
25
-
26
- desc "Load a schema.rb file into the database"
27
- task :load => :environment do
28
- file = ENV['SCHEMA'] || "db/schema.rb"
29
- load(file)
30
- end
31
- end
32
-
33
- end