poise-languages 1.3.1 → 1.3.2

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: e3599a7b41239a73501da7d5e961d53876032dce
4
- data.tar.gz: 1000b1eb4e69dca69574acec74883a3e31038b45
3
+ metadata.gz: 63bee0d0b3e18c8912acf8a84ec339b814c78ee5
4
+ data.tar.gz: 84333230057ef2579b4cad754d0a48f77c3930e8
5
5
  SHA512:
6
- metadata.gz: 321bc6ec85758afabcc19914c675e4499b37b328cb844ed7229f3498a563c5b3efd92211a13fda3c585f4e0f2db641219f3f64bcf1d267c7a4bf6be8748091b9
7
- data.tar.gz: 2763bfc8f9233453ba6462017d07b6aa444b61d9b1f4c4157f4d0c79bc177b6c97e53c41fa4718398a40ac004a1d5230ca5d66907c3302e131639772ea1601eb
6
+ metadata.gz: ce416a3f3e78aec7223460c7db8c449468f901631d9623475f8a773b7fd8bb08acafa6c3562424adeac9d9fc7f8acdc4395ea51bbdd3c6a7612fabb7ed8886da
7
+ data.tar.gz: 48286f5cf285600e1e616b9e4f9b1239ce83e4043207e55f231e8b2ec82bacee6509d845d3b4a4ab04020882bb5c688042d4e3a19224d6da2888ebd6dd655b5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.3.2
4
+
5
+ * Handle static archive unpacking correctly when a single download is shared
6
+ between two paths.
7
+
3
8
  ## v1.3.1
4
9
 
5
10
  * Fix system package installs on OS X.
@@ -73,8 +73,8 @@ module PoiseLanguages
73
73
  def action_install
74
74
  notifying_block do
75
75
  install_utils unless node.platform_family?('mac_os_x', 'windows')
76
- create_directory
77
76
  download_archive
77
+ create_directory
78
78
  # Unpack is handled as a notification from download_archive.
79
79
  end
80
80
  end
@@ -101,10 +101,12 @@ module PoiseLanguages
101
101
  end
102
102
 
103
103
  def create_directory
104
+ unpack_resource = unpack_archive
104
105
  directory new_resource.path do
105
106
  user 0
106
107
  group 0
107
108
  mode '755'
109
+ notifies :run, unpack_resource, :immediately
108
110
  end
109
111
  end
110
112
 
@@ -115,7 +117,7 @@ module PoiseLanguages
115
117
  owner 0
116
118
  group 0
117
119
  mode '644'
118
- notifies :run, unpack_resource, :immediately
120
+ notifies :run, unpack_resource, :immediately if ::File.exist?(new_resource.path)
119
121
  retries new_resource.download_retries
120
122
  end
121
123
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseLanguages
19
- VERSION = '1.3.1'
19
+ VERSION = '1.3.2'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-languages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: halite