rustby 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: 61e50f3abb974c03a44c6fd98fdde10354eae8ee6ff069eb523c4c0c6ae85ff2
4
- data.tar.gz: bd9a0076235e0b9b40c8650e6ce5a32fdf4ddbc5c36a7d31e7e07a5f0ffc1827
3
+ metadata.gz: 168e2911bd78db631c8efa7b72f92add9502b69d157a93fb2139836d2444f2e3
4
+ data.tar.gz: 91d929adcffffa243d7c665c33ebd6ac637f7a900210ea788a297cf71a47b81a
5
5
  SHA512:
6
- metadata.gz: 2670b9253fa29c5058c209096fadd0a06b2593561de60d5120a23406910f2f5343fca314290c231cbb6d5a3b7b4b6d14a5c51fe7c20b6f1d1eb7b7abfe5c3f51
7
- data.tar.gz: b4b5089235c551925d2d147f265374b0903d8ce6911a98da006ef82955709119c1317480f89275cb70f735c0eb80a336e5e24b94dbed6944ee83da7b9df40f34
6
+ metadata.gz: 4e3df4baa4acebf6917fbd1344ed53c4df6c047f061671dd0451837a858379be47c19eaf9717c81f01759e4927aca8fdfa37debd1ee13294c69a7f69378dfd9d
7
+ data.tar.gz: 25872ffa6e3d6ec14cda465355df559843233484cc9c90e4e27d77f689c4071a81e49311394b40df9f876117abc2bdeeaba09043971be91e259fdd31dca324fc
data/.gitignore CHANGED
@@ -6,4 +6,3 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- *.so
data/ext/rustby/Makefile CHANGED
@@ -1,7 +1,7 @@
1
- all: target/release/librustby.so ../rustby.so
1
+ all: target/release/librustby.so rustby.so
2
2
 
3
3
  target/release/librustby.so: src/lib.rs
4
4
  cargo build --release
5
5
 
6
- ../rustby.so: target/release/librustby.so
6
+ rustby.so: target/release/librustby.so
7
7
  cp $^ $@
@@ -1 +1,8 @@
1
1
  # frozen_string_literal: true
2
+
3
+ require 'fileutils'
4
+
5
+ ext_dir = Dir.pwd
6
+ FileUtils.mkdir_p ext_dir
7
+ src = %w[Makefile Cargo.toml Cargo.lock src].map { |file| "#{File.dirname($PROGRAM_NAME)}/#{file}" }
8
+ FileUtils.cp_r src, ext_dir
data/ext/rustby.so ADDED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rustby
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rustby
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
  - Murata Mitsuharu
@@ -24,6 +24,7 @@ files:
24
24
  - Rakefile
25
25
  - bin/console
26
26
  - bin/setup
27
+ - ext/rustby.so
27
28
  - ext/rustby/.gitignore
28
29
  - ext/rustby/Cargo.lock
29
30
  - ext/rustby/Cargo.toml