rails_s3_uploader 0.1.0 → 0.1.1
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 +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +62 -15
- data/lib/rails_s3_uploader/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 139d3f98e569ddbb1be9e95d54bf99606037c2f526c7981112e24c5a2d5bb0a9
|
4
|
+
data.tar.gz: 7e07b130e856ae8bf482b42599c4a65e5e5a826cdff2270b77c93f3130b3859a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfd90abc4b69ab891b2ec55af6b190a263f6629a6fe2a257ddb7e0f09a1a8a869ac397e7e5fe5fa12ac75be7fa5f122fc3015b96a34c8d8925113291b6494b3a
|
7
|
+
data.tar.gz: 1a404d9730d6b5ac4720cc93309df6e5e19c440e714569b513bd43aa9bcc0bd6fa2b4ecd312c1dd40a2e546ac3a2d3d342b20345883d38fab0a7b2c8f249b383
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,31 +1,78 @@
|
|
1
|
-
#
|
1
|
+
# Rails S3 Uploader
|
2
2
|
|
3
|
-
|
3
|
+
Rails S3 Uploader is a gem in development to facilitate file uploads to Amazon S3 using Active Storage in Rails applications.
|
4
4
|
|
5
|
-
|
5
|
+
---
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
9
|
+
**Note:** This gem is currently in development and your final version has not yet been released on RubyGems.org.
|
10
10
|
|
11
|
-
|
11
|
+
To use the development version, add this line to your Gemfile:
|
12
12
|
|
13
|
-
|
13
|
+
```ruby
|
14
|
+
gem 'rails_s3_uploader', git: 'https://github.com/eltonsantos/rails_s3_uploader.git'
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
16
|
+
```
|
17
|
+
And run: **bundle install**
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
**Note:** Full usage documentation will be provided in future versions.
|
22
|
+
|
23
|
+
## Initial Configuration
|
24
|
+
|
25
|
+
#### Environment Variables
|
26
|
+
|
27
|
+
Create a **.env** file at the root of your Rails project and add your AWS credentials:
|
28
|
+
|
29
|
+
```sh
|
30
|
+
AWS_ACCESS_KEY_ID=your_access_key_id
|
31
|
+
AWS_SECRET_ACCESS_KEY=your_secret_access_key
|
32
|
+
AWS_REGION=your_region
|
33
|
+
AWS_BUCKET=your_bucket
|
34
|
+
```
|
35
|
+
|
36
|
+
### Initializer
|
37
|
+
|
38
|
+
Create an initializer in *config/initializers/rails_s3_uploader.rb*:
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
RailsS3Uploader.configure do |config|
|
42
|
+
config.access_key_id = ENV['AWS_ACCESS_KEY_ID']
|
43
|
+
config.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
|
44
|
+
config.region = ENV['AWS_REGION']
|
45
|
+
config.bucket = ENV['AWS_BUCKET']
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Development
|
50
|
+
|
51
|
+
To set up the development environment, clone the repository and install the dependencies:
|
52
|
+
|
53
|
+
```sh
|
54
|
+
git clone https://github.com/eltonsantos/rails_s3_uploader.git
|
55
|
+
|
56
|
+
cd rails_s3_uploader
|
57
|
+
|
58
|
+
bin/setup
|
59
|
+
```
|
60
|
+
|
61
|
+
You can use *bin/console* for an interactive prompt that allows you to test the code.
|
62
|
+
|
63
|
+
To install this gem locally, run:
|
64
|
+
|
65
|
+
```sh
|
66
|
+
bundle exec rake install
|
67
|
+
```
|
68
|
+
|
69
|
+
Contributions are welcome! Bug reports and pull requests are welcome on GitHub at *https://github.com/eltonsantos/rails_s3_uploader*.
|
70
|
+
|
71
|
+
## Licence
|
72
|
+
|
73
|
+
This gem is available as open-source under the terms of the MIT license.
|
22
74
|
|
23
|
-
## Development
|
24
75
|
|
25
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
76
|
|
27
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
77
|
|
29
|
-
## Contributing
|
30
78
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rails_s3_uploader.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_s3_uploader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elton Santos
|
@@ -20,6 +20,7 @@ executables: []
|
|
20
20
|
extensions: []
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
|
+
- CHANGELOG.md
|
23
24
|
- README.md
|
24
25
|
- Rakefile
|
25
26
|
- lib/rails_s3_uploader.rb
|