imgix-rails 4.0.2 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +2 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- data/.github/ISSUE_TEMPLATE/question.md +17 -0
- data/.github/pull_request_template.md +73 -0
- data/CHANGELOG.md +16 -0
- data/README.md +21 -3
- data/imgix-rails.gemspec +2 -2
- data/lib/imgix/rails/version.rb +1 -1
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee4ca6aecc3acbcbb35b5c9b68731403e423f9b76421e14bbf270b727aa0c75d
|
4
|
+
data.tar.gz: 5397fee06ecb6b23d2e5fb0464736681b3d68976a87e5959b1b33f890a164acf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54700c22ae9e911dd22139e4e03b45bff2c07b38ca8a23f6253a9311420424903babb1189db3a31bd0eaa70e88f8babeefe26cd95ce3d1691ab0804cdca782dc
|
7
|
+
data.tar.gz: df2ef3b2ba35d0f1296c6a161ff37ecbbe11a1dfda97c69b4c330b6049cdacf8129363db6b39394e6ce1146daed6f33049807763d4045753690ada32db276c98
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
title: ''
|
5
|
+
labels: bug
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
Please provide the following information and someone from @imgix/imgix-sdk-team will respond to your issue shortly.
|
11
|
+
|
12
|
+
**Describe the bug**
|
13
|
+
A clear and concise description of what the bug is.
|
14
|
+
|
15
|
+
**To Reproduce**
|
16
|
+
Steps to reproduce the behavior:
|
17
|
+
|
18
|
+
**Expected behavior**
|
19
|
+
A clear and concise description of what you expected to happen.
|
20
|
+
|
21
|
+
**Screenshots**
|
22
|
+
If applicable, add screenshots to help explain your problem.
|
23
|
+
|
24
|
+
**Information:**
|
25
|
+
- imgix-rails version: [e.g. 4.0.0]
|
26
|
+
|
27
|
+
**Additional context**
|
28
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
Please provide the following information and someone from @imgix/imgix-sdk-team will respond to your issue shortly.
|
11
|
+
|
12
|
+
**Before you submit:**
|
13
|
+
|
14
|
+
- [ ] Please search through the [existing issues](https://github.com/imgix/imgix-rails/issues?utf8=%E2%9C%93&q=is%3Aissue) to see if your feature has already been discussed.
|
15
|
+
- [ ] Please take a moment to find out whether your idea fits with the scope and aims of this project.
|
16
|
+
|
17
|
+
**Is your feature request related to a problem? Please describe.**
|
18
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
19
|
+
|
20
|
+
**Describe the solution you'd like**
|
21
|
+
A clear and concise description of what you want to happen.
|
22
|
+
|
23
|
+
**Describe alternatives you've considered**
|
24
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
25
|
+
|
26
|
+
**Additional context**
|
27
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
name: Question
|
3
|
+
about: Ask a question about the project
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
Please provide the following information and someone from @imgix/imgix-sdk-team will respond to your issue shortly.
|
11
|
+
|
12
|
+
**Before you submit:**
|
13
|
+
|
14
|
+
- [ ] Please search through the [existing issues](https://github.com/imgix/imgix-rails/issues?utf8=%E2%9C%93&q=is%3Aissue) to see if your question has already been discussed.
|
15
|
+
|
16
|
+
**Question**
|
17
|
+
A clear and concise description of your question.
|
@@ -0,0 +1,73 @@
|
|
1
|
+
<!--
|
2
|
+
Hello, and thanks for contributing to imgix-rails! 🎉🙌
|
3
|
+
Please take a second to fill out PRs with the following template!
|
4
|
+
-->
|
5
|
+
|
6
|
+
# Description
|
7
|
+
|
8
|
+
<!-- What is accomplished by this PR? If there is something potentially controversial in your PR, please take a moment to tell us about your choices. -->
|
9
|
+
|
10
|
+
<!--
|
11
|
+
Please use the checklist that is most closely related to your PR, and delete the other checklists. -->
|
12
|
+
|
13
|
+
## Checklist: Fixing typos/Doc change
|
14
|
+
|
15
|
+
- [ ] Each commit follows the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/#summary) format: e.g. `chore(readme): fixed typo`. See the end of this file for more information.
|
16
|
+
|
17
|
+
## Checklist: Bug Fix
|
18
|
+
|
19
|
+
- [ ] Each commit follows the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/#summary) format: e.g. `chore(readme): fixed typo`. See the end of this file for more information.
|
20
|
+
- [ ] All existing unit tests are still passing (if applicable)
|
21
|
+
- [ ] Add new passing unit tests to cover the code introduced by your PR
|
22
|
+
- [ ] Update the readme
|
23
|
+
- [ ] Update or add any necessary API documentation
|
24
|
+
- [ ] Add some [steps](#steps-to-test) so we can test your bug fix
|
25
|
+
|
26
|
+
## Checklist: New Feature
|
27
|
+
|
28
|
+
- [ ] Each commit follows the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/#summary) format: e.g. `chore(readme): fixed typo`. See the end of this file for more information.
|
29
|
+
- [ ] Any breaking changes are specified on the commit on which they are introduced with `BREAKING CHANGE` in the body of the commit.
|
30
|
+
- [ ] If this is a big feature with breaking changes, consider [opening an issue](https://github.com/imgix/imgix-rails/issues/new?assignees=&labels=&template=feature_request.md&title=) to discuss first. This is completely up to you, but please keep in mind that your PR might not be accepted.
|
31
|
+
- [ ] Run unit tests to ensure all existing tests are still passing
|
32
|
+
- [ ] Add new passing unit tests to cover the code introduced by your PR
|
33
|
+
- [ ] Update the readme
|
34
|
+
- [ ] Add some [steps](#steps-to-test) so we can test your cool new feature!
|
35
|
+
|
36
|
+
## Steps to Test
|
37
|
+
|
38
|
+
<!-- Delete this selction if you are just submitting a doc change/small fix -->
|
39
|
+
|
40
|
+
<!-- A code example or a set of steps is preferred -->
|
41
|
+
|
42
|
+
Related issue: [e.g. #42]
|
43
|
+
|
44
|
+
Code:
|
45
|
+
|
46
|
+
```rb
|
47
|
+
# A standalone example of what the PR solves
|
48
|
+
```
|
49
|
+
|
50
|
+
<!-- A link to a codepen/codesandbox is also an option. -->
|
51
|
+
|
52
|
+
<!--
|
53
|
+
|
54
|
+
## Conventional Commit Spec
|
55
|
+
|
56
|
+
PR titles should be in the format `<type>(<scope>): <description>`. For example: `chore(readme): fix typo`
|
57
|
+
|
58
|
+
`type` can be any of the follow:
|
59
|
+
- `feat`: a feature, or breaking change
|
60
|
+
- `fix`: a bug-fix
|
61
|
+
- `test`: Adding missing tests or correcting existing tests
|
62
|
+
- `docs`: documentation only changes (readme, changelog, contributing guide)
|
63
|
+
- `refactor`: a code change that neither fixes a bug nor adds a feature
|
64
|
+
- `chore`: reoccurring tasks for project maintainability (example scopes: release, deps)
|
65
|
+
- `config`: changes to tooling configurations used in the project
|
66
|
+
- `build`: changes that affect the build system or external dependencies (example scopes: npm, bundler, gradle)
|
67
|
+
- `ci`: changes to CI configuration files and scripts (example scopes: travis)
|
68
|
+
- `perf`: a code change that improves performance
|
69
|
+
- `style`: changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
|
70
|
+
|
71
|
+
`scope` is optional, and can be anything.
|
72
|
+
`description` should be a short description of the change, written in the imperative-mood.
|
73
|
+
-->
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,22 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [4.1.0](https://github.com/imgix/imgix-rb/compare/4.0.2...4.1.0) - October 13, 2020
|
7
|
+
|
8
|
+
### Release Notes
|
9
|
+
Version 4.1.0 has been released! The goal of this release is to offer flexibility to those using imgix-rb's purger capabilities through imgix-rails.
|
10
|
+
|
11
|
+
Prior to this release, this gem offered purging capability through `imgix '~> 3.0'`. However, that purging capability has been deprecated in favor of the new-style purging API––available now in [imgix-rb v4.0.0](https://github.com/imgix/imgix-rb/releases/tag/4.0.0).
|
12
|
+
|
13
|
+
To upgrade to the new purging API used in `imgix '~> 4.0'`:
|
14
|
+
|
15
|
+
- navigate to the [API Keys](https://dashboard.imgix.com/api-keys) portion of your dashboard
|
16
|
+
- generate a new API Key
|
17
|
+
- use this new key in your imgix client: `Imgix::Client.new(domain: '...', api_key: NEW_API_KEY)`
|
18
|
+
|
19
|
+
### Changes
|
20
|
+
- build: use optimistic constraint for imgix >= 3.0 ([#104](https://github.com/imgix/imgix-rails/pull/104))
|
21
|
+
|
6
22
|
## [4.0.2](https://github.com/imgix/imgix-rb/compare/4.0.1...4.0.2) - July 31, 2020
|
7
23
|
- fix: replace `opts[:host`] with `opts[:domain]` to resolve deprecation warnings ([#96](https://github.com/imgix/imgix-rails/pull/96))
|
8
24
|
|
data/README.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
`imgix-rails` is a gem for integrating [imgix](https://www.imgix.com/) into Ruby on Rails applications. It builds on [imgix-rb](https://github.com/imgix/imgix-rb) to offer a few Rails-specific interfaces.
|
5
5
|
|
6
6
|
[![Gem Version](https://img.shields.io/gem/v/imgix-rails.svg)](https://rubygems.org/gems/imgix-rails)
|
7
|
-
[![Build Status](https://travis-ci.org/imgix/imgix-rails.svg?branch=
|
7
|
+
[![Build Status](https://travis-ci.org/imgix/imgix-rails.svg?branch=main)](https://travis-ci.org/imgix/imgix-rails)
|
8
8
|
![Downloads](https://img.shields.io/gem/dt/imgix-rails)
|
9
|
-
[![License](https://img.shields.io/github/license/imgix/imgix-rails)](https://github.com/imgix/imgix-rails/blob/
|
9
|
+
[![License](https://img.shields.io/github/license/imgix/imgix-rails)](https://github.com/imgix/imgix-rails/blob/main/LICENSE)
|
10
10
|
|
11
11
|
---
|
12
12
|
<!-- /ix-docs-ignore -->
|
@@ -24,6 +24,8 @@
|
|
24
24
|
- [Paperclip and CarrierWave](#paperclip-and-carrierwave)
|
25
25
|
- [Refile](#refile)
|
26
26
|
- [Active Storage](#active-storage)
|
27
|
+
- [S3](#s3)
|
28
|
+
- [GCS](#gcs)
|
27
29
|
- [Upgrade Guides](#upgrade-guides)
|
28
30
|
- [3.x to 4.0](#3x-to-40)
|
29
31
|
- [Development](#development)
|
@@ -333,6 +335,7 @@ end
|
|
333
335
|
|
334
336
|
To set up imgix with ActiveStorage, first ensure that the remote source your ActiveStorage service is pointing to is the same as your imgix source — such as an s3 bucket.
|
335
337
|
|
338
|
+
### S3
|
336
339
|
**config/storage.yml**
|
337
340
|
|
338
341
|
```yml
|
@@ -343,7 +346,16 @@ region: us-east-1
|
|
343
346
|
bucket: your_own_bucket
|
344
347
|
```
|
345
348
|
|
346
|
-
|
349
|
+
### GCS
|
350
|
+
```yml
|
351
|
+
google:
|
352
|
+
service: GCS
|
353
|
+
project: Project Name
|
354
|
+
credentials: <%= Rails.root.join("path/to/key.json") %>
|
355
|
+
bucket: Bucket Name
|
356
|
+
```
|
357
|
+
|
358
|
+
Modify your `active_storage.service` setting depending on what environment you are using. For example, to use Amazon s3 in production, make the following change:
|
347
359
|
|
348
360
|
**config/environments/production.rb**
|
349
361
|
|
@@ -351,6 +363,12 @@ Modify your active_storage.service setting depending on what environment you are
|
|
351
363
|
config.active_storage.service = :amazon
|
352
364
|
```
|
353
365
|
|
366
|
+
To use Google GCS in production, configure the active storage service like so:
|
367
|
+
|
368
|
+
```rb
|
369
|
+
config.active_storage.service = :google
|
370
|
+
```
|
371
|
+
|
354
372
|
As you would normally with imgix-rails, configure your application to point to your imgix source:
|
355
373
|
|
356
374
|
**config/application.rb**
|
data/imgix-rails.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.metadata = {
|
18
18
|
'bug_tracker_uri' => 'https://github.com/imgix/imgix-rails/issues',
|
19
|
-
'changelog_uri' => 'https://github.com/imgix/imgix-rails/blob/
|
19
|
+
'changelog_uri' => 'https://github.com/imgix/imgix-rails/blob/main/CHANGELOG.md',
|
20
20
|
'documentation_uri' => "https://www.rubydoc.info/gems/imgix-rails/#{spec.version}",
|
21
21
|
'source_code_uri' => "https://github.com/imgix/imgix-rails/tree/v#{spec.version}"
|
22
22
|
}
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
34
|
spec.require_paths = ["lib"]
|
35
35
|
|
36
|
-
spec.add_runtime_dependency "imgix", "
|
36
|
+
spec.add_runtime_dependency "imgix", ">= 3.0"
|
37
37
|
|
38
38
|
spec.add_development_dependency "bundler", ">=1.9"
|
39
39
|
spec.add_development_dependency "rake", "~> 12.3"
|
data/lib/imgix/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imgix-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Sutton
|
@@ -9,20 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: imgix
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '3.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '3.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
@@ -91,6 +91,11 @@ executables: []
|
|
91
91
|
extensions: []
|
92
92
|
extra_rdoc_files: []
|
93
93
|
files:
|
94
|
+
- ".github/CODEOWNERS"
|
95
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
96
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
97
|
+
- ".github/ISSUE_TEMPLATE/question.md"
|
98
|
+
- ".github/pull_request_template.md"
|
94
99
|
- ".gitignore"
|
95
100
|
- ".rspec"
|
96
101
|
- ".travis.yml"
|
@@ -115,9 +120,9 @@ licenses:
|
|
115
120
|
- BSD-2-Clause
|
116
121
|
metadata:
|
117
122
|
bug_tracker_uri: https://github.com/imgix/imgix-rails/issues
|
118
|
-
changelog_uri: https://github.com/imgix/imgix-rails/blob/
|
119
|
-
documentation_uri: https://www.rubydoc.info/gems/imgix-rails/4.0
|
120
|
-
source_code_uri: https://github.com/imgix/imgix-rails/tree/v4.0
|
123
|
+
changelog_uri: https://github.com/imgix/imgix-rails/blob/main/CHANGELOG.md
|
124
|
+
documentation_uri: https://www.rubydoc.info/gems/imgix-rails/4.1.0
|
125
|
+
source_code_uri: https://github.com/imgix/imgix-rails/tree/v4.1.0
|
121
126
|
allowed_push_host: https://rubygems.org
|
122
127
|
post_install_message:
|
123
128
|
rdoc_options: []
|