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 +4 -4
- data/lib/ethos/collection.rb +2 -10
- data/lib/ethos/version.rb +1 -1
- data/spec/ethos/entity.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4004a378fc014fe0520a7aad3c6e1f7a54f6c20d
|
4
|
+
data.tar.gz: bc94babcb920eb31b9b0688e67d97070dff813fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f5ffdff1f91775a6f790c8128fd755f334ceca215f654e481dc1a6c80ec9976f0212d6efb52e2aab5e70e449d737d504ef8afe0940c30d7281c5d9e1962732
|
7
|
+
data.tar.gz: 550df24d7388d397c8e7b87ef3e57043568b570d05432490d13460ef3e4b50948b085ab3247272f3cdde31ceb64c332c8ca3a23d524231be4a45807f36470e1c
|
data/lib/ethos/collection.rb
CHANGED
@@ -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
|
data/lib/ethos/version.rb
CHANGED
data/spec/ethos/entity.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|