ignorance 0.0.1 → 0.0.2
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.
- data/README.md +12 -6
- data/Rakefile +8 -0
- data/ignorance.gemspec +1 -0
- data/lib/ignorance/project_oriented_vcs.rb +2 -5
- data/lib/ignorance/version.rb +1 -1
- metadata +25 -3
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[](https://travis-ci.org/joelhelbling/ignorance)
|
2
|
+
|
1
3
|
# Ignorance
|
2
4
|
|
3
5
|
Ensures specified files are ignored by Git, Mercurial or SVN.
|
@@ -36,7 +38,7 @@ include Ignorance
|
|
36
38
|
advise_ignorance '.myfile'
|
37
39
|
```
|
38
40
|
|
39
|
-
Assuming those files are not in the project's
|
41
|
+
Assuming those files are not already in the project's ignore file, when
|
40
42
|
the code is run, your program will output the following to STDERR
|
41
43
|
(but not halt):
|
42
44
|
|
@@ -64,7 +66,7 @@ tokens to the project's ignore file:
|
|
64
66
|
guarantee_ignorance! 'mydir/'
|
65
67
|
```
|
66
68
|
|
67
|
-
You can also use Ignorance directly (
|
69
|
+
You can also use Ignorance directly (without including the module).
|
68
70
|
Shorter method names are provided for that purpose:
|
69
71
|
|
70
72
|
```ruby
|
@@ -123,7 +125,7 @@ secret_info.txt
|
|
123
125
|
|
124
126
|
```
|
125
127
|
|
126
|
-
The above example would result in this
|
128
|
+
The above example would result in this:
|
127
129
|
|
128
130
|
```
|
129
131
|
# added by HandyBankUtil
|
@@ -132,6 +134,10 @@ api_token.yml
|
|
132
134
|
|
133
135
|
```
|
134
136
|
|
137
|
+
## Supported Operating Systems
|
138
|
+
|
139
|
+
Ignorance has been found to work on OSX, Ubuntu and Windows 7.
|
140
|
+
|
135
141
|
## Contributing
|
136
142
|
|
137
143
|
1. Fork it
|
@@ -144,8 +150,8 @@ api_token.yml
|
|
144
150
|
|
145
151
|
Here's some stuff I ain't figured out yet:
|
146
152
|
|
147
|
-
-
|
153
|
+
- **Support for globs & regexes:** If you `advise_ignorance 'myfile.private'` and
|
148
154
|
the ignore file contains a glob or regex which would cause that to be ignored,
|
149
|
-
Ignorance will
|
150
|
-
-
|
155
|
+
Ignorance will warn anyway.
|
156
|
+
- **Support for other version control systems.** Visual SourceSafe can't use
|
151
157
|
Ignorance. Does that seem right to you?
|
data/Rakefile
CHANGED
data/ignorance.gemspec
CHANGED
@@ -2,12 +2,9 @@ module Ignorance
|
|
2
2
|
module ProjectOrientedVCS
|
3
3
|
|
4
4
|
def its_a_repo?
|
5
|
-
|
6
|
-
|
7
|
-
until (repo_found = Dir.exists?(File.join("/", path, @repo_dir))) || path.empty?
|
8
|
-
path.pop
|
5
|
+
Pathname.new(Dir.getwd).ascend do |path|
|
6
|
+
break true if Dir.exists?(File.join(path, @repo_dir))
|
9
7
|
end
|
10
|
-
repo_found
|
11
8
|
end
|
12
9
|
|
13
10
|
end
|
data/lib/ignorance/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ignorance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|
@@ -59,6 +59,22 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.4.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - '='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 10.0.3
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - '='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 10.0.3
|
62
78
|
- !ruby/object:Gem::Dependency
|
63
79
|
name: pry
|
64
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,15 +134,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
134
|
- - ! '>='
|
119
135
|
- !ruby/object:Gem::Version
|
120
136
|
version: '0'
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
hash: -21553841
|
121
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
141
|
none: false
|
123
142
|
requirements:
|
124
143
|
- - ! '>='
|
125
144
|
- !ruby/object:Gem::Version
|
126
145
|
version: '0'
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
hash: -21553841
|
127
149
|
requirements: []
|
128
150
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.25
|
130
152
|
signing_key:
|
131
153
|
specification_version: 3
|
132
154
|
summary: Ignorance helps your code be considerate of its users by protecting sensitive
|