Skip to content

Commit 6666c79

Browse files
author
Mattia Roccoberton
committed
Bump to version 1.0.0
1 parent f8fde2c commit 6666c79

8 files changed

Lines changed: 17 additions & 9 deletions

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Active Storage DB
2+
23
[![gem version](https://badge.fury.io/rb/active_storage_db.svg)](https://badge.fury.io/rb/active_storage_db)
34
[![linters](https://github.com/blocknotes/active_storage_db/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/active_storage_db/actions/workflows/linters.yml)
45
[![specs Postgres](https://github.com/blocknotes/active_storage_db/actions/workflows/postgres.yml/badge.svg)](https://github.com/blocknotes/active_storage_db/actions/workflows/postgres.yml)
@@ -7,37 +8,44 @@
78
An Active Storage service upload/download plugin that stores files in a PostgreSQL or MySQL database.
89

910
Main features:
11+
- supports Rails 6.0, 6.1 and 7.0;
1012
- all service methods implemented;
11-
- data is saved using a binary field (or blob);
12-
- RSpec tests.
13+
- attachment data stored in a binary field (or blob).
1314

1415
Useful also with platforms like Heroku (due to their ephemeral file system).
1516

1617
## Installation
18+
1719
- Setup Active Storage in your Rails application
1820
- Add to your Gemfile `gem 'active_storage_db'` (and execute: `bundle`)
1921
- Install the gem migrations: `bin/rails active_storage_db:install:migrations` (and execute: `bin/rails db:migrate`)
2022
- Add to your `config/routes.rb`: `mount ActiveStorageDB::Engine => '/active_storage_db'`
2123
- Change Active Storage service in *config/environments/development.rb* to: `config.active_storage.service = :db`
2224
- Add to *config/storage.yml*:
25+
2326
```
2427
db:
2528
service: DB
2629
```
2730

2831
## Misc
32+
2933
Some rake tasks are available:
34+
3035
- `asdb:list`: list the stored attachments
3136
- `asdb:get`: download an attachment (ex. `bin/rails "asdb:get[ruby-logo.png,/tmp]"`)
3237

3338
## Do you like it? Star it!
39+
3440
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
3541

3642
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
3743

3844
## Contributors
45+
3946
- [Mattia Roccoberton](https://blocknot.es/): author
4047
- Inspired by [activestorage-database-service](https://github.com/TitovDigital/activestorage-database-service) project
4148

4249
## License
50+
4351
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

gemfiles/rails_6_0_mysql.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (0.2.0)
4+
active_storage_db (1.0.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_6_0_postgres.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (0.2.0)
4+
active_storage_db (1.0.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_6_1_mysql.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (0.2.0)
4+
active_storage_db (1.0.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_6_1_postgres.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (0.2.0)
4+
active_storage_db (1.0.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_7_0_mysql.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (0.2.0)
4+
active_storage_db (1.0.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_7_0_postgres.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (0.2.0)
4+
active_storage_db (1.0.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

lib/active_storage_db/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module ActiveStorageDB
4-
VERSION = '0.2.0'
4+
VERSION = '1.0.0'
55
end

0 commit comments

Comments
 (0)