cvx_test_push 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/workflows/main.yml +58 -0
- data/.gitignore +9 -0
- data/Gemfile +8 -0
- data/README.md +35 -0
- data/Rakefile +4 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/cvx_test_push.gemspec +26 -0
- data/lib/cvx_test_push.rb +8 -0
- data/lib/cvx_test_push/version.rb +5 -0
- metadata +52 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1df14e4ad26e6398eb1b50c57f9bef23e4b366ee243061cd4de9413ff0fa71f5
|
4
|
+
data.tar.gz: 658353c3bb1b0318d9e76c8f60ce7ccc5426e025fbcfd51836cbec053d1cc8b0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1491cd7b91fc05422b8356880b5ac6abcb34b3bfd104011a05fdaf696f5e6fd7fb931d769ba3834c55400828733669233c1d28721fbc5c37ed0038aad01867d4
|
7
|
+
data.tar.gz: 3ab5d1707611daad0121afa3196e5a057a40c551e2414c17bd85bb227277ec0a7b3d43b3e2d3b7b02fc2a6a5c6539a4bcc7c63ec278946fa1722cc9e243de9ff
|
@@ -0,0 +1,58 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- main
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
publish:
|
11
|
+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
|
16
|
+
- name: Get gem version
|
17
|
+
id: gem-version
|
18
|
+
run: echo "::set-output name=version::$(ruby -r rubygems -e "puts Gem::Specification::load('$(ls *.gemspec)').version")"
|
19
|
+
|
20
|
+
- name: other thingy
|
21
|
+
id: tag-exists
|
22
|
+
run: echo "::set-output name=bool::$(if git rev-parse "v${{ steps.gem-version.outputs.version }}" >/dev/null 2>&1; then echo 'true'; else echo 'false'; fi)"
|
23
|
+
|
24
|
+
- name: Stuff
|
25
|
+
env:
|
26
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
27
|
+
if: steps.tag-exists.outputs.bool == 'false'
|
28
|
+
run: |
|
29
|
+
echo "Setting up gem credentials..."
|
30
|
+
set +x
|
31
|
+
mkdir -p ~/.gem
|
32
|
+
|
33
|
+
cat << EOF > ~/.gem/credentials
|
34
|
+
---
|
35
|
+
:github: Bearer ${GITHUB_TOKEN}
|
36
|
+
:rubygems_api_key: ${RUBYGEMS_API_KEY}
|
37
|
+
EOF
|
38
|
+
|
39
|
+
chmod 0600 ~/.gem/credentials
|
40
|
+
set -x
|
41
|
+
|
42
|
+
echo "Installing dependencies..."
|
43
|
+
gem update bundler
|
44
|
+
bundle install
|
45
|
+
|
46
|
+
git config --global user.email "automated@example.com"
|
47
|
+
git config --global user.name "Automated Release" && bundle exec rake release
|
48
|
+
|
49
|
+
echo "Running gem release task..."
|
50
|
+
release_command="${RELEASE_COMMAND:-rake release}"
|
51
|
+
exec $release_command
|
52
|
+
|
53
|
+
# - name: Release Gem
|
54
|
+
# uses: discourse/publish-rubygems-action@v1
|
55
|
+
# env:
|
56
|
+
# RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
57
|
+
# RELEASE_COMMAND: |
|
58
|
+
# echo 1 && git config --global user.email "automated@example.com" && git config --global user.name "Automated Release" && bundle exec rake release
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# CvxTestPush
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cvx_test_push`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'cvx_test_push'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install cvx_test_push
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cvx_test_push.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "cvx_test_push"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/cvx_test_push/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "cvx_test_push"
|
7
|
+
spec.version = CvxTestPush::VERSION
|
8
|
+
spec.authors = ["Jarek Radosz"]
|
9
|
+
spec.email = ["jradosz@gmail.com"]
|
10
|
+
spec.summary = "A test of automatic gem publishing and version tagging"
|
11
|
+
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
13
|
+
|
14
|
+
# Specify which files should be added to the gem when it is released.
|
15
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
16
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
17
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
18
|
+
end
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# Uncomment to register a new dependency of your gem
|
22
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
23
|
+
|
24
|
+
# For more information and examples about making a new gem, checkout our
|
25
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cvx_test_push
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jarek Radosz
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-02-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
- jradosz@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- ".github/workflows/main.yml"
|
21
|
+
- ".gitignore"
|
22
|
+
- Gemfile
|
23
|
+
- README.md
|
24
|
+
- Rakefile
|
25
|
+
- bin/console
|
26
|
+
- bin/setup
|
27
|
+
- cvx_test_push.gemspec
|
28
|
+
- lib/cvx_test_push.rb
|
29
|
+
- lib/cvx_test_push/version.rb
|
30
|
+
homepage:
|
31
|
+
licenses: []
|
32
|
+
metadata: {}
|
33
|
+
post_install_message:
|
34
|
+
rdoc_options: []
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 2.4.0
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
requirements: []
|
48
|
+
rubygems_version: 3.1.2
|
49
|
+
signing_key:
|
50
|
+
specification_version: 4
|
51
|
+
summary: A test of automatic gem publishing and version tagging
|
52
|
+
test_files: []
|