gitignore_rb 0.2.3 → 0.2.4

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: 0181b34a4a4a28853289095dd1bf16a8a12cdca5
4
- data.tar.gz: 5dba37aef335de22fdbed18e1c92129a04de25ee
3
+ metadata.gz: ce45482e46c55d605a2e557e9a9919a1c5caffe8
4
+ data.tar.gz: 6cffd0701bc7f9a2ac433d010a02027e24bac352
5
5
  SHA512:
6
- metadata.gz: 81b3806e0caba2b17a01384959a3af91e2f4c0df641ca6b0096c04061cd0b21667bea215ec5a51a591eea4a4920c671b66d21d3851a55b85ce8b84fcab8da612
7
- data.tar.gz: 0970bb6a94918a9ea9310854dc9c98d1e44459361dfd74944bdb88d95359e98a28b359ea270b50da6522a2042ba185bc78bde08c9d056afcd837f2edc2d17bdd
6
+ metadata.gz: db33bfa5d6529ac2ffe6a034a3dbedb7ee0b03667aeb8a125faa8d316b8ef0323c247921b4fae602da748f37fe8e43f7823460cd69dfb2a05932673c20079c8e
7
+ data.tar.gz: 409416f46a093bafda99be197ecf141363603ab844f7a07aba03ee465953310dbddc20ab663e118a7c57cde517be1845a00f8340ec40d0668fe7e78eb189855d
@@ -0,0 +1,64 @@
1
+ [root]
2
+ name = "gitignore_binding"
3
+ version = "0.1.0"
4
+ dependencies = [
5
+ "gitignore 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
6
+ "libc 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
7
+ ]
8
+
9
+ [[package]]
10
+ name = "advapi32-sys"
11
+ version = "0.1.2"
12
+ source = "registry+https://github.com/rust-lang/crates.io-index"
13
+ dependencies = [
14
+ "winapi 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
15
+ "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
16
+ ]
17
+
18
+ [[package]]
19
+ name = "gitignore"
20
+ version = "1.0.2"
21
+ source = "registry+https://github.com/rust-lang/crates.io-index"
22
+ dependencies = [
23
+ "glob 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
24
+ "tempdir 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
25
+ ]
26
+
27
+ [[package]]
28
+ name = "glob"
29
+ version = "0.2.10"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+
32
+ [[package]]
33
+ name = "libc"
34
+ version = "0.1.10"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+
37
+ [[package]]
38
+ name = "rand"
39
+ version = "0.3.11"
40
+ source = "registry+https://github.com/rust-lang/crates.io-index"
41
+ dependencies = [
42
+ "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
43
+ "libc 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
44
+ "winapi 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
45
+ ]
46
+
47
+ [[package]]
48
+ name = "tempdir"
49
+ version = "0.3.4"
50
+ source = "registry+https://github.com/rust-lang/crates.io-index"
51
+ dependencies = [
52
+ "rand 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)",
53
+ ]
54
+
55
+ [[package]]
56
+ name = "winapi"
57
+ version = "0.2.4"
58
+ source = "registry+https://github.com/rust-lang/crates.io-index"
59
+
60
+ [[package]]
61
+ name = "winapi-build"
62
+ version = "0.1.1"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+
@@ -1,3 +1,5 @@
1
+ require 'fileutils'
2
+
1
3
  LIB_PATH = 'target/release/libgitignore_binding.dylib'
2
4
 
3
5
  desc 'Ensure rustc is present and is callable on the current PATH.'
@@ -16,8 +18,13 @@ task :check_cargo do
16
18
  end
17
19
  end
18
20
 
21
+ desc 'Ensure any previous builds are cleaned up properly.'
22
+ task :clean do
23
+ FileUtils.rm_rf(File.join(__dir__, 'target'))
24
+ end
25
+
19
26
  desc 'Execute cargo build to construct the dynamic library.'
20
- task :build do
27
+ task :build => :clean do
21
28
  unless system 'cargo build --release'
22
29
  fail 'Could not execute cargo build successfully, please check the logs and try again.'
23
30
  end
@@ -5,7 +5,7 @@ require 'ffi'
5
5
  module GitIgnoreRust
6
6
  extend FFI::Library
7
7
 
8
- ffi_lib File.expand_path(File.join(__dir__, '../../ext/gitignore_binding/target/release/libgitignore_binding.dylib'))
8
+ ffi_lib File.expand_path(File.join(__dir__, '../../ext/gitignore_binding/target/release', FFI.map_library_name('libgitignore_binding')))
9
9
 
10
10
  # Struct used to describe a Ruby Array of Strings being passed from Rust.
11
11
  class StringArray < FFI::Struct
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Kleyn
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.9.10
19
+ version: '1.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.9.10
26
+ version: '1.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.8.2
33
+ version: '0.8'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.8.2
40
+ version: '0.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: filewatcher
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.5.2
47
+ version: '0.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.5.2
54
+ version: '0.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry-byebug
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,30 +86,29 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.34.1
89
+ version: '0.34'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.34.1
96
+ version: '0.34'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.3.1
103
+ version: '1.3'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.3.1
111
- description: A Ruby binding around gitignore.rs, a Rust implementation of .gitignore
112
- file parsing and glob testing.
110
+ version: '1.3'
111
+ description: See https://github.com/nathankleyn/gitignore.rb for more information!
113
112
  email: nathan@nathankleyn.com
114
113
  executables: []
115
114
  extensions:
@@ -117,6 +116,7 @@ extensions:
117
116
  extra_rdoc_files: []
118
117
  files:
119
118
  - README.md
119
+ - ext/gitignore_binding/Cargo.lock
120
120
  - ext/gitignore_binding/Cargo.toml
121
121
  - ext/gitignore_binding/Rakefile
122
122
  - ext/gitignore_binding/src/lib.rs