gemesis 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/MIT-LICENSE +20 -20
  2. data/README.rdoc +15 -15
  3. data/lib/gemesis/rake.rb +31 -30
  4. metadata +12 -5
@@ -1,20 +1,20 @@
1
- Copyright (c) 2009 Mark Ryall
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2009 Mark Ryall
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,15 +1,15 @@
1
- = gemesis
2
-
3
- This is a gem that provides some lightweight simple utilities for managing a rubygem.
4
-
5
- == usage
6
-
7
- Create a gem specification file called gemspec, initialise a git or mercurial repository and create Rakefile containing:
8
-
9
- <tt>
10
- require 'gemesis/rake'
11
- </tt>
12
-
13
- This will add five rake tasks in a gem namespace: push, build, install, uninstall and reinstall
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.
1
+ = gemesis
2
+
3
+ This is a gem that provides some lightweight simple utilities for managing a rubygem.
4
+
5
+ == usage
6
+
7
+ Create a gem specification file called gemspec, initialise a git or mercurial repository and create Rakefile containing:
8
+
9
+ <tt>
10
+ require 'gemesis/rake'
11
+ </tt>
12
+
13
+ This will add five rake tasks in a gem namespace: push, build, install, uninstall and reinstall
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.
@@ -1,30 +1,31 @@
1
- namespace :gem do
2
- spec = Gem::Specification.load('gemspec')
3
- vcs = 'git' if File.exist?('.git')
4
- vcs = 'hg' if File.exist?('.hg')
5
-
6
- raise 'gemesis requires a git or mercurial repository' unless vcs
7
-
8
- desc "push new #{spec.name} release and #{vcs} tag"
9
- task :push => :build_gem do
10
- sh "#{vcs} tag #{spec.version}" if vcs
11
- sh "gem push #{spec.name}-#{spec.version}.gem"
12
- end
13
-
14
- task :build_gem do
15
- sh "gem build gemspec"
16
- end
17
-
18
- desc "install #{spec.name} locally"
19
- task :install => :build_gem do
20
- sh "gem install #{spec.name}-#{spec.version}.gem --no-ri --no-rdoc"
21
- end
22
-
23
- desc "uninstall #{spec.name} locally"
24
- task :uninstall => :build_gem do
25
- sh "gem uninstall #{spec.name} -x -a"
26
- end
27
-
28
- desc "reinstall #{spec.name} locally"
29
- task :reinstall => [:uninstall, :install]
30
- end
1
+ namespace :gem do
2
+ spec = Gem::Specification.load('gemspec')
3
+ vcs = 'git' if File.exist?('.git')
4
+ vcs = 'hg' if File.exist?('.hg')
5
+
6
+ raise 'gemesis requires a git or mercurial repository' unless vcs
7
+
8
+ desc "push new #{spec.name} release and #{vcs} tag"
9
+ task :push => :build do
10
+ sh "#{vcs} tag #{spec.version}" if vcs
11
+ sh "gem push #{spec.name}-#{spec.version}.gem"
12
+ end
13
+
14
+ desc "build #{spec.name} gem file"
15
+ task :build do
16
+ sh "gem build gemspec"
17
+ end
18
+
19
+ desc "install #{spec.name} locally"
20
+ task :install => :build do
21
+ sh "gem install #{spec.name}-#{spec.version}.gem --no-ri --no-rdoc"
22
+ end
23
+
24
+ desc "uninstall #{spec.name} locally"
25
+ task :uninstall => :build do
26
+ sh "gem uninstall #{spec.name} -x -a"
27
+ end
28
+
29
+ desc "reinstall #{spec.name} locally"
30
+ task :reinstall => [:uninstall, :install]
31
+ end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
5
10
  platform: ruby
6
11
  authors:
7
12
  - Mark Ryall
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-28 00:00:00 +11:00
17
+ date: 2010-04-11 00:00:00 +10:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -38,18 +43,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
43
  requirements:
39
44
  - - ">="
40
45
  - !ruby/object:Gem::Version
46
+ segments:
47
+ - 0
41
48
  version: "0"
42
- version:
43
49
  required_rubygems_version: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - ">="
46
52
  - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
47
55
  version: "0"
48
- version:
49
56
  requirements: []
50
57
 
51
58
  rubyforge_project:
52
- rubygems_version: 1.3.5
59
+ rubygems_version: 1.3.6
53
60
  signing_key:
54
61
  specification_version: 3
55
62
  summary: some lightweight utilities to assist in managing a rubygem