model_driven_api 3.5.1 → 3.5.2

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: 81f4bf59354a604bb9040be285c3e9ed38f4e847ed945254c6ef2969f72190af
4
- data.tar.gz: 83fd3fd82615dc3a23e8a5bad639c2fb9bbacb9ac699df1544e46f6219ec960f
3
+ metadata.gz: 88257f82f9d8e14500f45f1a86267cfe147a2a473c1602c2f3f6d231c1008c7a
4
+ data.tar.gz: 419d69318bf67a7b65dc62cfa45beff7043981194f9a620a66bcb95012710325
5
5
  SHA512:
6
- metadata.gz: 9cd024384b0ee5ab85e40b30b0f986307f04c5ffd4a9d89b45742a02e7f629777c7da57f4af3d118b553cfc78803783baa376ccbb262f55764f513ab7d1d5958
7
- data.tar.gz: 3f23e0f14efd400f79edfa762143f6ccbd6b6e5dab6e536b6f27631aa6260640737452a1971632cc729c2245e931ae5bf6ddc3ee74435f75c2016fff0bc5465b
6
+ metadata.gz: 3f00531fd35976318e21d9c65cb4d98e23223ead8996278b4308ca4a93de53bc0ddc06bb5d84e2d05eb9f58f41d0aaf0609fea8ff968ed7d21aa1b4f1949f3cf
7
+ data.tar.gz: 1e32db7edccdddc97f942f7a8ecdcaf15a103f67d89ccb1f0b776268d017368089218a5a6fb3c9c560ed831e83c6a663d3c158b1a61703d6ebf5d94e708ff611
@@ -3,7 +3,7 @@
3
3
  module AutoIncludeJson
4
4
  # Recursively builds a hash suitable for ActiveRecord eager loading
5
5
  def build_includes(include_option)
6
- Rails.logger.debug "Building includes from: #{include_option.inspect} from #{caller_locations(1,1).first.label}"
6
+ Rails.logger.debug "AutoIncludeJson - Building includes from: #{include_option.inspect} from #{caller_locations(1,1).first.label}"
7
7
  case include_option
8
8
  when Array
9
9
  include_option
@@ -50,7 +50,7 @@ module AutoIncludeRelationJson
50
50
  include AutoIncludeJson
51
51
 
52
52
  def to_json(options = nil)
53
- Rails.logger.debug "Relation JSON to_json from #{caller_locations(1,1).first.label}"
53
+ Rails.logger.debug "AutoIncludeJson - Relation JSON to_json from #{caller_locations(1,1).first.label}"
54
54
  return super unless options.is_a?(Hash) && options[:include]
55
55
 
56
56
  includes_hash = build_includes(options[:include])
@@ -61,7 +61,7 @@ module AutoIncludeRelationJson
61
61
  end
62
62
 
63
63
  def as_json(options = nil)
64
- Rails.logger.debug "Relation JSON as_json from #{caller_locations(1,1).first.label}"
64
+ Rails.logger.debug "AutoIncludeJson - Relation JSON as_json from #{caller_locations(1,1).first.label}"
65
65
  return super unless options.is_a?(Hash) && options[:include]
66
66
 
67
67
  includes_hash = build_includes(options[:include])
@@ -89,7 +89,7 @@ module AutoIncludeInstanceJson
89
89
  private
90
90
 
91
91
  def preload_and_sanitize!(options)
92
- Rails.logger.debug "Instance JSON preload_and_sanitize! from #{caller_locations(1,1).first.label}"
92
+ Rails.logger.debug "AutoIncludeJson - Instance JSON preload_and_sanitize! from #{caller_locations(1,1).first.label}"
93
93
  return unless options.is_a?(Hash) && options[:include]
94
94
 
95
95
  includes_hash = build_includes(options[:include])
@@ -1,3 +1,3 @@
1
1
  module ModelDrivenApi
2
- VERSION = "3.5.1".freeze
2
+ VERSION = "3.5.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni