forgitter 0.0.2 → 0.0.3
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 +10 -2
- data/bin/forgitter +5 -3
- data/lib/forgitter/options.rb +1 -3
- data/lib/forgitter/runner.rb +2 -3
- data/lib/forgitter/types.rb +43 -2
- data/lib/forgitter/version.rb +1 -1
- data/lib/forgitter.rb +0 -1
- metadata +1 -2
- data/lib/forgitter/editors.rb +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db358774f0d9020b500c6b5b540a080b7cfaace9
|
4
|
+
data.tar.gz: 7dd3055c00d4a2c2546a3fcb7bebf07f011e7ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfe909a83a9591950cf2b8248afeab2afa6709f6ee18e4d00e14d1319a558f161396fa866270822283ea488bc35f7cd67ee414ea4680a422623ddbd70c4af001
|
7
|
+
data.tar.gz: 0479a83326d481e04b75d0f31034eec717d231727bfb0ca10edecdaf7c5f4016834f4ef192e48e4be830a9600cfd3d431132d7d2905b8adb328aa766eed41e50
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Forgitter
|
2
2
|
|
3
|
-
.gitignore generator
|
3
|
+
Forgitter is a .gitignore generator. It uses the *.gitignore files found at
|
4
|
+
https://github.com/github/gitignore to generate a combined .gitignore file
|
5
|
+
locally.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -18,7 +20,13 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
To generate a .gitignore in the current directory, run:
|
24
|
+
|
25
|
+
forgitter TYPE1 [TYPE2 ...]
|
26
|
+
|
27
|
+
Where TYPE1, TYPE2, etc. are the keys found in the
|
28
|
+
[types](https://github.com/cloudspace/forgitter/blob/master/lib/forgitter/types.rb)
|
29
|
+
hash.
|
22
30
|
|
23
31
|
See `forgitter -h` for more options.
|
24
32
|
|
data/bin/forgitter
CHANGED
@@ -6,9 +6,11 @@ require 'forgitter/cli'
|
|
6
6
|
option_parser = Forgitter::CLI::OptionParser.new
|
7
7
|
options = option_parser.parse(ARGV)
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
options[:types] = []
|
10
|
+
options[:types] << ARGV.pop until ARGV.empty?
|
11
|
+
if options[:types].empty?
|
12
|
+
puts option_parser.help
|
13
|
+
exit(1)
|
12
14
|
end
|
13
15
|
|
14
16
|
runner = Forgitter::Runner.new(options)
|
data/lib/forgitter/options.rb
CHANGED
data/lib/forgitter/runner.rb
CHANGED
@@ -5,7 +5,6 @@ module Forgitter
|
|
5
5
|
class Runner
|
6
6
|
def initialize(options = Forgitter::DEFAULT_OPTIONS)
|
7
7
|
@types = convert_to_filenames(options[:types])
|
8
|
-
@editors = convert_to_filenames(options[:editors])
|
9
8
|
@stdout = options[:stdout]
|
10
9
|
|
11
10
|
@client = Octokit
|
@@ -14,7 +13,7 @@ module Forgitter
|
|
14
13
|
|
15
14
|
def run
|
16
15
|
output = ""
|
17
|
-
|
16
|
+
@types.each do |type|
|
18
17
|
ignore_file = get_ignore_file(type)
|
19
18
|
if ignore_file
|
20
19
|
output += "# Information from #{type}\n"
|
@@ -52,7 +51,7 @@ module Forgitter
|
|
52
51
|
end
|
53
52
|
|
54
53
|
def conversion_table
|
55
|
-
|
54
|
+
Forgitter::TYPES
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
data/lib/forgitter/types.rb
CHANGED
@@ -1,6 +1,47 @@
|
|
1
1
|
module Forgitter
|
2
|
-
DEFAULT_TYPES = ['rails']
|
3
2
|
TYPES = {
|
3
|
+
'archives' => 'Global/Archives.gitignore',
|
4
|
+
'bricxcc' => 'Global/BricxCC.gitignore',
|
5
|
+
'cvs' => 'Global/CVS.gitignore',
|
6
|
+
'cloud' => 'Global/Cloud9.gitignore',
|
7
|
+
'darteditor' => 'Global/DartEditor.gitignore',
|
8
|
+
'dreamweaver' => 'Global/Dreamweaver.gitignore',
|
9
|
+
'eclipse' => 'Global/Eclipse.gitignore',
|
10
|
+
'eiffelstudio' => 'Global/EiffelStudio.gitignore',
|
11
|
+
'emacs' => 'Global/Emacs.gitignore',
|
12
|
+
'ensime' => 'Global/Ensime.gitignore',
|
13
|
+
'espresso' => 'Global/Espresso.gitignore',
|
14
|
+
'flexbuilder' => 'Global/FlexBuilder.gitignore',
|
15
|
+
'ipythonnotebook' => 'Global/IPythonNotebook.gitignore',
|
16
|
+
'jetbrains' => 'Global/JetBrains.gitignore',
|
17
|
+
'kdevelop' => 'Global/KDevelop4.gitignore',
|
18
|
+
'kate' => 'Global/Kate.gitignore',
|
19
|
+
'lazarus' => 'Global/Lazarus.gitignore',
|
20
|
+
'linux' => 'Global/Linux.gitignore',
|
21
|
+
'matlab' => 'Global/Matlab.gitignore',
|
22
|
+
'mercurial' => 'Global/Mercurial.gitignore',
|
23
|
+
'modelsim' => 'Global/ModelSim.gitignore',
|
24
|
+
'monodevelop' => 'Global/MonoDevelop.gitignore',
|
25
|
+
'netbeans' => 'Global/NetBeans.gitignore',
|
26
|
+
'notepad' => 'Global/NotepadPP.gitignore',
|
27
|
+
'notepadpp' => 'Global/NotepadPP.gitignore',
|
28
|
+
'osx' => 'Global/OSX.gitignore',
|
29
|
+
'quartus' => 'Global/Quartus2.gitignore',
|
30
|
+
'redcar' => 'Global/Redcar.gitignore',
|
31
|
+
'sbt' => 'Global/SBT.gitignore',
|
32
|
+
'svn' => 'Global/SVN.gitignore',
|
33
|
+
'slickedit' => 'Global/SlickEdit.gitignore',
|
34
|
+
'sublimetext' => 'Global/SublimeText.gitignore',
|
35
|
+
'tags' => 'Global/Tags.gitignore',
|
36
|
+
'textmate' => 'Global/TextMate.gitignore',
|
37
|
+
'vagrant' => 'Global/Vagrant.gitignore',
|
38
|
+
'virtualenv' => 'Global/VirtualEnv.gitignore',
|
39
|
+
'windows' => 'Global/Windows.gitignore',
|
40
|
+
'xcode' => 'Global/Xcode.gitignore',
|
41
|
+
'xilinxise' => 'Global/XilinxISE.gitignore',
|
42
|
+
'vim' => 'Global/vim.gitignore',
|
43
|
+
'webmethods' => 'Global/webMethods.gitignore',
|
44
|
+
|
4
45
|
'actionscript' => 'Actionscript.gitignore',
|
5
46
|
'ada' => 'Ada.gitignore',
|
6
47
|
'agda' => 'Agda.gitignore',
|
@@ -105,6 +146,6 @@ module Forgitter
|
|
105
146
|
'zendframework' => 'ZendFramework.gitignore',
|
106
147
|
'gcov' => 'gcov.gitignore',
|
107
148
|
'nanoc' => 'nanoc.gitignore',
|
108
|
-
'stella' => 'stella.gitignore'
|
149
|
+
'stella' => 'stella.gitignore'
|
109
150
|
}
|
110
151
|
end
|
data/lib/forgitter/version.rb
CHANGED
data/lib/forgitter.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forgitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Dunson
|
@@ -72,7 +72,6 @@ files:
|
|
72
72
|
- lib/forgitter.rb
|
73
73
|
- lib/forgitter/cli.rb
|
74
74
|
- lib/forgitter/cli/option_parser.rb
|
75
|
-
- lib/forgitter/editors.rb
|
76
75
|
- lib/forgitter/options.rb
|
77
76
|
- lib/forgitter/runner.rb
|
78
77
|
- lib/forgitter/types.rb
|
data/lib/forgitter/editors.rb
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
module Forgitter
|
2
|
-
DEFAULT_EDITORS = ['eclipse', 'emacs', 'osx', 'linux', 'xcode', 'vim', 'textmate', 'sublimetext']
|
3
|
-
EDITORS = {
|
4
|
-
'archives' => 'Global/Archives.gitignore',
|
5
|
-
'bricxcc' => 'Global/BricxCC.gitignore',
|
6
|
-
'cvs' => 'Global/CVS.gitignore',
|
7
|
-
'cloud' => 'Global/Cloud9.gitignore',
|
8
|
-
'darteditor' => 'Global/DartEditor.gitignore',
|
9
|
-
'dreamweaver' => 'Global/Dreamweaver.gitignore',
|
10
|
-
'eclipse' => 'Global/Eclipse.gitignore',
|
11
|
-
'eiffelstudio' => 'Global/EiffelStudio.gitignore',
|
12
|
-
'emacs' => 'Global/Emacs.gitignore',
|
13
|
-
'ensime' => 'Global/Ensime.gitignore',
|
14
|
-
'espresso' => 'Global/Espresso.gitignore',
|
15
|
-
'flexbuilder' => 'Global/FlexBuilder.gitignore',
|
16
|
-
'ipythonnotebook' => 'Global/IPythonNotebook.gitignore',
|
17
|
-
'jetbrains' => 'Global/JetBrains.gitignore',
|
18
|
-
'kdevelop' => 'Global/KDevelop4.gitignore',
|
19
|
-
'kate' => 'Global/Kate.gitignore',
|
20
|
-
'lazarus' => 'Global/Lazarus.gitignore',
|
21
|
-
'linux' => 'Global/Linux.gitignore',
|
22
|
-
'matlab' => 'Global/Matlab.gitignore',
|
23
|
-
'mercurial' => 'Global/Mercurial.gitignore',
|
24
|
-
'modelsim' => 'Global/ModelSim.gitignore',
|
25
|
-
'monodevelop' => 'Global/MonoDevelop.gitignore',
|
26
|
-
'netbeans' => 'Global/NetBeans.gitignore',
|
27
|
-
'notepad' => 'Global/NotepadPP.gitignore',
|
28
|
-
'notepadpp' => 'Global/NotepadPP.gitignore',
|
29
|
-
'osx' => 'Global/OSX.gitignore',
|
30
|
-
'quartus' => 'Global/Quartus2.gitignore',
|
31
|
-
'redcar' => 'Global/Redcar.gitignore',
|
32
|
-
'sbt' => 'Global/SBT.gitignore',
|
33
|
-
'svn' => 'Global/SVN.gitignore',
|
34
|
-
'slickedit' => 'Global/SlickEdit.gitignore',
|
35
|
-
'sublimetext' => 'Global/SublimeText.gitignore',
|
36
|
-
'tags' => 'Global/Tags.gitignore',
|
37
|
-
'textmate' => 'Global/TextMate.gitignore',
|
38
|
-
'vagrant' => 'Global/Vagrant.gitignore',
|
39
|
-
'virtualenv' => 'Global/VirtualEnv.gitignore',
|
40
|
-
'windows' => 'Global/Windows.gitignore',
|
41
|
-
'xcode' => 'Global/Xcode.gitignore',
|
42
|
-
'xilinxise' => 'Global/XilinxISE.gitignore',
|
43
|
-
'vim' => 'Global/vim.gitignore',
|
44
|
-
'webmethods' => 'Global/webMethods.gitignore'
|
45
|
-
}
|
46
|
-
end
|