raketeer 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a66040c4720afe61b5b0a5ebd627f8faeeffed41a69754865826fad555c3e18
4
- data.tar.gz: 229b588996590c0f8d0ddcc951b6809ef8257e11f71e5546c3f9543d9645eea1
3
+ metadata.gz: ec89678553f96bde861d1db36fdf62362a986aae57d48920fcedb4b8d648d1ee
4
+ data.tar.gz: b5b1796833f6ab053e4e8582bb12e221d205bac73a90d2253713d81e206b7585
5
5
  SHA512:
6
- metadata.gz: 78b71c9286e3f440d3909d55e9c440f04146aa63e778df7401ba8b215b61e73b4c4f94ae5516073747947ae7d8077ff033f9d1dbef4725ec265b71400cbf3cea
7
- data.tar.gz: '0579e6ece10ffc56705cffd4d3dfc8be8d90a94d8507677866a37c52d45cf41e5a368e11c38cfb0a53b340c382299d171e9a2ead0a184c587baa49c1ef9ddb90'
6
+ metadata.gz: 63a541a44b2cee494a9a113944c390297affdda18e745d6726b755bb9d766f9bbc8ceed58944146e2878a5e57750a83cdbeb036ad8b01758311020894d918209
7
+ data.tar.gz: 035bf26706bc7913dcac4b194a1a3d0ac6816812c76c5aed0713abdf2b7d8cb17942d2762a4592f281755a6bc8ce45db20e88b892d1d0b2854220e7f47e76cd8
data/CHANGELOG.md CHANGED
@@ -5,10 +5,20 @@ All notable changes to this project will be documented in this file.
5
5
  Format is based on [Keep a Changelog v1.0.0](https://keepachangelog.com/en/1.0.0),
6
6
  and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [[Unreleased]](https://github.com/esotericpig/raketeer/compare/v0.2.12...HEAD)
8
+ ## [[Unreleased]](https://github.com/esotericpig/raketeer/compare/v0.2.13...HEAD)
9
9
  -
10
10
 
11
11
 
12
+ ## [v0.2.13] - [2021-06-22](https://github.com/esotericpig/raketeer/compare/v0.2.12...v0.2.13)
13
+ ### Fixed
14
+ - Changed `bump` to reset lower version numbers.
15
+ - If `v1.1.1`, major +1 will become => `v2.0.0` (not `v2.1.1`).
16
+ - If `v1.1.1`, minor +1 will become => `v1.2.0` (not `v1.2.1`).
17
+ - Patch +1 will continue to work the same.
18
+ - 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
+ - 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
+
21
+
12
22
  ## [v0.2.12] - [2021-06-18](https://github.com/esotericpig/raketeer/compare/v0.2.11...v0.2.12)
13
23
  ### Changed
14
24
  - Changed `bump` to also update GitHub compare links in Changelogs.
@@ -55,7 +55,21 @@ module Raketeer
55
55
  sem_ver.major = 0 # There must always be a major version
56
56
  else
57
57
  sem_ver.major = 0 if sem_ver.major.nil?
58
+
59
+ old_major = sem_ver.major
58
60
  sem_ver.major += @major.to_i
61
+
62
+ if sem_ver.major != old_major
63
+ # Reset minor & patch so that 1.1.1 => 2.0.0.
64
+ # If the user wishes, minor & patch will continue
65
+ # to be affected after ('+1.+1.+1').
66
+ sem_ver.minor = 0
67
+ sem_ver.patch = 0
68
+
69
+ # It's difficult to decide whether to set
70
+ # pre-release and build-metadata to nil,
71
+ # so just leave them.
72
+ end
59
73
  end
60
74
  end
61
75
 
@@ -66,7 +80,16 @@ module Raketeer
66
80
  sem_ver.minor = nil
67
81
  else
68
82
  sem_ver.minor = 0 if sem_ver.minor.nil?
83
+
84
+ old_minor = sem_ver.minor
69
85
  sem_ver.minor += @minor.to_i
86
+
87
+ if sem_ver.minor != old_minor
88
+ # Reset patch so that 1.1.1 => 1.2.0.
89
+ # If the user wishes, patch will continue
90
+ # to be affected after ('X.+1.+1').
91
+ sem_ver.patch = 0
92
+ end
70
93
  end
71
94
  end
72
95
 
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
  module Raketeer
13
- VERSION = '0.2.12'
13
+ VERSION = '0.2.13'
14
14
 
15
15
  # @since 0.2.4
16
16
  DEP_VERSIONS = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raketeer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bradley Whited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-18 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake