runfile-tasks 1.0.4 → 1.1.0
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 +4 -4
- data/README.md +2 -9
- data/gem.runfile +17 -3
- metadata +4 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b97bebf1b4366f916fa36668b6cd8561b2bdedc01ca73da899fa3a17a3b5c0e
|
|
4
|
+
data.tar.gz: f5b687276e1044dd48dc7a0443f063c8f42c2dee91f6cdd001e5cc59eadce76a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84f4ca165958df8dd41ae9fbce2e621e218dbc717a13e2f9312608fbaf91ae3536b8f6824072a27f042b33f8d7fa348d80513ab69e7d4417dbb27ce3c12f2c6c
|
|
7
|
+
data.tar.gz: c1a2ef3a04b8e3d3ac0f53f3ddae2d9c340b287064711cdbee039488922557ef34421cd5f7e21b59ad3b1c2d3fda25a41c1791db006f9cfa24e9a8c9d2d07e77
|
data/README.md
CHANGED
|
@@ -2,15 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
A library of tasks ready to be included in your [Runfile].
|
|
4
4
|
|
|
5
|
-
Note that this version of the gem is intended for Runfile version >= 1.0.
|
|
6
|
-
|
|
7
|
-
If you are using an older version of Runfile, you will also need to lock the
|
|
8
|
-
runfile-tasks version.
|
|
9
|
-
|
|
10
|
-
```ruby
|
|
11
|
-
gem 'runfile-tasks', '< 1.0'
|
|
12
|
-
```
|
|
13
|
-
|
|
14
5
|
## Install
|
|
15
6
|
|
|
16
7
|
Manually:
|
|
@@ -36,6 +27,8 @@ title 'My Runfile'
|
|
|
36
27
|
import_gem 'runfile-tasks/gem'
|
|
37
28
|
# or without publish/yank actions
|
|
38
29
|
import_gem 'runfile-tasks/gem', private: true
|
|
30
|
+
# or with publishing to github packages
|
|
31
|
+
import_gem 'runfile-tasks/gem', github_package_user: 'your-user-or-org'
|
|
39
32
|
|
|
40
33
|
# commands for building and publishing your Dockerfile
|
|
41
34
|
import_gem 'runfile-tasks/docker', image: 'my/image', version: '1.2.3'
|
data/gem.runfile
CHANGED
|
@@ -3,11 +3,17 @@ require 'fileutils'
|
|
|
3
3
|
summary 'Gem management commands'
|
|
4
4
|
|
|
5
5
|
require_context :private, default: false
|
|
6
|
+
require_context :github_package_user, default: false
|
|
6
7
|
|
|
7
8
|
help 'Build the gem'
|
|
8
|
-
usage '(build | b)'
|
|
9
|
-
|
|
9
|
+
usage '(build | b) [--copy]'
|
|
10
|
+
option '--copy, -c', 'Copy the resulting file to the current directory'
|
|
11
|
+
action :build, :b do |args|
|
|
10
12
|
build_gem
|
|
13
|
+
if args['--copy']
|
|
14
|
+
say "g`Copying #{gemfile} to current directory`"
|
|
15
|
+
run "cp #{gemfile} ."
|
|
16
|
+
end
|
|
11
17
|
end
|
|
12
18
|
|
|
13
19
|
help 'Build and install the gem'
|
|
@@ -16,7 +22,15 @@ action :install, :i do
|
|
|
16
22
|
install_gem
|
|
17
23
|
end
|
|
18
24
|
|
|
19
|
-
|
|
25
|
+
if context[:github_package_user]
|
|
26
|
+
help 'Publish gem to Github'
|
|
27
|
+
action :publish, :p do
|
|
28
|
+
need_gemfile
|
|
29
|
+
say 'g`Publishing gem`'
|
|
30
|
+
run "gem push --key github --host https://rubygems.pkg.github.com/#{context[:github_package_user]} #{gemfile}"
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
elsif !context[:private]
|
|
20
34
|
help 'Publish gem to rubygems'
|
|
21
35
|
action :publish, :p do
|
|
22
36
|
need_gemfile
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runfile-tasks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: A collection of tasks for Runfile
|
|
14
13
|
email: db@dannyben.com
|
|
@@ -28,7 +27,6 @@ metadata:
|
|
|
28
27
|
changelog_uri: https://github.com/DannyBen/runfile-tasks/blob/master/CHANGELOG.md
|
|
29
28
|
source_code_uri: https://github.com/DannyBen/runfile-tasks
|
|
30
29
|
rubygems_mfa_required: 'true'
|
|
31
|
-
post_install_message:
|
|
32
30
|
rdoc_options: []
|
|
33
31
|
require_paths:
|
|
34
32
|
- lib
|
|
@@ -36,15 +34,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
36
34
|
requirements:
|
|
37
35
|
- - ">="
|
|
38
36
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '3.
|
|
37
|
+
version: '3.2'
|
|
40
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
39
|
requirements:
|
|
42
40
|
- - ">="
|
|
43
41
|
- !ruby/object:Gem::Version
|
|
44
42
|
version: '0'
|
|
45
43
|
requirements: []
|
|
46
|
-
rubygems_version:
|
|
47
|
-
signing_key:
|
|
44
|
+
rubygems_version: 4.0.3
|
|
48
45
|
specification_version: 4
|
|
49
46
|
summary: Runfile tasks collection
|
|
50
47
|
test_files: []
|