mack-active_record 0.6.1.2 → 0.7.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.
- data/doc/classes/Mack/Database/Generators.html +140 -0
- data/doc/classes/Mack/Database/{Migrator.html → Migrations.html} +74 -39
- data/doc/classes/Mack/Database.html +158 -61
- data/doc/classes/Mack/Testing/ActiveRecordHelpers.html +168 -0
- data/doc/classes/Mack/ViewHelpers/ActiveRecordHelpers.html +52 -52
- data/doc/classes/Mack.html +8 -15
- data/doc/created.rid +1 -1
- data/doc/files/lib/mack-active_record/{genosaurus_helpers_rb.html → database_migrations_rb.html} +4 -4
- data/doc/files/lib/mack-active_record/database_rb.html +1 -11
- data/doc/files/lib/mack-active_record/{model_column_rb.html → generators_rb.html} +4 -4
- data/doc/files/lib/mack-active_record/helpers/orm_helpers_rb.html +1 -1
- data/doc/files/lib/mack-active_record/{scaffold_generator/scaffold_generator_rb.html → test_extensions_rb.html} +12 -17
- data/doc/files/lib/mack-active_record_rb.html +2 -1
- data/doc/files/lib/mack-active_record_tasks_rb.html +8 -1
- data/doc/fr_class_index.html +3 -5
- data/doc/fr_file_index.html +3 -3
- data/doc/fr_method_index.html +11 -14
- data/lib/mack-active_record/database.rb +81 -59
- data/lib/mack-active_record/database_migrations.rb +29 -0
- data/lib/mack-active_record/generators.rb +11 -0
- data/lib/mack-active_record/helpers/orm_helpers.rb +9 -12
- data/lib/mack-active_record/model_generator/manifest.yml +2 -2
- data/lib/mack-active_record/tasks/db_migration_tasks.rake +2 -15
- data/lib/mack-active_record/test_extensions.rb +101 -0
- data/lib/mack-active_record.rb +4 -3
- data/lib/mack-active_record_tasks.rb +1 -0
- metadata +22 -22
- data/doc/classes/Mack/Genosaurus/ActiveRecord/Helpers.html +0 -225
- data/doc/classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html +0 -299
- data/doc/classes/Mack/ViewHelpers.html +0 -111
- data/doc/classes/ScaffoldGenerator.html +0 -123
- data/lib/mack-active_record/genosaurus_helpers.rb +0 -40
- data/lib/mack-active_record/model_column.rb +0 -55
- data/lib/mack-active_record/scaffold_generator/manifest.yml +0 -31
- data/lib/mack-active_record/scaffold_generator/scaffold_generator.rb +0 -42
- data/lib/mack-active_record/scaffold_generator/templates/app/views/edit.html.erb.template +0 -19
- data/lib/mack-active_record/scaffold_generator/templates/app/views/index.html.erb.template +0 -41
- data/lib/mack-active_record/scaffold_generator/templates/app/views/new.html.erb.template +0 -19
- data/lib/mack-active_record/scaffold_generator/templates/app/views/show.html.erb.template +0 -12
- data/lib/mack-active_record/scaffold_generator/templates/spec.rb.template +0 -47
- data/lib/mack-active_record/scaffold_generator/templates/test.rb.template +0 -9
- data/lib/mack-active_record/tasks/db_create_drop_tasks.rake +0 -52
@@ -1,74 +1,92 @@
|
|
1
|
-
#
|
2
|
-
# AR db create/drop.
|
3
|
-
# Currently it supports 3 adapters: sqlite3, postgresql, and mysql
|
4
|
-
#
|
5
|
-
# ds - July 2008
|
6
|
-
#
|
7
|
-
|
8
1
|
module Mack
|
9
2
|
module Database
|
10
3
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
4
|
+
# Sets up and establishes connections to the database based on the specified environment
|
5
|
+
# and the settings in the database.yml file.
|
6
|
+
def self.establish_connection(env = Mack.env)
|
7
|
+
dbs = db_settings(env)
|
8
|
+
ActiveRecord::Base.establish_connection(dbs)
|
9
|
+
end # establish_connection
|
10
|
+
|
11
|
+
# Creates a database, if it doesn't already exist for the specified environment
|
12
|
+
def self.create(env = Mack.env, repis = :default)
|
13
|
+
dbs = db_settings(env)
|
14
|
+
case dbs[:adapter]
|
15
|
+
when "mysql"
|
16
|
+
establish_mysql_connection
|
17
|
+
create_mysql_db(env, dbs)
|
18
|
+
when "postgresql"
|
19
|
+
ENV['PGHOST'] = dbs[:host] if dbs[:host]
|
20
|
+
ENV['PGPORT'] = dbs[:port].to_s if dbs[:port]
|
21
|
+
ENV['PGPASSWORD'] = dbs[:password].to_s if dbs[:password]
|
22
|
+
ActiveRecord::Base.clear_active_connections!
|
23
|
+
create_postgresql_db(env, dbs)
|
24
|
+
when "sqlite3"
|
25
|
+
ActiveRecord::Base.clear_active_connections!
|
27
26
|
end
|
28
|
-
|
29
27
|
end
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
dbs =
|
34
|
-
dbs
|
35
|
-
|
28
|
+
|
29
|
+
# Drops a database, if it exists for the specified environment
|
30
|
+
def self.drop(env = Mack.env, repis = :default)
|
31
|
+
dbs = db_settings(env)
|
32
|
+
case dbs[:adapter]
|
33
|
+
when "mysql"
|
34
|
+
establish_mysql_connection
|
35
|
+
drop_mysql_db(env, dbs)
|
36
|
+
# ActiveRecord::Base.connection.drop_database dbs[:database]
|
37
|
+
when "postgresql"
|
38
|
+
ENV['PGHOST'] = dbs[:host] if dbs[:host]
|
39
|
+
ENV['PGPORT'] = dbs[:port].to_s if dbs[:port]
|
40
|
+
ENV['PGPASSWORD'] = dbs[:password].to_s if dbs[:password]
|
41
|
+
ActiveRecord::Base.clear_active_connections!
|
42
|
+
drop_postgresql_db(env, dbs)
|
43
|
+
when "sqlite3"
|
44
|
+
ActiveRecord::Base.clear_active_connections!
|
45
|
+
FileUtils.rm_rf(dbs[:database])
|
46
|
+
end
|
36
47
|
end
|
37
48
|
|
38
|
-
|
49
|
+
# Loads the structure of the given file into the database
|
50
|
+
def self.load_structure(file, env = Mack.env, repis = :default)
|
51
|
+
Mack::Database.establish_connection(env)
|
39
52
|
dbs = db_settings(env)
|
40
|
-
|
53
|
+
sql = File.read(file)
|
54
|
+
case dbs[:adapter]
|
55
|
+
when "mysql", "sqlite3"
|
56
|
+
sql.split(";").each do |s|
|
57
|
+
s.strip!
|
58
|
+
ActiveRecord::Base.connection.execute(s) unless s.blank?
|
59
|
+
end
|
60
|
+
else
|
61
|
+
ActiveRecord::Base.connection.execute(sql) unless sql.blank?
|
62
|
+
end
|
41
63
|
end
|
42
64
|
|
43
|
-
#
|
44
|
-
|
45
|
-
|
46
|
-
# call this routine with a specific action (:drop, :create, or :drop_and_create)
|
47
|
-
#
|
48
|
-
def self.drop_or_create_database(env, mode = :drop_and_create)
|
65
|
+
# Dumps the structure of the database to a file.
|
66
|
+
def self.dump_structure(env = Mack.env, repis = :default)
|
67
|
+
Mack::Database.establish_connection(env)
|
49
68
|
dbs = db_settings(env)
|
69
|
+
structure = ""
|
70
|
+
output_file = File.join(Mack.root, "db", "#{env}_schema_structure.sql")
|
50
71
|
case dbs[:adapter]
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
ENV['PGPASSWORD'] = dbs[:password].to_s if dbs[:password]
|
60
|
-
|
61
|
-
ActiveRecord::Base.clear_active_connections!
|
62
|
-
drop_postgresql_db(env, dbs) if mode == :drop or mode == :drop_and_create
|
63
|
-
create_postgresql_db(env, dbs) if mode == :create or mode == :drop_and_create
|
64
|
-
|
65
|
-
when "sqlite3"
|
66
|
-
ActiveRecord::Base.clear_active_connections!
|
67
|
-
FileUtils.rm_rf(dbs[:database]) if mode == :drop or mode == :drop_and_create
|
72
|
+
when "mysql"
|
73
|
+
File.open(output_file, "w") {|f| f.puts ActiveRecord::Base.connection.structure_dump}
|
74
|
+
when "postgresql"
|
75
|
+
`pg_dump -i -U "#{dbs[:username]}" -s -x -O -n #{ENV["SCHEMA"] ||= "public"} -f #{output_file} #{dbs[:database]}`
|
76
|
+
when "sqlite3"
|
77
|
+
`sqlite3 #{dbs[:database]} .schema > #{output_file}`
|
78
|
+
else
|
79
|
+
raise "Task not supported for '#{dbs[:adapter]}'"
|
68
80
|
end
|
69
81
|
end
|
70
|
-
|
82
|
+
|
71
83
|
private
|
84
|
+
def self.db_settings(env)
|
85
|
+
dbs = YAML::load(ERB.new(IO.read(File.join(Mack.root, "config", "database.yml"))).result)
|
86
|
+
dbs = dbs[env]
|
87
|
+
dbs.symbolize_keys!
|
88
|
+
return dbs
|
89
|
+
end
|
72
90
|
|
73
91
|
def self.drop_postgresql_db(env, dbs)
|
74
92
|
begin
|
@@ -90,10 +108,12 @@ module Mack
|
|
90
108
|
end
|
91
109
|
|
92
110
|
def self.establish_mysql_connection
|
111
|
+
dbs = db_settings(Mack.env)
|
112
|
+
|
93
113
|
# connect to mysql meta database
|
94
114
|
ActiveRecord::Base.establish_connection(
|
95
115
|
:adapter => "mysql",
|
96
|
-
:host => "localhost",
|
116
|
+
:host => dbs[:host] || "localhost",
|
97
117
|
:database => "mysql",
|
98
118
|
:username => ENV["DB_USERNAME"] || "root",
|
99
119
|
:password => ENV["DB_PASSWORD"] || ""
|
@@ -113,6 +133,8 @@ module Mack
|
|
113
133
|
def self.drop_mysql_db(env, dbs)
|
114
134
|
puts "Dropping (MySQL): #{dbs[:database]}"
|
115
135
|
ActiveRecord::Base.connection.execute "DROP DATABASE IF EXISTS `#{dbs[:database]}`"
|
136
|
+
# ActiveRecord::Base.connection.drop_database dbs[:database]
|
116
137
|
end
|
117
|
-
|
118
|
-
end
|
138
|
+
|
139
|
+
end # Database
|
140
|
+
end # Mack
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Mack
|
2
|
+
module Database
|
3
|
+
module Migrations
|
4
|
+
|
5
|
+
# Migrates the database to the latest version
|
6
|
+
def self.migrate
|
7
|
+
ActiveRecord::Migrator.up(File.join(Mack.root, "db", "migrations"))
|
8
|
+
end
|
9
|
+
|
10
|
+
# Rolls back the database by the specified number of steps. Default is 1
|
11
|
+
def self.rollback(step = 1)
|
12
|
+
cur_version = version.to_i
|
13
|
+
target_version = cur_version - step
|
14
|
+
target_version = 0 if target_version < 0
|
15
|
+
ActiveRecord::Migrator.down(File.join(Mack.root, "db", "migrations"), target_version)
|
16
|
+
end
|
17
|
+
|
18
|
+
# Not implemented
|
19
|
+
def self.abort_if_pending_migrations
|
20
|
+
end
|
21
|
+
|
22
|
+
# Returns the current version of the database
|
23
|
+
def self.version
|
24
|
+
ActiveRecord::Migrator.current_version
|
25
|
+
end
|
26
|
+
|
27
|
+
end # Migrations
|
28
|
+
end # Database
|
29
|
+
end # Mack
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Mack
|
2
|
+
module Database
|
3
|
+
module Generators
|
4
|
+
|
5
|
+
def self.controller_template_location
|
6
|
+
File.join(File.dirname(__FILE__), "scaffold_generator", "templates", "app", "controllers", "controller.rb.template")
|
7
|
+
end
|
8
|
+
|
9
|
+
end # Generators
|
10
|
+
end # Database
|
11
|
+
end # Mack
|
@@ -5,20 +5,17 @@ class ActiveRecord::Base # :nodoc:
|
|
5
5
|
end
|
6
6
|
|
7
7
|
module Mack
|
8
|
-
module ViewHelpers
|
8
|
+
module ViewHelpers # :nodoc:
|
9
9
|
module ActiveRecordHelpers
|
10
10
|
DEFAULT_PARTIAL = %{
|
11
|
-
<div>
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</div>
|
20
|
-
</div>
|
21
|
-
}
|
11
|
+
<div class="errorExplanation" id="errorExplanation">
|
12
|
+
<h2><%= pluralize_word(errors.size, "error") %> occured.</h2>
|
13
|
+
<ul>
|
14
|
+
<% for error in errors %>
|
15
|
+
<li><%= error %></li>
|
16
|
+
<% end %>
|
17
|
+
</ul>
|
18
|
+
</div>}.strip unless Mack::ViewHelpers::ActiveRecordHelpers.const_defined?("DEFAULT_PARTIAL")
|
22
19
|
|
23
20
|
def error_messages_for(object_names = [], view_partial = nil)
|
24
21
|
object_names = [object_names]
|
@@ -10,10 +10,10 @@ model_template:
|
|
10
10
|
test_template:
|
11
11
|
type: file
|
12
12
|
template_path: <%= File.join(templates_directory_path, "test.rb.template") %>
|
13
|
-
output_path: <%= File.join("test", "
|
13
|
+
output_path: <%= File.join("test", "models", "#{param(:name).singular.underscore}_test.rb") %>
|
14
14
|
<% elsif testing_framework == "rspec" %>
|
15
15
|
test_template:
|
16
16
|
type: file
|
17
17
|
template_path: <%= File.join(templates_directory_path, "rspec.rb.template") %>
|
18
|
-
output_path: <%= File.join("test", "
|
18
|
+
output_path: <%= File.join("test", "models", "#{param(:name).singular.underscore}_spec.rb") %>
|
19
19
|
<% end %>
|
@@ -1,21 +1,8 @@
|
|
1
|
-
require 'rake'
|
2
1
|
namespace :db do
|
3
|
-
|
4
|
-
desc "Migrate the database through scripts in db/migrations"
|
5
|
-
task :migrate => "mack:environment" do
|
6
|
-
#ActiveRecord::Migrator.up(File.join(Mack.root, "db", "migrations"))
|
7
|
-
Mack::Database::Migrator.migrate
|
8
|
-
end # migrate
|
9
|
-
|
10
|
-
desc "Rolls the schema back to the previous version. Specify the number of steps with STEP=n"
|
11
|
-
task :rollback => ["mack:environment"] do
|
12
|
-
Mack::Database::Migrator.rollback
|
13
|
-
#ActiveRecord::Migrator.rollback(File.join(Mack.root, "db", "migrations"), (ENV["STEP"] || 1).to_i)
|
14
|
-
end # rollback
|
15
2
|
|
16
3
|
desc "Displays the current schema version of your database"
|
17
4
|
task :version => "mack:environment" do
|
18
|
-
puts "\nYour database is currently at version: #{Mack::Database::
|
19
|
-
end
|
5
|
+
puts "\nYour database is currently at version: #{Mack::Database::Migrations.version}\n"
|
6
|
+
end # version
|
20
7
|
|
21
8
|
end # db
|
@@ -0,0 +1,101 @@
|
|
1
|
+
require "test/unit"
|
2
|
+
require 'spec'
|
3
|
+
|
4
|
+
if Mack.env == "test"
|
5
|
+
module Mack
|
6
|
+
module Testing # :nodoc:
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
# Wrap it so we don't accidentally alias the run method n times and run out of db connections!
|
11
|
+
unless Mack::Testing.const_defined?("AR_TEST_EXTENSIONS")
|
12
|
+
|
13
|
+
module Mack
|
14
|
+
module Testing
|
15
|
+
AR_TEST_EXTENSIONS = 1
|
16
|
+
# module Helpers
|
17
|
+
# alias_method :mack_rake_task, :rake_task
|
18
|
+
#
|
19
|
+
# def rake_task(name, env = {}) # :nodoc:
|
20
|
+
# DataMapper::MigrationRunner.reset!
|
21
|
+
# mack_rake_task(name, env, [File.join(File.dirname(__FILE__), "tasks", "db_create_drop_tasks.rake"),
|
22
|
+
# File.join(File.dirname(__FILE__), "tasks", "db_migration_tasks.rake")])
|
23
|
+
# end
|
24
|
+
# end # Helpers
|
25
|
+
|
26
|
+
module ActiveRecordHelpers
|
27
|
+
def rollback_transaction
|
28
|
+
begin
|
29
|
+
ActiveRecord::Base.transaction do
|
30
|
+
yield if block_given?
|
31
|
+
raise "Rollback!"
|
32
|
+
end
|
33
|
+
rescue => ex
|
34
|
+
# we need to do this so we can throw up actual errors!
|
35
|
+
unless ex.to_s == "Rollback!"
|
36
|
+
raise ex
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end # rollback_transaction
|
40
|
+
end # ActiveRecordHelpers
|
41
|
+
end # Testing
|
42
|
+
end # Mack
|
43
|
+
|
44
|
+
module Spec # :nodoc:
|
45
|
+
module Example # :nodoc:
|
46
|
+
module ExampleMethods # :nodoc:
|
47
|
+
include Mack::Testing::ActiveRecordHelpers
|
48
|
+
|
49
|
+
alias_method :ar_spec_execute, :execute
|
50
|
+
|
51
|
+
def before_spec_extension
|
52
|
+
end
|
53
|
+
|
54
|
+
def after_spec_extension
|
55
|
+
end
|
56
|
+
|
57
|
+
def execute(options, instance_variables)
|
58
|
+
before_spec_extension
|
59
|
+
if !app_config.disable_transactional_tests
|
60
|
+
rollback_transaction do
|
61
|
+
@__res = ar_spec_execute(options, instance_variables)
|
62
|
+
end
|
63
|
+
else
|
64
|
+
@__res = ar_spec_execute(options, instance_variables)
|
65
|
+
end
|
66
|
+
after_spec_extension
|
67
|
+
@__res
|
68
|
+
end
|
69
|
+
|
70
|
+
end # ExampleGroup
|
71
|
+
end # Example
|
72
|
+
end # Spec
|
73
|
+
|
74
|
+
module Test # :nodoc:
|
75
|
+
module Unit # :nodoc:
|
76
|
+
class TestCase # :nodoc:
|
77
|
+
include Mack::Testing::ActiveRecordHelpers
|
78
|
+
|
79
|
+
# Let's alias the run method in the class above us so we can create a new one here
|
80
|
+
# but still reference it.
|
81
|
+
alias_method :ar_test_case_run, :run # :nodoc:
|
82
|
+
|
83
|
+
# We need to wrap the run method so we can do things like
|
84
|
+
# run a cleanup method if it exists
|
85
|
+
def run(result, &progress_block) # :nodoc:
|
86
|
+
if !app_config.disable_transactional_tests
|
87
|
+
rollback_transaction do
|
88
|
+
ar_test_case_run(result, &progress_block)
|
89
|
+
end
|
90
|
+
else
|
91
|
+
ar_test_case_run(result, &progress_block)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
end # TestCase
|
96
|
+
end # Unit
|
97
|
+
end # Test
|
98
|
+
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
data/lib/mack-active_record.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'genosaurus'
|
3
|
-
|
3
|
+
require 'mack-orm'
|
4
4
|
require 'activerecord'
|
5
5
|
|
6
6
|
module ActiveRecord # :nodoc:
|
@@ -9,9 +9,10 @@ end
|
|
9
9
|
fl = File.join(File.dirname(__FILE__), "mack-active_record")
|
10
10
|
|
11
11
|
require File.join(fl, "database")
|
12
|
+
require File.join(fl, "database_migrations")
|
13
|
+
require File.join(fl, "generators")
|
12
14
|
require File.join(fl, "helpers", "orm_helpers")
|
13
|
-
require File.join(fl, "
|
14
|
-
require File.join(fl, "genosaurus_helpers")
|
15
|
+
require File.join(fl, "test_extensions")
|
15
16
|
|
16
17
|
# [:migration, :model, :scaffold].each do |gen|
|
17
18
|
# require File.join(fl, "#{gen}_generator", "#{gen}_generator")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-08-
|
12
|
+
date: 2008-08-25 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,17 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0
|
23
|
+
version: 2.1.0
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mack-orm
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.7.0
|
24
34
|
version:
|
25
35
|
description: "mack-active_record was developed by: markbates"
|
26
36
|
email: mark@mackframework.com
|
@@ -32,48 +42,38 @@ extra_rdoc_files:
|
|
32
42
|
- README
|
33
43
|
files:
|
34
44
|
- lib/mack-active_record/database.rb
|
35
|
-
- lib/mack-active_record/
|
45
|
+
- lib/mack-active_record/database_migrations.rb
|
46
|
+
- lib/mack-active_record/generators.rb
|
36
47
|
- lib/mack-active_record/helpers/orm_helpers.rb
|
37
48
|
- lib/mack-active_record/migration_generator/migration_generator.rb
|
38
49
|
- lib/mack-active_record/migration_generator/templates/db/migrations/%=@migration_name%.rb.template
|
39
|
-
- lib/mack-active_record/model_column.rb
|
40
50
|
- lib/mack-active_record/model_generator/manifest.yml
|
41
51
|
- lib/mack-active_record/model_generator/model_generator.rb
|
42
52
|
- lib/mack-active_record/model_generator/templates/model.rb.template
|
43
53
|
- lib/mack-active_record/model_generator/templates/rspec.rb.template
|
44
54
|
- lib/mack-active_record/model_generator/templates/test.rb.template
|
45
|
-
- lib/mack-active_record/scaffold_generator/manifest.yml
|
46
|
-
- lib/mack-active_record/scaffold_generator/scaffold_generator.rb
|
47
55
|
- lib/mack-active_record/scaffold_generator/templates/app/controllers/controller.rb.template
|
48
|
-
- lib/mack-active_record/scaffold_generator/templates/app/views/edit.html.erb.template
|
49
|
-
- lib/mack-active_record/scaffold_generator/templates/app/views/index.html.erb.template
|
50
|
-
- lib/mack-active_record/scaffold_generator/templates/app/views/new.html.erb.template
|
51
|
-
- lib/mack-active_record/scaffold_generator/templates/app/views/show.html.erb.template
|
52
|
-
- lib/mack-active_record/scaffold_generator/templates/spec.rb.template
|
53
|
-
- lib/mack-active_record/scaffold_generator/templates/test.rb.template
|
54
|
-
- lib/mack-active_record/tasks/db_create_drop_tasks.rake
|
55
56
|
- lib/mack-active_record/tasks/db_migration_tasks.rake
|
57
|
+
- lib/mack-active_record/test_extensions.rb
|
56
58
|
- lib/mack-active_record.rb
|
57
59
|
- lib/mack-active_record_tasks.rb
|
58
60
|
- README
|
59
|
-
- doc/classes/Mack/Database/
|
61
|
+
- doc/classes/Mack/Database/Generators.html
|
62
|
+
- doc/classes/Mack/Database/Migrations.html
|
60
63
|
- doc/classes/Mack/Database.html
|
61
|
-
- doc/classes/Mack/
|
62
|
-
- doc/classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html
|
64
|
+
- doc/classes/Mack/Testing/ActiveRecordHelpers.html
|
63
65
|
- doc/classes/Mack/ViewHelpers/ActiveRecordHelpers.html
|
64
|
-
- doc/classes/Mack/ViewHelpers.html
|
65
66
|
- doc/classes/Mack.html
|
66
67
|
- doc/classes/MigrationGenerator.html
|
67
68
|
- doc/classes/ModelGenerator.html
|
68
|
-
- doc/classes/ScaffoldGenerator.html
|
69
69
|
- doc/created.rid
|
70
|
+
- doc/files/lib/mack-active_record/database_migrations_rb.html
|
70
71
|
- doc/files/lib/mack-active_record/database_rb.html
|
71
|
-
- doc/files/lib/mack-active_record/
|
72
|
+
- doc/files/lib/mack-active_record/generators_rb.html
|
72
73
|
- doc/files/lib/mack-active_record/helpers/orm_helpers_rb.html
|
73
74
|
- doc/files/lib/mack-active_record/migration_generator/migration_generator_rb.html
|
74
|
-
- doc/files/lib/mack-active_record/model_column_rb.html
|
75
75
|
- doc/files/lib/mack-active_record/model_generator/model_generator_rb.html
|
76
|
-
- doc/files/lib/mack-active_record/
|
76
|
+
- doc/files/lib/mack-active_record/test_extensions_rb.html
|
77
77
|
- doc/files/lib/mack-active_record_rb.html
|
78
78
|
- doc/files/lib/mack-active_record_tasks_rb.html
|
79
79
|
- doc/files/README.html
|