netsoft-danger 0.7.0 → 0.8.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: '0981c81d0ae817b555ad494429d321ca25193ae0084b61fa1205a934ff3f6372'
4
- data.tar.gz: '0991c0da27a9809734a3c5d6366d726bba8308fb33165f767645174676d60d4a'
3
+ metadata.gz: 249c46e51ad363cf9770f85e9484d545050b10725ce69929752ade88c85a2e13
4
+ data.tar.gz: 0f8e84701944f0c155d57fb0bb9ed42bf95d9df5a58037877b22a680f5a48f7e
5
5
  SHA512:
6
- metadata.gz: 8537ad5a81b1cd8e028a5af2ae90fe1309d0794254a94b32b38b5560e842290940c77655e653774d718dcb6ff0802b332b0c47ed43d23c2f112886b29fe18fdd
7
- data.tar.gz: c5c57afe569726883d54732717357415c76e9334f8f1c2e13cab3fdf6f7d8593353986da1510a9c685138ea754f6da1f20aeeadfade307d6ba84758b67ecf84d
6
+ metadata.gz: e36882413a1186a6595044e3702b5bad2e6b700de4b3c38566b15b099cc5fe68de4a62106a4cbe2a99185a76391dc8ba90be5cea55a0a62d80a9a8a4a8c82227
7
+ data.tar.gz: fdc96629d3928b82f4772d58005e90f5f5c1aad47121b3c570a9437d3c223210039862a79d9f2ecd5308e29f3f9bce42182067d65d26fc06d6ca3854fc1e11f0
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ inherit_gem:
3
3
  - config/default.yml
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.4
6
+ TargetRubyVersion: 2.5
7
7
 
8
8
  Style/SignalException:
9
9
  Exclude:
data/CHANGELOG.md CHANGED
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
  ### Changed
10
10
  ### Fixed
11
11
 
12
+ ## [0.8.0]
13
+ ### Added
14
+ - added check for bundler version in Gemfile.lock
15
+ ### Changed
16
+ - updated to bundler 2.3.9 for CI runs
17
+ ### Fixed
18
+ - silence intermittent error when removing a label
19
+
12
20
  ## [0.7.0]
13
21
  ### Changed
14
22
  - remove checks for migration and gemfile prefixes in commit messages
data/Dangerfile CHANGED
@@ -10,6 +10,8 @@ def toggle_label(github, label, should_set)
10
10
  elsif !should_set && has_label
11
11
  github.api.remove_label(repo_name, pr_number, label)
12
12
  end
13
+ rescue
14
+ # noop
13
15
  end
14
16
 
15
17
  if File.exist?('Gemfile')
@@ -24,6 +26,12 @@ if File.exist?('Gemfile')
24
26
  end
25
27
  end
26
28
 
29
+ if File.exist?('Gemfile.lock')
30
+ if `grep -e "^BUNDLED WITH$" -A 1 Gemfile.lock | grep ' ' | grep -v "\(2\.3\.9\)"`.length > 1
31
+ fail('gemfile.lock: Gemfile was not bundled with approved bundler version. Please use 2.3.9')
32
+ end
33
+ end
34
+
27
35
  if github.branch_for_head.start_with?('security')
28
36
  toggle_label(github, 'security', true)
29
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NetsoftDanger
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
@@ -13,12 +13,10 @@ Gem::Specification.new do |s|
13
13
  s.description = 'Packages a Dangerfile to be used with Danger.'
14
14
  s.executables << 'netsoft-circle'
15
15
 
16
- s.files = `git ls-files`.split("\n").reject { |f|
17
- f.match?(%r{^\.github/}i)
18
- }
16
+ s.files = `git ls-files`.split("\n").grep_v(%r{^\.github/}i)
19
17
  s.require_paths = ['lib']
20
18
 
21
- s.required_ruby_version = '>= 2.4'
19
+ s.required_ruby_version = '>= 2.5'
22
20
 
23
21
  s.add_runtime_dependency 'danger', '~> 8.0'
24
22
  s.add_runtime_dependency 'faraday'
@@ -27,5 +25,5 @@ Gem::Specification.new do |s|
27
25
 
28
26
  s.add_development_dependency 'rake'
29
27
 
30
- s.add_development_dependency 'netsoft-rubocop', '= 1.1.2'
28
+ s.add_development_dependency 'netsoft-rubocop', '= 1.1.5'
31
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsoft-danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - urkle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-24 00:00:00.000000000 Z
11
+ date: 2023-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.1.2
89
+ version: 1.1.5
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 1.1.2
96
+ version: 1.1.5
97
97
  description: Packages a Dangerfile to be used with Danger.
98
98
  email: []
99
99
  executables:
@@ -129,14 +129,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: '2.4'
132
+ version: '2.5'
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - ">="
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.0.3
139
+ rubygems_version: 3.1.6
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Danger.systems conventions for Netsoft projects.