rubocop_roostify 0.1.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: d2275e65befd3622a5310adb4d384ae39840da24
4
+ data.tar.gz: f6a375187b55b5cd6f6f7ba98e35d7f946cc17bd
5
+ SHA512:
6
+ metadata.gz: e62cbd76dd4272f5a7de892f9cbea6fcd0f651be7833d3dbc9da691bd3405de99b328e40fa65d82539efb8406396cc721a6dcfc2cbf4936c177a3e7800ca1b5b
7
+ data.tar.gz: 73a2c3cdc773a49ff99cf4e287ff76475944bb8479e7f1c2ce5cddb39a648bd6bdd57c972ba692a861556a922b768022c2b7c20cd04d6dfbbd3234234fcc8446
data/.rubocop.yml ADDED
@@ -0,0 +1,12 @@
1
+ AllCops:
2
+ # Show full cop name when failing, making it easier to ignore if necessary
3
+ DisplayCopNames: true
4
+ # Links to the style guide with reasoning behind cop on failure
5
+ DisplayStyleGuide: true
6
+ Exclude:
7
+ - bin/**/*
8
+ - db/**/*
9
+ - vendor/**/*
10
+
11
+ Style/Documentation:
12
+ Enabled: false
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ source 'https://rubygems.org'
3
+
4
+ gemspec
5
+
6
+ group :development, :test do
7
+ gem 'pry'
8
+ end
data/MIT-LICENSE.md ADDED
@@ -0,0 +1,8 @@
1
+ The MIT License (MIT)
2
+ Copyright (c) 2016 Roostify jc@roostify.com
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # Rubocop Roostify
2
+
3
+ As we have a variety of projects, It may be nice to have them conform to the same style guide without copy-pasting the same gosh-darn 8 lines of yml all over the place.
4
+
5
+ Instead, use the following as your starting ``.rubocop.yml`:
6
+
7
+ ```
8
+ inherit_gem:
9
+ rubocop_roostify: .rubocop.yml
10
+ ```
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ # encoding: utf-8
2
+
3
+ require 'bundler'
4
+ require 'bundler/gem_tasks'
5
+
6
+ begin
7
+ Bundler.setup(:default, :development)
8
+ rescue Bundler::BundlerError => e
9
+ $stderr.puts e.message
10
+ $stderr.puts 'Run `bundle install` to install missing gems'
11
+ exit e.status_code
12
+ end
13
+
14
+ desc 'Run RuboCop over this gem'
15
+ task :internal_investigation do
16
+ require 'rubocop_roostify'
17
+
18
+ result = RuboCop::CLI.new.run
19
+ abort('RuboCop failed!') unless result == 0
20
+ end
21
+
22
+ task default: [:internal_investigation]
@@ -0,0 +1,5 @@
1
+ module RuboCop
2
+ module Roostify
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubocop'
4
+ require 'rubocop/roostify/version'
@@ -0,0 +1,34 @@
1
+ # encoding: utf-8
2
+ $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
3
+ require 'rubocop/roostify/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'rubocop_roostify'
7
+ spec.summary = 'Default rubocop configuration for Roostify™ projects'
8
+ spec.description = <<-end_description
9
+ Enforces rubocop style consistency across Roostify projects
10
+ end_description
11
+ spec.homepage = 'http://github.com/roostify/rubocop-roostify='
12
+ spec.authors = ['Zee Specer', 'Nils Gemeinhardt']
13
+ spec.email = ['zee@roostify.com', 'git@nilsgemeinhardt.de']
14
+ spec.licenses = ['MIT']
15
+
16
+ spec.version = RuboCop::Roostify::VERSION
17
+ spec.platform = Gem::Platform::RUBY
18
+ spec.required_ruby_version = '>= 1.9.3'
19
+
20
+ spec.require_paths = ['lib']
21
+ spec.files = Dir[
22
+ '{config,lib,spec}/**/*',
23
+ '*.md',
24
+ '*.gemspec',
25
+ 'Gemfile',
26
+ 'Rakefile',
27
+ '.rubocop.yml'
28
+ ]
29
+
30
+ spec.extra_rdoc_files = ['MIT-LICENSE.md', 'README.md']
31
+
32
+ spec.add_development_dependency('rubocop', '0.37.2')
33
+ spec.add_development_dependency('rake', '~> 10.1')
34
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop_roostify
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Zee Specer
8
+ - Nils Gemeinhardt
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-02-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rubocop
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '='
19
+ - !ruby/object:Gem::Version
20
+ version: 0.37.2
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '='
26
+ - !ruby/object:Gem::Version
27
+ version: 0.37.2
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: '10.1'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: '10.1'
42
+ description: |2
43
+ Enforces rubocop style consistency across Roostify projects
44
+ email:
45
+ - zee@roostify.com
46
+ - git@nilsgemeinhardt.de
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files:
50
+ - MIT-LICENSE.md
51
+ - README.md
52
+ files:
53
+ - lib/rubocop/roostify/version.rb
54
+ - lib/rubocop_roostify.rb
55
+ - MIT-LICENSE.md
56
+ - README.md
57
+ - rubocop_roostify.gemspec
58
+ - Gemfile
59
+ - Rakefile
60
+ - .rubocop.yml
61
+ homepage: http://github.com/roostify/rubocop-roostify=
62
+ licenses:
63
+ - MIT
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
73
+ version: 1.9.3
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.0.14
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: Default rubocop configuration for Roostify™ projects
85
+ test_files: []