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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/kompo/tasks/copy_gemfile.rb +4 -4
- data/lib/kompo/tasks/make_fs_c.rb +4 -1
- data/lib/kompo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 537e7d25e2bab44278b2dc1131784bac2b70683e1fde1f8d17e7c51e567bc792
|
|
4
|
+
data.tar.gz: b28ea160afb248b10e38c6916d3f4adbfc8768dad010e6e686984d514506ae54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
-
@
|
|
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
|
-
(@
|
|
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
|
-
@
|
|
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
|
|
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