soar-dependency_container 0.1.0 → 0.2.0

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: ddd4ab593f8cf8ff50a0294a636b10ab02a8827b
4
- data.tar.gz: 042ead91daba16add897f82b198c62e42c15c50c
3
+ metadata.gz: 6da67df056f7160d5cbb8913c92b27c9b7535d03
4
+ data.tar.gz: 48ea2ae5a032efac4c57915a0947cd6ab7962553
5
5
  SHA512:
6
- metadata.gz: f27caecf840cfe12484c6985e393b6bf7276a3c726f91b706538c0cae5d075882d874309b9fc5b9276c2c29fa01b26c92b134f8ff8b04fc1e4978c08a30eb79e
7
- data.tar.gz: 6d67d2e349812239bc20c166fc879153d2eb8177a33a117957ca785dd37014b5ee952fdd2b646aaaf67cab8cbbb6279b330353fdaa8852c09bcffdbabe6adb9b
6
+ metadata.gz: 97dcdd73e2d6843e5ba954add59be4f4e735a4aa5d0628fca79fe4b56153b56ee2317130a8d2734bcaab999611c3705157a584bd40b927ed9df601efc88796c5
7
+ data.tar.gz: '09a527951b885852b2dde25f0c731ef47442a74a70ca795e35485c2473cb7c0698679a1e7be4c0fcd4310ecae11bb246fbe19d10d8a8c37aae58293845d4719b'
@@ -16,6 +16,14 @@ module Soar
16
16
  @dependency_container.list_dependencies
17
17
  end
18
18
 
19
+ def include?(name)
20
+ @dependency_container.list_dependencies.include?(name)
21
+ end
22
+
23
+ alias_method :has_key?, :include?
24
+ alias_method :key?, :include?
25
+ alias_method :member?, :include?
26
+
19
27
  end
20
28
 
21
29
  end
@@ -1,5 +1,5 @@
1
1
  module Soar
2
2
  module DependencyContainer
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar-dependency_container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Hearn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-24 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fabrique