docker-registry-sync 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjY2MmVkODljYzQzMWNmZDRjNmM3MWY5MTVkN2M1YjE4YjU5MDVlMw==
4
+ ZWZmODVjYTA2ZmRkZmE3ZjIxMDVkY2IzMGExNDgxOGE2OWMwMzg5ZA==
5
5
  data.tar.gz: !binary |-
6
- YmU4NjBiMDUwZDc4NWZhMDc1NTc2ZjgzODMzYzExMTM5MmIzZDhlYQ==
6
+ ZjdlMTUwN2Q1YTkxNDEyNDg2NWVkYTY1NTAyMmQyMjhjYTk5NmMyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTk1NmVkYzUwY2YxZDJlZDUzMjIyMWExMDcyM2I0MjhiYzJkYzM2YjhkM2U4
10
- YWM3NGViZDk5MWNlOWYxZmRjYWVmYjQ4N2RlZjJjY2E5YjU0YWMyYjIzYjkz
11
- YzZjY2MyZjhkODVhNzcwNjcyYWRjOGIwZGNmZmU0NjcyODU1N2E=
9
+ MjUyOGQwMTViZmNmZmY4ZDE2OGM3YjY0YzRlMTVmNDNjMDA5ZGMwOGE2YTg5
10
+ MzUxY2QwNDFiNWM2OGM3NWJkMTExZDg4ZDY3NmFhZGM0ZjdhY2Q0MGNmMTk1
11
+ NWJmNDRlM2VmYWZiYTZkYTRhNDkzMDhlMzFiMjcxZDA0ZDVlZmY=
12
12
  data.tar.gz: !binary |-
13
- ZGMyZDI5YmE4YTZiNTc1NzliYThjOWNjYTYxMDJmMGYyNjA1YWZmYzM0M2Y1
14
- MjdhZDQ3MGI1ODRlODM3OTkwNTdhZjFkMWM3ZmU4NjRjYWZjNWE1MTM0ZGRh
15
- YzA1NTJkN2Y1ZTViZDRlN2MyNzZkMjA5MzNhYjFjZmJkNjdkNzg=
13
+ Mjg5ZDFmNDYwNGVhNWQyYmYwYTBkNGRhMjc5M2FhZmM2ODg1YmVjMWE4NWZk
14
+ MWIxMjAwMTAwYjgyNmFjZjRlNjAwNjQwYjg0ZDhjYTFkNjFhYjAyZGFmNDZl
15
+ OTM1YzQwYzQ3NTRkMDgxMWUyYmNkYWEzOWM4YzIxYWE2ODlmZWE=
@@ -5,32 +5,32 @@ require 'docker/registry/sync/version'
5
5
  module Docker
6
6
  module Registry
7
7
  module Sync
8
- class << self
9
- attr_accessor :config
8
+ class RingBuffer < Array
9
+ attr_reader :max_size
10
10
 
11
- def configure
12
- self.config ||= Docker::Registry::Sync::Configuration.new
13
- yield self.config
11
+ def initialize(max_size, enum = nil)
12
+ @max_size = max_size
13
+ enum.each { |e| self << e } if enum
14
14
  end
15
15
 
16
- class RingBuffer < Array
17
- attr_reader :max_size
18
-
19
- def initialize(max_size, enum = nil)
20
- @max_size = max_size
21
- enum.each { |e| self << e } if enum
16
+ def <<(el)
17
+ if self.size < @max_size || @max_size.nil?
18
+ super
19
+ else
20
+ self.shift
21
+ self.push(el)
22
22
  end
23
+ end
23
24
 
24
- def <<(el)
25
- if self.size < @max_size || @max_size.nil?
26
- super
27
- else
28
- self.shift
29
- self.push(el)
30
- end
31
- end
25
+ alias :push :<<
26
+ end
27
+
28
+ class << self
29
+ attr_accessor :config
32
30
 
33
- alias :push :<<
31
+ def configure
32
+ self.config ||= Docker::Registry::Sync::Configuration.new
33
+ yield self.config
34
34
  end
35
35
  end
36
36
  end
@@ -1,7 +1,7 @@
1
1
  module Docker
2
2
  module Registry
3
3
  module Sync
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.6'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-registry-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Oldfield