active_wrapper 0.3.2 → 0.3.3
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/lib/active_wrapper/gems.rb +18 -5
- data/lib/active_wrapper/version.rb +1 -1
- data/lib/active_wrapper.rb +3 -1
- data/resources/migration.template +11 -0
- metadata +5 -4
data/lib/active_wrapper/gems.rb
CHANGED
@@ -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
|
-
|
25
|
-
|
26
|
-
|
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
|
data/lib/active_wrapper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/active_wrapper/gems'
|
2
2
|
|
3
|
-
ActiveWrapper::Gems.
|
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
|
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
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-
|
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
|