ms_rest_azure 0.6.0 → 0.6.1

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: e6245c14af0d65fe5cccfd8179024358a9cb761a
4
- data.tar.gz: b48d9d6a00ce589692c9531c5b3e9ce8adf78645
3
+ metadata.gz: 56d019976e8a3a60f071bb73570b273122a0eaa7
4
+ data.tar.gz: 718f1313a3358e49bda59b97d1b1b3de76e4a525
5
5
  SHA512:
6
- metadata.gz: 8cb8d7448eb7ffc1ffd99777544b1c5ae690d5a0ab0575d246010f7775f4ab5b1757ec10a2294cefee9572d2e773e4730c3eecb900699f537c9835cbfce9e2fb
7
- data.tar.gz: 221dc02de7944922bf8819d61e49ac3737162098deaa658b8ba5ba2cd111dc206d0facfec2d8fe083f67d09b6920b48d40ed3211f88db9e81e3b68033f007b8e
6
+ metadata.gz: eab3b970206531c69d9386f7ff8200ff9cf0776de592a2ca0141e4c9b407bbe92ec8c23ddee9fce66b6f95f78c23f4c8ca82fcb95e835a51b0d8fe239cb763cf
7
+ data.tar.gz: 132d73b723bff9750c638af3d19211b29bd548bcaa5e9e6745dfc876e89f16118016ab2d1cc02b84c3d8bee862ef238d7c05e4dcc108b9f626d5b8083aa90db7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ##2016.11.11 ms_rest_azure version 0.6.1
2
+ * Adding telemetry extension point into AzureServiceClient [#543](https://github.com/Azure/azure-sdk-for-ruby/pull/543)
3
+ * Removing explicit json dependency [#523](https://github.com/Azure/azure-sdk-for-ruby/pull/523)
4
+
1
5
  ##2016.10.05 ms_rest_azure version 0.6.0
2
6
  * Minimum supported Ruby version is 2.0.0 [#1463](https://github.com/Azure/autorest/pull/1463)
3
7
  * Implemented generic request method for AzureServiceClient [#1447](https://github.com/Azure/autorest/pull/1447)
data/LICENSE.txt CHANGED
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -37,11 +37,20 @@ To start working on the gem the only additional dev dependecy is required - rspe
37
37
  Reference it in the gemfile and also add this line to your client's gemspec file:
38
38
 
39
39
  ```ruby
40
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.6.0'
40
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.6.1'
41
41
  ```
42
-
43
42
  Don't forget to correct the version.
44
43
 
44
+ # Utilizing Telemetry Extension in your SDK
45
+
46
+ We encourage the customer of ms_rest_azure library to provide information about their product sent via telemetry extension point as below:
47
+
48
+ ```ruby
49
+ additional_user_agent_information = 'fog-azure-rm/0.2.0' # Refer https://github.com/Azure/azure-sdk-for-ruby/issues/517 for more info.
50
+ azure_service_client.add_user_agent_information(additional_user_agent_information)
51
+ ```
52
+
53
+
45
54
  # Provide feedback
46
55
 
47
56
  Send email to the azsdkteam@microsoft.com or file new issue in this repository.
@@ -75,4 +75,4 @@ module MsRestAzure
75
75
  end
76
76
  end
77
77
 
78
- end
78
+ end
@@ -19,6 +19,8 @@ module MsRestAzure
19
19
  @request_headers = {
20
20
  'Content-Type' => 'application/json;charset=utf-8' # This is the current default for Azure services, and content-type supported by Autorest
21
21
  }
22
+ add_user_agent_information("ms_rest_azure/#{MsRestAzure::VERSION}")
23
+ add_user_agent_information("Azure-SDK-For-Ruby")
22
24
  end
23
25
 
24
26
  #
@@ -40,11 +42,11 @@ module MsRestAzure
40
42
  task = Concurrent::TimerTask.new do
41
43
  begin
42
44
  if !polling_state.azure_async_operation_header_link.nil?
43
- update_state_from_azure_async_operation_header(polling_state.get_request(headers: request.headers, base_uri: request.base_uri), polling_state)
45
+ update_state_from_azure_async_operation_header(polling_state.get_request(headers: request.headers, base_uri: request.base_uri, user_agent_extended: user_agent_extended), polling_state)
44
46
  elsif !polling_state.location_header_link.nil?
45
- update_state_from_location_header(polling_state.get_request(headers: request.headers, base_uri: request.base_uri), polling_state, custom_deserialization_block)
47
+ update_state_from_location_header(polling_state.get_request(headers: request.headers, base_uri: request.base_uri, user_agent_extended: user_agent_extended), polling_state, custom_deserialization_block)
46
48
  elsif http_method === :put
47
- get_request = MsRest::HttpOperationRequest.new(request.base_uri, request.build_path.to_s, :get, {query_params: request.query_params, headers: request.headers})
49
+ get_request = MsRest::HttpOperationRequest.new(request.base_uri, request.build_path.to_s, :get, {query_params: request.query_params, headers: request.headers, user_agent_extended: user_agent_extended})
48
50
  update_state_from_get_resource_operation(get_request, polling_state, custom_deserialization_block)
49
51
  else
50
52
  task.shutdown
@@ -253,7 +255,6 @@ module MsRestAzure
253
255
  result
254
256
  end
255
257
 
256
-
257
258
  private
258
259
  #
259
260
  # Retrieves a new instance of the AzureOperationResponse class.
@@ -122,4 +122,4 @@ module MsRestAzure
122
122
  end
123
123
  end
124
124
 
125
- end
125
+ end
@@ -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 MsRestAzure
6
- VERSION = '0.6.0'
6
+ VERSION = '0.6.1'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms_rest_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.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: 2016-10-05 00:00:00.000000000 Z
11
+ date: 2016-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.3'
55
- - !ruby/object:Gem::Dependency
56
- name: json
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.7'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.7'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: concurrent-ruby
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +100,14 @@ dependencies:
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: 0.6.0
103
+ version: 0.6.1
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: 0.6.0
110
+ version: 0.6.1
125
111
  description: Azure Client Library for Ruby.
126
112
  email: azsdkteam@microsoft.com
127
113
  executables: []
@@ -145,7 +131,7 @@ files:
145
131
  - lib/ms_rest_azure/serialization.rb
146
132
  - lib/ms_rest_azure/sub_resource.rb
147
133
  - lib/ms_rest_azure/version.rb
148
- homepage: https://github.com/Azure/autorest
134
+ homepage: https://aka.ms/ms_rest_azure
149
135
  licenses:
150
136
  - MIT
151
137
  metadata: {}
@@ -165,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
151
  version: '0'
166
152
  requirements: []
167
153
  rubyforge_project:
168
- rubygems_version: 2.4.8
154
+ rubygems_version: 2.5.1
169
155
  signing_key:
170
156
  specification_version: 4
171
157
  summary: Azure Client Library for Ruby.