aptly-api 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/aptly/representation.rb +21 -1
- data/lib/aptly/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: 8941198b0d5722ced3cf27e33046bbe0b2850dd3
|
4
|
+
data.tar.gz: a1546e5b01fc5107c9340509169614c57d5a775b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccebc4e963c3e6a596591f4b2c64393a8a6d44567cb20e4212373fb6aaf4d23dae763a4caaad6cfba064d9b93f867cc9072b3c6c65e4b8d9f86558b6a60f57d5
|
7
|
+
data.tar.gz: 37a8a453ba087f8dc3b29cafa927b7cabd8f6e1b16442ecc0f4b76e6548d3be56a0ce902188f08e1f01feac9b84a157cb81bfa6a9b7d240dc9238e686a9e3fe6
|
data/.travis.yml
CHANGED
data/lib/aptly/representation.rb
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# Copyright (C) 2015-2017 Harald Sitter <sitter@kde.org>
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 3 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
15
|
+
|
1
16
|
require 'ostruct'
|
2
17
|
|
3
18
|
module Aptly
|
@@ -11,7 +26,12 @@ module Aptly
|
|
11
26
|
# Initialize a new representation
|
12
27
|
# @param connection [Connection] connection to use for instance operations
|
13
28
|
# @param hash [Hash] native hash to represent
|
14
|
-
def initialize(connection, hash = {})
|
29
|
+
def initialize(connection = nil, hash = {})
|
30
|
+
# TODO: https://bugs.ruby-lang.org/issues/13358 prevents us from requiring
|
31
|
+
# a connection.
|
32
|
+
# Mocha test mocking uses .allocate to mock quackability
|
33
|
+
# e.g. mock.responds_like_instance_of(Aptly::Repository)
|
34
|
+
# So we need allocate to work, which it doesn't because of OpenStruct!
|
15
35
|
@connection = connection
|
16
36
|
super(hash)
|
17
37
|
end
|
data/lib/aptly/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptly-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harald Sitter
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|