puppet-forge-server 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet_forge_server/backends/proxy.rb +3 -3
- data/lib/puppet_forge_server/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c02d81c3a75aec7225f4d2055b0103ba1bce3b08
|
4
|
+
data.tar.gz: c6e88d67050e2521ba3122a5dd42e86fcc075a55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d9068b15c85b51e9b7fae6bacf08c410d7faed77879b6179935489cf00e4b6d59ae0bd0afef2fcc01b89660a14b7e7331a00569c2bdf8275e1b64729666df13
|
7
|
+
data.tar.gz: 45c71d0b4f4501698e640fff45a8c9b8586c13c737005fd86d5ad6bc45c4beee728b090e6a7b7b8fa2da85999bd0f8284e4e2536e11455cb48256d7a076b24b1
|
@@ -34,14 +34,14 @@ module PuppetForgeServer::Backends
|
|
34
34
|
|
35
35
|
def get_file_buffer(relative_path)
|
36
36
|
file_name = relative_path.split('/').last
|
37
|
-
File.join(@cache_dir, file_name[0], file_name)
|
37
|
+
File.join(@cache_dir, file_name[0].downcase, file_name)
|
38
38
|
path = Dir["#{@cache_dir}/**/#{file_name}"].first
|
39
39
|
unless File.exist?("#{path}")
|
40
40
|
buffer = download("/#{relative_path}")
|
41
|
-
File.open(File.join(@cache_dir, file_name[0], file_name), 'wb') do |file|
|
41
|
+
File.open(File.join(@cache_dir, file_name[0].downcase, file_name), 'wb') do |file|
|
42
42
|
file.write(buffer.read)
|
43
43
|
end
|
44
|
-
path = File.join(@cache_dir, file_name[0], file_name)
|
44
|
+
path = File.join(@cache_dir, file_name[0].downcase, file_name)
|
45
45
|
end
|
46
46
|
File.open(path, 'rb')
|
47
47
|
rescue => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-forge-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilja Bobkevic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|