gemesis 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +4 -2
  2. data/lib/gemesis/rake.rb +2 -2
  3. metadata +2 -2
@@ -1,6 +1,6 @@
1
1
  = gemesis
2
2
 
3
- This is a gem that provides some lightweight simple utilities for managing a rubygem.
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
- 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.
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.
@@ -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"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mark Ryall