rabbit_swift 0.1.8 → 0.1.9

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: 4cffc087b0e869ce78372a4ca7dfd36eee9dbd9e
4
- data.tar.gz: 5dc756e113336aaa8ac8782e07bac4458488d045
3
+ metadata.gz: 331e3d53f342889aae28bd7b140e2cd462a564e5
4
+ data.tar.gz: 6663155e262290b09ba098dfc498192f39c216e4
5
5
  SHA512:
6
- metadata.gz: cfff56c5d253c0a1cca335ef823a63bb4a180f25d2747c96a15fa82c9990eeb0f17e111bc30205330af35ec5d923ae50008ace4b00ca0acca7008bdc25b02aa4
7
- data.tar.gz: 2650e3333b02b0d79b0282587e3fc2bb235e532938f11e2c486cf3ba0afc03f48d79cbac665055154afac13a4f8e520f42ebfc724c125eee58a85f4e79ebdd96
6
+ metadata.gz: 8b62d75f4b65acc3cb1a3154b4fa02864d2fab0dc703a285d94d44264a8a8fe5d98660e349b21b968bd86889de4ad5d5a240245ed9ccb813c3be706b2ca05cc8
7
+ data.tar.gz: f25345f256f911e610584f21e513adb4f775ff31529dcbf78c20b10c406455592e52a41c1c40b4ad825543bc0922473b50110c2ca667300c4553e8cadc279260
File without changes
@@ -21,6 +21,7 @@ module RabbitSwift
21
21
  @web_file_listing = opt['web_file_listing'];
22
22
  @delete_at = opt['delete_at']
23
23
  @delete_after = opt['delete_after']
24
+ @meta_data_hash = opt['meta_data_hash']
24
25
  end
25
26
 
26
27
  #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": "************"}}}'
@@ -59,6 +60,9 @@ module RabbitSwift
59
60
  if @delete_after
60
61
  auth_header['X-Delete-After'] = @delete_after
61
62
  end
63
+ if @meta_data_hash
64
+ create_meta_data_header(auth_header, @meta_data_hash)
65
+ end
62
66
 
63
67
  if File::ftype(file_path) == 'directory'
64
68
  auth_header['Content-Length'] = 0
@@ -128,6 +132,13 @@ module RabbitSwift
128
132
  return decorate_url
129
133
  end
130
134
 
135
+ def create_meta_data_header(auth_header, meta_data_hash)
136
+ #X-Object-Meta-{name}
137
+ dataHash.each{|key, value|
138
+ auth_header['X-Object-Meta-' + key] = value
139
+ }
140
+ end
141
+
131
142
  end
132
143
 
133
144
  end
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module RabbitSwift
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
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.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKB428
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-18 00:00:00.000000000 Z
11
+ date: 2015-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -79,7 +79,11 @@ files:
79
79
  - README.md
80
80
  - Rakefile
81
81
  - lib/rabbit_swift.rb
82
+ - lib/rabbit_swift/account/.gitkeep
82
83
  - lib/rabbit_swift/client.rb
84
+ - lib/rabbit_swift/container/.gitkeep
85
+ - lib/rabbit_swift/object/delete.rb
86
+ - lib/rabbit_swift/object/head.rb
83
87
  - lib/rabbit_swift/version.rb
84
88
  - rabbit_swift.gemspec
85
89
  homepage: ''