git-ignore 0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2ca6a5b7746f472560a7d854bd3f82e488843426
4
+ data.tar.gz: 9b9e71a44e2dc73335c0591477bcb52a7a2fcd38
5
+ SHA512:
6
+ metadata.gz: ae61ac1e695a1f4bd4ae787fa44302b6bf227a64146e507f1f5a3ce701d9d3cc264878bb6982966e21b4aa547766a190eccf6c85dc4991a599cadc98edcf0041
7
+ data.tar.gz: 8daf571951127afb7f720c1368ddd5330a7961880287847a156ad3a6b0883779e3a5e45a662ea60474257c0e8f7820d84f79be0e72a70be819bf7ddc1821a1dd
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in git-ignore.gemspec
4
+ gemspec
5
+
6
+ gem 'bundler'
7
+ gem 'rake'
8
+ gem 'methadone'
9
+ gem 'rugged', git: 'git://github.com/libgit2/rugged.git', branch: 'development', submodules: true
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 ArchimedesPi
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,20 @@
1
+ # GitIgnore
2
+
3
+ Ever wished you could just `git ignore` a file? You can now!
4
+
5
+ ## Installation
6
+
7
+ $ gem install git-ignore
8
+
9
+ ## Usage
10
+
11
+ It works out-of-the-box, no config necessary.
12
+ Just `git ignore <filename>` in a project to ignore it.
13
+
14
+ ## Contributing
15
+
16
+ 1. Fork it ( https://github.com/[my-github-username]/git-ignore/fork )
17
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
18
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
19
+ 4. Push to the branch (`git push origin my-new-feature`)
20
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'gitignore/version'
4
+ require 'rugged'
5
+
6
+ require 'methadone'
7
+ include Methadone::Main
8
+ include Methadone::CLILogging
9
+
10
+ main do |filename|
11
+ rep = Rugged::Repository.discover(Dir.pwd)
12
+ gitignore = Pathname.new(rep.path).parent + ".gitignore"
13
+ File.open(gitignore.to_path, 'a') do |f|
14
+ f.puts "#{filename}"
15
+ end
16
+ end
17
+
18
+ version GitIgnore::VERSION
19
+ description "Add all those pesky files to the gitignore!"
20
+ arg :filename, :required
21
+
22
+ go!
@@ -0,0 +1,20 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gitignore/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "git-ignore"
8
+ spec.version = GitIgnore::VERSION
9
+ spec.authors = ["ArchimedesPi"]
10
+ spec.email = ["archimedespi3141@gmail.com"]
11
+ spec.summary = %q{Lets you simply `git ignore` files.}
12
+ spec.description = %q{Ever wanted to simply `git ignore` a file? Here's your gem.}
13
+ spec.homepage = "http://archimedespi.github.io/git-ignore"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+ end
@@ -0,0 +1,5 @@
1
+ require "gitignore/version"
2
+
3
+ module GitIgnore
4
+ # ...
5
+ end
@@ -0,0 +1,3 @@
1
+ module GitIgnore
2
+ VERSION = "0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: git-ignore
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - ArchimedesPi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Ever wanted to simply `git ignore` a file? Here's your gem.
14
+ email:
15
+ - archimedespi3141@gmail.com
16
+ executables:
17
+ - git-ignore
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - ".gitignore"
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - bin/git-ignore
27
+ - git-ignore.gemspec
28
+ - lib/gitignore.rb
29
+ - lib/gitignore/version.rb
30
+ homepage: http://archimedespi.github.io/git-ignore
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 2.2.2
51
+ signing_key:
52
+ specification_version: 4
53
+ summary: Lets you simply `git ignore` files.
54
+ test_files: []