fulmar 2.2.0 → 2.2.1

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: 6a8c600aba68edc3253bda3a138e56d76b38a283
4
- data.tar.gz: 82c43b52167c6b2b478bf75b25a28697d72316d5
3
+ metadata.gz: '084a0cb7a3184a653aecace439af926839f44c27'
4
+ data.tar.gz: 67ec129220e5b9232d42cf6eec32f913e80e46b3
5
5
  SHA512:
6
- metadata.gz: 2738a4ead46f2ea844230efb8466d78c97150396eac1f1f7d74f7064c60f2e2532b69cf724b6212e247094fc839652397cf5575605af24acb893dc1ca387b1ef
7
- data.tar.gz: 8295d787803f53c9e6d470ae1d4259f576f5bd20abdefc2e327cd3ca76c7faa4813d531301ef1f34e11b3b6151b2254d1d92cadffb2c697b5805252a3a313e84
6
+ metadata.gz: 01556aaea93f3c584aafc1400f07550fe78be6352f3a056dcad534ec2a02a6321874dee366a4b4d68ebf9f9d36fde12be3148addb8c84d35933ca0cd7de883b3
7
+ data.tar.gz: 0f74442951e8667134c390d1cee4a569d20802e0421e0bfd08663b21f8f1a4dac8bda6bd58e6c87e785f589a3905b276eb329a50bcc559cbefa1b3be2cda5d50
@@ -1,4 +1,5 @@
1
1
  require 'yaml'
2
+ require 'pathname'
2
3
  require 'fulmar/domain/model/project'
3
4
  require 'active_support/core_ext/object/blank'
4
5
  require 'active_support/core_ext/hash/deep_merge'
@@ -146,7 +147,7 @@ module Fulmar
146
147
  # Prepends the base to the path if it is not already absolute
147
148
  def absolutize(path, base = @base_path)
148
149
  return base if path == '.'
149
- path[0, 1] == '/' ? path : base + '/' + path
150
+ (Pathname.new path).absolute? ? path : base + '/' + path
150
151
  end
151
152
 
152
153
  # Checks if a key is a local path
@@ -158,7 +159,7 @@ module Fulmar
158
159
  # @base_path or the local_path from the environment
159
160
  def absolutize_paths
160
161
  each do |_env, _target, data|
161
- data.keys.each do |key|
162
+ data.each_key do |key|
162
163
  data[:local_path] = absolutize(data[:local_path]) if data[:local_path]
163
164
  if local_path?(key) && data[key].class == String
164
165
  data[key] = absolutize(data[key], data[:local_path] || @base_path)
@@ -176,7 +176,10 @@ module Fulmar
176
176
  # Copies the data from the sync temp to the actual release directory
177
177
  # @return [true, false] success
178
178
  def copy_temp_to_release
179
- @remote_shell.run "cp -pR #{@config[:temp_dir]} #{release_dir}"
179
+ @remote_shell.run [
180
+ "cp -pR #{@config[:temp_dir]} #{release_dir}",
181
+ "touch #{release_dir}"
182
+ ]
180
183
  end
181
184
 
182
185
  # Set the symlink to the given release or the return value of release_dir() otherwise
@@ -30,7 +30,7 @@ module Fulmar
30
30
 
31
31
  parent_dir_path = File.expand_path('..', path)
32
32
 
33
- parent_dir_path == '/' ? paths : get_parent_directory_paths(parent_dir_path, paths)
33
+ parent_dir_path == '/' || parent_dir_path.include?(':/') ? paths : get_parent_directory_paths(parent_dir_path, paths)
34
34
  end
35
35
  end
36
36
  end
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '2.2.0'.freeze
3
+ VERSION = '2.2.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulmar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Siegl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-07 00:00:00.000000000 Z
12
+ date: 2017-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler