panko_serializer 0.5.3 → 0.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '053874fed873f694a4525ede2afa0c173d56aab7fc40ea9ee3aba59285e0800d'
4
- data.tar.gz: 29a90858a19efe07b053d8eb2c71faed57c00bcc36663d6dd988cba9e11c6ddd
3
+ metadata.gz: b93420802033756fb2a0860184b80bedca36bcf8ab2acb1434a98117f60b9a63
4
+ data.tar.gz: f48c61a0787fa56f3ac95cf943468b28528d24e718f9ca7c9d054d2dd2f4be0e
5
5
  SHA512:
6
- metadata.gz: '097f9391d393bd62d14ac1d76788c6c0d122ddb08fd330570c6f20c4ec4b03b1293ec2639589ac68d77392b045d24e2b6870cb00f73d3828b718dbcae210b5a8'
7
- data.tar.gz: 8ba23e6e885a8c273444046a7e52d2fc79041ecfa327e5cdf5d76f24f381102f59fc95e2459bc071b9519c280a69edd8e967ceefc92a8ec3e27672aa7c49376f
6
+ metadata.gz: 3fe061ec2f05881d5e9984af96f459e8a3acc6c427c5f7ecb8ece44b3683ce8ba07c4a078aadc2322fdf32f0f714c9451cb34af6e91af3b9b76941307d2bb1cb
7
+ data.tar.gz: 812ffa7a72e371700330886a485785c2ccf3bf1bb298ce88a92b144cca5b14a7aaa89af866e4b77c270b466c7a22e23245ec4e7b1d6b9192e2e41deaea383809
@@ -40,7 +40,7 @@ static VALUE association_new(int argc, VALUE* argv, VALUE self) {
40
40
  association->name_str = argv[1];
41
41
  association->rb_descriptor = argv[2];
42
42
 
43
- association->name_id = rb_intern_str(association->name_str);
43
+ association->name_id = rb_intern_str(rb_sym2str(association->name_sym));
44
44
  association->descriptor = sd_read(association->rb_descriptor);
45
45
 
46
46
  return Data_Wrap_Struct(cAssociation, association_mark, association_free,
@@ -76,7 +76,7 @@ module Panko
76
76
 
77
77
  @_descriptor.has_one_associations << Panko::Association.new(
78
78
  name,
79
- name.to_s,
79
+ options.fetch(:name, name).to_s,
80
80
  Panko::SerializationDescriptor.build(serializer_const, options)
81
81
  )
82
82
  end
@@ -89,7 +89,7 @@ module Panko
89
89
 
90
90
  @_descriptor.has_many_associations << Panko::Association.new(
91
91
  name,
92
- name.to_s.freeze,
92
+ options.fetch(:name, name).to_s,
93
93
  Panko::SerializationDescriptor.build(serializer_const, options)
94
94
  )
95
95
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Panko
4
- VERSION = "0.5.3"
4
+ VERSION = "0.5.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panko_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yosi Attias