alterans-stylecheck 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: 88a0d2f3a5178cb869eb12a647b272227bd217d6
4
+ data.tar.gz: 9cce7762547dcd75a228ee4e7e8c196249f278b8
5
+ SHA512:
6
+ metadata.gz: d04c1ab3a5bcfd9949944be75a1b35ef56468c6b20e8393078f451ad53693e60df2931bc9d83a03e5ca018319b5979009c20c2033c04ea01ae9e9bbe13e85579
7
+ data.tar.gz: 397aa817beaa0ffe6fd77e99f8c9bc65b18fb77fa03c3416f3bdb9c4a926e89baf413d599e8c64db6586d938e3762c19e6b9c652634db4732bd1d6abf3bb5251
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ /.bundle/
2
+ /Gemfile.lock
3
+ /pkg/
data/.rubocop.yml ADDED
@@ -0,0 +1,5 @@
1
+ Style/Documentation:
2
+ Enabled: false
3
+
4
+ Style/StringLiterals:
5
+ EnforcedStyle: double_quotes
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in alterans-stylecheck.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Krzysztof Wawer
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,41 @@
1
+ # Alterans::Stylecheck
2
+
3
+ This gem is inspired by `ragnarson-stylecheck` gem.
4
+
5
+ This gem contains RuboCop config and together with `rubocop-stylecheck` provides all necessary things to run RuboCop via rake.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem "alterans-stylecheck"
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install alterans-stylecheck
22
+
23
+ After all in Rakefile you must add:
24
+
25
+ ```ruby
26
+ require "rubocop/stylecheck/rake_task"
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ See [rubocop-stylecheck](https://github.com/alterans/rubocop-stylecheck)
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/alterans/alterans-stylecheck.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ require "bundler"
2
+ require "bundler/gem_tasks"
3
+ Bundler.require
4
+
5
+ require "rubocop/stylecheck/rake_task"
@@ -0,0 +1,25 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "alterans/stylecheck/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "alterans-stylecheck"
7
+ spec.version = Alterans::Stylecheck::VERSION
8
+ spec.authors = ["Krzysztof Wawer"]
9
+ spec.email = ["krzysztof.wawer@gmail.com"]
10
+
11
+ spec.summary = "Rubocop rules used in Alterans Technologies projects"
12
+ spec.homepage = "https://github.com/alterans/alterans-stylecheck"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
+ f.match(%r{^(test|spec|features)/})
17
+ end
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.14"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_dependency "rubocop-stylecheck", "~> 0.1.0"
25
+ end
@@ -0,0 +1,5 @@
1
+ module Alterans
2
+ module Stylecheck
3
+ VERSION = "0.1.0".freeze
4
+ end
5
+ end
@@ -0,0 +1,19 @@
1
+ require "rubocop-stylecheck"
2
+
3
+ require "alterans/stylecheck/version"
4
+
5
+ module Alterans
6
+ module Stylecheck
7
+ class << self
8
+ def root
9
+ Gem::Specification.find_by_name("alterans-stylecheck").gem_dir
10
+ end
11
+
12
+ def template_path
13
+ File.join(root, "template", "rubocop.yml")
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+ Rubocop::Stylecheck.config_path = Alterans::Stylecheck.template_path
@@ -0,0 +1,5 @@
1
+ inherit_gem:
2
+ alterans-stylecheck: .rubocop.yml
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.4
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alterans-stylecheck
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Krzysztof Wawer
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-11-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-stylecheck
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.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.1.0
55
+ description:
56
+ email:
57
+ - krzysztof.wawer@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rubocop.yml"
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - alterans-stylecheck.gemspec
69
+ - lib/alterans/stylecheck.rb
70
+ - lib/alterans/stylecheck/version.rb
71
+ - template/rubocop.yml
72
+ homepage: https://github.com/alterans/alterans-stylecheck
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubyforge_project:
92
+ rubygems_version: 2.6.11
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: Rubocop rules used in Alterans Technologies projects
96
+ test_files: []