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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bab9cf8b0f8b1e823fc932ac004d9a6dbfbb16ad0be8323024816ad3b49ad3a
4
- data.tar.gz: b075d2997a6c2603cdcfc0d8b94964da46bc7a35d1f07e5ed6b1579d2063477d
3
+ metadata.gz: f6dd057ec97f97ab59a9bcba36d014f994f6042ec8877ebe5ca696317b4b0706
4
+ data.tar.gz: 4be1969f1f142fdd563ce0b3de48888ffc65491c32d28bc6ced7d0a41142d14f
5
5
  SHA512:
6
- metadata.gz: 74f298a09bf4cb3918bd236c8fef80045659719f2038b677a2fc4028a5f69f3fcbe83cba2c3acf8868022fbd519effcb667fdd207dddc5e901f3a8a8094a788a
7
- data.tar.gz: cf286d3983eef5e35ca56f500c315bf0ea13cdd4216706b0dd3aa4ef7707c471479469283fa5f8bc27ac369d7a92d3507749d16e0b2db17c30dacf8fe557bd36
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
@@ -1,2 +1,3 @@
1
1
  vendor/
2
2
  .rubocop-*
3
+ pkg
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- founders_toolkit (0.1.0)
4
+ founders_toolkit (0.2.0)
5
5
  activemodel (~> 6.1)
6
6
  activesupport (~> 6.1)
7
7
 
@@ -4,8 +4,6 @@ module FoundersToolkit::Auth::Recoverable::Model
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- include FoundersToolkit::Auth::Confirmable::Model
8
-
9
7
  before_save :clear_reset_password_token, if: :password_digest_changed?
10
8
  end
11
9
 
@@ -8,6 +8,7 @@ module FoundersToolkit::Auth::Securable::Validations
8
8
  end
9
9
 
10
10
  def validate_each(record, attribute, _value)
11
+ return if record.new_record?
11
12
  return unless attribute_changed?(record, attribute)
12
13
  return if authenticate?(record)
13
14
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FoundersToolkit
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
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.1.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.4
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: []