schron 0.0.7 → 0.0.8
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/schron/identity_map_repository.rb +4 -1
- data/schron.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 596a1adb57c93ea3704fe27f4b16b9e18634a9fe
|
|
4
|
+
data.tar.gz: 48ca9b5c762cba6a811bf094edbc629b81e75038
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b92a6e883b241fd799448dcd21d5635aca52b953f8a6cf9f5f5ab2790158f8e81780412cd645053ed57fc15d240fdc7b386800201bf3785d14b19e8efe4587c1
|
|
7
|
+
data.tar.gz: 47c28e8f37b63cf689877c014b350deac76c970b4f1180a3548a630327a89024273fd07a49577716096e6fbb111271c1bb833b8913dee51c78f39c4664c267fa
|
|
@@ -177,7 +177,10 @@ module Schron
|
|
|
177
177
|
|
|
178
178
|
private
|
|
179
179
|
|
|
180
|
-
def assign_attributes(from:
|
|
180
|
+
def assign_attributes(from: nil, to: nil)
|
|
181
|
+
if from.nil? || to.nil?
|
|
182
|
+
raise ArgumentError, 'missing required keyword "from" and/or "to"'
|
|
183
|
+
end
|
|
181
184
|
if to.respond_to?(:attributes=)
|
|
182
185
|
to.attributes = from.attributes
|
|
183
186
|
end
|
data/schron.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "schron"
|
|
7
|
-
spec.version = "0.0.
|
|
7
|
+
spec.version = "0.0.8"
|
|
8
8
|
spec.authors = ["David Faber"]
|
|
9
9
|
spec.email = ["david@1bios.co"]
|
|
10
10
|
spec.summary = %q{Repository implementation for entity persistence}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: schron
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Faber
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
181
181
|
version: '0'
|
|
182
182
|
requirements: []
|
|
183
183
|
rubyforge_project:
|
|
184
|
-
rubygems_version: 2.
|
|
184
|
+
rubygems_version: 2.4.5
|
|
185
185
|
signing_key:
|
|
186
186
|
specification_version: 4
|
|
187
187
|
summary: Repository implementation for entity persistence
|