art-rubocop 1.0.1 → 1.0.2

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.
data/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # Articulate MarkOps Shared RuboCop config
2
+
3
+ ## Installation
4
+
5
+ Currently targets Ruby 2.6
6
+
7
+ Add this line to your app's Gemfile (You do not need to add `rubocop` as a dependency in your Gemfile):
8
+
9
+ ```ruby
10
+ group :test, :development do
11
+ gem 'art-rubocop', git: "https://github.com/articulate/art-rubocop.git"
12
+ end
13
+ ```
14
+
15
+ And then run:
16
+
17
+ ```bash
18
+ $ bundle install
19
+ ```
20
+
21
+ `art-rubocop` comes bundled with:
22
+
23
+ [rubocop](https://rubygems.org/gems/rubocop)
24
+
25
+ [rubocop-performance](https://rubygems.org/gems/rubocop-performance)
26
+
27
+ [rubocop-rails](https://rubygems.org/gems/rubocop-rails)
28
+
29
+ [rubocop-rspec](https://rubygems.org/gems/rubocop-rspec)
30
+
31
+ ## Usage
32
+
33
+ Copy the following code snippet into a `.rubocop.yml` in your app's root directory:
34
+
35
+ ```yaml
36
+ inherit_gem:
37
+ art-rubocop:
38
+ - default.yml
39
+ ```
40
+
41
+ To lint your Ruby files run:
42
+
43
+ ```bash
44
+ $ bundle exec rubocop
45
+ ```
46
+
47
+ ## Release Instructions
48
+
49
+ 1. Update the `spec.version` number in [art-rubocop.gemspec](https://github.com/articulate/art-rubocop/blob/master/art-rubocop.gemspec)
50
+
51
+ 2. Run:
52
+
53
+ ```bash
54
+ $ gem build art-rubocop.gemspec
55
+ ```
56
+
57
+ 3. git push, git paid
58
+
59
+ ## Wiki
60
+
61
+ See the wiki for getting linting set up in your editor:
62
+
63
+ [art-rubocop wiki](https://github.com/articulate/art-rubocop/wiki)
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "art-rubocop"
5
+ spec.version = "1.0.2"
6
+ spec.authors = ["MarkOps"]
7
+ spec.email = ["devinrm@articulate.com"]
8
+ spec.summary = "Rubocop style guide for Articulate MarkOps"
9
+ spec.homepage = "https://github.com/articulate/art-rubocop"
10
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
11
+ f.match(%r{^(test|spec|features)/})
12
+ end
13
+ spec.bindir = "exe"
14
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
+ spec.require_paths = ["lib"]
16
+ spec.license = "GPL-3.0-or-later"
17
+ spec.metadata["rubygems_mfa_required"] = "true"
18
+
19
+ spec.add_dependency "rubocop", "~> 1.26", ">= 1.26.1"
20
+ spec.add_dependency "rubocop-performance", "~> 1.13", ">= 1.13.3"
21
+ spec.add_dependency "rubocop-rails", "~> 2.14", ">= 2.14.2"
22
+ spec.add_dependency "rubocop-rspec", "~> 2.9"
23
+ spec.add_development_dependency "bundler"
24
+ spec.add_development_dependency "rake"
25
+ end