gemesis 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -2
- data/lib/gemesis/rake.rb +2 -2
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= gemesis
|
2
2
|
|
3
|
-
This is a gem that provides some
|
3
|
+
This is a gem that provides some simple rake tasks for managing a rubygem.
|
4
4
|
|
5
5
|
== usage
|
6
6
|
|
@@ -12,4 +12,6 @@ require 'gemesis/rake'
|
|
12
12
|
|
13
13
|
This will add five rake tasks in a gem namespace: push, build, install, uninstall and reinstall
|
14
14
|
|
15
|
-
|
15
|
+
To run gem installation or uninstallation with sudo - set an environment variable SUDO to sudo
|
16
|
+
|
17
|
+
Note that push will create a repository tag so it is recommended you increment the gem version and commit all changes prior to executing a push.
|
data/lib/gemesis/rake.rb
CHANGED
@@ -18,12 +18,12 @@ namespace :gem do
|
|
18
18
|
|
19
19
|
desc "install #{spec.name} locally"
|
20
20
|
task :install => :build do
|
21
|
-
sh "gem install #{spec.name}-#{spec.version}.gem --no-ri --no-rdoc"
|
21
|
+
sh "#{ENV['SUDO']} gem install #{spec.name}-#{spec.version}.gem --no-ri --no-rdoc"
|
22
22
|
end
|
23
23
|
|
24
24
|
desc "uninstall #{spec.name} locally"
|
25
25
|
task :uninstall => :build do
|
26
|
-
sh "gem uninstall #{spec.name} -x -a"
|
26
|
+
sh "#{ENV['SUDO']} gem uninstall #{spec.name} -x -a"
|
27
27
|
end
|
28
28
|
|
29
29
|
desc "reinstall #{spec.name} locally"
|