aptly-api 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/aptly-api.gemspec +1 -1
- data/lib/aptly/publish.rb +2 -2
- data/lib/aptly/repository.rb +5 -1
- data/lib/aptly/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ad1e37dd7595391142d77328208cd96f2b57aa1
|
4
|
+
data.tar.gz: 6d7901b8f560056366b7cdf8c6a58d054ced4345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c4943d6505487279027b4fa866018bba678f4768f456d20877a9fa5ed767fddc3bf8c52e1d0c5f456bb5674ed9bb7ef32e78f8857686f9afafbe2391c0106b3
|
7
|
+
data.tar.gz: a510b670bf6afde990e3373bc98b2375f93414ae2ea6b074181724f01cbecad364236a84a904cb33d4a9e0d5af4174a4ecdfa85c203d98b1ce0643dc31bdef41
|
data/aptly-api.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'aptly/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'aptly-api'
|
8
8
|
spec.version = Aptly::VERSION
|
9
|
-
spec.authors = ['Harald Sitter']
|
9
|
+
spec.authors = ['Harald Sitter', 'Rohan Garg']
|
10
10
|
spec.email = ['sitter@kde.org']
|
11
11
|
|
12
12
|
spec.summary = 'REST client for the Aptly API'
|
data/lib/aptly/publish.rb
CHANGED
@@ -14,7 +14,7 @@ module Aptly
|
|
14
14
|
# Drops a published repository. This removes the published repository
|
15
15
|
# but leaves its soures intact.
|
16
16
|
def drop(**kwords)
|
17
|
-
connection.send(:delete, "/publish/#{api_prefix}/#{self.Distribution}",
|
17
|
+
connection.send(:delete, "/publish/#{self.Storage}:#{api_prefix}/#{self.Distribution}",
|
18
18
|
query: kwords)
|
19
19
|
end
|
20
20
|
|
@@ -24,7 +24,7 @@ module Aptly
|
|
24
24
|
# @return [nil] if the instance data was not mutated
|
25
25
|
def update!(**kwords)
|
26
26
|
response = connection.send(:put,
|
27
|
-
"/publish/#{api_prefix}/#{self.Distribution}",
|
27
|
+
"/publish/#{self.Storage}:#{api_prefix}/#{self.Distribution}",
|
28
28
|
body: JSON.generate(kwords))
|
29
29
|
hash = JSON.parse(response.body, symbolize_names: true)
|
30
30
|
return nil if hash == marshal_dump
|
data/lib/aptly/repository.rb
CHANGED
@@ -13,9 +13,13 @@ module Aptly
|
|
13
13
|
include Publishable
|
14
14
|
|
15
15
|
# Delete this repository.
|
16
|
-
|
16
|
+
# @return [nil] always returns nil
|
17
|
+
def delete!(**kwords)
|
17
18
|
connection.send(:delete, "/repos/#{self.Name}", query: kwords)
|
19
|
+
nil
|
18
20
|
end
|
21
|
+
# TODO: 1.0 drop delete, it's dangerous as it might as well delete packages
|
22
|
+
alias delete delete!
|
19
23
|
|
20
24
|
# Add a previously uploaded file to the Repository.
|
21
25
|
# @return [Hash] report data as specified in the API.
|
data/lib/aptly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptly-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harald Sitter
|
8
|
+
- Rohan Garg
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-
|
12
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|