ms_rest 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ms_rest/jsonable.rb +3 -2
- data/lib/ms_rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 275e752a1faf000ce807e83bbdc94b4ebdcffa90
|
4
|
+
data.tar.gz: 26dfb95c46525129becb89832d11b7d1eaef541f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee97540dfe67881418cff39a852149941515107490d559caaf729aefe836bb1c2d4c585fa6df245b56744541db4196d54f1faaa71826e3232359bddb0baf13ad
|
7
|
+
data.tar.gz: a41324d4c4a4cbeded367b1f0e239e31335ac3fe3532858ba804c038bc5cd87d01f4cc31e9ef75d1f78f3df8256871711342e5d660f76dc542d49d97347b60af
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/ms_rest/jsonable.rb
CHANGED
@@ -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 =
|
17
|
-
|
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
|
#
|
data/lib/ms_rest/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|