case_transform-rust-extensions 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/case_transform/Cargo.lock +39 -0
- data/ext/case_transform/build.sh +28 -0
- data/ext/case_transform/target/release/build/ruby-sys-1ad50ce5e08183ce/build-script-build +0 -0
- data/ext/case_transform/target/release/build/ruby-sys-1ad50ce5e08183ce/output +2 -0
- data/ext/case_transform/target/release/deps/libcase_transform.so +0 -0
- data/ext/case_transform/target/release/deps/libinflections-b950f632af4dfe94.rlib +0 -0
- data/ext/case_transform/target/release/deps/liblibc-1417726cb94dbc83.rlib +0 -0
- data/ext/case_transform/target/release/deps/libruby_sys-ea6cfcdaa39dd870.rlib +0 -0
- data/ext/case_transform/target/release/deps/libruru-ff708bcc1edd0619.rlib +0 -0
- data/ext/case_transform/target/release/libcase_transform.so +0 -0
- data/ext/extconf.rb +8 -6
- data/lib/case_transform/version.rb +1 -1
- metadata +13 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caacf9a306233360516146a58ad930377b7c6716
|
4
|
+
data.tar.gz: 67b195f32aa3d5cdb1560b0e38d01c2329496b07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccaa57bc4108b5d1b2d57d8b21cb0ff7723ab5c8a9a825b253e479f558a87a01a4598d51c73e58734222c01a1d62e8c6dffe44ba76c876344d35d7b06ce043b8
|
7
|
+
data.tar.gz: e639cc539da0a0bd187fe8eb739a05cc1e6976bede14caea0fdc3a495aac8e04c3bc27f7cb2422dd6c263f97c27365bf4b9b2dfb8868c46f0cc6067703d8e797
|
@@ -0,0 +1,39 @@
|
|
1
|
+
[root]
|
2
|
+
name = "case_transform"
|
3
|
+
version = "0.1.0"
|
4
|
+
dependencies = [
|
5
|
+
"inflections 1.0.0 (git+https://github.com/calebmer/inflections)",
|
6
|
+
"ruru 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
7
|
+
]
|
8
|
+
|
9
|
+
[[package]]
|
10
|
+
name = "inflections"
|
11
|
+
version = "1.0.0"
|
12
|
+
source = "git+https://github.com/calebmer/inflections#9ed521ca80c74f8c0901a2e32a1507f82547e383"
|
13
|
+
|
14
|
+
[[package]]
|
15
|
+
name = "libc"
|
16
|
+
version = "0.2.16"
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
+
|
19
|
+
[[package]]
|
20
|
+
name = "ruby-sys"
|
21
|
+
version = "0.2.12"
|
22
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
23
|
+
dependencies = [
|
24
|
+
"libc 0.2.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
25
|
+
]
|
26
|
+
|
27
|
+
[[package]]
|
28
|
+
name = "ruru"
|
29
|
+
version = "0.8.0"
|
30
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
31
|
+
dependencies = [
|
32
|
+
"ruby-sys 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
33
|
+
]
|
34
|
+
|
35
|
+
[metadata]
|
36
|
+
"checksum inflections 1.0.0 (git+https://github.com/calebmer/inflections)" = "<none>"
|
37
|
+
"checksum libc 0.2.16 (registry+https://github.com/rust-lang/crates.io-index)" = "408014cace30ee0f767b1c4517980646a573ec61a57957aeeabcac8ac0a02e8d"
|
38
|
+
"checksum ruby-sys 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "504c7c5129d25011547b5d4e46a79a7b931aaab7768e288751ee41704c831fee"
|
39
|
+
"checksum ruru 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1937d7968d8607b6f3c0f53ac7e534e43e2721d704bd6a91f78e2c00b9604c89"
|
@@ -0,0 +1,28 @@
|
|
1
|
+
rust_path=$(which rustc)
|
2
|
+
cargo_path=$(which cargo)
|
3
|
+
|
4
|
+
if [ -z rust_path ]
|
5
|
+
then
|
6
|
+
echo "rustc is missing. rustup will be installed to provide rustc..."
|
7
|
+
|
8
|
+
if [ -z cargo_path ]
|
9
|
+
then
|
10
|
+
echo "cargo is missing. rustup will be installed to provide cargo..."
|
11
|
+
|
12
|
+
curl https://sh.rustup.rs -sSf | sh
|
13
|
+
fi
|
14
|
+
fi
|
15
|
+
|
16
|
+
echo "rustc and cargo are installed"
|
17
|
+
echo "rustc: "
|
18
|
+
echo `which rustc`
|
19
|
+
echo "cargo: "
|
20
|
+
echo `which cargo`
|
21
|
+
|
22
|
+
if [ -z rust_path ]
|
23
|
+
then
|
24
|
+
echo "Rust still not installed..."
|
25
|
+
exit 1
|
26
|
+
fi
|
27
|
+
|
28
|
+
cargo build
|
Binary file
|
Binary file
|
Binary file
|
data/ext/extconf.rb
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
# NOTE:
|
2
|
+
# NOTE: This file must be tab-delimited
|
3
3
|
require 'mkmf'
|
4
4
|
|
5
5
|
create_makefile 'rutgem'
|
6
6
|
|
7
|
+
# pwd
|
8
|
+
# ls -la
|
9
|
+
# cd ./case_transform
|
10
|
+
# pwd
|
11
|
+
# cargo build
|
7
12
|
mkf = %{
|
8
13
|
.ONESHELL:
|
9
14
|
all:
|
10
|
-
|
11
|
-
|
12
|
-
cd ./case_transform
|
13
|
-
pwd
|
14
|
-
cargo build
|
15
|
+
cd case_transform
|
16
|
+
sh ./build.sh
|
15
17
|
|
16
18
|
clean:
|
17
19
|
rm -rf ./case_transform/target
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: case_transform-rust-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- L. Preston Sego III
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-09-
|
13
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thermite
|
@@ -147,8 +147,18 @@ extra_rdoc_files: []
|
|
147
147
|
files:
|
148
148
|
- LICENSE
|
149
149
|
- README.md
|
150
|
+
- ext/case_transform/Cargo.lock
|
150
151
|
- ext/case_transform/Cargo.toml
|
152
|
+
- ext/case_transform/build.sh
|
151
153
|
- ext/case_transform/src/lib.rs
|
154
|
+
- ext/case_transform/target/release/build/ruby-sys-1ad50ce5e08183ce/build-script-build
|
155
|
+
- ext/case_transform/target/release/build/ruby-sys-1ad50ce5e08183ce/output
|
156
|
+
- ext/case_transform/target/release/deps/libcase_transform.so
|
157
|
+
- ext/case_transform/target/release/deps/libinflections-b950f632af4dfe94.rlib
|
158
|
+
- ext/case_transform/target/release/deps/liblibc-1417726cb94dbc83.rlib
|
159
|
+
- ext/case_transform/target/release/deps/libruby_sys-ea6cfcdaa39dd870.rlib
|
160
|
+
- ext/case_transform/target/release/deps/libruru-ff708bcc1edd0619.rlib
|
161
|
+
- ext/case_transform/target/release/libcase_transform.so
|
152
162
|
- ext/extconf.rb
|
153
163
|
- lib/case_transform.rb
|
154
164
|
- lib/case_transform/version.rb
|
@@ -176,5 +186,5 @@ rubyforge_project:
|
|
176
186
|
rubygems_version: 2.5.1
|
177
187
|
signing_key:
|
178
188
|
specification_version: 4
|
179
|
-
summary: CaseTransform-0.
|
189
|
+
summary: CaseTransform-0.3
|
180
190
|
test_files: []
|