hubignore 1.0.0 → 1.0.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/README.md +16 -3
- data/lib/hubignore/version.rb +1 -1
- data/lib/hubignore.rb +3 -1
- metadata +2 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad01305bfd81fa379a6283ef0f5b9b19074819e8
|
|
4
|
+
data.tar.gz: 2be09be1768f9a725eec31c916a3ffe87f18a2df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47e1de0c0ebdb7d1f3836a3ba4e0e50233bbdb6e53fa8bf9d2beb552df1c3d8f546fa8891354e52db735fbb5d42d3e6d83bf6b3dd761af069b04eeab4fb6801b
|
|
7
|
+
data.tar.gz: bb2f00f0fd6474da2d82e3a71b9999cd5debc0eb9a0cb6cb63df730e5617bc07090496fbae1bcd0a9192277ff29fc7f494b46ac828f911026ead1b1def2cf4e6
|
data/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
hubignore
|
|
1
|
+
hubignore
|
|
2
2
|
=================================================================
|
|
3
|
+
Download and manage git ignores from github/gitignore.
|
|
3
4
|
|
|
4
|
-
SYNOPSIS
|
|
5
|
-
--------
|
|
6
5
|
GitHub has a great collection of .gitignores in github/gitignore.
|
|
7
6
|
This tool is to help using these gitignores withing your own .gitignore.
|
|
8
7
|
|
|
@@ -12,4 +11,18 @@ INSTALL
|
|
|
12
11
|
|
|
13
12
|
USE
|
|
14
13
|
---
|
|
14
|
+
Put this to your .gitignore:
|
|
15
|
+
```
|
|
16
|
+
## HubIgnore Begin: Ruby
|
|
17
|
+
## HubIgnore End.
|
|
18
|
+
```
|
|
15
19
|
$ hubignore
|
|
20
|
+
Then .gitignore will be:
|
|
21
|
+
```
|
|
22
|
+
## HubIgnore Begin: Ruby, C++
|
|
23
|
+
## Ruby Begins:
|
|
24
|
+
#{The content of https://raw.githubusercontent.com/github/gitignore/master/Ruby.gitignore Here}
|
|
25
|
+
## C++ Begins:
|
|
26
|
+
#{The content of https://raw.githubusercontent.com/github/gitignore/master/C++.gitignore Here}
|
|
27
|
+
## HubIgnore End.
|
|
28
|
+
```
|
data/lib/hubignore/version.rb
CHANGED
data/lib/hubignore.rb
CHANGED
|
@@ -50,15 +50,17 @@ EOS
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
def list
|
|
53
|
+
puts 'These are the ignores in you .gitignore file:'
|
|
53
54
|
puts items.flatten
|
|
54
55
|
end
|
|
55
56
|
|
|
56
57
|
def update
|
|
57
58
|
items.each do |item|
|
|
58
|
-
content = "\#\# HubIgnore Begin: #{item.join('
|
|
59
|
+
content = "\#\# HubIgnore Begin: #{item.join(', ')}\n"
|
|
59
60
|
item.each do |file|
|
|
60
61
|
next if file.empty?
|
|
61
62
|
puts "Downloading #{file}"
|
|
63
|
+
content += "\#\# #{file} Begins:\n"
|
|
62
64
|
content += Net::HTTP.get(
|
|
63
65
|
URI.parse(
|
|
64
66
|
'https://raw.githubusercontent.com/github/'\
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jiege Chen
|
|
@@ -9,21 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2015-10-17 00:00:00.000000000 Z
|
|
12
|
-
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: colored
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
12
|
+
dependencies: []
|
|
27
13
|
description:
|
|
28
14
|
email:
|
|
29
15
|
- jiegec@qq.com
|