docker-sync 0.5.10 → 0.5.11.pre.beta1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2501ae9905e17c2a687358bb4a5d7f8b2eb10bfb
|
4
|
+
data.tar.gz: 458f430966f1e477bacc032ee6ccecad0e6bf194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06185a80616f8fcfa1344e61c05636d07944af8618a03aac4f5fbfcad6ce9480aaff10d9420148b76e42d8b542b00e4d8bf8a5fbfe9692af029fcf6c0454909
|
7
|
+
data.tar.gz: 4b1cecb9ce0f4c9efa71f12268c331631f9bee7bd919115903ca44f4c2ca82bc5684c422ec05bca63b730efc5ff50612a438a0643bd07909ddadc87d8a1d940f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.11-beta1
|
@@ -2,11 +2,13 @@ module DockerSync
|
|
2
2
|
module Dependencies
|
3
3
|
module Fswatch
|
4
4
|
def self.available?
|
5
|
+
raise 'Fswatch cannot be available for other platforms then MacOS' unless Environment.mac?
|
5
6
|
return @available if defined? @available
|
6
7
|
@available = find_executable0('fswatch')
|
7
8
|
end
|
8
9
|
|
9
10
|
def self.ensure!
|
11
|
+
raise 'Fswatch cannot be installed on other platforms then MacOS' unless Environment.mac?
|
10
12
|
PackageManager.install_package('fswatch') unless available?
|
11
13
|
end
|
12
14
|
end
|
@@ -12,15 +12,19 @@ module DockerSync
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.available?
|
15
|
+
# should never have been called anyway - fix the call that it should check for the OS
|
16
|
+
raise 'Unox cannot be available for other platforms then MacOS' unless Environment.mac?
|
17
|
+
|
15
18
|
return @available if defined? @available
|
16
19
|
cmd = 'brew list unox 2>&1 > /dev/null'
|
17
|
-
|
18
|
-
|
19
|
-
@available = Environment.linux? or defined?(Bundler) ? Bundler.clean_system(cmd) : system(cmd)
|
20
|
+
@available = defined?(Bundler) ? Bundler.clean_system(cmd) : system(cmd)
|
21
|
+
@available
|
20
22
|
end
|
21
23
|
|
22
24
|
def self.ensure!
|
23
25
|
return if available?
|
26
|
+
raise 'Unox cannot be installed on other platforms then MacOS' unless Environment.mac?
|
27
|
+
|
24
28
|
cleanup_non_brew_version!
|
25
29
|
PackageManager.install_package('eugenmayer/dockersync/unox')
|
26
30
|
end
|
@@ -26,6 +26,7 @@ module DockerSync
|
|
26
26
|
end
|
27
27
|
begin
|
28
28
|
Dependencies::Unison.ensure!
|
29
|
+
Dependencies::Unox.ensure! if Environment.mac?
|
29
30
|
rescue StandardError => e
|
30
31
|
say_status 'error', "#{@sync_name} has been configured to sync with unison, but no unison available", :red
|
31
32
|
say_status 'error', e.message, :red
|
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.5.
|
4
|
+
version: 0.5.11.pre.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -220,9 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '2.0'
|
221
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
222
|
requirements:
|
223
|
-
- - "
|
223
|
+
- - ">"
|
224
224
|
- !ruby/object:Gem::Version
|
225
|
-
version:
|
225
|
+
version: 1.3.1
|
226
226
|
requirements: []
|
227
227
|
rubyforge_project:
|
228
228
|
rubygems_version: 2.6.14.3
|