ratatui_ruby-devtools 0.1.1 → 0.1.2

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: 13d0c21c772a1be88c23b0345200140bc7d8befcbaf1c20d25a88230847188be
4
- data.tar.gz: 54de2f06a6849dbe99f182967834c5f3ca6a24963fc98ee929cd5fc59529fbb2
3
+ metadata.gz: c8c5679ebecec0f0509dff4a4cb133da9ea13ae6e94a220d0c46f6a446b5b19a
4
+ data.tar.gz: a8ba4986a2589d593c9c33615a00eefa2bbdfa86dc9a866bad25e272a3b84db3
5
5
  SHA512:
6
- metadata.gz: 28ce8dacd601f0fc068c34665d5e455523ff78fb5d43db7601341304d35c825d21fdb528ff1af09db13e35137894a3d9c0742f45b728672dce44e6da084f359f
7
- data.tar.gz: 8dbf94f55d3259e14735e7b55bb57d3d4ad57d7d0423699a012b73ce820393622220a15f9fab02eb0fea47fb1db2d3a290ceda2a51cce5a696aab6bd5e7ca9b5
6
+ metadata.gz: 117ec1293081d02740032dc8e438259b54828e4f651e25b955c718ec80a22420dd4b8e997d5a246a8571caa2acb189e61b37d6057193dc9a4cba56c79a7d1e5b
7
+ data.tar.gz: e6d26fc2f63555e73012a7d3b98b6d0f642207709d9979aea7ab61c2672c60ea54c4edc14c6d841d7e5625991eed63adfe1873f8cd4c065b7382e8fd6a84ddfe
data/CHANGELOG.md CHANGED
@@ -21,6 +21,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
 
22
22
  ### Removed
23
23
 
24
+ ## [0.1.2] - 2026-02-02
25
+
26
+ ### Added
27
+
28
+ ### Changed
29
+
30
+ ### Fixed
31
+
32
+ ### Removed
33
+
24
34
  ## [0.1.1] - 2026-01-26
25
35
 
26
36
  ### Added
@@ -56,5 +66,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
56
66
  ### Removed
57
67
 
58
68
  [Unreleased]: https://git.sr.ht/~kerrick/ratatui_ruby-devtools/refs/HEAD
69
+ [0.1.2]: https://git.sr.ht/~kerrick/ratatui_ruby-devtools/refs/v0.1.2
59
70
  [0.1.1]: https://git.sr.ht/~kerrick/ratatui_ruby-devtools/refs/v0.1.1
60
71
  [0.1.0]: https://git.sr.ht/~kerrick/ratatui_ruby-devtools/refs/v0.1.0
@@ -25,22 +25,23 @@ def load_source_gem_metadata
25
25
  raise "No version.rb found in #{SOURCE_GEM_DIR}" if version_files.empty?
26
26
 
27
27
  version_file = version_files.first
28
- load version_file
28
+ version_content = File.read(version_file)
29
29
 
30
- # Find the module that defines VERSION
31
- # Convention: the namespace matches the gem name
30
+ # Parse module name and VERSION directly from file content
31
+ module_match = version_content.match(/^\s*module\s+(\w+(?:::\w+)*)/)
32
+ raise "No module declaration found in #{version_file}" unless module_match
33
+
34
+ version_match = version_content.match(/VERSION\s*=\s*["']([^"']+)["']/)
35
+ raise "No VERSION found in #{version_file}" unless version_match
36
+
37
+ full_version = version_match[1]
38
+
39
+ # Get gem_name from gemspec for other metadata
32
40
  gemspec_files = Dir.glob(File.join(SOURCE_GEM_DIR, "*.gemspec"))
33
41
  raise "No gemspec found in #{SOURCE_GEM_DIR}" if gemspec_files.empty?
34
42
 
35
43
  gem_name = File.basename(gemspec_files.first, ".gemspec")
36
44
 
37
- # Convert gem_name to module name (e.g., ratatui_ruby -> RatatuiRuby)
38
- module_name = gem_name.split("_").map(&:capitalize).join
39
- .split("-").map(&:capitalize).join("::")
40
-
41
- full_version = Object.const_get(module_name)::VERSION
42
- raise "Could not load VERSION from #{version_file}" unless full_version
43
-
44
45
  # Compute docs version (major.minor only) using Gem::Version
45
46
  segments = Gem::Version.new(full_version).segments
46
47
  docs_version = segments.first(2).join(".")
@@ -64,7 +65,7 @@ def load_source_gem_metadata
64
65
  end
65
66
 
66
67
  def current_source_sha
67
- Dir.chdir(SOURCE_GEM_DIR) { `git rev-parse trunk`.strip }
68
+ Dir.chdir(SOURCE_GEM_DIR) { `git rev-parse origin/trunk`.strip }
68
69
  end
69
70
 
70
71
  def docs_content_hash
@@ -8,6 +8,6 @@
8
8
  module RatatuiRuby
9
9
  module Devtools
10
10
  # Current version of the ratatui_ruby-devtools gem.
11
- VERSION = "0.1.1"
11
+ VERSION = "0.1.2"
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratatui_ruby-devtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerrick Long