proxima 0.1.1 → 0.1.2
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/proxima/attributes.rb +1 -1
- data/lib/proxima/model.rb +1 -1
- data/lib/proxima/version.rb +1 -1
- data/proxima-0.1.1.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0753831f7fa1be1204df12b8dec103741beea04b
|
4
|
+
data.tar.gz: d812579324c655cdc4940d5bc699bab7782ca60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8bb2f3a7a103e576397db91c6af9ad307f4fade7a2af78c3a6246c113b96b77e5ffd1af849fc1ccae0502f0843f2e14fd1e4f72bea960b047dab379411572d
|
7
|
+
data.tar.gz: b43ca1603092b69d9978e795e85f73deaaeb68e92f3ae3faf4b83dc1d24b7388dae08e1c8c5d70cbd466c4bb47b03e80549b479e107522e9c185bc33a349ddef
|
data/lib/proxima/attributes.rb
CHANGED
@@ -20,7 +20,7 @@ module Proxima
|
|
20
20
|
value = default.respond_to?(:call) ? default.call(self, params) : default
|
21
21
|
end
|
22
22
|
|
23
|
-
if attribute_params[:klass] && !value.is_a?(attribute_params[:klass])
|
23
|
+
if value != nil && attribute_params[:klass] && !value.is_a?(attribute_params[:klass])
|
24
24
|
klass = attribute_params[:klass]
|
25
25
|
value = klass.new value
|
26
26
|
end
|
data/lib/proxima/model.rb
CHANGED
@@ -33,7 +33,7 @@ module Proxima
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.create(record)
|
36
|
-
return record.map { |record| self.
|
36
|
+
return record.map { |record| self.create record } if record.is_a? Array
|
37
37
|
model = self.new(record)
|
38
38
|
return nil unless model.save
|
39
39
|
model
|
data/lib/proxima/version.rb
CHANGED
data/proxima-0.1.1.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxima
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Hurst
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- lib/proxima/watch_array.rb
|
122
122
|
- lib/proxima/watch_hash.rb
|
123
123
|
- proxima-0.1.0.gem
|
124
|
+
- proxima-0.1.1.gem
|
124
125
|
- proxima.gemspec
|
125
126
|
homepage: https://github.com/fintechdev/proxima
|
126
127
|
licenses:
|