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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce07ea7f1c40bba0999f3b1d092552043a887a994dfd60c614242238e29995da
4
- data.tar.gz: 5ab4d57326df2372940d56b4ef5958bb520697dc95f5288c1cc502eb1aab5854
3
+ metadata.gz: 9d9edc47cc6ff6e50d61300d591c31b619d2e157b1004e8abc7fcf1dcf673b27
4
+ data.tar.gz: 27936e5102272cceea74762fe1b83bbc6c5921505cf54ca701f4a192eab260be
5
5
  SHA512:
6
- metadata.gz: 0ad5985392b29b8c92b56e68a2a92a841e5bf29d38aea0dc2e817af5214f6532ad4d55dbed28a53e6dd2d621414302aead5916f21dce523251777a71edeee52b
7
- data.tar.gz: 5408a49cf8950bec4365e0a333d33d722a8ef0911e41a7192d0c9a24892fd5323cd3c344a91be9de976c9ff693ee7b1f5025cfe75315aa5d8efdde7dc10aade4
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Les Aker
3
+ Copyright (c) 2022 Les Aker
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- [![Build Status](https://img.shields.io/travis/com/akerl/pkgforge.svg)](https://travis-ci.com/akerl/pkgforge)
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
@@ -21,6 +21,11 @@ module PkgForge
21
21
  @licenses ||= ['LICENSE']
22
22
  end
23
23
 
24
+ Contract None => String
25
+ def version
26
+ @version ||= `git describe --abbrev=0 --tags`.rstrip
27
+ end
28
+
24
29
  Contract None => nil
25
30
  def add_license!
26
31
  return if licenses.empty?
@@ -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]]
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Declare version number
3
3
  module PkgForge
4
- VERSION = '0.27.0'.freeze
4
+ VERSION = '0.29.0'.freeze
5
5
  end
data/pkgforge.gemspec CHANGED
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
16
16
  s.license = 'MIT'
17
17
 
18
18
  s.files = `git ls-files`.split
19
- s.test_files = `git ls-files spec/*`.split
20
19
  s.executables = ['pkgforge']
21
20
 
22
21
  s.add_dependency 'contracts', '~> 0.17.0'
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,2 @@
1
- if ENV['CI'] == 'true'
2
- require 'simplecov'
3
- require 'codecov'
4
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
5
- SimpleCov.start do
6
- add_filter '/spec/'
7
- end
8
- end
9
-
10
1
  require 'rspec'
11
2
  require 'pkgforge'
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.27.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-03-20 00:00:00.000000000 Z
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
- - ".circle-ruby"
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
@@ -1,4 +0,0 @@
1
- 2.6.1
2
- 2.5.3
3
- 2.4.5
4
- 2.3.8
data/.prospectus DELETED
@@ -1,11 +0,0 @@
1
- my_slug = 'akerl/pkgforge'
2
-
3
- Prospectus.extra_dep('file', 'prospectus_travis')
4
- Prospectus.extra_dep('file', 'prospectus_gems')
5
-
6
- item do
7
- noop
8
-
9
- extend ProspectusGems::Gemspec.new
10
- extend ProspectusTravis::Build.new(my_slug)
11
- end
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=