raketeer 0.2.13 → 0.2.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec89678553f96bde861d1db36fdf62362a986aae57d48920fcedb4b8d648d1ee
4
- data.tar.gz: b5b1796833f6ab053e4e8582bb12e221d205bac73a90d2253713d81e206b7585
3
+ metadata.gz: fd7e5eed77aea6dd23233616f4c8cf54acc283479d0e53baecf46b453b6747a5
4
+ data.tar.gz: 209151fff66ec3751e67a7cc5856a4d2c7554be227858e7b12c5ff211883289c
5
5
  SHA512:
6
- metadata.gz: 63a541a44b2cee494a9a113944c390297affdda18e745d6726b755bb9d766f9bbc8ceed58944146e2878a5e57750a83cdbeb036ad8b01758311020894d918209
7
- data.tar.gz: 035bf26706bc7913dcac4b194a1a3d0ac6816812c76c5aed0713abdf2b7d8cb17942d2762a4592f281755a6bc8ce45db20e88b892d1d0b2854220e7f47e76cd8
6
+ metadata.gz: 8ddf10cb5326451f3ad8449253a283cde5b7f727abbfacb8b7b95eb810c656ac3abc3dccf5b280f5cbf398336c2f85abecd31893a6b1fc4fd6180d81f1d504bb
7
+ data.tar.gz: 1816342b4e2c04214ff5651384829850bd38e6dc36e83ebcd4da56419504de64a83485e44ea609c644084892ba921afc7bd91cd346abf4e0073df9dd3525c1e5
data/CHANGELOG.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # Changelog | Raketeer
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ - [Keep a Changelog](https://keepachangelog.com/en/1.1.0),
4
+ - [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
5
 
5
- Format is based on [Keep a Changelog v1.0.0](https://keepachangelog.com/en/1.0.0),
6
- and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [[Unreleased]](https://github.com/esotericpig/raketeer/compare/v0.2.13...HEAD)
6
+ ## [Unreleased](https://github.com/esotericpig/raketeer/compare/v0.2.14...HEAD)
9
7
  -
10
8
 
9
+ ## [0.2.14](https://github.com/esotericpig/raketeer/compare/v0.2.13...v0.2.14) - 2025-06-06
10
+ ### Added
11
+ - Added Yardoc to Rakefile.
11
12
 
12
- ## [v0.2.13] - [2021-06-22](https://github.com/esotericpig/raketeer/compare/v0.2.12...v0.2.13)
13
+ ### Changed
14
+ - Updated Gems.
15
+ - Applied new RuboCop suggestions.
16
+ - Renamed Git branch `master` to `main`.
17
+
18
+ ## [0.2.13](https://github.com/esotericpig/raketeer/compare/v0.2.12...v0.2.13) - 2021-06-22
13
19
  ### Fixed
14
20
  - Changed `bump` to reset lower version numbers.
15
21
  - If `v1.1.1`, major +1 will become => `v2.0.0` (not `v2.1.1`).
@@ -18,41 +24,35 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
18
24
  - It's debatable whether this is a *fix* or a *change*, but I'm labeling it as a *fix*, as this way is more usable and expected.
19
25
  - I debated whether to also drop off the pre-release and build-metadata, but it's a hard decision. Even though the version changed, maybe it's still a pre-release and/or still needs the same build-metadata. You could argue that bumping the major version should always drop it off, but I'm not sure. For now, they are unaffected by this change. In the future, major (only) +1 might also drop pre-release & build-metadata.
20
26
 
21
-
22
- ## [v0.2.12] - [2021-06-18](https://github.com/esotericpig/raketeer/compare/v0.2.11...v0.2.12)
27
+ ## [0.2.12](https://github.com/esotericpig/raketeer/compare/v0.2.11...v0.2.12) - 2021-06-18
23
28
  ### Changed
24
29
  - Changed `bump` to also update GitHub compare links in Changelogs.
25
30
  - Example link in Changelog:
26
- - `## [v0.2.11] - [2021-06-15](https://github.com/esotericpig/raketeer/compare/v0.2.10...v0.2.11)`
31
+ - `## [0.2.11](https://github.com/esotericpig/raketeer/compare/v0.2.10...v0.2.11) - 2021-06-15`
27
32
  - Updates `v0.2.10...v0.2.11` to `v0.2.11...<new_version>`.
28
33
 
29
-
30
- ## [v0.2.11] - [2021-06-15](https://github.com/esotericpig/raketeer/compare/v0.2.10...v0.2.11)
34
+ ## [0.2.11](https://github.com/esotericpig/raketeer/compare/v0.2.10...v0.2.11) - 2021-06-15
31
35
  ### Changed
32
36
  - Added SPDX license ID to source files.
33
37
 
34
-
35
- ## [v0.2.10] - 2021-05-30
38
+ ## [0.2.10] - 2021-05-30
36
39
  ### Changed
37
40
  - Formatted all code using RuboCop.
38
41
 
39
42
  ### Fixed
40
43
  - Updated Bundler and Gems because of GitHub security warning.
41
44
 
42
-
43
- ## [v0.2.9] - 2020-03-01
45
+ ## [0.2.9] - 2020-03-01
44
46
  ### Changed
45
47
  - Changed Gemspec description (mainly for testing other project Raketary)
46
48
 
47
-
48
- ## [v0.2.8] - 2020-03-01
49
+ ## [0.2.8] - 2020-03-01
49
50
  ### Added
50
51
  - GitHubPkg (lib/raketeer/github_pkg.rb)
51
52
  - GitHubPkgTask (lib/raketeer/github_pkg_task.rb)
52
53
  - Publish/Push your `pkg/*.gem` release(s) to GitHub Packages
53
54
 
54
-
55
- ## [v0.2.7] - 2019-12-18
55
+ ## [0.2.7] - 2019-12-18
56
56
  ### Added
57
57
  - Add more info to README
58
58
  - Add default dirs to Util methods
@@ -63,24 +63,21 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
63
63
  ### Fixed
64
64
  - Check env vars for bundle task in bump task
65
65
 
66
-
67
- ## [v0.2.6] - 2019-08-03
66
+ ## [0.2.6] - 2019-08-03
68
67
  ### Changed
69
68
  - Refactored BumpTask for a new project I'm working on to use this project in a CLI
70
69
 
71
70
  ### Fixed
72
71
  - SemVer's initialize_copy()
73
72
 
74
-
75
- ## [v0.2.5] - 2019-08-02
73
+ ## [0.2.5] - 2019-08-02
76
74
  ### Added
77
75
  - Added a strict mode (regex) to BumpTask, BumpVer, FilesBumper, & SemVer
78
76
 
79
77
  ### Fixed
80
78
  - Fixed the 'Nothing written (up-to-date)' feature in BumpTask (minor)
81
79
 
82
-
83
- ## [v0.2.4] - 2019-08-02
80
+ ## [0.2.4] - 2019-08-02
84
81
  ### Added
85
82
  - BumpTask & 'raketeer/bump'
86
83
  - FilesBumper (lib/raketeer/files_bumper.rb)
@@ -94,13 +91,11 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
94
91
  ### Changed
95
92
  - Util.find_main_executable() to not search for 'bin/*.rb' since almost no project uses an extension in the bin directory
96
93
 
97
-
98
- ## [v0.2.3] - 2019-07-30
94
+ ## [0.2.3] - 2019-07-30
99
95
  ### Fixed
100
96
  - Fixed 'yield' typo in some tasks
101
97
 
102
-
103
- ## [v0.2.2] - 2019-07-29
98
+ ## [0.2.2] - 2019-07-29
104
99
  ### Added
105
100
  - RunTask & 'raketeer/run'
106
101
  - Util
@@ -110,13 +105,11 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
110
105
  - Refactored some code (minor)
111
106
  - Changed some documentation (minor)
112
107
 
113
-
114
- ## [v0.2.1] - 2019-07-24
108
+ ## [0.2.1] - 2019-07-24
115
109
  ### Changed
116
110
  - Fixed minor/cosmetic typo
117
111
 
118
-
119
- ## [v0.2.0] - 2019-07-24
112
+ ## [0.2.0] - 2019-07-24
120
113
  ### Added
121
114
  - All (lib/raketeer/all.rb); used to be Raketeers
122
115
  - `require 'raketeer/all'`
@@ -126,8 +119,7 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
126
119
  ### Removed
127
120
  - Raketeers (lib/raketeer/raketeers.rb); renamed to All
128
121
 
129
-
130
- ## [v0.1.0] - 2019-07-23
122
+ ## [0.1.0] - 2019-07-23
131
123
  ### Added
132
124
  - IRB task
133
125
  - Nokogiri installs
data/Gemfile CHANGED
@@ -1,7 +1,18 @@
1
1
  # encoding: UTF-8
2
2
  # frozen_string_literal: true
3
3
 
4
-
5
4
  source 'https://rubygems.org'
6
5
 
7
6
  gemspec
7
+
8
+ group :development,:test do
9
+ gem 'bundler' ,'~> 2.6'
10
+ gem 'irb' ,'>= 1.0'
11
+ gem 'rdoc' ,'~> 6.14' # YARDoc RDoc (*.rb).
12
+ gem 'redcarpet','~> 3.6' # YARDoc Markdown (*.md).
13
+ gem 'yard' ,'~> 0.9' # Doc.
14
+ end
15
+
16
+ group :test do
17
+ gem 'minitest' ,'~> 5.25'
18
+ end
data/README.md CHANGED
@@ -1,68 +1,69 @@
1
1
  # Raketeer
2
2
 
3
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)
4
+ [![Source Code](https://img.shields.io/badge/source-github-%23211F1F.svg)](https://github.com/esotericpig/raketeer)
5
+ [![Changelog](https://img.shields.io/badge/changelog-md-%23A0522D.svg)](CHANGELOG.md)
6
+ [![License](https://img.shields.io/github/license/esotericpig/raketeer.svg)](LICENSE.txt)
8
7
 
9
8
  Extra Ruby Rake Tasks.
10
9
 
11
10
  A [CLI app](https://github.com/esotericpig/raketary) is also available that uses these tasks, which is useful for tasks like *bump* (which bumps the version for your RubyGem project) so that you don't have to include this Gem as a development dependency for every project.
12
11
 
13
- ## Contents
12
+ ## // Contents
14
13
 
15
- - [Setup](#setup)
16
- - [Using](#using)
17
- - [Hacking](#hacking)
18
- - [License](#license)
14
+ - [Setup](#-setup)
15
+ - [Using](#-using)
16
+ - [Hacking](#-hacking)
17
+ - [License](#-license)
19
18
 
20
- ## [Setup](#contents)
19
+ ## [//](#-contents) Setup
21
20
 
22
21
  Pick your poison...
23
22
 
24
23
  With the RubyGems CLI package manager:
25
24
 
26
- `$ gem install raketeer`
25
+ ```bash
26
+ gem install raketeer
27
+ ```
27
28
 
28
- In your *Gemspec* (*&lt;project&gt;.gemspec*):
29
+ In your *Gemspec*:
29
30
 
30
- ```Ruby
31
- spec.add_development_dependency 'raketeer', '~> 0.2'
31
+ ```ruby
32
+ spec.add_development_dependency 'raketeer', '~> X.X'
32
33
  ```
33
34
 
34
35
  In your *Gemfile*:
35
36
 
36
- ```Ruby
37
- gem 'raketeer', '~> 0.2', group: [:development, :test]
37
+ ```ruby
38
+ gem 'raketeer', '~> X.X', group: %i[development test]
38
39
 
39
40
  # or...
40
41
  gem 'raketeer', git: 'https://github.com/esotericpig/raketeer.git',
41
- tag: 'v0.2.10', group: [:development, :test]
42
+ branch: 'main', group: %i[development test]
42
43
  ```
43
44
 
44
- Manually:
45
+ From source:
45
46
 
46
- ```
47
- $ git clone 'https://github.com/esotericpig/raketeer.git'
48
- $ cd raketeer
49
- $ bundle install
50
- $ bundle exec rake install:local
47
+ ```bash
48
+ git clone 'https://github.com/esotericpig/raketeer.git'
49
+ cd raketeer
50
+ bundle install
51
+ bundle exec rake install:local
51
52
  ```
52
53
 
53
- ## [Using](#contents)
54
+ ## [//](#-contents) Using
54
55
 
55
56
  **Rakefile**
56
57
 
57
58
  In your *Rakefile*, you can either include all tasks...
58
59
 
59
- ```Ruby
60
+ ```ruby
60
61
  require 'raketeer/all'
61
62
  ```
62
63
 
63
64
  Or, include the specific tasks that you need:
64
65
 
65
- ```Ruby
66
+ ```ruby
66
67
  require 'raketeer/bump'
67
68
  require 'raketeer/github_pkg'
68
69
  require 'raketeer/irb'
@@ -70,9 +71,9 @@ require 'raketeer/nokogiri_installs'
70
71
  require 'raketeer/run'
71
72
  ```
72
73
 
73
- If you have conflicting tasks and/or you want to see what tasks have been included, you can put them in a namespace:
74
+ If you have conflicting tasks and/or you want to see what tasks have been included (with `rake -T`), you can put them in a namespace:
74
75
 
75
- ```Ruby
76
+ ```ruby
76
77
  namespace :rt do
77
78
  require 'raketeer/all'
78
79
  end
@@ -80,7 +81,7 @@ end
80
81
 
81
82
  **Included Tasks**
82
83
 
83
- ```
84
+ ```bash
84
85
  rake bump[version] # Show/Set/Bump the version
85
86
  rake bump:build[build] # Set/Erase the build metadata
86
87
  rake bump:bundle # Bump the Gemfile.lock version
@@ -97,10 +98,9 @@ rake nokogiri_other # Install Nokogiri libs for other OSes
97
98
  rake run # Run this project's main file: "rake run -- --version"
98
99
  ```
99
100
 
100
- **bump:help**
101
+ **rake bump:help**
101
102
 
102
- ```
103
- $ rake bump:help
103
+ ```bash
104
104
  rake bump # Print the current version
105
105
 
106
106
  # You can run a dry run for any task (will not write to files)
@@ -142,38 +142,38 @@ If you need more control, for now, please look at the accessors of each task (be
142
142
 
143
143
  For example, in your *Rakefile*:
144
144
 
145
- ```Ruby
145
+ ```ruby
146
146
  require 'raketeer/bump_task'
147
147
 
148
- Raketeer::BumpTask.new() do |task|
148
+ Raketeer::BumpTask.new do |task|
149
149
  task.strict = true
150
150
  end
151
151
  ```
152
152
 
153
- ```Ruby
153
+ ```ruby
154
154
  require 'raketeer/github_pkg_task'
155
155
 
156
- Raketeer::GitHubPkgTask.new() do |task|
156
+ Raketeer::GitHubPkgTask.new do |task|
157
157
  task.deps << 'test'
158
158
  task.username = 'esotericpig'
159
159
  end
160
160
  ```
161
161
 
162
- ## [Hacking](#contents)
162
+ ## [//](#-contents) Hacking
163
163
 
164
- ```
164
+ ```bash
165
165
  $ git clone 'https://github.com/esotericpig/raketeer.git'
166
166
  $ cd raketeer
167
167
  $ bundle install
168
168
  $ bundle exec rake -T
169
169
  ```
170
170
 
171
- ## [License](#contents)
171
+ ## [//](#-contents) License
172
172
 
173
173
  [GNU LGPL v3+](LICENSE.txt)
174
174
 
175
175
  > Raketeer (<https://github.com/esotericpig/raketeer>)
176
- > Copyright (c) 2019-2021 Jonathan Bradley Whited
176
+ > Copyright (c) 2019-2025 Bradley Whited
177
177
  >
178
178
  > Raketeer is free software: you can redistribute it and/or modify
179
179
  > it under the terms of the GNU Lesser General Public License as published by
data/Rakefile CHANGED
@@ -1,18 +1,21 @@
1
1
  # encoding: UTF-8
2
2
  # frozen_string_literal: true
3
3
 
4
-
5
4
  require 'bundler/gem_tasks'
6
5
 
7
6
  require 'raketeer'
8
-
9
7
  require 'rake/clean'
8
+ require 'yard'
10
9
 
11
10
  task default: []
12
11
 
13
- CLEAN.exclude('.git/','stock/')
12
+ CLEAN.exclude('.git/','.github/','.idea/','stock/')
14
13
  CLOBBER.include('doc/')
15
14
 
15
+ YARD::Rake::YardocTask.new(:doc) do |task|
16
+ task.options.push('--title',"Raketeer v#{Raketeer::VERSION}")
17
+ end
18
+
16
19
  namespace :rt do
17
20
  require 'raketeer/all'
18
21
  end
@@ -21,10 +24,10 @@ namespace :todo do
21
24
  # TODO: make this into a task class
22
25
  # TODO: do 'gem:files'? and also 'gem:info' for all other methods?
23
26
  desc 'Output dat gemspec bootyliciousness'
24
- task :gem do |task,args|
27
+ task :gem do |_task,_args|
25
28
  # TODO: if this doesn't work, read *.gemspec somehow? probably not...
26
29
  gem = Gem::Specification.find_by_name('raketeer')
27
30
  puts gem.files
28
- #puts gem.methods.sort - Object.methods
31
+ # puts gem.methods.sort - Object.methods
29
32
  end
30
33
  end
data/lib/raketeer/all.rb CHANGED
@@ -3,26 +3,13 @@
3
3
 
4
4
  #--
5
5
  # This file is part of Raketeer.
6
- # Copyright (c) 2019-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2019 Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: LGPL-3.0-or-later
9
9
  #++
10
10
 
11
-
12
11
  require 'raketeer/bump' # @since 0.2.4
13
12
  require 'raketeer/github_pkg' # @since 0.2.8
14
13
  require 'raketeer/irb' # @since 0.2.0
15
14
  require 'raketeer/nokogiri_installs' # @since 0.1.0
16
15
  require 'raketeer/run' # @since 0.2.2
17
-
18
-
19
- module Raketeer
20
- ###
21
- # Defines all Raketeer tasks in your Rakefile.
22
- #
23
- # @author Jonathan Bradley Whited
24
- # @since 0.2.0
25
- ###
26
- module All
27
- end
28
- end
data/lib/raketeer/bump.rb CHANGED
@@ -3,21 +3,11 @@
3
3
 
4
4
  #--
5
5
  # This file is part of Raketeer.
6
- # Copyright (c) 2019-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2019 Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: LGPL-3.0-or-later
9
9
  #++
10
10
 
11
-
12
11
  require 'raketeer/bump_task'
13
12
 
14
- module Raketeer
15
- ###
16
- # @author Jonathan Bradley Whited
17
- # @since 0.2.4
18
- ###
19
- module Bump
20
- end
21
- end
22
-
23
13
  Raketeer::BumpTask.new # @since 0.2.4