rubodiff 0.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/bin/rubodiff +35 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c9c0c4dd0c577982b8dc2bac2ce9e5f2d83ad094
|
4
|
+
data.tar.gz: 03e6a9a89515d1066d0cef46bb8df5fcca4e76bf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f8a40a586af9fab4e9624facb9f6e0b9983676d903a6dc7b790ca5e52aa8d6df70f5a339790a89e4793ec13d1a87c5b6128ec59e06d4eed8fce6ea1a53058d30
|
7
|
+
data.tar.gz: 1643f6fd0ee383ca316b3f36d3df882435d98ce895213642579baf062f3c7f9ffc283b51ca8afa4c9584c2df87e648c55eb53d7e270e83c22878836de29e4080
|
data/bin/rubodiff
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
puts `
|
3
|
+
GREEN='\\033[0;32m'
|
4
|
+
# The ampersand at the end of this line makes this command run in the background...
|
5
|
+
rubocop --format simple --out ~/rubocop_results_current_branch.txt &
|
6
|
+
|
7
|
+
# ...while all this runs in the foreground...
|
8
|
+
mkdir -p ~/rubodiff_temp
|
9
|
+
rm -rf ~/rubodiff_temp/*
|
10
|
+
git archive develop | tar -x -C ~/rubodiff_temp
|
11
|
+
rubocop --format simple --out ~/rubocop_results_develop.txt ~/rubodiff_temp
|
12
|
+
# Normalize the filenames that rubocop prints
|
13
|
+
sed -E -i '' 's/\\/Users\\/[^\\/]+\\/rubodiff_temp\\///g' ~/rubocop_results_develop.txt
|
14
|
+
|
15
|
+
# ...and this waits until everything is done...
|
16
|
+
wait
|
17
|
+
sed -E -i '' 's/[0-9]+[[:space:]]+files[[:space:]]+inspected,[[:space:]]+//g' ~/rubocop_results_develop.txt ~/rubocop_results_current_branch.txt
|
18
|
+
|
19
|
+
# ...and finally a diff is printed.
|
20
|
+
{
|
21
|
+
# Hack to prevent annoying copyright info from being printed
|
22
|
+
colordiff -U0 -F "==" ~/rubocop_results_develop.txt ~/rubocop_results_current_branch.txt | tee ~/rubodiff_results.txt
|
23
|
+
} &> /dev/null
|
24
|
+
cat ~/rubodiff_results.txt
|
25
|
+
|
26
|
+
if [[ ! -s ~/rubodiff_results.txt ]] ; then
|
27
|
+
echo "${GREEN}There were no changes in rubocop."
|
28
|
+
fi ;
|
29
|
+
|
30
|
+
# Cleanup
|
31
|
+
rm ~/rubocop_results_current_branch.txt
|
32
|
+
rm ~/rubocop_results_develop.txt
|
33
|
+
rm ~/rubodiff_results.txt
|
34
|
+
rm -rf ~/rubodiff_temp
|
35
|
+
`
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubodiff
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Hamon
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-03 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Diff the rubocop output between two github branches
|
14
|
+
email: andrew@hamon.cc
|
15
|
+
executables:
|
16
|
+
- rubodiff
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- bin/rubodiff
|
21
|
+
homepage: https://github.com/andrewhamon/rubodiff
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.2.2
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: Diff the rubocop output between two github branches
|
45
|
+
test_files: []
|