appfuel 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cab8bf32e622023129ac0e2f2dc31df6d9a7106
4
- data.tar.gz: ee1c5ea848ddc392f57b6bd29827d2edf2e6c309
3
+ metadata.gz: af037c6964ab5d3678d25a21fd3720d2f42eeee3
4
+ data.tar.gz: 6577915f690254b9ce059dcb3f7a5e7feaa1b2c7
5
5
  SHA512:
6
- metadata.gz: f0f111688f9d93c6604e015850a81ee85bde71c098e5fb1c1875b43455bb4efa5415ebbaa056403c4f83b75753ebe1997efbe14b223af6566e1e775e768f2286
7
- data.tar.gz: 3dfbfe00b6e902e8d9a254790575e010f2a78840a1eb2570f8c244f8dc57f2fdac3d32a2c8894bdd8ba7b931413b18fdde888cc356f95123240efe15efc20793
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.
@@ -1,3 +1,3 @@
1
1
  module Appfuel
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appfuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch