theme-juice 0.28.5 → 0.28.6

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: ffb2f852dd44668770a9b083299ac7e85d7d4159
4
- data.tar.gz: 65395230aea89aedc72c9740844d024ccb7d5777
3
+ metadata.gz: 04e334373be73040dcd133bbeaf4bb69871ac92b
4
+ data.tar.gz: e2dc0e590b06c3c3033e3ceee027584d7aca4b0c
5
5
  SHA512:
6
- metadata.gz: eb90530ebcc4fbdf8b587f55f574534ae92fe7bf6e05f50ee8e1fb93aed365c395df543c66b4f0a15a4d3f4d0e4850a30c7286e33564c13a35125d2d1737cead
7
- data.tar.gz: 0d69255b540065bb419c117ff4da6b590435921590da3b157472f36d1dfd25be7991d9cf39fa411acc45fac4d40fbcab735ea8d9051c6718177b35010d2b5723
6
+ metadata.gz: 743c47d3fa8f65282122791619f8ddea6431ea056ef05463fceb1a4d00169e683b7893a812ef47c65fbfabc65908e67db164b9f4170d2343b721a51ad9873521
7
+ data.tar.gz: 3bc2451d456d708a899e454c6f326ea4f939235a860565cfd9c7d7d1f8e6d1bdbb6b36efa65179566375a5b3634dedd6cea706627340a6e1421867af8897e8fb
@@ -25,7 +25,7 @@ module ThemeJuice
25
25
  name = File.basename f
26
26
 
27
27
  if File.directory?(f) && name.include?(@env.vm_prefix)
28
- res << name.gsub(/(#{@env.vm_prefix})/, "")
28
+ res << name.gsub(/^(#{@env.vm_prefix})/, "")
29
29
  end
30
30
  end
31
31
 
@@ -8,7 +8,7 @@ module ThemeJuice
8
8
  def initialize
9
9
  super
10
10
 
11
- @stage = @config.deployment.stages.send(@env.stage)
11
+ @stage = @config.deployment.stages.send(@env.stage).symbolize_keys
12
12
  end
13
13
 
14
14
  def execute
@@ -28,11 +28,11 @@ module ThemeJuice
28
28
  set :deploy_to, -> { @stage.path }
29
29
  set :stage_url, -> { @stage.url }
30
30
  set :uploads_dir, -> { @stage.uploads }
31
- set :shared_files, -> { @stage.shared.select { |f| !f.end_with? "/" } }
32
- set :shared_dirs, -> { @stage.shared.select { |f| f.end_with? "/" }.map { |f| f.chomp "/" } }
33
- set :tmp_dir, -> { @stage.tmp }
31
+ set :shared_files, -> { @stage.fetch(:shared, []).select { |f| !f.end_with? "/" } }
32
+ set :shared_dirs, -> { @stage.fetch(:shared, []).select { |f| f.end_with? "/" }.map { |f| f.chomp "/" } }
33
+ set :tmp_dir, -> { @stage.fetch(:tmp, "/tmp") }
34
34
  set :stage, -> { @env.stage }
35
- set :rsync_ignore, -> { @stage.symbolize_keys.fetch(:ignore, []) }
35
+ set :rsync_ignore, -> { @stage.fetch(:ignore, []) }
36
36
  end
37
37
  end
38
38
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.28.5"
4
+ VERSION = "0.28.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.5
4
+ version: 0.28.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor