fast_ignore 0.3.0 → 0.3.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/README.md +6 -7
- data/fast_ignore.gemspec +1 -1
- data/lib/fast_ignore/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8901671b9acd8245e3d52201b5b29dd381725e374405fa683f069d3f1999561
|
|
4
|
+
data.tar.gz: e29905aeebe987d96351df144d53d0cff3f70cfd55c320a89bf15c29f71a3fbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b586d4b3517a783436c78c50bcc7148e3fb1f44a1a2444bb5872c11579bc73227999772e1627395bb0427713394345ab84e9bbc7cc945456d1223215e9f4b9d
|
|
7
|
+
data.tar.gz: 98d677f7d4ef3e590dddce57db5b7850fdbb656f09bf288d5e0e4267af8d9f3f58963f77adfbd0bfb65e5e9ac7f88badbe1094d8249258d51f59a0746aacc063
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
fast_ignore (0.3.
|
|
4
|
+
fast_ignore (0.3.1)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -53,7 +53,7 @@ DEPENDENCIES
|
|
|
53
53
|
pry (~> 0)
|
|
54
54
|
rake (~> 10.0)
|
|
55
55
|
rspec (~> 3.0)
|
|
56
|
-
rubocop (
|
|
56
|
+
rubocop (>= 0.74.0)
|
|
57
57
|
rubocop-rspec (~> 1)
|
|
58
58
|
|
|
59
59
|
BUNDLED WITH
|
data/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.org/robotdana/fast_ignore)
|
|
4
4
|
|
|
5
|
-
Filter a directory tree using a .gitignore file. Recognises all of the gitignore rules.
|
|
5
|
+
Filter a directory tree using a .gitignore file. Recognises all of the [gitignore rules](https://www.git-scm.com/docs/gitignore#_pattern_format) ([except one](#known-issues))
|
|
6
|
+
|
|
6
7
|
```ruby
|
|
7
8
|
FastIgnore.new(relative: true).sort == `git ls-files`.split("\n").sort
|
|
8
9
|
```
|
|
@@ -72,13 +73,11 @@ FastIgnore.new.allowed?('/absolute/path/to/file')
|
|
|
72
73
|
|
|
73
74
|
## Known issues
|
|
74
75
|
- Doesn't take into account project excludes in `.git/info/exclude`
|
|
75
|
-
- Doesn't take into account globally ignored files in `git config core.excludesFile
|
|
76
|
-
```ruby
|
|
77
|
-
`git ls-files`.split("\n")
|
|
78
|
-
```
|
|
76
|
+
- Doesn't take into account globally ignored files in `git config core.excludesFile`.
|
|
79
77
|
- Doesn't follow this rule in the gitignore documentation because I don't understand what it means that isn't covered by other rules:
|
|
80
|
-
|
|
81
|
-
(relative to the toplevel of the work tree if not from a
|
|
78
|
+
|
|
79
|
+
> [If the pattern does not contain a slash /, Git treats it as a shell glob pattern and checks for a match against the pathname relative to the location of the `.gitignore` file (relative to the toplevel of the work tree if not from a `.gitignore` file)](https://www.git-scm.com/docs/gitignore#_pattern_format)
|
|
80
|
+
|
|
82
81
|
if someone can explain it with examples [make an issue please](https://github.com/robotdana/fast_ignore/issues/new)
|
|
83
82
|
|
|
84
83
|
## Development
|
data/fast_ignore.gemspec
CHANGED
|
@@ -31,6 +31,6 @@ Gem::Specification.new do |spec|
|
|
|
31
31
|
spec.add_development_dependency 'pry', '~> 0'
|
|
32
32
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
33
33
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
34
|
-
spec.add_development_dependency
|
|
34
|
+
spec.add_development_dependency "rubocop", ">= 0.74.0"
|
|
35
35
|
spec.add_development_dependency 'rubocop-rspec', '~> 1'
|
|
36
36
|
end
|
data/lib/fast_ignore/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fast_ignore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dana Sherson
|
|
@@ -70,16 +70,16 @@ dependencies:
|
|
|
70
70
|
name: rubocop
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - "
|
|
73
|
+
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
75
|
+
version: 0.74.0
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- - "
|
|
80
|
+
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
82
|
+
version: 0.74.0
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: rubocop-rspec
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|