dry_serialization 0.3 → 0.3.1

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
  SHA256:
3
- metadata.gz: fffe54a30bc7e0e3dcffda5ffd92c83362d98493bcd7d48e766867468f1a3cca
4
- data.tar.gz: 9143b1bca8c2f5738f7bc9c3ad142f883405c69518c4cb8c17f89006e045fb8f
3
+ metadata.gz: b26528eee6bd9fecfe7a00ca8fe13f93e9d77644acece633b4847da7afbe198f
4
+ data.tar.gz: '068463e19300b428218067a7408971817468ffa7b338ae1c8cd7a76334d1478e'
5
5
  SHA512:
6
- metadata.gz: f00eaa9aa4055e0de5e20eaceda000b8509dc1ee53b5032251be9c2691f988c36b39ef9a7ea51c56668339612bb054125bf053907d78fb727fcea08700ee3fd1
7
- data.tar.gz: 5415bcd22ad6007f85b868da92dd5ae681884761dcc60f13c3758d4d80241d8806ced854dacd48e66591fe8f907e03687eb2ef5ed98a001c62b9ccaf90ddd330
6
+ metadata.gz: 67b883ddac937a0e051a69561d743354c85ec9f1e7509bc3948781edad5e8139962f0a7002cd4be920ea753ebdf6829793a84af6d1886556fe6355e09de00f03
7
+ data.tar.gz: 0125a39768f48d84f2c9351efa33012963026aca7010609d4dec98021501507f86ab5bb3cdd12723ec3d9f8fd3c32020510c0896206eea606d1405e1a8d72e9a
@@ -1,7 +1,9 @@
1
- module DrySerialization::Blueprinter
1
+ module DrySerialization
2
+ module Blueprinter
3
+
4
+ def serialized_resource(resource, blueprint, options = {})
5
+ JSON.parse(blueprint.render(resource, options), symbolize_names: true)
6
+ end
2
7
 
3
- def serialized_resource(resource, blueprint, options = {})
4
- JSON.parse(blueprint.render(resource, options), symbolize_names: true)
5
8
  end
6
-
7
9
  end
@@ -1,3 +1,3 @@
1
1
  module DrySerialization
2
- VERSION = "0.3"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry_serialization
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Heft