raketary 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -2
- data/Gemfile +0 -18
- data/Gemfile.lock +13 -12
- data/README.md +5 -5
- data/Rakefile +3 -21
- data/bin/raketary +5 -16
- data/lib/raketary.rb +6 -18
- data/lib/raketary/app.rb +19 -31
- data/lib/raketary/bump_cmd.rb +39 -48
- data/lib/raketary/cmd.rb +31 -43
- data/lib/raketary/errors.rb +6 -18
- data/lib/raketary/ghp_sync_cmd.rb +32 -44
- data/lib/raketary/github_pkg_cmd.rb +16 -28
- data/lib/raketary/irb_cmd.rb +14 -26
- data/lib/raketary/nokogiri_cmd.rb +18 -30
- data/lib/raketary/run_cmd.rb +17 -29
- data/lib/raketary/sub_cmd.rb +5 -17
- data/lib/raketary/version.rb +4 -16
- data/raketary.gemspec +14 -32
- metadata +11 -11
data/lib/raketary/run_cmd.rb
CHANGED
@@ -1,23 +1,11 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
1
|
# encoding: UTF-8
|
3
2
|
# frozen_string_literal: true
|
4
3
|
|
5
4
|
#--
|
6
5
|
# This file is part of Raketary.
|
7
|
-
# Copyright (c) 2019-
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# it under the terms of the GNU Lesser General Public License as published by
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
12
|
-
# (at your option) any later version.
|
13
|
-
#
|
14
|
-
# Raketary is distributed in the hope that it will be useful,
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
-
# GNU Lesser General Public License for more details.
|
18
|
-
#
|
19
|
-
# You should have received a copy of the GNU Lesser General Public License
|
20
|
-
# along with Raketary. If not, see <https://www.gnu.org/licenses/>.
|
6
|
+
# Copyright (c) 2019-2021 Jonathan Bradley Whited
|
7
|
+
#
|
8
|
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
21
9
|
#++
|
22
10
|
|
23
11
|
|
@@ -28,31 +16,31 @@ require 'raketeer/run_task'
|
|
28
16
|
|
29
17
|
module Raketary
|
30
18
|
###
|
31
|
-
# @author Jonathan Bradley Whited
|
19
|
+
# @author Jonathan Bradley Whited
|
32
20
|
# @since 0.1.0
|
33
21
|
###
|
34
22
|
class RunCmd < Cmd
|
35
23
|
def initialize(*)
|
36
24
|
super
|
37
|
-
|
38
|
-
parse!
|
25
|
+
|
26
|
+
parse! do |op|
|
39
27
|
#op.separator op.summary_indent
|
40
28
|
end
|
41
29
|
end
|
42
|
-
|
43
|
-
def run
|
30
|
+
|
31
|
+
def run
|
44
32
|
super()
|
45
|
-
|
46
|
-
run_task = Raketeer::RunTask.new
|
47
|
-
|
48
|
-
ARGV << run_task.name.to_s
|
33
|
+
|
34
|
+
run_task = Raketeer::RunTask.new
|
35
|
+
|
36
|
+
ARGV << run_task.name.to_s
|
49
37
|
ARGV.push(*@leftover_args)
|
50
|
-
|
38
|
+
|
51
39
|
run_task = Rake::Task[run_task.name]
|
52
|
-
|
53
|
-
run_task.reenable
|
54
|
-
run_task.invoke
|
55
|
-
|
40
|
+
|
41
|
+
run_task.reenable
|
42
|
+
run_task.invoke
|
43
|
+
|
56
44
|
app.ran_cmd = true
|
57
45
|
end
|
58
46
|
end
|
data/lib/raketary/sub_cmd.rb
CHANGED
@@ -1,35 +1,23 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
1
|
# encoding: UTF-8
|
3
2
|
# frozen_string_literal: true
|
4
3
|
|
5
4
|
#--
|
6
5
|
# This file is part of Raketary.
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# it under the terms of the GNU Lesser General Public License as published by
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
12
|
-
# (at your option) any later version.
|
13
|
-
#
|
14
|
-
# Raketary is distributed in the hope that it will be useful,
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
-
# GNU Lesser General Public License for more details.
|
18
|
-
#
|
19
|
-
# You should have received a copy of the GNU Lesser General Public License
|
20
|
-
# along with Raketary. If not, see <https://www.gnu.org/licenses/>.
|
6
|
+
# Copyright (c) 2019-2021 Jonathan Bradley Whited
|
7
|
+
#
|
8
|
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
21
9
|
#++
|
22
10
|
|
23
11
|
|
24
12
|
module Raketary
|
25
13
|
###
|
26
|
-
# @author Jonathan Bradley Whited
|
14
|
+
# @author Jonathan Bradley Whited
|
27
15
|
# @since 0.1.0
|
28
16
|
###
|
29
17
|
class SubCmd
|
30
18
|
attr_reader :cmd_class
|
31
19
|
attr_reader :desc
|
32
|
-
|
20
|
+
|
33
21
|
def initialize(desc,cmd_class)
|
34
22
|
@cmd_class = cmd_class
|
35
23
|
@desc = desc
|
data/lib/raketary/version.rb
CHANGED
@@ -1,26 +1,14 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
1
|
# encoding: UTF-8
|
3
2
|
# frozen_string_literal: true
|
4
3
|
|
5
4
|
#--
|
6
5
|
# This file is part of Raketary.
|
7
|
-
# Copyright (c) 2019-
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# it under the terms of the GNU Lesser General Public License as published by
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
12
|
-
# (at your option) any later version.
|
13
|
-
#
|
14
|
-
# Raketary is distributed in the hope that it will be useful,
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
-
# GNU Lesser General Public License for more details.
|
18
|
-
#
|
19
|
-
# You should have received a copy of the GNU Lesser General Public License
|
20
|
-
# along with Raketary. If not, see <https://www.gnu.org/licenses/>.
|
6
|
+
# Copyright (c) 2019-2021 Jonathan Bradley Whited
|
7
|
+
#
|
8
|
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
21
9
|
#++
|
22
10
|
|
23
11
|
|
24
12
|
module Raketary
|
25
|
-
VERSION = '0.2.
|
13
|
+
VERSION = '0.2.2'
|
26
14
|
end
|
data/raketary.gemspec
CHANGED
@@ -1,24 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
#--
|
5
|
-
# This file is part of Raketary.
|
6
|
-
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
7
|
-
#
|
8
|
-
# Raketary is free software: you can redistribute it and/or modify
|
9
|
-
# it under the terms of the GNU Lesser General Public License as published by
|
10
|
-
# the Free Software Foundation, either version 3 of the License, or
|
11
|
-
# (at your option) any later version.
|
12
|
-
#
|
13
|
-
# Raketary is distributed in the hope that it will be useful,
|
14
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
|
-
# GNU Lesser General Public License for more details.
|
17
|
-
#
|
18
|
-
# You should have received a copy of the GNU Lesser General Public License
|
19
|
-
# along with Raketary. If not, see <https://www.gnu.org/licenses/>.
|
20
|
-
#++
|
21
|
-
|
22
4
|
|
23
5
|
lib = File.expand_path(File.join('..','lib'),__FILE__)
|
24
6
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
@@ -26,42 +8,42 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
26
8
|
require 'raketary/version'
|
27
9
|
|
28
10
|
|
29
|
-
Gem::Specification.new
|
11
|
+
Gem::Specification.new do |spec|
|
30
12
|
spec.name = 'raketary'
|
31
13
|
spec.version = Raketary::VERSION
|
32
|
-
spec.authors = ['Jonathan Bradley Whited
|
33
|
-
spec.email = ['
|
14
|
+
spec.authors = ['Jonathan Bradley Whited']
|
15
|
+
spec.email = ['code@esotericpig.com']
|
34
16
|
spec.licenses = ['LGPL-3.0-or-later']
|
35
17
|
spec.homepage = 'https://github.com/esotericpig/raketary'
|
36
18
|
spec.summary = 'CLI app for commonly-used Rake tasks.'
|
37
19
|
spec.description = spec.summary
|
38
|
-
|
20
|
+
|
39
21
|
spec.metadata = {
|
40
22
|
'bug_tracker_uri' => 'https://github.com/esotericpig/raketary/issues',
|
41
23
|
'changelog_uri' => 'https://github.com/esotericpig/raketary/blob/master/CHANGELOG.md',
|
42
24
|
'homepage_uri' => 'https://github.com/esotericpig/raketary',
|
43
25
|
'source_code_uri' => 'https://github.com/esotericpig/raketary'
|
44
26
|
}
|
45
|
-
|
27
|
+
|
46
28
|
spec.require_paths = ['lib']
|
47
29
|
spec.bindir = 'bin'
|
48
30
|
spec.executables = [spec.name]
|
49
|
-
|
31
|
+
|
50
32
|
spec.files = Dir.glob(File.join("{#{spec.require_paths.join(',')}}",'**','*.{erb,rb}')) +
|
51
33
|
Dir.glob(File.join(spec.bindir,'*')) +
|
52
34
|
Dir.glob(File.join('{test,yard}','**','*.{erb,rb}')) +
|
53
|
-
%W
|
54
|
-
%w
|
55
|
-
|
35
|
+
%W[ Gemfile Gemfile.lock #{spec.name}.gemspec Rakefile ] +
|
36
|
+
%w[ CHANGELOG.md LICENSE.txt README.md ]
|
37
|
+
|
56
38
|
spec.required_ruby_version = '>= 2.4'
|
57
|
-
|
58
|
-
spec.add_runtime_dependency 'irb' ,'~> 1.
|
39
|
+
|
40
|
+
spec.add_runtime_dependency 'irb' ,'~> 1.3' # For Raketeer::IRBTask
|
59
41
|
spec.add_runtime_dependency 'rake' ,'~> 13.0' # For using custom Rake tasks
|
60
42
|
spec.add_runtime_dependency 'raketeer' ,'~> 0.2' # For general Rake tasks
|
61
43
|
spec.add_runtime_dependency 'yard_ghurt','~> 1.2' # For YARDoc Rake tasks
|
62
|
-
|
63
|
-
spec.add_development_dependency 'bundler','~> 2.
|
44
|
+
|
45
|
+
spec.add_development_dependency 'bundler','~> 2.2'
|
64
46
|
spec.add_development_dependency 'yard' ,'~> 0.9' # For documentation
|
65
|
-
|
47
|
+
|
66
48
|
spec.post_install_message = "You can now use [#{spec.executables.join(', ')}] on the command line."
|
67
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raketary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Jonathan Bradley Whited
|
8
|
-
autorequire:
|
7
|
+
- Jonathan Bradley Whited
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: irb
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: yard
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
version: '0.9'
|
97
97
|
description: CLI app for commonly-used Rake tasks.
|
98
98
|
email:
|
99
|
-
-
|
99
|
+
- code@esotericpig.com
|
100
100
|
executables:
|
101
101
|
- raketary
|
102
102
|
extensions: []
|
@@ -145,8 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
149
|
-
signing_key:
|
148
|
+
rubygems_version: 3.2.15
|
149
|
+
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: CLI app for commonly-used Rake tasks.
|
152
152
|
test_files: []
|