rbs 4.0.0.dev.3 → 4.0.0.dev.4

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: 8e5b2060cc5ad02487c340bb1929f2bb37208e0222d949cc19d7f9dc4ed5898f
4
- data.tar.gz: 4e3e4af4a4e4b107794984e04fd73b34812364f8526b05c2f38fcf30ec05213c
3
+ metadata.gz: 2d6c17a1d8371e7d529d224fcf5654f338e078e576275c214754573bb852a3f1
4
+ data.tar.gz: 181a52dc722b34752019e38fcbf1b7b001cbdc3fd0ff3ceadeeefeb2813a5a5d
5
5
  SHA512:
6
- metadata.gz: eb626cd71636d7f5a7cdd74e3382aa1d19f1f2c13a7c6ff794ed4f2388acc36a87ae54ecc3d722c33ecb7eeade494d2394c8151e1af88c06973a659f4ce509cf
7
- data.tar.gz: 2dc1084d7a986fab97e206e4fda8231bad922faa3bf3b9caa201ed67c2ac7a83e0215db3a1ad97f9c41ed7d34f6e62db44204586ccb8dbfd70e067082c65642f
6
+ metadata.gz: bee9898c24cd2cfe577fd693a60daa364c0769f815f684170e123fa7f2dc7932799fbf9b99aba19e83a17d373c8eedf5007e3934338b1ecd052a85c2f7ad986b
7
+ data.tar.gz: 5cd52e73fbbd3680d049a3c116da321d6e98825121216d33cd365737bd5405e1bb32dd3f3d33842a7a5db7ca9442c27a107682430cbafbce78dbfc0dc24be06e
data/Rakefile CHANGED
@@ -11,6 +11,14 @@ bin = File.join(__dir__, "bin")
11
11
 
12
12
  Rake::ExtensionTask.new("rbs_extension")
13
13
 
14
+ compile_task = Rake::Task[:compile]
15
+
16
+ task :setup_extconf_compile_commands_json do
17
+ ENV["COMPILE_COMMANDS_JSON"] = "1"
18
+ end
19
+
20
+ compile_task.prerequisites.unshift(:setup_extconf_compile_commands_json)
21
+
14
22
  test_config = lambda do |t|
15
23
  t.libs << "test"
16
24
  t.libs << "lib"
@@ -26,6 +26,10 @@ end
26
26
 
27
27
  create_makefile 'rbs_extension'
28
28
 
29
- require 'extconf_compile_commands_json'
30
- ExtconfCompileCommandsJson.generate!
31
- ExtconfCompileCommandsJson.symlink!
29
+ # Only generate compile_commands.json when compiling through Rake tasks
30
+ # This is to avoid adding extconf_compile_commands_json as a runtime dependency
31
+ if ENV["COMPILE_COMMANDS_JSON"]
32
+ require 'extconf_compile_commands_json'
33
+ ExtconfCompileCommandsJson.generate!
34
+ ExtconfCompileCommandsJson.symlink!
35
+ end
data/lib/rbs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RBS
4
- VERSION = "4.0.0.dev.3"
4
+ VERSION = "4.0.0.dev.4"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.dev.3
4
+ version: 4.0.0.dev.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-19 00:00:00.000000000 Z
10
+ date: 2025-05-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: logger