faster_path 0.0.2 → 0.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: ab56b250d7522c94ed78c2754087e351691b4be2
4
- data.tar.gz: ac3c62e7d2d87ccc264fc2e6cf5eced81c511a8b
3
+ metadata.gz: 18f4ed53458f5dc7d5c2b0d0433edf7444594bdb
4
+ data.tar.gz: 1add8d70b9d3e4c147f405b831ff224ce0520c98
5
5
  SHA512:
6
- metadata.gz: e5171e63daf6173d3a57c37b446c015bd04b5abe5cac5b769ef9403734711c9a787b5070291c4bed6d6ef0ada61bb3f2be0b77a7f62a996ced1ed1ede6213114
7
- data.tar.gz: 0d0f4ce1529dae792d785d7588ef3eb7b4dc4b9d4819ea230a3bb33dc9da889b88e2204fc99a2343822872ce90325950ce3edb94f04422cdeec61ba79f7fde68
6
+ metadata.gz: bb708638714c8023d0ce1273607fdc7ba86f9a9b95652a05611a56c21165b8b9c2b90fdc8634a116e290287a5969a42a3ca85f93223a180844961d3b6f429cfb
7
+ data.tar.gz: 67dc584c6122448af7bfad7ae9a1c9329b6c79f6ff08c9e7a95f1bfe486ac80fc16542528a502555d6a62fb085c8bf4c1f358d59f65c9f63b9ab162d2fbd971d
@@ -1,3 +1,3 @@
1
1
  module FasterPath
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/src/lib.rs CHANGED
@@ -20,9 +20,9 @@ pub extern fn is_absolute(string: *const c_char) -> bool {
20
20
  CStr::from_ptr(string)
21
21
  };
22
22
 
23
- let r_str = str::from_utf8(c_str.to_bytes()).unwrap();
23
+ let r_str = str::from_utf8(c_str.to_bytes()).unwrap_or("");
24
24
 
25
- r_str.chars().next().unwrap() == MAIN_SEPARATOR
25
+ r_str.chars().next().unwrap_or("muffins".chars().next().unwrap()) == MAIN_SEPARATOR
26
26
  }
27
27
 
28
28
  #[no_mangle]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faster_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark