runfile-tasks 1.0.0.rc2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/docker.runfile +1 -1
- data/gem.runfile +20 -17
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67f6533fc2c505ad0a6446287e3a260ad74a6c83a8b31ae5c7a78728fb4fd7f2
|
4
|
+
data.tar.gz: b1f4822b7dac241adb5e055ac3b01ae73d4d6a20ee1301b23191da636e0f9a58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caf4ee112f5d01340c26d391156ee61ea08257625a8356f618ee882486488f589c52e84ca1c290b353d37f529b0ba3857acee6d1325a0768979b4056f3b8c4cf
|
7
|
+
data.tar.gz: 237bf631a951e5c52b7d546761ce42edc1fc0352a935da2a87d699c7d1d3709860ac90408e944b95d84e3033587879ffd26302bf03ce40dce9e65cd3749ec74d
|
data/README.md
CHANGED
@@ -34,6 +34,8 @@ title 'My Runfile'
|
|
34
34
|
|
35
35
|
# commands for building and publishing your gem
|
36
36
|
import_gem 'runfile-tasks/gem', gemname: 'my-gem'
|
37
|
+
# or without publish/yank actions
|
38
|
+
import_gem 'runfile-tasks/gem', gemname: 'my-gem', private: true
|
37
39
|
|
38
40
|
# commands for building and publishing your Dockerfile
|
39
41
|
import_gem 'runfile-tasks/docker', image: 'my/image', version: '1.2.3'
|
data/docker.runfile
CHANGED
data/gem.runfile
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
|
3
3
|
title 'Gem management commands'
|
4
|
-
summary '
|
4
|
+
summary 'Gem building and publishing commands'
|
5
5
|
|
6
6
|
require_context :gemname
|
7
|
+
require_context :private, default: false
|
7
8
|
|
8
9
|
help 'Build and optionally install the gem'
|
9
10
|
usage '(build | b) [--install]'
|
@@ -20,24 +21,26 @@ action :install, :i do
|
|
20
21
|
install_gem
|
21
22
|
end
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
unless context[:private]
|
25
|
+
help 'Publish gem to rubygems'
|
26
|
+
action :publish, :p do
|
27
|
+
need_gemfile
|
28
|
+
say 'g`Publishing gem`'
|
29
|
+
run "gem push #{gemfile}"
|
30
|
+
end
|
29
31
|
|
30
|
-
usage 'yank VERSION'
|
31
|
-
help 'Yank gem from rubygems'
|
32
|
-
action :yank do |args|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
usage 'yank VERSION'
|
33
|
+
help 'Yank gem from rubygems'
|
34
|
+
action :yank do |args|
|
35
|
+
version = args['VERSION']
|
36
|
+
say "rib` Yank #{gemname} #{version} ` Are you sure?"
|
37
|
+
10.downto(0) do |i|
|
38
|
+
say "Yanking in #{i} seconds - Ctrl-C to abort ", replace: true
|
39
|
+
sleep 1
|
40
|
+
end
|
41
|
+
say 'g`Yanking gem`', replace: true
|
42
|
+
run "gem yank #{gemname} -v #{version}"
|
38
43
|
end
|
39
|
-
say 'g`Yanking gem`', replace: true
|
40
|
-
run "gem yank #{gemname} -v #{version}"
|
41
44
|
end
|
42
45
|
|
43
46
|
helpers do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runfile-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01
|
11
|
+
date: 2023-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A collection of tasks for Runfile
|
14
14
|
email: db@dannyben.com
|
@@ -35,9 +35,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
35
|
version: '2.7'
|
36
36
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
requirements: []
|
42
42
|
rubygems_version: 3.4.5
|
43
43
|
signing_key:
|