app_up 1.0.0 → 1.0.2

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: f6264df18b90b7334a402f1014f216dff432adcf
4
- data.tar.gz: 8fe5a3b5832b6b28dc25e2e5603da299de8108e1
3
+ metadata.gz: 3879a0f548032f6b137384743cf95242261b9eb1
4
+ data.tar.gz: 890221adbedb6287fad9d85f517c5504db9a1038
5
5
  SHA512:
6
- metadata.gz: 746d761c3b042190eae0047be9d768df94e0347d07e4ac1afc84a4c74b4672ec3cee10bee1f95d7b8d04178b9a90fb13b5b2b9e8e25f91838ef17482ba6592ae
7
- data.tar.gz: 79bef96bf3eb9f891298604e4c5044f68cb1115b3d12cc8dc9a15b38f8320eabb41ac2fca49b52d78e69a958707fd1f2da213f39dc016d817de3be2ac936f1a9
6
+ metadata.gz: d93e2e6c905d5a6305c2845d24bcb9c665409ba6de471e26da64555ad34753762dabd854ab1cc895c31193e7429a19eaf9f6034e099bb5c8949f05186bffb474
7
+ data.tar.gz: 49e42c423504c90e3e533f7000be8ea3849caab440d7d570fe184a024d6a595700eac1bd82ed227c84a553ed319989ab471715be7d4c95c3fd4cd37ee2efbe64
data/bin/app_up CHANGED
@@ -24,14 +24,15 @@ class AppUpCLI < Thor
24
24
  verbose: options[:verbose],
25
25
  )
26
26
 
27
- if !options.has_key?(:diff)
28
- options[:all] = true
29
- elsif options[:diff].size == 1
30
- options[:diff] << "HEAD"
27
+ fixed_options = options.dup
28
+ if !fixed_options[:diff]
29
+ fixed_options[:all] = true
30
+ elsif fixed_options[:diff].size == 1
31
+ fixed_options[:diff] << "HEAD"
31
32
  end
32
33
 
33
- files = AppUp::Repo.new(shell, options).files
34
- AppUp::Hooks::Runner.new(shell, files, options).run
34
+ files = AppUp::Repo.new(shell, fixed_options).files
35
+ AppUp::Hooks::Runner.new(shell, files, fixed_options).run
35
36
  end
36
37
 
37
38
  default_task :run_hooks
data/bin/git_up CHANGED
@@ -27,4 +27,4 @@ puts %x{git #{command}}
27
27
  raise Error unless $?.success?
28
28
  end_sha = get_sha
29
29
 
30
- Kernel.exec "/Users/pete/personal/app_up/bin/app_up --diff #{start_sha} #{end_sha}"
30
+ Kernel.exec "app_up --diff #{start_sha} #{end_sha}"
@@ -43,6 +43,11 @@ module AppUp
43
43
  # So we group the commands by their root folder, and
44
44
  # bundle first.
45
45
  def enqueue_commands
46
+ if @commands.empty?
47
+ shell.notify("Nothing to do")
48
+ return
49
+ end
50
+
46
51
  command_count = @commands.values.flatten.size.to_s
47
52
  i = 1
48
53
  @commands.each do |dir, actions|
@@ -1,3 +1,3 @@
1
1
  module AppUp
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom