gitignore_rb 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4102a72cafd1dd84de364eac1f7eb4b2c000561f
|
4
|
+
data.tar.gz: e9cc08d8381fb3452c6581adb7aa6daf0d86eff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 457474fe6322a15d55803df006f76e5a7480bbeff07616196cbf7d0dff17fff2033a8b219731de0b6e7b7bb3dddecf51c9c3f3796bdf3e17f7abf52e445d608b
|
7
|
+
data.tar.gz: 6ef6f6d60a6200f9b1d55062a179ba2dcba44d5dce4eb5c67b244ae65d347361ae194ff074e3cb1186cd32921d5a7017f19a21747f904c5d0840cd2b26477dbb
|
@@ -48,6 +48,10 @@ fn ptr_to_string(ptr: *const libc::c_char) -> Result<String, FromUtf8Error> {
|
|
48
48
|
fn paths_to_ptrs(paths: Vec<PathBuf>) -> Vec<*const libc::c_char> {
|
49
49
|
paths.iter().flat_map(|p| p.to_str())
|
50
50
|
.flat_map(|s| CString::new(s))
|
51
|
-
.map(|cs|
|
51
|
+
.map(|cs| {
|
52
|
+
let ptr = cs.as_ptr();
|
53
|
+
mem::forget(cs);
|
54
|
+
ptr
|
55
|
+
})
|
52
56
|
.collect()
|
53
57
|
}
|
Binary file
|
data/lib/gitignore_rb.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'gitignore_rb/rust'
|
2
|
-
require 'gitignore_rb/string_array'
|
3
2
|
|
4
3
|
# Represents a `.gitignore` file and the operations one can perform on or with
|
5
4
|
# them.
|
@@ -16,5 +15,3 @@ class GitIgnoreRb
|
|
16
15
|
GitIgnoreRust.included_files(@path).to_a
|
17
16
|
end
|
18
17
|
end
|
19
|
-
|
20
|
-
GitIgnoreRb.new('/Users/nathan/repos/ihq/platform').included_files
|