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 +4 -4
- data/README.md +4 -2
- data/config/default.yml +3 -0
- data/lib/osm/rubocop/version.rb +1 -1
- data/lib/tasks/osm_rubocop.rake +0 -4
- data/osm-rubocop.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7499a219e00d57a11495bebfaf423640e3265df8
|
4
|
+
data.tar.gz: 889532e55fe3219beeba49dd48d1a81d1e2b4f96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
data/lib/osm/rubocop/version.rb
CHANGED
data/lib/tasks/osm_rubocop.rake
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
26
|
+
version: '0.49'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|