ignorify 1.0.0
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 +7 -0
- data/.gitignore +33 -0
- data/.rspec +2 -0
- data/.travis.yml +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +73 -0
- data/Rakefile +2 -0
- data/bin/ignorify +5 -0
- data/ignorify.gemspec +31 -0
- data/lib/ignorify/version.rb +3 -0
- data/lib/ignorify.rb +52 -0
- data/lib/util.rb +64 -0
- data/spec/ignorify_spec.rb +41 -0
- data/spec/original/gitignore +33 -0
- data/spec/spec_helper.rb +107 -0
- metadata +193 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d25f3aeebd3a2791e0cf183e7b536e015f1574a9
|
4
|
+
data.tar.gz: 2dbf22d6842c99dc7705ef4a0bd9d7f6e0fc435e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0a8f11d502a6dca7b83b8cdea3a18372d74e2ca82f463579ed6efb3bcd8af6216f385ab90c81ab5cc1e9740fdd14d26731ed5f7e22b7cdd910d409e90461c85f
|
7
|
+
data.tar.gz: 160ec8ff4f6374475c65d5b07a871c66b9f25d65304aef02244a7519d34a138573cc876f4a28b2d4bf6209e01fbb6d4f36cb41c205e8fa3012740b7aca1ee631
|
data/.gitignore
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/test/tmp/
|
9
|
+
/test/version_tmp/
|
10
|
+
/tmp/
|
11
|
+
|
12
|
+
## Specific to RubyMotion:
|
13
|
+
.dat*
|
14
|
+
.repl_history
|
15
|
+
build/
|
16
|
+
|
17
|
+
## Documentation cache and generated files:
|
18
|
+
/.yardoc/
|
19
|
+
/_yardoc/
|
20
|
+
/doc/
|
21
|
+
/rdoc/
|
22
|
+
|
23
|
+
## Environment normalisation:
|
24
|
+
/.bundle/
|
25
|
+
/lib/bundler/man/
|
26
|
+
|
27
|
+
# for a library or gem, you might want to ignore these files since the code is
|
28
|
+
# intended to run in multiple environments; otherwise, check them in:
|
29
|
+
/Gemfile.lock
|
30
|
+
# .ruby-version
|
31
|
+
# .ruby-gemset
|
32
|
+
|
33
|
+
# unless supporting rvm
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 vivangkumar
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# Ignorify
|
2
|
+
[](https://travis-ci.org/vivangkumar/ignorify)
|
3
|
+
[](https://codeclimate.com/github/vivangkumar/ignorify)
|
4
|
+
|
5
|
+
A simple command line tool to pull and save .gitignore files!
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Install using gem
|
10
|
+
|
11
|
+
`gem install ignorify`
|
12
|
+
|
13
|
+
Or clone the repository and build a gem:
|
14
|
+
|
15
|
+
`gem build ignorify.gemspec`
|
16
|
+
|
17
|
+
And then install the gem.
|
18
|
+
|
19
|
+
Alternatively, use
|
20
|
+
|
21
|
+
`rake install`
|
22
|
+
|
23
|
+
## Running Tests
|
24
|
+
|
25
|
+
You can run the test suite using `rspec`
|
26
|
+
|
27
|
+
## Docs
|
28
|
+
|
29
|
+
### How it works
|
30
|
+
|
31
|
+
Ignorify crawls the github/gitignore repository to get the lastest gitignore files.
|
32
|
+
It then downloads and creates a .gitignore file in the directory.
|
33
|
+
The file is fetched using cURL.
|
34
|
+
But, if cURL is not installed, it manually grabs by crawling.
|
35
|
+
|
36
|
+
### Available commands
|
37
|
+
|
38
|
+
- `list`: Shows a list of all available files.
|
39
|
+
- `help`: Shows available commands.
|
40
|
+
- `version`: Returns the current version number.
|
41
|
+
- `create <filename>`: Places a .gitignore file in the current directory.
|
42
|
+
|
43
|
+
### Usage
|
44
|
+
|
45
|
+
`ignorify create java`
|
46
|
+
|
47
|
+
will return
|
48
|
+
|
49
|
+
```
|
50
|
+
Fetching gitignore...
|
51
|
+
######################################################################## 100.0%
|
52
|
+
.gitignore created
|
53
|
+
```
|
54
|
+
|
55
|
+
If the file searched for is not available, an error message will be shown.
|
56
|
+
|
57
|
+
`File was not found in the git repository`
|
58
|
+
|
59
|
+
### Dependencies
|
60
|
+
|
61
|
+
- Thor: Library to build CLI's.
|
62
|
+
- Nokogiri: A web crawler.
|
63
|
+
- Colorize: Easily adds colours to the terminal.
|
64
|
+
- Rspec: Ruby's favourite testing tool.
|
65
|
+
- Codeclimate-Test-Reporter: Test coverage reporter.
|
66
|
+
|
67
|
+
## Contributing
|
68
|
+
|
69
|
+
1. Fork it ( https://github.com/vivangkumar/ignorify/fork )
|
70
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
71
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
72
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
73
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/ignorify
ADDED
data/ignorify.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'ignorify/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ignorify"
|
8
|
+
spec.version = Ignorify::VERSION
|
9
|
+
spec.authors = ["vivangkumar"]
|
10
|
+
spec.email = ["vivangkumar@gmail.com"]
|
11
|
+
spec.summary = "Pull and add gitignore files from the github repository to your project!"
|
12
|
+
spec.description = "
|
13
|
+
Pull and add gitignore files from the github repository to your project!
|
14
|
+
Ignorify crawls the github/gitignore repository and fetches your .gitignore.
|
15
|
+
"
|
16
|
+
spec.homepage = "https://github.com/vivangkumar/ignorify"
|
17
|
+
spec.license = "MIT"
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0")
|
20
|
+
spec.executables = ["ignorify"]
|
21
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "thor", "~>0.19", ">= 0.19.1"
|
27
|
+
spec.add_development_dependency "nokogiri", "~>1.6", ">= 1.6.5"
|
28
|
+
spec.add_development_dependency "colorize", "~>0.7", ">= 0.7.5"
|
29
|
+
spec.add_development_dependency "rspec", "~>3.1", ">= 3.1.0"
|
30
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~>0.4", ">= 0.4.5"
|
31
|
+
end
|
data/lib/ignorify.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require "ignorify/version"
|
2
|
+
require "thor"
|
3
|
+
require_relative "util"
|
4
|
+
require "colorize"
|
5
|
+
|
6
|
+
module Ignorify
|
7
|
+
class Ignorify < Thor
|
8
|
+
|
9
|
+
# Lists all available ignorify commands.
|
10
|
+
#
|
11
|
+
# Example:
|
12
|
+
# ignorify list
|
13
|
+
#
|
14
|
+
# Prints to stdout.
|
15
|
+
desc "list", "List available .gitignore files."
|
16
|
+
def list
|
17
|
+
$stdout.puts Utils.file_list.keys
|
18
|
+
end
|
19
|
+
|
20
|
+
# Prints the current ignorify version.
|
21
|
+
#
|
22
|
+
# Example:
|
23
|
+
# ignorify version
|
24
|
+
#
|
25
|
+
# Prints to stdout.
|
26
|
+
desc "version", "Get current ignorify version."
|
27
|
+
def version
|
28
|
+
$stdout.puts VERSION
|
29
|
+
end
|
30
|
+
|
31
|
+
# Downloads the specified .gitignore file.
|
32
|
+
# Saves it to the working directory.
|
33
|
+
#
|
34
|
+
# Example:
|
35
|
+
# ignorify create java
|
36
|
+
#
|
37
|
+
# Prints to stdout.
|
38
|
+
desc "create <FILENAME>", "Downloads required .gitignore file"
|
39
|
+
def create(name)
|
40
|
+
file_list = Utils.file_list
|
41
|
+
if file_list.has_key? name
|
42
|
+
if Utils.create_file(file_list[name])
|
43
|
+
$stdout.puts ".gitignore created".green
|
44
|
+
else
|
45
|
+
$stdout.puts "Error creating .gitignore".red
|
46
|
+
end
|
47
|
+
else
|
48
|
+
$stdout.puts "File was not found in the git repository".red
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/util.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
require "nokogiri"
|
2
|
+
require "open-uri"
|
3
|
+
|
4
|
+
module Ignorify
|
5
|
+
|
6
|
+
# Utility class.
|
7
|
+
# Generates file list and downloads gitignores.
|
8
|
+
class Utils
|
9
|
+
|
10
|
+
REPOSITORY_URL = "https://github.com/github/gitignore"
|
11
|
+
REPOSITORY_RAW_URL = "https://raw.githubusercontent.com/github/gitignore/master/"
|
12
|
+
FILENAME = ".gitignore";
|
13
|
+
|
14
|
+
# Get file list from Github repository.
|
15
|
+
# Crawls the github repository.
|
16
|
+
# Generates a hash with lowercase values mapped to crawled values.
|
17
|
+
#
|
18
|
+
# returns {Hash}
|
19
|
+
def self.file_list
|
20
|
+
file_list = {}
|
21
|
+
|
22
|
+
page = Nokogiri::HTML(open(REPOSITORY_URL))
|
23
|
+
page.css('td.content span.css-truncate a').each do |tr|
|
24
|
+
if tr.content.end_with?(FILENAME)
|
25
|
+
trimmed_name = tr.content.chomp(FILENAME)
|
26
|
+
file_list[trimmed_name.downcase] = trimmed_name
|
27
|
+
end
|
28
|
+
end
|
29
|
+
return file_list
|
30
|
+
end
|
31
|
+
|
32
|
+
# Grabs the latest gitignore.
|
33
|
+
# Saves .gitignore.
|
34
|
+
# We check to see if cURL is installed.
|
35
|
+
#
|
36
|
+
# As a fallback, scrape the file.
|
37
|
+
# param {string} name - name of file.
|
38
|
+
#
|
39
|
+
# returns {boolean}
|
40
|
+
def self.create_file(name)
|
41
|
+
request_url = REPOSITORY_RAW_URL + name + FILENAME
|
42
|
+
system("curl -V > /dev/null")
|
43
|
+
|
44
|
+
if $? == 0
|
45
|
+
system("echo Fetching gitignore...")
|
46
|
+
file_created = system("curl --progress -o #{FILENAME} #{request_url}")
|
47
|
+
return file_created
|
48
|
+
else
|
49
|
+
file = Nokogiri::HTML(open(request_url))
|
50
|
+
file_content = file.css('body p').text
|
51
|
+
|
52
|
+
File.open(FILENAME, "w") do |file|
|
53
|
+
file.write(file_content)
|
54
|
+
end
|
55
|
+
|
56
|
+
if File.exist?(FILENAME) && FILENAME.size > 0
|
57
|
+
return true
|
58
|
+
else
|
59
|
+
return false
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require_relative '../lib/ignorify'
|
3
|
+
require_relative '../lib/ignorify/version'
|
4
|
+
require "colorize"
|
5
|
+
|
6
|
+
describe Ignorify::Ignorify do
|
7
|
+
describe "#list" do
|
8
|
+
it "should list all available .gitignore files" do
|
9
|
+
file_list = Ignorify::Utils.file_list.keys.join("\n") + "\n"
|
10
|
+
list_task = capture(:stdout) { Ignorify::Ignorify.start(['list']) }
|
11
|
+
expect(list_task).to eq(file_list)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "#create" do
|
16
|
+
it "should create a new .gitignore file" do
|
17
|
+
args = %w[create java]
|
18
|
+
create_task = capture(:stdout) { Ignorify::Ignorify.start(args) }
|
19
|
+
expect(create_task).to eq(".gitignore created".green + "\n")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should show an error if the file is not in the list" do
|
23
|
+
args = %w[create randomlanguage]
|
24
|
+
create_task = capture(:stdout) { Ignorify::Ignorify.start(args) }
|
25
|
+
expect(create_task).to eq("File was not found in the git repository".red + "\n")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "#version" do
|
30
|
+
it "should show the current version number" do
|
31
|
+
args = %w[version]
|
32
|
+
version_task = capture(:stdout) { Ignorify::Ignorify.start(args) }
|
33
|
+
expect(version_task).to eq(Ignorify::VERSION + "\n")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# Teardown modified .gitignore
|
38
|
+
after(:all) do
|
39
|
+
FileUtils.cp('spec/original/gitignore', '.gitignore')
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/test/tmp/
|
9
|
+
/test/version_tmp/
|
10
|
+
/tmp/
|
11
|
+
|
12
|
+
## Specific to RubyMotion:
|
13
|
+
.dat*
|
14
|
+
.repl_history
|
15
|
+
build/
|
16
|
+
|
17
|
+
## Documentation cache and generated files:
|
18
|
+
/.yardoc/
|
19
|
+
/_yardoc/
|
20
|
+
/doc/
|
21
|
+
/rdoc/
|
22
|
+
|
23
|
+
## Environment normalisation:
|
24
|
+
/.bundle/
|
25
|
+
/lib/bundler/man/
|
26
|
+
|
27
|
+
# for a library or gem, you might want to ignore these files since the code is
|
28
|
+
# intended to run in multiple environments; otherwise, check them in:
|
29
|
+
/Gemfile.lock
|
30
|
+
# .ruby-version
|
31
|
+
# .ruby-gemset
|
32
|
+
|
33
|
+
# unless supporting rvm
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
4
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
5
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
6
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
7
|
+
#
|
8
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
9
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
10
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
11
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
12
|
+
# a separate helper file that requires the additional dependencies and performs
|
13
|
+
# the additional setup, and require it from the spec files that actually need it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
RSpec.configure do |config|
|
20
|
+
# rspec-expectations config goes here. You can use an alternate
|
21
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
22
|
+
# assertions if you prefer.
|
23
|
+
config.expect_with :rspec do |expectations|
|
24
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
25
|
+
# and `failure_message` of custom matchers include text for helper methods
|
26
|
+
# defined using `chain`, e.g.:
|
27
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
28
|
+
# # => "be bigger than 2 and smaller than 4"
|
29
|
+
# ...rather than:
|
30
|
+
# # => "be bigger than 2"
|
31
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
32
|
+
end
|
33
|
+
|
34
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
35
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
36
|
+
config.mock_with :rspec do |mocks|
|
37
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
38
|
+
# a real object. This is generally recommended, and will default to
|
39
|
+
# `true` in RSpec 4.
|
40
|
+
mocks.verify_partial_doubles = true
|
41
|
+
end
|
42
|
+
|
43
|
+
# Captures stdout
|
44
|
+
def capture(stream)
|
45
|
+
begin
|
46
|
+
stream = stream.to_s
|
47
|
+
eval "$#{stream} = StringIO.new"
|
48
|
+
yield
|
49
|
+
result = eval("$#{stream}").string
|
50
|
+
ensure
|
51
|
+
eval("$#{stream} = #{stream.upcase}")
|
52
|
+
end
|
53
|
+
|
54
|
+
result
|
55
|
+
end
|
56
|
+
|
57
|
+
config.color = true
|
58
|
+
config.formatter = :documentation
|
59
|
+
# The settings below are suggested to provide a good initial experience
|
60
|
+
# with RSpec, but feel free to customize to your heart's content.
|
61
|
+
=begin
|
62
|
+
# These two settings work together to allow you to limit a spec run
|
63
|
+
# to individual examples or groups you care about by tagging them with
|
64
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
65
|
+
# get run.
|
66
|
+
config.filter_run :focus
|
67
|
+
config.run_all_when_everything_filtered = true
|
68
|
+
|
69
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
70
|
+
# For more details, see:
|
71
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
72
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
73
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
74
|
+
config.disable_monkey_patching!
|
75
|
+
|
76
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
77
|
+
# be too noisy due to issues in dependencies.
|
78
|
+
config.warnings = true
|
79
|
+
|
80
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
81
|
+
# file, and it's useful to allow more verbose output when running an
|
82
|
+
# individual spec file.
|
83
|
+
if config.files_to_run.one?
|
84
|
+
# Use the documentation formatter for detailed output,
|
85
|
+
# unless a formatter has already been configured
|
86
|
+
# (e.g. via a command-line flag).
|
87
|
+
config.default_formatter = 'doc'
|
88
|
+
end
|
89
|
+
|
90
|
+
# Print the 10 slowest examples and example groups at the
|
91
|
+
# end of the spec run, to help surface which specs are running
|
92
|
+
# particularly slow.
|
93
|
+
config.profile_examples = 10
|
94
|
+
|
95
|
+
# Run specs in random order to surface order dependencies. If you find an
|
96
|
+
# order dependency and want to debug it, you can fix the order by providing
|
97
|
+
# the seed, which is printed after each run.
|
98
|
+
# --seed 1234
|
99
|
+
config.order = :random
|
100
|
+
|
101
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
102
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
103
|
+
# test failures related to randomization by passing the same `--seed` value
|
104
|
+
# as the one that triggered the failure.
|
105
|
+
Kernel.srand config.seed
|
106
|
+
=end
|
107
|
+
end
|
metadata
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ignorify
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- vivangkumar
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.19'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.19.1
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0.19'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.19.1
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: nokogiri
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.6'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.6.5
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.6'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.6.5
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: colorize
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0.7'
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 0.7.5
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0.7'
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.7.5
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: rspec
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '3.1'
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.1.0
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.1'
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 3.1.0
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: codeclimate-test-reporter
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0.4'
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.4.5
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0.4'
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 0.4.5
|
141
|
+
description: "\n Pull and add gitignore files from the github
|
142
|
+
repository to your project!\n Ignorify crawls the github/gitignore
|
143
|
+
repository and fetches your .gitignore.\n "
|
144
|
+
email:
|
145
|
+
- vivangkumar@gmail.com
|
146
|
+
executables:
|
147
|
+
- ignorify
|
148
|
+
extensions: []
|
149
|
+
extra_rdoc_files: []
|
150
|
+
files:
|
151
|
+
- ".gitignore"
|
152
|
+
- ".rspec"
|
153
|
+
- ".travis.yml"
|
154
|
+
- Gemfile
|
155
|
+
- LICENSE.txt
|
156
|
+
- README.md
|
157
|
+
- Rakefile
|
158
|
+
- bin/ignorify
|
159
|
+
- ignorify.gemspec
|
160
|
+
- lib/ignorify.rb
|
161
|
+
- lib/ignorify/version.rb
|
162
|
+
- lib/util.rb
|
163
|
+
- spec/ignorify_spec.rb
|
164
|
+
- spec/original/gitignore
|
165
|
+
- spec/spec_helper.rb
|
166
|
+
homepage: https://github.com/vivangkumar/ignorify
|
167
|
+
licenses:
|
168
|
+
- MIT
|
169
|
+
metadata: {}
|
170
|
+
post_install_message:
|
171
|
+
rdoc_options: []
|
172
|
+
require_paths:
|
173
|
+
- lib
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '0'
|
184
|
+
requirements: []
|
185
|
+
rubyforge_project:
|
186
|
+
rubygems_version: 2.4.5
|
187
|
+
signing_key:
|
188
|
+
specification_version: 4
|
189
|
+
summary: Pull and add gitignore files from the github repository to your project!
|
190
|
+
test_files:
|
191
|
+
- spec/ignorify_spec.rb
|
192
|
+
- spec/original/gitignore
|
193
|
+
- spec/spec_helper.rb
|