ethos 0.2.0.beta7 → 0.2.0.beta8

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: 9335ed3374ed7cc4b506193942250129d94a898e
4
- data.tar.gz: 9bb3226db9720f6307398e68fbf395d2bed69dde
3
+ metadata.gz: 21a639ff006e2a991e8510d10824323f5fb9bd5b
4
+ data.tar.gz: 8a0ae3f45e616db8f6999b807dd0a771a11b5bdb
5
5
  SHA512:
6
- metadata.gz: ec69f3cd21d22b4d082c5f5ad1c8823a5cfb5aac30fa5831d7b3ae4659ad0e98f7bf29d44239fe3ce12e8c42c14916bf9df803810646891b4e19726d685c3410
7
- data.tar.gz: 5766fca046926bf658ac8444c91bd6ee24dc38e89f1d1f21d904032bbe47c5370d8a42a3b44c0bddc028df62de4f557ef79fc80acb925d3605dd6c5ae9f813f2
6
+ metadata.gz: 51cb2d833989754a23dd37c5c8e6d207d653e87ea53777a7b48fa5834632c8d313ccf7dd2a4a5f98cddf9a69d3506ac2c997d7c48dac830e360839079ccc8bb5
7
+ data.tar.gz: 982e1e65dca7041cb4723ea4f542e906d4d34111b2c6a49d6798b0056dd5fda081dcb6e12557428096f5777584c42f3fa9b6a63d5a9b8abb4a7f9e18e3b39a51
@@ -22,6 +22,12 @@ module Ethos
22
22
  end
23
23
  end
24
24
 
25
+ def each
26
+ size.times do |i|
27
+ yield self[i]
28
+ end
29
+ end
30
+
25
31
  def ==(other)
26
32
  return false unless other.is_a? self.class
27
33
  return false unless self.size == other.size
@@ -1,3 +1,3 @@
1
1
  module Ethos
2
- VERSION = '0.2.0.beta7'
2
+ VERSION = '0.2.0.beta8'
3
3
  end
@@ -167,6 +167,16 @@ scope do
167
167
 
168
168
  asserts(entity.children[1]) == expected
169
169
  end
170
+
171
+ spec do
172
+ names = []
173
+
174
+ entity.children.each do |child|
175
+ names << child.name
176
+ end
177
+
178
+ asserts(names) == ['Child 1', 'Child 2']
179
+ end
170
180
  end
171
181
  end
172
182
 
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.beta7
4
+ version: 0.2.0.beta8
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-03-19 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler