entangler 1.2.2 → 1.2.3

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
  SHA256:
3
- metadata.gz: a4f98e12ff87f2be01e5370bc2142b4bed7154535481d33a95c6f43591e47de4
4
- data.tar.gz: 27868bae2c5fd085b4f28466e26934d57c84d37ed1f70aeb44899636fd39e14c
3
+ metadata.gz: 783a5b3ef9783c555695f78996ccd7708b336a7f6a96f3fed514d64b60c040aa
4
+ data.tar.gz: d91234cd85293e33d26551f78da5057ca7ee9c4f8c8a4279371d7291dc9c5168
5
5
  SHA512:
6
- metadata.gz: 8d02e37d871284a999f90a0f93e94a4235317c4adb5d3a222e6c53187d8c2503e32af6aabc3118e95700df768c745e6924ee53672c47f956698b80a52513e6b1
7
- data.tar.gz: ebeccb202a07a95e63160aca13d08e3533a5e92470b7d3b1c14ead7acd405f6a4a6d82b4ee3f7c8d1a7fc60b46bbc8ff5b099f8eabbeca80aaa531e1ce4a9f4d
6
+ metadata.gz: 2765a50d87ff234c7b4311c80fbe9b58f20de55e46a60df8214145e43911948971e7b16bf9b25dc0bfadb5c24a2c909efc9b1b19e755d49b3a2488be72638994
7
+ data.tar.gz: 6ab807597be96dfea700b7bc517318003b035b3d64782ea2b6c6dd122dda44e5bc42e82f9df7a3798b7a5c795d326ab374d5568f4ecfef213a26fe1256e5e733
data/README.md CHANGED
@@ -19,7 +19,7 @@ $ entangler master /some/base/path user@remote:/some/remote/path
19
19
 
20
20
  ```
21
21
  $ entangler -h
22
- Entangler v1.2.2
22
+ Entangler v1.2.3
23
23
 
24
24
  Usage:
25
25
  entangler master <base_dir> <remote_user>@<remote_host>:<remote_base_dir> [options]
@@ -4,4 +4,5 @@ module Entangler
4
4
  class EntanglerError < StandardError; end
5
5
  class ValidationError < EntanglerError; end
6
6
  class VersionMismatchError < EntanglerError; end
7
+ class NotInstalledOnRemoteError < EntanglerError; end
7
8
  end
@@ -50,12 +50,18 @@ module Entangler
50
50
  return unless @opts[:remote_mode]
51
51
 
52
52
  res = `#{generate_ssh_command('source ~/.rvm/environments/default && entangler --version')}`
53
+ if res.empty?
54
+ msg = 'Entangler is not installed on the remote server.' \
55
+ ' Install Entangler on the remote server (SSH in, then `gem install entangler`), then try again.'
56
+ raise Entangler::NotInstalledOnRemoteError, msg
57
+ end
58
+
53
59
  remote_version = Gem::Version.new(res.strip)
54
60
  local_version = Gem::Version.new(Entangler::VERSION)
55
61
  return unless major_version_mismatch?(local_version, remote_version)
56
62
 
57
63
  msg = 'Entangler version too far apart, please update either local or remote Entangler.' \
58
- " Local version is #{local_version} and remote version is #{remote_version}."
64
+ " Local version is #{local_version} and remote version is #{remote_version}."
59
65
  raise Entangler::VersionMismatchError, msg
60
66
  end
61
67
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Entangler
4
- VERSION = '1.2.2'
4
+ VERSION = '1.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Allie
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -153,7 +153,7 @@ homepage: https://github.com/daveallie/entangler
153
153
  licenses:
154
154
  - MIT
155
155
  metadata: {}
156
- post_install_message:
156
+ post_install_message:
157
157
  rdoc_options: []
158
158
  require_paths:
159
159
  - lib
@@ -168,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
- rubygems_version: 3.0.3.1
172
- signing_key:
171
+ rubygems_version: 3.3.7
172
+ signing_key:
173
173
  specification_version: 4
174
174
  summary: Two way file syncer using platform native notify.
175
175
  test_files: []