targit 0.1.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11aecc501b0e71aab6aed9f9d77e279437456064
4
- data.tar.gz: 89027dede0bc479980d679275e46a77295a98ff9
3
+ metadata.gz: ebb039cbaa5d34c06d90e2840457a5b711382cab
4
+ data.tar.gz: 738ba0e2f3cda0505806ac1f961a48c75a12f5f6
5
5
  SHA512:
6
- metadata.gz: 6d9cdec4c1c0f2db2bf5509f22b15d1a2b7f77086c5708c9211901b401cc78a5c4f1903325607b919d6a4ed3f28fd383863570001358a06a466283b65b0f2caa
7
- data.tar.gz: cccba8d4580940d346f471a4a48baf7f155e8b5624de28cb5da1d5e1049dc297c18816c4632bd17656ade2feacfb7a360cc20efe7387fd05bc7bf1f55cc2ed25
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 --create="cool release" dock0/arch v0.1.75 ./new_tarball.tar.gz
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 [NAME]', 'Create release if it does not exist'
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'
@@ -31,7 +31,7 @@ module Targit
31
31
 
32
32
  def _create_options
33
33
  opts = {}
34
- opts[:name] = @options[:create] if @options[:create].is_a? String
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
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Set the version (needed for Mercenary -v)
3
3
  module Targit
4
- VERSION = '0.1.5'
4
+ VERSION = '0.2.0'
5
5
  end
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.1.5
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-09 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit