azure-storage-queue 1.0.1 → 2.0.3

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: 13666083813506f68dad71a64f72a7c0e0336632
4
- data.tar.gz: c96770983cbd390c563a31eb0efa5d2e392b40d8
3
+ metadata.gz: 276abebe4cd6f333e10d93bf4d38f0a48f82f984
4
+ data.tar.gz: 2205016537be2ef7c35a45dbfb3aa1bf88b4887e
5
5
  SHA512:
6
- metadata.gz: fe5fd5f483b68b23b0a1a86b109b1404e0aa114850e7949da77347ed1c9529882348e5b49575abde20592041f6e0bc5bf0a38cbb6f3d06ed541fd1f499805fab
7
- data.tar.gz: be0ae5aeea47a180dfe889aa9d42ca440d8a1d407b7bf0e72a42b15e181562a552689b2bf3075b9fec09e70ce95f6bee52d946f78e43369afba644ab5ca431d0
6
+ metadata.gz: cc1a6e812e3e85166b7dc640905c6c7d5a64546cd1a6fedbb6f37735c07f6198d566943135af62bcba46ca8500251f97d6718233ab2804a0eb6c3ea07bdde10f
7
+ data.tar.gz: f77a9255aba10367dcf322be95813aee65116e6c1ffd5b73e7c39b41015a8b37ae4495e32472f0a2dc513dda242554bebc95eceba344a08c9452a2409fd82f7c
@@ -1,43 +1,43 @@
1
- # frozen_string_literal: true
2
-
3
- #-------------------------------------------------------------------------
4
- # # Copyright (c) Microsoft and contributors. All rights reserved.
5
- #
6
- # The MIT License(MIT)
7
-
8
- # Permission is hereby granted, free of charge, to any person obtaining a copy
9
- # of this software and associated documentation files(the "Software"), to deal
10
- # in the Software without restriction, including without limitation the rights
11
- # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
- # copies of the Software, and to permit persons to whom the Software is
13
- # furnished to do so, subject to the following conditions :
14
-
15
- # The above copyright notice and this permission notice shall be included in
16
- # all copies or substantial portions of the Software.
17
-
18
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- # THE SOFTWARE.
25
- #--------------------------------------------------------------------------
26
- require "rubygems"
27
- require "nokogiri"
28
- require "base64"
29
-
30
- require "azure/storage/common"
31
-
32
- module Azure
33
- module Storage
34
- module Queue
35
- autoload :Default, "azure/storage/queue/default"
36
- autoload :Version, "azure/storage/queue/version"
37
- autoload :QueueService, "azure/storage/queue/queue_service"
38
- autoload :Message, "azure/storage/queue/message"
39
- autoload :Serialization, "azure/storage/queue/serialization"
40
- autoload :Queue, "azure/storage/queue/queue"
41
- end
42
- end
43
- end
1
+ # frozen_string_literal: true
2
+
3
+ #-------------------------------------------------------------------------
4
+ # # Copyright (c) Microsoft and contributors. All rights reserved.
5
+ #
6
+ # The MIT License(MIT)
7
+
8
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ # of this software and associated documentation files(the "Software"), to deal
10
+ # in the Software without restriction, including without limitation the rights
11
+ # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
+ # copies of the Software, and to permit persons to whom the Software is
13
+ # furnished to do so, subject to the following conditions :
14
+
15
+ # The above copyright notice and this permission notice shall be included in
16
+ # all copies or substantial portions of the Software.
17
+
18
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ # THE SOFTWARE.
25
+ #--------------------------------------------------------------------------
26
+ require "rubygems"
27
+ require "nokogiri"
28
+ require "base64"
29
+
30
+ require "azure/storage/common"
31
+
32
+ module Azure
33
+ module Storage
34
+ module Queue
35
+ autoload :Default, "azure/storage/queue/default"
36
+ autoload :Version, "azure/storage/queue/version"
37
+ autoload :QueueService, "azure/storage/queue/queue_service"
38
+ autoload :Message, "azure/storage/queue/message"
39
+ autoload :Serialization, "azure/storage/queue/serialization"
40
+ autoload :Queue, "azure/storage/queue/queue"
41
+ end
42
+ end
43
+ end
@@ -1,84 +1,84 @@
1
- # frozen_string_literal: true
2
-
3
- #-------------------------------------------------------------------------
4
- # # Copyright (c) Microsoft and contributors. All rights reserved.
5
- #
6
- # The MIT License(MIT)
7
-
8
- # Permission is hereby granted, free of charge, to any person obtaining a copy
9
- # of this software and associated documentation files(the "Software"), to deal
10
- # in the Software without restriction, including without limitation the rights
11
- # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
- # copies of the Software, and to permit persons to whom the Software is
13
- # furnished to do so, subject to the following conditions :
14
-
15
- # The above copyright notice and this permission notice shall be included in
16
- # all copies or substantial portions of the Software.
17
-
18
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- # THE SOFTWARE.
25
- #--------------------------------------------------------------------------
26
-
27
- require "rbconfig"
28
- require "azure/storage/queue/version"
29
-
30
- module Azure::Storage::Queue
31
- module Default
32
- # Default REST service (STG) version number
33
- STG_VERSION = "2016-05-31"
34
-
35
- # The number of default concurrent requests for parallel operation.
36
- DEFAULT_PARALLEL_OPERATION_THREAD_COUNT = 1
37
-
38
- # Constant representing a kilobyte (Non-SI version).
39
- KB = 1024
40
- # Constant representing a megabyte (Non-SI version).
41
- MB = 1024 * 1024
42
- # Constant representing a gigabyte (Non-SI version).
43
- GB = 1024 * 1024 * 1024
44
-
45
- # Specifies HTTP.
46
- HTTP = "http"
47
- # Specifies HTTPS.
48
- HTTPS = "https"
49
- # Default HTTP port.
50
- DEFAULT_HTTP_PORT = 80
51
- # Default HTTPS port.
52
- DEFAULT_HTTPS_PORT = 443
53
-
54
- # Marker for atom metadata.
55
- XML_METADATA_MARKER = "$"
56
- # Marker for atom value.
57
- XML_VALUE_MARKER = "_"
58
-
59
- # Default User Agent header string
60
- USER_AGENT = "Azure-Storage/#{Azure::Storage::Queue::Version.to_uas}-#{Azure::Storage::Common::Version.to_uas} (Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}; #{Azure::Storage::Common::Default.os})".freeze
61
- end
62
-
63
- # Defines constants for use with queue storage.
64
- module QueueConstants
65
- # XML element for QueueMessage.
66
- QUEUE_MESSAGE_ELEMENT = "QueueMessage"
67
-
68
- # XML element for MessageText.
69
- MESSAGE_TEXT_ELEMENT = "MessageText"
70
- end
71
-
72
- module QueueErrorCodeStrings
73
- QUEUE_NOT_FOUND = "QueueNotFound"
74
- QUEUE_DISABLED = "QueueDisabled"
75
- QUEUE_ALREADY_EXISTS = "QueueAlreadyExists"
76
- QUEUE_NOT_EMPTY = "QueueNotEmpty"
77
- QUEUE_BEING_DELETED = "QueueBeingDeleted"
78
- POP_RECEIPT_MISMATCH = "PopReceiptMismatch"
79
- INVALID_PARAMETER = "InvalidParameter"
80
- MESSAGE_NOT_FOUND = "MessageNotFound"
81
- MESSAGE_TOO_LARGE = "MessageTooLarge"
82
- INVALID_MARKER = "InvalidMarker"
83
- end
84
- end
1
+ # frozen_string_literal: true
2
+
3
+ #-------------------------------------------------------------------------
4
+ # # Copyright (c) Microsoft and contributors. All rights reserved.
5
+ #
6
+ # The MIT License(MIT)
7
+
8
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ # of this software and associated documentation files(the "Software"), to deal
10
+ # in the Software without restriction, including without limitation the rights
11
+ # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
+ # copies of the Software, and to permit persons to whom the Software is
13
+ # furnished to do so, subject to the following conditions :
14
+
15
+ # The above copyright notice and this permission notice shall be included in
16
+ # all copies or substantial portions of the Software.
17
+
18
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ # THE SOFTWARE.
25
+ #--------------------------------------------------------------------------
26
+
27
+ require "rbconfig"
28
+ require "azure/storage/queue/version"
29
+
30
+ module Azure::Storage::Queue
31
+ module Default
32
+ # Default REST service (STG) version number
33
+ STG_VERSION = "2017-11-09"
34
+
35
+ # The number of default concurrent requests for parallel operation.
36
+ DEFAULT_PARALLEL_OPERATION_THREAD_COUNT = 1
37
+
38
+ # Constant representing a kilobyte (Non-SI version).
39
+ KB = 1024
40
+ # Constant representing a megabyte (Non-SI version).
41
+ MB = 1024 * 1024
42
+ # Constant representing a gigabyte (Non-SI version).
43
+ GB = 1024 * 1024 * 1024
44
+
45
+ # Specifies HTTP.
46
+ HTTP = "http"
47
+ # Specifies HTTPS.
48
+ HTTPS = "https"
49
+ # Default HTTP port.
50
+ DEFAULT_HTTP_PORT = 80
51
+ # Default HTTPS port.
52
+ DEFAULT_HTTPS_PORT = 443
53
+
54
+ # Marker for atom metadata.
55
+ XML_METADATA_MARKER = "$"
56
+ # Marker for atom value.
57
+ XML_VALUE_MARKER = "_"
58
+
59
+ # Default User Agent header string
60
+ USER_AGENT = "Azure-Storage/#{Azure::Storage::Queue::Version.to_uas}-#{Azure::Storage::Common::Version.to_uas} (Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}; #{Azure::Storage::Common::Default.os})".freeze
61
+ end
62
+
63
+ # Defines constants for use with queue storage.
64
+ module QueueConstants
65
+ # XML element for QueueMessage.
66
+ QUEUE_MESSAGE_ELEMENT = "QueueMessage"
67
+
68
+ # XML element for MessageText.
69
+ MESSAGE_TEXT_ELEMENT = "MessageText"
70
+ end
71
+
72
+ module QueueErrorCodeStrings
73
+ QUEUE_NOT_FOUND = "QueueNotFound"
74
+ QUEUE_DISABLED = "QueueDisabled"
75
+ QUEUE_ALREADY_EXISTS = "QueueAlreadyExists"
76
+ QUEUE_NOT_EMPTY = "QueueNotEmpty"
77
+ QUEUE_BEING_DELETED = "QueueBeingDeleted"
78
+ POP_RECEIPT_MISMATCH = "PopReceiptMismatch"
79
+ INVALID_PARAMETER = "InvalidParameter"
80
+ MESSAGE_NOT_FOUND = "MessageNotFound"
81
+ MESSAGE_TOO_LARGE = "MessageTooLarge"
82
+ INVALID_MARKER = "InvalidMarker"
83
+ end
84
+ end
@@ -1,41 +1,41 @@
1
- # frozen_string_literal: true
2
-
3
- #-------------------------------------------------------------------------
4
- # # Copyright (c) Microsoft and contributors. All rights reserved.
5
- #
6
- # The MIT License(MIT)
7
-
8
- # Permission is hereby granted, free of charge, to any person obtaining a copy
9
- # of this software and associated documentation files(the "Software"), to deal
10
- # in the Software without restriction, including without limitation the rights
11
- # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
- # copies of the Software, and to permit persons to whom the Software is
13
- # furnished to do so, subject to the following conditions :
14
-
15
- # The above copyright notice and this permission notice shall be included in
16
- # all copies or substantial portions of the Software.
17
-
18
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- # THE SOFTWARE.
25
- #--------------------------------------------------------------------------
26
- module Azure::Storage
27
- module Queue
28
- class Message
29
- def initialize
30
- yield self if block_given?
31
- end
32
- attr_accessor :id
33
- attr_accessor :insertion_time
34
- attr_accessor :expiration_time
35
- attr_accessor :dequeue_count
36
- attr_accessor :message_text
37
- attr_accessor :time_next_visible
38
- attr_accessor :pop_receipt
39
- end
40
- end
41
- end
1
+ # frozen_string_literal: true
2
+
3
+ #-------------------------------------------------------------------------
4
+ # # Copyright (c) Microsoft and contributors. All rights reserved.
5
+ #
6
+ # The MIT License(MIT)
7
+
8
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ # of this software and associated documentation files(the "Software"), to deal
10
+ # in the Software without restriction, including without limitation the rights
11
+ # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
+ # copies of the Software, and to permit persons to whom the Software is
13
+ # furnished to do so, subject to the following conditions :
14
+
15
+ # The above copyright notice and this permission notice shall be included in
16
+ # all copies or substantial portions of the Software.
17
+
18
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ # THE SOFTWARE.
25
+ #--------------------------------------------------------------------------
26
+ module Azure::Storage
27
+ module Queue
28
+ class Message
29
+ def initialize
30
+ yield self if block_given?
31
+ end
32
+ attr_accessor :id
33
+ attr_accessor :insertion_time
34
+ attr_accessor :expiration_time
35
+ attr_accessor :dequeue_count
36
+ attr_accessor :message_text
37
+ attr_accessor :time_next_visible
38
+ attr_accessor :pop_receipt
39
+ end
40
+ end
41
+ end
@@ -1,38 +1,38 @@
1
- # frozen_string_literal: true
2
-
3
- #-------------------------------------------------------------------------
4
- # # Copyright (c) Microsoft and contributors. All rights reserved.
5
- #
6
- # The MIT License(MIT)
7
-
8
- # Permission is hereby granted, free of charge, to any person obtaining a copy
9
- # of this software and associated documentation files(the "Software"), to deal
10
- # in the Software without restriction, including without limitation the rights
11
- # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
- # copies of the Software, and to permit persons to whom the Software is
13
- # furnished to do so, subject to the following conditions :
14
-
15
- # The above copyright notice and this permission notice shall be included in
16
- # all copies or substantial portions of the Software.
17
-
18
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- # THE SOFTWARE.
25
- #--------------------------------------------------------------------------
26
- module Azure::Storage
27
- module Queue
28
- class Queue
29
- def initialize
30
- @metadata = {}
31
- yield self if block_given?
32
- end
33
-
34
- attr_accessor :name
35
- attr_accessor :metadata
36
- end
37
- end
38
- end
1
+ # frozen_string_literal: true
2
+
3
+ #-------------------------------------------------------------------------
4
+ # # Copyright (c) Microsoft and contributors. All rights reserved.
5
+ #
6
+ # The MIT License(MIT)
7
+
8
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ # of this software and associated documentation files(the "Software"), to deal
10
+ # in the Software without restriction, including without limitation the rights
11
+ # to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12
+ # copies of the Software, and to permit persons to whom the Software is
13
+ # furnished to do so, subject to the following conditions :
14
+
15
+ # The above copyright notice and this permission notice shall be included in
16
+ # all copies or substantial portions of the Software.
17
+
18
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ # THE SOFTWARE.
25
+ #--------------------------------------------------------------------------
26
+ module Azure::Storage
27
+ module Queue
28
+ class Queue
29
+ def initialize
30
+ @metadata = {}
31
+ yield self if block_given?
32
+ end
33
+
34
+ attr_accessor :name
35
+ attr_accessor :metadata
36
+ end
37
+ end
38
+ end