jarbs 0.6.2 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18eb97244bb4b3efb2b4bf81ef4e0ed9c2f2b392
4
- data.tar.gz: f43b32d060b0902ce00cf4d235588fbea94ed256
3
+ metadata.gz: d0a744cf8de6178336c52434aece80984b0e34cc
4
+ data.tar.gz: 753329c17b36647609e6045926cb70b54357543b
5
5
  SHA512:
6
- metadata.gz: 48118ee2eddf0d56d9f8653d47efbca8eed2f0c74ece59c978cd33c1b0ddf7cc1ca3aea34dc69a4f396827d813ba8d9a3e85acd63bca446e33a60550734b9b65
7
- data.tar.gz: 3707f4b8b79138e7219eb406dabdddc8a97c1f3305122c4ccad9d47570c46f6a83c516f2d4039a17e64721f140d2c43b38d592777bf81253fbc19a296db75cd3
6
+ metadata.gz: 8f2783770532eea872842633786d9759848fc13e8a9636dff7eef8011ad458b3b3ae3f2d09747815068f9b763f8a0a22a1146a3777113c4a4c82d11c9b2fd5ee
7
+ data.tar.gz: 30cfe97c41132b937a281bac16c28472b52bdbb9bddffd577b7e6743fe614536165dc37ccb8b9389ae8824eb7f15e7c975dc7bb28bba2ab4fffd31761bc36780
@@ -38,6 +38,7 @@ module Jarbs
38
38
  end
39
39
 
40
40
  command :config do |c|
41
+ c.summary = 'Manage jarbs configuration'
41
42
  c.syntax = 'jarbs config [options]'
42
43
  c.option '-g', '--global', String, "Use global config"
43
44
  c.action do |args, options|
@@ -43,6 +43,12 @@ module Jarbs
43
43
  val
44
44
  end
45
45
 
46
+ def exists?(key, in_global: false)
47
+ return global.exists?(key) if in_global
48
+
49
+ !get(key).nil?
50
+ end
51
+
46
52
  def print(for_global: false)
47
53
  return global.print if for_global
48
54
 
@@ -21,7 +21,7 @@ module Jarbs
21
21
  FileUtils.cp_r @function.source_path, @function.build_path
22
22
 
23
23
  capture_errors do
24
- abortable_run "npm run build:function -- --out-dir #{@function.build_path} #{@function.source_path}"
24
+ abortable_run "npm run build:function -- --out-dir #{@function.build_path} #{@function.build_path}"
25
25
 
26
26
  npm_install @function.build_path, '--production'
27
27
  end
@@ -52,7 +52,9 @@ module Jarbs
52
52
  agree("Would you like to log jarbs crashes to GitHub automatically (y/n)? ")
53
53
  end
54
54
 
55
- GithubAuth.new(config).generate_token(@name) if autolog
55
+ if autolog and !config.exists?('github.token')
56
+ GithubAuth.new(config).generate_token(@name)
57
+ end
56
58
  end
57
59
  end
58
60
  end
@@ -1,3 +1,3 @@
1
1
  module Jarbs
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jarbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke van der Hoeven
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-07 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander