raketeer 0.2.12 → 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: 4a66040c4720afe61b5b0a5ebd627f8faeeffed41a69754865826fad555c3e18
4
- data.tar.gz: 229b588996590c0f8d0ddcc951b6809ef8257e11f71e5546c3f9543d9645eea1
3
+ metadata.gz: fd7e5eed77aea6dd23233616f4c8cf54acc283479d0e53baecf46b453b6747a5
4
+ data.tar.gz: 209151fff66ec3751e67a7cc5856a4d2c7554be227858e7b12c5ff211883289c
5
5
  SHA512:
6
- metadata.gz: 78b71c9286e3f440d3909d55e9c440f04146aa63e778df7401ba8b215b61e73b4c4f94ae5516073747947ae7d8077ff033f9d1dbef4725ec265b71400cbf3cea
7
- data.tar.gz: '0579e6ece10ffc56705cffd4d3dfc8be8d90a94d8507677866a37c52d45cf41e5a368e11c38cfb0a53b340c382299d171e9a2ead0a184c587baa49c1ef9ddb90'
6
+ metadata.gz: 8ddf10cb5326451f3ad8449253a283cde5b7f727abbfacb8b7b95eb810c656ac3abc3dccf5b280f5cbf398336c2f85abecd31893a6b1fc4fd6180d81f1d504bb
7
+ data.tar.gz: 1816342b4e2c04214ff5651384829850bd38e6dc36e83ebcd4da56419504de64a83485e44ea609c644084892ba921afc7bd91cd346abf4e0073df9dd3525c1e5
data/CHANGELOG.md CHANGED
@@ -1,48 +1,58 @@
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.12...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.12] - [2021-06-18](https://github.com/esotericpig/raketeer/compare/v0.2.11...v0.2.12)
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
19
+ ### Fixed
20
+ - Changed `bump` to reset lower version numbers.
21
+ - If `v1.1.1`, major +1 will become => `v2.0.0` (not `v2.1.1`).
22
+ - If `v1.1.1`, minor +1 will become => `v1.2.0` (not `v1.2.1`).
23
+ - Patch +1 will continue to work the same.
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.
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.
26
+
27
+ ## [0.2.12](https://github.com/esotericpig/raketeer/compare/v0.2.11...v0.2.12) - 2021-06-18
13
28
  ### Changed
14
29
  - Changed `bump` to also update GitHub compare links in Changelogs.
15
30
  - Example link in Changelog:
16
- - `## [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`
17
32
  - Updates `v0.2.10...v0.2.11` to `v0.2.11...<new_version>`.
18
33
 
19
-
20
- ## [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
21
35
  ### Changed
22
36
  - Added SPDX license ID to source files.
23
37
 
24
-
25
- ## [v0.2.10] - 2021-05-30
38
+ ## [0.2.10] - 2021-05-30
26
39
  ### Changed
27
40
  - Formatted all code using RuboCop.
28
41
 
29
42
  ### Fixed
30
43
  - Updated Bundler and Gems because of GitHub security warning.
31
44
 
32
-
33
- ## [v0.2.9] - 2020-03-01
45
+ ## [0.2.9] - 2020-03-01
34
46
  ### Changed
35
47
  - Changed Gemspec description (mainly for testing other project Raketary)
36
48
 
37
-
38
- ## [v0.2.8] - 2020-03-01
49
+ ## [0.2.8] - 2020-03-01
39
50
  ### Added
40
51
  - GitHubPkg (lib/raketeer/github_pkg.rb)
41
52
  - GitHubPkgTask (lib/raketeer/github_pkg_task.rb)
42
53
  - Publish/Push your `pkg/*.gem` release(s) to GitHub Packages
43
54
 
44
-
45
- ## [v0.2.7] - 2019-12-18
55
+ ## [0.2.7] - 2019-12-18
46
56
  ### Added
47
57
  - Add more info to README
48
58
  - Add default dirs to Util methods
@@ -53,24 +63,21 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
53
63
  ### Fixed
54
64
  - Check env vars for bundle task in bump task
55
65
 
56
-
57
- ## [v0.2.6] - 2019-08-03
66
+ ## [0.2.6] - 2019-08-03
58
67
  ### Changed
59
68
  - Refactored BumpTask for a new project I'm working on to use this project in a CLI
60
69
 
61
70
  ### Fixed
62
71
  - SemVer's initialize_copy()
63
72
 
64
-
65
- ## [v0.2.5] - 2019-08-02
73
+ ## [0.2.5] - 2019-08-02
66
74
  ### Added
67
75
  - Added a strict mode (regex) to BumpTask, BumpVer, FilesBumper, & SemVer
68
76
 
69
77
  ### Fixed
70
78
  - Fixed the 'Nothing written (up-to-date)' feature in BumpTask (minor)
71
79
 
72
-
73
- ## [v0.2.4] - 2019-08-02
80
+ ## [0.2.4] - 2019-08-02
74
81
  ### Added
75
82
  - BumpTask & 'raketeer/bump'
76
83
  - FilesBumper (lib/raketeer/files_bumper.rb)
@@ -84,13 +91,11 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
84
91
  ### Changed
85
92
  - Util.find_main_executable() to not search for 'bin/*.rb' since almost no project uses an extension in the bin directory
86
93
 
87
-
88
- ## [v0.2.3] - 2019-07-30
94
+ ## [0.2.3] - 2019-07-30
89
95
  ### Fixed
90
96
  - Fixed 'yield' typo in some tasks
91
97
 
92
-
93
- ## [v0.2.2] - 2019-07-29
98
+ ## [0.2.2] - 2019-07-29
94
99
  ### Added
95
100
  - RunTask & 'raketeer/run'
96
101
  - Util
@@ -100,13 +105,11 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
100
105
  - Refactored some code (minor)
101
106
  - Changed some documentation (minor)
102
107
 
103
-
104
- ## [v0.2.1] - 2019-07-24
108
+ ## [0.2.1] - 2019-07-24
105
109
  ### Changed
106
110
  - Fixed minor/cosmetic typo
107
111
 
108
-
109
- ## [v0.2.0] - 2019-07-24
112
+ ## [0.2.0] - 2019-07-24
110
113
  ### Added
111
114
  - All (lib/raketeer/all.rb); used to be Raketeers
112
115
  - `require 'raketeer/all'`
@@ -116,8 +119,7 @@ and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec
116
119
  ### Removed
117
120
  - Raketeers (lib/raketeer/raketeers.rb); renamed to All
118
121
 
119
-
120
- ## [v0.1.0] - 2019-07-23
122
+ ## [0.1.0] - 2019-07-23
121
123
  ### Added
122
124
  - IRB task
123
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