raketary 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/Gemfile.lock +8 -9
- data/README.md +21 -3
- data/Rakefile +16 -1
- data/lib/raketary/app.rb +12 -10
- data/lib/raketary/{app_bump.rb → bump_cmd.rb} +10 -6
- data/lib/raketary/cmd.rb +2 -1
- data/lib/raketary/ghp_sync_cmd.rb +97 -0
- data/lib/raketary/{app_github_pkg.rb → github_pkg_cmd.rb} +5 -4
- data/lib/raketary/{app_irb.rb → irb_cmd.rb} +3 -2
- data/lib/raketary/{app_nokogiri.rb → nokogiri_cmd.rb} +3 -2
- data/lib/raketary/{app_run.rb → run_cmd.rb} +3 -2
- data/lib/raketary/version.rb +2 -2
- data/lib/raketary.rb +8 -5
- data/raketary.gemspec +11 -9
- metadata +34 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72db7407a3bd2728c803b7cde4cabc67b144c7e80c5e3781be58f777c3bc494a
|
|
4
|
+
data.tar.gz: fbb4b52e2722c985b53cfc7e38543577344cf63cc6d337e9fed848e53a636d06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbe8b5017f9816af1bdf857625618afe6888447c6bd84346adbf824a41533509b399a8cce86bd9e576a480abd8b0c27be9f92767530754c9a5e100656b0f5627
|
|
7
|
+
data.tar.gz: fbd48229a57f16259edaa686c6d69e714289578bd12de723f701ceab25e313902e52e4e6691780e7f302126cad49afb2bdb2f4222e2c430fcfdce56569d3f278
|
data/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [[Unreleased]](https://github.com/esotericpig/raketary/compare/v0.
|
|
5
|
+
## [[Unreleased]](https://github.com/esotericpig/raketary/compare/v0.2.0...master)
|
|
6
|
+
|
|
7
|
+
## [v0.2.0] - 2020-03-04
|
|
8
|
+
### Added
|
|
9
|
+
- Added `GHPSyncCmd` for syncing YARDoc to GitHub Pages
|
|
10
|
+
- Calls `rsync` to sync `./doc/` to another local directory
|
|
11
|
+
- File: `lib/raketary/ghp_sync_cmd.rb`
|
|
12
|
+
- Sub cmd: `ghp_sync`
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Renamed `App*` classes (`app_*.rb` files) to `*Cmd` (`*_cmd.rb`) since they extend `Cmd`, not `App`
|
|
6
16
|
|
|
7
17
|
## [v0.1.3] - 2020-03-02
|
|
8
18
|
### Changed
|
data/Gemfile.lock
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
raketary (0.
|
|
5
|
-
|
|
6
|
-
rake (~> 12.3)
|
|
4
|
+
raketary (0.2.0)
|
|
5
|
+
rake (~> 13.0)
|
|
7
6
|
raketeer (~> 0.2)
|
|
7
|
+
yard_ghurt (~> 1.2)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
|
|
13
|
-
irb (1.2.3)
|
|
14
|
-
reline (>= 0.0.1)
|
|
15
|
-
rake (12.3.3)
|
|
12
|
+
rake (13.0.1)
|
|
16
13
|
raketeer (0.2.9)
|
|
17
14
|
rake
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
yard (0.9.24)
|
|
16
|
+
yard_ghurt (1.2.0)
|
|
17
|
+
rake
|
|
20
18
|
|
|
21
19
|
PLATFORMS
|
|
22
20
|
ruby
|
|
@@ -24,6 +22,7 @@ PLATFORMS
|
|
|
24
22
|
DEPENDENCIES
|
|
25
23
|
bundler (~> 2.0)
|
|
26
24
|
raketary!
|
|
25
|
+
yard (~> 0.9)
|
|
27
26
|
|
|
28
27
|
BUNDLED WITH
|
|
29
28
|
2.1.2
|
data/README.md
CHANGED
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
[](CHANGELOG.md)
|
|
7
7
|
[](LICENSE.txt)
|
|
8
8
|
|
|
9
|
-
CLI for
|
|
9
|
+
CLI app for commonly-used Rake tasks.
|
|
10
|
+
|
|
11
|
+
Includes:
|
|
12
|
+
|
|
13
|
+
- [Raketeer](https://github.com/esotericpig/raketeer)
|
|
14
|
+
- [YardGhurt](https://github.com/esotericpig/yard_ghurt)
|
|
10
15
|
|
|
11
16
|

|
|
12
17
|
|
|
@@ -36,14 +41,13 @@ $ bundle exec rake install:local
|
|
|
36
41
|
|
|
37
42
|
## [Using](#contents)
|
|
38
43
|
|
|
39
|
-
**TODO:** flesh out Using section
|
|
40
|
-
|
|
41
44
|
```
|
|
42
45
|
$ raketary
|
|
43
46
|
Usage: raketary [options] [command] [options]...
|
|
44
47
|
|
|
45
48
|
Commands:
|
|
46
49
|
bump Bump your project's version
|
|
50
|
+
ghp_sync Sync YARDoc to GitHub Pages repo
|
|
47
51
|
github_pkg Publish your project's gem(s) to GitHub Packages
|
|
48
52
|
irb Open an irb session loaded with your library
|
|
49
53
|
nokogiri Install Nokogiri libs
|
|
@@ -112,6 +116,20 @@ $ raketary github_pkg -h
|
|
|
112
116
|
-h, --help show this help
|
|
113
117
|
```
|
|
114
118
|
|
|
119
|
+
**GitHub Pages Sync**
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
$ raketary ghp_sync -h
|
|
123
|
+
...
|
|
124
|
+
[ghp_sync] Options:
|
|
125
|
+
-g, --ghp-dir STR the destination (GitHub Pages) directory to sync "doc/" to
|
|
126
|
+
|
|
127
|
+
-d, --deploy actually deploy (don't just do a dry-run)
|
|
128
|
+
-s, --sync-args STR additional args to pass to the sync command
|
|
129
|
+
|
|
130
|
+
-h, --help show this help
|
|
131
|
+
```
|
|
132
|
+
|
|
115
133
|
## [Hacking](#contents)
|
|
116
134
|
|
|
117
135
|
```
|
data/Rakefile
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#--
|
|
5
5
|
# This file is part of Raketary.
|
|
6
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
6
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
7
7
|
#
|
|
8
8
|
# Raketary is free software: you can redistribute it and/or modify
|
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -23,9 +23,24 @@
|
|
|
23
23
|
require 'bundler/gem_tasks'
|
|
24
24
|
|
|
25
25
|
require 'rake/clean'
|
|
26
|
+
require 'raketary/version'
|
|
26
27
|
require 'raketeer/run'
|
|
28
|
+
require 'yard'
|
|
29
|
+
|
|
27
30
|
|
|
28
31
|
task default: [:run]
|
|
29
32
|
|
|
30
33
|
CLEAN.exclude('.git/','stock/')
|
|
31
34
|
CLOBBER.include('doc/')
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
YARD::Rake::YardocTask.new() do |task|
|
|
38
|
+
task.files = [File.join('lib','**','*.rb')]
|
|
39
|
+
|
|
40
|
+
task.options += ['--files','CHANGELOG.md,LICENSE.txt']
|
|
41
|
+
task.options += ['--readme','README.md']
|
|
42
|
+
|
|
43
|
+
task.options << '--protected' # Show protected methods
|
|
44
|
+
#task.options += ['--template-path',File.join('yard','templates')]
|
|
45
|
+
task.options += ['--title',"Raketary v#{Raketary::VERSION} Doc"]
|
|
46
|
+
end
|
data/lib/raketary/app.rb
CHANGED
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
#++
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
require 'raketary/
|
|
25
|
-
require 'raketary/app_github_pkg'
|
|
26
|
-
require 'raketary/app_irb'
|
|
27
|
-
require 'raketary/app_nokogiri'
|
|
28
|
-
require 'raketary/app_run'
|
|
24
|
+
require 'raketary/bump_cmd'
|
|
29
25
|
require 'raketary/cmd'
|
|
26
|
+
require 'raketary/ghp_sync_cmd'
|
|
27
|
+
require 'raketary/github_pkg_cmd'
|
|
28
|
+
require 'raketary/irb_cmd'
|
|
29
|
+
require 'raketary/nokogiri_cmd'
|
|
30
|
+
require 'raketary/run_cmd'
|
|
30
31
|
require 'raketary/sub_cmd'
|
|
31
32
|
require 'raketary/version'
|
|
32
33
|
|
|
@@ -57,11 +58,12 @@ module Raketary
|
|
|
57
58
|
@version = Raketary::VERSION
|
|
58
59
|
|
|
59
60
|
@sub_cmds = {
|
|
60
|
-
'bump' => SubCmd.new(%q(Bump your project's version),
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
61
|
+
'bump' => SubCmd.new(%q(Bump your project's version),BumpCmd),
|
|
62
|
+
'ghp_sync' => SubCmd.new('Sync YARDoc to GitHub Pages repo',GHPSyncCmd),
|
|
63
|
+
'github_pkg' => SubCmd.new(%q(Publish your project's gem(s) to GitHub Packages),GitHubPkgCmd),
|
|
64
|
+
'irb' => SubCmd.new('Open an irb session loaded with your library',IRBCmd),
|
|
65
|
+
'nokogiri' => SubCmd.new('Install Nokogiri libs',NokogiriCmd),
|
|
66
|
+
'run' => SubCmd.new(%Q(Run your project's main file: #{@name} run -- --version),RunCmd)
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
parse!(true) do |op|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -24,12 +24,13 @@
|
|
|
24
24
|
require 'raketary/cmd'
|
|
25
25
|
require 'raketeer/bump_task'
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
module Raketary
|
|
28
29
|
###
|
|
29
30
|
# @author Jonathan Bradley Whited (@esotericpig)
|
|
30
31
|
# @since 0.1.0
|
|
31
32
|
###
|
|
32
|
-
class
|
|
33
|
+
class BumpCmd < Cmd
|
|
33
34
|
def initialize(*)
|
|
34
35
|
super
|
|
35
36
|
|
|
@@ -38,6 +39,7 @@ module Raketary
|
|
|
38
39
|
parse!() do |op|
|
|
39
40
|
op.on('-n','--dry-run','do a dry run (do NOT write to files)')
|
|
40
41
|
op.on('-s','--strict','enforce semantic versioning (i.e., \\d+\\.\\d+\\.\\d+.*)')
|
|
42
|
+
|
|
41
43
|
op.separator op.summary_indent
|
|
42
44
|
|
|
43
45
|
op.on('-v','--ver [STR]',%q{show/set the version (e.g.: '1.2.3-alpha.4+beta.5') (default: show)}) do |ver|
|
|
@@ -68,6 +70,7 @@ module Raketary
|
|
|
68
70
|
@run_cmd = true
|
|
69
71
|
true
|
|
70
72
|
end
|
|
73
|
+
|
|
71
74
|
op.separator op.summary_indent
|
|
72
75
|
|
|
73
76
|
op.on_tail('-x','--example','show some examples') do
|
|
@@ -105,10 +108,11 @@ module Raketary
|
|
|
105
108
|
super()
|
|
106
109
|
return unless @run_cmd
|
|
107
110
|
|
|
108
|
-
bump_task = Raketeer::BumpTask.new()
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
bump_task = Raketeer::BumpTask.new() do |task|
|
|
112
|
+
task.bump_bundle = false
|
|
113
|
+
task.dry_run = app.options[:dry_run] ? true : false
|
|
114
|
+
task.strict = app.options[:strict] ? true : false
|
|
115
|
+
end
|
|
112
116
|
|
|
113
117
|
bump_task.check_env()
|
|
114
118
|
|
data/lib/raketary/cmd.rb
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
require 'optparse'
|
|
25
25
|
require 'raketary/errors'
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
module Raketary
|
|
28
29
|
###
|
|
29
30
|
# @author Jonathan Bradley Whited (@esotericpig)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# encoding: UTF-8
|
|
3
|
+
# frozen_string_literal: true
|
|
4
|
+
|
|
5
|
+
#--
|
|
6
|
+
# This file is part of Raketary.
|
|
7
|
+
# Copyright (c) 2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
|
+
#
|
|
9
|
+
# Raketary is free software: you can redistribute it and/or modify
|
|
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/>.
|
|
21
|
+
#++
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
require 'rake'
|
|
25
|
+
require 'raketary/cmd'
|
|
26
|
+
require 'shellwords'
|
|
27
|
+
require 'yard_ghurt/ghp_sync_task'
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
module Raketary
|
|
31
|
+
###
|
|
32
|
+
# @author Jonathan Bradley Whited (@esotericpig)
|
|
33
|
+
# @since 0.2.0
|
|
34
|
+
###
|
|
35
|
+
class GHPSyncCmd < Cmd
|
|
36
|
+
def initialize(*)
|
|
37
|
+
super
|
|
38
|
+
|
|
39
|
+
# Kind of hacky, but necessary because sync_args can have a hyphen/dash.
|
|
40
|
+
app.args.each_with_index() do |arg,i|
|
|
41
|
+
arg = arg.strip()
|
|
42
|
+
|
|
43
|
+
if arg == '-s' || arg.downcase() == '--sync-args'
|
|
44
|
+
sync_args = app.args[i + 1] # If out of bounds, nil
|
|
45
|
+
|
|
46
|
+
if !sync_args.nil?()
|
|
47
|
+
sync_args = Shellwords.split(sync_args)
|
|
48
|
+
sync_args = nil if sync_args.nil?() || sync_args.empty?()
|
|
49
|
+
|
|
50
|
+
app.options[:sync_args] = sync_args
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
app.args.delete_at(i)
|
|
54
|
+
app.args.delete_at(i) # If out of bounds, no error
|
|
55
|
+
|
|
56
|
+
break
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
parse!() do |op|
|
|
61
|
+
op.on('-g','--ghp-dir STR','the destination (GitHub Pages) directory to sync "doc/" to')
|
|
62
|
+
|
|
63
|
+
op.separator op.summary_indent
|
|
64
|
+
|
|
65
|
+
op.on('-d','--deploy',"actually deploy (don't just do a dry-run)")
|
|
66
|
+
op.on('-s','--sync-args STR','additional args to pass to the sync command') do |sync_args|
|
|
67
|
+
app.options[:sync_args] # Already processed above
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
op.separator op.summary_indent
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def run()
|
|
75
|
+
super()
|
|
76
|
+
|
|
77
|
+
ghp_dir = app.options[:ghp_dir]
|
|
78
|
+
|
|
79
|
+
return unless ghp_dir
|
|
80
|
+
|
|
81
|
+
deploy = app.options[:deploy]
|
|
82
|
+
sync_args = app.options[:sync_args]
|
|
83
|
+
|
|
84
|
+
sync_task = YardGhurt::GHPSyncTask.new() do |task|
|
|
85
|
+
task.ghp_dir = ghp_dir
|
|
86
|
+
task.sync_args.push(*sync_args) unless sync_args.nil?()
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
sync_task = Rake::Task[sync_task.name]
|
|
90
|
+
|
|
91
|
+
sync_task.reenable()
|
|
92
|
+
sync_task.invoke(deploy)
|
|
93
|
+
|
|
94
|
+
app.ran_cmd = true
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c)
|
|
7
|
+
# Copyright (c) 2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
require 'bundler/gem_tasks'
|
|
25
|
-
|
|
26
25
|
require 'rake'
|
|
27
26
|
require 'raketary/cmd'
|
|
28
27
|
require 'raketeer/github_pkg_task'
|
|
@@ -33,12 +32,14 @@ module Raketary
|
|
|
33
32
|
# @author Jonathan Bradley Whited (@esotericpig)
|
|
34
33
|
# @since 0.1.2
|
|
35
34
|
###
|
|
36
|
-
class
|
|
35
|
+
class GitHubPkgCmd < Cmd
|
|
37
36
|
def initialize(*)
|
|
38
37
|
super
|
|
39
38
|
|
|
40
39
|
parse!() do |op|
|
|
41
|
-
op.on('-u','--user
|
|
40
|
+
op.on('-u','--user STR','set the GitHub username')
|
|
41
|
+
|
|
42
|
+
op.separator op.summary_indent
|
|
42
43
|
end
|
|
43
44
|
end
|
|
44
45
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -25,12 +25,13 @@ require 'rake'
|
|
|
25
25
|
require 'raketary/cmd'
|
|
26
26
|
require 'raketeer/irb_task'
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
module Raketary
|
|
29
30
|
###
|
|
30
31
|
# @author Jonathan Bradley Whited (@esotericpig)
|
|
31
32
|
# @since 0.1.0
|
|
32
33
|
###
|
|
33
|
-
class
|
|
34
|
+
class IRBCmd < Cmd
|
|
34
35
|
def initialize(*)
|
|
35
36
|
super
|
|
36
37
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -25,12 +25,13 @@ require 'raketary/cmd'
|
|
|
25
25
|
require 'raketary/errors'
|
|
26
26
|
require 'raketeer/nokogiri_install_tasks'
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
module Raketary
|
|
29
30
|
###
|
|
30
31
|
# @author Jonathan Bradley Whited (@esotericpig)
|
|
31
32
|
# @since 0.1.0
|
|
32
33
|
###
|
|
33
|
-
class
|
|
34
|
+
class NokogiriCmd < Cmd
|
|
34
35
|
def initialize(*)
|
|
35
36
|
super
|
|
36
37
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -25,12 +25,13 @@ require 'rake'
|
|
|
25
25
|
require 'raketary/cmd'
|
|
26
26
|
require 'raketeer/run_task'
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
module Raketary
|
|
29
30
|
###
|
|
30
31
|
# @author Jonathan Bradley Whited (@esotericpig)
|
|
31
32
|
# @since 0.1.0
|
|
32
33
|
###
|
|
33
|
-
class
|
|
34
|
+
class RunCmd < Cmd
|
|
34
35
|
def initialize(*)
|
|
35
36
|
super
|
|
36
37
|
|
data/lib/raketary/version.rb
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
module Raketary
|
|
25
|
-
VERSION = '0.
|
|
25
|
+
VERSION = '0.2.0'
|
|
26
26
|
end
|
data/lib/raketary.rb
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#--
|
|
6
6
|
# This file is part of Raketary.
|
|
7
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
#
|
|
9
9
|
# Raketary is free software: you can redistribute it and/or modify
|
|
10
10
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -29,15 +29,18 @@ if TESTING_RAKETARY
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
require 'raketary/app'
|
|
32
|
-
require 'raketary/
|
|
33
|
-
require 'raketary/app_irb'
|
|
34
|
-
require 'raketary/app_nokogiri'
|
|
35
|
-
require 'raketary/app_run'
|
|
32
|
+
require 'raketary/bump_cmd'
|
|
36
33
|
require 'raketary/cmd'
|
|
37
34
|
require 'raketary/errors'
|
|
35
|
+
require 'raketary/ghp_sync_cmd'
|
|
36
|
+
require 'raketary/github_pkg_cmd'
|
|
37
|
+
require 'raketary/irb_cmd'
|
|
38
|
+
require 'raketary/nokogiri_cmd'
|
|
39
|
+
require 'raketary/run_cmd'
|
|
38
40
|
require 'raketary/sub_cmd'
|
|
39
41
|
require 'raketary/version'
|
|
40
42
|
|
|
43
|
+
|
|
41
44
|
###
|
|
42
45
|
# @author Jonathan Bradley Whited (@esotericpig)
|
|
43
46
|
# @since 0.1.0
|
data/raketary.gemspec
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#--
|
|
5
5
|
# This file is part of Raketary.
|
|
6
|
-
# Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
|
|
6
|
+
# Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
|
|
7
7
|
#
|
|
8
8
|
# Raketary is free software: you can redistribute it and/or modify
|
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -25,6 +25,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
25
25
|
|
|
26
26
|
require 'raketary/version'
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
Gem::Specification.new() do |spec|
|
|
29
30
|
spec.name = 'raketary'
|
|
30
31
|
spec.version = Raketary::VERSION
|
|
@@ -32,7 +33,7 @@ Gem::Specification.new() do |spec|
|
|
|
32
33
|
spec.email = ['bradley@esotericpig.com']
|
|
33
34
|
spec.licenses = ['LGPL-3.0-or-later']
|
|
34
35
|
spec.homepage = 'https://github.com/esotericpig/raketary'
|
|
35
|
-
spec.summary = 'CLI for
|
|
36
|
+
spec.summary = 'CLI app for commonly-used Rake tasks.'
|
|
36
37
|
spec.description = spec.summary
|
|
37
38
|
|
|
38
39
|
spec.metadata = {
|
|
@@ -47,18 +48,19 @@ Gem::Specification.new() do |spec|
|
|
|
47
48
|
spec.executables = [spec.name]
|
|
48
49
|
|
|
49
50
|
spec.files = Dir.glob(File.join("{#{spec.require_paths.join(',')}}",'**','*.{erb,rb}')) +
|
|
50
|
-
Dir.glob(File.join(spec.bindir,'
|
|
51
|
+
Dir.glob(File.join(spec.bindir,'*')) +
|
|
51
52
|
Dir.glob(File.join('{test,yard}','**','*.{erb,rb}')) +
|
|
52
53
|
%W( Gemfile Gemfile.lock #{spec.name}.gemspec Rakefile ) +
|
|
53
54
|
%w( CHANGELOG.md LICENSE.txt README.md )
|
|
54
55
|
|
|
55
|
-
spec.
|
|
56
|
-
|
|
57
|
-
spec.required_ruby_version = '>= 2.4.6'
|
|
56
|
+
spec.required_ruby_version = '>= 2.4'
|
|
58
57
|
|
|
59
|
-
spec.add_runtime_dependency '
|
|
60
|
-
spec.add_runtime_dependency '
|
|
61
|
-
spec.add_runtime_dependency '
|
|
58
|
+
spec.add_runtime_dependency 'rake' ,'~> 13.0' # For using custom Rake tasks
|
|
59
|
+
spec.add_runtime_dependency 'raketeer' ,'~> 0.2' # For general Rake tasks
|
|
60
|
+
spec.add_runtime_dependency 'yard_ghurt','~> 1.2' # For YARDoc Rake tasks
|
|
62
61
|
|
|
63
62
|
spec.add_development_dependency 'bundler','~> 2.0'
|
|
63
|
+
spec.add_development_dependency 'yard' ,'~> 0.9' # For documentation
|
|
64
|
+
|
|
65
|
+
spec.post_install_message = "You can now use [#{spec.executables.join(', ')}] on the command line."
|
|
64
66
|
end
|
metadata
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: raketary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Bradley Whited (@esotericpig)
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: rake
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '13.0'
|
|
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: '
|
|
26
|
+
version: '13.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: raketeer
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '0.2'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '0.2'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: yard_ghurt
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '1.2'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
54
|
+
version: '1.2'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: bundler
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,7 +66,21 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '2.0'
|
|
69
|
-
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: yard
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0.9'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0.9'
|
|
83
|
+
description: CLI app for commonly-used Rake tasks.
|
|
70
84
|
email:
|
|
71
85
|
- bradley@esotericpig.com
|
|
72
86
|
executables:
|
|
@@ -83,13 +97,14 @@ files:
|
|
|
83
97
|
- bin/raketary
|
|
84
98
|
- lib/raketary.rb
|
|
85
99
|
- lib/raketary/app.rb
|
|
86
|
-
- lib/raketary/
|
|
87
|
-
- lib/raketary/app_github_pkg.rb
|
|
88
|
-
- lib/raketary/app_irb.rb
|
|
89
|
-
- lib/raketary/app_nokogiri.rb
|
|
90
|
-
- lib/raketary/app_run.rb
|
|
100
|
+
- lib/raketary/bump_cmd.rb
|
|
91
101
|
- lib/raketary/cmd.rb
|
|
92
102
|
- lib/raketary/errors.rb
|
|
103
|
+
- lib/raketary/ghp_sync_cmd.rb
|
|
104
|
+
- lib/raketary/github_pkg_cmd.rb
|
|
105
|
+
- lib/raketary/irb_cmd.rb
|
|
106
|
+
- lib/raketary/nokogiri_cmd.rb
|
|
107
|
+
- lib/raketary/run_cmd.rb
|
|
93
108
|
- lib/raketary/sub_cmd.rb
|
|
94
109
|
- lib/raketary/version.rb
|
|
95
110
|
- raketary.gemspec
|
|
@@ -109,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
109
124
|
requirements:
|
|
110
125
|
- - ">="
|
|
111
126
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: 2.4
|
|
127
|
+
version: '2.4'
|
|
113
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
129
|
requirements:
|
|
115
130
|
- - ">="
|
|
@@ -119,5 +134,5 @@ requirements: []
|
|
|
119
134
|
rubygems_version: 3.1.2
|
|
120
135
|
signing_key:
|
|
121
136
|
specification_version: 4
|
|
122
|
-
summary: CLI for
|
|
137
|
+
summary: CLI app for commonly-used Rake tasks.
|
|
123
138
|
test_files: []
|