rubocopfmt 0.1.0.beta12 → 0.1.0.beta14
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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +15 -3
- data/Gemfile.ci +10 -0
- data/README.md +1 -1
- data/lib/rubocopfmt/cli_options.rb +1 -1
- data/lib/rubocopfmt/rubocop_version.rb +13 -1
- data/lib/rubocopfmt/version.rb +1 -1
- data/lib/rubocopfmt.rb +1 -1
- data/rubocopfmt.gemspec +1 -1
- metadata +25 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d727e59c27251a2996c2012da4e0abadc35b8ccb
|
4
|
+
data.tar.gz: f4e1edf8cb88a3c7a751eb6be644754fcceba41c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90f2c846b2857a77bfc1d6abe9f23e7a456dd6c7f0b962cb06280d786263207cd52776bda5d1f990c18befa4611da200378c7719d6e89c693ce0ed7df9407fc4
|
7
|
+
data.tar.gz: 40e44b1ab1f4567d65fc5e38b2ae345700b9e2a4b827bda0f4c353b0a4e4c80ea13e08458c9d545e6dbc8aa19fb2878c25b28e3f4d50f113e0ebbab78f9f2d35
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
|
+
env:
|
4
|
+
- RUBOCOP_VERSION=0.47.1
|
5
|
+
- RUBOCOP_VERSION=0.46.0
|
6
|
+
- RUBOCOP_VERSION=0.45.0
|
7
|
+
- RUBOCOP_VERSION=0.44.1
|
8
|
+
- RUBOCOP_VERSION=0.43.0
|
9
|
+
- RUBOCOP_VERSION=0.42.0
|
10
|
+
- RUBOCOP_VERSION=0.41.2
|
11
|
+
- RUBOCOP_VERSION=0.40.0
|
12
|
+
- RUBOCOP_VERSION=0.39.0
|
13
|
+
- RUBOCOP_VERSION=0.38.0
|
3
14
|
rvm:
|
4
|
-
- 2.1
|
5
|
-
- 2.2
|
6
15
|
- 2.3.3
|
7
16
|
- 2.4.0
|
8
|
-
|
17
|
+
gemfile: Gemfile.ci
|
18
|
+
before_install:
|
19
|
+
- gem install bundler
|
20
|
+
- gem install rainbow -v '2.2.1'
|
data/Gemfile.ci
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
rubocop_version = ENV['RUBOCOP_VERSION'].to_s
|
4
|
+
rubocop_version = nil if rubocop_version.empty? || rubocop_version == 'latest'
|
5
|
+
rubocop_version = { github: 'bbatsov/rubocop' } if rubocop_version == 'master'
|
6
|
+
|
7
|
+
gem 'rubocop', rubocop_version
|
8
|
+
|
9
|
+
# Specify your gem's dependencies in rubocopfmt.gemspec
|
10
|
+
gemspec
|
data/README.md
CHANGED
@@ -41,7 +41,7 @@ module RuboCopFMT
|
|
41
41
|
EOF
|
42
42
|
|
43
43
|
version "rubocopfmt #{RuboCopFMT::VERSION}" \
|
44
|
-
" (rubocop #{::RuboCop::Version::STRING})"
|
44
|
+
" (using rubocop #{::RuboCop::Version::STRING})"
|
45
45
|
|
46
46
|
opt :diff, 'Display diffs instead of rewriting files'
|
47
47
|
opt :list, 'List files whose formatting is incorrect'
|
@@ -1,3 +1,15 @@
|
|
1
1
|
module RuboCopFMT
|
2
|
-
RUBOCOP_VERSION =
|
2
|
+
RUBOCOP_VERSION = [
|
3
|
+
# Ten minor versions back is all we bother supporting.
|
4
|
+
'>= 0.38.0',
|
5
|
+
|
6
|
+
# Errors occur in the the Rails/UniqBeforePluck cop.
|
7
|
+
'!= 0.41.0',
|
8
|
+
|
9
|
+
# Fails unless pry gem is installed separately.
|
10
|
+
'!= 0.44.0',
|
11
|
+
|
12
|
+
# Restrict to latest version tested.
|
13
|
+
'< 0.48'
|
14
|
+
].freeze
|
3
15
|
end
|
data/lib/rubocopfmt/version.rb
CHANGED
data/lib/rubocopfmt.rb
CHANGED
data/rubocopfmt.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.homepage = 'https://github.com/jimeh/rubocopfmt'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
-
f.match(%r{^(test|spec|features)/})
|
18
|
+
f.match(%r{^(test|spec|features|Gemfile\.ci)/})
|
19
19
|
end
|
20
20
|
spec.bindir = 'exe'
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocopfmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Myhrberg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,16 +70,34 @@ dependencies:
|
|
70
70
|
name: rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.38.0
|
76
|
+
- - "!="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.41.0
|
79
|
+
- - "!="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 0.44.0
|
82
|
+
- - "<"
|
74
83
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
84
|
+
version: '0.48'
|
76
85
|
type: :runtime
|
77
86
|
prerelease: false
|
78
87
|
version_requirements: !ruby/object:Gem::Requirement
|
79
88
|
requirements:
|
80
|
-
- - "
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 0.38.0
|
92
|
+
- - "!="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.41.0
|
95
|
+
- - "!="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 0.44.0
|
98
|
+
- - "<"
|
81
99
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
100
|
+
version: '0.48'
|
83
101
|
- !ruby/object:Gem::Dependency
|
84
102
|
name: trollop
|
85
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,6 +139,7 @@ files:
|
|
121
139
|
- ".rubocop.yml"
|
122
140
|
- ".travis.yml"
|
123
141
|
- Gemfile
|
142
|
+
- Gemfile.ci
|
124
143
|
- LICENSE
|
125
144
|
- README.md
|
126
145
|
- Rakefile
|