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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f47167acd969b4e7d7725a351d02c9a4d6e5608
4
- data.tar.gz: fe6cb62aec95aa35517235e90f965ac267b72790
3
+ metadata.gz: c02d81c3a75aec7225f4d2055b0103ba1bce3b08
4
+ data.tar.gz: c6e88d67050e2521ba3122a5dd42e86fcc075a55
5
5
  SHA512:
6
- metadata.gz: bb7deb4e4e51e3a1c0942de9e5455740b70587bccee7720d011ad61a75f5d87072357434bcca429a747fbab6f4b243aa9abe74f33b394d3fd38198f3d20ed3e3
7
- data.tar.gz: 2ca911fd043d05967a887815d8121b76c0d2960f82d7922ef562fa3b1c476a94d36bdb8a4cfe3c01946e8888dbefe036ceff2bfa49e3359f125c7128dbd00049
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
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module PuppetForgeServer
18
- VERSION = '1.7.0'
18
+ VERSION = '1.7.1'
19
19
  end
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra