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 CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/joelhelbling/ignorance.png)](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 .gitignore file, when
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 (with out including the module).
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 in the ignore file:
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
- - *Support for globs & regexes*: If you `gaurd_ignorance 'myfile.private'` and
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 raise an error anyway.
150
- - *Support for other version control systems.* Visual SourceSafe can't use
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
@@ -1 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec) do |t|
5
+ t.pattern = 'spec/lib/**/*_spec.rb'
6
+ t.rspec_opts = " --format doc"
7
+ end
8
+
9
+ task default: :spec
@@ -21,5 +21,6 @@ Gem::Specification.new do |gem|
21
21
 
22
22
  gem.add_development_dependency 'rspec', '~> 2.12.0'
23
23
  gem.add_development_dependency 'fakefs', '~> 0.4.2'
24
+ gem.add_development_dependency 'rake', '10.0.3'
24
25
  gem.add_development_dependency 'pry', '~> 0.9.11.4'
25
26
  end
@@ -2,12 +2,9 @@ module Ignorance
2
2
  module ProjectOrientedVCS
3
3
 
4
4
  def its_a_repo?
5
- path = Dir.getwd.scan(/\/[^\/]+/).map{|p| p[1..-1]}
6
- repo_found = false
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
@@ -1,3 +1,3 @@
1
1
  module Ignorance
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-02-11 00:00:00.000000000 Z
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.24
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