osm-rubocop 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 6e42d709c96e2e27bceb516a8be42a2ec3924f7b
4
- data.tar.gz: c070a92dc2457cd8563a6e874a798ff9b43b0250
3
+ metadata.gz: 7499a219e00d57a11495bebfaf423640e3265df8
4
+ data.tar.gz: 889532e55fe3219beeba49dd48d1a81d1e2b4f96
5
5
  SHA512:
6
- metadata.gz: 050809daaf6d306943c8da25c62d7cda5dee9faf34a1c0c13edacdfe91b96a313753bd806274ad0c482a82ec5f905679dd662c6d161c3cd09a81313de7f4761d
7
- data.tar.gz: 3d3af002fe4b3fc6f1a9377038cdde574bc59536007bd271d619e0e4f95422380ecb81481b16ce0a3a3aaf9d46bf3fbc876ab94de2eb72a84cd1db4563c017b6
6
+ metadata.gz: e33ac16068f8b423d4723e788609390444340a3e101e2061e7e2205df24860b477b99e9af3cacc4dee0207cb7e2269c12454e79f7f5da23d6a83bb79a8abe50b
7
+ data.tar.gz: d2c41641d62557f99ec5879decf90d164344ad517260c75c7bc72cfc851d2b8816510dca1f8259c0fa760a9c133a23562f29b65a34bdd1b78999a407efa46248
data/README.md CHANGED
@@ -7,7 +7,9 @@ OSM default Rubocop config
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'osm-rubocop', require: false
10
+ group :development, :test do
11
+ gem 'osm-rubocop', require: false
12
+ end
11
13
  ```
12
14
 
13
15
  And then execute:
@@ -35,7 +37,7 @@ It will make osm-rubocop's configuration the default configuration for running r
35
37
  If your project is a Rails application, add this to your Rakefile (above the call to `load_tasks`):
36
38
 
37
39
  ```ruby
38
- require 'osm-rubocop'
40
+ require 'osm-rubocop' if Rails.env.development? || Rails.env.test?
39
41
  ```
40
42
 
41
43
  If your project is not a Rails application, add this to your Rakefile:
data/config/default.yml CHANGED
@@ -122,3 +122,6 @@ Style/SymbolArray:
122
122
 
123
123
  Style/TrailingCommaInLiteral:
124
124
  EnforcedStyleForMultiline: comma
125
+
126
+ Style/YodaCondition:
127
+ Enabled: false
@@ -1,5 +1,5 @@
1
1
  module Osm
2
2
  module Rubocop
3
- VERSION = '0.1.2'.freeze
3
+ VERSION = '0.1.3'.freeze
4
4
  end
5
5
  end
@@ -11,11 +11,7 @@ namespace :osm_rubocop do
11
11
  root = defined?(::Rails.root) ? ::Rails.root : Dir.pwd
12
12
  target = File.join(root, '.git', 'hooks', 'pre-commit')
13
13
 
14
- # rubocop:disable Rails/SkipsModelValidations
15
- # There's a false positive rubocop violation here. See bug at:
16
- # https://github.com/bbatsov/rubocop/issues/4260
17
14
  FileUtils.touch target
18
- # rubocop:enable Rails/SkipsModelValidations
19
15
  FileUtils.chmod '+x', target
20
16
 
21
17
  source_content = File.read source
data/osm-rubocop.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'rubocop', '~> 0.48.1'
23
+ spec.add_dependency 'rubocop', '~> 0.49'
24
24
  spec.add_dependency 'rubocop-rspec'
25
25
  spec.add_development_dependency 'bundler', '~> 1.14'
26
26
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osm-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Betesh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-09 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.48.1
19
+ version: '0.49'
20
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: 0.48.1
26
+ version: '0.49'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement