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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad01305bfd81fa379a6283ef0f5b9b19074819e8
4
- data.tar.gz: 2be09be1768f9a725eec31c916a3ffe87f18a2df
3
+ metadata.gz: e84b29a10ad0f136e320039268f03370318dbb06
4
+ data.tar.gz: 8be968759eaca4cf895da4c09f068bc81eb0d7f7
5
5
  SHA512:
6
- metadata.gz: 47e1de0c0ebdb7d1f3836a3ba4e0e50233bbdb6e53fa8bf9d2beb552df1c3d8f546fa8891354e52db735fbb5d42d3e6d83bf6b3dd761af069b04eeab4fb6801b
7
- data.tar.gz: bb2f00f0fd6474da2d82e3a71b9999cd5debc0eb9a0cb6cb63df730e5617bc07090496fbae1bcd0a9192277ff29fc7f494b46ac828f911026ead1b1def2cf4e6
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 withing your own .gitignore.
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
@@ -1,3 +1,4 @@
1
+ # The version class of HubIgnore
1
2
  class HubIgnore
2
- VERSION = "1.0.1"
3
+ VERSION = '1.0.2'
3
4
  end
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2015-10-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: