ms_rest_azure 0.2.0 → 0.2.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: 6b02ce265675df7683f3fb48e1f1fd1ec1d0e60b
4
- data.tar.gz: 027a5fe53ebc63894274461aa81786a4f735c6b6
3
+ metadata.gz: d73f7fa9494816693d70e34fb9794f4a11780337
4
+ data.tar.gz: ddb3ee88a054d14eb7cade5cc1889e6641823874
5
5
  SHA512:
6
- metadata.gz: aff4289214fe7169448cd59f4d4570f609e6a8beee79282edabb39e1cf71b8b730421697214453fce6c124c20dec491e4b78a8981217072476dfeac59ab8f50d
7
- data.tar.gz: fe7b6aa721bafe96825a5763e2bd2f5d396f2bd213a2b712af88748d48d656fbc6d218e7403f929b213663ee4a4c30623e142d2900b8f3edcdfac7aed3005948
6
+ metadata.gz: c96f2ed453616d3e1a1c08baa3be17aa2044d77201a846150a8e0cb975f4e224476e1fea344dc9ab0d67a1f37aabb72c4b7f15fba9d5d1140d3d35c8481377c4
7
+ data.tar.gz: db14a8788b94a1ea0d82dbb4e70b1a0e55f1dea33106af6c8d640d70076c4407361da8c574cb291d99e8568d58a1d7776aa9142b6930738c3f4356d3ddc329f8
@@ -7,12 +7,13 @@ module MsRestAzure
7
7
  # Defines values for AsyncOperationStatus enum.
8
8
  #
9
9
  class AsyncOperationStatus
10
- IN_PROGRESS_STATUS = "InProgress"
11
- SUCCESS_STATUS = "Succeeded"
12
- FAILED_STATUS = "Failed"
13
- CANCELED_STATUS = "Canceled"
10
+ IN_PROGRESS_STATUS = 'InProgress'
11
+ RUNNING = 'Running'
12
+ SUCCESS_STATUS = 'Succeeded'
13
+ FAILED_STATUS = 'Failed'
14
+ CANCELED_STATUS = 'Canceled'
14
15
 
15
- ALL_STATUSES = [FAILED_STATUS, CANCELED_STATUS, SUCCESS_STATUS, IN_PROGRESS_STATUS]
16
+ ALL_STATUSES = [FAILED_STATUS, CANCELED_STATUS, SUCCESS_STATUS, IN_PROGRESS_STATUS, RUNNING]
16
17
  FAILED_STATUSES = [FAILED_STATUS, CANCELED_STATUS]
17
18
  TERMINAL_STATUSES = [FAILED_STATUS, CANCELED_STATUS, SUCCESS_STATUS]
18
19
 
@@ -63,7 +64,7 @@ module MsRestAzure
63
64
  return if object.nil?
64
65
  output_object = AsyncOperationStatus.new
65
66
 
66
- fail AzureOperationError, 'Invalid status was recieved during polling' unless ALL_STATUSES.include?(object['status'])
67
+ fail AzureOperationError, "Invalid status was recieved during polling: #{object['status']}" unless ALL_STATUSES.include?(object['status'])
67
68
  output_object.status = object['status']
68
69
 
69
70
  output_object.error = CloudErrorData.deserialize_object(object['error'])
@@ -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.2.0'
6
+ VERSION = '0.2.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.2.0
4
+ version: 0.2.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-03-04 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler