active_wrapper 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,6 @@ unless defined?(ActiveWrapper::Gems)
8
8
  VERSIONS = {
9
9
  :actionmailer => '=2.3.5',
10
10
  :activerecord => '=2.3.5',
11
- :bundler => '=1.0.0.beta.5',
12
11
  :rake => '=0.8.7',
13
12
  :rspec => '=1.3.0'
14
13
  }
@@ -20,10 +19,24 @@ unless defined?(ActiveWrapper::Gems)
20
19
  :rake => [ :rake, :rspec ],
21
20
  :spec => [ :rspec ]
22
21
  }
23
-
24
- def initialize(type=nil)
25
- (TYPES[type] || TYPES.values.flatten.compact).each do |name|
26
- gem name.to_s, VERSIONS[name]
22
+
23
+ class <<self
24
+
25
+ def lockfile
26
+ file = File.expand_path('../../../gems', __FILE__)
27
+ unless File.exists?(file)
28
+ File.open(file, 'w') do |f|
29
+ Gem.loaded_specs.each do |key, value|
30
+ f.puts "#{key} #{value.version.version}"
31
+ end
32
+ end
33
+ end
34
+ end
35
+
36
+ def require(type=nil)
37
+ (TYPES[type] || TYPES.values.flatten.compact).each do |name|
38
+ gem name.to_s, VERSIONS[name]
39
+ end
27
40
  end
28
41
  end
29
42
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveWrapper
2
- VERSION = "0.3.2" unless defined?(::ActiveWrapper::VERSION)
2
+ VERSION = "0.3.3" unless defined?(::ActiveWrapper::VERSION)
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/active_wrapper/gems'
2
2
 
3
- ActiveWrapper::Gems.new(:lib)
3
+ ActiveWrapper::Gems.require(:lib)
4
4
 
5
5
  require 'action_mailer'
6
6
  require 'active_record'
@@ -32,6 +32,8 @@ module ActiveWrapper
32
32
  mail = Mail.new(options)
33
33
 
34
34
  ActionMailer::Base.logger = log
35
+
36
+ ActiveWrapper::Gems.lockfile
35
37
 
36
38
  [ db, log, mail ]
37
39
  end
@@ -0,0 +1,11 @@
1
+ class __migration_name__ < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :__migration_table__ do |t|
4
+
5
+ end
6
+ end
7
+
8
+ def self.down
9
+ drop_table :__migration_table__
10
+ end
11
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-20 00:00:00 -07:00
18
+ date: 2010-10-27 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -97,6 +97,7 @@ files:
97
97
  - lib/active_wrapper/tasks.rb
98
98
  - lib/active_wrapper/version.rb
99
99
  - lib/active_wrapper.rb
100
+ - resources/migration.template
100
101
  - LICENSE
101
102
  - README.md
102
103
  has_rdoc: true