targit 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/targit +2 -1
- data/lib/targit/release.rb +1 -1
- data/lib/targit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebb039cbaa5d34c06d90e2840457a5b711382cab
|
4
|
+
data.tar.gz: 738ba0e2f3cda0505806ac1f961a48c75a12f5f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1884d768d19544e05bb4bea42886525de7fb5d0bbb032165187b3e20fb0f385a3ea367a34fe818d8aa74c5c0aa9f0473d29a52341534429f539b487361e60a4
|
7
|
+
data.tar.gz: 027458aa2e546be333a931e7ea19d0db412b056e10cb30b9120c9a992c0c0a49608de4579ad4bc472e790b21de5ce93c3cf72d57bfe007d12f0997a5047f325c
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ targit -c dock0/arch v0.1.75 ./new_tarball.tar.gz
|
|
29
29
|
Specify a name for the release, if desired:
|
30
30
|
|
31
31
|
```
|
32
|
-
targit
|
32
|
+
targit -c -r "cool release" dock0/arch v0.1.75 ./new_tarball.tar.gz
|
33
33
|
```
|
34
34
|
|
35
35
|
Adding `-f` will replace an existing release/asset, if they exist:
|
data/bin/targit
CHANGED
@@ -16,7 +16,8 @@ Mercenary.program(:targit) do |p|
|
|
16
16
|
|
17
17
|
# rubocop:disable Style/LineLength
|
18
18
|
p.option :force, '-f', '--force', 'Replace the asset if it already exists'
|
19
|
-
p.option :create, '-c', '--create
|
19
|
+
p.option :create, '-c', '--create', 'Create release if it does not exist'
|
20
|
+
p.option :release_name, '-r NAME', '--release NAME', 'Set the release name'
|
20
21
|
p.option :prerelease, '-p', '--prerelease', 'With -c, create as a dev release'
|
21
22
|
p.option :authfile, '-a FILE', '--authfile FILE', 'Set the auth file for GitHub credentials'
|
22
23
|
p.option :name, '-n NAME', '--name NAME', 'Set the name for the release asset'
|
data/lib/targit/release.rb
CHANGED
@@ -31,7 +31,7 @@ module Targit
|
|
31
31
|
|
32
32
|
def _create_options
|
33
33
|
opts = {}
|
34
|
-
opts[:name] = @options[:
|
34
|
+
opts[:name] = @options[:release_name] if @options[:release_name]
|
35
35
|
[:prerelease, :target_commitish].each_with_object(opts) do |option, hash|
|
36
36
|
hash[option] = @options[option] if @options[option]
|
37
37
|
end
|
data/lib/targit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: targit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|