ethos 0.2.0.beta14 → 0.2.0.beta15

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: 298f91290fc2b6b597ba37a8a23ef383ff87692d
4
- data.tar.gz: 7f640c732bc84ecca88640cf5ebb130e1bf0eea4
3
+ metadata.gz: 4004a378fc014fe0520a7aad3c6e1f7a54f6c20d
4
+ data.tar.gz: bc94babcb920eb31b9b0688e67d97070dff813fd
5
5
  SHA512:
6
- metadata.gz: be7471f148647373c2b2a38bbdf8e0f5fffe5b16857da93c0d37354d6fe7fcf7c8827b65a3309137a2c7e6de95ce15a4defb0fdef03e60569a1f21a91218cb39
7
- data.tar.gz: 09285d117e4360fbb2017f5cd07343508a86d8198ff302fc04ecc4bcfd54c425e0227fa40181405d6e7b13ac531c85bd74637783306e363d81249aeb77ac9359
6
+ metadata.gz: d6f5ffdff1f91775a6f790c8128fd755f334ceca215f654e481dc1a6c80ec9976f0212d6efb52e2aab5e70e449d737d504ef8afe0940c30d7281c5d9e1962732
7
+ data.tar.gz: 550df24d7388d397c8e7b87ef3e57043568b570d05432490d13460ef3e4b50948b085ab3247272f3cdde31ceb64c332c8ca3a23d524231be4a45807f36470e1c
@@ -1,5 +1,7 @@
1
1
  module Ethos
2
2
  class Collection
3
+ include Enumerable
4
+
3
5
  def type=(type)
4
6
  @_type = type
5
7
  end
@@ -28,16 +30,6 @@ module Ethos
28
30
  end
29
31
  end
30
32
 
31
- def map
32
- array = []
33
-
34
- self.each do |member|
35
- array << yield(member)
36
- end
37
-
38
- array
39
- end
40
-
41
33
  def join(separator = '')
42
34
  self.map { |member| String member }.join separator
43
35
  end
@@ -1,3 +1,3 @@
1
1
  module Ethos
2
- VERSION = '0.2.0.beta14'
2
+ VERSION = '0.2.0.beta15'
3
3
  end
@@ -250,6 +250,12 @@ scope do
250
250
 
251
251
  asserts(names) == ['Child 1', 'Child 2']
252
252
  end
253
+
254
+ spec do
255
+ result = entity.children.any? do |child| child.name == 'Child 1' end
256
+
257
+ asserts(result).truthy?
258
+ end
253
259
  end
254
260
  end
255
261
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta14
4
+ version: 0.2.0.beta15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erol Fornoles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler