azure-core 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MmZkMDQ4Mzc5MGEwZGY3MTRiMmQzODI2MDZkNzU5YjI5YzhlMjdlOQ==
5
- data.tar.gz: !binary |-
6
- YTUxZjdmMzRjOGMzNzFmMzRlMWFhYmFmMmY1M2E1MjRlODgxYWNmZg==
2
+ SHA1:
3
+ metadata.gz: c7f3632cf59d7d8188382b6f78cc99ea38f26535
4
+ data.tar.gz: c055bf4935814cc39349480bedaa42a99ffd5c55
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzVlNmFmNjA5YTYwN2Q4YTJmMDgwMWMyMGY3NzYwMzcyODZiZTE1NTZmYzI3
10
- MGRjNTczYmY4ZjY1ZDIwZDIxZDBiNGNiNWI3MWY4YjkwNmU4MGFkMTJhZWVk
11
- MmRlZDA0NjNkNjBhZWUwM2IzY2YwZDhlYzhjY2E3NTA4ZGMyN2Q=
12
- data.tar.gz: !binary |-
13
- NDEyNDQ5MmFjMjMzYzkyZmIwYWE0ZTIxOTdkNDE4ZTM0YzAyZGE0YWY4YjU0
14
- NDBjNzMxYmFlMDYyZDkzODY4NzczNmY3MjUxYTMwNTU2NjBiYjM0OWQ2ZDYy
15
- MjljYWVhMWJlMGQwNzI1NDIwMTZmYWJmNGQxNDYyOGYwNDY3ZDA=
6
+ metadata.gz: d9c48afa33a62800c2e07ef7ad64b3e7484dcdf28a7df0625f25edca58ca84bff2d0ffa1579b2c6a4a6b79f06ea4ce1bfc55e273feb9121f7f990ba9baae22b3
7
+ data.tar.gz: ed43fb7204a5e9a02c79643adf0e49165b3d85cd5ad8aa44789bac691e49fe5ffc7a0a6caaaa366b9ded9000373c868784fa601b27f07972ca14eb35f3ea07d0
@@ -1,3 +1,6 @@
1
+ # 2016.11.23 - azure-core gem @version 0.1.6
2
+ * Fixed the issue where it throws the HTTP error even there is a retry filter.
3
+
1
4
  # 2016.9.21 - azure-core gem @version 0.1.5
2
5
  * Adding autoload for auth files, to avoid having to require these files from dependent gems [#25](https://github.com/Azure/azure-ruby-asm-core/pull/25)
3
6
 
@@ -96,7 +96,7 @@ module Azure
96
96
  def with_filter(filter=nil, &block)
97
97
  filter = filter || block
98
98
  if filter
99
- @has_retry_filter = filter.is_a? Azure::Core::Http::RetryPolicy
99
+ @has_retry_filter ||= filter.is_a?(Azure::Core::Http::RetryPolicy)
100
100
  original_call = self._method(:call)
101
101
 
102
102
  # support 1.8.7 (define_singleton_method doesn't exist until 1.9.1)
@@ -42,6 +42,8 @@ module Azure
42
42
  rescue
43
43
  retry_data[:error] = $!
44
44
  end while should_retry?(response, retry_data)
45
+ # Assign the error when HTTP error is not thrown from the previous filter
46
+ retry_data[:error] = response.error if response && !response.success?
45
47
  if retry_data.has_key?(:error)
46
48
  raise retry_data[:error]
47
49
  else
@@ -18,7 +18,7 @@ module Azure
18
18
  class Version
19
19
  MAJOR = 0 unless defined? MAJOR
20
20
  MINOR = 1 unless defined? MINOR
21
- UPDATE = 5 unless defined? UPDATE
21
+ UPDATE = 6 unless defined? UPDATE
22
22
  PRE = nil unless defined? PRE
23
23
 
24
24
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
@@ -9,146 +9,146 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-22 00:00:00.000000000 Z
12
+ date: 2016-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0.9'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0.9'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: faraday_middleware
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0.10'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.10'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: nokogiri
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '1.6'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1.6'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: dotenv
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: minitest
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: '5'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '5'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: minitest-reporters
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: '1'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: '1'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: mocha
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ~>
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: '1.0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ~>
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: '1.0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: rake
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ~>
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: '10.0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ~>
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: '10.0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: timecop
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ~>
130
+ - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0.7'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ~>
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0.7'
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: bundler
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ~>
144
+ - - "~>"
145
145
  - !ruby/object:Gem::Version
146
146
  version: '1.11'
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ~>
151
+ - - "~>"
152
152
  - !ruby/object:Gem::Version
153
153
  version: '1.11'
154
154
  description: Microsoft Azure Client Core Library for Ruby SDK
@@ -157,8 +157,8 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - .gitignore
161
- - .travis.yml
160
+ - ".gitignore"
161
+ - ".travis.yml"
162
162
  - ChangeLog.md
163
163
  - Gemfile
164
164
  - README.md
@@ -198,12 +198,12 @@ require_paths:
198
198
  - lib
199
199
  required_ruby_version: !ruby/object:Gem::Requirement
200
200
  requirements:
201
- - - ! '>='
201
+ - - ">="
202
202
  - !ruby/object:Gem::Version
203
203
  version: 1.9.3
204
204
  required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ! '>='
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  requirements: []