ignore 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +29 -4
- data/bin/{gitignore → ignore} +0 -0
- data/completion/_ignore.zsh +19 -0
- data/ignore.gemspec +1 -2
- data/lib/ignore/command.rb +1 -1
- metadata +6 -6
- data/completion/_ignore +0 -18
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,33 @@
|
|
1
1
|
# Ignore
|
2
2
|
|
3
|
-
### the
|
3
|
+
### Why? Its the easiest way to fetch gitignores
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
-
|
5
|
+
I got irritated making repos then manually fetching gitignores. So I made this.
|
6
|
+
|
7
|
+
- easy updates from [github.com/github/gitignore](https://github.com/github/gitignore)
|
8
|
+
- you can add your own gitignores to your ~/.ignores directory
|
9
|
+
- even comes with zsh autocompletion
|
10
|
+
|
11
|
+
### How to Install?
|
12
|
+
|
13
|
+
```
|
14
|
+
> gem install ignore
|
15
|
+
> ignore update
|
16
|
+
```
|
17
|
+
|
18
|
+
##### Autocompletion
|
19
|
+
|
20
|
+
just copy the zsh autocomplete function to wherever your autocomplete functions go (it depends on your config)
|
21
|
+
|
22
|
+
### Make it Better
|
23
|
+
|
24
|
+
Heres the todo list
|
25
|
+
|
26
|
+
- Autoupdate
|
27
|
+
- better docs
|
28
|
+
- Custom remotes for your own gitignores (i have no need for this)
|
29
|
+
|
30
|
+
If you want to help, fork, push and pull request!
|
31
|
+
|
32
|
+
Make issues for bugs or at [@bazooka_sam](https://twitter.com/bazooka_sam)
|
8
33
|
|
data/bin/{gitignore → ignore}
RENAMED
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#compdef ignore
|
2
|
+
|
3
|
+
local state line lang
|
4
|
+
|
5
|
+
_arguments -C '1: :->lang'
|
6
|
+
|
7
|
+
case $state in
|
8
|
+
lang)
|
9
|
+
local -a cmds
|
10
|
+
cmds=(
|
11
|
+
'update: update your gitignores'
|
12
|
+
'clean: clear local cache'
|
13
|
+
'help: help text'
|
14
|
+
'list: list all the languages'
|
15
|
+
)
|
16
|
+
_describe -t commands 'boom command' cmds
|
17
|
+
_values 'lists' $(mkdir -p ~/.ignores;ls ~/.ignores | tr '[:upper:]' '[:lower:]' | grep '.gitignore' | sed 's/\.gitignore$//')
|
18
|
+
;;
|
19
|
+
esac
|
data/ignore.gemspec
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'ignore'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.executables << 'gitignore'
|
3
|
+
s.version = '0.0.2'
|
5
4
|
s.date = '2013-03-06'
|
6
5
|
s.summary = "Super easy way to manage gitignores from github/gitignore"
|
7
6
|
s.description = "Super easy manage gitignores from Github.com/github or add your own custom one"
|
data/lib/ignore/command.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ignore
|
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:
|
@@ -63,7 +63,7 @@ description: Super easy manage gitignores from Github.com/github or add your own
|
|
63
63
|
one
|
64
64
|
email: samirahmed2013@gmail.com
|
65
65
|
executables:
|
66
|
-
-
|
66
|
+
- ignore
|
67
67
|
extensions: []
|
68
68
|
extra_rdoc_files: []
|
69
69
|
files:
|
@@ -73,8 +73,8 @@ files:
|
|
73
73
|
- LICENSE.md
|
74
74
|
- README.md
|
75
75
|
- Rakefile
|
76
|
-
- bin/
|
77
|
-
- completion/_ignore
|
76
|
+
- bin/ignore
|
77
|
+
- completion/_ignore.zsh
|
78
78
|
- ignore.gemspec
|
79
79
|
- lib/ignore.rb
|
80
80
|
- lib/ignore/command.rb
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
segments:
|
99
99
|
- 0
|
100
|
-
hash:
|
100
|
+
hash: 1457953999035557726
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
none: false
|
103
103
|
requirements:
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
segments:
|
108
108
|
- 0
|
109
|
-
hash:
|
109
|
+
hash: 1457953999035557726
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
112
|
rubygems_version: 1.8.24
|
data/completion/_ignore
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#compdef ignore
|
2
|
-
|
3
|
-
local state line lang
|
4
|
-
|
5
|
-
_arguments -C '1: :->lang'
|
6
|
-
|
7
|
-
case $state in
|
8
|
-
lang)
|
9
|
-
#local -a cmds
|
10
|
-
#cmds=(
|
11
|
-
#'update: update your gitignores'
|
12
|
-
#'clean: clear local cache'
|
13
|
-
#'help:help text'
|
14
|
-
#)
|
15
|
-
#_describe -t commands 'boom command' cmds
|
16
|
-
_values 'lists' $(ls ~/.ignores | tr '[:upper:]' '[:lower:]' | grep '.gitignore' | sed 's/\.gitignore$//')
|
17
|
-
;;
|
18
|
-
esac
|