mack-orm 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gems.rb +13 -0
- data/lib/mack-orm.rb +1 -3
- data/lib/mack-orm/test_extensions.rb +2 -2
- data/lib/mack-orm_tasks.rb +2 -0
- metadata +18 -3
data/lib/gems.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
path = File.expand_path(File.join(File.dirname(__FILE__), 'gems'))
|
2
|
+
Gem.set_paths(path)
|
3
|
+
|
4
|
+
Dir.glob(File.join(path, '*')).each do |p|
|
5
|
+
full_gem_name = File.basename(p)
|
6
|
+
version = full_gem_name.match(/([\d\.?]+)/).to_s
|
7
|
+
gem_name = full_gem_name.gsub("-#{version}", '')
|
8
|
+
$:.unshift(File.join(p, 'lib'))
|
9
|
+
begin
|
10
|
+
gem gem_name, "~> #{version}"
|
11
|
+
rescue Gem::LoadError
|
12
|
+
end
|
13
|
+
end
|
data/lib/mack-orm.rb
CHANGED
@@ -8,9 +8,9 @@ if Mack.env == "test"
|
|
8
8
|
end
|
9
9
|
|
10
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?("
|
11
|
+
unless Mack::Testing.const_defined?("ORM_LOADED")
|
12
12
|
|
13
|
-
|
13
|
+
ORM_LOADED = true
|
14
14
|
module Mack
|
15
15
|
module Testing
|
16
16
|
|
data/lib/mack-orm_tasks.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-orm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
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-
|
12
|
+
date: 2008-11-30 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -22,21 +22,36 @@ extensions: []
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- README
|
24
24
|
files:
|
25
|
+
- lib/gems
|
26
|
+
- lib/gems/cache
|
27
|
+
- lib/gems/doc
|
28
|
+
- lib/gems/gems
|
29
|
+
- lib/gems/specifications
|
30
|
+
- lib/gems.rb
|
31
|
+
- lib/mack-orm
|
25
32
|
- lib/mack-orm/database.rb
|
26
33
|
- lib/mack-orm/database_migrations.rb
|
27
34
|
- lib/mack-orm/generators.rb
|
28
35
|
- lib/mack-orm/genosaurus_helpers.rb
|
29
36
|
- lib/mack-orm/model_column.rb
|
30
37
|
- lib/mack-orm/paginator.rb
|
38
|
+
- lib/mack-orm/scaffold_generator
|
31
39
|
- lib/mack-orm/scaffold_generator/manifest.yml
|
32
40
|
- lib/mack-orm/scaffold_generator/scaffold_generator.rb
|
41
|
+
- lib/mack-orm/scaffold_generator/templates
|
42
|
+
- lib/mack-orm/scaffold_generator/templates/app
|
43
|
+
- lib/mack-orm/scaffold_generator/templates/app/controllers
|
33
44
|
- lib/mack-orm/scaffold_generator/templates/app/controllers/controller.rb.template
|
45
|
+
- lib/mack-orm/scaffold_generator/templates/app/views
|
34
46
|
- lib/mack-orm/scaffold_generator/templates/app/views/edit.html.erb.template
|
35
47
|
- lib/mack-orm/scaffold_generator/templates/app/views/index.html.erb.template
|
36
48
|
- lib/mack-orm/scaffold_generator/templates/app/views/new.html.erb.template
|
37
49
|
- lib/mack-orm/scaffold_generator/templates/app/views/show.html.erb.template
|
50
|
+
- lib/mack-orm/scaffold_generator/templates/test
|
51
|
+
- lib/mack-orm/scaffold_generator/templates/test/controllers
|
38
52
|
- lib/mack-orm/scaffold_generator/templates/test/controllers/rspec.rb.template
|
39
53
|
- lib/mack-orm/scaffold_generator/templates/test/controllers/test_case.rb.template
|
54
|
+
- lib/mack-orm/tasks
|
40
55
|
- lib/mack-orm/tasks/db_create_drop_tasks.rake
|
41
56
|
- lib/mack-orm/tasks/db_migration_tasks.rake
|
42
57
|
- lib/mack-orm/tasks/test_tasks.rake
|
@@ -67,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
82
|
requirements: []
|
68
83
|
|
69
84
|
rubyforge_project: magrathea
|
70
|
-
rubygems_version: 1.
|
85
|
+
rubygems_version: 1.3.1
|
71
86
|
signing_key:
|
72
87
|
specification_version: 2
|
73
88
|
summary: Common ORM support for Mack
|