gitignore_rb 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ced7dcd87b4e70f51c598a77fda9f4443014e884
4
- data.tar.gz: cd04335666b8b030c59618be05268ebf0cb372cf
3
+ metadata.gz: 4102a72cafd1dd84de364eac1f7eb4b2c000561f
4
+ data.tar.gz: e9cc08d8381fb3452c6581adb7aa6daf0d86eff2
5
5
  SHA512:
6
- metadata.gz: 3028d368ecfb36abd3fa82f963714e940073c37d9de35fa20917bc748073c1b5940e352cb9464d879155504d258eb3771d139edc5586d92366567680bbaf0dc5
7
- data.tar.gz: 6283768e29b85d933a5828405e5adfcb9c2316231df7a41f3c4b8363eea40950b048af7b576d372087459400d9a790e02e6f695ffc3a49e1c401c9e34faa02a7
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| cs.as_ptr())
51
+ .map(|cs| {
52
+ let ptr = cs.as_ptr();
53
+ mem::forget(cs);
54
+ ptr
55
+ })
52
56
  .collect()
53
57
  }
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitignore_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Kleyn