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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3870aafea88cba83edd67d8157b2ad16bd4a3cd
4
- data.tar.gz: 056eb4dc7da48eea7291c28a97599ad6b03c7094
3
+ metadata.gz: 8941198b0d5722ced3cf27e33046bbe0b2850dd3
4
+ data.tar.gz: a1546e5b01fc5107c9340509169614c57d5a775b
5
5
  SHA512:
6
- metadata.gz: 59c37196c8fab2ed18055eba1243a90caca9e3daa46c87ebcae99c5c2876a1e3d532761fe85b31ff71d07fcb4e32244216526da2200fd989828b826df30f9d38
7
- data.tar.gz: 6723cb060bfb7483de86c39a2c8222281a88c4162516b6ccabaa3cf4962b04f6092294816d6c8213c30dd1d1b42bf6ccb1964be35f0a6b05d186049b6b463ae9
6
+ metadata.gz: ccebc4e963c3e6a596591f4b2c64393a8a6d44567cb20e4212373fb6aaf4d23dae763a4caaad6cfba064d9b93f867cc9072b3c6c65e4b8d9f86558b6a60f57d5
7
+ data.tar.gz: 37a8a453ba087f8dc3b29cafa927b7cabd8f6e1b16442ecc0f4b76e6548d3be56a0ce902188f08e1f01feac9b84a157cb81bfa6a9b7d240dc9238e686a9e3fe6
data/.travis.yml CHANGED
@@ -2,4 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 2.2.1
4
4
  - 2.3.0
5
+ - 2.4.0
5
6
  before_install: gem install bundler -v 1.10.6
@@ -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
@@ -1,4 +1,4 @@
1
1
  # Aptly API
2
2
  module Aptly
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.6.1'.freeze
4
4
  end
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.0
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-13 00:00:00.000000000 Z
12
+ date: 2017-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler