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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 883706a0f3c2644c5bc3394678097d7884a0e04e
4
- data.tar.gz: c82945b3c099f8e8f866a8e8f555adf0246ed28f
3
+ metadata.gz: d727e59c27251a2996c2012da4e0abadc35b8ccb
4
+ data.tar.gz: f4e1edf8cb88a3c7a751eb6be644754fcceba41c
5
5
  SHA512:
6
- metadata.gz: b1e2a6ce8e5f1ddb87d83aa186482a27f81d8c4bd64635bea17cb85b73932e7b2ad0529277c634fb7f61ab3a9f53acac77de8f8a0a103896f911b2c980d0e45f
7
- data.tar.gz: e4069823a74339e8d8a0cb080e36d7b9865bf43da649d59005ab54b40a861f59ac690c34c3b2e15a70e1d4b13171fc6830f65f85df2bc58fc71f6a451c11f6c1
6
+ metadata.gz: 90f2c846b2857a77bfc1d6abe9f23e7a456dd6c7f0b962cb06280d786263207cd52776bda5d1f990c18befa4611da200378c7719d6e89c693ce0ed7df9407fc4
7
+ data.tar.gz: 40e44b1ab1f4567d65fc5e38b2ae345700b9e2a4b827bda0f4c353b0a4e4c80ea13e08458c9d545e6dbc8aa19fb2878c25b28e3f4d50f113e0ebbab78f9f2d35
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
+ /Gemfile.ci.lock
4
5
  /_yardoc/
5
6
  /coverage/
6
7
  /doc/
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
- before_install: gem install bundler; gem install rainbow -v '2.2.1'
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
@@ -61,7 +61,7 @@ Cops disabled in Interactive mode:
61
61
 
62
62
  ## Todo
63
63
 
64
- - Editor integration!
64
+ - More editor integrations!
65
65
  - "Stable" release
66
66
  - Improve tests
67
67
 
@@ -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 = '~> 0.47.0'.freeze
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
@@ -1,3 +1,3 @@
1
1
  module RuboCopFMT
2
- VERSION = '0.1.0.beta12'.freeze
2
+ VERSION = '0.1.0.beta14'.freeze
3
3
  end
data/lib/rubocopfmt.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rubocopfmt/rubocop_version'
3
3
 
4
- gem 'rubocop', RuboCopFMT::RUBOCOP_VERSION
4
+ gem 'rubocop', *RuboCopFMT::RUBOCOP_VERSION
5
5
  require 'rubocop'
6
6
 
7
7
  require 'rubocopfmt/cli'
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.beta12
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-01 00:00:00.000000000 Z
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.47.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.47.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