rabbit_swift 0.0.2 → 0.0.5

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: bfe72acc9ee818718e9001bf9b86402d3f055e99
4
- data.tar.gz: 86526555a0eb176c298da994fd80e77e48aa75bb
3
+ metadata.gz: f4a9f95b3ea30824c00c5c7e609f1b82b730a644
4
+ data.tar.gz: 9c89bb7ecf80b46ffda4b2eae281cd4a23671ee9
5
5
  SHA512:
6
- metadata.gz: 08df221ebf4c6bef43ab9967db428a7a3cfde74c4f21a7c904fbfd82d6f9a40d195160cc93d0450931081e8ecd406289af93bed18c84acbbc43cf99bc89837cb
7
- data.tar.gz: 75c87360c1aa368a1ca2e2909d2db3c3000becbc88cd45d3e69f0407443cff2e505b5dc92e457f37cc76781a374803047c61948c1ee1899f2f6064a11f1b6602
6
+ metadata.gz: 7a974dae91e03855c19c77be3143b53a4e314d23c56907e606381b83a49b69ad7d35d9f97c4a986eac4f002cd994665b537901403a1fe95bc48c0cd82569bf11
7
+ data.tar.gz: dfd2bb561b40cc71b82665db6f13e3fc8eaba3078eb95f7c6d7efdfabfd66f407030d015423d14c010c0ffc1b372794fde20bd1c317c4570c2e6b649d6924d45
@@ -15,6 +15,7 @@ module RabbitSwift
15
15
  @tenantName = opt['tenantName']
16
16
  @username = opt['username']
17
17
  @password = opt['password']
18
+ @send_timeout = opt['send_timeout'];
18
19
  end
19
20
 
20
21
  #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": "************"}}}'
@@ -22,6 +23,7 @@ module RabbitSwift
22
23
  body = build_auth_json
23
24
 
24
25
  http_client = HTTPClient.new
26
+
25
27
  response = http_client.post_content(@auth_url, body, 'Content-Type' => 'application/json')
26
28
  response_json_body = JSON.load(response)
27
29
 
@@ -39,6 +41,7 @@ module RabbitSwift
39
41
  file_path = path_name_obj.expand_path.to_s
40
42
 
41
43
  http_client = HTTPClient.new
44
+ http_client.send_timeout = @send_timeout if(!@send_timeout)
42
45
 
43
46
  target_url = add_filename_to_url(end_point, file_path)
44
47
 
@@ -105,4 +108,4 @@ module RabbitSwift
105
108
 
106
109
  end
107
110
 
108
- end
111
+ end
@@ -1,3 +1,3 @@
1
1
  module RabbitSwift
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_swift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.5
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-07 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: httpclient
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: OpenStack Swift Simple Client. main target for "ConoHa VPS"
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE.txt
65
65
  - README.md
@@ -78,12 +78,12 @@ require_paths:
78
78
  - lib
79
79
  required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []