pkgforge 0.27.0 → 0.29.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/build.yml +46 -0
- data/LICENSE +1 -1
- data/README.md +1 -3
- data/lib/pkgforge/components/metadata.rb +5 -0
- data/lib/pkgforge/components/upload.rb +1 -6
- data/lib/pkgforge/version.rb +1 -1
- data/pkgforge.gemspec +0 -1
- data/spec/spec_helper.rb +0 -9
- metadata +7 -11
- data/.circle-ruby +0 -4
- data/.prospectus +0 -11
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9edc47cc6ff6e50d61300d591c31b619d2e157b1004e8abc7fcf1dcf673b27
|
4
|
+
data.tar.gz: 27936e5102272cceea74762fe1b83bbc6c5921505cf54ca701f4a192eab260be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 843727e223f5dc1aaf4e429f64458480c131942f004bd528487bc85f69b1b52d83a253e130dc2fe69491d76d431db09d8ef4facdb76dd09265539155f5a5d62d
|
7
|
+
data.tar.gz: 8455414dac270054cd2415059351aa85db31ab6c7fc27532c1e111dd9fdc3eb886aa56857e7034c0f42eca4ba03d2a778446177a5120613cf1a30164b494c8b5
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: Build
|
2
|
+
on:
|
3
|
+
pull_request:
|
4
|
+
push:
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: Build
|
8
|
+
runs-on: ubuntu-22.04
|
9
|
+
permissions:
|
10
|
+
contents: write
|
11
|
+
steps:
|
12
|
+
- name: Checkout
|
13
|
+
uses: actions/checkout@v3
|
14
|
+
with:
|
15
|
+
submodules: recursive
|
16
|
+
- uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: '3.1'
|
19
|
+
bundler-cache: true
|
20
|
+
- name: Build
|
21
|
+
run: bundle exec rake
|
22
|
+
- name: Release
|
23
|
+
if: github.ref_type == 'tag'
|
24
|
+
run: bundle exec rake release
|
25
|
+
env:
|
26
|
+
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
|
27
|
+
- name: Post to a Slack channel
|
28
|
+
if: ${{ failure() }}
|
29
|
+
uses: slackapi/slack-github-action@v1.23.0
|
30
|
+
env:
|
31
|
+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
32
|
+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
33
|
+
with:
|
34
|
+
payload: |
|
35
|
+
{
|
36
|
+
"text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
37
|
+
"blocks": [
|
38
|
+
{
|
39
|
+
"type": "section",
|
40
|
+
"text": {
|
41
|
+
"type": "mrkdwn",
|
42
|
+
"text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
]
|
46
|
+
}
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -2,9 +2,7 @@ pkgforge
|
|
2
2
|
=========
|
3
3
|
|
4
4
|
[![Gem Version](https://img.shields.io/gem/v/pkgforge.svg)](https://rubygems.org/gems/pkgforge)
|
5
|
-
[![
|
6
|
-
[![Coverage Status](https://img.shields.io/codecov/c/github/akerl/pkgforge.svg)](https://codecov.io/github/akerl/pkgforge)
|
7
|
-
[![Code Quality](https://img.shields.io/codacy/fb7636f572b04067801ac9024ed71228.svg)](https://www.codacy.com/app/akerl/pkgforge)
|
5
|
+
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/akerl/pkgforge/Build)](https://github.com/akerl/pkgforge/actions)
|
8
6
|
[![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
|
9
7
|
|
10
8
|
DSL engine for building Arch packages
|
@@ -30,16 +30,11 @@ module PkgForge
|
|
30
30
|
nil
|
31
31
|
end
|
32
32
|
|
33
|
-
Contract None => String
|
34
|
-
def version
|
35
|
-
@version ||= `git describe --abbrev=0 --tags`.rstrip
|
36
|
-
end
|
37
|
-
|
38
33
|
Contract None => nil
|
39
34
|
def upload_artifacts!
|
40
35
|
return unless state[:artifacts]
|
41
36
|
state[:artifacts].each do |artifact|
|
42
|
-
args = ['targit', '--authfile', '.creds_github', '--create']
|
37
|
+
args = ['targit', '--authfile', '.creds_github', '--create', '--force']
|
43
38
|
args += ['--name', artifact[:name]]
|
44
39
|
args += ['--endpoint', endpoint] if endpoint
|
45
40
|
args += ["#{org}/#{name}", version, artifact[:source]]
|
data/lib/pkgforge/version.rb
CHANGED
data/pkgforge.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pkgforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contracts
|
@@ -73,12 +73,10 @@ executables:
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- ".
|
76
|
+
- ".github/workflows/build.yml"
|
77
77
|
- ".gitignore"
|
78
|
-
- ".prospectus"
|
79
78
|
- ".rspec"
|
80
79
|
- ".rubocop.yml"
|
81
|
-
- ".travis.yml"
|
82
80
|
- Gemfile
|
83
81
|
- LICENSE
|
84
82
|
- README.md
|
@@ -109,7 +107,7 @@ licenses:
|
|
109
107
|
- MIT
|
110
108
|
metadata:
|
111
109
|
rubygems_mfa_required: 'true'
|
112
|
-
post_install_message:
|
110
|
+
post_install_message:
|
113
111
|
rdoc_options: []
|
114
112
|
require_paths:
|
115
113
|
- lib
|
@@ -125,9 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
123
|
version: '0'
|
126
124
|
requirements: []
|
127
125
|
rubygems_version: 3.3.7
|
128
|
-
signing_key:
|
126
|
+
signing_key:
|
129
127
|
specification_version: 4
|
130
128
|
summary: DSL engine for building Arch packages
|
131
|
-
test_files:
|
132
|
-
- spec/pkgforge_spec.rb
|
133
|
-
- spec/spec_helper.rb
|
129
|
+
test_files: []
|
data/.circle-ruby
DELETED
data/.prospectus
DELETED
data/.travis.yml
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
dist: xenial
|
2
|
-
install:
|
3
|
-
- for i in $(cat .circle-ruby) ; do rvm install $i || exit 1 ; done
|
4
|
-
- for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done
|
5
|
-
script:
|
6
|
-
- for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done
|
7
|
-
notifications:
|
8
|
-
email: false
|
9
|
-
slack:
|
10
|
-
secure: hiSpJYwTPJUSw9aS2AG28isKW8Sel209yOVRRwr5U0LV5XLsiMCIHjc8sUPliTIcHNEZgBkoBdVe9cEMpcIwV5oeHWJi/tPt0dMISJ5P8K1mG0i2ULk5Up7vOUDN0WctL8CzhiGCcMr/H1lk3VbHKsxgcozIitnocCIwZuswJqNwu2XpkRw5xxVIMAK9tIZGfH+XMwFZcLghQsAF55fHyKYUVVI5n7PMLVbiDY8u9cVlZKL4qa3dBuus903f/zPGSJXbLcPqnVbuyOlIewxSNaPDX7YjIAdgkNk4IE+gCO82FnNpkWqVdtGT8Nx0PLOkt5FICl7aBFjIanFV1NnMo7qVXj0XNRdIoMBqx5T3WKp9k1EaYnaZwDax1zEDamyUSikwc0BPjnW1gZX5Hv6bQAVMWoXIZz9xJVd1Opv2sH1v534e+eCdcqHBv5sIFbYofeN3KvBEfdFBE4YHorT0u/rtBOBoNBVwrstjvNs3W9CbGqgubH2JUtCky2W+4mXwpmndXTYG8DZkMZ7YCqlQYgJLyPuLdxUjSz6IdMVaz/g8c5/d71jlJuiBl+VX6vFMmtec0/e9ivwH5RhkcsYrGw6dkKh3qymmdoHgc65K5dOLluNvZf/AQyInVXZAivKb2ppIW1t9pjaWN2wX6hEP7Vb8516OwJYzuGHUJFrBpUY=
|