nonstandard 0.1.1

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
+ SHA256:
3
+ metadata.gz: 8e903ec605f9801f15924036c69c7e3a2abbceb3d2ef4bf245cdcbffdbe54d59
4
+ data.tar.gz: f1577a78c4d1d01ab0372a0c6dfecd8760f46230badd4922578885fdbef08229
5
+ SHA512:
6
+ metadata.gz: c901bc91e01ef16a9bb83e7feddec4805df6a6d7a101bf7217626e76729a219a320321e4c64afbf9fdfe8ec9762141b352d40d57efe98a5b7cf6bd7146b63ed3
7
+ data.tar.gz: 934a74ab5dfd931861730ba9a26af762929ed72f47f3be3c3606ab4ffee5518df0d4eff7d3d434161e1f9740f77ffe779e60cddfe89ded4b148de7d60097d189
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ inherit_from: default.yml
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # CHANGELOG
2
+
3
+ ## 0.0.1 (2021-05-19)
4
+ - Initial release
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in nonstandard.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,77 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ nonstandard (0.1.1)
5
+ rubocop
6
+ rubocop-faker
7
+ rubocop-performance
8
+ rubocop-rails
9
+ rubocop-rake
10
+ rubocop-rspec
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ activesupport (6.1.3.2)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ zeitwerk (~> 2.3)
21
+ ast (2.4.2)
22
+ concurrent-ruby (1.1.8)
23
+ faker (2.18.0)
24
+ i18n (>= 1.6, < 2)
25
+ i18n (1.8.10)
26
+ concurrent-ruby (~> 1.0)
27
+ minitest (5.14.4)
28
+ parallel (1.20.1)
29
+ parser (3.0.1.1)
30
+ ast (~> 2.4.1)
31
+ rack (2.2.3)
32
+ rainbow (3.0.0)
33
+ rake (13.0.3)
34
+ regexp_parser (2.1.1)
35
+ rexml (3.2.5)
36
+ rubocop (1.15.0)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.0.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml
42
+ rubocop-ast (>= 1.5.0, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.5.0)
46
+ parser (>= 3.0.1.1)
47
+ rubocop-faker (1.1.0)
48
+ faker (>= 2.12.0)
49
+ rubocop (>= 0.82.0)
50
+ rubocop-performance (1.11.3)
51
+ rubocop (>= 1.7.0, < 2.0)
52
+ rubocop-ast (>= 0.4.0)
53
+ rubocop-rails (2.10.1)
54
+ activesupport (>= 4.2.0)
55
+ rack (>= 1.1)
56
+ rubocop (>= 1.7.0, < 2.0)
57
+ rubocop-rake (0.5.1)
58
+ rubocop
59
+ rubocop-rspec (2.3.0)
60
+ rubocop (~> 1.0)
61
+ rubocop-ast (>= 1.1.0)
62
+ ruby-progressbar (1.11.0)
63
+ tzinfo (2.0.4)
64
+ concurrent-ruby (~> 1.0)
65
+ unicode-display_width (2.0.0)
66
+ zeitwerk (2.4.2)
67
+
68
+ PLATFORMS
69
+ arm64-darwin-20
70
+ x86_64-darwin-19
71
+
72
+ DEPENDENCIES
73
+ nonstandard!
74
+ rake (~> 13.0)
75
+
76
+ BUNDLED WITH
77
+ 2.2.16
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Jay Dorsey
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # Nonstandard
2
+
3
+ This is an opinionated rubocp configuration.
4
+
5
+ - Prefer most of the rubocop/ruby style guide community defaults
6
+ - Enable performance, rails, rspec, faker, rake
7
+ - Disable things that we'd find in a default rails app that we don't need
8
+ (comments on `config/application.rb` for example)
9
+ - Allow or expect comments on other things; models, controllers, etc.
10
+
11
+ ## Usage
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ group :development do
17
+ gem 'nonstandard', require: false
18
+ end
19
+ ```
20
+
21
+ Add this to your project `.rubocop.yml` file
22
+
23
+ ```ruby
24
+ inherit_gem:
25
+ nonstandard: default.yml
26
+ ```
27
+
28
+ And then execute:
29
+
30
+ $ bundle install
31
+
32
+ You can continue to add application-specific rules/overrides in the
33
+ `.rubocop.yml` file in the root of your application, including annotating
34
+ your todo list:
35
+
36
+ ```ruby
37
+ inherit_from: .rubocop_todo.yml
38
+ ```
39
+
40
+ ## Development
41
+
42
+ ### Testing locally
43
+
44
+ In your application, use the `path` attribute to point to your local copy of the gem
45
+
46
+ ```ruby
47
+ # Use the relative path from your application, to the nonstandard folder
48
+ gem 'nonstandard', path: '../nonstandard', require: false
49
+ ```
50
+
51
+ ### Publishing the gem
52
+
53
+ If you have access to publish the gem on rubygems:
54
+
55
+ 1. Update the `version.rb` file as appropriate
56
+ 1. `bundle` if any dependencies have changed
57
+ 1. Commit all changes
58
+ 1. Update the `CHANGELOG.md`
59
+ 1. Publish to rubygems:
60
+ 1. `rake build`
61
+ 1. `cd pkg`
62
+ 1. `gem push nonstandard.<version_number>.gem`
63
+
64
+
65
+ ## Contributing
66
+
67
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jaybocop/nonstandard.
68
+
69
+ ## License
70
+
71
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rubocop/rake_task"
5
+
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: :rubocop
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "nonstandard"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/default.yml ADDED
@@ -0,0 +1,45 @@
1
+ ---
2
+ # Reference: https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
3
+ require:
4
+ - rubocop-faker
5
+ - rubocop-performance
6
+ - rubocop-rails
7
+ - rubocop-rake
8
+ - rubocop-rspec
9
+
10
+ AllCops:
11
+ Exclude:
12
+ - 'bin/**/*'
13
+ - 'db/**/*'
14
+ - 'lib/tasks/*'
15
+ - 'Rakefile'
16
+ - '*.gemspec'
17
+ - '**/node_modules/**/*'
18
+ - 'vendor/**/*'
19
+
20
+ Layout/LineLength:
21
+ Exclude:
22
+ - config/routes.rb
23
+
24
+ Metrics/AbcSize:
25
+ Enabled: false
26
+
27
+ Metrics/BlockLength:
28
+ Exclude:
29
+ - config/environments/development.rb
30
+ - config/environments/production.rb
31
+ - config/environments/test.rb
32
+ - config/routes.rb
33
+
34
+ Metrics/MethodLength:
35
+ Enabled: false
36
+
37
+ Style/Documentation:
38
+ Exclude:
39
+ - app/controllers/**/*
40
+ - app/controllers/application_controller.rb
41
+ - app/helpers/application_helper.rb
42
+ - app/models/application_record.rb
43
+ - config/application.rb
44
+ - spec/**/*
45
+ - test/**/*
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nonstandard
4
+ VERSION = '0.1.1'
5
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "nonstandard/version"
4
+
5
+ module Nonstandard
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/nonstandard/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'nonstandard'
7
+ spec.version = Nonstandard::VERSION
8
+ spec.authors = ['Jay Dorsey']
9
+ spec.email = ['191564+jaydorsey@users.noreply.github.com']
10
+
11
+ spec.summary = 'Opinionated Style Guide'
12
+ spec.homepage = "https://github.com/jaybocop/nonstandard"
13
+ spec.license = 'MIT'
14
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
15
+
16
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
17
+
18
+ spec.metadata['homepage_uri'] = spec.homepage
19
+ spec.metadata['source_code_uri'] = spec.homepage
20
+ spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
26
+ end
27
+
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency 'rubocop'
33
+ spec.add_dependency 'rubocop-rspec'
34
+ spec.add_dependency 'rubocop-performance'
35
+ spec.add_dependency 'rubocop-rails'
36
+ spec.add_dependency 'rubocop-faker'
37
+ spec.add_dependency 'rubocop-rake'
38
+
39
+ # For more information and examples about making a new gem, checkout our
40
+ # guide at: https://bundler.io/guides/creating_gem.html
41
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nonstandard
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Jay Dorsey
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-performance
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-faker
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description:
98
+ email:
99
+ - 191564+jaydorsey@users.noreply.github.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rubocop.yml"
106
+ - CHANGELOG.md
107
+ - Gemfile
108
+ - Gemfile.lock
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - bin/console
113
+ - bin/setup
114
+ - default.yml
115
+ - lib/nonstandard.rb
116
+ - lib/nonstandard/version.rb
117
+ - nonstandard.gemspec
118
+ homepage: https://github.com/jaybocop/nonstandard
119
+ licenses:
120
+ - MIT
121
+ metadata:
122
+ allowed_push_host: https://rubygems.org
123
+ homepage_uri: https://github.com/jaybocop/nonstandard
124
+ source_code_uri: https://github.com/jaybocop/nonstandard
125
+ changelog_uri: https://github.com/jaybocop/nonstandard/blob/master/CHANGELOG.md
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 2.3.0
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubygems_version: 3.2.16
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Opinionated Style Guide
145
+ test_files: []