targit 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dfdc9dd069070fd0d5ba245cab5298440d18d7c
4
- data.tar.gz: 3684d1247d3234cfc4e700c39b7c73f58b69dacf
3
+ metadata.gz: 11aecc501b0e71aab6aed9f9d77e279437456064
4
+ data.tar.gz: 89027dede0bc479980d679275e46a77295a98ff9
5
5
  SHA512:
6
- metadata.gz: 3c972f8ff6b8d029e09c7bc760024675b64dfbf4e01c119e0b068a24d2ee1e4e5897aa7359d02a0caaade7a279b3ffc48d31d92105614a86dea24933b34dd52d
7
- data.tar.gz: 1372e67260df36acd57b7f36e55b86044d180e51504cc09aac5a3875a3ac007aa9f2ecd463a80b816743db7e0af1daaa835741e4f42f4291f7d64ce9ff25ba9f
6
+ metadata.gz: 6d9cdec4c1c0f2db2bf5509f22b15d1a2b7f77086c5708c9211901b401cc78a5c4f1903325607b919d6a4ed3f28fd383863570001358a06a466283b65b0f2caa
7
+ data.tar.gz: cccba8d4580940d346f471a4a48baf7f155e8b5624de28cb5da1d5e1049dc297c18816c4632bd17656ade2feacfb7a360cc20efe7387fd05bc7bf1f55cc2ed25
@@ -12,7 +12,7 @@ module Targit
12
12
  @client = @options[:client]
13
13
  @create_options = _create_options
14
14
  @data = find
15
- create if @data.nil? && @options[:create]
15
+ create if @data.nil? && @options.include?(:create)
16
16
  fail('No release found') if @data.nil?
17
17
  end
18
18
 
@@ -31,7 +31,7 @@ module Targit
31
31
 
32
32
  def _create_options
33
33
  opts = {}
34
- opts[:name] = @options[:create] if @options[:create].to_s.size
34
+ opts[:name] = @options[:create] if @options[:create].is_a? String
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.4'
4
+ VERSION = '0.1.5'
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.4
4
+ version: 0.1.5
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-08 00:00:00.000000000 Z
11
+ date: 2014-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit