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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c23bbb4a1a09435f6e23a4dc9dd7e0f00ae3338c
4
- data.tar.gz: 3783d4c8dfe4c3570f175891ecdc61a61bd21189
3
+ metadata.gz: caacf9a306233360516146a58ad930377b7c6716
4
+ data.tar.gz: 67b195f32aa3d5cdb1560b0e38d01c2329496b07
5
5
  SHA512:
6
- metadata.gz: 6a141766c0ce9d6c2f81cf8d137591d43f21f8e9a54549452daff7afecfc44338ad58a030a2728b3a9fdb04f018e80982b3bbb77a4f986397af20b2fef19304d
7
- data.tar.gz: ec0051db880560bf5a899056f6ccfd8c0109129112b383215a08f50c906c7baff8a06e392b24c1222fed11b1636fd6aa24516c7e90d244394d5bfc9b28025d66
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
@@ -0,0 +1,2 @@
1
+ cargo:rustc-link-search=/home/lprestonsegoiii/.rvm/rubies/ruby-2.3.0/lib
2
+ cargo:rustc-link-lib=dylib=ruby
data/ext/extconf.rb CHANGED
@@ -1,17 +1,19 @@
1
1
  # frozen_string_literal: true
2
- # NOTE: Thi file must be tab-delimited
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
- pwd
11
- ls -la
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module CaseTransform
3
- VERSION = '0.2'.freeze
3
+ VERSION = '0.3'.freeze
4
4
  RUST = true
5
5
  end
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.2'
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-22 00:00:00.000000000 Z
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.2
189
+ summary: CaseTransform-0.3
180
190
  test_files: []