activestorage-delayed 0.3.0 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3a8aa804d991375a89011a3001a4329eb2510f151690ec92f01c1b18d1cf9a6
|
4
|
+
data.tar.gz: 51fb74d4c3449071aa9b94af9a61f2d17b619a5114d334cd878860cb9e2492f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a995e047e1b344d62325293abfd29f8d23ddd299adcd8235044aa5556b5fb3454d03351eb29b1834bd348bc57be607831b616d3efbbba1e72e0fc72a89d706
|
7
|
+
data.tar.gz: cf66e127b9123bf19c56899c67a5b3f04cd97fdc77b05f2175e1f2f2e46d94ca1334b3e552b937a64c9e180f598b2fd95717c4fe788506ee01db7434b10ce727
|
@@ -1,43 +1,11 @@
|
|
1
|
+
name: Create release from tag
|
1
2
|
on:
|
2
3
|
push:
|
3
|
-
tags: #
|
4
|
+
tags: # Create a release once a git tag is published
|
4
5
|
- '*'
|
5
6
|
|
6
|
-
name: Create Release
|
7
|
-
|
8
7
|
jobs:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
- name: Checkout code
|
14
|
-
uses: actions/checkout@v2
|
15
|
-
with:
|
16
|
-
fetch-depth: 0
|
17
|
-
|
18
|
-
# Changelog action adaptations
|
19
|
-
- name: Create required package.json
|
20
|
-
run: test -f package.json || echo '{}' >package.json
|
21
|
-
- name: Detect Previous Tag (action not detecting very well)
|
22
|
-
run: echo "::set-output name=previous_tag::$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)"
|
23
|
-
id: tag_checker
|
24
|
-
|
25
|
-
- name: Generate Changelog
|
26
|
-
uses: scottbrenner/generate-changelog-action@master
|
27
|
-
id: Changelog
|
28
|
-
with:
|
29
|
-
from-tag: ${{steps.tag_checker.outputs.previous_tag}}
|
30
|
-
to-tag: HEAD
|
31
|
-
|
32
|
-
- name: Create Release
|
33
|
-
id: create_release
|
34
|
-
uses: actions/create-release@latest
|
35
|
-
env:
|
36
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
37
|
-
with:
|
38
|
-
tag_name: ${{ github.ref }}
|
39
|
-
release_name: Release ${{ github.ref }}
|
40
|
-
body: |
|
41
|
-
${{ steps.Changelog.outputs.changelog }}
|
42
|
-
draft: false
|
43
|
-
prerelease: false
|
8
|
+
release-builder:
|
9
|
+
uses: owen2345/reusable-ci-cd-actions/.github/workflows/release_builder_from_tag.yml@main
|
10
|
+
with:
|
11
|
+
commit_mode: true
|
data/.github/workflows/ruby.yml
CHANGED
@@ -1,31 +1,16 @@
|
|
1
1
|
name: App tests
|
2
|
-
|
3
2
|
on:
|
4
3
|
push:
|
5
4
|
branches:
|
6
5
|
- main
|
7
|
-
-
|
6
|
+
- master
|
8
7
|
pull_request:
|
9
8
|
|
10
9
|
jobs:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
uses: styfle/cancel-workflow-action@0.6.0
|
19
|
-
with:
|
20
|
-
access_token: ${{ github.token }}
|
21
|
-
- name: download docker-compose cache
|
22
|
-
run: docker-compose pull
|
23
|
-
- uses: satackey/action-docker-layer-caching@v0.0.11 # Cache or restore docker cache
|
24
|
-
continue-on-error: true # Ignore the failure of a step and avoid terminating the job.
|
25
|
-
with:
|
26
|
-
key: app-cache-${{ hashFiles('Dockerfile') }}
|
27
|
-
|
28
|
-
- name: Run rspec test
|
29
|
-
run: docker-compose run test /bin/sh -c "bundle install && rspec"
|
30
|
-
- name: Check codestyle
|
31
|
-
run: docker-compose run test /bin/sh -c "rubocop"
|
10
|
+
app-tests:
|
11
|
+
uses: owen2345/reusable-ci-cd-actions/.github/workflows/tests.yml@main
|
12
|
+
with:
|
13
|
+
prepare_db_cmd: null
|
14
|
+
copy_env: false
|
15
|
+
run_rubocop: true
|
16
|
+
rspec_cmd: 'bundle install and bundle exec rspec'
|
@@ -21,7 +21,6 @@ module ActivestorageDelayed
|
|
21
21
|
|
22
22
|
def upload_photos
|
23
23
|
tmp_files_data.each(&method(:upload_photo))
|
24
|
-
model.send("#{attr_name}_after_upload_all")
|
25
24
|
end
|
26
25
|
|
27
26
|
def upload_photo(file_data)
|
@@ -43,6 +42,7 @@ module ActivestorageDelayed
|
|
43
42
|
def save_changes
|
44
43
|
model.save!
|
45
44
|
delayed_upload.destroy!
|
45
|
+
model.send("#{attr_name}_after_upload_all")
|
46
46
|
end
|
47
47
|
|
48
48
|
# @return [Array<Hash<io: StringIO, filename: String, content_type: String>>]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage-delayed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo Diaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage
|