gemy 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/bin/gemy +7 -5
- metadata +2 -2
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Simple CLI tool useful for gem authors: it eases installing your gem locally, an
|
|
4
4
|
|
5
5
|
## Requirements
|
6
6
|
|
7
|
-
`gemy` requires a `VERSION` file in the gem project root, and
|
7
|
+
`gemy` requires a `VERSION` file in the gem project root, and the project must be a `git` repository.
|
8
8
|
|
9
9
|
## Description
|
10
10
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/bin/gemy
CHANGED
@@ -5,19 +5,19 @@ require 'optparse'
|
|
5
5
|
|
6
6
|
options = {}
|
7
7
|
|
8
|
-
file_version = File.read('VERSION').strip
|
8
|
+
file_version = File.read(File.expand_path('../../VERSION', __FILE__)).strip
|
9
9
|
copy = "gemy #{file_version} (c) 2012 Domizio Demichelis"
|
10
10
|
|
11
11
|
optparse = OptionParser.new do |opts|
|
12
12
|
|
13
13
|
opts.banner = <<-banner
|
14
14
|
Gem CLI utils:
|
15
|
-
Simple Tool for managing gem local installation and push.
|
15
|
+
Simple Tool for managing gem local installation and rmote push.
|
16
16
|
Usage:
|
17
17
|
gemy <command> [options]
|
18
18
|
<command>:
|
19
19
|
install locally installs a version bumped with the commit SHA
|
20
|
-
push
|
20
|
+
push builds the gem, pushes to RubyGems, tags the commit and cleanups
|
21
21
|
Options:
|
22
22
|
banner
|
23
23
|
|
@@ -52,8 +52,6 @@ end
|
|
52
52
|
|
53
53
|
optparse.parse!
|
54
54
|
|
55
|
-
puts copy
|
56
|
-
|
57
55
|
def ensure_clean(command, force)
|
58
56
|
if !force && ! `git status -s`.empty?
|
59
57
|
puts <<-message.gsub(/^ {6}/, '')
|
@@ -66,6 +64,10 @@ end
|
|
66
64
|
|
67
65
|
command = ARGV.first
|
68
66
|
|
67
|
+
exec 'gemy -h' if command.nil?
|
68
|
+
|
69
|
+
puts copy
|
70
|
+
|
69
71
|
case command
|
70
72
|
|
71
73
|
when 'install'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'Useful if you are a gem author: it eases testing your gem locally,
|
15
15
|
and pushing it to RubyGems'
|