gemesis 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +15 -0
- data/lib/gemesis/rake.rb +30 -0
- metadata +57 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +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.
|
data/README.rdoc
ADDED
@@ -0,0 +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.
|
data/lib/gemesis/rake.rb
ADDED
@@ -0,0 +1,30 @@
|
|
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
|
metadata
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gemesis
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mark Ryall
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-02-28 00:00:00 +11:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: mark@ryall.name
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
24
|
+
files:
|
25
|
+
- lib/gemesis/rake.rb
|
26
|
+
- README.rdoc
|
27
|
+
- MIT-LICENSE
|
28
|
+
has_rdoc: true
|
29
|
+
homepage: http://github.com/markryall/gemesis
|
30
|
+
licenses: []
|
31
|
+
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: "0"
|
42
|
+
version:
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0"
|
48
|
+
version:
|
49
|
+
requirements: []
|
50
|
+
|
51
|
+
rubyforge_project:
|
52
|
+
rubygems_version: 1.3.5
|
53
|
+
signing_key:
|
54
|
+
specification_version: 3
|
55
|
+
summary: some lightweight utilities to assist in managing a rubygem
|
56
|
+
test_files: []
|
57
|
+
|