jank 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/executor.rb +5 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37759091c326beb11e7deaa86dfa71e40f579e01
4
- data.tar.gz: bd84b8681b031c2eb3f4a828c811dd0acd16159b
3
+ metadata.gz: cb75459339e5efd7a91c949cbda32cda0381e998
4
+ data.tar.gz: a10725b0f11c4d8e722c0030532b54243d134ca1
5
5
  SHA512:
6
- metadata.gz: eb5a6145b23e9f61b50d603df813f0e56f31d6c65ee410be7ed5d3c009fb301ac776b9891487b73f13da287d326be1215e1247a5dee90efb9fb8bad7049fccab
7
- data.tar.gz: 62fedca00dd8892439d5fd672b1ee37cc5472703f82f204b200d1ec189df9f78a6dc26787d4b80bfd7c6a213925ce0d43de198d9710a17a8342eefaeb3278986
6
+ metadata.gz: de30db31c57a3315241d21ad901d407db5e971f38a2f2f8c213aefd604e541637147080a1d826e3e399589bfeda7856e732dc75605d8680c5cf1db285f4e6096
7
+ data.tar.gz: efa3f4ea7e501aaaf366b7c267b4b2c4cccce4de9a617beb0541bed423a46fe8d25c94c2dc916f6083b94f738e8f5c19c9681dce4774f2293186756d7e9ab195
@@ -8,7 +8,10 @@ module Jank
8
8
 
9
9
  def execute(cmd, args)
10
10
  if @config.janked
11
- Dir.chdir(@config.janked_gopath) do
11
+ subdir = @config.pwd.sub(@config.janked_local_path, '')
12
+ gp_workind_dir = "#{@config.janked_gopath}#{subdir}"
13
+
14
+ Dir.chdir(gp_workind_dir) do
12
15
  janked_args = Array.new
13
16
  args.each do |a|
14
17
  if a.start_with? @config.janked_local_path
@@ -18,7 +21,7 @@ module Jank
18
21
  end
19
22
  end
20
23
 
21
- Jank.debug_log("🚀 #{@config.janked_gopath}> #{cmd} #{janked_args.inspect}")
24
+ Jank.debug_log("🚀 #{gp_workind_dir}> #{cmd} #{janked_args.inspect}")
22
25
  run(cmd, janked_args)
23
26
  end
24
27
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred McCann