rubocop-bitcrowd 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93ba9bc571dfc7758ceeac79e7b86091ab0be392e7f5087dd5b8d097a7bd7d7f
4
- data.tar.gz: b2f3cfec1150e8bdc0067aa773832023ca5def41efd9df03365540261b3244b9
3
+ metadata.gz: 38d9c285df0e1e065f4db4463a8045de98358363884cdfb1184c1dda44ce1660
4
+ data.tar.gz: bffd1004e0807c144e348e3ae4f4b113b0b6e9e09002f849a95eaed15b2f4dfd
5
5
  SHA512:
6
- metadata.gz: 8dda45b3dd3f4e2887a44cddd1519c096a08ab1b7a805fe07637fff882675114c8a0d9b2f0558e388fb60e0d4fac6dd7d12feddbab7a21fa66273e9a94d70b4d
7
- data.tar.gz: c9dddf174a73072b00620b3871d6972b8f46e889702dc8c85fc57e2e35cdfa6d3a65ef8e13497dd9df47f8d5893334a571e9a17c62de7a278c8430a5bb23f625
6
+ metadata.gz: 68f77bcba7d8215c5b60e71145b44e66c1303a934136863569d3a05c79a85668deb3e1a7adb5232da4fcaeba8f8c87eb2ad6226e84ba4f4eaf757d2bfb6e16ed
7
+ data.tar.gz: 5134a06cf1c671bcbd4f4d39be666ece2f062508ffd4ab4d3cf651329dfefddfca15a1bd78facf7613f2d6a392b6cc670ba45cada610eb1d4f2b0d3e68993448
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /*.gem
data/.rubocop.yml CHANGED
@@ -1,9 +1,4 @@
1
1
  AllCops:
2
- Include:
3
- - '**/Gemfile'
4
- - '**/Rakefile'
5
- - '**/config.ru'
6
- - '**/Capfile'
7
2
  Exclude:
8
3
  - 'node_modules/**/*'
9
4
  - 'vendor/bundle/**/*'
@@ -64,6 +59,13 @@ Rails/SkipsModelValidations:
64
59
  Rails/TimeZone:
65
60
  Enabled: true
66
61
 
62
+ Rails/UnknownEnv:
63
+ Environments:
64
+ - development
65
+ - test
66
+ - staging
67
+ - production
68
+
67
69
  Rails/Validation:
68
70
  Enabled: true
69
71
 
@@ -83,7 +85,7 @@ Style/MethodCalledOnDoEndBlock:
83
85
  Enabled: true
84
86
 
85
87
  Style/FrozenStringLiteralComment:
86
- Enabled: false
88
+ EnforcedStyle: always
87
89
 
88
90
  Style/MutableConstant:
89
91
  Enabled: true
data/CHANGELOG.md ADDED
@@ -0,0 +1,89 @@
1
+ # Rubocop-Bitcrowd Changelog
2
+
3
+ Presented in reverse chronological order.
4
+
5
+ ## master
6
+
7
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.3.0...HEAD
8
+
9
+ *Put high-level summary here before releasing a new version*
10
+
11
+ ### Deprecations:
12
+
13
+ * Put deprecations here (in a brief bullet point)
14
+
15
+ ### Potentially breaking changes:
16
+
17
+ * Put potentially breaking changes here (in a brief bullet point)
18
+
19
+ ### New features:
20
+
21
+ * Put new features here (in a brief bullet point)
22
+
23
+ ### Fixes:
24
+
25
+ * Put fixes here (in a brief bullet point)
26
+
27
+ ## `1.3.0` (2018-10-22)
28
+
29
+ This release is a maintenance release. Most notably it let's us be compatile with rubocop versions >= 0.56 again. For a full list of changes, see the link or summary below.
30
+
31
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.1...v1.3.0
32
+
33
+ ### New features:
34
+
35
+ * added `staging` to the list of known environments
36
+ * enforce frozen_string_literal comment
37
+
38
+ ### Fixes:
39
+
40
+ * between rubocop version 0.55 and 0.56 we stopped processing most files because we overwrote `AllCops/Include`.
41
+ This is fixed, but requires a rubocop version of 0.56 or higher.
42
+ * we have a more detailed changelog which is conform with our changelog-style of other projects
43
+
44
+ ## `1.2.1` (2018-03-22)
45
+
46
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.0...v1.2.1
47
+
48
+ ### Potentially breaking changes:
49
+
50
+ * exclude spec/features from the `RSpec/ExampleLength` cop
51
+
52
+ ### Fixes
53
+
54
+ * ignore `node_modules` and `vendor/bundle` from being inspected
55
+
56
+ ## `1.2.0` (2018-02-07)
57
+
58
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.2...v1.2.0
59
+
60
+ ### Fixes:
61
+
62
+ * The cop `Layout/SpaceInsideBrackets` was deprecated and split into two sub-cops:
63
+ * `Layout/SpaceInsideArrayLiteralBrackets`
64
+ * and `Layout/SpaceInsideReferenceBrackets`
65
+
66
+ ## `1.1.2` (2017-10-23)
67
+
68
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.1...v1.1.2
69
+
70
+ ### Potentially breaking changes:
71
+
72
+ * Changed to nested module style see: https://github.com/bitcrowd/rubocop-bitcrowd/pull/4
73
+
74
+
75
+ ## `1.1.1` (2017-09-21)
76
+
77
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.0...v1.1.1
78
+
79
+ ### Fixes:
80
+
81
+ * exclude db/schema.rb from being evaluated
82
+ * the cop `Style/SpaceInsideBrackets` was renamed to `Layout/SpaceInsideBrackets`
83
+
84
+ ## `1.1.0` (2017-09-21)
85
+
86
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/695fb551bcd1e17a12f80e34c9bbcb842cee35ea...v1.1.1
87
+
88
+ * First official release
89
+
data/README.md CHANGED
@@ -39,8 +39,8 @@ inherit_gem:
39
39
  ```
40
40
 
41
41
  ## Autofixing issues
42
- At bitcrowd we discovered it to be a very good practice to put each automatically
43
- fixable Cop into a single commit when initially adding rubocop into a bigger project.
42
+
43
+ At bitcrowd we discovered it to be a very good practice to put each automatically fixable Cop into a single commit when initially adding rubocop into a bigger project.
44
44
 
45
45
  This gem provides a simple script, that can help you with this task:
46
46
 
@@ -50,6 +50,23 @@ This gem provides a simple script, that can help you with this task:
50
50
  4. Run the script (may take a while, when you want to continue working on your project meanwhile run this in a separate checkout): `rubocop-autofix`
51
51
  5. Review all commits made by the script and run your tests. You can now drop certain commits of cops you don't want. Often it may make some sense to run the script again with changed settings, since rebasing 100+ commits is no fun.
52
52
 
53
+ # Development
54
+
55
+ Any contributions are welcome. If you attempt to change the behavior of this gem it might be wise to open an issue first to discuss the change. Otherwise feel free to open a PR.
56
+
57
+ Every PR should have a change in the [CHANGELOG](./CHANGELOG.md) file (within the [`master` section](./CHANGELOG.md#master)) briefly outlining the attempted changes.
58
+
59
+ ## Release a new version
60
+
61
+ To release a new version, follow these steps:
62
+
63
+ 1. update the [CHANGELOG](./CHANGELOG.md) to reflect the new release and prepare a new [`master` section](./CHANGELOG.md#master)
64
+ 2. update the version in `rubocop-bitcrowd.gemspec` according to [semver](https://semver.org/)
65
+ 3. commit that change and tag it `git tag -as v1.2.3` (if releasing version 1.2.3). The tag-body should contain the corresponding CHANGELOG part of the current release.
66
+ 4. push the commit and tag to github: `git push --tags`
67
+ 5. build the gem and release it to rubygems:
68
+ * `gem build rubocop-bitcrowd.gemspec`
69
+ * `gem push rubocop-bitcrowd-1.2.3.gem`
53
70
 
54
71
  ## License
55
72
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'rubocop-bitcrowd'
3
- spec.version = '1.2.1'
3
+ spec.version = '1.3.0'
4
4
  spec.authors = ['bitcrowd']
5
5
  spec.email = ['info@bitcrowd.net']
6
6
 
@@ -16,7 +16,8 @@ Gem::Specification.new do |spec|
16
16
  spec.bindir = 'exe'
17
17
  spec.executables = 'rubocop-autofix'
18
18
 
19
+ spec.add_runtime_dependency 'rubocop', '~> 0.56'
20
+
19
21
  spec.add_development_dependency 'bundler', '~> 1.14'
20
22
  spec.add_development_dependency 'rake', '~> 10.0'
21
- spec.add_development_dependency 'rubocop'
22
23
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-bitcrowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bitcrowd
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-22 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
20
- type: :development
19
+ version: '0.56'
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: '0.56'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '1.14'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '10.0'
55
55
  description: Use this as a quick start to get rubocop with the settings we use at
56
56
  bitcrowd into your project
57
57
  email:
@@ -64,7 +64,7 @@ files:
64
64
  - ".gitignore"
65
65
  - ".rubocop-rspec.yml"
66
66
  - ".rubocop.yml"
67
- - CHANGELOG
67
+ - CHANGELOG.md
68
68
  - Gemfile
69
69
  - LICENSE.txt
70
70
  - README.md
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.7.5
94
+ rubygems_version: 2.7.6
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: The bitcrowd rubocop.yml as a gem.
data/CHANGELOG DELETED
@@ -1,2 +0,0 @@
1
- 1.1.2
2
- - Changed to nested module style see: https://github.com/bitcrowd/rubocop-bitcrowd/pull/4