matkoniecz-ruby-style 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: a7213fd984305324ba7fd5eb6c61ceefbb8ecd06
4
+ data.tar.gz: 3f37fe3708552dcadda7719f56844958eec03734
5
+ SHA512:
6
+ metadata.gz: d8171f0190b6edf2cd7024fce10c60afb16c4817b6f22116064cec49e3efccd693b4c50a55ee3e06100abf712ba343106c40ac92b6674b2fd02f7b058a6f40b0
7
+ data.tar.gz: 25582befabe374ecec220cb76bec15d1260aa1d6a8243579956bb6240e324812484c3829468d318e8da7669bb34ce16c57fba9275bbaa778ebfe0dba6d5494a4
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/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in matkoniecz-ruby-style.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2018 Mateusz Konieczny
2
+
3
+ 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:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ 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,40 @@
1
+ # Matkoniecz::Ruby::Style
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/matkoniecz/ruby/style`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ Inspired by [percy-style](https://github.com/percy/percy-style).
8
+
9
+ ## Installation
10
+
11
+ $ gem install matkoniecz-ruby-style
12
+
13
+ or add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'matkoniecz-ruby-style'
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ Create a `.rubocop.yml` with the following directives:
22
+
23
+ ```yaml
24
+ inherit_gem:
25
+ matkoniecz-ruby-style:
26
+ - standard_rubocop_config.yml
27
+ ```
28
+
29
+ ## How to release new gem version
30
+
31
+ ```
32
+ rm *.gem
33
+ gem build *.gemspec
34
+ gem install --user-install *.gem
35
+ gem push *.gem
36
+ ```
37
+
38
+ ## Contributing
39
+
40
+ Bug reports and pull requests are welcome on GitHub at https://github.com/matkoniecz/matkoniecz-ruby-style.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,24 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "matkoniecz/ruby/style/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "matkoniecz-ruby-style"
8
+ spec.version = Matkoniecz::Ruby::Style::VERSION
9
+ spec.authors = ["Mateusz Konieczny"]
10
+ spec.email = ["matkoniecz@gmail.com"]
11
+
12
+ spec.summary = "shared style config for Ruby"
13
+ spec.license = 'MIT'
14
+ spec.homepage = "https://github.com/matkoniecz/matkoniecz-ruby-style"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+ end
@@ -0,0 +1,51 @@
1
+ # not preferred as this rule makes harder to move/add/remove items
2
+ Style/TrailingCommaInLiteral:
3
+ Enabled: false
4
+
5
+ # change without benefit ( foobar == nil into foobar.nil?)
6
+ Style/NilComparison:
7
+ Enabled: false
8
+
9
+ # single-quoted strings are worse as adding #{} requires changing ' back into "
10
+ Style/StringLiterals:
11
+ Enabled: false
12
+
13
+ # explicit return make easier to avoid subtle bugs on changing function
14
+ Style/RedundantReturn:
15
+ Enabled: false
16
+
17
+ # sometimes it is necessary to use UTF in comment (especially in cases where some special handling is necessary for nonASCII text)
18
+ Style/AsciiComments:
19
+ Enabled: false
20
+
21
+ # block comments are fine in my opinion
22
+ Style/BlockComments:
23
+ Enabled: false
24
+
25
+ # overcomplicated syntax without benefit
26
+ Style/WordArray:
27
+ Enabled: false
28
+
29
+ # it is likely to detect bugs, there is no point in masking them by running autocorrect
30
+ Lint/UnusedMethodArgument:
31
+ AutoCorrect: False
32
+ Lint/UnusedBlockArgument:
33
+ AutoCorrect: False
34
+
35
+ # see https://github.com/bbatsov/rubocop/issues/1747#issuecomment-223370141
36
+ # this auto-correct rule may break things and is not a clear improvement
37
+ Style/SpecialGlobalVars:
38
+ Enabled: false
39
+
40
+ #AllCops:
41
+ # TargetRubyVersion: 2.3
42
+
43
+ # Uncomment following rules to allow using tabs:
44
+ #Layout/Tab:
45
+ # Enabled: false
46
+
47
+ #Layout/IndentationConsistency:
48
+ # Enabled: false
49
+
50
+ #Layout/IndentationWidth:
51
+ # Enabled: false
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: matkoniecz-ruby-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mateusz Konieczny
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-10-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - matkoniecz@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - Gemfile
22
+ - LICENSE.txt
23
+ - README.md
24
+ - Rakefile
25
+ - matkoniecz-ruby-style.gemspec
26
+ - standard_rubocop_config.yml
27
+ homepage: https://github.com/matkoniecz/matkoniecz-ruby-style
28
+ licenses:
29
+ - MIT
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 2.6.14.1
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: shared style config for Ruby
51
+ test_files: []