kompo 0.3.1 → 0.3.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: 62d037ca6d6e6732787913525793259a1f7fc873ef236d878f311f7f7a006027
4
- data.tar.gz: 85a8518c2f667948993610c8c371f5965f23a9c5e3966c56528effd1d83f83c1
3
+ metadata.gz: 537e7d25e2bab44278b2dc1131784bac2b70683e1fde1f8d17e7c51e567bc792
4
+ data.tar.gz: b28ea160afb248b10e38c6916d3f4adbfc8768dad010e6e686984d514506ae54
5
5
  SHA512:
6
- metadata.gz: 39f7e8db6050dc96a268717d9f8e95bd46a1e25a2d9f39062565fd4d61975440d5810eec072011361c4ba6d68189ce271326f9b43adbae5ea06ce9f022a85a0f
7
- data.tar.gz: 4dde801ca0ca7df82a0221a2e79a3a9ce835a201108010355262d2c77aad55bff5b2d21f119746560cbb71275a8b07ca2db87f1c7da44200c022dbe911510124
6
+ metadata.gz: e2453a6bd240d833523d14661a1aaa132497e4a8da33278010102cfcf957cffc59218350188982683d8f99e4e73d29576d732a7babaa694c9c7081013cc2a046
7
+ data.tar.gz: ed33f8f19b2d11ab3366ae9b26aa4a036fa4bd83395b6d7240fe829e8eef7a5bcffef96fa4f4e87b2ffa28acab9de80f9771a060c85f08111f6c91ef972a66b9
data/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.2] - 2025-01-25
11
+
12
+ ### Fixed
13
+ - Embed gemspec files in VFS for runtime Bundler support [#10](https://github.com/ahogappa/kompo/pull/10)
14
+
10
15
  ## [0.3.1] - 2025-01-25
11
16
 
12
17
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kompo (0.3.1)
4
+ kompo (0.3.2)
5
5
  async
6
6
  mini_portile2
7
7
  pathspec
@@ -5,7 +5,7 @@ require 'fileutils'
5
5
  module Kompo
6
6
  # Copy Gemfile, Gemfile.lock, and gemspec files to working directory if they exist
7
7
  class CopyGemfile < Taski::Task
8
- exports :gemfile_exists
8
+ exports :gemfile_exists, :gemspec_paths
9
9
 
10
10
  def run
11
11
  work_dir = WorkDir.path
@@ -15,7 +15,7 @@ module Kompo
15
15
  gemfile_lock_path = File.join(project_dir, 'Gemfile.lock')
16
16
 
17
17
  @gemfile_exists = File.exist?(gemfile_path)
18
- @copied_gemspecs = []
18
+ @gemspec_paths = []
19
19
 
20
20
  if @gemfile_exists
21
21
  FileUtils.cp(gemfile_path, work_dir)
@@ -46,7 +46,7 @@ module Kompo
46
46
  FileUtils.rm_f(gemfile_lock)
47
47
 
48
48
  # Clean up copied gemspec files
49
- (@copied_gemspecs || []).each do |gemspec|
49
+ (@gemspec_paths || []).each do |gemspec|
50
50
  FileUtils.rm_f(gemspec)
51
51
  end
52
52
 
@@ -66,7 +66,7 @@ module Kompo
66
66
  gemspec_files.each do |gemspec_path|
67
67
  dest_path = File.join(work_dir, File.basename(gemspec_path))
68
68
  FileUtils.cp(gemspec_path, dest_path)
69
- @copied_gemspecs << dest_path
69
+ @gemspec_paths << dest_path
70
70
  puts "Copied: #{File.basename(gemspec_path)}"
71
71
  end
72
72
 
@@ -94,12 +94,15 @@ module Kompo
94
94
  paths << CopyProjectFiles.entrypoint_path
95
95
  paths += CopyProjectFiles.additional_paths
96
96
 
97
- # 2. Gemfile and Gemfile.lock (if exists)
97
+ # 2. Gemfile, Gemfile.lock, and gemspec files (if exists)
98
98
  # Created by: CopyGemfile
99
99
  if CopyGemfile.gemfile_exists
100
100
  paths << File.join(@work_dir, 'Gemfile')
101
101
  paths << File.join(@work_dir, 'Gemfile.lock')
102
102
 
103
+ # Include gemspec files for Bundler's gemspec directive
104
+ paths += CopyGemfile.gemspec_paths
105
+
103
106
  # 3. Bundle directory (.bundle/config and bundle/ruby/X.Y.Z/gems/...)
104
107
  # Created by: BundleInstall
105
108
  paths << BundleInstall.bundler_config_path
data/lib/kompo/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kompo
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  KOMPO_VFS_MIN_VERSION = '0.5.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kompo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hirano