runfile-tasks 1.0.0 → 1.0.2

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: 67f6533fc2c505ad0a6446287e3a260ad74a6c83a8b31ae5c7a78728fb4fd7f2
4
- data.tar.gz: b1f4822b7dac241adb5e055ac3b01ae73d4d6a20ee1301b23191da636e0f9a58
3
+ metadata.gz: 3d92aedb996f39b43aac546e5965d370fa52fd047cea58d7bab29f8018217fc3
4
+ data.tar.gz: 20cea24b2910446df432366a8c9ab89b02c1b2179382f28e53beb765b4b3a665
5
5
  SHA512:
6
- metadata.gz: caf4ee112f5d01340c26d391156ee61ea08257625a8356f618ee882486488f589c52e84ca1c290b353d37f529b0ba3857acee6d1325a0768979b4056f3b8c4cf
7
- data.tar.gz: 237bf631a951e5c52b7d546761ce42edc1fc0352a935da2a87d699c7d1d3709860ac90408e944b95d84e3033587879ffd26302bf03ce40dce9e65cd3749ec74d
6
+ metadata.gz: fe42ad814a78022b49b6428e4a7f5a8d402a0928bc9c4f71afd1272431196d53d24a884d0c28effa0a5ac3be272d2b177424f13f5ca42eef9ebf1d67224900de
7
+ data.tar.gz: ced49d5275af7f273a337e187e1fa1de68596bc816591cbb126d2c216e9d1525113735534d2176b6b174265e123f508f268ae7a687253b86cf7cd830e351e774
data/README.md CHANGED
@@ -33,9 +33,9 @@ In your Runfile, use the `import_gem` directive to require any of the runfiles:
33
33
  title 'My Runfile'
34
34
 
35
35
  # commands for building and publishing your gem
36
- import_gem 'runfile-tasks/gem', gemname: 'my-gem'
36
+ import_gem 'runfile-tasks/gem'
37
37
  # or without publish/yank actions
38
- import_gem 'runfile-tasks/gem', gemname: 'my-gem', private: true
38
+ import_gem 'runfile-tasks/gem', private: true
39
39
 
40
40
  # commands for building and publishing your Dockerfile
41
41
  import_gem 'runfile-tasks/docker', image: 'my/image', version: '1.2.3'
data/docker.runfile CHANGED
@@ -1,5 +1,4 @@
1
- title 'Docker image commands'
2
- summary 'Ddocker building and publishing commands'
1
+ summary 'Ddocker management commands'
3
2
 
4
3
  require_context :image
5
4
  require_context :version
data/gem.runfile CHANGED
@@ -1,9 +1,7 @@
1
1
  require 'fileutils'
2
2
 
3
- title 'Gem management commands'
4
- summary 'Gem building and publishing commands'
3
+ summary 'Gem management commands'
5
4
 
6
- require_context :gemname
7
5
  require_context :private, default: false
8
6
 
9
7
  help 'Build and optionally install the gem'
@@ -45,7 +43,12 @@ end
45
43
 
46
44
  helpers do
47
45
  def gemname
48
- context[:gemname]
46
+ @gemname ||= begin
47
+ gemspec = Dir['*.gemspec'].first
48
+ raise UserError, 'Cannot find any *.gemspec' unless gemspec
49
+
50
+ Gem::Specification::load(gemspec).name
51
+ end
49
52
  end
50
53
 
51
54
  def gemfile
data/yard.runfile ADDED
@@ -0,0 +1,8 @@
1
+ summary 'YARD documentation commands'
2
+
3
+ help "Run YARD server"
4
+ usage "server [--port PORT]"
5
+ option "--port, -p PORT", "Set server port [default: 3000]"
6
+ action :server do |args|
7
+ system "yard server --server puma --port #{args['--port']} --bind 0.0.0.0 --reload"
8
+ end
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.2
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-02-01 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A collection of tasks for Runfile
14
14
  email: db@dannyben.com
@@ -19,6 +19,7 @@ files:
19
19
  - README.md
20
20
  - docker.runfile
21
21
  - gem.runfile
22
+ - yard.runfile
22
23
  homepage: https://github.com/DannyBen/runfile-tasks
23
24
  licenses:
24
25
  - MIT
@@ -39,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
42
  requirements: []
42
- rubygems_version: 3.4.5
43
+ rubygems_version: 3.4.9
43
44
  signing_key:
44
45
  specification_version: 4
45
46
  summary: Runfile tasks collection