ms_rest 0.3.1 → 0.4.0
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/README.md +1 -1
- data/lib/ms_rest/serialization.rb +11 -4
- 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: 6ffb070e7e5f61b0e1183fcff6b9ad7a6c392532
|
4
|
+
data.tar.gz: 36b5ba2519b9b89fde9f0226897f85dec1ed242a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e5ab00f3e8c61e15225836b8a86579322394043ee1418ea4a9884de17f953fb000f6a1a056562600e8082949ec62b4bdf992104975abf7bc5ebde4f297aa8d0
|
7
|
+
data.tar.gz: 112a2a0ee00234b47210540e97b849f25d647ee33b852325e007484d37c01b1e97d58f6ab010cbb65174c1b0581c067ae7f58093afec6d5c0ffda6e752ac06b8
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -38,7 +38,7 @@ To start working on the gem the only additional dev dependecy is required - rspe
|
|
38
38
|
Reference it in the gemfile and also add this line to your client's gemspec file:
|
39
39
|
|
40
40
|
```ruby
|
41
|
-
spec.add_runtime_dependency 'ms_rest', '~> 0.
|
41
|
+
spec.add_runtime_dependency 'ms_rest', '~> 0.4.0'
|
42
42
|
```
|
43
43
|
|
44
44
|
Don't forget to correct the version.
|
@@ -16,8 +16,7 @@ module MsRest
|
|
16
16
|
# @param object_name [String] Name of the deserialized object.
|
17
17
|
#
|
18
18
|
def deserialize(mapper, response_body, object_name)
|
19
|
-
|
20
|
-
serialization.deserialize(mapper, response_body, object_name)
|
19
|
+
build_serializer.deserialize(mapper, response_body, object_name)
|
21
20
|
end
|
22
21
|
|
23
22
|
#
|
@@ -28,8 +27,16 @@ module MsRest
|
|
28
27
|
# @param object_name [String] Name of the serialized object.
|
29
28
|
#
|
30
29
|
def serialize(mapper, object, object_name)
|
31
|
-
|
32
|
-
|
30
|
+
build_serializer.serialize(mapper, object, object_name)
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
#
|
36
|
+
# Builds serializer
|
37
|
+
#
|
38
|
+
def build_serializer
|
39
|
+
Serialization.new(self)
|
33
40
|
end
|
34
41
|
|
35
42
|
#
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|