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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a019fa973d5f986b45719cab7136f5179e076ae
4
- data.tar.gz: 60950185654ddcdc39fd00cd44214c0ec3f5b6dd
3
+ metadata.gz: 0753831f7fa1be1204df12b8dec103741beea04b
4
+ data.tar.gz: d812579324c655cdc4940d5bc699bab7782ca60d
5
5
  SHA512:
6
- metadata.gz: 775c3a7c1868949d970cc5676cb52097a6ae2d6c484e537615b4a512d351e76f1c735913ed4517c0bb5d2589b1bba2de6b024a683d604969089cad1ddc008b0e
7
- data.tar.gz: 8ce248a07de80aaf4d0b7188f9c44ccf8f15776fa41b148e60ef663531502ec9f7461abd5a6af2123c434f291d82beb5bdb91ffb70ef36e565edd3ac57a7522a
6
+ metadata.gz: eb8bb2f3a7a103e576397db91c6af9ad307f4fade7a2af78c3a6246c113b96b77e5ffd1af849fc1ccae0502f0843f2e14fd1e4f72bea960b047dab379411572d
7
+ data.tar.gz: b43ca1603092b69d9978e795e85f73deaaeb68e92f3ae3faf4b83dc1d24b7388dae08e1c8c5d70cbd466c4bb47b03e80549b479e107522e9c185bc33a349ddef
@@ -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.new record } if record.is_a? Array
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
@@ -1,5 +1,5 @@
1
1
 
2
2
 
3
3
  module Proxima
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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-19 00:00:00.000000000 Z
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: