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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/docker.runfile +1 -1
  4. data/gem.runfile +20 -17
  5. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a52180fe4c5515417c8d824ff37b289e5fe0cded7ec37e9e20ae1bc60eebde9
4
- data.tar.gz: b7f3ace97f01eab2b9cdf6c1884ca5c53ea20efed7196ce4c9bce2451a124598
3
+ metadata.gz: 67f6533fc2c505ad0a6446287e3a260ad74a6c83a8b31ae5c7a78728fb4fd7f2
4
+ data.tar.gz: b1f4822b7dac241adb5e055ac3b01ae73d4d6a20ee1301b23191da636e0f9a58
5
5
  SHA512:
6
- metadata.gz: bfaa1e699ce30ec6b129b1282c776fa4964035e7a5c029760769b7b326a9070107f22fc9a9e43146d29e10492a6b000c0606c3bfaa642b8432b5244e6398f896
7
- data.tar.gz: ce63acc919c87660f7cf43df2f981995bce7195ae9cdd3a1eb9db05c90757f17fc9d8cd2f33627268b42fb501f4083ec84277a1b0828b26acf750069bdc1d6b6
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
@@ -1,5 +1,5 @@
1
1
  title 'Docker image commands'
2
- summary 'Add docker building and publishing commands to your project'
2
+ summary 'Ddocker building and publishing commands'
3
3
 
4
4
  require_context :image
5
5
  require_context :version
data/gem.runfile CHANGED
@@ -1,9 +1,10 @@
1
1
  require 'fileutils'
2
2
 
3
3
  title 'Gem management commands'
4
- summary 'Add gem building and publishing to your gem project'
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
- help 'Publish gem to rubygems'
24
- action :publish, :p do
25
- need_gemfile
26
- say 'g`Publishing gem`'
27
- run "gem push #{gemfile}"
28
- end
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
- version = args['VERSION']
34
- say 'rib` Yanking gem ` Are you sure?'
35
- 10.downto(0) do |i|
36
- say "Yanking in #{i} seconds - Ctrl-C to abort ", replace: true
37
- sleep 1
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.rc2
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-26 00:00:00.000000000 Z
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: 1.3.1
40
+ version: '0'
41
41
  requirements: []
42
42
  rubygems_version: 3.4.5
43
43
  signing_key: