forgitter 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/README.md +13 -6
  4. data/data/Actionscript.gitignore +11 -0
  5. data/data/Ada.gitignore +5 -0
  6. data/data/Agda.gitignore +1 -0
  7. data/data/Android.gitignore +26 -0
  8. data/data/AppceleratorTitanium.gitignore +3 -0
  9. data/data/ArchLinuxPackages.gitignore +9 -0
  10. data/data/Autotools.gitignore +14 -0
  11. data/data/Bancha.gitignore +16 -0
  12. data/data/C++.gitignore +21 -0
  13. data/data/C.gitignore +23 -0
  14. data/data/CFWheels.gitignore +12 -0
  15. data/data/CMake.gitignore +5 -0
  16. data/data/CONTRIBUTING.md +34 -0
  17. data/data/CakePHP.gitignore +7 -0
  18. data/data/ChefCookbook.gitignore +9 -0
  19. data/data/Clojure.gitignore +11 -0
  20. data/data/CodeIgniter.gitignore +6 -0
  21. data/data/CommonLisp.gitignore +3 -0
  22. data/data/Composer.gitignore +6 -0
  23. data/data/Concrete5.gitignore +3 -0
  24. data/data/Coq.gitignore +3 -0
  25. data/data/DM.gitignore +5 -0
  26. data/data/Dart.gitignore +13 -0
  27. data/data/Delphi.gitignore +53 -0
  28. data/data/Drupal.gitignore +36 -0
  29. data/data/EPiServer.gitignore +4 -0
  30. data/data/Eagle.gitignore +36 -0
  31. data/data/Elisp.gitignore +2 -0
  32. data/data/Elixir.gitignore +4 -0
  33. data/data/Erlang.gitignore +6 -0
  34. data/data/ExpressionEngine.gitignore +19 -0
  35. data/data/Fancy.gitignore +2 -0
  36. data/data/Finale.gitignore +13 -0
  37. data/data/ForceDotCom.gitignore +4 -0
  38. data/data/FuelPHP.gitignore +2 -0
  39. data/data/GWT.gitignore +28 -0
  40. data/data/Global/Archives.gitignore +27 -0
  41. data/data/Global/BricxCC.gitignore +4 -0
  42. data/data/Global/CVS.gitignore +4 -0
  43. data/data/Global/Cloud9.gitignore +3 -0
  44. data/data/Global/DartEditor.gitignore +2 -0
  45. data/data/Global/Dreamweaver.gitignore +3 -0
  46. data/data/Global/Eclipse.gitignore +30 -0
  47. data/data/Global/EiffelStudio.gitignore +2 -0
  48. data/data/Global/Emacs.gitignore +29 -0
  49. data/data/Global/Ensime.gitignore +3 -0
  50. data/data/Global/Espresso.gitignore +1 -0
  51. data/data/Global/FlexBuilder.gitignore +3 -0
  52. data/data/Global/IPythonNotebook.gitignore +2 -0
  53. data/data/Global/JetBrains.gitignore +29 -0
  54. data/data/Global/KDevelop4.gitignore +2 -0
  55. data/data/Global/Kate.gitignore +3 -0
  56. data/data/Global/Lazarus.gitignore +12 -0
  57. data/data/Global/Linux.gitignore +4 -0
  58. data/data/Global/Matlab.gitignore +16 -0
  59. data/data/Global/Mercurial.gitignore +3 -0
  60. data/data/Global/ModelSim.gitignore +23 -0
  61. data/data/Global/MonoDevelop.gitignore +8 -0
  62. data/data/Global/NetBeans.gitignore +7 -0
  63. data/data/Global/NotepadPP.gitignore +2 -0
  64. data/data/Global/OSX.gitignore +20 -0
  65. data/data/Global/Quartus2.gitignore +66 -0
  66. data/data/Global/README.md +10 -0
  67. data/data/Global/Redcar.gitignore +1 -0
  68. data/data/Global/SBT.gitignore +9 -0
  69. data/data/Global/SVN.gitignore +1 -0
  70. data/data/Global/SlickEdit.gitignore +11 -0
  71. data/data/Global/SublimeText.gitignore +9 -0
  72. data/data/Global/Tags.gitignore +14 -0
  73. data/data/Global/TextMate.gitignore +3 -0
  74. data/data/Global/Vagrant.gitignore +1 -0
  75. data/data/Global/VirtualEnv.gitignore +7 -0
  76. data/data/Global/Windows.gitignore +15 -0
  77. data/data/Global/Xcode.gitignore +14 -0
  78. data/data/Global/XilinxISE.gitignore +57 -0
  79. data/data/Global/vim.gitignore +6 -0
  80. data/data/Global/webMethods.gitignore +14 -0
  81. data/data/Go.gitignore +23 -0
  82. data/data/Gradle.gitignore +5 -0
  83. data/data/Grails.gitignore +30 -0
  84. data/data/Haskell.gitignore +11 -0
  85. data/data/Idris.gitignore +2 -0
  86. data/data/Java.gitignore +12 -0
  87. data/data/Jboss.gitignore +19 -0
  88. data/data/Jekyll.gitignore +1 -0
  89. data/data/Joomla.gitignore +437 -0
  90. data/data/Jython.gitignore +2 -0
  91. data/data/Kohana.gitignore +2 -0
  92. data/data/LICENSE +19 -0
  93. data/data/Laravel4.gitignore +3 -0
  94. data/data/Leiningen.gitignore +11 -0
  95. data/data/LemonStand.gitignore +21 -0
  96. data/data/Lilypond.gitignore +6 -0
  97. data/data/Lithium.gitignore +2 -0
  98. data/data/Magento.gitignore +118 -0
  99. data/data/Maven.gitignore +6 -0
  100. data/data/Mercury.gitignore +11 -0
  101. data/data/Meteor.gitignore +2 -0
  102. data/data/Node.gitignore +28 -0
  103. data/data/OCaml.gitignore +9 -0
  104. data/data/Objective-C.gitignore +26 -0
  105. data/data/Opa.gitignore +13 -0
  106. data/data/OpenCart.gitignore +11 -0
  107. data/data/OracleForms.gitignore +8 -0
  108. data/data/Packer.gitignore +5 -0
  109. data/data/Perl.gitignore +19 -0
  110. data/data/Phalcon.gitignore +2 -0
  111. data/data/PlayFramework.gitignore +17 -0
  112. data/data/Plone.gitignore +18 -0
  113. data/data/Prestashop.gitignore +29 -0
  114. data/data/Processing.gitignore +7 -0
  115. data/data/Python.gitignore +44 -0
  116. data/data/Qooxdoo.gitignore +5 -0
  117. data/data/Qt.gitignore +28 -0
  118. data/data/R.gitignore +8 -0
  119. data/data/README.md +79 -0
  120. data/data/ROS.gitignore +47 -0
  121. data/data/Rails.gitignore +26 -0
  122. data/data/RhodesRhomobile.gitignore +9 -0
  123. data/data/Ruby.gitignore +34 -0
  124. data/data/SCons.gitignore +2 -0
  125. data/data/Sass.gitignore +1 -0
  126. data/data/Scala.gitignore +17 -0
  127. data/data/Scrivener.gitignore +7 -0
  128. data/data/Sdcc.gitignore +8 -0
  129. data/data/SeamGen.gitignore +26 -0
  130. data/data/SketchUp.gitignore +1 -0
  131. data/data/SugarCRM.gitignore +25 -0
  132. data/data/Symfony.gitignore +15 -0
  133. data/data/Symfony2.gitignore +16 -0
  134. data/data/SymphonyCMS.gitignore +6 -0
  135. data/data/Target3001.gitignore +82 -0
  136. data/data/Tasm.gitignore +11 -0
  137. data/data/TeX.gitignore +98 -0
  138. data/data/Textpattern.gitignore +11 -0
  139. data/data/TurboGears2.gitignore +20 -0
  140. data/data/Typo3.gitignore +18 -0
  141. data/data/Umbraco.gitignore +12 -0
  142. data/data/Unity.gitignore +13 -0
  143. data/data/VVVV.gitignore +6 -0
  144. data/data/VisualStudio.gitignore +185 -0
  145. data/data/Waf.gitignore +3 -0
  146. data/data/WordPress.gitignore +13 -0
  147. data/data/Yeoman.gitignore +6 -0
  148. data/data/Yii.gitignore +6 -0
  149. data/data/ZendFramework.gitignore +20 -0
  150. data/data/gcov.gitignore +5 -0
  151. data/data/nanoc.gitignore +10 -0
  152. data/data/stella.gitignore +12 -0
  153. data/forgitter.gemspec +12 -2
  154. data/lib/forgitter/cli/option_parser.rb +6 -5
  155. data/lib/forgitter/options.rb +1 -2
  156. data/lib/forgitter/runner.rb +10 -10
  157. data/lib/forgitter/types.rb +15 -0
  158. data/lib/forgitter/version.rb +1 -1
  159. data/lib/forgitter.rb +1 -0
  160. 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
@@ -0,0 +1,11 @@
1
+ # Object Files
2
+ *.OBJ
3
+
4
+ # List Files
5
+ *.LST
6
+
7
+ # Map files
8
+ *.MAP
9
+
10
+ # Executable files
11
+ *.EXE
@@ -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,11 @@
1
+ .htaccess
2
+ css.php
3
+ rpc/
4
+ sites/site*/admin/
5
+ sites/site*/private/
6
+ sites/site*/public/admin/
7
+ sites/site*/public/setup/
8
+ sites/site*/public/theme/
9
+ textpattern/
10
+ HISTORY.txt
11
+ README.txt
@@ -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
@@ -0,0 +1,13 @@
1
+ [Ll]ibrary/
2
+ [Tt]emp/
3
+ [Oo]bj/
4
+
5
+ # Autogenerated VS/MD solution and project files
6
+ /*.csproj
7
+ /*.unityproj
8
+ /*.sln
9
+ /*.suo
10
+ /*.user
11
+ /*.userprefs
12
+ /*.pidb
13
+ /*.booproj
@@ -0,0 +1,6 @@
1
+
2
+ # .v4p backup files
3
+ *~.xml
4
+
5
+ # Dynamic plugins .dll
6
+ bin/
@@ -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/
@@ -0,0 +1,3 @@
1
+ # for projects that use Waf for building: http://code.google.com/p/waf/
2
+ .waf-*
3
+ .lock-*
@@ -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
@@ -0,0 +1,6 @@
1
+ node_modules/
2
+ bower_components/
3
+ *.log
4
+
5
+ build/
6
+ dist/
@@ -0,0 +1,6 @@
1
+ assets/*
2
+ !assets/.gitignore
3
+ protected/runtime/*
4
+ !protected/runtime/.gitignore
5
+ protected/data/*.db
6
+ themes/classic/views/
@@ -0,0 +1,20 @@
1
+ # Composer files
2
+ composer.phar
3
+ vendor/
4
+
5
+ # Local configs
6
+ config/autoload/*local.php
7
+
8
+ # Binary gettext files
9
+ *.po
10
+
11
+ # Data
12
+ log/
13
+ logs/
14
+ cache/
15
+ temp/
16
+ tmp/
17
+
18
+ # ZF1
19
+ demos/
20
+ extras/documentation
@@ -0,0 +1,5 @@
1
+ # gcc coverage testing tool files
2
+
3
+ *.gcno
4
+ *.gcda
5
+ *.gcov
@@ -0,0 +1,10 @@
1
+ # For projects using nanoc (http://nanoc.ws/)
2
+
3
+ # Default location for output, needs to match output_dir's value found in config.yaml
4
+ output/
5
+
6
+ # Temporary file directory
7
+ tmp/
8
+
9
+ # Crash Log
10
+ crash.log
@@ -0,0 +1,12 @@
1
+ # Atari 2600 (Stella) support for multiple assemblers
2
+ # - DASM
3
+ # - CC65
4
+
5
+ # Assembled binaries and object directories
6
+ obj/
7
+ a.out
8
+ *.bin
9
+ *.a26
10
+
11
+ # Add in special Atari 7800-based binaries for good measure
12
+ *.a78
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
 
@@ -3,7 +3,6 @@ require 'forgitter/types'
3
3
  module Forgitter
4
4
  DEFAULT_OPTIONS = {
5
5
  :types => [],
6
- :stdout => false,
7
- :access_token => ''
6
+ :stdout => false
8
7
  }
9
8
  end
@@ -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
- output = ""
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 "Fetching #{filename}"
37
+ STDERR.puts "Using #{filename}"
38
38
  begin
39
- api_response = @client.contents('github/gitignore', :ref => 'master', :path => filename)
40
- Base64.decode64( api_response.content )
41
- rescue Octokit::TooManyRequests
42
- puts "You are being rate limited! Failed to fetch #{filename}."
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Forgitter
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
data/lib/forgitter.rb CHANGED
@@ -4,4 +4,5 @@ require 'forgitter/runner'
4
4
  require 'forgitter/version'
5
5
 
6
6
  module Forgitter
7
+ DATA_PATH = File.realpath(File.join(File.dirname(__FILE__), '..', 'data'))
7
8
  end