defra_ruby_style 0.2.2 → 0.4.0

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: '0340911c57c01601b738837b93a038d176196638d66295d2883b8349ea7729ea'
4
- data.tar.gz: f4d16ece1f8de31ee80bf9c29385f87ad551d53c611cf902e712a4e11ec54a7b
3
+ metadata.gz: d30701b34b854567c787c8458f1b7a73d209ab6deaac3c59d75d0bafc7e20bd2
4
+ data.tar.gz: 6a96d4db9fd381e3cc8052441846f59e38df45eff41fd2dcdc65e2dc94e5ebbb
5
5
  SHA512:
6
- metadata.gz: 2a63aceffa953f3802bc7b21927e46c908f90e3e99a8b113b083cf381ed3bccbce45a93ad7bfde0f01c850f65fdfeb7ffc93e58a86c2ff83f5e2a86ecbda17e1
7
- data.tar.gz: 3cb55588984951f3038ba6273444ba2b20d5523e728ccd74ce893e200037fa45d3d022cb5edf4cd0c062568eb627daadc5271b70bf4870c55204c1b96249c75f
6
+ metadata.gz: 16c39339e7e838be9a35c7ce9e3985058671235cc95e680ebc237e731581a817ebd9d5b8996bc5d7c67e21df2daef5264ca94dfb73ccbf3292f769ab602adff3
7
+ data.tar.gz: 861d9cc12416f57bc72290976dd42aebe8a52479af82094f0bcb5ac49cb730c2679b21f610602492453f5b2cd07f73d6449400f0aeaec0e6ed9fb23266f5a626
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Defra Ruby Style
2
2
 
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)
3
+ ![Build Status](https://github.com/DEFRA/defra-ruby-style/workflows/CI/badge.svg?branch=main)
5
4
  [![Gem Version](https://badge.fury.io/rb/defra_ruby_style.svg)](https://badge.fury.io/rb/defra_ruby_style)
6
5
  [![Licence](https://img.shields.io/badge/Licence-OGLv3-blue.svg)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3)
7
6
 
data/Rakefile CHANGED
@@ -13,4 +13,5 @@ require "github_changelog_generator/task"
13
13
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
14
14
  config.user = "DEFRA"
15
15
  config.project = "defra-ruby-style"
16
+ config.future_release = "v0.4.0"
16
17
  end
data/default.yml CHANGED
@@ -1,5 +1,10 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+ - rubocop-factory_bot
5
+
1
6
  AllCops:
2
- TargetRubyVersion: 2.4
7
+ TargetRubyVersion: 3.2.2
3
8
  # Cop names are not displayed in offense messages by default. We find it
4
9
  # useful to include this information so we can use it to investigate what the
5
10
  # fix may be.
@@ -127,3 +132,11 @@ Style/Documentation:
127
132
  # value in using "" for all strings irrespective of whether string interpolation is used
128
133
  Style/StringLiterals:
129
134
  EnforcedStyle: double_quotes
135
+
136
+ Style/HashSyntax:
137
+ EnforcedShorthandSyntax: either
138
+
139
+ # We believe that the default of 3 is too low and that it is okay to have
140
+ # it slightly bigger
141
+ RSpec/NestedGroups:
142
+ Max: 4
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Defra
4
4
  module Style
5
- VERSION = "0.2.2"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,37 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defra_ruby_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Defra
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-12 00:00:00.000000000 Z
11
+ date: 2023-10-30 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
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rubocop-factory_bot
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
18
38
  - !ruby/object:Gem::Version
19
- version: '0.82'
39
+ version: '0'
20
40
  type: :runtime
21
41
  prerelease: false
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
- - - "~>"
44
+ - - ">="
25
45
  - !ruby/object:Gem::Version
26
- version: '0.82'
46
+ version: '0'
27
47
  - !ruby/object:Gem::Dependency
28
- name: github_changelog_generator
48
+ name: rubocop-rake
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
51
  - - ">="
32
52
  - !ruby/object:Gem::Version
33
53
  version: '0'
34
- type: :development
54
+ type: :runtime
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
37
57
  requirements:
@@ -39,13 +59,13 @@ dependencies:
39
59
  - !ruby/object:Gem::Version
40
60
  version: '0'
41
61
  - !ruby/object:Gem::Dependency
42
- name: rake
62
+ name: rubocop-rspec
43
63
  requirement: !ruby/object:Gem::Requirement
44
64
  requirements:
45
65
  - - ">="
46
66
  - !ruby/object:Gem::Version
47
67
  version: '0'
48
- type: :development
68
+ type: :runtime
49
69
  prerelease: false
50
70
  version_requirements: !ruby/object:Gem::Requirement
51
71
  requirements:
@@ -71,7 +91,8 @@ licenses:
71
91
  - The Open Government Licence (OGL) Version 3
72
92
  metadata:
73
93
  allowed_push_host: https://rubygems.org
74
- post_install_message:
94
+ rubygems_mfa_required: 'true'
95
+ post_install_message:
75
96
  rdoc_options: []
76
97
  require_paths:
77
98
  - lib
@@ -79,15 +100,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
100
  requirements:
80
101
  - - ">="
81
102
  - !ruby/object:Gem::Version
82
- version: '0'
103
+ version: '3.2'
83
104
  required_rubygems_version: !ruby/object:Gem::Requirement
84
105
  requirements:
85
106
  - - ">="
86
107
  - !ruby/object:Gem::Version
87
108
  version: '0'
88
109
  requirements: []
89
- rubygems_version: 3.0.0
90
- signing_key:
110
+ rubygems_version: 3.4.10
111
+ signing_key:
91
112
  specification_version: 4
92
113
  summary: Defra ruby coding standards
93
114
  test_files: []