docker-sync 0.7.0 → 0.7.1

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
  SHA256:
3
- metadata.gz: c16e4b3329738820f64c10c631ff0d5ad87c3d3e24af3c7c2e55267b2c84f260
4
- data.tar.gz: 5997aa17faededdd6074b9399fcad5c3a5c3dbec8bd2d6971b8e3b5b0c353da8
3
+ metadata.gz: d08392b2115f84c6dd7d37cb28232b4193523d4bb8e45860a9be061cefd88fb5
4
+ data.tar.gz: 18626e0ea9919d701dee2787d32457314bbe4abee642ce26ce23c3a02b5e5145
5
5
  SHA512:
6
- metadata.gz: b4d9f320c005ca2dad6e8a6beff59c4502b6b65d11558d8b428c924511a6c8d60c14c57e3277cadaeddc8d7dcdb68f1cae0e1fc6c71935555992f99877119af5
7
- data.tar.gz: '09684e8c94b1afa1702032568d6de9179199d026806481f0966ae521405cd5499a2f25443b13107547413a278c9cba9f24668ab20b3617c89a9b3b3d4050f528'
6
+ metadata.gz: bf0b3f26f0eb4f2d99b95336e13669e4abef9db285b240011660d5d19bd89485b4940f523adbd1d8bbb6b412af3e251a8e21c4e4d9cd40b43676a897452bcdc5
7
+ data.tar.gz: dbc9ec63c1b187f181e9bf180507cb724a7e54010dc145e80a882f020eab19051400496f72e0b8c5cd078fa8130bd29fce74ab6a188d6162d012dfb70a6e3823
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -14,7 +14,7 @@ module DockerSync
14
14
 
15
15
  def self.available?
16
16
  # should never have been called anyway - fix the call that it should check for the OS
17
- raise 'Unox cannot be available for other platforms then MacOS' unless Environment.mac?
17
+ raise 'Unox cannot be available for platforms other than MacOS' unless Environment.mac?
18
18
 
19
19
  return true if brew_package_installed?('unox')
20
20
  return false unless brew_package_installed?('unison-fsmonitor')
@@ -26,7 +26,7 @@ module DockerSync
26
26
 
27
27
  def self.ensure!
28
28
  return if available?
29
- raise 'Unox cannot be installed on other platforms then MacOS' unless Environment.mac?
29
+ raise 'Unox cannot be installed on platforms other than MacOS' unless Environment.mac?
30
30
 
31
31
  cleanup_non_brew_version!
32
32
  PackageManager.install_package('eugenmayer/dockersync/unox')
@@ -42,12 +42,16 @@ module DockerSync
42
42
 
43
43
  out = `#{cmd}`
44
44
  if $?.exitstatus > 0
45
- say_status 'error', "Error starting sync, exit code #{$?.exitstatus}", :red
45
+ error_msg = "Error starting sync, exit code #{$?.exitstatus}"
46
+ say_status 'error', error_msg, :red
46
47
  say_status 'message', out
47
- else
48
48
  TerminalNotifier.notify(
49
- "Synced #{@options['src']}", :title => @sync_name
49
+ "#{error_msg}", :title => @sync_name, :subtitle => @options['src'], group: 'docker-sync'
50
50
  ) if @options['notify_terminal']
51
+ else
52
+ TerminalNotifier.notify(
53
+ "Synced #{@options['src']}", :title => @sync_name, group: 'docker-sync'
54
+ ) if @options['notify_terminal'] && @options['notify_terminal'] != 'errors_only'
51
55
  say_status 'ok', "Synced #{@options['src']}", :white
52
56
  if @options['verbose']
53
57
  say_status 'output', out
@@ -78,13 +78,20 @@ module DockerSync
78
78
 
79
79
  stdout, stderr, exit_status = Open3.capture3(cmd)
80
80
  if !exit_status.success?
81
- say_status 'error', "Error starting sync, exit code #{$?.exitstatus}", :red
81
+ error_msg = "Error starting sync, exit code #{$?.exitstatus}"
82
+ say_status 'error', error_msg, :red
82
83
  say_status 'message', stdout
83
84
  say_status 'message', stderr
84
- else
85
+
85
86
  if @options['notify_terminal']
86
87
  TerminalNotifier.notify(
87
- "Synced #{@options['src']}", title: @sync_name
88
+ "#{error_msg}", :title => @sync_name, :subtitle => @options['src'], group: 'docker-sync'
89
+ )
90
+ end
91
+ else
92
+ if @options['notify_terminal'] && @options['notify_terminal'] != 'errors_only'
93
+ TerminalNotifier.notify(
94
+ "Synced #{@options['src']}", title: @sync_name, group: 'docker-sync'
88
95
  )
89
96
  end
90
97
  say_status 'ok', "Synced #{@options['src']}", :white
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Mayer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-22 00:00:00.000000000 Z
11
+ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor