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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c3d50334ff0e755f7f6116cf0c3218d73332d5f
4
- data.tar.gz: 2b129603dea71b8b0352cd2275a448c60b08da76
3
+ metadata.gz: 8d8f1385a686e55a079e071f26d9d2b9a195da97
4
+ data.tar.gz: 5f721ac02520bb4438c917dcb4208850df15019f
5
5
  SHA512:
6
- metadata.gz: 068ad1e8002fe6685e84d370f174b6df09490895cc6c0a494ee47566eaea3270459366d69747c76d3611e5fbaaa7971931a4df54422b16756ca697ac5aad7188
7
- data.tar.gz: da03df792f862595497c2f8afb8e6b5e98bf29b69dbaeeb7abd0ee057c5fc4452a1cf21cef0c47089af0574fba918e506344fed42743d77c819c9b86a1bc159d
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.5
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