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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91bb8b8bc46f2a05daf7c0de84d0d94e010b43c2
4
- data.tar.gz: 7fb413af783fc6ef7294538a78b7155d569eb3fd
3
+ metadata.gz: 6ffb070e7e5f61b0e1183fcff6b9ad7a6c392532
4
+ data.tar.gz: 36b5ba2519b9b89fde9f0226897f85dec1ed242a
5
5
  SHA512:
6
- metadata.gz: 5969cce618b705790f8ca50fca642fba7d0108fb88aea5ab6caa70f28dddc17662021c1c1165155a3da561f5d8d11e3581592375459388ad0ae1e5f62670c04e
7
- data.tar.gz: 7507016e561db695d19c2695c6ca06164a3005efc5ae2e699b9eb21a5ea1183d6d2683b6709a51c1226536575000d7fd7bd2c1627ba35f7242f159915d0798c9
6
+ metadata.gz: 4e5ab00f3e8c61e15225836b8a86579322394043ee1418ea4a9884de17f953fb000f6a1a056562600e8082949ec62b4bdf992104975abf7bc5ebde4f297aa8d0
7
+ data.tar.gz: 112a2a0ee00234b47210540e97b849f25d647ee33b852325e007484d37c01b1e97d58f6ab010cbb65174c1b0581c067ae7f58093afec6d5c0ffda6e752ac06b8
@@ -1,3 +1,6 @@
1
+ ##2016.08.10 ms_rest version 0.4.0
2
+ * Modulerizing serialization class from ms_rest to be inherited by azure serializer module
3
+
1
4
  ##2016.07.21 ms_rest version 0.3.1
2
5
  * [Bug fixes](https://github.com/Azure/autorest/commit/ede944a1fa30a7453aa30e6fa79154dc43393cdf)
3
6
 
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.3.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
- serialization = Serialization.new(self)
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
- serialization = Serialization.new(self)
32
- serialization.serialize(mapper, object, object_name)
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
  #
@@ -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.3.1'
6
+ VERSION = '0.4.0'
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.3.1
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-07-22 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler