appfuel 0.3.2 → 0.3.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/CHANGELOG.md +4 -0
- data/lib/appfuel/storage/repository/mapper.rb +5 -0
- data/lib/appfuel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af037c6964ab5d3678d25a21fd3720d2f42eeee3
|
|
4
|
+
data.tar.gz: 6577915f690254b9ce059dcb3f7a5e7feaa1b2c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc08d5a31a3dacf9013422a17601de677d8c19af1382a98ab75a8a42bda808cb5925e2bbfc1d4cf425f7ef35ce5f3b5e49ebbc88dbebd5439fbd59fff1183b7f
|
|
7
|
+
data.tar.gz: a6e29c028be12d171f45a66d31b4085d95db68977986e3f8dc308418b5bca69c0f68e97514988b571684a7ae9e241c8563445d8f343596ca96069f2d3c5e00f3
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. (Pending ap
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
# Releases
|
|
8
|
+
## [[0.3.3]](https://github.com/rsb/appfuel/releases/tag/0.3.2) 2017-06-20
|
|
9
|
+
### Added
|
|
10
|
+
- `storage_hash` method to general mapper
|
|
11
|
+
|
|
8
12
|
## [[0.3.2]](https://github.com/rsb/appfuel/releases/tag/0.3.2) 2017-06-20
|
|
9
13
|
### Fixed
|
|
10
14
|
- `mapping_dsl` invalid storage key fixed to `web_api` from `webapi`
|
|
@@ -151,6 +151,11 @@ module Appfuel
|
|
|
151
151
|
entity_attrs
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
+
def storage_hash(storage)
|
|
155
|
+
return storage if storage.is_a?(Hash)
|
|
156
|
+
fail "storage must implement to_h" unless storage.respond_to?(:to_h)
|
|
157
|
+
storage.to_h
|
|
158
|
+
end
|
|
154
159
|
# Convert the domain into a hash of storage attributes that represent.
|
|
155
160
|
# Each storage class has its own hash of mapped attributes. A domain
|
|
156
161
|
# can have more than one storage class.
|
data/lib/appfuel/version.rb
CHANGED