td_critic 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +12 -0
- data/README.md +4 -0
- data/lib/tasks/rubocop.rake +11 -10
- data/lib/td_critic/version.rb +1 -1
- data/rubocop.yml +4 -4
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a90e2d25535fcf8e90d642b28ff91d968d03585b
|
4
|
+
data.tar.gz: 64543877728097d31cbc374aa96ed291437ccddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae418e18b4ddf74cd666b261e6df2b740d6cc1679f4394aa7c34c7b924739437fce4e69aac372acaa7e61812063ac7a894deb03fa9389429759210d8c6657b5f
|
7
|
+
data.tar.gz: 3c3a0be6c011ea4d7622f9a382c29ff63b70a0d449c313c84f99608f19781df1125d9f5f6522243e882aa8e676daa8fe91bfa0d2b33bff57de8f57b7ca417873
|
data/History.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
v0.2.0 / 2016-01-15
|
3
|
+
==================
|
4
|
+
|
5
|
+
* Fix Error: obsolete parameter RunRailsCops
|
6
|
+
* Use default rubocop settings for LineLength
|
7
|
+
* Only exclude schema and from subdirectories
|
8
|
+
|
9
|
+
v0.1.0 / 2015-11-13
|
10
|
+
==================
|
11
|
+
|
12
|
+
* Initial release
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# TD Critic
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/td_critic.svg)](https://rubygems.org/gems/td_critic)
|
4
|
+
[![Build Status](https://secure.travis-ci.org/td-berlin/td_critic.svg?branch=master)](https://travis-ci.org/td-berlin/td_critic)
|
5
|
+
[![License](https://img.shields.io/github/license/td-berlin/td_critic.svg)](http://opensource.org/licenses/MIT)
|
6
|
+
|
3
7
|
<img src="https://cloud.githubusercontent.com/assets/300693/10975524/18686db6-83f0-11e5-82e7-34b1d64f6870.jpeg" alt="Your ruby SUX!" title="SHAME" align="right" border="1" width="150"/>
|
4
8
|
|
5
9
|
> Critic <br/>
|
data/lib/tasks/rubocop.rake
CHANGED
@@ -2,20 +2,21 @@ require 'rubocop/rake_task'
|
|
2
2
|
|
3
3
|
desc 'Run Rubocop on the recent changes'
|
4
4
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
branch = `git rev-parse --abbrev-ref HEAD`
|
6
|
+
changed_files = if branch == 'master'
|
7
|
+
`git diff --name-only master origin/master`.split($RS)
|
8
|
+
else
|
9
|
+
`git diff --name-only master..#{branch}`.split($RS)
|
10
|
+
end
|
10
11
|
|
11
12
|
changed_files -= %w(Gemfile Gemfile.lock)
|
12
13
|
changed_files.select! { |f| f.ends_with? '.rb' }
|
13
14
|
|
14
|
-
if changed_files.none?
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
task.patterns = if changed_files.none?
|
16
|
+
%w(*.!)
|
17
|
+
else
|
18
|
+
changed_files
|
19
|
+
end
|
19
20
|
|
20
21
|
task.fail_on_error = false
|
21
22
|
end
|
data/lib/td_critic/version.rb
CHANGED
data/rubocop.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
AllCops:
|
2
|
-
RunRailsCops: true
|
3
2
|
Exclude:
|
4
3
|
- 'bin/**/*'
|
5
4
|
- '**/Rakefile'
|
6
5
|
- 'Gemfile.lock'
|
7
|
-
- 'db
|
6
|
+
- 'db/schema.rb'
|
8
7
|
- 'assets/node_modules/**/*'
|
8
|
+
- "**/db/schema.rb"
|
9
9
|
- 'vendor/**/*'
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
Rails:
|
12
|
+
Enabled: true
|
13
13
|
|
14
14
|
Style/Documentation:
|
15
15
|
Enabled: false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td_critic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dash Boys
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- ".rubocop.yml"
|
78
78
|
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
|
+
- History.md
|
80
81
|
- LICENSE.txt
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
107
|
version: '0'
|
107
108
|
requirements: []
|
108
109
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.4.5.1
|
110
111
|
signing_key:
|
111
112
|
specification_version: 4
|
112
113
|
summary: TD Critic is a gem that specializes in judging your coding style.
|