validation_hints 8.1.42 → 8.1.43

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: 550f48f2bf34c6deac3a7601fe4550e93ea3acbb52f2d95cfa88d4e13eac4aa1
4
- data.tar.gz: fd356a47f883077c7249400e60bd7b78dd12d31dad99fe5c1205597d4ab3148a
3
+ metadata.gz: c67264dbc98e549b189480d8b7289f1591b13dbb18bd1013d9c81837ef6ee374
4
+ data.tar.gz: 557ed2c651eaf3df58773f1d53a5a99a02beedcc51cbe8ed2b6fd20337bf83bf
5
5
  SHA512:
6
- metadata.gz: 10c283c61d2e4e78b993c18642509b7fc47755ad12e9616199417a0405057421d8607458944f3ebd823215470437669fd810aa99fa59c66b757411eeed41ef58
7
- data.tar.gz: 348f929f277753cbde4f28b1bd2bfbe83532d2ad17f07b774a0b30c76189dbd97a2291c6725e89de3c99ccbe67855ccf077675459dd4fce487782da357a25d92
6
+ metadata.gz: 24be13dce43e5ba8df8d3da28f968a6704162d3b57b20b63c65ec374f9f89966eb842ec1281678c365163b019ed7b9d3ad3df3c5377d7ab32665e5e6df3644c4
7
+ data.tar.gz: f71716d6b7a6d15e442d656fcfaec8fd861db0a4f245e6f7e2c5e0cf9aa3726b549453652bdf96a86d644b10abd9acdc6a54baad10b292dcc5e8db8a2b49491e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project are documented here.
4
4
 
5
+ ## 8.1.43
6
+
7
+ ### Changed
8
+
9
+ - **Version numbering:** aligned with **inline_forms** / **inline_forms_installer** / **inline_forms_schema_edit** **8.1.43** (companion release: merges the schema-GUI pipeline line into master alongside the picker fix; no API changes in validation_hints).
10
+
5
11
  ## 8.1.42
6
12
 
7
13
  ### Changed
data/Rakefile CHANGED
@@ -2,11 +2,40 @@
2
2
 
3
3
  require "bundler/gem_helper"
4
4
  require "rake/testtask"
5
+ require_relative "lib/validation_hints/version"
5
6
 
6
7
  # Do not require "bundler/setup" at load time: `rake release` only builds and
7
8
  # pushes the .gem (no tests, no sqlite3). Tests load the bundle explicitly.
8
9
  Bundler::GemHelper.install_tasks
9
10
 
11
+ # Release git-push ALWAYS targets `origin` (GitHub) only.
12
+ #
13
+ # Bundler's stock `release` pushes the commit + tag to the CURRENT BRANCH's
14
+ # tracking remote (`git config branch.<branch>.remote`). If this repo is ever
15
+ # released from a branch that tracks `forgejo` (dev02, CI-only), the release
16
+ # would land there instead of GitHub. `origin` is the only place release
17
+ # commits/tags belong. Override `release` so its git-push step can never follow
18
+ # a non-origin tracking remote. Idempotent on the tag so a re-run after a failed
19
+ # push still lands the tag on origin.
20
+ Rake::Task["release"].clear if Rake::Task.task_defined?("release")
21
+
22
+ desc "Tag the release and push the commit + tag to origin (GitHub) only"
23
+ task "release:push_to_origin" do
24
+ version = ValidationHints::VERSION
25
+ tag = "v#{version}"
26
+ branch = `git rev-parse --abbrev-ref HEAD`.strip
27
+ unless system("git", "rev-parse", "-q", "--verify", "refs/tags/#{tag}",
28
+ out: File::NULL, err: File::NULL)
29
+ sh "git", "tag", tag
30
+ end
31
+ sh "git", "push", "origin", "refs/heads/#{branch}"
32
+ sh "git", "push", "origin", "refs/tags/#{tag}"
33
+ end
34
+
35
+ desc "Build, tag, push to origin (GitHub) and push the gem to RubyGems"
36
+ task "release" => [ "build", "release:guard_clean",
37
+ "release:push_to_origin", "release:rubygem_push" ]
38
+
10
39
  Rake::TestTask.new(:test) do |t|
11
40
  t.libs << "test"
12
41
  t.libs << "lib"
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module ValidationHints
4
- VERSION = "8.1.42"
4
+ VERSION = "8.1.43"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_hints
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.42
4
+ version: 8.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares