hiiro 0.1.314 → 0.1.315
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 +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/hiiro/version.rb +1 -1
- data/sa +1 -0
- data/script/available +48 -0
- data/script/publish +2 -2
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a1893f514eefa2df7e5fc6730f984468b57fd94e732a7b70e131476f613fc6f
|
|
4
|
+
data.tar.gz: ad813ddfe3c1b575967610f9df94a70351e6a7273b31ee02e5a98e253ff4a23d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 661dd8c86142d82fb38343c38b8a92f54a4a21e32ab6ed4c45b59543bfafbf3180510e8b25f6900a3360b8b1474e8b4e55783c1dbb586b28a1944e5842c05493
|
|
7
|
+
data.tar.gz: 522f493875610863168d00a7b5b2afa1797314f9222f022a98b7719903ad63757e8de806b57dc361f5ed03f883f1cbb0b0c2e6a616165fed85b88796f71553aa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.315] - 2026-04-01
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Remove redundant `exit 0` statement from publish script
|
|
7
|
+
|
|
3
8
|
## [0.1.314] - 2026-04-01
|
|
4
9
|
|
|
5
10
|
### Fixed
|
|
@@ -198,4 +203,4 @@
|
|
|
198
203
|
## [0.1.295]
|
|
199
204
|
|
|
200
205
|
### Changed
|
|
201
|
-
- Filter logic changes for PR management
|
|
206
|
+
- Filter logic changes for PR management
|
data/lib/hiiro/version.rb
CHANGED
data/script/available
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "net/http"
|
|
4
|
+
require "json"
|
|
5
|
+
require "pry"
|
|
6
|
+
|
|
7
|
+
# ─── RubyGems API ────────────────────────────────────────────────────────────
|
|
8
|
+
|
|
9
|
+
class RubyGems
|
|
10
|
+
def self.published_versions(gem_name)
|
|
11
|
+
uri = URI("https://rubygems.org/api/v1/versions/#{gem_name}.json")
|
|
12
|
+
json_version = JSON.parse(Net::HTTP.get(uri)).map { |v| v["number"] }
|
|
13
|
+
rescue => e
|
|
14
|
+
puts "Warning: could not fetch versions from RubyGems (#{e.message}), falling back to local"
|
|
15
|
+
require "hiiro"
|
|
16
|
+
[Hiiro::VERSION]
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def self.wait_for(gem_name, version, max_attempts: 40)
|
|
20
|
+
attempts = 0
|
|
21
|
+
loop do
|
|
22
|
+
sleep(attempts == 0 ? 5 : 15)
|
|
23
|
+
attempts += 1
|
|
24
|
+
versions = published_versions(gem_name)
|
|
25
|
+
return true if versions.include?(version)
|
|
26
|
+
puts "Waiting for v#{version} on RubyGems (attempt #{attempts}/#{max_attempts})..."
|
|
27
|
+
return false if attempts >= max_attempts
|
|
28
|
+
end
|
|
29
|
+
rescue => e
|
|
30
|
+
puts "RubyGems poll error: #{e.message}"
|
|
31
|
+
false
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class HiiroSetup
|
|
36
|
+
def self.latest_version1 = RubyGems.published_versions('hiiro').first
|
|
37
|
+
def self.latest_version2 = `gem search -r hiiro`.lines.map(&:strip).select{|ln| ln.match?(/\d\.\d/) }.first[/\d+\.\d+[^)]+/]
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
json_version = HiiroSetup.latest_version1
|
|
41
|
+
cli_version = HiiroSetup.latest_version2
|
|
42
|
+
|
|
43
|
+
puts
|
|
44
|
+
puts(json_version:,cli_version:)
|
|
45
|
+
puts
|
|
46
|
+
|
|
47
|
+
puts 'done'
|
|
48
|
+
|
data/script/publish
CHANGED
|
@@ -14,6 +14,7 @@ class RubyGems
|
|
|
14
14
|
require "hiiro"
|
|
15
15
|
[Hiiro::VERSION]
|
|
16
16
|
end
|
|
17
|
+
def self.cli_version = `gem search -r hiiro`.lines.map(&:strip).select{|ln| ln.match?(/\d\.\d/) }.first&.[](/(?:[(])\d[^)]+/)
|
|
17
18
|
|
|
18
19
|
def self.wait_for(gem_name, version, max_attempts: 40)
|
|
19
20
|
attempts = 0
|
|
@@ -21,7 +22,7 @@ class RubyGems
|
|
|
21
22
|
sleep(attempts == 0 ? 5 : 15)
|
|
22
23
|
attempts += 1
|
|
23
24
|
versions = published_versions(gem_name)
|
|
24
|
-
return true if versions.include?(version)
|
|
25
|
+
return true if versions.include?(version) && cli_version && cli_version == version
|
|
25
26
|
puts "Waiting for v#{version} on RubyGems (attempt #{attempts}/#{max_attempts})..."
|
|
26
27
|
return false if attempts >= max_attempts
|
|
27
28
|
end
|
|
@@ -216,7 +217,6 @@ if pending_before
|
|
|
216
217
|
end
|
|
217
218
|
|
|
218
219
|
File.write("CHANGELOG.md", release.changelog) if release.changelog && !release.changelog.strip.empty?
|
|
219
|
-
|
|
220
220
|
File.write("lib/hiiro/version.rb", "class Hiiro\n VERSION = #{new_version.inspect}\nend\n")
|
|
221
221
|
|
|
222
222
|
RubyGem.build(new_version)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hiiro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.315
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Toyota
|
|
@@ -342,6 +342,8 @@ files:
|
|
|
342
342
|
- plugins/pins.rb
|
|
343
343
|
- plugins/project.rb
|
|
344
344
|
- record-demo.sh
|
|
345
|
+
- sa
|
|
346
|
+
- script/available
|
|
345
347
|
- script/compare
|
|
346
348
|
- script/diff
|
|
347
349
|
- script/diffhome
|