rusty_camel_linux 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8a97260f1d280c065eea8bc0dfc10a8b89ab22e4
4
+ data.tar.gz: a60949bbfb44009c0a459d34919cef49e23296b4
5
+ SHA512:
6
+ metadata.gz: fef399ffd494180889cbe59966f459281cc4942aa9914964fade0e128794730c6b26a5ccedc350a56031dbee9403566859469a7f64ecdab579b49299e460afce
7
+ data.tar.gz: 7f4864426dabf31408f7f3967b0e88977d0f2a8a4a07450971507f4f67c865143712b1a000237da545ac6dc18a1a15d9d064b28dd67a9d42786c88dd76b4d3d4
data/Cargo.lock ADDED
@@ -0,0 +1,47 @@
1
+ [root]
2
+ name = "rusty_camel_linux"
3
+ version = "0.1.0"
4
+ dependencies = [
5
+ "helix 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
6
+ ]
7
+
8
+ [[package]]
9
+ name = "cslice"
10
+ version = "0.2.0"
11
+ source = "registry+https://github.com/rust-lang/crates.io-index"
12
+
13
+ [[package]]
14
+ name = "cstr-macro"
15
+ version = "0.1.0"
16
+ source = "registry+https://github.com/rust-lang/crates.io-index"
17
+
18
+ [[package]]
19
+ name = "helix"
20
+ version = "0.5.0"
21
+ source = "registry+https://github.com/rust-lang/crates.io-index"
22
+ dependencies = [
23
+ "cslice 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
24
+ "cstr-macro 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
25
+ "libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)",
26
+ "libcruby-sys 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
27
+ ]
28
+
29
+ [[package]]
30
+ name = "libc"
31
+ version = "0.2.29"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+
34
+ [[package]]
35
+ name = "libcruby-sys"
36
+ version = "0.5.0"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ dependencies = [
39
+ "libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)",
40
+ ]
41
+
42
+ [metadata]
43
+ "checksum cslice 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "697c714f50560202b1f4e2e09cd50a421881c83e9025db75d15f276616f04f40"
44
+ "checksum cstr-macro 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "db53fddba18cdd35477a7213a3ef6acfbfa333c31b42ce019e544c4a1420a06f"
45
+ "checksum helix 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4e4a47b16ffda8d734cc35a314121de5b5c665acf7129eafc410639cdeda1732"
46
+ "checksum libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)" = "8a014d9226c2cc402676fbe9ea2e15dd5222cd1dd57f576b5b283178c944a264"
47
+ "checksum libcruby-sys 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8828a85065ebe12f4847428346b99f4d5a30660d20fc97de9aa34e01d7a02c50"
data/Cargo.toml ADDED
@@ -0,0 +1,9 @@
1
+ [package]
2
+ name = "rusty_camel_linux"
3
+ version = "0.1.0"
4
+
5
+ [lib]
6
+ crate-type = ["cdylib"]
7
+
8
+ [dependencies]
9
+ helix = "0.5.0"
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,23 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rusty_camel_linux (1.0.4)
5
+ helix_runtime (~> 0.5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ helix_runtime (0.5.0)
11
+ rake (>= 10.0)
12
+ thor (~> 0.19.4)
13
+ rake (12.0.0)
14
+ thor (0.19.4)
15
+
16
+ PLATFORMS
17
+ ruby
18
+
19
+ DEPENDENCIES
20
+ rusty_camel_linux!
21
+
22
+ BUNDLED WITH
23
+ 1.15.4
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # Rusty Camel
2
+ Ruby snake to camel in rust
3
+
4
+ ### Example
5
+ ``` ruby
6
+ require 'rusty_camel'
7
+
8
+ "some_snake_case_string".camelcase
9
+ "someCamelCaseString".snakecase
10
+
11
+ ```
12
+
13
+ ### Benchmark
14
+ Converting 50k rails accounts in json format
15
+ ```
16
+ To camel case
17
+ user system total real
18
+ Rust 0.970000 0.080000 1.050000 ( 1.056655)
19
+ Ruby 9.940000 0.360000 10.300000 ( 10.363646)
20
+
21
+ To snake case
22
+ user system total real
23
+ Rust 1.100000 0.100000 1.200000 ( 1.208300)
24
+ Ruby 10.960000 0.430000 11.390000 ( 11.404156)
25
+ ```
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler/setup'
2
+ import 'lib/tasks/helix_runtime.rake'
@@ -0,0 +1,9 @@
1
+ require "helix_runtime"
2
+
3
+ RubyString = String
4
+
5
+ begin
6
+ require "rusty_camel_linux/native"
7
+ rescue LoadError
8
+ warn "Unable to load rusty_camel/native. Please run `rake build`"
9
+ end
Binary file
@@ -0,0 +1,5 @@
1
+ require 'helix_runtime/build_task'
2
+
3
+ HelixRuntime::BuildTask.new("rusty_camel_linux")
4
+
5
+ task :default => :build
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rusty_camel_linux
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Squiidz
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: helix_runtime
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.5.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.5.0
27
+ description:
28
+ email:
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - Cargo.lock
34
+ - Cargo.toml
35
+ - Gemfile
36
+ - Gemfile.lock
37
+ - README.md
38
+ - Rakefile
39
+ - lib/rusty_camel_linux.rb
40
+ - lib/rusty_camel_linux/native.so
41
+ - lib/tasks/helix_runtime.rake
42
+ homepage: https://github.com/squiidz/rusty_camel
43
+ licenses: []
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project:
61
+ rubygems_version: 2.5.2
62
+ signing_key:
63
+ specification_version: 4
64
+ summary: Snake to Camel case
65
+ test_files: []