activestorage-openstack 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f068ce81f7c07ee34c47354a319066bc1088c1db4c0ef476e83ade1e7cb6218
4
- data.tar.gz: 3cb487a38d64afd812b22606840df8873535254110c9ddf8ab714e802d04fa09
3
+ metadata.gz: a7778e1d924a4d94af6968e69dad3c1c1b001bfffa0f759909a6a82c464a1551
4
+ data.tar.gz: 9c845cff8c1e3b0b5d8a663e3f7ea18c8ef7bb2c0c080bcb027f4f6f05345735
5
5
  SHA512:
6
- metadata.gz: 713f0c8cce327b1a790214c8af3435d38a112f36e5c57aea02789ac5d7ef8995adb96177e9197e7884572f8d8bd0fae5cf8b423cdab2f0a7251ca6e8177574b5
7
- data.tar.gz: fb2d0dd6bb9a15a4fa62df6a6552242a2b6e221016199732bef5e56e00ac2fc35a7d3e10a488f5eb0fc5c9ee65b3cf541f30c88e4bff4a72cf0da0a127664f81
6
+ metadata.gz: 744e045d9bc821a180e025e1d1bb8029f6d38d3c3fc66b1467797c3785b11ebc1163c7ff6b9edefbc54a503bcb1be7b60b5419bd49ea8ed0e432825fed659b5f
7
+ data.tar.gz: 2367826f987b33467ed112771da6cbf683f574aeddb96ea9d29b27d39a00d9c08c27e4a3f49830cd6d58f3f9147b7df1fe20106044d5365cd4fd25fe72f556f4
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # ActiveStorage::Openstack
2
2
  This rails plugin wraps the OpenStack Swift provider as an Active Storage service.
3
- It is a rewrite/refactor of [activestorage-openstack](https://github.com/jeffreyguenther/activestorage-openstack).
3
+
4
+ Starting from version `0.4`, this gem enforces version `0.2.2` of `fog-openstack` which introduces breaking changes to the configuration keys in `config/storage.yml`. Please read the [MIGRATING from `0.1.x` to `0.2.x`](#migrating-from-fog-openstack-01x-to-02x) section
4
5
 
5
6
  ## Installation
6
7
  Add this line to your application's Gemfile:
@@ -44,6 +45,27 @@ For example, for the `dev_openstack` entry above, change the `config` variable i
44
45
  # Store uploaded files on the local file system (see config/storage.yml for options)
45
46
  config.active_storage.service = :dev_openstack
46
47
  ```
48
+
49
+ ## Migrating from fog-openstack `0.1.x` to `0.2.x`
50
+
51
+ 1- From your configuration file (`config/storage.yml`) change the `openstack_auth_uri` from :
52
+ ```yaml
53
+ openstack_auth_url: https://auth.example.com/v2.0/tokens
54
+ ```
55
+ to :
56
+ ```yaml
57
+ openstack_auth_url: https://auth.example.com
58
+ ```
59
+ ==> **specifying the version in the `openstack_auth_url` key would break things**
60
+
61
+ 2- Second, specify the Keystone version (default is `v3.0`, however it is retro-compatible with v2.0 (So for now, adding this key won't affect the normal functioning of this gem, but is highly recommended)
62
+ - *Additionally v2.0 is deprecated.*
63
+ ```yaml
64
+ openstack_identity_api_version: v2.0
65
+ ```
66
+
67
+ For further informations, please refer to [fog-openstack's README](https://github.com/fog/fog-openstack/)
68
+
47
69
  ## Setting up a container
48
70
 
49
71
  From your OpenStack provider website, create or sign in to your account.
@@ -1,5 +1,5 @@
1
1
  module ActiveStorage
2
2
  module Openstack
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chedli Bourguiba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-09 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-openstack
@@ -16,16 +16,16 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.27
19
+ version: 0.2.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.27
26
+ version: 0.2.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: mime-types
28
+ name: marcel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: marcel
42
+ name: mime-types
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,33 +53,33 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: sqlite3
56
+ name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
61
+ version: 5.2.0
62
+ type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 5.2.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: rails
70
+ name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 5.2.0
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 5.2.0
82
+ version: '0'
83
83
  description: Wraps the OpenStack Swift/Storage service as an Active Storage service
84
84
  email:
85
85
  - bourguiba.chedli@gmail.com