mack-data_mapper 0.6.0.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +115 -4
- data/lib/mack-data_mapper.rb +14 -12
- data/lib/{database.rb → mack-data_mapper/database.rb} +0 -0
- data/lib/mack-data_mapper/dm_patches/dm-timestamps.rb +6 -0
- data/lib/mack-data_mapper/dm_patches/migrations.rb +9 -0
- data/lib/{genosaurus_helpers.rb → mack-data_mapper/genosaurus_helpers.rb} +1 -1
- data/lib/{helpers → mack-data_mapper/helpers}/orm_helpers.rb +4 -2
- data/lib/{migration_generator → mack-data_mapper/migration_generator}/migration_generator.rb +0 -0
- data/lib/{migration_generator → mack-data_mapper/migration_generator}/templates/db/migrations/%=@migration_name%.rb.template +0 -0
- data/lib/{model_column.rb → mack-data_mapper/model_column.rb} +3 -3
- data/lib/{model_generator → mack-data_mapper/model_generator}/manifest.yml +0 -0
- data/lib/{model_generator → mack-data_mapper/model_generator}/model_generator.rb +0 -0
- data/lib/{model_generator → mack-data_mapper/model_generator}/templates/model.rb.template +0 -0
- data/lib/{model_generator → mack-data_mapper/model_generator}/templates/rspec.rb.template +0 -0
- data/lib/{model_generator → mack-data_mapper/model_generator}/templates/test_case.rb.template +0 -0
- data/lib/{resource.rb → mack-data_mapper/resource.rb} +0 -0
- data/lib/{runner.rb → mack-data_mapper/runner.rb} +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/manifest.yml +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/scaffold_generator.rb +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/controllers/controller.rb.template +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/helpers/controllers/helper.rb.template +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/edit.html.erb.template +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/index.html.erb.template +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/new.html.erb.template +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/show.html.erb.template +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/test/functional/rspec.rb.template +0 -0
- data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/test/functional/test_case.rb.template +0 -0
- data/lib/{tasks → mack-data_mapper/tasks}/db_create_drop_tasks.rake +0 -0
- data/lib/{tasks → mack-data_mapper/tasks}/db_migration_tasks.rake +3 -3
- data/lib/{tasks → mack-data_mapper/tasks}/test_tasks.rake +0 -0
- data/lib/{test_extensions.rb → mack-data_mapper/test_extensions.rb} +3 -3
- data/lib/mack-data_mapper_tasks.rb +1 -1
- metadata +103 -69
- data/doc/classes/DataMapper/Resource.html +0 -154
- data/doc/classes/Mack.html +0 -127
- data/doc/classes/Mack/Database.html +0 -210
- data/doc/classes/Mack/Genosaurus/DataMapper/Helpers.html +0 -225
- data/doc/classes/Mack/Genosaurus/DataMapper/ModelColumn.html +0 -237
- data/doc/classes/Mack/Testing/DataMapperHelpers.html +0 -151
- data/doc/classes/Mack/Testing/Helpers.html +0 -155
- data/doc/classes/Mack/ViewHelpers/DataMapperHelpers.html +0 -279
- data/doc/classes/MigrationGenerator.html +0 -161
- data/doc/classes/ModelGenerator.html +0 -183
- data/doc/classes/ScaffoldGenerator.html +0 -123
- data/doc/created.rid +0 -1
- data/doc/files/README.html +0 -121
- data/doc/files/lib/database_rb.html +0 -101
- data/doc/files/lib/dm_patches/confirmation_validation_rb.html +0 -101
- data/doc/files/lib/dm_patches/dm-cli_rb.html +0 -108
- data/doc/files/lib/dm_patches/migrations_rb.html +0 -101
- data/doc/files/lib/dm_patches/pooling_rb.html +0 -109
- data/doc/files/lib/genosaurus_helpers_rb.html +0 -101
- data/doc/files/lib/helpers/orm_helpers_rb.html +0 -101
- data/doc/files/lib/mack-data_mapper_rb.html +0 -110
- data/doc/files/lib/mack-data_mapper_tasks_rb.html +0 -101
- data/doc/files/lib/migration_generator/migration_generator_rb.html +0 -151
- data/doc/files/lib/model_column_rb.html +0 -101
- data/doc/files/lib/model_generator/model_generator_rb.html +0 -173
- data/doc/files/lib/resource_rb.html +0 -101
- data/doc/files/lib/runner_rb.html +0 -101
- data/doc/files/lib/scaffold_generator/scaffold_generator_rb.html +0 -114
- data/doc/files/lib/test_extensions_rb.html +0 -109
- data/doc/fr_class_index.html +0 -37
- data/doc/fr_file_index.html +0 -43
- data/doc/fr_method_index.html +0 -42
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
- data/lib/dm_patches/confirmation_validation.rb +0 -19
- data/lib/dm_patches/dm-cli.rb +0 -1
- data/lib/dm_patches/migrations.rb +0 -23
- data/lib/dm_patches/pooling.rb +0 -229
data/README
CHANGED
@@ -1,9 +1,120 @@
|
|
1
|
-
README
|
2
|
-
========================================================================
|
3
|
-
mack-data_mapper was developed by: markbates
|
4
|
-
|
5
1
|
This gem provides Mack integration with the ORM Framework, DataMapper.
|
6
2
|
|
7
3
|
For more information on DataMapper please visit:
|
8
4
|
|
9
5
|
http://www.datamapper.org
|
6
|
+
|
7
|
+
== Notes
|
8
|
+
|
9
|
+
The database.yml file for a DataMapper backed application would look something like this:
|
10
|
+
|
11
|
+
# MySQL:
|
12
|
+
development:
|
13
|
+
default:
|
14
|
+
adapter: mysql
|
15
|
+
database: my_app_development
|
16
|
+
host: localhost
|
17
|
+
username: my_db_user
|
18
|
+
password: password
|
19
|
+
|
20
|
+
test:
|
21
|
+
default:
|
22
|
+
adapter: mysql
|
23
|
+
database: my_app_test
|
24
|
+
host: localhost
|
25
|
+
username: my_db_user
|
26
|
+
password: password
|
27
|
+
|
28
|
+
production:
|
29
|
+
default:
|
30
|
+
adapter: mysql
|
31
|
+
database: my_app_production
|
32
|
+
host: localhost
|
33
|
+
username: my_db_user
|
34
|
+
password: password
|
35
|
+
|
36
|
+
# PostgreSQL:
|
37
|
+
development:
|
38
|
+
default:
|
39
|
+
adapter: postgres
|
40
|
+
database: my_app_development
|
41
|
+
host: localhost
|
42
|
+
username: my_db_user
|
43
|
+
password: password
|
44
|
+
|
45
|
+
test:
|
46
|
+
default:
|
47
|
+
adapter: postgres
|
48
|
+
database: my_app_test
|
49
|
+
host: localhost
|
50
|
+
username: my_db_user
|
51
|
+
password: password
|
52
|
+
|
53
|
+
production:
|
54
|
+
default:
|
55
|
+
adapter: postgres
|
56
|
+
database: my_app_production
|
57
|
+
host: localhost
|
58
|
+
username: my_db_user
|
59
|
+
password: password
|
60
|
+
|
61
|
+
# SQLite3:
|
62
|
+
development:
|
63
|
+
default:
|
64
|
+
adapter: sqlite3
|
65
|
+
database: db/my_app_development.db
|
66
|
+
|
67
|
+
test:
|
68
|
+
default:
|
69
|
+
adapter: sqlite3
|
70
|
+
database: db/my_app_test.db
|
71
|
+
|
72
|
+
production:
|
73
|
+
default:
|
74
|
+
adapter: sqlite3
|
75
|
+
database: db/my_app_production.db
|
76
|
+
|
77
|
+
|
78
|
+
== Testing
|
79
|
+
|
80
|
+
Tests are wrapped in a transaction so that any database activities get
|
81
|
+
rolled back at the end of the test. This works with both RSpec and
|
82
|
+
Test::Unit::TestCase
|
83
|
+
|
84
|
+
== Rake tasks
|
85
|
+
|
86
|
+
# Drops (if it exists) the database and then creates it for your environment.
|
87
|
+
rake db:recreate
|
88
|
+
|
89
|
+
# Creates the database for your environment.
|
90
|
+
rake db:create
|
91
|
+
|
92
|
+
# Drops the database for your environment.
|
93
|
+
rake db:drop
|
94
|
+
|
95
|
+
# Creates your test and development databases. Does NOT create your production database!
|
96
|
+
rake db:create:all
|
97
|
+
|
98
|
+
# Drops your test and development databases. Does NOT create your production database!
|
99
|
+
rake db:drop:all
|
100
|
+
|
101
|
+
# Drops and creates your test and development databases. Does NOT create your production database!
|
102
|
+
rake db:recreate:all
|
103
|
+
|
104
|
+
# Migrate the database through scripts in db/migrations.
|
105
|
+
rake db:migrate
|
106
|
+
|
107
|
+
# Rolls the schema back to the previous version. Specify the number of steps with STEP=n.
|
108
|
+
rake db:rollback
|
109
|
+
|
110
|
+
# Raises an error if there are pending migrations.
|
111
|
+
rake db:abort_if_pending_migrations
|
112
|
+
|
113
|
+
# Generates a controller, a model, a migration, and tests for the given resource.
|
114
|
+
rake generate:scaffold
|
115
|
+
|
116
|
+
# Generates a model, a migration, and a test for the given resource.
|
117
|
+
rake generate:model
|
118
|
+
|
119
|
+
# Generates a migration for the given columns
|
120
|
+
rake generate:migration
|
data/lib/mack-data_mapper.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'genosaurus'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
fl = File.join(File.dirname(__FILE__), "mack-data_mapper")
|
5
|
+
|
6
|
+
$: << File.expand_path(File.join(fl, "dm_patches"))
|
7
|
+
|
8
|
+
[:core, :aggregates, :migrations, :serializer, :timestamps, :validations, :observer, :types].each do |g|
|
9
|
+
gem "dm-#{g}", "0.9.3"
|
10
|
+
require "dm-#{g}"
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
14
|
require File.join(fl, "database")
|
15
15
|
require File.join(fl, "helpers", "orm_helpers")
|
16
16
|
require File.join(fl, "resource")
|
@@ -22,7 +22,7 @@ require File.join(fl, "genosaurus_helpers")
|
|
22
22
|
|
23
23
|
|
24
24
|
[:helpers, :migration_generator, :model_generator, :scaffold_generator, :dm_patches].each do |folder|
|
25
|
-
Dir.glob(File.join(
|
25
|
+
Dir.glob(File.join(fl, folder.to_s, "**/*.rb")).each {|f| require f}
|
26
26
|
end
|
27
27
|
|
28
28
|
English::Inflect.word 'email_address'
|
@@ -49,4 +49,6 @@ end
|
|
49
49
|
|
50
50
|
DataMapper.logger = DataMapper::Logger.new(StringIO.new, 0)
|
51
51
|
|
52
|
-
Mack::Database.establish_connection(Mack.env)
|
52
|
+
Mack::Database.establish_connection(Mack.env)
|
53
|
+
|
54
|
+
require File.join(File.dirname(__FILE__), 'mack-data_mapper_tasks')
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
module DataMapper
|
2
|
+
module Timestamp
|
3
|
+
TIMESTAMP_PROPERTIES[:created_at] = lambda { |r| r.created_at = DateTime.now if r.new_record? && r.created_at.nil? }
|
4
|
+
TIMESTAMP_PROPERTIES[:created_on] = lambda { |r| r.created_on = DateTime.now if r.new_record? && r.created_on.nil? }
|
5
|
+
end
|
6
|
+
end
|
@@ -28,8 +28,10 @@ module Mack
|
|
28
28
|
object_names.each do |name|
|
29
29
|
object = instance_variable_get("@#{name}")
|
30
30
|
if object
|
31
|
-
if object.
|
32
|
-
|
31
|
+
if object.respond_to?(:errors)
|
32
|
+
if object.errors.respond_to?(:full_messages)
|
33
|
+
app_errors << object.errors.full_messages.uniq
|
34
|
+
end
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
data/lib/{migration_generator → mack-data_mapper/migration_generator}/migration_generator.rb
RENAMED
File without changes
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Mack
|
2
|
-
module Genosaurus
|
3
|
-
module DataMapper
|
2
|
+
module Genosaurus # :nodoc:
|
3
|
+
module DataMapper # :nodoc:
|
4
4
|
# Used to represent a 'column' from the param cols or columns for generators.
|
5
|
-
class ModelColumn
|
5
|
+
class ModelColumn # :nodoc:
|
6
6
|
|
7
7
|
# The name of the column.
|
8
8
|
attr_accessor :column_name
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/{model_generator → mack-data_mapper/model_generator}/templates/test_case.rb.template
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,7 +3,7 @@ namespace :db do
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
desc "Migrate the database through scripts in db/migrations"
|
6
|
+
desc "Migrate the database through scripts in db/migrations."
|
7
7
|
task :migrate => "mack:environment" do
|
8
8
|
require 'migration_runner'
|
9
9
|
include DataMapper::Types
|
@@ -12,7 +12,7 @@ namespace :db do
|
|
12
12
|
DataMapper::MigrationRunner.migrate_up!
|
13
13
|
end # migrate
|
14
14
|
|
15
|
-
desc "Rolls the schema back to the previous version. Specify the number of steps with STEP=n"
|
15
|
+
desc "Rolls the schema back to the previous version. Specify the number of steps with STEP=n."
|
16
16
|
task :rollback => ["mack:environment", "db:abort_if_pending_migrations"] do
|
17
17
|
require 'dm-core/types'
|
18
18
|
require 'migration_runner'
|
@@ -26,7 +26,7 @@ namespace :db do
|
|
26
26
|
end
|
27
27
|
end # rollback
|
28
28
|
|
29
|
-
desc "Raises an error if there are pending migrations"
|
29
|
+
desc "Raises an error if there are pending migrations."
|
30
30
|
task :abort_if_pending_migrations do
|
31
31
|
require 'dm-core/types'
|
32
32
|
require 'migration_runner'
|
File without changes
|
@@ -15,10 +15,10 @@ if Mack.env == "test"
|
|
15
15
|
module Helpers
|
16
16
|
alias_method :mack_rake_task, :rake_task
|
17
17
|
|
18
|
-
def rake_task(name, env = {})
|
18
|
+
def rake_task(name, env = {}) # :nodoc:
|
19
19
|
DataMapper::MigrationRunner.reset!
|
20
|
-
mack_rake_task(name, env, [File.join(File.dirname(__FILE__), "
|
21
|
-
File.join(File.dirname(__FILE__), "
|
20
|
+
mack_rake_task(name, env, [File.join(File.dirname(__FILE__), "tasks", "db_create_drop_tasks.rake"),
|
21
|
+
File.join(File.dirname(__FILE__), "tasks", "db_migration_tasks.rake")])
|
22
22
|
end
|
23
23
|
end # Helpers
|
24
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-data_mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -9,18 +9,88 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-08-04 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: dm-core
|
17
17
|
type: :runtime
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.9.
|
23
|
+
version: 0.9.3
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: dm-aggregates
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.3
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: dm-migrations
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.9.3
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: dm-serializer
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.9.3
|
54
|
+
version:
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dm-timestamps
|
57
|
+
type: :runtime
|
58
|
+
version_requirement:
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 0.9.3
|
64
|
+
version:
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: dm-validations
|
67
|
+
type: :runtime
|
68
|
+
version_requirement:
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 0.9.3
|
74
|
+
version:
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: dm-observer
|
77
|
+
type: :runtime
|
78
|
+
version_requirement:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.9.3
|
84
|
+
version:
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: dm-types
|
87
|
+
type: :runtime
|
88
|
+
version_requirement:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.9.3
|
24
94
|
version:
|
25
95
|
description: "mack-data_mapper was developed by: markbates"
|
26
96
|
email: mark@mackframework.com
|
@@ -31,74 +101,38 @@ extensions: []
|
|
31
101
|
extra_rdoc_files:
|
32
102
|
- README
|
33
103
|
files:
|
34
|
-
- lib/database.rb
|
35
|
-
- lib/dm_patches/
|
36
|
-
- lib/dm_patches/
|
37
|
-
- lib/
|
38
|
-
- lib/
|
39
|
-
- lib/
|
40
|
-
- lib/
|
104
|
+
- lib/mack-data_mapper/database.rb
|
105
|
+
- lib/mack-data_mapper/dm_patches/dm-timestamps.rb
|
106
|
+
- lib/mack-data_mapper/dm_patches/migrations.rb
|
107
|
+
- lib/mack-data_mapper/genosaurus_helpers.rb
|
108
|
+
- lib/mack-data_mapper/helpers/orm_helpers.rb
|
109
|
+
- lib/mack-data_mapper/migration_generator/migration_generator.rb
|
110
|
+
- lib/mack-data_mapper/migration_generator/templates/db/migrations/%=@migration_name%.rb.template
|
111
|
+
- lib/mack-data_mapper/model_column.rb
|
112
|
+
- lib/mack-data_mapper/model_generator/manifest.yml
|
113
|
+
- lib/mack-data_mapper/model_generator/model_generator.rb
|
114
|
+
- lib/mack-data_mapper/model_generator/templates/model.rb.template
|
115
|
+
- lib/mack-data_mapper/model_generator/templates/rspec.rb.template
|
116
|
+
- lib/mack-data_mapper/model_generator/templates/test_case.rb.template
|
117
|
+
- lib/mack-data_mapper/resource.rb
|
118
|
+
- lib/mack-data_mapper/runner.rb
|
119
|
+
- lib/mack-data_mapper/scaffold_generator/manifest.yml
|
120
|
+
- lib/mack-data_mapper/scaffold_generator/scaffold_generator.rb
|
121
|
+
- lib/mack-data_mapper/scaffold_generator/templates/app/controllers/controller.rb.template
|
122
|
+
- lib/mack-data_mapper/scaffold_generator/templates/app/helpers/controllers/helper.rb.template
|
123
|
+
- lib/mack-data_mapper/scaffold_generator/templates/app/views/edit.html.erb.template
|
124
|
+
- lib/mack-data_mapper/scaffold_generator/templates/app/views/index.html.erb.template
|
125
|
+
- lib/mack-data_mapper/scaffold_generator/templates/app/views/new.html.erb.template
|
126
|
+
- lib/mack-data_mapper/scaffold_generator/templates/app/views/show.html.erb.template
|
127
|
+
- lib/mack-data_mapper/scaffold_generator/templates/test/functional/rspec.rb.template
|
128
|
+
- lib/mack-data_mapper/scaffold_generator/templates/test/functional/test_case.rb.template
|
129
|
+
- lib/mack-data_mapper/tasks/db_create_drop_tasks.rake
|
130
|
+
- lib/mack-data_mapper/tasks/db_migration_tasks.rake
|
131
|
+
- lib/mack-data_mapper/tasks/test_tasks.rake
|
132
|
+
- lib/mack-data_mapper/test_extensions.rb
|
41
133
|
- lib/mack-data_mapper.rb
|
42
134
|
- lib/mack-data_mapper_tasks.rb
|
43
|
-
- lib/migration_generator/migration_generator.rb
|
44
|
-
- lib/migration_generator/templates/db/migrations/%=@migration_name%.rb.template
|
45
|
-
- lib/model_column.rb
|
46
|
-
- lib/model_generator/manifest.yml
|
47
|
-
- lib/model_generator/model_generator.rb
|
48
|
-
- lib/model_generator/templates/model.rb.template
|
49
|
-
- lib/model_generator/templates/rspec.rb.template
|
50
|
-
- lib/model_generator/templates/test_case.rb.template
|
51
|
-
- lib/resource.rb
|
52
|
-
- lib/runner.rb
|
53
|
-
- lib/scaffold_generator/manifest.yml
|
54
|
-
- lib/scaffold_generator/scaffold_generator.rb
|
55
|
-
- lib/scaffold_generator/templates/app/controllers/controller.rb.template
|
56
|
-
- lib/scaffold_generator/templates/app/helpers/controllers/helper.rb.template
|
57
|
-
- lib/scaffold_generator/templates/app/views/edit.html.erb.template
|
58
|
-
- lib/scaffold_generator/templates/app/views/index.html.erb.template
|
59
|
-
- lib/scaffold_generator/templates/app/views/new.html.erb.template
|
60
|
-
- lib/scaffold_generator/templates/app/views/show.html.erb.template
|
61
|
-
- lib/scaffold_generator/templates/test/functional/rspec.rb.template
|
62
|
-
- lib/scaffold_generator/templates/test/functional/test_case.rb.template
|
63
|
-
- lib/tasks/db_create_drop_tasks.rake
|
64
|
-
- lib/tasks/db_migration_tasks.rake
|
65
|
-
- lib/tasks/test_tasks.rake
|
66
|
-
- lib/test_extensions.rb
|
67
135
|
- README
|
68
|
-
- doc/classes/DataMapper/Resource.html
|
69
|
-
- doc/classes/Mack/Database.html
|
70
|
-
- doc/classes/Mack/Genosaurus/DataMapper/Helpers.html
|
71
|
-
- doc/classes/Mack/Genosaurus/DataMapper/ModelColumn.html
|
72
|
-
- doc/classes/Mack/Testing/DataMapperHelpers.html
|
73
|
-
- doc/classes/Mack/Testing/Helpers.html
|
74
|
-
- doc/classes/Mack/ViewHelpers/DataMapperHelpers.html
|
75
|
-
- doc/classes/Mack.html
|
76
|
-
- doc/classes/MigrationGenerator.html
|
77
|
-
- doc/classes/ModelGenerator.html
|
78
|
-
- doc/classes/ScaffoldGenerator.html
|
79
|
-
- doc/created.rid
|
80
|
-
- doc/files/lib/database_rb.html
|
81
|
-
- doc/files/lib/dm_patches/confirmation_validation_rb.html
|
82
|
-
- doc/files/lib/dm_patches/dm-cli_rb.html
|
83
|
-
- doc/files/lib/dm_patches/migrations_rb.html
|
84
|
-
- doc/files/lib/dm_patches/pooling_rb.html
|
85
|
-
- doc/files/lib/genosaurus_helpers_rb.html
|
86
|
-
- doc/files/lib/helpers/orm_helpers_rb.html
|
87
|
-
- doc/files/lib/mack-data_mapper_rb.html
|
88
|
-
- doc/files/lib/mack-data_mapper_tasks_rb.html
|
89
|
-
- doc/files/lib/migration_generator/migration_generator_rb.html
|
90
|
-
- doc/files/lib/model_column_rb.html
|
91
|
-
- doc/files/lib/model_generator/model_generator_rb.html
|
92
|
-
- doc/files/lib/resource_rb.html
|
93
|
-
- doc/files/lib/runner_rb.html
|
94
|
-
- doc/files/lib/scaffold_generator/scaffold_generator_rb.html
|
95
|
-
- doc/files/lib/test_extensions_rb.html
|
96
|
-
- doc/files/README.html
|
97
|
-
- doc/fr_class_index.html
|
98
|
-
- doc/fr_file_index.html
|
99
|
-
- doc/fr_method_index.html
|
100
|
-
- doc/index.html
|
101
|
-
- doc/rdoc-style.css
|
102
136
|
has_rdoc: true
|
103
137
|
homepage: http://www.mackframework.com
|
104
138
|
post_install_message:
|