forgitter 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +2 -2
  3. data/data/{Actionscript.gitignore → github/Actionscript.gitignore} +0 -0
  4. data/data/{Ada.gitignore → github/Ada.gitignore} +0 -0
  5. data/data/{Agda.gitignore → github/Agda.gitignore} +0 -0
  6. data/data/{Android.gitignore → github/Android.gitignore} +0 -0
  7. data/data/{AppceleratorTitanium.gitignore → github/AppceleratorTitanium.gitignore} +0 -0
  8. data/data/{ArchLinuxPackages.gitignore → github/ArchLinuxPackages.gitignore} +0 -0
  9. data/data/{Autotools.gitignore → github/Autotools.gitignore} +0 -0
  10. data/data/{Bancha.gitignore → github/Bancha.gitignore} +0 -0
  11. data/data/{C++.gitignore → github/C++.gitignore} +0 -0
  12. data/data/{C.gitignore → github/C.gitignore} +0 -0
  13. data/data/{CFWheels.gitignore → github/CFWheels.gitignore} +0 -0
  14. data/data/{CMake.gitignore → github/CMake.gitignore} +0 -0
  15. data/data/{CONTRIBUTING.md → github/CONTRIBUTING.md} +0 -0
  16. data/data/{CakePHP.gitignore → github/CakePHP.gitignore} +0 -0
  17. data/data/{ChefCookbook.gitignore → github/ChefCookbook.gitignore} +0 -0
  18. data/data/{Clojure.gitignore → github/Clojure.gitignore} +0 -0
  19. data/data/{CodeIgniter.gitignore → github/CodeIgniter.gitignore} +0 -0
  20. data/data/{CommonLisp.gitignore → github/CommonLisp.gitignore} +0 -0
  21. data/data/{Composer.gitignore → github/Composer.gitignore} +0 -0
  22. data/data/{Concrete5.gitignore → github/Concrete5.gitignore} +0 -0
  23. data/data/{Coq.gitignore → github/Coq.gitignore} +0 -0
  24. data/data/{DM.gitignore → github/DM.gitignore} +0 -0
  25. data/data/{Dart.gitignore → github/Dart.gitignore} +0 -0
  26. data/data/{Delphi.gitignore → github/Delphi.gitignore} +0 -0
  27. data/data/{Drupal.gitignore → github/Drupal.gitignore} +0 -0
  28. data/data/{EPiServer.gitignore → github/EPiServer.gitignore} +0 -0
  29. data/data/{Eagle.gitignore → github/Eagle.gitignore} +0 -0
  30. data/data/{Elisp.gitignore → github/Elisp.gitignore} +0 -0
  31. data/data/{Elixir.gitignore → github/Elixir.gitignore} +0 -0
  32. data/data/{Erlang.gitignore → github/Erlang.gitignore} +0 -0
  33. data/data/{ExpressionEngine.gitignore → github/ExpressionEngine.gitignore} +0 -0
  34. data/data/{Fancy.gitignore → github/Fancy.gitignore} +0 -0
  35. data/data/{Finale.gitignore → github/Finale.gitignore} +0 -0
  36. data/data/{ForceDotCom.gitignore → github/ForceDotCom.gitignore} +0 -0
  37. data/data/{FuelPHP.gitignore → github/FuelPHP.gitignore} +0 -0
  38. data/data/{GWT.gitignore → github/GWT.gitignore} +0 -0
  39. data/data/{Global → github/Global}/Archives.gitignore +0 -0
  40. data/data/{Global → github/Global}/BricxCC.gitignore +0 -0
  41. data/data/{Global → github/Global}/CVS.gitignore +0 -0
  42. data/data/{Global → github/Global}/Cloud9.gitignore +0 -0
  43. data/data/{Global → github/Global}/DartEditor.gitignore +0 -0
  44. data/data/{Global → github/Global}/Dreamweaver.gitignore +0 -0
  45. data/data/{Global → github/Global}/Eclipse.gitignore +0 -0
  46. data/data/{Global → github/Global}/EiffelStudio.gitignore +0 -0
  47. data/data/{Global → github/Global}/Emacs.gitignore +0 -0
  48. data/data/{Global → github/Global}/Ensime.gitignore +0 -0
  49. data/data/{Global → github/Global}/Espresso.gitignore +0 -0
  50. data/data/{Global → github/Global}/FlexBuilder.gitignore +0 -0
  51. data/data/{Global → github/Global}/IPythonNotebook.gitignore +0 -0
  52. data/data/{Global → github/Global}/JetBrains.gitignore +0 -0
  53. data/data/{Global → github/Global}/KDevelop4.gitignore +0 -0
  54. data/data/{Global → github/Global}/Kate.gitignore +0 -0
  55. data/data/{Global → github/Global}/Lazarus.gitignore +0 -0
  56. data/data/{Global → github/Global}/Linux.gitignore +0 -0
  57. data/data/{Global → github/Global}/Matlab.gitignore +0 -0
  58. data/data/{Global → github/Global}/Mercurial.gitignore +0 -0
  59. data/data/{Global → github/Global}/ModelSim.gitignore +0 -0
  60. data/data/{Global → github/Global}/MonoDevelop.gitignore +0 -0
  61. data/data/{Global → github/Global}/NetBeans.gitignore +0 -0
  62. data/data/{Global → github/Global}/NotepadPP.gitignore +0 -0
  63. data/data/{Global → github/Global}/OSX.gitignore +0 -0
  64. data/data/{Global → github/Global}/Quartus2.gitignore +0 -0
  65. data/data/{Global → github/Global}/README.md +0 -0
  66. data/data/{Global → github/Global}/Redcar.gitignore +0 -0
  67. data/data/{Global → github/Global}/SBT.gitignore +0 -0
  68. data/data/{Global → github/Global}/SVN.gitignore +0 -0
  69. data/data/{Global → github/Global}/SlickEdit.gitignore +0 -0
  70. data/data/{Global → github/Global}/SublimeText.gitignore +0 -0
  71. data/data/{Global → github/Global}/Tags.gitignore +0 -0
  72. data/data/{Global → github/Global}/TextMate.gitignore +0 -0
  73. data/data/{Global → github/Global}/Vagrant.gitignore +0 -0
  74. data/data/{Global → github/Global}/VirtualEnv.gitignore +0 -0
  75. data/data/{Global → github/Global}/Windows.gitignore +0 -0
  76. data/data/{Global → github/Global}/Xcode.gitignore +0 -0
  77. data/data/{Global → github/Global}/XilinxISE.gitignore +0 -0
  78. data/data/{Global → github/Global}/vim.gitignore +0 -0
  79. data/data/{Global → github/Global}/webMethods.gitignore +0 -0
  80. data/data/{Go.gitignore → github/Go.gitignore} +0 -0
  81. data/data/{Gradle.gitignore → github/Gradle.gitignore} +0 -0
  82. data/data/{Grails.gitignore → github/Grails.gitignore} +0 -0
  83. data/data/{Haskell.gitignore → github/Haskell.gitignore} +0 -0
  84. data/data/{Idris.gitignore → github/Idris.gitignore} +0 -0
  85. data/data/{Java.gitignore → github/Java.gitignore} +0 -0
  86. data/data/{Jboss.gitignore → github/Jboss.gitignore} +0 -0
  87. data/data/{Jekyll.gitignore → github/Jekyll.gitignore} +0 -0
  88. data/data/{Joomla.gitignore → github/Joomla.gitignore} +0 -0
  89. data/data/{Jython.gitignore → github/Jython.gitignore} +0 -0
  90. data/data/{Kohana.gitignore → github/Kohana.gitignore} +0 -0
  91. data/data/{LICENSE → github/LICENSE} +0 -0
  92. data/data/{Laravel4.gitignore → github/Laravel4.gitignore} +0 -0
  93. data/data/{Leiningen.gitignore → github/Leiningen.gitignore} +0 -0
  94. data/data/{LemonStand.gitignore → github/LemonStand.gitignore} +0 -0
  95. data/data/{Lilypond.gitignore → github/Lilypond.gitignore} +0 -0
  96. data/data/{Lithium.gitignore → github/Lithium.gitignore} +0 -0
  97. data/data/{Magento.gitignore → github/Magento.gitignore} +0 -0
  98. data/data/{Maven.gitignore → github/Maven.gitignore} +0 -0
  99. data/data/{Mercury.gitignore → github/Mercury.gitignore} +0 -0
  100. data/data/{Meteor.gitignore → github/Meteor.gitignore} +0 -0
  101. data/data/{Node.gitignore → github/Node.gitignore} +0 -0
  102. data/data/{OCaml.gitignore → github/OCaml.gitignore} +0 -0
  103. data/data/{Objective-C.gitignore → github/Objective-C.gitignore} +0 -0
  104. data/data/{Opa.gitignore → github/Opa.gitignore} +0 -0
  105. data/data/{OpenCart.gitignore → github/OpenCart.gitignore} +0 -0
  106. data/data/{OracleForms.gitignore → github/OracleForms.gitignore} +0 -0
  107. data/data/{Packer.gitignore → github/Packer.gitignore} +0 -0
  108. data/data/{Perl.gitignore → github/Perl.gitignore} +0 -0
  109. data/data/{Phalcon.gitignore → github/Phalcon.gitignore} +0 -0
  110. data/data/{PlayFramework.gitignore → github/PlayFramework.gitignore} +0 -0
  111. data/data/{Plone.gitignore → github/Plone.gitignore} +0 -0
  112. data/data/{Prestashop.gitignore → github/Prestashop.gitignore} +0 -0
  113. data/data/{Processing.gitignore → github/Processing.gitignore} +0 -0
  114. data/data/{Python.gitignore → github/Python.gitignore} +0 -0
  115. data/data/{Qooxdoo.gitignore → github/Qooxdoo.gitignore} +0 -0
  116. data/data/{Qt.gitignore → github/Qt.gitignore} +0 -0
  117. data/data/{R.gitignore → github/R.gitignore} +0 -0
  118. data/data/{README.md → github/README.md} +0 -0
  119. data/data/{ROS.gitignore → github/ROS.gitignore} +0 -0
  120. data/data/{Rails.gitignore → github/Rails.gitignore} +0 -0
  121. data/data/{RhodesRhomobile.gitignore → github/RhodesRhomobile.gitignore} +0 -0
  122. data/data/{Ruby.gitignore → github/Ruby.gitignore} +0 -0
  123. data/data/{SCons.gitignore → github/SCons.gitignore} +0 -0
  124. data/data/{Sass.gitignore → github/Sass.gitignore} +0 -0
  125. data/data/{Scala.gitignore → github/Scala.gitignore} +0 -0
  126. data/data/{Scrivener.gitignore → github/Scrivener.gitignore} +0 -0
  127. data/data/{Sdcc.gitignore → github/Sdcc.gitignore} +0 -0
  128. data/data/{SeamGen.gitignore → github/SeamGen.gitignore} +0 -0
  129. data/data/{SketchUp.gitignore → github/SketchUp.gitignore} +0 -0
  130. data/data/{SugarCRM.gitignore → github/SugarCRM.gitignore} +0 -0
  131. data/data/{Symfony.gitignore → github/Symfony.gitignore} +0 -0
  132. data/data/{Symfony2.gitignore → github/Symfony2.gitignore} +0 -0
  133. data/data/{SymphonyCMS.gitignore → github/SymphonyCMS.gitignore} +0 -0
  134. data/data/{Target3001.gitignore → github/Target3001.gitignore} +0 -0
  135. data/data/{Tasm.gitignore → github/Tasm.gitignore} +0 -0
  136. data/data/{TeX.gitignore → github/TeX.gitignore} +0 -0
  137. data/data/{Textpattern.gitignore → github/Textpattern.gitignore} +0 -0
  138. data/data/{TurboGears2.gitignore → github/TurboGears2.gitignore} +0 -0
  139. data/data/{Typo3.gitignore → github/Typo3.gitignore} +0 -0
  140. data/data/{Umbraco.gitignore → github/Umbraco.gitignore} +0 -0
  141. data/data/{Unity.gitignore → github/Unity.gitignore} +0 -0
  142. data/data/{VVVV.gitignore → github/VVVV.gitignore} +0 -0
  143. data/data/{VisualStudio.gitignore → github/VisualStudio.gitignore} +0 -0
  144. data/data/{Waf.gitignore → github/Waf.gitignore} +0 -0
  145. data/data/{WordPress.gitignore → github/WordPress.gitignore} +0 -0
  146. data/data/{Yeoman.gitignore → github/Yeoman.gitignore} +0 -0
  147. data/data/{Yii.gitignore → github/Yii.gitignore} +0 -0
  148. data/data/{ZendFramework.gitignore → github/ZendFramework.gitignore} +0 -0
  149. data/data/{gcov.gitignore → github/gcov.gitignore} +0 -0
  150. data/data/{nanoc.gitignore → github/nanoc.gitignore} +0 -0
  151. data/data/{stella.gitignore → github/stella.gitignore} +0 -0
  152. data/forgitter.gemspec +1 -0
  153. data/lib/forgitter/cli/option_parser.rb +5 -3
  154. data/lib/forgitter/types.rb +38 -158
  155. data/lib/forgitter/version.rb +1 -1
  156. metadata +164 -150
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c10d64b34d7c961087c18be6e36432fcb9587fdf
4
- data.tar.gz: 2b7c703373f2abd6ea762ffd62ed2469e71d5aa5
3
+ metadata.gz: 31dec0e188603cd0a2ec62fe097f63b42889d9c3
4
+ data.tar.gz: ac2b7d96e72d4b8ff8cc7d6eee3e9bd260c1bdea
5
5
  SHA512:
6
- metadata.gz: 90497f42b3db8ddacac166f9f0177ebd3f8abde582867711c491c8e90037a8d3b1273a2a60b6cf366654d934754c7629b79ce1dc0851de2e0ea801d57ca24260
7
- data.tar.gz: 30f4ce724fd24b709a8a4fe36651441af3da43020c184a08289707b63c05f99b00d8daeda6b9837a72f592085dfc1f0507370d2c00ffa0053a0e8b544b45b419
6
+ metadata.gz: f9fa43d579eb4fea233a51567fb8694aec13b5628d20764547267ebf170aec81a23d761c25780371a2e69d894805b3ee1125255aee3643d547b6e8a0132608ea
7
+ data.tar.gz: f691c007e0db6b955ac82d1a487c2e3db61a69e9cfcefb970d02c19770abe065a08f91065c6f6a264005579d24b4c5a80691228cb681ef4243c0e80eb4240a9d
data/.gitmodules CHANGED
@@ -1,3 +1,3 @@
1
- [submodule "data"]
2
- path = data
1
+ [submodule "data/github"]
2
+ path = data/github
3
3
  url = git@github.com:github/gitignore
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/forgitter.gemspec CHANGED
@@ -32,4 +32,5 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_development_dependency 'bundler', '~> 1.5'
34
34
  spec.add_development_dependency 'rake'
35
+ spec.add_development_dependency 'debugger'
35
36
  end
@@ -18,9 +18,11 @@ 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
21
+ opts.on('-l', '--list [TAGS]',
22
+ 'List the available types.',
23
+ ' You may optionally provide a comma-separated list of tags to search for.') do |tags|
24
+ tags = tags.nil? ? [] : tags.split(',')
25
+ Forgitter.list_types(tags)
24
26
  exit
25
27
  end
26
28
 
@@ -1,166 +1,46 @@
1
1
  module Forgitter
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',
2
+ def self.parameterize(name)
3
+ name.gsub(/[^a-z0-9+]+/i, '').downcase
4
+ end
5
+
6
+ def self.types
7
+ unless defined?(@@types) && !@@types.empty?
8
+ @@types = []
44
9
 
45
- 'actionscript' => 'Actionscript.gitignore',
46
- 'ada' => 'Ada.gitignore',
47
- 'agda' => 'Agda.gitignore',
48
- 'android' => 'Android.gitignore',
49
- 'appceleratortitanium' => 'AppceleratorTitanium.gitignore',
50
- 'archlinuxpackages' => 'ArchLinuxPackages.gitignore',
51
- 'autotools' => 'Autotools.gitignore',
52
- 'bancha' => 'Bancha.gitignore',
53
- 'c++' => 'C++.gitignore',
54
- 'c' => 'C.gitignore',
55
- 'cfwheels' => 'CFWheels.gitignore',
56
- 'cmake' => 'CMake.gitignore',
57
- 'cakephp' => 'CakePHP.gitignore',
58
- 'chefcookbook' => 'ChefCookbook.gitignore',
59
- 'clojure' => 'Clojure.gitignore',
60
- 'codeigniter' => 'CodeIgniter.gitignore',
61
- 'commonlisp' => 'CommonLisp.gitignore',
62
- 'composer' => 'Composer.gitignore',
63
- 'concrete' => 'Concrete5.gitignore',
64
- 'coq' => 'Coq.gitignore',
65
- 'dm' => 'DM.gitignore',
66
- 'dart' => 'Dart.gitignore',
67
- 'delphi' => 'Delphi.gitignore',
68
- 'drupal' => 'Drupal.gitignore',
69
- 'episerver' => 'EPiServer.gitignore',
70
- 'eagle' => 'Eagle.gitignore',
71
- 'elisp' => 'Elisp.gitignore',
72
- 'elixir' => 'Elixir.gitignore',
73
- 'erlang' => 'Erlang.gitignore',
74
- 'expressionengine' => 'ExpressionEngine.gitignore',
75
- 'fancy' => 'Fancy.gitignore',
76
- 'finale' => 'Finale.gitignore',
77
- 'forcedotcom' => 'ForceDotCom.gitignore',
78
- 'fuelphp' => 'FuelPHP.gitignore',
79
- 'gwt' => 'GWT.gitignore',
80
- 'go' => 'Go.gitignore',
81
- 'gradle' => 'Gradle.gitignore',
82
- 'grails' => 'Grails.gitignore',
83
- 'haskell' => 'Haskell.gitignore',
84
- 'idris' => 'Idris.gitignore',
85
- 'java' => 'Java.gitignore',
86
- 'jboss' => 'Jboss.gitignore',
87
- 'jekyll' => 'Jekyll.gitignore',
88
- 'joomla' => 'Joomla.gitignore',
89
- 'jython' => 'Jython.gitignore',
90
- 'kohana' => 'Kohana.gitignore',
91
- 'laravel' => 'Laravel4.gitignore',
92
- 'leiningen' => 'Leiningen.gitignore',
93
- 'lemonstand' => 'LemonStand.gitignore',
94
- 'lilypond' => 'Lilypond.gitignore',
95
- 'lithium' => 'Lithium.gitignore',
96
- 'magento' => 'Magento.gitignore',
97
- 'maven' => 'Maven.gitignore',
98
- 'mercury' => 'Mercury.gitignore',
99
- 'meteor' => 'Meteor.gitignore',
100
- 'node' => 'Node.gitignore',
101
- 'ocaml' => 'OCaml.gitignore',
102
- 'objcetivec' => 'Objective-C.gitignore',
103
- 'opa' => 'Opa.gitignore',
104
- 'opencart' => 'OpenCart.gitignore',
105
- 'oracleforms' => 'OracleForms.gitignore',
106
- 'packer' => 'Packer.gitignore',
107
- 'perl' => 'Perl.gitignore',
108
- 'phalcon' => 'Phalcon.gitignore',
109
- 'playframework' => 'PlayFramework.gitignore',
110
- 'plone' => 'Plone.gitignore',
111
- 'prestashtop' => 'Prestashop.gitignore',
112
- 'processing' => 'Processing.gitignore',
113
- 'python' => 'Python.gitignore',
114
- 'qooxdoo' => 'Qooxdoo.gitignore',
115
- 'qt' => 'Qt.gitignore',
116
- 'r' => 'R.gitignore',
117
- 'ros' => 'ROS.gitignore',
118
- 'rails' => 'Rails.gitignore',
119
- 'rhodesrhomobile' => 'RhodesRhomobile.gitignore',
120
- 'ruby' => 'Ruby.gitignore',
121
- 'scons' => 'SCons.gitignore',
122
- 'sass' => 'Sass.gitignore',
123
- 'scala' => 'Scala.gitignore',
124
- 'scrivener' => 'Scrivener.gitignore',
125
- 'sdcc' => 'Sdcc.gitignore',
126
- 'seamgen' => 'SeamGen.gitignore',
127
- 'sketchup' => 'SketchUp.gitignore',
128
- 'sugarcrm' => 'SugarCRM.gitignore',
129
- 'symfony' => 'Symfony.gitignore',
130
- 'symfonytwo' => 'Symfony2.gitignore',
131
- 'symphonycms' => 'SymphonyCMS.gitignore',
132
- 'target' => 'Target3001.gitignore',
133
- 'tasm' => 'Tasm.gitignore',
134
- 'tex' => 'TeX.gitignore',
135
- 'textpattern' => 'Textpattern.gitignore',
136
- 'turbogears' => 'TurboGears2.gitignore',
137
- 'typo' => 'Typo3.gitignore',
138
- 'umbraco' => 'Umbraco.gitignore',
139
- 'unity' => 'Unity.gitignore',
140
- 'vvvv' => 'VVVV.gitignore',
141
- 'visualstudio' => 'VisualStudio.gitignore',
142
- 'waf' => 'Waf.gitignore',
143
- 'wordpress' => 'WordPress.gitignore',
144
- 'yeoman' => 'Yeoman.gitignore',
145
- 'yii' => 'Yii.gitignore',
146
- 'zendframework' => 'ZendFramework.gitignore',
147
- 'gcov' => 'gcov.gitignore',
148
- 'nanoc' => 'nanoc.gitignore',
149
- 'stella' => 'stella.gitignore'
150
- }
10
+ paths = Dir["#{DATA_PATH}/**/*.gitignore"].map { |f| f.sub("#{DATA_PATH}/", '') }
11
+ paths.each do |path|
12
+ type = parameterize(File.basename(path).sub('.gitignore', ''))
13
+ tags = []
14
+ tags = path.sub("/#{File.basename(path)}", '').split('/').map { |tag| parameterize(tag) } if path =~ /\//
151
15
 
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}"]
16
+ @@types << {
17
+ :path => path,
18
+ :name => type,
19
+ :tags => tags
20
+ }
21
+ end
158
22
  end
23
+ @@types
24
+ end
25
+
26
+ def self.list_types(tags = [])
27
+ types = self.types.select { |type| tags.empty? || (tags - type[:tags]).empty? }
28
+
29
+ if types.empty?
30
+ puts 'No types found!'
31
+ else
32
+ lines = []
33
+ col1size = 0
34
+ types.each do |type|
35
+ col1size = type[:name].length if type[:name].length > col1size
36
+ lines << [type[:name], "https://github.com/github/gitignore/blob/master/#{type[:path]}"]
37
+ end
159
38
 
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])
39
+ puts 'Available types:'
40
+ puts
41
+ lines.sort_by { |line| line[0] }.each do |line|
42
+ printf("%-#{col1size}s\t%s\n", line[0], line[1])
43
+ end
164
44
  end
165
45
  end
166
46
  end
@@ -1,3 +1,3 @@
1
1
  module Forgitter
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Dunson
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: debugger
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
42
56
  description: Forgitter is a .gitignore generator. It uses the *.gitignore files found
43
57
  at https://github.com/github/gitignore to generate a combined .gitignore file locally.
44
58
  email:
@@ -56,155 +70,155 @@ files:
56
70
  - README.md
57
71
  - Rakefile
58
72
  - bin/forgitter
59
- - data/Actionscript.gitignore
60
- - data/Ada.gitignore
61
- - data/Agda.gitignore
62
- - data/Android.gitignore
63
- - data/AppceleratorTitanium.gitignore
64
- - data/ArchLinuxPackages.gitignore
65
- - data/Autotools.gitignore
66
- - data/Bancha.gitignore
67
- - data/C++.gitignore
68
- - data/C.gitignore
69
- - data/CFWheels.gitignore
70
- - data/CMake.gitignore
71
- - data/CONTRIBUTING.md
72
- - data/CakePHP.gitignore
73
- - data/ChefCookbook.gitignore
74
- - data/Clojure.gitignore
75
- - data/CodeIgniter.gitignore
76
- - data/CommonLisp.gitignore
77
- - data/Composer.gitignore
78
- - data/Concrete5.gitignore
79
- - data/Coq.gitignore
80
- - data/DM.gitignore
81
- - data/Dart.gitignore
82
- - data/Delphi.gitignore
83
- - data/Drupal.gitignore
84
- - data/EPiServer.gitignore
85
- - data/Eagle.gitignore
86
- - data/Elisp.gitignore
87
- - data/Elixir.gitignore
88
- - data/Erlang.gitignore
89
- - data/ExpressionEngine.gitignore
90
- - data/Fancy.gitignore
91
- - data/Finale.gitignore
92
- - data/ForceDotCom.gitignore
93
- - data/FuelPHP.gitignore
94
- - data/GWT.gitignore
95
- - data/Global/Archives.gitignore
96
- - data/Global/BricxCC.gitignore
97
- - data/Global/CVS.gitignore
98
- - data/Global/Cloud9.gitignore
99
- - data/Global/DartEditor.gitignore
100
- - data/Global/Dreamweaver.gitignore
101
- - data/Global/Eclipse.gitignore
102
- - data/Global/EiffelStudio.gitignore
103
- - data/Global/Emacs.gitignore
104
- - data/Global/Ensime.gitignore
105
- - data/Global/Espresso.gitignore
106
- - data/Global/FlexBuilder.gitignore
107
- - data/Global/IPythonNotebook.gitignore
108
- - data/Global/JetBrains.gitignore
109
- - data/Global/KDevelop4.gitignore
110
- - data/Global/Kate.gitignore
111
- - data/Global/Lazarus.gitignore
112
- - data/Global/Linux.gitignore
113
- - data/Global/Matlab.gitignore
114
- - data/Global/Mercurial.gitignore
115
- - data/Global/ModelSim.gitignore
116
- - data/Global/MonoDevelop.gitignore
117
- - data/Global/NetBeans.gitignore
118
- - data/Global/NotepadPP.gitignore
119
- - data/Global/OSX.gitignore
120
- - data/Global/Quartus2.gitignore
121
- - data/Global/README.md
122
- - data/Global/Redcar.gitignore
123
- - data/Global/SBT.gitignore
124
- - data/Global/SVN.gitignore
125
- - data/Global/SlickEdit.gitignore
126
- - data/Global/SublimeText.gitignore
127
- - data/Global/Tags.gitignore
128
- - data/Global/TextMate.gitignore
129
- - data/Global/Vagrant.gitignore
130
- - data/Global/VirtualEnv.gitignore
131
- - data/Global/Windows.gitignore
132
- - data/Global/Xcode.gitignore
133
- - data/Global/XilinxISE.gitignore
134
- - data/Global/vim.gitignore
135
- - data/Global/webMethods.gitignore
136
- - data/Go.gitignore
137
- - data/Gradle.gitignore
138
- - data/Grails.gitignore
139
- - data/Haskell.gitignore
140
- - data/Idris.gitignore
141
- - data/Java.gitignore
142
- - data/Jboss.gitignore
143
- - data/Jekyll.gitignore
144
- - data/Joomla.gitignore
145
- - data/Jython.gitignore
146
- - data/Kohana.gitignore
147
- - data/LICENSE
148
- - data/Laravel4.gitignore
149
- - data/Leiningen.gitignore
150
- - data/LemonStand.gitignore
151
- - data/Lilypond.gitignore
152
- - data/Lithium.gitignore
153
- - data/Magento.gitignore
154
- - data/Maven.gitignore
155
- - data/Mercury.gitignore
156
- - data/Meteor.gitignore
157
- - data/Node.gitignore
158
- - data/OCaml.gitignore
159
- - data/Objective-C.gitignore
160
- - data/Opa.gitignore
161
- - data/OpenCart.gitignore
162
- - data/OracleForms.gitignore
163
- - data/Packer.gitignore
164
- - data/Perl.gitignore
165
- - data/Phalcon.gitignore
166
- - data/PlayFramework.gitignore
167
- - data/Plone.gitignore
168
- - data/Prestashop.gitignore
169
- - data/Processing.gitignore
170
- - data/Python.gitignore
171
- - data/Qooxdoo.gitignore
172
- - data/Qt.gitignore
173
- - data/R.gitignore
174
- - data/README.md
175
- - data/ROS.gitignore
176
- - data/Rails.gitignore
177
- - data/RhodesRhomobile.gitignore
178
- - data/Ruby.gitignore
179
- - data/SCons.gitignore
180
- - data/Sass.gitignore
181
- - data/Scala.gitignore
182
- - data/Scrivener.gitignore
183
- - data/Sdcc.gitignore
184
- - data/SeamGen.gitignore
185
- - data/SketchUp.gitignore
186
- - data/SugarCRM.gitignore
187
- - data/Symfony.gitignore
188
- - data/Symfony2.gitignore
189
- - data/SymphonyCMS.gitignore
190
- - data/Target3001.gitignore
191
- - data/Tasm.gitignore
192
- - data/TeX.gitignore
193
- - data/Textpattern.gitignore
194
- - data/TurboGears2.gitignore
195
- - data/Typo3.gitignore
196
- - data/Umbraco.gitignore
197
- - data/Unity.gitignore
198
- - data/VVVV.gitignore
199
- - data/VisualStudio.gitignore
200
- - data/Waf.gitignore
201
- - data/WordPress.gitignore
202
- - data/Yeoman.gitignore
203
- - data/Yii.gitignore
204
- - data/ZendFramework.gitignore
205
- - data/gcov.gitignore
206
- - data/nanoc.gitignore
207
- - data/stella.gitignore
73
+ - data/github/Actionscript.gitignore
74
+ - data/github/Ada.gitignore
75
+ - data/github/Agda.gitignore
76
+ - data/github/Android.gitignore
77
+ - data/github/AppceleratorTitanium.gitignore
78
+ - data/github/ArchLinuxPackages.gitignore
79
+ - data/github/Autotools.gitignore
80
+ - data/github/Bancha.gitignore
81
+ - data/github/C++.gitignore
82
+ - data/github/C.gitignore
83
+ - data/github/CFWheels.gitignore
84
+ - data/github/CMake.gitignore
85
+ - data/github/CONTRIBUTING.md
86
+ - data/github/CakePHP.gitignore
87
+ - data/github/ChefCookbook.gitignore
88
+ - data/github/Clojure.gitignore
89
+ - data/github/CodeIgniter.gitignore
90
+ - data/github/CommonLisp.gitignore
91
+ - data/github/Composer.gitignore
92
+ - data/github/Concrete5.gitignore
93
+ - data/github/Coq.gitignore
94
+ - data/github/DM.gitignore
95
+ - data/github/Dart.gitignore
96
+ - data/github/Delphi.gitignore
97
+ - data/github/Drupal.gitignore
98
+ - data/github/EPiServer.gitignore
99
+ - data/github/Eagle.gitignore
100
+ - data/github/Elisp.gitignore
101
+ - data/github/Elixir.gitignore
102
+ - data/github/Erlang.gitignore
103
+ - data/github/ExpressionEngine.gitignore
104
+ - data/github/Fancy.gitignore
105
+ - data/github/Finale.gitignore
106
+ - data/github/ForceDotCom.gitignore
107
+ - data/github/FuelPHP.gitignore
108
+ - data/github/GWT.gitignore
109
+ - data/github/Global/Archives.gitignore
110
+ - data/github/Global/BricxCC.gitignore
111
+ - data/github/Global/CVS.gitignore
112
+ - data/github/Global/Cloud9.gitignore
113
+ - data/github/Global/DartEditor.gitignore
114
+ - data/github/Global/Dreamweaver.gitignore
115
+ - data/github/Global/Eclipse.gitignore
116
+ - data/github/Global/EiffelStudio.gitignore
117
+ - data/github/Global/Emacs.gitignore
118
+ - data/github/Global/Ensime.gitignore
119
+ - data/github/Global/Espresso.gitignore
120
+ - data/github/Global/FlexBuilder.gitignore
121
+ - data/github/Global/IPythonNotebook.gitignore
122
+ - data/github/Global/JetBrains.gitignore
123
+ - data/github/Global/KDevelop4.gitignore
124
+ - data/github/Global/Kate.gitignore
125
+ - data/github/Global/Lazarus.gitignore
126
+ - data/github/Global/Linux.gitignore
127
+ - data/github/Global/Matlab.gitignore
128
+ - data/github/Global/Mercurial.gitignore
129
+ - data/github/Global/ModelSim.gitignore
130
+ - data/github/Global/MonoDevelop.gitignore
131
+ - data/github/Global/NetBeans.gitignore
132
+ - data/github/Global/NotepadPP.gitignore
133
+ - data/github/Global/OSX.gitignore
134
+ - data/github/Global/Quartus2.gitignore
135
+ - data/github/Global/README.md
136
+ - data/github/Global/Redcar.gitignore
137
+ - data/github/Global/SBT.gitignore
138
+ - data/github/Global/SVN.gitignore
139
+ - data/github/Global/SlickEdit.gitignore
140
+ - data/github/Global/SublimeText.gitignore
141
+ - data/github/Global/Tags.gitignore
142
+ - data/github/Global/TextMate.gitignore
143
+ - data/github/Global/Vagrant.gitignore
144
+ - data/github/Global/VirtualEnv.gitignore
145
+ - data/github/Global/Windows.gitignore
146
+ - data/github/Global/Xcode.gitignore
147
+ - data/github/Global/XilinxISE.gitignore
148
+ - data/github/Global/vim.gitignore
149
+ - data/github/Global/webMethods.gitignore
150
+ - data/github/Go.gitignore
151
+ - data/github/Gradle.gitignore
152
+ - data/github/Grails.gitignore
153
+ - data/github/Haskell.gitignore
154
+ - data/github/Idris.gitignore
155
+ - data/github/Java.gitignore
156
+ - data/github/Jboss.gitignore
157
+ - data/github/Jekyll.gitignore
158
+ - data/github/Joomla.gitignore
159
+ - data/github/Jython.gitignore
160
+ - data/github/Kohana.gitignore
161
+ - data/github/LICENSE
162
+ - data/github/Laravel4.gitignore
163
+ - data/github/Leiningen.gitignore
164
+ - data/github/LemonStand.gitignore
165
+ - data/github/Lilypond.gitignore
166
+ - data/github/Lithium.gitignore
167
+ - data/github/Magento.gitignore
168
+ - data/github/Maven.gitignore
169
+ - data/github/Mercury.gitignore
170
+ - data/github/Meteor.gitignore
171
+ - data/github/Node.gitignore
172
+ - data/github/OCaml.gitignore
173
+ - data/github/Objective-C.gitignore
174
+ - data/github/Opa.gitignore
175
+ - data/github/OpenCart.gitignore
176
+ - data/github/OracleForms.gitignore
177
+ - data/github/Packer.gitignore
178
+ - data/github/Perl.gitignore
179
+ - data/github/Phalcon.gitignore
180
+ - data/github/PlayFramework.gitignore
181
+ - data/github/Plone.gitignore
182
+ - data/github/Prestashop.gitignore
183
+ - data/github/Processing.gitignore
184
+ - data/github/Python.gitignore
185
+ - data/github/Qooxdoo.gitignore
186
+ - data/github/Qt.gitignore
187
+ - data/github/R.gitignore
188
+ - data/github/README.md
189
+ - data/github/ROS.gitignore
190
+ - data/github/Rails.gitignore
191
+ - data/github/RhodesRhomobile.gitignore
192
+ - data/github/Ruby.gitignore
193
+ - data/github/SCons.gitignore
194
+ - data/github/Sass.gitignore
195
+ - data/github/Scala.gitignore
196
+ - data/github/Scrivener.gitignore
197
+ - data/github/Sdcc.gitignore
198
+ - data/github/SeamGen.gitignore
199
+ - data/github/SketchUp.gitignore
200
+ - data/github/SugarCRM.gitignore
201
+ - data/github/Symfony.gitignore
202
+ - data/github/Symfony2.gitignore
203
+ - data/github/SymphonyCMS.gitignore
204
+ - data/github/Target3001.gitignore
205
+ - data/github/Tasm.gitignore
206
+ - data/github/TeX.gitignore
207
+ - data/github/Textpattern.gitignore
208
+ - data/github/TurboGears2.gitignore
209
+ - data/github/Typo3.gitignore
210
+ - data/github/Umbraco.gitignore
211
+ - data/github/Unity.gitignore
212
+ - data/github/VVVV.gitignore
213
+ - data/github/VisualStudio.gitignore
214
+ - data/github/Waf.gitignore
215
+ - data/github/WordPress.gitignore
216
+ - data/github/Yeoman.gitignore
217
+ - data/github/Yii.gitignore
218
+ - data/github/ZendFramework.gitignore
219
+ - data/github/gcov.gitignore
220
+ - data/github/nanoc.gitignore
221
+ - data/github/stella.gitignore
208
222
  - forgitter.gemspec
209
223
  - lib/forgitter.rb
210
224
  - lib/forgitter/cli.rb