ms_rest 0.7.0 → 0.7.1

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
  SHA1:
3
- metadata.gz: 6002241e297f352e09b8b7e66ccccf2c6dd11817
4
- data.tar.gz: f4326806d9a7ef67e857d06ef40f1dc54c6fa418
3
+ metadata.gz: 275e752a1faf000ce807e83bbdc94b4ebdcffa90
4
+ data.tar.gz: 26dfb95c46525129becb89832d11b7d1eaef541f
5
5
  SHA512:
6
- metadata.gz: 3b9dda5a36648483b1ba2c4c12de38e3942ce32abe051b7f997c1742808b28115431ead4b5e20000a9b61fad3cba7b454957a0494bc8248ff2d3d2bb528ffaac
7
- data.tar.gz: 97abece3a32d63a121cd3a47656af95045efe319e12efca496939a0a8d6444aaa42c297a89cfda64db8117b06bcf2cebaa26225b5db57db2bc475f545c22fc1f
6
+ metadata.gz: ee97540dfe67881418cff39a852149941515107490d559caaf729aefe836bb1c2d4c585fa6df245b56744541db4196d54f1faaa71826e3232359bddb0baf13ad
7
+ data.tar.gz: a41324d4c4a4cbeded367b1f0e239e31335ac3fe3532858ba804c038bc5cd87d01f4cc31e9ef75d1f78f3df8256871711342e5d660f76dc542d49d97347b60af
@@ -1,3 +1,6 @@
1
+ ##2017.07.27 ms_rest version 0.7.1
2
+ * [Bug Fix] Modified to_json logic in JSONable module to handle 'mapper' & 'object' options.[PR #860](https://github.com/Azure/azure-sdk-for-ruby/pull/860)
3
+
1
4
  ##2017.06.30 ms_rest version 0.7.0
2
5
  * [Breaking Change] Refactored serialization & deserialization logic to remove client from the process.[Issue #610](https://github.com/Azure/azure-sdk-for-ruby/issues/610) [PR #799](https://github.com/Azure/azure-sdk-for-ruby/pull/799)
3
6
 
@@ -13,8 +13,9 @@ module MsRest
13
13
  # @return [String] JSON serialized version of the object
14
14
  #
15
15
  def to_json(options = nil)
16
- mapper = self.class.mapper if options.nil? || !options.key?(:mapper)
17
- serialize(mapper, self)
16
+ mapper = (options.nil? || !options.key?(:mapper))? self.class.mapper: options[:mapper]
17
+ object = (options.nil? || !options.key?(:object))? self: options[:object]
18
+ serialize(mapper, object)
18
19
  end
19
20
 
20
21
  #
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module MsRest
6
- VERSION = '0.7.0'
6
+ VERSION = '0.7.1'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-30 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler