rabbit_swift 0.0.8 → 0.0.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: 40db5e5b9c581d0f07771d50a9731bf3e8cbcf65
4
- data.tar.gz: 4a287a99ce28ce615add3e24c570c1e2402308e5
3
+ metadata.gz: c2504ee92442fcb87900739d6301cebe443feda5
4
+ data.tar.gz: 757e517273594fb419e45e7701979e3618eaa5bc
5
5
  SHA512:
6
- metadata.gz: 15342973e301f91eab924fe6e387b7c3c8736a5f72d0640d7de559705a43dc224dd54af3486fe6896facf36e945ba46e15a8716f25b24880f18d4248512f5f1d
7
- data.tar.gz: ef01f03696f1dac593a0cef0b934d00f074ab2bba11222df4e1bf3c1c6e98e6d142fff2c39cfe53865012a45a31b42403fd1a80837a474d408cc2176e794ac8d
6
+ metadata.gz: e7b7121dece88041367117b9ab062000f097b57a3e813f8bc26dd207508ea02bc2e66755f0d7b36667efad4426345f5bcf88cfd373b53770442349e038643596
7
+ data.tar.gz: cd21a03f5a5017476a5edf45b3444c06b1ef610fc93faa14f99c889c3c0d6e262f829ed12dd373b03df3a548646f378dc92c23df408e2fa0f96069b56a270429
@@ -36,7 +36,7 @@ module RabbitSwift
36
36
  auth_header = {
37
37
  'X-Auth-Token' => token
38
38
  }
39
-
39
+ auth_header['X-Web-Mode'] = 'TRUE' if @web_mode
40
40
  #相対パスがきた時のために絶対パスに変換
41
41
  path_name_obj = Pathname.new(input_file_path);
42
42
  file_path = path_name_obj.expand_path.to_s
@@ -49,13 +49,8 @@ module RabbitSwift
49
49
  puts 'upload_url -> ' + target_url
50
50
 
51
51
  if File::ftype(file_path) == 'directory'
52
- auth_header = {
53
- 'X-Auth-Token' => token,
54
- 'Content-Type' => 'application/directory',
55
- 'Content-Length' => 0
56
- }
57
-
58
- auth_header['X-Web-Mode'] = 'TRUE' if @web_mode
52
+ auth_header['Content-Type'] = 'application/directory'
53
+ auth_header['Content-Length'] = 0
59
54
  @res = http_client.put(URI.parse(URI.encode(target_url)), file_path, auth_header)
60
55
  if @res.status == UPLOAD_SUCCESS_HTTP_STATUS_CODE
61
56
  Dir::foreach(file_path) {|f|
@@ -1,3 +1,3 @@
1
1
  module RabbitSwift
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_swift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKB428