bundler_issue_report 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/bin/bundler_issue_report +5 -0
- data/bundler_issue_report.gemspec +19 -0
- data/lib/bundler_issue_report/version.rb +3 -0
- data/lib/bundler_issue_report.rb +63 -0
- metadata +77 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Peter Jaros
|
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,29 @@
|
|
1
|
+
# BundlerIssueReport
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'bundler_issue_report'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install bundler_issue_report
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/bundler_issue_report/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Peter Jaros"]
|
6
|
+
gem.email = ["peter.a.jaros@gmail.com"]
|
7
|
+
gem.description = %q{Builds a report with all the info the Bundler team asks for in issues.}
|
8
|
+
gem.summary = %q{Builds a report with all the info the Bundler team asks for in issues.}
|
9
|
+
gem.homepage = "https://github.com/Peeja/bundler_issue_report"
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "bundler_issue_report"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = BundlerIssueReport::VERSION
|
17
|
+
|
18
|
+
gem.add_development_dependency "rake"
|
19
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require "bundler_issue_report/version"
|
2
|
+
|
3
|
+
module BundlerIssueReport
|
4
|
+
def self.write_report
|
5
|
+
Report.new.write_on($stdout)
|
6
|
+
end
|
7
|
+
|
8
|
+
class Report
|
9
|
+
def write_on(output)
|
10
|
+
output.write <<EOF
|
11
|
+
The command you ran:
|
12
|
+
$ [fill in]
|
13
|
+
|
14
|
+
Exception backtrace(s), if any:
|
15
|
+
[fill in]
|
16
|
+
|
17
|
+
Your Gemfile:
|
18
|
+
#{read_file("Gemfile")}
|
19
|
+
|
20
|
+
Your Gemfile.lock:
|
21
|
+
#{read_file("Gemfile.lock")}
|
22
|
+
|
23
|
+
Your Bundler configuration settings:
|
24
|
+
#{command('bundle', 'config')}
|
25
|
+
|
26
|
+
What version of bundler you are using
|
27
|
+
#{command('bundle', '-v')}
|
28
|
+
|
29
|
+
What version of Ruby you are using
|
30
|
+
#{command('ruby', '-v')}
|
31
|
+
|
32
|
+
What version of Rubygems you are using
|
33
|
+
#{command('gem', '-v')}
|
34
|
+
|
35
|
+
Whether you are using RVM, and if so what version
|
36
|
+
#{command('rvm', '-v')}
|
37
|
+
|
38
|
+
Whether you have the rubygems-bundler gem, which can break gem executables
|
39
|
+
#{gem_version('rubygems-bundler')}
|
40
|
+
|
41
|
+
Whether you have the open_gem gem, which can cause rake activation conflicts
|
42
|
+
#{gem_version('open_gem')}
|
43
|
+
EOF
|
44
|
+
end
|
45
|
+
|
46
|
+
def read_file(filename)
|
47
|
+
File.read(filename).strip
|
48
|
+
rescue Errno::ENOENT
|
49
|
+
"<No #{filename} found>"
|
50
|
+
end
|
51
|
+
|
52
|
+
def command(cmd, args)
|
53
|
+
`#{cmd} #{args}`.strip
|
54
|
+
rescue Errno::ENOENT
|
55
|
+
"<No #{cmd} found>"
|
56
|
+
end
|
57
|
+
|
58
|
+
def gem_version(gem_name)
|
59
|
+
output = `gem list #{gem_name}`.strip
|
60
|
+
output.empty? ? "<#{gem_name} not found>" : output
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
metadata
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bundler_issue_report
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Peter Jaros
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: Builds a report with all the info the Bundler team asks for in issues.
|
31
|
+
email:
|
32
|
+
- peter.a.jaros@gmail.com
|
33
|
+
executables:
|
34
|
+
- bundler_issue_report
|
35
|
+
extensions: []
|
36
|
+
extra_rdoc_files: []
|
37
|
+
files:
|
38
|
+
- .gitignore
|
39
|
+
- Gemfile
|
40
|
+
- LICENSE
|
41
|
+
- README.md
|
42
|
+
- Rakefile
|
43
|
+
- bin/bundler_issue_report
|
44
|
+
- bundler_issue_report.gemspec
|
45
|
+
- lib/bundler_issue_report.rb
|
46
|
+
- lib/bundler_issue_report/version.rb
|
47
|
+
homepage: https://github.com/Peeja/bundler_issue_report
|
48
|
+
licenses: []
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options: []
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
hash: 856123681153398023
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
hash: 856123681153398023
|
71
|
+
requirements: []
|
72
|
+
rubyforge_project:
|
73
|
+
rubygems_version: 1.8.24
|
74
|
+
signing_key:
|
75
|
+
specification_version: 3
|
76
|
+
summary: Builds a report with all the info the Bundler team asks for in issues.
|
77
|
+
test_files: []
|