aubergine 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aubergine.rb +1 -0
- data/lib/aubergine/merge_satellite_provider.rb +15 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d8f1385a686e55a079e071f26d9d2b9a195da97
|
4
|
+
data.tar.gz: 5f721ac02520bb4438c917dcb4208850df15019f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700498141ba8f4e2ebff3cb565b5d7d20c3c8ceb2d99b1c9ccdc0e788abc2a036a65dd008b9e13a79f490146a5a1a17e965e1705165e0a75c8deade7e6ecaef1
|
7
|
+
data.tar.gz: 6078de377ff8ece22146a8d09d08fd0723a8b4ca9eb097b2f5e090daaab5505cf69b8576362375aa99d5ae6c5853792a44d8cdd62b251b00c58016e9af1d4970
|
data/lib/aubergine.rb
CHANGED
@@ -7,6 +7,7 @@ require_relative './aubergine/device.rb'
|
|
7
7
|
require_relative './aubergine/satellite.rb'
|
8
8
|
require_relative './aubergine/satellite_provider.rb'
|
9
9
|
require_relative './aubergine/file_satellite_provider.rb'
|
10
|
+
require_relative './aubergine/merge_satellite_provider.rb'
|
10
11
|
require_relative './aubergine/path.rb'
|
11
12
|
require_relative './aubergine/server.rb'
|
12
13
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Aubergine
|
2
|
+
class MergeSatelliteProvider < SatelliteProvider
|
3
|
+
def initialize(*providers)
|
4
|
+
@providers = providers
|
5
|
+
end
|
6
|
+
|
7
|
+
def find(key)
|
8
|
+
@providers.each do |provider|
|
9
|
+
satellite = provider.find(key)
|
10
|
+
return satellite if satellite
|
11
|
+
end
|
12
|
+
nil
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aubergine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Rose
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/aubergine/satellite.rb
|
105
105
|
- lib/aubergine/satellite_provider.rb
|
106
106
|
- lib/aubergine/file_satellite_provider.rb
|
107
|
+
- lib/aubergine/merge_satellite_provider.rb
|
107
108
|
- lib/aubergine/server.rb
|
108
109
|
- lib/aubergine/device.rb
|
109
110
|
- lib/courgette/hp.rb
|