raketary 0.1.2 → 0.2.3
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 +41 -2
- data/Gemfile +0 -18
- data/Gemfile.lock +17 -11
- data/README.md +24 -6
- data/Rakefile +15 -18
- data/bin/raketary +5 -16
- data/lib/raketary.rb +13 -22
- data/lib/raketary/app.rb +28 -38
- data/lib/raketary/{app_bump.rb → bump_cmd.rb} +45 -50
- data/lib/raketary/cmd.rb +32 -43
- data/lib/raketary/errors.rb +6 -18
- data/lib/raketary/ghp_sync_cmd.rb +85 -0
- data/lib/raketary/github_pkg_cmd.rb +49 -0
- data/lib/raketary/irb_cmd.rb +43 -0
- data/lib/raketary/{app_nokogiri.rb → nokogiri_cmd.rb} +20 -31
- data/lib/raketary/run_cmd.rb +47 -0
- data/lib/raketary/sub_cmd.rb +5 -17
- data/lib/raketary/version.rb +4 -16
- data/raketary.gemspec +22 -37
- metadata +50 -21
- data/lib/raketary/app_github_pkg.rb +0 -60
- data/lib/raketary/app_irb.rb +0 -54
- data/lib/raketary/app_run.rb +0 -58
@@ -1,60 +0,0 @@
|
|
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) 2019-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 'bundler/gem_tasks'
|
25
|
-
|
26
|
-
require 'rake'
|
27
|
-
require 'raketary/cmd'
|
28
|
-
require 'raketeer/github_pkg_task'
|
29
|
-
|
30
|
-
|
31
|
-
module Raketary
|
32
|
-
###
|
33
|
-
# @author Jonathan Bradley Whited (@esotericpig)
|
34
|
-
# @since 0.1.2
|
35
|
-
###
|
36
|
-
class AppGitHubPkg < Cmd
|
37
|
-
def initialize(*)
|
38
|
-
super
|
39
|
-
|
40
|
-
parse!() do |op|
|
41
|
-
op.on('-u','--user [STR]','set the GitHub username')
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def run()
|
46
|
-
super()
|
47
|
-
|
48
|
-
ghpkg_task = Raketeer::GitHubPkgTask.new() do |task|
|
49
|
-
task.username = app.options[:user] if app.options[:user]
|
50
|
-
end
|
51
|
-
|
52
|
-
ghpkg_task = Rake::Task[ghpkg_task.name]
|
53
|
-
|
54
|
-
ghpkg_task.reenable()
|
55
|
-
ghpkg_task.invoke()
|
56
|
-
|
57
|
-
app.ran_cmd = true
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
data/lib/raketary/app_irb.rb
DELETED
@@ -1,54 +0,0 @@
|
|
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) 2019 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 'raketeer/irb_task'
|
27
|
-
|
28
|
-
module Raketary
|
29
|
-
###
|
30
|
-
# @author Jonathan Bradley Whited (@esotericpig)
|
31
|
-
# @since 0.1.0
|
32
|
-
###
|
33
|
-
class AppIRB < Cmd
|
34
|
-
def initialize(*)
|
35
|
-
super
|
36
|
-
|
37
|
-
parse!() do |op|
|
38
|
-
#op.separator op.summary_indent
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def run()
|
43
|
-
super()
|
44
|
-
|
45
|
-
irb_task = Raketeer::IRBTask.new()
|
46
|
-
irb_task = Rake::Task[irb_task.name]
|
47
|
-
|
48
|
-
irb_task.reenable()
|
49
|
-
irb_task.invoke()
|
50
|
-
|
51
|
-
app.ran_cmd = true
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
data/lib/raketary/app_run.rb
DELETED
@@ -1,58 +0,0 @@
|
|
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) 2019 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 'raketeer/run_task'
|
27
|
-
|
28
|
-
module Raketary
|
29
|
-
###
|
30
|
-
# @author Jonathan Bradley Whited (@esotericpig)
|
31
|
-
# @since 0.1.0
|
32
|
-
###
|
33
|
-
class AppRun < Cmd
|
34
|
-
def initialize(*)
|
35
|
-
super
|
36
|
-
|
37
|
-
parse!() do |op|
|
38
|
-
#op.separator op.summary_indent
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def run()
|
43
|
-
super()
|
44
|
-
|
45
|
-
run_task = Raketeer::RunTask.new()
|
46
|
-
|
47
|
-
ARGV << run_task.name.to_s()
|
48
|
-
ARGV.push(*@leftover_args)
|
49
|
-
|
50
|
-
run_task = Rake::Task[run_task.name]
|
51
|
-
|
52
|
-
run_task.reenable()
|
53
|
-
run_task.invoke()
|
54
|
-
|
55
|
-
app.ran_cmd = true
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|