hubignore 1.0.1 → 1.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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/hubignore/version.rb +2 -1
- data/lib/hubignore.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e84b29a10ad0f136e320039268f03370318dbb06
|
|
4
|
+
data.tar.gz: 8be968759eaca4cf895da4c09f068bc81eb0d7f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4dda48321b25a6b683cd502d237d20e0badebf2402247d8b85518723b79a1e3779d1dcfd26dfd2004afed5d118d02ea9d7abced017a69b4f520005e52df76c05
|
|
7
|
+
data.tar.gz: 93bffd190bd5ea911e717dc473e51a1c00166f1871a26c081be9815ae593b0cb45ad1f3f2151fe08c062d92c70a09cb259de2fc325d910173285fce44539a55e
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@ hubignore
|
|
|
3
3
|
Download and manage git ignores from github/gitignore.
|
|
4
4
|
|
|
5
5
|
GitHub has a great collection of .gitignores in github/gitignore.
|
|
6
|
-
This tool is to help using these gitignores
|
|
6
|
+
This tool is to help using these gitignores within your own .gitignore.
|
|
7
7
|
|
|
8
8
|
INSTALL
|
|
9
9
|
-------
|
|
@@ -13,7 +13,7 @@ USE
|
|
|
13
13
|
---
|
|
14
14
|
Put this to your .gitignore:
|
|
15
15
|
```
|
|
16
|
-
## HubIgnore Begin: Ruby
|
|
16
|
+
## HubIgnore Begin: Ruby, C++
|
|
17
17
|
## HubIgnore End.
|
|
18
18
|
```
|
|
19
19
|
$ hubignore
|
data/lib/hubignore/version.rb
CHANGED
data/lib/hubignore.rb
CHANGED
|
@@ -3,6 +3,7 @@ require 'hubignore/version'
|
|
|
3
3
|
require 'net/http'
|
|
4
4
|
require 'uri'
|
|
5
5
|
|
|
6
|
+
# The main class of HubIgnore
|
|
6
7
|
class HubIgnore
|
|
7
8
|
def run(argv)
|
|
8
9
|
unless File.exist?('.gitignore')
|
|
@@ -67,6 +68,9 @@ EOS
|
|
|
67
68
|
"gitignore/master/#{file}.gitignore"))
|
|
68
69
|
content += "\n"
|
|
69
70
|
end
|
|
71
|
+
item.map! do |name|
|
|
72
|
+
Regexp.escape(name)
|
|
73
|
+
end
|
|
70
74
|
content += '## HubIgnore End.'
|
|
71
75
|
file = IO.read('.gitignore')
|
|
72
76
|
file = file.gsub(
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hubignore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jiege Chen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|