itrg_rubocop_config 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f70dd4f64c07f4305f3f53acff3ca253c624b41a
4
+ data.tar.gz: 1a0d085bb246d43fca0c20f5047fc51f73641840
5
+ SHA512:
6
+ metadata.gz: cbbde5e7d55201c7945a3daeac5b895269f23b2b8456953387b222a2f56454a6d8e451c486bcd0d9621efea6cdc532061248f73ab8f999721e4275c49beef67c
7
+ data.tar.gz: 795610cb2db75a9f06f290d79262280d3f9045832191f399282c13ae16f4ee4d4f9eb29a07a190c020f1c1b0e8b5d5f575be13b526a62b75d033ab44f556a9d0
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2017 Jason Brodie
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # ITRG Rubocop Config
2
+ Utilized to be able to manage and share the same Rubocop configuration across all the ITRG applications.
3
+
4
+ ## Usage
5
+ None, it should just work with your Rubocop.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile, in the development block:
9
+
10
+ ```ruby
11
+ gem 'itrg_rubocop_config', git: 'https://github.com/InfoTech/itrg_rubocop_config.git', branch: 'master'
12
+ ```
13
+
14
+ Add Rubocop, if for some reason it isn't there:
15
+
16
+ ```ruby
17
+ gem 'rubocop', '~> 0.51.0'
18
+ ```
19
+
20
+ Modify your ```.rubocop.yml```, remove all your app specific settings and add the following:
21
+
22
+ ```ruby
23
+ AllCops:
24
+ Exclude:
25
+ - db/**/*
26
+ - config/**/*
27
+ - script/**/*
28
+ - db/schema.rb
29
+ TargetRailsVersion: X
30
+ TargetRubyVersion: X.X
31
+
32
+ inherit_gem:
33
+ itrg_rubocop_config: rails/rubocop.yml
34
+ ```
35
+
36
+ Be sure to update your Target Versions appropriately.
37
+
38
+ And then execute:
39
+ ```bash
40
+ $ bundle
41
+ ```
42
+
43
+ ## Contributing
44
+ 1. Cut a branch.
45
+ 2. Add your changes.
46
+ 3. Get it approved.
47
+ 4. Merge it.
48
+
49
+ ## License
50
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,33 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'ItrgRubocopConfig'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+
21
+
22
+ require 'bundler/gem_tasks'
23
+
24
+ require 'rake/testtask'
25
+
26
+ Rake::TestTask.new(:test) do |t|
27
+ t.libs << 'test'
28
+ t.pattern = 'test/**/*_test.rb'
29
+ t.verbose = false
30
+ end
31
+
32
+
33
+ task default: :test
@@ -0,0 +1,3 @@
1
+ module ItrgRubocopConfig
2
+ # Your code goes here...
3
+ end
@@ -0,0 +1,3 @@
1
+ module ItrgRubocopConfig
2
+ VERSION = '1.0.0'
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :itrg_rubocop_config do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: itrg_rubocop_config
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jason Brodie
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-12-11 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A plugin to allow the sharing of RuboCop settings across different projects.
14
+ email:
15
+ - jbrodie@infotech.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - MIT-LICENSE
21
+ - README.md
22
+ - Rakefile
23
+ - lib/itrg_rubocop_config.rb
24
+ - lib/itrg_rubocop_config/version.rb
25
+ - lib/tasks/itrg_rubocop_config_tasks.rake
26
+ homepage: https://github.com/InfoTech/itrg_rubocop_config
27
+ licenses:
28
+ - MIT
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.6.13
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: Infotech RuboCop Shared Settings.
50
+ test_files: []