rbcsv 0.1.2 → 0.1.3

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: 4ff6e4c9990f873fd5bfd280b944b39ba3c06507dad792391ea91d5348bb9924
4
- data.tar.gz: efa2c4f924e4470aaf3a68ac0243b607f83e62cfed1131b82fa3982c6c80e4d5
3
+ metadata.gz: c7642f2718a3887f7f1c93d81555b354f80b9324822a6da7efc1f877f7381f66
4
+ data.tar.gz: 2a704520e1dcccb552d378708ac27b8bd99a22a8afa28ac372bb35512ba26d43
5
5
  SHA512:
6
- metadata.gz: 639beb1512112987e6b63a1efc48d4e6bcb9058495c42f1e3e9c7e9778bcd2dabfb202f1118eab0d76d78d2000a0fe75b5629d995a289c83f5c78caeb0634605
7
- data.tar.gz: b756b47fdb7f59bcfd9a437467909b69e89aa8c8264f128e3c93f687d5c5c9d71db3df748f6ddeb6f4fe3604ec8fc5eb701a09b11c98be4cade7563ba14851a4
6
+ metadata.gz: 254312f4b7239085910f4ef853586ce5fc42ec80b5bb435819f68dc5c8e143511a9db80227b970f153d019bc02facf5f2043b97747b55d312794a1c91bd71d26
7
+ data.tar.gz: 74fbec2b486933f924f480cc6c3dc06d748616cdadc12b371d5e48f428346b6b4562b63f5b9c53c32c0bfb09df9091a8e50a2e9d73b09c433e322e496ef40a52
data/ext/rbcsv/extconf.rb CHANGED
@@ -4,3 +4,16 @@ require "mkmf"
4
4
  require "rb_sys/mkmf"
5
5
 
6
6
  create_rust_makefile("rbcsv/rbcsv")
7
+
8
+ # After Makefile generation, patch it to handle platform-specific output paths
9
+ makefile_path = "Makefile"
10
+ if File.exist?(makefile_path)
11
+ content = File.read(makefile_path)
12
+
13
+ # Find the RUSTLIB target and add copy command to handle platform-specific paths
14
+ content.gsub!(/(\$\(RUSTLIB\): FORCE\n\s+\$\(ECHO\) generating.*\n\s+\$\(CARGO\) rustc.*-l pthread)/,
15
+ '\1' + "\n\t@mkdir -p $(RB_SYS_CARGO_TARGET_DIR)/$(RB_SYS_CARGO_PROFILE_DIR)" +
16
+ "\n\t@if [ -f $(RB_SYS_CARGO_TARGET_DIR)/*/$(RB_SYS_CARGO_PROFILE_DIR)/$(SOEXT_PREFIX)$(TARGET_NAME).$(SOEXT) ]; then cp $(RB_SYS_CARGO_TARGET_DIR)/*/$(RB_SYS_CARGO_PROFILE_DIR)/$(SOEXT_PREFIX)$(TARGET_NAME).$(SOEXT) $(RB_SYS_CARGO_TARGET_DIR)/$(RB_SYS_CARGO_PROFILE_DIR)/$(SOEXT_PREFIX)$(TARGET_NAME).$(SOEXT); fi")
17
+
18
+ File.write(makefile_path, content)
19
+ end
data/lib/rbcsv/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbCsv
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbcsv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - fujitani sora