caprese 0.3.26 → 0.3.27

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: 1e98d646da7b21fc84de1e4e9c9954b0b67d0b94
4
- data.tar.gz: e98309e9ef3b0d9102103dbd16670c69259793af
3
+ metadata.gz: 5179ca42789493695ca03e5fb2d7a1874a372056
4
+ data.tar.gz: f14d99e1adf2e3d475e3b0bcb91cd4ec7e49899e
5
5
  SHA512:
6
- metadata.gz: 7c222c3c9ae7e98cd7ce548ba21a000e3c2a446cd31102b72720bfeb61a5d4eccab72d069055e28b79a41ef3fd70788251dcec1a36184c219b6481bb9b795596
7
- data.tar.gz: 028fca901e3a6164720a8375618213560a42f81fa1c0331a528906e490c2cb39a81f178d23ce6be8775c472cb86ae1938615d4d949502660342b455c0212b97a
6
+ metadata.gz: 5fba032a7f1e4543edd66dae4f4ebf4aa0774ffdf0d0580cac2a1b46a4a779abef14af898a4f23f6089b02d3a8a5a2f1071f06d783b6837721c904a03b5fa24c
7
+ data.tar.gz: 1a9de55405e112dd2ad26e8c8479293e43425da2c9111251ff1267b202bab80e2d6ac6259e6c06321e5e4677ef5e860df179b6928fe37b1a5c873e17d5fe70bd
data/CHANGELOG.md CHANGED
@@ -141,3 +141,15 @@
141
141
  ## 0.3.25
142
142
 
143
143
  * Add `namespaced_module` and `unnamespace` helper to Versioning that provides full module namespace when `config.isolate_namespace` is present (replaces the old functionality of `version_module` and `unversion`)
144
+
145
+ ## 0.3.26
146
+
147
+ * Record the field aliases that are used in the request so responses will use the same aliases
148
+ * Allow options like `serializer` to be passed into `Serializer` association definitions
149
+ * Allow specification of `relationship_serializer(name)` for serializing `get_relationship_data`, similar to `relationship_scope`
150
+ * Fix bug that crashes when `[relationship]/data` is missing
151
+ * Fix bug in `#update_relationship_definition`
152
+
153
+ ## 0.3.27
154
+
155
+ * Fix bug in JSON API adapter that inappropriately aliases relationships
@@ -425,8 +425,7 @@ module Caprese
425
425
  allow_wildcard: true
426
426
  )
427
427
  serializer.associations(include_directive).each_with_object({}) do |association, hash|
428
- aliased_key = serializer.object.class.caprese_alias_field(association.key)
429
- hash[aliased_key] = Relationship.new(
428
+ hash[association.key] = Relationship.new(
430
429
  serializer,
431
430
  instance_options,
432
431
  association,
@@ -1,3 +1,3 @@
1
1
  module Caprese
2
- VERSION = '0.3.26'
2
+ VERSION = '0.3.27'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caprese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.26
4
+ version: 0.3.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Landgrebe
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-08-02 00:00:00.000000000 Z
13
+ date: 2017-08-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_model_serializers