bundler-diff 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.rubocop.yml +18 -0
- data/.travis.yml +21 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +74 -0
- data/Rakefile +11 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/bundler-diff.gemspec +32 -0
- data/examples/aws_codebuild/buildspec.yml +12 -0
- data/examples/update_gems +29 -0
- data/exe/bundler-diff +5 -0
- data/lib/bundler-diff.rb +3 -0
- data/lib/bundler_diff.rb +16 -0
- data/lib/bundler_diff/cli.rb +93 -0
- data/lib/bundler_diff/formatter/default.rb +21 -0
- data/lib/bundler_diff/formatter/md_table.rb +49 -0
- data/lib/bundler_diff/version.rb +5 -0
- metadata +150 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 396448a09341622ba815d36158c1c75326187d1e02e80bf034679c3734151ea7
|
4
|
+
data.tar.gz: 258c66d28bcd0fb02d41543e9c33188cb75e3e5b092d77db3d0a70e167f3f2bd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 00bb8a49e251f8c6e14492e46c17f6a8574da4eddcee31d6d008aa83b1402961277cb82266af1d0b2a0cac856bfc0c6c135a9d8817b7b32bd42999a7686f5345
|
7
|
+
data.tar.gz: 8a18283e1635cd52d379e08cc76a3437e4b5a74e7c9e174c02f9d62d00d1b3e23ebe5db5ead6fc8a274ec76cc96e76ad2b220c84398b2c5215f2be800b6ea674
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.3
|
3
|
+
DisplayCopNames: true
|
4
|
+
DisplayStyleGuide: true
|
5
|
+
ExtraDetails: true
|
6
|
+
|
7
|
+
Style/Documentation:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Metrics/BlockLength:
|
11
|
+
Exclude:
|
12
|
+
- 'spec/**/*'
|
13
|
+
|
14
|
+
Metrics/LineLength:
|
15
|
+
Max: 90
|
16
|
+
|
17
|
+
Naming/MemoizedInstanceVariableName:
|
18
|
+
Enabled: false
|
data/.travis.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
sudo: false
|
2
|
+
language: ruby
|
3
|
+
|
4
|
+
rvm:
|
5
|
+
- 2.3.7
|
6
|
+
- 2.4.4
|
7
|
+
- 2.5.1
|
8
|
+
- ruby-head
|
9
|
+
|
10
|
+
before_install:
|
11
|
+
- gem update --system
|
12
|
+
- gem install bundler
|
13
|
+
|
14
|
+
cache: bundler
|
15
|
+
|
16
|
+
matrix:
|
17
|
+
allow_failures:
|
18
|
+
- rvm: ruby-head
|
19
|
+
|
20
|
+
notifications:
|
21
|
+
email: false
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at sinsoku.listy@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 sinsoku
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Bundler Diff
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/bundler-diff.svg)](https://badge.fury.io/rb/bundler-diff)
|
4
|
+
[![Build Status](https://travis-ci.org/sinsoku/bundler-diff.svg?branch=master)](https://travis-ci.org/sinsoku/bundler-diff)
|
5
|
+
[![codecov](https://codecov.io/gh/sinsoku/bundler-diff/branch/master/graph/badge.svg)](https://codecov.io/gh/sinsoku/bundler-diff)
|
6
|
+
|
7
|
+
A bundler subcommand that uses Git, compare with the previous Gemfile.lock, and display updated gems and compare links.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'bundler-diff'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install bundler-diff
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Run `bundle update` as usual:
|
28
|
+
|
29
|
+
```
|
30
|
+
$ bundle update
|
31
|
+
Fetching gem metadata from https://rubygems.org
|
32
|
+
...
|
33
|
+
```
|
34
|
+
|
35
|
+
Then `bundle diff`:
|
36
|
+
|
37
|
+
```
|
38
|
+
$ bundle diff
|
39
|
+
rake: 11.3.0 => 12.0.0 - https://github.com/ruby/rake/compare/v11.3.0...v12.0.0
|
40
|
+
rspec: 3.5.0 =>
|
41
|
+
...
|
42
|
+
```
|
43
|
+
|
44
|
+
You can see updated gems with compare links.
|
45
|
+
|
46
|
+
## Options
|
47
|
+
|
48
|
+
Options are:
|
49
|
+
|
50
|
+
```
|
51
|
+
Usage: bundle diff [options]
|
52
|
+
-c, --commit COMMIT Specify a commit
|
53
|
+
-f, --format FORMATTER Choose a formatter
|
54
|
+
default
|
55
|
+
md_table
|
56
|
+
--escape-json Escape output as a JSON string
|
57
|
+
-v, --version Display the version
|
58
|
+
```
|
59
|
+
|
60
|
+
## Development
|
61
|
+
|
62
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
63
|
+
|
64
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
65
|
+
|
66
|
+
## Contributing
|
67
|
+
|
68
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sinsoku/bundler-diff. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
69
|
+
|
70
|
+
|
71
|
+
## License
|
72
|
+
|
73
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
74
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'bundler-diff'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'bundler_diff/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'bundler-diff'
|
9
|
+
spec.version = BundlerDiff::VERSION
|
10
|
+
spec.authors = ['sinsoku']
|
11
|
+
spec.email = ['sinsoku.listy@gmail.com']
|
12
|
+
|
13
|
+
spec.summary = 'A gem support your "bundle update"'
|
14
|
+
spec.description = 'BundlerDiff show changes with GitHub comapre view urls.'
|
15
|
+
spec.homepage = 'https://github.com/sinsoku/bundler-diff'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
f.match(%r{^(test|spec|features)/})
|
20
|
+
end
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_dependency 'gems_comparator'
|
26
|
+
spec.add_dependency 'parallel'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
|
+
spec.add_development_dependency 'rubocop', '0.56.0'
|
32
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
# TODO: You need to edit these variables
|
5
|
+
REPO=owner/repo
|
6
|
+
BASE_BRANCH=master
|
7
|
+
|
8
|
+
if [ -z "${GITHUB_TOKEN}" ]
|
9
|
+
then
|
10
|
+
echo 'usage: GITHUB_TOKEN=<your 40 char token> update_gems'
|
11
|
+
exit 1
|
12
|
+
fi
|
13
|
+
|
14
|
+
# Update gems
|
15
|
+
bundle update
|
16
|
+
|
17
|
+
# Push a commit
|
18
|
+
NOW=$(date +'%Y%m%d%H%M%S')
|
19
|
+
HEAD_BRANCH="gems/${NOW}"
|
20
|
+
BODY=$(bundle diff --escape-json -f md_table)
|
21
|
+
git checkout -b ${HEAD_BRANCH}
|
22
|
+
git add -u
|
23
|
+
git commit -m "Update gems ${NOW}"
|
24
|
+
git push origin ${HEAD_BRANCH}
|
25
|
+
|
26
|
+
# Create a pull request
|
27
|
+
API_URL="https://api.github.com/repos/${REPO}/pulls"
|
28
|
+
echo '{ "title": "Update gems '"${NOW}"'", "head": "'"${HEAD_BRANCH}"'", "base": "'"${BASE_BRANCH}"'", "body": '${BODY}' }' |
|
29
|
+
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST --data-binary @- ${API_URL}
|
data/exe/bundler-diff
ADDED
data/lib/bundler-diff.rb
ADDED
data/lib/bundler_diff.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'parallel'
|
4
|
+
require 'bundler_diff/cli'
|
5
|
+
require 'bundler_diff/formatter/default'
|
6
|
+
require 'bundler_diff/formatter/md_table'
|
7
|
+
require 'bundler_diff/version'
|
8
|
+
|
9
|
+
module BundlerDiff
|
10
|
+
def self.formatters
|
11
|
+
@formatters ||= {
|
12
|
+
default: Formatter::Default,
|
13
|
+
md_table: Formatter::MdTable
|
14
|
+
}
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'gems_comparator'
|
4
|
+
require 'json'
|
5
|
+
require 'optparse'
|
6
|
+
|
7
|
+
module BundlerDiff
|
8
|
+
class CLI
|
9
|
+
DEFAULT_OPTIONS = {
|
10
|
+
commit: 'HEAD',
|
11
|
+
format: :default
|
12
|
+
}.freeze
|
13
|
+
|
14
|
+
def self.invoke(args = ARGV)
|
15
|
+
new(args).invoke
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(args = [])
|
19
|
+
@args = args
|
20
|
+
end
|
21
|
+
|
22
|
+
def invoke
|
23
|
+
parse_options!
|
24
|
+
set_access_token!
|
25
|
+
|
26
|
+
gems = GemsComparator.compare(before_lockfile, after_lockfile)
|
27
|
+
output = formatter.new.render(gems)
|
28
|
+
output = JSON.dump(output) if @escape_json
|
29
|
+
puts output
|
30
|
+
rescue StandardError => e
|
31
|
+
puts e.inspect
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
def file_name
|
37
|
+
@file_name ||= File.exist?('gems.locked') ? 'gems.locked' : 'Gemfile.lock'
|
38
|
+
end
|
39
|
+
|
40
|
+
def before_lockfile
|
41
|
+
`git show #{commit}:#{file_name}`.tap do
|
42
|
+
raise unless $?.success? # rubocop:disable Style/SpecialGlobalVars
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def after_lockfile
|
47
|
+
File.read(file_name)
|
48
|
+
end
|
49
|
+
|
50
|
+
def parse_options! # rubocop:disable Metrics/MethodLength
|
51
|
+
opt = OptionParser.new
|
52
|
+
opt.banner = 'Usage: bundle diffgems [options]'
|
53
|
+
opt.on('-c', '--commit COMMIT', 'Specify a commit') { |val| @commit = val }
|
54
|
+
formatter_desc = [
|
55
|
+
'Choose a formatter',
|
56
|
+
' default',
|
57
|
+
' md_table'
|
58
|
+
]
|
59
|
+
opt.on('-f', '--format FORMATTER', *formatter_desc) { |val| @format = val.to_sym }
|
60
|
+
opt.on('--escape-json', 'Escape output as a JSON string') do |val|
|
61
|
+
@escape_json = val
|
62
|
+
end
|
63
|
+
opt.on('-v', '--version', 'Display the version') do
|
64
|
+
puts BundlerDiff::VERSION
|
65
|
+
exit
|
66
|
+
end
|
67
|
+
options = opt.parse(@args)
|
68
|
+
@commit ||= options.shift
|
69
|
+
end
|
70
|
+
|
71
|
+
def set_access_token!
|
72
|
+
return if GemsComparator.config.client.access_token
|
73
|
+
hub_config_path = "#{ENV['HOME']}/.config/hub"
|
74
|
+
return unless File.exist?(hub_config_path)
|
75
|
+
|
76
|
+
yaml = YAML.load_file(hub_config_path)
|
77
|
+
oauth_token = yaml.dig('github.com', 0, 'oauth_token')
|
78
|
+
return if oauth_token.nil?
|
79
|
+
GemsComparator.configure do |config|
|
80
|
+
config.client = Octokit::Client.new(access_token: oauth_token)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
def commit
|
85
|
+
@commit || DEFAULT_OPTIONS[:commit]
|
86
|
+
end
|
87
|
+
|
88
|
+
def formatter
|
89
|
+
format = @format || DEFAULT_OPTIONS[:format]
|
90
|
+
BundlerDiff.formatters[format] || Formatter::Default
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BundlerDiff
|
4
|
+
module Formatter
|
5
|
+
class Default
|
6
|
+
def render(gems)
|
7
|
+
gems.map { |gem| render_line(gem) }.join("\n")
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def render_line(gem)
|
13
|
+
lines = []
|
14
|
+
lines << format('%<name>s: %<before>s =>', gem)
|
15
|
+
lines << " #{gem[:after]}" if gem[:after].size.positive?
|
16
|
+
lines << " - #{gem[:compare_url]}" if gem[:compare_url]
|
17
|
+
lines.join
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BundlerDiff
|
4
|
+
module Formatter
|
5
|
+
class MdTable
|
6
|
+
ITEMS = %w[gem before after compare].freeze
|
7
|
+
HEADER = "| #{ITEMS.join(' | ')} |"
|
8
|
+
HR = "#{'|---' * ITEMS.size}|"
|
9
|
+
TEMPLATE = "#{'| %s ' * ITEMS.size}|"
|
10
|
+
|
11
|
+
def render(gems)
|
12
|
+
rows = gems.map { |gem| render_row(gem) }
|
13
|
+
[HEADER, HR, *rows].join("\n")
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def render_row(gem)
|
19
|
+
name = format_name(gem)
|
20
|
+
before, after = gem.fetch_values(:before, :after)
|
21
|
+
compare_url = "#{icon_for(gem)} #{gem[:compare_url]}"
|
22
|
+
|
23
|
+
format TEMPLATE, name, before, after, compare_url
|
24
|
+
end
|
25
|
+
|
26
|
+
def format_name(gem)
|
27
|
+
url = gem[:homepage] || gem[:github_url]
|
28
|
+
if url
|
29
|
+
"[#{gem[:name]}](#{url})"
|
30
|
+
else
|
31
|
+
gem[:name]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def icon_for(gem)
|
36
|
+
case gem[:compare_url]
|
37
|
+
when /master$/
|
38
|
+
':warning:'
|
39
|
+
when URI::DEFAULT_PARSER.make_regexp
|
40
|
+
':white_check_mark:'
|
41
|
+
when nil
|
42
|
+
':x:'
|
43
|
+
else
|
44
|
+
':bug:'
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
metadata
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bundler-diff
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sinsoku
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-07-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: gems_comparator
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: parallel
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.14'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.56.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.56.0
|
97
|
+
description: BundlerDiff show changes with GitHub comapre view urls.
|
98
|
+
email:
|
99
|
+
- sinsoku.listy@gmail.com
|
100
|
+
executables:
|
101
|
+
- bundler-diff
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".rubocop.yml"
|
108
|
+
- ".travis.yml"
|
109
|
+
- CODE_OF_CONDUCT.md
|
110
|
+
- Gemfile
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- bin/console
|
115
|
+
- bin/setup
|
116
|
+
- bundler-diff.gemspec
|
117
|
+
- examples/aws_codebuild/buildspec.yml
|
118
|
+
- examples/update_gems
|
119
|
+
- exe/bundler-diff
|
120
|
+
- lib/bundler-diff.rb
|
121
|
+
- lib/bundler_diff.rb
|
122
|
+
- lib/bundler_diff/cli.rb
|
123
|
+
- lib/bundler_diff/formatter/default.rb
|
124
|
+
- lib/bundler_diff/formatter/md_table.rb
|
125
|
+
- lib/bundler_diff/version.rb
|
126
|
+
homepage: https://github.com/sinsoku/bundler-diff
|
127
|
+
licenses:
|
128
|
+
- MIT
|
129
|
+
metadata: {}
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 2.7.6
|
147
|
+
signing_key:
|
148
|
+
specification_version: 4
|
149
|
+
summary: A gem support your "bundle update"
|
150
|
+
test_files: []
|