activestorage_openstack 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +81 -13
- data/lib/active_storage/openstack/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 607ac208ec6618073ff36056499eb8fabd4fe1fe40f5266361506d82ba899c0b
|
4
|
+
data.tar.gz: 7a544de763c2a55567b64f96e014660f35dd4b4d9c42aaa0e61794051b11d403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17ec5e34a0fc125c344466f08038ba618784e25641ec334ce31a9299ac41b1af7e95b022db0fc65b1f93a524c0f8a91ecb9e0914ad6b52136b90482256549f1c
|
7
|
+
data.tar.gz: 7eec59c91ebeee5f2104b10f760db4a76a978ceb6d3ab7da335802cb0e7ea39414780fd52f89a0ff7e6adb3555cb0837cac0c6740f2c34e00ea0b4843698a917
|
data/README.md
CHANGED
@@ -1,30 +1,98 @@
|
|
1
|
-
[![Maintainability](https://api.codeclimate.com/v1/badges/75b77a2b9d9b42496264/maintainability)](https://codeclimate.com/github/argus-api-team/activestorage-openstack/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/75b77a2b9d9b42496264/test_coverage)](https://codeclimate.com/github/argus-api-team/activestorage-openstack/test_coverage) [![Build Status](https://travis-ci.org/argus-api-team/activestorage-openstack.svg?branch=master)](https://travis-ci.org/argus-api-team/activestorage-openstack)
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/activestorage_openstack.svg)](https://badge.fury.io/rb/activestorage_openstack) [![Maintainability](https://api.codeclimate.com/v1/badges/75b77a2b9d9b42496264/maintainability)](https://codeclimate.com/github/argus-api-team/activestorage-openstack/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/75b77a2b9d9b42496264/test_coverage)](https://codeclimate.com/github/argus-api-team/activestorage-openstack/test_coverage) [![Build Status](https://travis-ci.org/argus-api-team/activestorage-openstack.svg?branch=master)](https://travis-ci.org/argus-api-team/activestorage-openstack)
|
2
2
|
|
3
|
-
#
|
4
|
-
Short description and motivation.
|
3
|
+
# Active Storage OpenStack service
|
5
4
|
|
6
|
-
|
7
|
-
How to use my plugin.
|
5
|
+
Active Storage facilitates uploading files to a cloud storage service like Amazon S3, Google Cloud Storage, or Microsoft Azure Storage and attaching those files to Active Record objects.
|
8
6
|
|
9
|
-
|
10
|
-
|
7
|
+
This gem adds support for the OpenStack [Object Storage API](https://developer.openstack.org/api-ref/object-store/).
|
8
|
+
|
9
|
+
The goal is to interact with the OpenStack API without any third party tools (Swift, Fog...).
|
10
|
+
|
11
|
+
We use the standard [Net::HTTP](https://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html) ruby library.
|
12
|
+
|
13
|
+
We stay up-to-date with the [Ruby](https://www.ruby-lang.org/en/downloads/releases/) and [Rails](https://weblog.rubyonrails.org/releases/) versions.
|
14
|
+
|
15
|
+
## Getting Started
|
16
|
+
|
17
|
+
In your `Gemfile` add this line:
|
11
18
|
|
12
19
|
```ruby
|
13
20
|
gem 'activestorage_openstack'
|
14
21
|
```
|
15
22
|
|
16
|
-
|
23
|
+
### Prerequisites
|
24
|
+
|
25
|
+
In your Rails `config/storage.yml` file add your OpenStack configuration:
|
26
|
+
|
27
|
+
```yml
|
28
|
+
openstack:
|
29
|
+
service: Openstack
|
30
|
+
container: __container__
|
31
|
+
authentication_url: __authentication_url__
|
32
|
+
region: __region__
|
33
|
+
credentials:
|
34
|
+
username: __username__
|
35
|
+
api_key: __api_key__
|
36
|
+
temporary_url_key: __temporary_url_key__
|
37
|
+
```
|
38
|
+
|
39
|
+
Then add to your `config/environments/*.rb` files:
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
Rails.application.configure do
|
43
|
+
...
|
44
|
+
config.active_storage.service = :openstack
|
45
|
+
...
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Installing
|
50
|
+
|
51
|
+
If you want to add features to the gem, clone the repository and use Docker:
|
52
|
+
|
17
53
|
```bash
|
18
|
-
$
|
54
|
+
$ git clone https://github.com/argus-api-team/activestorage-openstack.git
|
55
|
+
$ cd activestorage-openstack
|
56
|
+
$ docker image build -t activestorage_openstack .
|
19
57
|
```
|
20
58
|
|
21
|
-
|
59
|
+
## Running the tests
|
60
|
+
|
61
|
+
We use the [Guard](https://github.com/guard/guard) gem to run tests:
|
62
|
+
|
22
63
|
```bash
|
23
|
-
$
|
64
|
+
$ docker container run -e RAILS_ENV=test -v $(pwd):/app -it activestorage_openstack guard -g red_green_refactor -c
|
24
65
|
```
|
25
66
|
|
67
|
+
The `red_green_refactor` Guard group means:
|
68
|
+
* It runs Rspec tests with [Spring](https://github.com/rails/spring).
|
69
|
+
* It watches `Gemfile` for changes.
|
70
|
+
* It uses [Rubocop](https://github.com/rubocop-hq/rubocop) and [Reek](https://github.com/troessner/reek) for linting/coding style.
|
71
|
+
|
72
|
+
See [Guardfile](Guardfile) for details.
|
73
|
+
|
74
|
+
## Built With
|
75
|
+
|
76
|
+
* [Net::HTTP](https://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html) - From the standard Ruby Library.
|
77
|
+
|
26
78
|
## Contributing
|
27
|
-
|
79
|
+
|
80
|
+
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
|
81
|
+
|
82
|
+
## Versioning
|
83
|
+
|
84
|
+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
|
85
|
+
|
86
|
+
## Authors
|
87
|
+
|
88
|
+
* **Mickael PALMA** - *Initial work* - [mickael-palma-argus](https://github.com/mickael-palma-argus)
|
89
|
+
|
90
|
+
See also the list of [contributors](https://github.com/argus-api-team/activestorage-openstack/graphs/contributors) who participated in this project.
|
28
91
|
|
29
92
|
## License
|
30
|
-
|
93
|
+
|
94
|
+
This project is licensed under the MIT License - see the [MIT-LICENSE](MIT-LICENSE) file for details
|
95
|
+
|
96
|
+
## Acknowledgments
|
97
|
+
|
98
|
+
* Inspiration from [@chaadow's](https://github.com/chaadow) [activestorage-openstack plugin](https://github.com/chaadow/activestorage-openstack)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage_openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mickael Palma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: marcel
|
@@ -138,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: 2.6.2
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - ">="
|