jank 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/config.rb +3 -7
  3. data/lib/jank_command.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c7b5f0d00fc555316cdbd2b1b036eb5b2cd56d7
4
- data.tar.gz: 58b6eccf657e1f623a5eb6e7e2d4d4c955d30dca
3
+ metadata.gz: a3e278250ebc32f5c970ec7f2f4ae840d8706237
4
+ data.tar.gz: 7da75b202884aa2ab651ff9a139fd9560ef27862
5
5
  SHA512:
6
- metadata.gz: 95aaed1454cd31109c374c9a758cd0f36c69e632f45208399f341d72741bd652af145b185a365fffc78514176a851bb53a85918027dd5381e8c48ebadfa66f8d
7
- data.tar.gz: 336bfb20761a261a73484d01b0f6fe180ee6d61796cb4c64e0c197b7affe4b91a90ddab7f4fb206d818afe9fa1f80708c867e213bb76ee31b5b88f9e822e4e28
6
+ metadata.gz: 97f5a4017776d8de5677aa2b3ad92daeb165b48f416afdbaf4bd17385508fafb7812ea87480d000b013c5750e2552430e47b973507359c4650a4423e41b668f7
7
+ data.tar.gz: 0d5066f0f73ecc0887ea0b9f4a58a755caa0d89992a687f123de9a2b587a062643cd5828d1312b556f6f4387305a90198e5a1e0dc250d1e6f9719a6b0d7940b4
data/lib/config.rb CHANGED
@@ -68,7 +68,7 @@ module Jank
68
68
  @env = ENV
69
69
 
70
70
  if @include_env_gopath == false
71
- @env['GOPATH'] = @gopaths.uniq.join(':')
71
+ @env['GOPATH'] = @janked_gopaths.uniq.join(':')
72
72
  else
73
73
  @env['GOPATH'] = (@janked_gopaths + @gopaths).uniq.join(':')
74
74
  end
@@ -91,12 +91,8 @@ module Jank
91
91
  return if !File.exist?("#{dir}/.jank")
92
92
  yaml = YAML.load_file("#{dir}/.jank")
93
93
 
94
- if @include_env_gopath == nil && yaml.has_key?('env_gopath') && !yaml['env_gopath'].empty?
95
- if yaml['env_gopath'] == 0 || yaml['env_gopath'] =~/false/i
96
- @include_env_gopath = false
97
- else
98
- @include_env_gopath = true
99
- end
94
+ if @include_env_gopath == nil && yaml.has_key?('env_gopath')
95
+ @include_env_gopath = !!yaml['env_gopath']
100
96
  end
101
97
 
102
98
  if @local_gopath == nil && @janked_package == nil && yaml.has_key?('package') && !yaml['package'].empty?
data/lib/jank_command.rb CHANGED
@@ -69,7 +69,7 @@ module Jank
69
69
 
70
70
  def jank_help_text
71
71
  <<-HELPTEXT
72
- Jank - the janky Go build tool.
72
+ Jank - the janky gopath tool.
73
73
 
74
74
  Usage:
75
75
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred McCann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-17 00:00:00.000000000 Z
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Jank is a suite of scripts that wrap the go command and a collection
14
14
  of utility commands for go programming. Jank will rewrite the gopath dynamically
@@ -72,5 +72,5 @@ rubyforge_project:
72
72
  rubygems_version: 2.4.7
73
73
  signing_key:
74
74
  specification_version: 4
75
- summary: jank - the janky Go build tool
75
+ summary: jank - the janky gopath tool
76
76
  test_files: []