raketeer 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6a78c9225aa26ee4133b1609aaa8606726741a9002f7c0c93bf4d71bba89673d
4
+ data.tar.gz: cc4cd6d465eb25fd05d50569e49a4ee30c0a4bb7e70c593c744cd497305e6da4
5
+ SHA512:
6
+ metadata.gz: d22f292a767322418d25f31e6fddcc1e6de72a6c94776a0feb03a31c593b5cfae68b4c3aed903116c98267aca7fc83c7d6429322c6142a0eef510ee9271504b6
7
+ data.tar.gz: cca68fd07c4b4c5f7bf57d819cb83e98ff6315c262d73f64d72dfa7d7add3a833e36071e6de8450390003a7289e4fe488afe3026acaca2e379e24b7429fb9ff8
data/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog | Raketeer
2
+
3
+ Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
+
5
+ ## [[Unreleased]](https://github.com/esotericpig/raketeer/compare/v0.1.0...master)
6
+
7
+ ## [v0.1.0] - 2019-07-23
8
+ ### Added
9
+ - .gitignore
10
+ - CHANGELOG.md
11
+ - Gemfile
12
+ - LICENSE.txt
13
+ - README.md
14
+ - Rakefile
15
+ - raketeer.gemspec
16
+ - lib/raketeer.rb
17
+ - lib/raketeer/irb_task.rb
18
+ - lib/raketeer/nokogiri_install_tasks.rb
19
+ - lib/raketeer/nokogiri_installs.rb
20
+ - lib/raketeer/raketeers.rb
21
+ - lib/raketeer/version.rb
data/Gemfile ADDED
@@ -0,0 +1,25 @@
1
+ # encoding: UTF-8
2
+ # frozen_string_literal: true
3
+
4
+ #--
5
+ # This file is part of Raketeer.
6
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
7
+ #
8
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
20
+ #++
21
+
22
+
23
+ source 'https://rubygems.org'
24
+
25
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+ # Raketeer
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/raketeer.svg)](https://badge.fury.io/rb/raketeer)
4
+
5
+ [![Source Code](https://img.shields.io/badge/source-github-%23A0522D.svg?style=for-the-badge)](https://github.com/esotericpig/raketeer)
6
+ [![Changelog](https://img.shields.io/badge/changelog-md-%23A0522D.svg?style=for-the-badge)](CHANGELOG.md)
7
+ [![License](https://img.shields.io/github/license/esotericpig/raketeer.svg?color=%23A0522D&style=for-the-badge)](LICENSE.txt)
8
+
9
+ Extra Ruby Rake Tasks.
10
+
11
+ Name comes from Rocketeer.
12
+
13
+ ## Contents
14
+
15
+ - [Setup](#setup)
16
+ - [Using](#using)
17
+ - [Hacking](#hacking)
18
+ - [License](#license)
19
+
20
+ ## [Setup](#contents)
21
+
22
+ Pick your poison...
23
+
24
+ With the RubyGems CLI package manager:
25
+
26
+ `$ gem install raketeer`
27
+
28
+ In your *Gemspec* (*&lt;project&gt;.gemspec*):
29
+
30
+ ```Ruby
31
+ spec.add_development_dependency 'raketeer', '~> X.X.X'
32
+ ```
33
+
34
+ In your *Gemfile*:
35
+
36
+ ```Ruby
37
+ gem 'raketeer', '~> X.X.X', :group => [:development, :test]
38
+ # or...
39
+ gem 'raketeer', :git => 'https://github.com/esotericpig/raketeer.git',
40
+ :tag => 'vX.X.X', :group => [:development, :test]
41
+ ```
42
+
43
+ Manually:
44
+
45
+ ```
46
+ $ git clone 'https://github.com/esotericpig/raketeer.git'
47
+ $ cd raketeer
48
+ $ bundle install
49
+ $ bundle exec rake install:local
50
+ ```
51
+
52
+ ## [Using](#contents)
53
+
54
+ ## [Hacking](#contents)
55
+
56
+ ```
57
+ $ git clone 'https://github.com/esotericpig/raketeer.git'
58
+ $ bundle install
59
+ $ bundle exec rake -T
60
+ ```
61
+
62
+ ## [License](#contents)
63
+
64
+ [GNU LGPL v3+](LICENSE.txt)
65
+
66
+ > Raketeer (<https://github.com/esotericpig/raketeer>)
67
+ > Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
68
+ >
69
+ > Raketeer is free software: you can redistribute it and/or modify
70
+ > it under the terms of the GNU Lesser General Public License as published by
71
+ > the Free Software Foundation, either version 3 of the License, or
72
+ > (at your option) any later version.
73
+ >
74
+ > Raketeer is distributed in the hope that it will be useful,
75
+ > but WITHOUT ANY WARRANTY; without even the implied warranty of
76
+ > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
77
+ > GNU Lesser General Public License for more details.
78
+ >
79
+ > You should have received a copy of the GNU Lesser General Public License
80
+ > along with Raketeer. If not, see <https://www.gnu.org/licenses/>.
data/Rakefile ADDED
@@ -0,0 +1,32 @@
1
+ # encoding: UTF-8
2
+ # frozen_string_literal: true
3
+
4
+ #--
5
+ # This file is part of Raketeer.
6
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
7
+ #
8
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
20
+ #++
21
+
22
+
23
+ require 'bundler/gem_tasks'
24
+
25
+ require 'rake/clean'
26
+
27
+ require 'raketeer/raketeers'
28
+
29
+ task default: []
30
+
31
+ CLEAN.exclude('.git/','stock/')
32
+ CLOBBER.include('doc/')
@@ -0,0 +1,93 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # frozen_string_literal: true
4
+
5
+ #--
6
+ # This file is part of Raketeer.
7
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
+ #
9
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+
24
+ require 'rake'
25
+
26
+ require 'rake/tasklib'
27
+
28
+ module Raketeer
29
+ ###
30
+ # @author Jonathan Bradley Whited (@esotericpig)
31
+ # @since 0.1.0
32
+ ###
33
+ class IRBTask < Rake::TaskLib
34
+ attr_accessor :description
35
+ attr_accessor :irb_cmd
36
+ attr_accessor :main_module
37
+ attr_accessor :name
38
+ attr_accessor :warning
39
+
40
+ alias_method :warning?,:warning
41
+
42
+ def initialize(name=:irb)
43
+ super()
44
+
45
+ @description = 'Open an irb session loaded with this library'
46
+ @main_module = find_main_module()
47
+ @name = name
48
+ @warning = true
49
+
50
+ @irb_cmd = ['irb']
51
+ @irb_cmd += ['-r','rubygems']
52
+ @irb_cmd += ['-r','bundler/setup']
53
+
54
+ # Yield before using changeable vars
55
+ yielf self if block_given?()
56
+
57
+ @irb_cmd += ['-r',@main_module] unless @main_module.nil?()
58
+ @irb_cmd << '-w' if @warning
59
+
60
+ define()
61
+ end
62
+
63
+ def define()
64
+ desc @description
65
+ task @name do |task,args|
66
+ sh(*@irb_cmd)
67
+ end
68
+ end
69
+
70
+ def find_main_module()
71
+ # First, try the lib/ dir
72
+ main_file = Dir.glob(File.join('lib','*.rb'))
73
+
74
+ if main_file.length == 1
75
+ basename = File.basename(main_file[0],'.*')
76
+
77
+ return basename
78
+ end
79
+
80
+ # Next, try the Gemspec
81
+ main_file = Dir.glob('*.gemspec')
82
+
83
+ if main_file.length == 1
84
+ basename = File.basename(main_file[0],'.*')
85
+ main_file = File.join('lib',"#{basename}.rb")
86
+
87
+ return basename if File.exist?(main_file)
88
+ end
89
+
90
+ return nil
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,119 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # frozen_string_literal: true
4
+
5
+ #--
6
+ # This file is part of Raketeer.
7
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
+ #
9
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+
24
+ require 'rake'
25
+
26
+ require 'rake/tasklib'
27
+
28
+ module Raketeer
29
+ ###
30
+ # @author Jonathan Bradley Whited (@esotericpig)
31
+ # @since 0.1.0
32
+ ###
33
+ class NokogiriInstallTask < Rake::TaskLib
34
+ attr_accessor :description
35
+ attr_accessor :install_cmd
36
+ attr_accessor :name
37
+
38
+ def initialize(name)
39
+ super()
40
+
41
+ @description = nil
42
+ @install_cmd = nil
43
+ @name = name
44
+ end
45
+
46
+ def define(&block)
47
+ block.call(self) unless block.nil?()
48
+
49
+ desc @description
50
+ task @name do |task,args|
51
+ run(task,args)
52
+ end
53
+ end
54
+
55
+ def run(task,args)
56
+ sh(*@install_cmd)
57
+ end
58
+ end
59
+
60
+ ###
61
+ # @author Jonathan Bradley Whited (@esotericpig)
62
+ # @since 0.1.0
63
+ ###
64
+ class NokogiriAPTTask < NokogiriInstallTask
65
+ def initialize(name=:nokogiri_apt,&block)
66
+ super(name)
67
+
68
+ @description = 'Install Nokogiri libs for Ubuntu/Debian'
69
+
70
+ @install_cmd = ['sudo','apt-get','install']
71
+ @install_cmd << 'build-essential'
72
+ @install_cmd << 'libgmp-dev'
73
+ @install_cmd << 'liblzma-dev'
74
+ @install_cmd << 'patch'
75
+ @install_cmd << 'ruby-dev'
76
+ @install_cmd << 'zlib1g-dev'
77
+
78
+ define(&block)
79
+ end
80
+ end
81
+
82
+ ###
83
+ # @author Jonathan Bradley Whited (@esotericpig)
84
+ # @since 0.1.0
85
+ ###
86
+ class NokogiriDNFTask < NokogiriInstallTask
87
+ def initialize(name=:nokogiri_dnf,&block)
88
+ super(name)
89
+
90
+ @description = 'Install Nokogiri libs for Fedora/CentOS/Red Hat'
91
+
92
+ @install_cmd = ['sudo','dnf','install']
93
+ @install_cmd << 'gcc'
94
+ @install_cmd << 'ruby-devel'
95
+ @install_cmd << 'zlib-devel'
96
+
97
+ define(&block)
98
+ end
99
+ end
100
+
101
+ ###
102
+ # @author Jonathan Bradley Whited (@esotericpig)
103
+ # @since 0.1.0
104
+ ###
105
+ class NokogiriOtherTask < NokogiriInstallTask
106
+ def initialize(name=:nokogiri_other,&block)
107
+ super(name)
108
+
109
+ @description = 'Install Nokogiri libs for other OSes'
110
+
111
+ define(&block)
112
+ end
113
+
114
+ def run(task,args)
115
+ puts 'Please go to this link for installing Nokogiri on your system:'
116
+ puts ' https://nokogiri.org/tutorials/installing_nokogiri.html'
117
+ end
118
+ end
119
+ end
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # frozen_string_literal: true
4
+
5
+ #--
6
+ # This file is part of Raketeer.
7
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
+ #
9
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+
24
+ require 'raketeer/nokogiri_install_tasks'
25
+
26
+ module Raketeer
27
+ ###
28
+ # Defines all Nokogiri install tasks in your Rakefile.
29
+ #
30
+ # @author Jonathan Bradley Whited (@esotericpig)
31
+ # @since 0.1.0
32
+ ###
33
+ module NokogiriInstalls
34
+ end
35
+ end
36
+
37
+ Raketeer::NokogiriAPTTask.new() # @since 0.1.0
38
+ Raketeer::NokogiriDNFTask.new() # @since 0.1.0
39
+ Raketeer::NokogiriOtherTask.new() # @since 0.1.0
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # frozen_string_literal: true
4
+
5
+ #--
6
+ # This file is part of Raketeer.
7
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
+ #
9
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+
24
+ require 'raketeer'
25
+
26
+ require 'raketeer/nokogiri_installs'
27
+
28
+ module Raketeer
29
+ ###
30
+ # Defines all Raketeer tasks in your Rakefile.
31
+ #
32
+ # @author Jonathan Bradley Whited (@esotericpig)
33
+ # @since 0.1.0
34
+ ###
35
+ module Raketeers
36
+ end
37
+ end
38
+
39
+ Raketeer::IRBTask.new() # @since 0.1.0
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # frozen_string_literal: true
4
+
5
+ #--
6
+ # This file is part of Raketeer.
7
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
+ #
9
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+
24
+ module Raketeer
25
+ VERSION = '0.1.0'
26
+ end
data/lib/raketeer.rb ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # frozen_string_literal: true
4
+
5
+ #--
6
+ # This file is part of Raketeer.
7
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
+ #
9
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+
24
+ require 'raketeer/irb_task'
25
+ require 'raketeer/nokogiri_install_tasks'
26
+ require 'raketeer/version'
27
+
28
+ ###
29
+ # @author Jonathan Bradley Whited (@esotericpig)
30
+ # @since 0.1.0
31
+ ###
32
+ module Raketeer
33
+ end
data/raketeer.gemspec ADDED
@@ -0,0 +1,57 @@
1
+ # encoding: UTF-8
2
+ # frozen_string_literal: true
3
+
4
+ #--
5
+ # This file is part of Raketeer.
6
+ # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
7
+ #
8
+ # Raketeer 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
+ # Raketeer 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 Raketeer. If not, see <https://www.gnu.org/licenses/>.
20
+ #++
21
+
22
+
23
+ lib = File.expand_path('../lib',__FILE__)
24
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
25
+
26
+ require 'raketeer/version'
27
+
28
+ Gem::Specification.new() do |spec|
29
+ spec.name = 'raketeer'
30
+ spec.version = Raketeer::VERSION
31
+ spec.authors = ['Jonathan Bradley Whited (@esotericpig)']
32
+ spec.email = ['bradley@esotericpig.com']
33
+ spec.licenses = ['LGPL-3.0-or-later']
34
+ spec.homepage = 'https://github.com/esotericpig/raketeer'
35
+ spec.summary = 'Extra Ruby Rake Tasks.'
36
+ spec.description = spec.summary
37
+
38
+ spec.metadata = {
39
+ 'bug_tracker_uri' => 'https://github.com/esotericpig/raketeer/issues',
40
+ 'changelog_uri' => 'https://github.com/esotericpig/raketeer/blob/master/CHANGELOG.md',
41
+ 'homepage_uri' => 'https://github.com/esotericpig/raketeer',
42
+ 'source_code_uri' => 'https://github.com/esotericpig/raketeer'
43
+ }
44
+
45
+ spec.require_paths = ['lib']
46
+
47
+ spec.files = Dir.glob(File.join("{#{spec.require_paths.join(',')},test,yard}",'**','*.{erb,rb}')) +
48
+ %W( Gemfile #{spec.name}.gemspec Rakefile ) +
49
+ %w( CHANGELOG.md LICENSE.txt README.md )
50
+
51
+ spec.required_ruby_version = '>= 2.1.10'
52
+
53
+ spec.add_runtime_dependency 'rake' #,'~> 12.3'
54
+
55
+ spec.add_development_dependency 'bundler','~> 1.17'
56
+ spec.add_development_dependency 'yard' ,'~> 0.9' # For doc
57
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: raketeer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jonathan Bradley Whited (@esotericpig)
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-07-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
55
+ description: Extra Ruby Rake Tasks.
56
+ email:
57
+ - bradley@esotericpig.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - CHANGELOG.md
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - lib/raketeer.rb
68
+ - lib/raketeer/irb_task.rb
69
+ - lib/raketeer/nokogiri_install_tasks.rb
70
+ - lib/raketeer/nokogiri_installs.rb
71
+ - lib/raketeer/raketeers.rb
72
+ - lib/raketeer/version.rb
73
+ - raketeer.gemspec
74
+ homepage: https://github.com/esotericpig/raketeer
75
+ licenses:
76
+ - LGPL-3.0-or-later
77
+ metadata:
78
+ bug_tracker_uri: https://github.com/esotericpig/raketeer/issues
79
+ changelog_uri: https://github.com/esotericpig/raketeer/blob/master/CHANGELOG.md
80
+ homepage_uri: https://github.com/esotericpig/raketeer
81
+ source_code_uri: https://github.com/esotericpig/raketeer
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 2.1.10
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubygems_version: 3.0.4
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Extra Ruby Rake Tasks.
101
+ test_files: []