runfile-tasks 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/gem.runfile +12 -10
  3. data/yard.runfile +3 -3
  4. metadata +7 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f89325e6fa987c92d5a0524756882da6cde621871d29b6b8c1aae2eb2876d56
4
- data.tar.gz: 8637c30a8e73a5ee5ed6d21999f857f9dfd141212124801d2ef9b027c9dba4b5
3
+ metadata.gz: 460c71754f82e1cf33b023b45ec97225d115404837c06542d2a32dc175de9236
4
+ data.tar.gz: d1901fec6a5bb8104e54874b1d7cb4c1cc36194a62f4a44974be5e603e34baf5
5
5
  SHA512:
6
- metadata.gz: be90a2e42f99fd2265309d076d23dc0f0756bc36442d3fe7f61490c25bdaaca648d8b08828ec0b39dcb87f4f5f896d6bbef030445b926c335b0595dea5004aba
7
- data.tar.gz: 0d7650b544489d60b0579b3d52ae492eaf27f376373607cf475cc3ae0172a3c49feacf5bb5962916dcbea240fbeacfa865d5debf6b8cdfdc5bbcf7a7f04dbc3b
6
+ metadata.gz: b6ed197b4601ae82b3da4f6258c00b23de28ac3211f2b70268716bd06959d640f4386bb99d96db9c1f0bc1949942f2d6732b9876d503a5fa2cbf6ba3e0f8851c
7
+ data.tar.gz: c0b855393735047e70b0f078425d3b20aef4c23487857b7218c310517b3e6774313b7ba0fc4e63c1eecaf29dd662439cc331368064804edf33f2ea95986693f5
data/gem.runfile CHANGED
@@ -4,18 +4,15 @@ summary 'Gem management commands'
4
4
 
5
5
  require_context :private, default: false
6
6
 
7
- help 'Build and optionally install the gem'
8
- usage '(build | b) [--install]'
9
- option '--install, -i', 'Install after building'
10
- action :build, :b do |args|
11
- say "g`Building #{gemname}`"
12
- run "gem build #{gemname}.gemspec --output #{gemfile}"
13
- install_gem if args['--install']
7
+ help 'Build the gem'
8
+ usage '(build | b)'
9
+ action :build, :b do |_args|
10
+ build_gem
14
11
  end
15
12
 
16
- help 'Install the last built gem'
13
+ help 'Build and install the gem'
17
14
  action :install, :i do
18
- need_gemfile
15
+ build_gem
19
16
  install_gem
20
17
  end
21
18
 
@@ -47,7 +44,7 @@ helpers do
47
44
  gemspec = Dir['*.gemspec'].first
48
45
  raise UserError, 'Cannot find any *.gemspec' unless gemspec
49
46
 
50
- Gem::Specification::load(gemspec).name
47
+ Gem::Specification.load(gemspec).name
51
48
  end
52
49
  end
53
50
 
@@ -65,6 +62,11 @@ helpers do
65
62
  run "gem install --local #{gemfile}"
66
63
  end
67
64
 
65
+ def build_gem
66
+ say "g`Building #{gemname}`"
67
+ run "gem build #{gemname}.gemspec --output #{gemfile}"
68
+ end
69
+
68
70
  def need_gemfile
69
71
  raise UserError, "File not found #{gemfile}" unless File.exist? gemfile
70
72
  end
data/yard.runfile CHANGED
@@ -1,8 +1,8 @@
1
1
  summary 'YARD documentation commands'
2
2
 
3
- help "Run YARD server"
4
- usage "server [--port PORT]"
5
- option "--port, -p PORT", "Set server port [default: 3000]"
3
+ help 'Run YARD server'
4
+ usage 'server [--port PORT]'
5
+ option '--port, -p PORT', 'Set server port [default: 3000]'
6
6
  action :server do |args|
7
7
  system "yard server --server puma --port #{args['--port']} --bind 0.0.0.0 --reload"
8
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.3
4
+ version: 1.0.4
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: 2024-02-06 00:00:00.000000000 Z
11
+ date: 2024-11-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A collection of tasks for Runfile
14
14
  email: db@dannyben.com
@@ -24,6 +24,9 @@ homepage: https://github.com/DannyBen/runfile-tasks
24
24
  licenses:
25
25
  - MIT
26
26
  metadata:
27
+ bug_tracker_uri: https://github.com/DannyBen/runfile-tasks/issues
28
+ changelog_uri: https://github.com/DannyBen/runfile-tasks/blob/master/CHANGELOG.md
29
+ source_code_uri: https://github.com/DannyBen/runfile-tasks
27
30
  rubygems_mfa_required: 'true'
28
31
  post_install_message:
29
32
  rdoc_options: []
@@ -33,14 +36,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
33
36
  requirements:
34
37
  - - ">="
35
38
  - !ruby/object:Gem::Version
36
- version: '2.7'
39
+ version: '3.1'
37
40
  required_rubygems_version: !ruby/object:Gem::Requirement
38
41
  requirements:
39
42
  - - ">="
40
43
  - !ruby/object:Gem::Version
41
44
  version: '0'
42
45
  requirements: []
43
- rubygems_version: 3.5.6
46
+ rubygems_version: 3.5.23
44
47
  signing_key:
45
48
  specification_version: 4
46
49
  summary: Runfile tasks collection