cleversteam-style 0.1.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: 438d18fc18450662b78b4376fce834d7dc9b708fe4f7db268e4a6cd8fd810466
4
+ data.tar.gz: 3e95a87c478867e154830bd7762f0002b6e86ca7952afde64eb8b247a87ccabb
5
+ SHA512:
6
+ metadata.gz: 9d4f90f1970c01691e353a3ccf4821feafc16353804a9d0291114b414e7a458169d756fcba4b769f57a873d12dd5ec7d54d9ec68a9a5b8e163bdf71827b77884
7
+ data.tar.gz: f60372fb50997d3afe9dfd99d2d276a8bafa105b9df6ab5d692a032b873947ca1d789b7d2265caed90d88a417ffb306aba04a8b6b162a27912194026904e4fc8
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 @@
1
+ inherit_from: default.yml
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify dependencies in cleversteam-style.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cleversteam-style (0.1.0)
5
+ rubocop (~> 0.82.0)
6
+ rubocop-rspec (~> 1.38.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.0)
12
+ jaro_winkler (1.5.4)
13
+ parallel (1.19.1)
14
+ parser (2.7.1.1)
15
+ ast (~> 2.4.0)
16
+ rainbow (3.0.0)
17
+ rake (13.0.1)
18
+ rexml (3.2.4)
19
+ rubocop (0.82.0)
20
+ jaro_winkler (~> 1.5.1)
21
+ parallel (~> 1.10)
22
+ parser (>= 2.7.0.1)
23
+ rainbow (>= 2.2.2, < 4.0)
24
+ rexml
25
+ ruby-progressbar (~> 1.7)
26
+ unicode-display_width (>= 1.4.0, < 2.0)
27
+ rubocop-rspec (1.38.1)
28
+ rubocop (>= 0.68.1)
29
+ ruby-progressbar (1.10.1)
30
+ unicode-display_width (1.7.0)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ bundler (~> 2.1)
37
+ cleversteam-style!
38
+ rake (~> 13.0)
39
+
40
+ BUNDLED WITH
41
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Cleversteam Limited
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,47 @@
1
+ # cleversteam-style
2
+
3
+ RuboCop implementation for Cleversteam projects. Based on [percy-style](https://github.com/percy/percy-style).
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ group :test, :development do
11
+ gem 'cleversteam-style'
12
+ end
13
+ ```
14
+
15
+ Or for a Ruby gem/library, add this to your gemspec:
16
+
17
+ ```ruby
18
+ spec.add_development_dependency 'cleversteam-style'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ ```bash
24
+ $ bundle install
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ Create a file in your project root called `.rubocop.yml` with the following:
30
+
31
+ ```yaml
32
+ inherit_gem:
33
+ cleversteam-style:
34
+ - default.yml
35
+ ```
36
+
37
+ And then execute:
38
+
39
+ ```bash
40
+ $ bundle exec rubocop
41
+ ```
42
+
43
+ You do not need to include rubocop directly in your application's dependencies as this gem includes `rubocop` and `rubocop-rspec`.
44
+
45
+ ## Releasing
46
+
47
+ To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/cleversteam/style/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'cleversteam-style'
7
+ spec.version = Cleversteam::Style::VERSION
8
+ spec.authors = ['Cleversteam']
9
+ spec.email = ['support@cleversteam.com']
10
+ spec.summary = 'RuboCop implementation for Cleversteam projects.'
11
+ spec.homepage = 'https://github.com/Cleversteam/cleversteam-style'
12
+ spec.license = 'MIT'
13
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
14
+ spec.metadata['homepage_uri'] = spec.homepage
15
+ spec.metadata['source_code_uri'] = 'https://github.com/Cleversteam/cleversteam-style'
16
+ spec.metadata['changelog_uri'] = 'https://github.com/Cleversteam/cleversteam-style/releases'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+ spec.add_dependency 'rubocop', '~> 0.82.0'
28
+ spec.add_dependency 'rubocop-rspec', '~> 1.38.1'
29
+ spec.add_development_dependency 'bundler', '~> 2.1'
30
+ spec.add_development_dependency 'rake', '~> 13.0'
31
+ end
data/default.yml ADDED
@@ -0,0 +1,36 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'bin/*'
4
+ - 'config/**/*'
5
+ - 'db/**/*'
6
+ - 'runners/**/*'
7
+ - 'Gemfile.lock'
8
+ - 'node_modules/**/*'
9
+ - 'vendor/**/*'
10
+
11
+ Style/Documentation:
12
+ Enabled: false
13
+
14
+ Layout/LineLength:
15
+ Enabled: false
16
+
17
+ Layout/SpaceAroundMethodCallOperator:
18
+ Enabled: true
19
+
20
+ Lint/RaiseException:
21
+ Enabled: true
22
+
23
+ Lint/StructNewOverride:
24
+ Enabled: true
25
+
26
+ Style/ExponentialNotation:
27
+ Enabled: true
28
+
29
+ Style/HashEachMethods:
30
+ Enabled: true
31
+
32
+ Style/HashTransformKeys:
33
+ Enabled: true
34
+
35
+ Style/HashTransformValues:
36
+ Enabled: true
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'cleversteam/style/version'
4
+
5
+ module Cleversteam
6
+ module Style
7
+ class Error < StandardError; end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cleversteam
4
+ module Style
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cleversteam-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Cleversteam
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-04-24 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.82.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.82.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: 1.38.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.38.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '13.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '13.0'
69
+ description:
70
+ email:
71
+ - support@cleversteam.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rubocop.yml"
78
+ - Gemfile
79
+ - Gemfile.lock
80
+ - LICENSE.txt
81
+ - README.md
82
+ - Rakefile
83
+ - cleversteam-style.gemspec
84
+ - default.yml
85
+ - lib/cleversteam/style.rb
86
+ - lib/cleversteam/style/version.rb
87
+ homepage: https://github.com/Cleversteam/cleversteam-style
88
+ licenses:
89
+ - MIT
90
+ metadata:
91
+ homepage_uri: https://github.com/Cleversteam/cleversteam-style
92
+ source_code_uri: https://github.com/Cleversteam/cleversteam-style
93
+ changelog_uri: https://github.com/Cleversteam/cleversteam-style/releases
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 2.3.0
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubygems_version: 3.0.8
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: RuboCop implementation for Cleversteam projects.
113
+ test_files: []