forgitter 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +3 -0
- data/README.md +13 -6
- data/data/Actionscript.gitignore +11 -0
- data/data/Ada.gitignore +5 -0
- data/data/Agda.gitignore +1 -0
- data/data/Android.gitignore +26 -0
- data/data/AppceleratorTitanium.gitignore +3 -0
- data/data/ArchLinuxPackages.gitignore +9 -0
- data/data/Autotools.gitignore +14 -0
- data/data/Bancha.gitignore +16 -0
- data/data/C++.gitignore +21 -0
- data/data/C.gitignore +23 -0
- data/data/CFWheels.gitignore +12 -0
- data/data/CMake.gitignore +5 -0
- data/data/CONTRIBUTING.md +34 -0
- data/data/CakePHP.gitignore +7 -0
- data/data/ChefCookbook.gitignore +9 -0
- data/data/Clojure.gitignore +11 -0
- data/data/CodeIgniter.gitignore +6 -0
- data/data/CommonLisp.gitignore +3 -0
- data/data/Composer.gitignore +6 -0
- data/data/Concrete5.gitignore +3 -0
- data/data/Coq.gitignore +3 -0
- data/data/DM.gitignore +5 -0
- data/data/Dart.gitignore +13 -0
- data/data/Delphi.gitignore +53 -0
- data/data/Drupal.gitignore +36 -0
- data/data/EPiServer.gitignore +4 -0
- data/data/Eagle.gitignore +36 -0
- data/data/Elisp.gitignore +2 -0
- data/data/Elixir.gitignore +4 -0
- data/data/Erlang.gitignore +6 -0
- data/data/ExpressionEngine.gitignore +19 -0
- data/data/Fancy.gitignore +2 -0
- data/data/Finale.gitignore +13 -0
- data/data/ForceDotCom.gitignore +4 -0
- data/data/FuelPHP.gitignore +2 -0
- data/data/GWT.gitignore +28 -0
- data/data/Global/Archives.gitignore +27 -0
- data/data/Global/BricxCC.gitignore +4 -0
- data/data/Global/CVS.gitignore +4 -0
- data/data/Global/Cloud9.gitignore +3 -0
- data/data/Global/DartEditor.gitignore +2 -0
- data/data/Global/Dreamweaver.gitignore +3 -0
- data/data/Global/Eclipse.gitignore +30 -0
- data/data/Global/EiffelStudio.gitignore +2 -0
- data/data/Global/Emacs.gitignore +29 -0
- data/data/Global/Ensime.gitignore +3 -0
- data/data/Global/Espresso.gitignore +1 -0
- data/data/Global/FlexBuilder.gitignore +3 -0
- data/data/Global/IPythonNotebook.gitignore +2 -0
- data/data/Global/JetBrains.gitignore +29 -0
- data/data/Global/KDevelop4.gitignore +2 -0
- data/data/Global/Kate.gitignore +3 -0
- data/data/Global/Lazarus.gitignore +12 -0
- data/data/Global/Linux.gitignore +4 -0
- data/data/Global/Matlab.gitignore +16 -0
- data/data/Global/Mercurial.gitignore +3 -0
- data/data/Global/ModelSim.gitignore +23 -0
- data/data/Global/MonoDevelop.gitignore +8 -0
- data/data/Global/NetBeans.gitignore +7 -0
- data/data/Global/NotepadPP.gitignore +2 -0
- data/data/Global/OSX.gitignore +20 -0
- data/data/Global/Quartus2.gitignore +66 -0
- data/data/Global/README.md +10 -0
- data/data/Global/Redcar.gitignore +1 -0
- data/data/Global/SBT.gitignore +9 -0
- data/data/Global/SVN.gitignore +1 -0
- data/data/Global/SlickEdit.gitignore +11 -0
- data/data/Global/SublimeText.gitignore +9 -0
- data/data/Global/Tags.gitignore +14 -0
- data/data/Global/TextMate.gitignore +3 -0
- data/data/Global/Vagrant.gitignore +1 -0
- data/data/Global/VirtualEnv.gitignore +7 -0
- data/data/Global/Windows.gitignore +15 -0
- data/data/Global/Xcode.gitignore +14 -0
- data/data/Global/XilinxISE.gitignore +57 -0
- data/data/Global/vim.gitignore +6 -0
- data/data/Global/webMethods.gitignore +14 -0
- data/data/Go.gitignore +23 -0
- data/data/Gradle.gitignore +5 -0
- data/data/Grails.gitignore +30 -0
- data/data/Haskell.gitignore +11 -0
- data/data/Idris.gitignore +2 -0
- data/data/Java.gitignore +12 -0
- data/data/Jboss.gitignore +19 -0
- data/data/Jekyll.gitignore +1 -0
- data/data/Joomla.gitignore +437 -0
- data/data/Jython.gitignore +2 -0
- data/data/Kohana.gitignore +2 -0
- data/data/LICENSE +19 -0
- data/data/Laravel4.gitignore +3 -0
- data/data/Leiningen.gitignore +11 -0
- data/data/LemonStand.gitignore +21 -0
- data/data/Lilypond.gitignore +6 -0
- data/data/Lithium.gitignore +2 -0
- data/data/Magento.gitignore +118 -0
- data/data/Maven.gitignore +6 -0
- data/data/Mercury.gitignore +11 -0
- data/data/Meteor.gitignore +2 -0
- data/data/Node.gitignore +28 -0
- data/data/OCaml.gitignore +9 -0
- data/data/Objective-C.gitignore +26 -0
- data/data/Opa.gitignore +13 -0
- data/data/OpenCart.gitignore +11 -0
- data/data/OracleForms.gitignore +8 -0
- data/data/Packer.gitignore +5 -0
- data/data/Perl.gitignore +19 -0
- data/data/Phalcon.gitignore +2 -0
- data/data/PlayFramework.gitignore +17 -0
- data/data/Plone.gitignore +18 -0
- data/data/Prestashop.gitignore +29 -0
- data/data/Processing.gitignore +7 -0
- data/data/Python.gitignore +44 -0
- data/data/Qooxdoo.gitignore +5 -0
- data/data/Qt.gitignore +28 -0
- data/data/R.gitignore +8 -0
- data/data/README.md +79 -0
- data/data/ROS.gitignore +47 -0
- data/data/Rails.gitignore +26 -0
- data/data/RhodesRhomobile.gitignore +9 -0
- data/data/Ruby.gitignore +34 -0
- data/data/SCons.gitignore +2 -0
- data/data/Sass.gitignore +1 -0
- data/data/Scala.gitignore +17 -0
- data/data/Scrivener.gitignore +7 -0
- data/data/Sdcc.gitignore +8 -0
- data/data/SeamGen.gitignore +26 -0
- data/data/SketchUp.gitignore +1 -0
- data/data/SugarCRM.gitignore +25 -0
- data/data/Symfony.gitignore +15 -0
- data/data/Symfony2.gitignore +16 -0
- data/data/SymphonyCMS.gitignore +6 -0
- data/data/Target3001.gitignore +82 -0
- data/data/Tasm.gitignore +11 -0
- data/data/TeX.gitignore +98 -0
- data/data/Textpattern.gitignore +11 -0
- data/data/TurboGears2.gitignore +20 -0
- data/data/Typo3.gitignore +18 -0
- data/data/Umbraco.gitignore +12 -0
- data/data/Unity.gitignore +13 -0
- data/data/VVVV.gitignore +6 -0
- data/data/VisualStudio.gitignore +185 -0
- data/data/Waf.gitignore +3 -0
- data/data/WordPress.gitignore +13 -0
- data/data/Yeoman.gitignore +6 -0
- data/data/Yii.gitignore +6 -0
- data/data/ZendFramework.gitignore +20 -0
- data/data/gcov.gitignore +5 -0
- data/data/nanoc.gitignore +10 -0
- data/data/stella.gitignore +12 -0
- data/forgitter.gemspec +12 -2
- data/lib/forgitter/cli/option_parser.rb +6 -5
- data/lib/forgitter/options.rb +1 -2
- data/lib/forgitter/runner.rb +10 -10
- data/lib/forgitter/types.rb +15 -0
- data/lib/forgitter/version.rb +1 -1
- data/lib/forgitter.rb +1 -0
- metadata +152 -16
@@ -0,0 +1,82 @@
|
|
1
|
+
# Ignore list for Target 3001!, a PCB layout tool
|
2
|
+
|
3
|
+
# mutex file
|
4
|
+
*.T300[01]OPEN
|
5
|
+
|
6
|
+
# Drill output
|
7
|
+
*.DRL
|
8
|
+
*.BHR
|
9
|
+
BOHRPICT.3001
|
10
|
+
|
11
|
+
# Backup files
|
12
|
+
# (see http://server.ibfriedrich.com/wiki/ibfwikide/index.php?title=Backup)
|
13
|
+
BackupFiles
|
14
|
+
*.BK?
|
15
|
+
*_w?.T300[01]
|
16
|
+
*_m?.T300[01]
|
17
|
+
*_m??.T300[01]
|
18
|
+
|
19
|
+
# Autosave files
|
20
|
+
*.T300[01]?
|
21
|
+
|
22
|
+
# Gerber output
|
23
|
+
*.Apr
|
24
|
+
*.BLN
|
25
|
+
*.Bot
|
26
|
+
*.Drill
|
27
|
+
*.GER
|
28
|
+
*.Hole
|
29
|
+
*.Info
|
30
|
+
*.L*
|
31
|
+
*.NamesBot
|
32
|
+
*.NamesTop
|
33
|
+
*.Outline
|
34
|
+
*.PadStack*
|
35
|
+
*.PasteBot
|
36
|
+
*.PasteTop
|
37
|
+
*.PosiBot
|
38
|
+
*.PosiTop
|
39
|
+
*.SB
|
40
|
+
*.Special*
|
41
|
+
*.ST
|
42
|
+
*.StopBot
|
43
|
+
*.StopTop
|
44
|
+
*.Tool
|
45
|
+
*.Top
|
46
|
+
*.ValuesBot
|
47
|
+
*.ValuesTop
|
48
|
+
*.Whl
|
49
|
+
|
50
|
+
# production formats
|
51
|
+
*.cnc
|
52
|
+
*.fab
|
53
|
+
*.cad
|
54
|
+
*.GDS
|
55
|
+
*.exc
|
56
|
+
excellon.txt
|
57
|
+
*.stk
|
58
|
+
*.ncp
|
59
|
+
*.pcb
|
60
|
+
*.cbt
|
61
|
+
*.vhf
|
62
|
+
*.iso
|
63
|
+
|
64
|
+
# exchange formats
|
65
|
+
*.DXF
|
66
|
+
*.PS
|
67
|
+
*.TIF
|
68
|
+
*.NET
|
69
|
+
*.PLT
|
70
|
+
*.HPGL
|
71
|
+
*.emn
|
72
|
+
*.stp
|
73
|
+
*.tgr
|
74
|
+
*.dif
|
75
|
+
*.emp
|
76
|
+
|
77
|
+
# cable loom
|
78
|
+
*.dsi
|
79
|
+
*.pnm
|
80
|
+
*.wrl
|
81
|
+
*.ADPT
|
82
|
+
*.AZO
|
data/data/Tasm.gitignore
ADDED
data/data/TeX.gitignore
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
## Core latex/pdflatex auxiliary files:
|
2
|
+
*.aux
|
3
|
+
*.lof
|
4
|
+
*.log
|
5
|
+
*.lot
|
6
|
+
*.fls
|
7
|
+
*.out
|
8
|
+
*.toc
|
9
|
+
|
10
|
+
## Intermediate documents:
|
11
|
+
*.dvi
|
12
|
+
# these rules might exclude image files for figures etc.
|
13
|
+
# *.ps
|
14
|
+
# *.eps
|
15
|
+
# *.pdf
|
16
|
+
|
17
|
+
## Bibliography auxiliary files (bibtex/biblatex/biber):
|
18
|
+
*.bbl
|
19
|
+
*.bcf
|
20
|
+
*.blg
|
21
|
+
*-blx.aux
|
22
|
+
*-blx.bib
|
23
|
+
*.run.xml
|
24
|
+
|
25
|
+
## Build tool auxiliary files:
|
26
|
+
*.fdb_latexmk
|
27
|
+
*.synctex.gz
|
28
|
+
*.synctex.gz(busy)
|
29
|
+
*.pdfsync
|
30
|
+
|
31
|
+
## Auxiliary and intermediate files from other packages:
|
32
|
+
|
33
|
+
# algorithms
|
34
|
+
*.alg
|
35
|
+
*.loa
|
36
|
+
|
37
|
+
# amsthm
|
38
|
+
*.thm
|
39
|
+
|
40
|
+
# beamer
|
41
|
+
*.nav
|
42
|
+
*.snm
|
43
|
+
*.vrb
|
44
|
+
|
45
|
+
#(e)ledmac/(e)ledpar
|
46
|
+
*.end
|
47
|
+
*.[1-9]
|
48
|
+
*.[1-9][0-9]
|
49
|
+
*.[1-9][0-9][0-9]
|
50
|
+
*.[1-9]R
|
51
|
+
*.[1-9][0-9]R
|
52
|
+
*.[1-9][0-9][0-9]R
|
53
|
+
|
54
|
+
# glossaries
|
55
|
+
*.acn
|
56
|
+
*.acr
|
57
|
+
*.glg
|
58
|
+
*.glo
|
59
|
+
*.gls
|
60
|
+
|
61
|
+
# hyperref
|
62
|
+
*.brf
|
63
|
+
|
64
|
+
# listings
|
65
|
+
*.lol
|
66
|
+
|
67
|
+
# makeidx
|
68
|
+
*.idx
|
69
|
+
*.ilg
|
70
|
+
*.ind
|
71
|
+
*.ist
|
72
|
+
|
73
|
+
# minitoc
|
74
|
+
*.maf
|
75
|
+
*.mtc
|
76
|
+
*.mtc0
|
77
|
+
|
78
|
+
# minted
|
79
|
+
*.pyg
|
80
|
+
|
81
|
+
# nomencl
|
82
|
+
*.nlo
|
83
|
+
|
84
|
+
# sagetex
|
85
|
+
*.sagetex.sage
|
86
|
+
*.sagetex.py
|
87
|
+
*.sagetex.scmd
|
88
|
+
|
89
|
+
# sympy
|
90
|
+
*.sout
|
91
|
+
*.sympy
|
92
|
+
sympy-plots-for-*.tex/
|
93
|
+
|
94
|
+
# todonotes
|
95
|
+
*.tdo
|
96
|
+
|
97
|
+
# xindy
|
98
|
+
*.xdy
|
@@ -0,0 +1,20 @@
|
|
1
|
+
*.py[co]
|
2
|
+
|
3
|
+
# Default development database
|
4
|
+
devdata.db
|
5
|
+
|
6
|
+
# Default data directory
|
7
|
+
data/*
|
8
|
+
|
9
|
+
# Packages
|
10
|
+
*.egg
|
11
|
+
*.egg-info
|
12
|
+
dist
|
13
|
+
build
|
14
|
+
|
15
|
+
# Installer logs
|
16
|
+
pip-log.txt
|
17
|
+
|
18
|
+
# Unit test / coverage reports
|
19
|
+
.coverage
|
20
|
+
.tox
|
@@ -0,0 +1,18 @@
|
|
1
|
+
## TYPO3 v4
|
2
|
+
# Ignore serveral upload and file directories.
|
3
|
+
/fileadmin/user_upload/
|
4
|
+
/fileadmin/_temp_/
|
5
|
+
/uploads/
|
6
|
+
# Ignore cache
|
7
|
+
/typo3conf/temp_CACHED*
|
8
|
+
/typo3conf/temp_fieldInfo.php
|
9
|
+
# Ignore local config which overrides typo3 config.
|
10
|
+
# You should include your local stuff with `@include('localconf_local.php');` at the end of localconf.php.
|
11
|
+
# See http://stackoverflow.com/questions/11905360/how-best-to-manage-typo3-installations-using-git for details.
|
12
|
+
/typo3conf/localconf_local.php
|
13
|
+
# Ignore system folders, you should have them symlinked.
|
14
|
+
# If not comment out the following two entries.
|
15
|
+
/typo3
|
16
|
+
/t3lib
|
17
|
+
# Ignore temp directory.
|
18
|
+
/typo3temp/
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Note: VisualStudio gitignore rules may also be relevant
|
2
|
+
|
3
|
+
# Ignore unimportant folders generated by Umbraco
|
4
|
+
**/App_Data/ClientDependency/
|
5
|
+
**/App_Data/ExamineIndexes/
|
6
|
+
**/App_Data/Logs/
|
7
|
+
**/App_Data/[Pp]review/
|
8
|
+
**/App_Data/TEMP/
|
9
|
+
Cached/
|
10
|
+
|
11
|
+
# Ignore Umbraco content cache file
|
12
|
+
**/App_Data/umbraco.config
|
data/data/VVVV.gitignore
ADDED
@@ -0,0 +1,185 @@
|
|
1
|
+
## Ignore Visual Studio temporary files, build results, and
|
2
|
+
## files generated by popular Visual Studio add-ons.
|
3
|
+
|
4
|
+
# User-specific files
|
5
|
+
*.suo
|
6
|
+
*.user
|
7
|
+
*.sln.docstates
|
8
|
+
|
9
|
+
# Build results
|
10
|
+
[Dd]ebug/
|
11
|
+
[Dd]ebugPublic/
|
12
|
+
[Rr]elease/
|
13
|
+
[Rr]eleases/
|
14
|
+
x64/
|
15
|
+
build/
|
16
|
+
bld/
|
17
|
+
[Bb]in/
|
18
|
+
[Oo]bj/
|
19
|
+
|
20
|
+
# Roslyn cache directories
|
21
|
+
*.ide/
|
22
|
+
|
23
|
+
# MSTest test Results
|
24
|
+
[Tt]est[Rr]esult*/
|
25
|
+
[Bb]uild[Ll]og.*
|
26
|
+
|
27
|
+
#NUNIT
|
28
|
+
*.VisualState.xml
|
29
|
+
TestResult.xml
|
30
|
+
|
31
|
+
# Build Results of an ATL Project
|
32
|
+
[Dd]ebugPS/
|
33
|
+
[Rr]eleasePS/
|
34
|
+
dlldata.c
|
35
|
+
|
36
|
+
*_i.c
|
37
|
+
*_p.c
|
38
|
+
*_i.h
|
39
|
+
*.ilk
|
40
|
+
*.meta
|
41
|
+
*.obj
|
42
|
+
*.pch
|
43
|
+
*.pdb
|
44
|
+
*.pgc
|
45
|
+
*.pgd
|
46
|
+
*.rsp
|
47
|
+
*.sbr
|
48
|
+
*.tlb
|
49
|
+
*.tli
|
50
|
+
*.tlh
|
51
|
+
*.tmp
|
52
|
+
*.tmp_proj
|
53
|
+
*.log
|
54
|
+
*.vspscc
|
55
|
+
*.vssscc
|
56
|
+
.builds
|
57
|
+
*.pidb
|
58
|
+
*.svclog
|
59
|
+
*.scc
|
60
|
+
|
61
|
+
# Chutzpah Test files
|
62
|
+
_Chutzpah*
|
63
|
+
|
64
|
+
# Visual C++ cache files
|
65
|
+
ipch/
|
66
|
+
*.aps
|
67
|
+
*.ncb
|
68
|
+
*.opensdf
|
69
|
+
*.sdf
|
70
|
+
*.cachefile
|
71
|
+
|
72
|
+
# Visual Studio profiler
|
73
|
+
*.psess
|
74
|
+
*.vsp
|
75
|
+
*.vspx
|
76
|
+
|
77
|
+
# TFS 2012 Local Workspace
|
78
|
+
$tf/
|
79
|
+
|
80
|
+
# Guidance Automation Toolkit
|
81
|
+
*.gpState
|
82
|
+
|
83
|
+
# ReSharper is a .NET coding add-in
|
84
|
+
_ReSharper*/
|
85
|
+
*.[Rr]e[Ss]harper
|
86
|
+
*.DotSettings.user
|
87
|
+
|
88
|
+
# JustCode is a .NET coding addin-in
|
89
|
+
.JustCode
|
90
|
+
|
91
|
+
# TeamCity is a build add-in
|
92
|
+
_TeamCity*
|
93
|
+
|
94
|
+
# DotCover is a Code Coverage Tool
|
95
|
+
*.dotCover
|
96
|
+
|
97
|
+
# NCrunch
|
98
|
+
_NCrunch_*
|
99
|
+
.*crunch*.local.xml
|
100
|
+
|
101
|
+
# MightyMoose
|
102
|
+
*.mm.*
|
103
|
+
AutoTest.Net/
|
104
|
+
|
105
|
+
# Web workbench (sass)
|
106
|
+
.sass-cache/
|
107
|
+
|
108
|
+
# Installshield output folder
|
109
|
+
[Ee]xpress/
|
110
|
+
|
111
|
+
# DocProject is a documentation generator add-in
|
112
|
+
DocProject/buildhelp/
|
113
|
+
DocProject/Help/*.HxT
|
114
|
+
DocProject/Help/*.HxC
|
115
|
+
DocProject/Help/*.hhc
|
116
|
+
DocProject/Help/*.hhk
|
117
|
+
DocProject/Help/*.hhp
|
118
|
+
DocProject/Help/Html2
|
119
|
+
DocProject/Help/html
|
120
|
+
|
121
|
+
# Click-Once directory
|
122
|
+
publish/
|
123
|
+
|
124
|
+
# Publish Web Output
|
125
|
+
*.[Pp]ublish.xml
|
126
|
+
*.azurePubxml
|
127
|
+
## TODO: Comment the next line if you want to checkin your
|
128
|
+
## web deploy settings but do note that will include unencrypted
|
129
|
+
## passwords
|
130
|
+
*.pubxml
|
131
|
+
|
132
|
+
# NuGet Packages Directory
|
133
|
+
packages/*
|
134
|
+
## TODO: If the tool you use requires repositories.config
|
135
|
+
## uncomment the next line
|
136
|
+
#!packages/repositories.config
|
137
|
+
|
138
|
+
# Enable "build/" folder in the NuGet Packages folder since
|
139
|
+
# NuGet packages use it for MSBuild targets.
|
140
|
+
# This line needs to be after the ignore of the build folder
|
141
|
+
# (and the packages folder if the line above has been uncommented)
|
142
|
+
!packages/build/
|
143
|
+
|
144
|
+
# Windows Azure Build Output
|
145
|
+
csx/
|
146
|
+
*.build.csdef
|
147
|
+
|
148
|
+
# Windows Store app package directory
|
149
|
+
AppPackages/
|
150
|
+
|
151
|
+
# Others
|
152
|
+
sql/
|
153
|
+
*.Cache
|
154
|
+
ClientBin/
|
155
|
+
[Ss]tyle[Cc]op.*
|
156
|
+
~$*
|
157
|
+
*~
|
158
|
+
*.dbmdl
|
159
|
+
*.dbproj.schemaview
|
160
|
+
*.pfx
|
161
|
+
*.publishsettings
|
162
|
+
node_modules/
|
163
|
+
|
164
|
+
# RIA/Silverlight projects
|
165
|
+
Generated_Code/
|
166
|
+
|
167
|
+
# Backup & report files from converting an old project file
|
168
|
+
# to a newer Visual Studio version. Backup files are not needed,
|
169
|
+
# because we have git ;-)
|
170
|
+
_UpgradeReport_Files/
|
171
|
+
Backup*/
|
172
|
+
UpgradeLog*.XML
|
173
|
+
UpgradeLog*.htm
|
174
|
+
|
175
|
+
# SQL Server files
|
176
|
+
*.mdf
|
177
|
+
*.ldf
|
178
|
+
|
179
|
+
# Business Intelligence projects
|
180
|
+
*.rdl.data
|
181
|
+
*.bim.layout
|
182
|
+
*.bim_*.settings
|
183
|
+
|
184
|
+
# Microsoft Fakes
|
185
|
+
FakesAssemblies/
|
data/data/Waf.gitignore
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
.htaccess
|
2
|
+
wp-content/uploads/
|
3
|
+
wp-content/blogs.dir/
|
4
|
+
wp-content/upgrade/
|
5
|
+
wp-content/backup-db/
|
6
|
+
wp-content/advanced-cache.php
|
7
|
+
wp-content/wp-cache-config.php
|
8
|
+
sitemap.xml
|
9
|
+
*.log
|
10
|
+
wp-content/cache/
|
11
|
+
wp-content/backups/
|
12
|
+
sitemap.xml.gz
|
13
|
+
wp-config.php
|
data/data/Yii.gitignore
ADDED
data/data/gcov.gitignore
ADDED
data/forgitter.gemspec
CHANGED
@@ -18,8 +18,18 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
+
gem_dir = File.expand_path(File.dirname(__FILE__)) + '/'
|
22
|
+
`git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
|
23
|
+
Dir.chdir(submodule_path) do
|
24
|
+
submodule_relative_path = submodule_path.sub gem_dir, ''
|
25
|
+
# issue git ls-files in submodule's directory and
|
26
|
+
# prepend the submodule path to create absolute file paths
|
27
|
+
`git ls-files`.split($\).each do |filename|
|
28
|
+
spec.files << "#{submodule_relative_path}/#{filename}"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
21
33
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
22
34
|
spec.add_development_dependency 'rake'
|
23
|
-
|
24
|
-
spec.add_dependency 'octokit'
|
25
35
|
end
|
@@ -18,16 +18,17 @@ module Forgitter
|
|
18
18
|
opts.separator ''
|
19
19
|
opts.separator 'Specific options:'
|
20
20
|
|
21
|
+
opts.on('-l', '--list',
|
22
|
+
'List the available types.') do
|
23
|
+
Forgitter.list_types
|
24
|
+
exit
|
25
|
+
end
|
26
|
+
|
21
27
|
opts.on('-c', '--stdout',
|
22
28
|
'Write the combined .gitignore to the standard output stream and not to disk.') do
|
23
29
|
options[:stdout] = true
|
24
30
|
end
|
25
31
|
|
26
|
-
opts.on('-t', '--token TOKEN',
|
27
|
-
'Provide a GitHub access token for a higher rate limit (see https://developer.github.com/v3/#rate-limiting).') do |token|
|
28
|
-
options[:access_token] = token
|
29
|
-
end
|
30
|
-
|
31
32
|
opts.separator ''
|
32
33
|
opts.separator 'Common options:'
|
33
34
|
|
data/lib/forgitter/options.rb
CHANGED
data/lib/forgitter/runner.rb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
require 'forgitter'
|
2
|
-
require 'octokit'
|
3
2
|
|
4
3
|
module Forgitter
|
5
4
|
class Runner
|
6
5
|
def initialize(options = Forgitter::DEFAULT_OPTIONS)
|
7
6
|
@types = convert_to_filenames(options[:types])
|
8
7
|
@stdout = options[:stdout]
|
9
|
-
|
10
|
-
@client = Octokit
|
11
|
-
@client = Octokit::Client.new(:access_token => options[:access_token]) unless options[:access_token].empty?
|
12
8
|
end
|
13
9
|
|
14
10
|
def run
|
15
|
-
|
11
|
+
failcnt = 0
|
12
|
+
output = ''
|
16
13
|
@types.each do |type|
|
17
14
|
ignore_file = get_ignore_file(type)
|
18
15
|
if ignore_file
|
19
16
|
output += "# Information from #{type}\n"
|
20
17
|
output += ignore_file
|
18
|
+
else
|
19
|
+
failcnt += 1
|
21
20
|
end
|
22
21
|
end
|
22
|
+
exit(1) if failcnt == @types.length
|
23
23
|
|
24
24
|
if @stdout
|
25
25
|
puts output
|
@@ -34,12 +34,12 @@ module Forgitter
|
|
34
34
|
|
35
35
|
# Given a filename on the gitignore repo, return a string with the contents of the file
|
36
36
|
def get_ignore_file(filename)
|
37
|
-
puts "
|
37
|
+
STDERR.puts "Using #{filename}"
|
38
38
|
begin
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
IO.read(File.join(DATA_PATH, filename))
|
40
|
+
rescue Errno::ENOENT
|
41
|
+
STDERR.puts "#{filename} does not exist!"
|
42
|
+
false
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
data/lib/forgitter/types.rb
CHANGED
@@ -148,4 +148,19 @@ module Forgitter
|
|
148
148
|
'nanoc' => 'nanoc.gitignore',
|
149
149
|
'stella' => 'stella.gitignore'
|
150
150
|
}
|
151
|
+
|
152
|
+
def self.list_types
|
153
|
+
lines = []
|
154
|
+
col1size = 0
|
155
|
+
TYPES.each do |type, path|
|
156
|
+
col1size = type.length if type.length > col1size
|
157
|
+
lines << [type, "https://github.com/github/gitignore/blob/master/#{path}"]
|
158
|
+
end
|
159
|
+
|
160
|
+
puts 'Available types:'
|
161
|
+
puts
|
162
|
+
lines.sort_by { |line| line[0] }.each do |line|
|
163
|
+
printf("%-#{col1size}s\t%s\n", line[0], line[1])
|
164
|
+
end
|
165
|
+
end
|
151
166
|
end
|
data/lib/forgitter/version.rb
CHANGED