easy_style 0.1.0 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1913a9f860fe3c8ed0d869a2b99958d5dc1a8afee7496a35354b83b02e6b6a7
4
- data.tar.gz: 205d1dd1f2045e627ff46b2550babbc37652693d9429e08dd049b0efb1c745e0
3
+ metadata.gz: 02c90977d44495ac7c045383b9d0944624c190c12af6ad816d84c7b2a0806f6d
4
+ data.tar.gz: 6712c60295c76292363e64b17bbb9bedbf2f8e9767e6c67f6da95a697734d6c4
5
5
  SHA512:
6
- metadata.gz: 499a9ce1279479bc579178a5f3e72f86853348b7bc56210eaeeeb3d10771138f37924a396c162e070a3c91ad0f1ac365a2ee10a2fad7d4cfa4d8657869bcaa23
7
- data.tar.gz: c21319ef63e61dad632f298fa96aaf1cf62aae6037e28193fbb7393e64904c82987dba4cdc7dc14b4d74dedcaffe511cfb9583d960bd9f2f0ba5e61a01265aed
6
+ metadata.gz: 03fc117e9bc83a00a1b32dc33111c5d56ab18625149a66674d6c8294e1afc579211d2cc9095740d4bb240fce7b59d0a5bc299feecb41b97e6206a937a78df177
7
+ data.tar.gz: f8037f05a87529b51b32411251a16312b1676cd0cdb545dda3a792cf236c7a8c07b6374568eeeab615c5d08c433d2cfb976dc65ef1fd304b1e2b69884eab9ef9
data/.rubocop.yml CHANGED
@@ -1 +1 @@
1
- inherit_from: forgiving.yml
1
+ inherit_from: default.yml
data/README.md CHANGED
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'easy_style'
12
+ gem 'easy_style', group: %i[development]
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -22,7 +22,16 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ In your `.rubocop.yml` file:
26
+ ```yaml
27
+ inherit_gem:
28
+ easy_style: default.yml
29
+ ```
30
+
31
+ Generate "todo" file is recommended:
32
+ ```bash
33
+ bundle exec rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000
34
+ ```
26
35
 
27
36
  ## Development
28
37
 
data/Rakefile CHANGED
@@ -1,2 +1,2 @@
1
1
  require "bundler/gem_tasks"
2
- task :default => :spec
2
+ task default: :spec
data/default.yml CHANGED
@@ -5,6 +5,7 @@ Rails:
5
5
  Enabled: true
6
6
  AllCops:
7
7
  TargetRubyVersion: 2.5
8
+ NewCops: enable
8
9
 
9
10
  Layout/EmptyLinesAroundClassBody:
10
11
  EnforcedStyle: empty_lines_special
@@ -22,11 +23,22 @@ Metrics/AbcSize:
22
23
  Enabled: false
23
24
  Metrics/BlockLength:
24
25
  Enabled: false
26
+ Metrics/ClassLength:
27
+ Enabled: false
28
+ Metrics/CyclomaticComplexity:
29
+ Max: 13
25
30
  Metrics/MethodLength:
26
31
  Enabled: false
32
+ Metrics/PerceivedComplexity:
33
+ Max: 14
34
+
35
+ Naming/InclusiveLanguage:
36
+ Enabled: false
27
37
 
28
38
  Rails/ApplicationRecord:
29
39
  Enabled: false
40
+ Rails/ContentTag:
41
+ Enabled: false
30
42
 
31
43
  Style/Documentation:
32
44
  Enabled: false
@@ -40,6 +52,8 @@ Style/MutableConstant:
40
52
  Enabled: false
41
53
  Style/NegatedIf:
42
54
  Enabled: false
55
+ Style/QuotedSymbols:
56
+ Enabled: false
43
57
  Style/StringLiterals:
44
58
  Enabled: false
45
59
  Style/TrailingCommaInHashLiteral:
data/easy_style.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
 
9
9
  spec.summary = 'Rubocop configs'
10
10
  spec.description = 'Rubocop configs'
11
- spec.homepage = 'https://github.com/easysoftware/rys'
11
+ spec.homepage = 'https://github.com/easysoftware/easy_style'
12
12
  spec.license = 'MIT'
13
13
  spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
14
14
 
@@ -20,12 +20,13 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  # Specify which files should be added to the gem when it is released.
22
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
24
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
25
  end
26
26
  spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'rubocop-rails', '~> 2.9.0'
30
+ spec.add_dependency 'rubocop', '~> 1.17.0'
31
+ spec.add_dependency 'rubocop-rails', '~> 2.9.1'
31
32
  end
@@ -1,3 +1,5 @@
1
1
  module EasyStyle
2
- VERSION = "0.1.0"
2
+
3
+ VERSION = '0.1.5'
4
+
3
5
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Easy Software Ltd
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-08 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
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: 1.17.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.17.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rubocop-rails
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: 2.9.0
33
+ version: 2.9.1
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: 2.9.0
40
+ version: 2.9.1
27
41
  description: Rubocop configs
28
42
  email:
29
43
  - info@easyredmine.com
@@ -32,10 +46,6 @@ extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
34
48
  - ".gitignore"
35
- - ".idea/.gitignore"
36
- - ".idea/misc.xml"
37
- - ".idea/modules.xml"
38
- - ".idea/vcs.xml"
39
49
  - ".rubocop.yml"
40
50
  - Gemfile
41
51
  - LICENSE.txt
@@ -46,13 +56,13 @@ files:
46
56
  - forgiving.yml
47
57
  - lib/easy_style.rb
48
58
  - lib/easy_style/version.rb
49
- homepage: https://github.com/easysoftware/rys
59
+ homepage: https://github.com/easysoftware/easy_style
50
60
  licenses:
51
61
  - MIT
52
62
  metadata:
53
- homepage_uri: https://github.com/easysoftware/rys
54
- source_code_uri: https://github.com/easysoftware/rys
55
- changelog_uri: https://github.com/easysoftware/rys
63
+ homepage_uri: https://github.com/easysoftware/easy_style
64
+ source_code_uri: https://github.com/easysoftware/easy_style
65
+ changelog_uri: https://github.com/easysoftware/easy_style
56
66
  post_install_message:
57
67
  rdoc_options: []
58
68
  require_paths:
@@ -68,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
78
  - !ruby/object:Gem::Version
69
79
  version: '0'
70
80
  requirements: []
71
- rubygems_version: 3.1.4
81
+ rubygems_version: 3.1.6
72
82
  signing_key:
73
83
  specification_version: 4
74
84
  summary: Rubocop configs