materialize 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/materialize/entity.rb +8 -4
- data/lib/materialize/version.rb +1 -1
- metadata +1 -2
- data/materialize-0.3.5.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21eee374167d93b6d9433228415934eaaf866c56
|
|
4
|
+
data.tar.gz: 6575eea7471af894607b8f2de3502756807fe459
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb1521d7c0c35bf047dfdb668d44a89469d13533e44bdb989abde58505c73119df3e41d405381d8654c4c45af2734a7e2fd3c4ae4174aea2cdb1f9b39d420f71
|
|
7
|
+
data.tar.gz: ffb1b32de7609df712a6c1c2f63bb6338c421184a44e628ba246eb0393f49d2913e6a2d434ab67cb5d4cc9e182c5bc07789d6ae590963695fa0851751cdafba4
|
data/lib/materialize/entity.rb
CHANGED
|
@@ -4,8 +4,14 @@ module Materialize
|
|
|
4
4
|
class Entity
|
|
5
5
|
include Utils
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
class << self
|
|
8
|
+
|
|
9
|
+
def wrap(entities_data)
|
|
10
|
+
entities_data.map { |entity_data| new(entity_data) }
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
alias :build :new
|
|
14
|
+
|
|
9
15
|
end
|
|
10
16
|
|
|
11
17
|
def initialize(attributes)
|
|
@@ -35,8 +41,6 @@ module Materialize
|
|
|
35
41
|
end
|
|
36
42
|
end
|
|
37
43
|
|
|
38
|
-
# ----> END REMARKS
|
|
39
|
-
|
|
40
44
|
def collection?(value)
|
|
41
45
|
value.is_a? Enumerable
|
|
42
46
|
end
|
data/lib/materialize/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: materialize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Fiser
|
|
@@ -106,7 +106,6 @@ files:
|
|
|
106
106
|
- lib/materialize/response.rb
|
|
107
107
|
- lib/materialize/utils.rb
|
|
108
108
|
- lib/materialize/version.rb
|
|
109
|
-
- materialize-0.3.5.gem
|
|
110
109
|
- materialize.gemspec
|
|
111
110
|
homepage: http://bluebear.io
|
|
112
111
|
licenses:
|
data/materialize-0.3.5.gem
DELETED
|
Binary file
|