puppet-forge-server 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -7
- data/lib/puppet_forge_server/app/public/css/puppetlabs.css +6 -1
- data/lib/puppet_forge_server/app/views/modules.haml +5 -1
- data/lib/puppet_forge_server/backends/proxy_v3.rb +2 -2
- data/lib/puppet_forge_server/models/builder.rb +1 -1
- data/lib/puppet_forge_server/utils/buffer.rb +1 -1
- 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: 66499fceb2274a842e4c601f4b3f6423d80f1624
|
4
|
+
data.tar.gz: b9a1793c7af32a076d4ccd500c85433e798f9728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9937a3de2686cc718de8433ed11cec71b78021d636e5d53da31bc2d1fe4402c60f814f8041bd5d12fc81999a86a0412210b167f5f9346ca631542234c626281b
|
7
|
+
data.tar.gz: 983f03cbc02b4de4827b1debadd938af31a2583d41fb39b97eeaeef5e43cad9d7daa53c9a962cb18857c42cec5a9debac4dc3da89dedf2fd5cb6421209dbb4c2
|
data/README.md
CHANGED
@@ -8,6 +8,8 @@ Private Puppet Forge Server supporting local files and both v1 and v3 API proxie
|
|
8
8
|
Puppet Forge Server provides approximated implementation of both [v1](https://projects.puppetlabs.com/projects/module-site/wiki/Server-api)
|
9
9
|
and [v3](https://forgeapi.puppetlabs.com/) APIs, but behavioral deviations from the official implementation might occur.
|
10
10
|
|
11
|
+
Puppet 2, 3 and 4 as well as librarian-puppet are supported.
|
12
|
+
|
11
13
|
## Table of Contents
|
12
14
|
|
13
15
|
* [Installation](#installation)
|
@@ -24,7 +26,6 @@ and [v3](https://forgeapi.puppetlabs.com/) APIs, but behavioral deviations from
|
|
24
26
|
* [App (controller)](#app-controller)
|
25
27
|
* [Models](#models)
|
26
28
|
* [Backends](#backends)
|
27
|
-
* [TODO](#todo)
|
28
29
|
* [Limitations](#limitations)
|
29
30
|
* [Reference](#reference)
|
30
31
|
|
@@ -106,7 +107,7 @@ mod 'puppetlabs/apache'
|
|
106
107
|
EOF
|
107
108
|
```
|
108
109
|
|
109
|
-
Run librarian-puppet with *--no-use-v1-api* option to instruct it to use v3 API
|
110
|
+
Run librarian-puppet with *--no-use-v1-api* option to instruct it to use v3 API for better performance
|
110
111
|
```
|
111
112
|
librarian-puppet install --no-use-v1-api
|
112
113
|
```
|
@@ -155,11 +156,6 @@ Puppet module *metadata* json representation is used as a main business *model*.
|
|
155
156
|
*Backend* classes are providing the means of fetching required data and creating model instances.
|
156
157
|
|
157
158
|
|
158
|
-
## TODO
|
159
|
-
|
160
|
-
1. Create UTs for core logic
|
161
|
-
2. Implement *source* and *git* backends to match [puppet library](https://github.com/drrb/puppet-library) feature set
|
162
|
-
|
163
159
|
## Limitations
|
164
160
|
|
165
161
|
1. Modulefile is not supported with the *directory* backend
|
@@ -240,7 +240,7 @@ li {
|
|
240
240
|
.list.modules .summary {
|
241
241
|
padding-right: 40px;
|
242
242
|
}
|
243
|
-
|
243
|
+
span.release-info {
|
244
244
|
font-size: 0.9em;
|
245
245
|
color: #6c6d6d;
|
246
246
|
}
|
@@ -267,3 +267,8 @@ span.forge {
|
|
267
267
|
color: #6B529A;
|
268
268
|
float: right;
|
269
269
|
}
|
270
|
+
a.module-link {
|
271
|
+
margin-left: 10px;
|
272
|
+
color: #0095dd;
|
273
|
+
font-size: 0.9em;
|
274
|
+
}
|
@@ -22,4 +22,8 @@
|
|
22
22
|
.col
|
23
23
|
%h3= "#{element['owner']['username']}/#{element['name']}"
|
24
24
|
%p= element['current_release']['metadata']['summary']
|
25
|
-
%
|
25
|
+
%span.release-info= "Version #{element['current_release']['metadata']['version']}"
|
26
|
+
- if element['current_release']['metadata']['issues_url']
|
27
|
+
%a{:class => "module-link", :href => element['current_release']['metadata']['issues_url']}= "Report issues"
|
28
|
+
- if element['current_release']['metadata']['project_page']
|
29
|
+
%a{:class => "module-link", :href => element['current_release']['metadata']['project_page']}= "Project URL"
|
@@ -34,7 +34,7 @@ module PuppetForgeServer::Backends
|
|
34
34
|
rescue => e
|
35
35
|
@log.debug("#{self.class.name} failed querying metadata for '#{query}' with options #{options}")
|
36
36
|
@log.debug("Error: #{e}")
|
37
|
-
nil
|
37
|
+
return nil
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -45,7 +45,7 @@ module PuppetForgeServer::Backends
|
|
45
45
|
rescue => e
|
46
46
|
@log.debug("#{self.class.name} failed querying metadata for '#{query}' with options #{options}")
|
47
47
|
@log.debug("Error: #{e}")
|
48
|
-
nil
|
48
|
+
return nil
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -23,7 +23,7 @@ module PuppetForgeServer::Models
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def method_missing (method_name, *args, &block)
|
26
|
-
|
26
|
+
PuppetForgeServer::Logger.get.error "Method #{method_name} with args #{args} not found in #{self.class.to_s}" unless method_name == :to_ary
|
27
27
|
end
|
28
28
|
|
29
29
|
def to_hash(obj = self)
|
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.5.
|
4
|
+
version: 1.5.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-04-
|
11
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|