cono_storage 0.0.4 → 0.1.0

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: ce8ea96efedf920f0974d09b95508b8dfb15fca5
4
- data.tar.gz: cbfa1c6b9570d3a479f9b9a5a8c238e62eaee032
3
+ metadata.gz: 9e5c77e883fc9197384ec63973f82988309c3c5b
4
+ data.tar.gz: 3bcdb135df6ae0054f5b2f9420445ec3d0ebe239
5
5
  SHA512:
6
- metadata.gz: 56b765b7649d15f5662af3ba1ff108e4ad6a9c0e5252fc447f153816e881f22261df7989db30e087b7b4484f02b49e5ce9855a45c853f4c3719134671d48b78c
7
- data.tar.gz: 3aef9dd6fef553bfa6f04c1e7cfb25c2cb22f29996b1f24ad09adbcce191821de306a2c4fe561b58ba10e54f08eb3525a65e8b5173572fd84b6b5a44d4fcdbfb
6
+ metadata.gz: 708debac5c0a76a889a759ea94fd9ac9b29be9de9958092ed85d3b3d4340eec476bd58636092c41d6e96aaea812eb8e8cdd859ddb825c480c7113c0663646b2d
7
+ data.tar.gz: 21fcf235aec863247085d409676cf89dcca6fd8c07aad35edaa72bd3d58ff67b4f5a58f19ed40fdab431c6b75783716e23bf1520916dea1eab1aaf836f5212ee
data/README.md CHANGED
@@ -10,6 +10,8 @@ OpenStack Swift Client for ConoHa オブジェクトストレージ
10
10
  require 'cono_storage'
11
11
 
12
12
  client = ConoStorage.new(
13
+ # via. https://identity.tyo1.conoha.io/
14
+ auth_url: 'https://identity.tyo1.conoha.io/v2.0/',
13
15
  tenant_id: 'b7daff9xxxxxxxxxxxxxxxxx',
14
16
  username: 1111111,
15
17
  password: '^passw0rd$',
@@ -18,8 +20,8 @@ client = ConoStorage.new(
18
20
  )
19
21
 
20
22
  client.put_container('awsome_gifs')# => ConoStorage::Response
21
- client.put_object('awsome_gifs','nyan.gif').url #=> "https://objectstore-...cnode.jp/.../awsome_gifs/nyan.gif"
22
- client.put_object('awsome_gifs', 'wan.gif', hearders: { 'X-Delete-At' => "1170774000" } ) # Custom Headers
23
+ client.put_object('awsome_gifs', 'nyan.gif', '/local/path/to/nyan.gif').url #=> "https://objectstore-...cnode.jp/.../awsome_gifs/nyan.gif"
24
+ client.put_object('awsome_gifs', 'wan.gif', '/local/path/to/wan.gif', headers: { 'X-Delete-At' => "1170774000" } ) # Custom Headers
23
25
  client.get_object('awsome_gifs', 'nyan.gif')
24
26
  client.delete_object('awsome_gifs', 'nyan.gif')
25
27
  client.delete_container('awsome_gifs').status #=> 204
@@ -27,7 +29,7 @@ client.delete_container('awsome_gifs').status #=> 204
27
29
 
28
30
  ## Documentation
29
31
 
30
- - [オブジェクトストレージ APIリファレンス - ConoHa](https://www.conoha.jp/guide/guide.php?g=52)
32
+ - [オブジェクトストレージ APIリファレンス - ConoHa](https://www.conoha.jp/docs/)
31
33
 
32
34
  ## Requirements
33
35
 
@@ -12,15 +12,14 @@ module ConoStorage
12
12
  "Content-Type" => "application/json"
13
13
  }
14
14
 
15
- # @param auth_url [String] default: https://ident-r1nd1001.cnode.jp/v2.0
16
15
  # @param web_mode [Boolean] true でコンテナやオブジェクトを作成/更新すると公開状態になります。
16
+ # @param auth_url [String]
17
17
  # @param tenant_id [String]
18
18
  # @param username [String]
19
19
  # @param password [String]
20
20
  # @param endpoint [String]
21
- def initialize(auth_url: 'https://ident-r1nd1001.cnode.jp/v2.0',
22
- web_mode: false,
23
- tenant_id: , username: , password: , endpoint: )
21
+ def initialize(web_mode: false,
22
+ auth_url: , tenant_id: , username: , password: , endpoint: )
24
23
  @auth_url = auth_url
25
24
  @web_mode = web_mode
26
25
  @tenant_id = tenant_id
@@ -1,3 +1,3 @@
1
1
  module ConoStorage
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cono_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kkosuge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -132,9 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.4.5
135
+ rubygems_version: 2.6.13
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: OpenStack Swift Client for ConoHa オブジェクトストレージ
139
139
  test_files: []
140
- has_rdoc: