rabbit_swift 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3562a0c64c6440a1c31ea0065aed13c2517f4a4
4
- data.tar.gz: dd3e54d8003817aa73d5fe86b79c6545b79ff47e
3
+ metadata.gz: 40db5e5b9c581d0f07771d50a9731bf3e8cbcf65
4
+ data.tar.gz: 4a287a99ce28ce615add3e24c570c1e2402308e5
5
5
  SHA512:
6
- metadata.gz: 055f6fd54c12e5177582f8c8dd6c396b9841d7b2a5da5d7035f0b0e1773db7d4cbdffcc06e69f39aa32bb2fd7ac60d8998c7852fe5cccc41a90c081144ed32d1
7
- data.tar.gz: 77ff5b80fc357c61d999ebf2b05624893195620d1d695ee2cabd47fb470c9637d5a2dbeccd1228760b11c2c8feebce5f297b071a3fd3156787a9c6c986ecc31c
6
+ metadata.gz: 15342973e301f91eab924fe6e387b7c3c8736a5f72d0640d7de559705a43dc224dd54af3486fe6896facf36e945ba46e15a8716f25b24880f18d4248512f5f1d
7
+ data.tar.gz: ef01f03696f1dac593a0cef0b934d00f074ab2bba11222df4e1bf3c1c6e98e6d142fff2c39cfe53865012a45a31b42403fd1a80837a474d408cc2176e794ac8d
@@ -16,6 +16,7 @@ module RabbitSwift
16
16
  @username = opt['username']
17
17
  @password = opt['password']
18
18
  @send_timeout = opt['send_timeout'];
19
+ @web_mode = opt['web_mode'];
19
20
  end
20
21
 
21
22
  #curl -i 'https://********.jp/v2.0/tokens' -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"auth": {"tenantName": "1234567", "passwordCredentials": {"username": "1234567", "password": "************"}}}'
@@ -53,6 +54,8 @@ module RabbitSwift
53
54
  'Content-Type' => 'application/directory',
54
55
  'Content-Length' => 0
55
56
  }
57
+
58
+ auth_header['X-Web-Mode'] = 'TRUE' if @web_mode
56
59
  @res = http_client.put(URI.parse(URI.encode(target_url)), file_path, auth_header)
57
60
  if @res.status == UPLOAD_SUCCESS_HTTP_STATUS_CODE
58
61
  Dir::foreach(file_path) {|f|
@@ -1,3 +1,3 @@
1
1
  module RabbitSwift
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_swift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKB428
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-19 00:00:00.000000000 Z
11
+ date: 2014-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.4.1
91
+ rubygems_version: 2.2.2
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: OpenStack Swift Simple Client