rubocop-emotionsar 1.0.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 523672aca261bb8a75fa1ed9e98e2afe960964b870f247a30f0138262f09e40f
4
+ data.tar.gz: 8d4c57ca52510d4b02acd45c8f93305dfef4189be8601db9c8dafa03396bc480
5
+ SHA512:
6
+ metadata.gz: 338b5e4b2847bde03b0fc53df8122e2e5c08ffc76cfda97ba53a27b64bb8f1b62c5dad4d49469f2f863fc669c7928bd67ed3c07f0e55601e1f5bab791ac198fe
7
+ data.tar.gz: 12a37880cb60a49bee49f4a34d7a9e963842b94f1e2ad6086cc4467bdbc6e9f8d12d9a9963a4805f79ffd919ddf54178d66739f1a3516e02ac2d6a3d3a443451
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .DS_Store
10
+ /Gemfile.lock
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rubocop.yml ADDED
@@ -0,0 +1,15 @@
1
+ inherit_from: style.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.7
5
+
6
+ Gemspec/OrderedDependencies:
7
+ Enabled: false
8
+
9
+ # Extensions
10
+ Minitest:
11
+ Enabled: false
12
+ Rails:
13
+ Enabled: false
14
+ Rake:
15
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # Changelog
2
+
3
+ ## v1.0.0
4
+ - First version of the gem
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in rubocop-emotionsar.gemspec
6
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Roger Bagué
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,44 @@
1
+ # Rubocop::Emotionsar
2
+
3
+ emotionsAR styleguide for Ruby on Rails projects
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ group :development, :test do
11
+ gem 'rubocop-emotionsar'
12
+ end
13
+ ```
14
+
15
+ And then run
16
+ ```shell
17
+ $ bundle install
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Create a `.rubocop.yml` file and include the following directives at the top of it:
23
+ ```yml
24
+ inherit_gem:
25
+ rubocop-emotionsar: style.yml
26
+ ```
27
+
28
+ Also the target ruby and rails versions should be specifier per each project:
29
+ ```yml
30
+ AllCops:
31
+ TargetRubyVersion: 2.4 # default as per rubocop:0.81.0
32
+ TargetRailsVersions: 5.0 # default as per rubocop-rails:2.5.2
33
+ ```
34
+
35
+ And run:
36
+ ```shell
37
+ bundle exec rubocop
38
+ ```
39
+
40
+ Rubocop does not need to be installed in your dependencies, `rubocop-emotionsar` already includes a specific `rubocop` version in its dependencies.
41
+
42
+ ## License
43
+
44
+ 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 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,75 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-minitest
5
+ - rubocop-rake
6
+
7
+ inherit_mode:
8
+ merge:
9
+ - Exclude
10
+
11
+ # Bundler
12
+ Bundler/OrderedGems:
13
+ Enabled: false
14
+
15
+ # Layout
16
+ Layout/LineLength:
17
+ Enabled: false
18
+
19
+ # Lint
20
+ Lint/RaiseException:
21
+ Enabled: true
22
+ Lint/StructNewOverride:
23
+ Enabled: true
24
+
25
+ # Metrics
26
+ Metrics/AbcSize:
27
+ Enabled: false
28
+ Metrics/BlockLength:
29
+ Enabled: false
30
+ Metrics/ClassLength:
31
+ Enabled: false
32
+ Metrics/CyclomaticComplexity:
33
+ Enabled: false
34
+ Metrics/MethodLength:
35
+ Enabled: false
36
+ Metrics/PerceivedComplexity:
37
+ Enabled: false
38
+
39
+ # Minitest
40
+ Minitest:
41
+ Include:
42
+ - test/**/*.rb
43
+
44
+ # Rails
45
+ Rails/FilePath:
46
+ EnforcedStyle: arguments
47
+ Rails/NotNullColumn:
48
+ Enabled: false
49
+
50
+ # Rake
51
+ Rake:
52
+ Include:
53
+ - Rakefile
54
+ - lib/tasks/**/*.rake
55
+
56
+ # Style
57
+ Style/ClassAndModuleChildren:
58
+ Enabled: false
59
+ Style/Documentation:
60
+ Enabled: false
61
+ Style/FrozenStringLiteralComment:
62
+ Enabled: false
63
+ Style/HashEachMethods:
64
+ Enabled: false
65
+ Style/HashTransformKeys:
66
+ Enabled: true
67
+ Style/HashTransformValues:
68
+ Enabled: true
69
+ Style/IfUnlessModifier:
70
+ Enabled: false
71
+ Style/RegexpLiteral:
72
+ EnforcedStyle: mixed
73
+ AllowInnerSlashes: true
74
+ Style/SymbolArray:
75
+ EnforcedStyle: brackets
@@ -0,0 +1,5 @@
1
+ require 'rubocop/emotionsar/version'
2
+
3
+ module Rubocop
4
+ module Emotionsar; end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Rubocop
2
+ module Emotionsar
3
+ VERSION = '1.0.0'.freeze
4
+ end
5
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/rubocop/emotionsar/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'rubocop-emotionsar'
7
+ spec.version = Rubocop::Emotionsar::VERSION
8
+ spec.authors = ['Roger Bagué']
9
+ spec.email = ['rogerbague@gmail.com']
10
+
11
+ spec.summary = 'emotionsAR styleguide for RoR projects'
12
+ spec.description = <<-DESC.strip
13
+ Provides basic configuration for rubocop to be used in Ruby on Rails projects.
14
+ It also provides performance, rails, minitest and rake extensions
15
+ DESC
16
+ spec.homepage = 'https://github.com/emotionsAR/rubocop-emotionsar'
17
+ spec.license = 'MIT'
18
+ spec.required_ruby_version = Gem::Specification.new('>= 2.4.0') # same as rubocop:0.81.0
19
+
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
+
22
+ spec.metadata['homepage_uri'] = spec.homepage
23
+ spec.metadata['source_code_uri'] = spec.homepage
24
+ spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
25
+ spec.metadata['bug_tracker_uri'] = "#{spec.homepage}/issues"
26
+
27
+ # Specify which files should be added to the gem when it is released.
28
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
29
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
30
+ `git ls-files -z`.split("\x0").reject { |f| f.match(/^(test|spec|features)\//) }
31
+ end
32
+ spec.bindir = 'exe'
33
+ spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
34
+ spec.require_paths = ['lib']
35
+
36
+ spec.add_dependency 'rubocop', '~> 0.81.0'
37
+ spec.add_dependency 'rubocop-performance', '~> 1.5'
38
+ spec.add_dependency 'rubocop-rails', '~> 2.5'
39
+ spec.add_dependency 'rubocop-minitest', '~> 0.9.0'
40
+ spec.add_dependency 'rubocop-rake', '~> 0.5.1'
41
+
42
+ spec.add_development_dependency 'bundler', '~> 2.1'
43
+ spec.add_development_dependency 'rake', '~> 13.0'
44
+ end
data/style.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: config/default.yml
metadata ADDED
@@ -0,0 +1,160 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-emotionsar
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Roger Bagué
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-04-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.81.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.81.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.5'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.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.9.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.5.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.5.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '13.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '13.0'
111
+ description: |-
112
+ Provides basic configuration for rubocop to be used in Ruby on Rails projects.
113
+ It also provides performance, rails, minitest and rake extensions
114
+ email:
115
+ - rogerbague@gmail.com
116
+ executables: []
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - ".gitignore"
121
+ - ".rubocop.yml"
122
+ - CHANGELOG.md
123
+ - Gemfile
124
+ - LICENSE
125
+ - README.md
126
+ - Rakefile
127
+ - config/default.yml
128
+ - lib/rubocop/emotionsar.rb
129
+ - lib/rubocop/emotionsar/version.rb
130
+ - rubocop-emotionsar.gemspec
131
+ - style.yml
132
+ homepage: https://github.com/emotionsAR/rubocop-emotionsar
133
+ licenses:
134
+ - MIT
135
+ metadata:
136
+ allowed_push_host: https://rubygems.org
137
+ homepage_uri: https://github.com/emotionsAR/rubocop-emotionsar
138
+ source_code_uri: https://github.com/emotionsAR/rubocop-emotionsar
139
+ changelog_uri: https://github.com/emotionsAR/rubocop-emotionsar/blob/master/CHANGELOG.md
140
+ bug_tracker_uri: https://github.com/emotionsAR/rubocop-emotionsar/issues
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubygems_version: 3.1.2
157
+ signing_key:
158
+ specification_version: 4
159
+ summary: emotionsAR styleguide for RoR projects
160
+ test_files: []