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: 59a84a84e73b7d46d2cfeaab3397a69ea189e532
4
- data.tar.gz: 29380bc22cb27bcf6b2350702c56ef8516121429
3
+ metadata.gz: 2501ae9905e17c2a687358bb4a5d7f8b2eb10bfb
4
+ data.tar.gz: 458f430966f1e477bacc032ee6ccecad0e6bf194
5
5
  SHA512:
6
- metadata.gz: cfa21b549e74fbe1ee7a09a08eb33b3d88d792fa2ad269850770b4f91fc827b0fc3cac85adaf14d68780ce14c355f1f77b1b64cb66ef5c8ddcbf4137d34a8779
7
- data.tar.gz: 9d406286fa7195fee76224cccfacfd5483aaf5d8bf597098bc01f7a182ddc2e0fa539d97d40ee0fd626239debaaed34d83fcc24d8e8c7887b89963a7b88cc00a
6
+ metadata.gz: a06185a80616f8fcfa1344e61c05636d07944af8618a03aac4f5fbfcad6ce9480aaff10d9420148b76e42d8b542b00e4d8bf8a5fbfe9692af029fcf6c0454909
7
+ data.tar.gz: 4b1cecb9ce0f4c9efa71f12268c331631f9bee7bd919115903ca44f4c2ca82bc5684c422ec05bca63b730efc5ff50612a438a0643bd07909ddadc87d8a1d940f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.10
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
@@ -8,7 +8,6 @@ module DockerSync
8
8
 
9
9
  def self.ensure!
10
10
  PackageManager.install_package('unison') unless available?
11
- Unox.ensure!
12
11
  end
13
12
  end
14
13
  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
- # TODO: Environment.linux? was just a hotfix for something we did not dig deeper into, as we have should
18
- # see https://github.com/EugenMayer/docker-sync/pull/630
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.10
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-01-30 00:00:00.000000000 Z
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: '0'
225
+ version: 1.3.1
226
226
  requirements: []
227
227
  rubyforge_project:
228
228
  rubygems_version: 2.6.14.3