defra_ruby_style 0.1.2 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3376cd74d76c14434b505303fd5e4bb7d73d553a
4
- data.tar.gz: 7b5dbb2624a06181e3a5034a547fee2b22e5cf9b
2
+ SHA256:
3
+ metadata.gz: '0340911c57c01601b738837b93a038d176196638d66295d2883b8349ea7729ea'
4
+ data.tar.gz: f4d16ece1f8de31ee80bf9c29385f87ad551d53c611cf902e712a4e11ec54a7b
5
5
  SHA512:
6
- metadata.gz: 6a1df55c4c7d3744953dc6907c084c7b18ead949cd556d2643943b0509e8300861ae124dafc8cffcaaee3bf99f3b0813c9eb04c2ac8327c1eae2ad15fd40d639
7
- data.tar.gz: 50ea9e6bcad6e4b84ffbcd587010db5474f93742c1db73bfe9bdfefee99d120b8981978f6352cba0f26620a0083a5f8559c27468a68a5f46a2de3b87b28f764b
6
+ metadata.gz: 2a63aceffa953f3802bc7b21927e46c908f90e3e99a8b113b083cf381ed3bccbce45a93ad7bfde0f01c850f65fdfeb7ffc93e58a86c2ff83f5e2a86ecbda17e1
7
+ data.tar.gz: 3cb55588984951f3038ba6273444ba2b20d5523e728ccd74ce893e200037fa45d3d022cb5edf4cd0c062568eb627daadc5271b70bf4870c55204c1b96249c75f
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
- <img src="/defra-ruby-style.png" alt="Defra ruby style logo" />
1
+ # Defra Ruby Style
2
2
 
3
3
  [![Build Status](https://travis-ci.com/DEFRA/defra-ruby-style.svg?branch=master)](https://travis-ci.com/DEFRA/defra-ruby-style)
4
+ [![security](https://hakiri.io/github/DEFRA/defra-ruby-style/master.svg)](https://hakiri.io/github/DEFRA/defra-ruby-style/master)
4
5
  [![Gem Version](https://badge.fury.io/rb/defra_ruby_style.svg)](https://badge.fury.io/rb/defra_ruby_style)
5
6
  [![Licence](https://img.shields.io/badge/Licence-OGLv3-blue.svg)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3)
6
7
 
data/Rakefile CHANGED
@@ -11,4 +11,6 @@ Bundler::GemHelper.install_tasks
11
11
  require "github_changelog_generator/task"
12
12
 
13
13
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
14
+ config.user = "DEFRA"
15
+ config.project = "defra-ruby-style"
14
16
  end
@@ -8,6 +8,16 @@ AllCops:
8
8
  # find it useful to go straight to the documentation for a rule when
9
9
  # investigating what the fix may be.
10
10
  DisplayStyleGuide: true
11
+ # Starting in 0.80 new cops are no longer enabled by default. It was noted
12
+ # that when ever rubocop updated and new cops were added, project builds
13
+ # generally always broke. To resolve this the rubocop team have decided that
14
+ # projects now need to specify whether new cops are disabled or enabled and if
15
+ # not, they will omit a warning message.
16
+ # Though it generally does break our builds, we want to always be using the
17
+ # latest conventions and will deal with build issues as they arise. So we
18
+ # set this flag so rubocop will just mark any new cops as enabled and saving
19
+ # us having to dip in each time and enable them one-by-one
20
+ NewCops: enable
11
21
  Include:
12
22
  - "**/*.gemspec"
13
23
  - "**/*.rake"
@@ -27,6 +37,9 @@ AllCops:
27
37
  ## schema.rb is generated automatically based on migrations, so leave as is
28
38
  - "**/db/schema.rb"
29
39
  - "db/migrate*/**/*.rb"
40
+ # node_modules is generated in projects using webpacker. The .rb files it
41
+ # contains are generated so we want to exclude.
42
+ - "node_modules/**/*"
30
43
  # Skip dummy application files as they're only used for testing purposes
31
44
  - "spec/dummy/**/*"
32
45
 
@@ -40,6 +53,16 @@ Layout/EmptyLinesAroundClassBody:
40
53
  Layout/EmptyLinesAroundBlockBody:
41
54
  Enabled: false
42
55
 
56
+ # We believe the default 80 characters is too restrictive and that lines can
57
+ # still be readable and maintainable when no more than 120 characters. This also
58
+ # allows us to maximise our screen space.
59
+ Layout/LineLength:
60
+ Max: 120
61
+ Exclude:
62
+ - "spec/**/*_spec.rb"
63
+ - "spec/factories/**/*.rb"
64
+ - "spec/support/shared_examples/**/*.rb"
65
+
43
66
  # It's okay to use `catch { foo }` in specs
44
67
  #
45
68
  # https://github.com/rubocop-hq/rubocop/issues/4222
@@ -69,16 +92,6 @@ Metrics/BlockLength:
69
92
  - "spec/factories/**/*.rb"
70
93
  - "spec/support/shared_examples/**/*.rb"
71
94
 
72
- # We believe the default 80 characters is too restrictive and that lines can
73
- # still be readable and maintainable when no more than 120 characters. This also
74
- # allows us to maximise our screen space.
75
- Metrics/LineLength:
76
- Max: 120
77
- Exclude:
78
- - "spec/**/*_spec.rb"
79
- - "spec/factories/**/*.rb"
80
- - "spec/support/shared_examples/**/*.rb"
81
-
82
95
  # We wish we were good enough to remain within the rubocop limit of 10 lines
83
96
  # however we often just seem to tip over by a few lines. Hence we have chosen
84
97
  # to bump it to 20.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Defra
4
4
  module Style
5
- VERSION = "0.1.2"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defra_ruby_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Defra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-04 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.82'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.82'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: github_changelog_generator
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubyforge_project:
90
- rubygems_version: 2.6.13
89
+ rubygems_version: 3.0.0
91
90
  signing_key:
92
91
  specification_version: 4
93
92
  summary: Defra ruby coding standards