founders_toolkit 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +50 -0
- data/.github/workflows/publish.yml +30 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +1 -1
- data/lib/founders_toolkit/auth/recoverable/model.rb +0 -2
- data/lib/founders_toolkit/auth/securable/validations/protected_validator.rb +1 -0
- data/lib/founders_toolkit/version.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6dd057ec97f97ab59a9bcba36d014f994f6042ec8877ebe5ca696317b4b0706
|
4
|
+
data.tar.gz: 4be1969f1f142fdd563ce0b3de48888ffc65491c32d28bc6ced7d0a41142d14f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb12a632363369958f210b86504c074bae31fbe072843ece75471a1a26a5ef0a722c5ef8295196387e49558260406be031abaffce90f891cc381ab8f5623e4e5
|
7
|
+
data.tar.gz: a39639f8bd9adb2164fa9f1db86f21714e4ed7fd5a858584f7e1254b1ff5b0f22cb88b45051882407408969576741fbc10a4a9b60ff7c22c21e937152d9f0094
|
@@ -0,0 +1,50 @@
|
|
1
|
+
name: CI
|
2
|
+
on:
|
3
|
+
pull_request:
|
4
|
+
branches: [main]
|
5
|
+
push:
|
6
|
+
branches: [main]
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
create_release:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
if: github.ref == 'refs/heads/main'
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Get version
|
16
|
+
id: version
|
17
|
+
run: |
|
18
|
+
VERSION=$(cat lib/founders_toolkit/version.rb | awk '/VERSION/{ print $3 }' | tr -d "'")
|
19
|
+
echo "::set-output name=version::$VERSION"
|
20
|
+
- name: Check if published release exists
|
21
|
+
id: published-release
|
22
|
+
run: |
|
23
|
+
ID=$(curl --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
|
24
|
+
https://api.github.com/repos/trobrock/founders-toolkit/releases | jq '.[] | select(.tag_name == "v${{ steps.version.outputs.version }}" and .draft == false) | .id')
|
25
|
+
echo "::set-output name=id::$ID"
|
26
|
+
- name: Check if draft release exists
|
27
|
+
id: release
|
28
|
+
run: |
|
29
|
+
ID=$(curl --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
|
30
|
+
https://api.github.com/repos/trobrock/founders-toolkit/releases | jq '.[] | select(.tag_name == "v${{ steps.version.outputs.version }}" and .draft) | .id')
|
31
|
+
echo "::set-output name=id::$ID"
|
32
|
+
- name: Delete previous release
|
33
|
+
if: steps.release.outputs.id
|
34
|
+
run: |
|
35
|
+
curl --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
|
36
|
+
-X DELETE \
|
37
|
+
https://api.github.com/repos/trobrock/founders-toolkit/releases/${{ steps.release.outputs.id }}
|
38
|
+
- name: Get version changes
|
39
|
+
if: ${{ ! steps.published-release.outputs.id }}
|
40
|
+
run: |
|
41
|
+
awk -v version='[${{ steps.version.outputs.version }}]' '/^## / {printit = $2 == version}; printit;' CHANGELOG.md > RELEASE_CHANGELOG.md
|
42
|
+
- uses: actions/create-release@v1
|
43
|
+
if: ${{ ! steps.published-release.outputs.id }}
|
44
|
+
env:
|
45
|
+
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
|
46
|
+
with:
|
47
|
+
tag_name: v${{ steps.version.outputs.version }}
|
48
|
+
release_name: Release ${{ steps.version.outputs.version }}
|
49
|
+
body_path: RELEASE_CHANGELOG.md
|
50
|
+
draft: true
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: Publish Packages
|
2
|
+
on:
|
3
|
+
release:
|
4
|
+
types: [published]
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
|
13
|
+
# Build Rubygems
|
14
|
+
- uses: actions/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 3.0
|
17
|
+
- name: Configure Rubygems Credentials
|
18
|
+
run: |
|
19
|
+
mkdir $HOME/.gem
|
20
|
+
touch $HOME/.gem/credentials
|
21
|
+
chmod 0600 $HOME/.gem/credentials
|
22
|
+
printf -- "---\n:rubygems_api_key: \"${{ secrets.RUBYGEMS_AUTH_TOKEN }}\"\n" > $HOME/.gem/credentials
|
23
|
+
- run: gem build founders_toolkit.gemspec
|
24
|
+
- uses: actions/upload-artifact@v2
|
25
|
+
with:
|
26
|
+
name: gem
|
27
|
+
path: "*.gem"
|
28
|
+
|
29
|
+
# Publish to Rubygems
|
30
|
+
- run: "gem push *.gem"
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
9
|
+
## [0.1.0] - 2021-03-25
|
10
|
+
- No real change, just CI
|
11
|
+
|
12
|
+
## [0.1.0] - 2021-03-25
|
13
|
+
### Added
|
14
|
+
- Initial Project, so... everything.
|
data/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: founders_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trae Robrock
|
8
8
|
- Andrew Katz
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
12
|
date: 2021-03-25 00:00:00.000000000 Z
|
@@ -47,8 +47,11 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
+
- ".github/workflows/ci.yml"
|
51
|
+
- ".github/workflows/publish.yml"
|
50
52
|
- ".gitignore"
|
51
53
|
- ".rubocop.yml"
|
54
|
+
- CHANGELOG.md
|
52
55
|
- Gemfile
|
53
56
|
- Gemfile.lock
|
54
57
|
- LICENSE.txt
|
@@ -85,7 +88,7 @@ licenses:
|
|
85
88
|
metadata:
|
86
89
|
homepage_uri: https://github.com/trobrock/founders-toolkit
|
87
90
|
source_code_uri: https://github.com/trobrock/founders-toolkit.git
|
88
|
-
post_install_message:
|
91
|
+
post_install_message:
|
89
92
|
rdoc_options: []
|
90
93
|
require_paths:
|
91
94
|
- lib
|
@@ -100,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
103
|
- !ruby/object:Gem::Version
|
101
104
|
version: '0'
|
102
105
|
requirements: []
|
103
|
-
rubygems_version: 3.2.
|
104
|
-
signing_key:
|
106
|
+
rubygems_version: 3.2.3
|
107
|
+
signing_key:
|
105
108
|
specification_version: 4
|
106
109
|
summary: Founders Toolkit for Rails
|
107
110
|
test_files: []
|