puppet-forge-server 1.10.0 → 1.10.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/app/version3.rb +4 -4
- 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: 632ca8bb48f75463cf4cfcb6a2cc74f3732b48c6
|
4
|
+
data.tar.gz: f8c01749f8193e8c4d8c616924193c1f77536031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 467bd9aeb0bc6b55779b5a4759580847bbeac880a12d0aa2217eaf60e4ae69ef4860ee02e210a72696e2d5f2dc810b25d9a2021b547fa5d0db56a88eee2669b6
|
7
|
+
data.tar.gz: 4402a208b0a709f10f52059694054ebd99699962f8dc139f6a30bf766788e0be79ffd67687d4891ffc8e5c0836ad249f054234cf22950345c2cb46d957c9fe41
|
@@ -51,8 +51,8 @@ module PuppetForgeServer::App
|
|
51
51
|
halt 400, json({:error => 'The number of version constraints in the query does not match the number of module names'}) unless params[:module]
|
52
52
|
author, name = params[:module].split '-'
|
53
53
|
releases = releases(author, name)
|
54
|
-
halt 200, json({:pagination => {:next =>
|
55
|
-
json :pagination => {:next =>
|
54
|
+
halt 200, json({:pagination => {:next => nil}, :results => []}) unless releases
|
55
|
+
json :pagination => {:next => nil, :total => releases.count}, :results => releases
|
56
56
|
end
|
57
57
|
|
58
58
|
get '/v3/files/*' do
|
@@ -86,8 +86,8 @@ module PuppetForgeServer::App
|
|
86
86
|
backend.query_metadata(query)
|
87
87
|
end.flatten.compact.uniq
|
88
88
|
modules = metadata.empty? ? nil : get_modules(metadata)
|
89
|
-
halt 200, json({:pagination => {:next =>
|
90
|
-
json :pagination => {:next =>
|
89
|
+
halt 200, json({:pagination => {:next => nil}, :results => []}) unless modules
|
90
|
+
json :pagination => {:next => nil, :total => modules.count}, :results => modules
|
91
91
|
end
|
92
92
|
|
93
93
|
get '/v3/users/:author' do
|
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.10.
|
4
|
+
version: 1.10.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: 2017-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|