File tree 4 files changed +20
-13
lines changed
4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change
1
+ pkg /*
Original file line number Diff line number Diff line change 18
18
* Updated tests to include new table to support union test
19
19
20
20
0.7.0
21
- * Updated dependency versions to get on ActiveRecord 2.x
21
+ * Updated dependency versions to get on ActiveRecord 2.x. May not be compatible with Rails versions less than 2.x.
Original file line number Diff line number Diff line change 124
124
desc "Publish the API documentation"
125
125
task :pdoc => [ :rdoc ] do
126
126
Rake ::
SshDirPublisher . new ( "[email protected] " , "/var/www/gforge-projects/activewarehouse/rails_sql_views/rdoc" , "rdoc" ) . upload
127
+ end
128
+
129
+ desc "Install the gem from a local generated package"
130
+ task :install => [ :package ] do
131
+ windows = RUBY_PLATFORM =~ /mswin/
132
+ sudo = windows ? '' : 'sudo'
133
+ gem = windows ? 'gem.bat' : 'gem'
134
+ `#{ sudo } #{ gem } install pkg/#{ PKG_NAME } -#{ PKG_VERSION } `
135
+ end
136
+
137
+ desc "Reinstall the gem from a local package copy"
138
+ task :reinstall => [ :package ] do
139
+ windows = RUBY_PLATFORM =~ /mswin/
140
+ sudo = windows ? '' : 'sudo'
141
+ gem = windows ? 'gem.bat' : 'gem'
142
+ `#{ sudo } #{ gem } uninstall #{ PKG_NAME } -x`
143
+ `#{ sudo } #{ gem } install pkg/#{ PKG_NAME } -#{ PKG_VERSION } `
127
144
end
Original file line number Diff line number Diff line change 24
24
$:. unshift ( File . dirname ( __FILE__ ) )
25
25
26
26
require 'rubygems'
27
- unless Kernel . respond_to? ( :gem )
28
- Kernel . send :alias_method , :gem , :require_gem
29
- end
30
-
31
- unless defined? ( ActiveRecord )
32
- begin
33
- $:. unshift ( File . dirname ( __FILE__ ) + "/../../activerecord/lib" )
34
- require 'active_record'
35
- rescue LoadError
36
- gem 'activerecord'
37
- end
38
- end
27
+ require 'active_record'
39
28
40
29
require 'core_ext/module'
41
30
You can’t perform that action at this time.
0 commit comments