keep_up 0.8.1 → 0.9.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: 801a2183bb26562d1312f2aab9533084b9858c15102f247026ce2bab5ae441e3
4
- data.tar.gz: c98dc0df6a89fbecb06b49dc428027a0b4406f4107d252be5cb325795b288be0
3
+ metadata.gz: d9a8cf50656d55403aaae2319218ce2801bcd9dffdea0151d86fc90f7051de27
4
+ data.tar.gz: ea53a52e56e04b9dba8134bdf86c99713847ef2158181a557f93165e326177b9
5
5
  SHA512:
6
- metadata.gz: bc24c9ea45e40f4d3a7289ea1189f95154a641ceb3d4dfdf9dd3148ccadfcea450b38c0a358e042d3dac23816affd707a4f9c573e74bba18b000273b9f14afe7
7
- data.tar.gz: c0b4cedf1a784b6efbd3964278ec76211031fc8bbacd3323c7ccbcf4ad58e2367d7b37616c76a31bfe8a7c296dfd6774746a9136203ec857438d781d67d680b3
6
+ metadata.gz: 251e0b63416c6b937831aac2b65cccd5b6e3b38432af375d4210f52071e63edd4688767754c4d94ef8d540176d8fd8ee895ee51ae81926613c39fdc81e1c87cf
7
+ data.tar.gz: 0eab09bcbfc0c8472a511e9d10cf8132529a3801d5aadc68a138d7d26d6d34c636d8d6e0246ee255c72e2853ed5344019f2ec486fac0b370a4fdf4e31f75f534
@@ -1,15 +1,16 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  require:
4
- - rubocop-rspec
5
4
  - rubocop-performance
5
+ - rubocop-rspec
6
6
 
7
7
  AllCops:
8
8
  Exclude:
9
9
  - 'tmp/**/*'
10
- TargetRubyVersion: 2.4
10
+ NewCops: enable
11
+ TargetRubyVersion: 2.5
11
12
 
12
- # Require lines to fit in pull requests.
13
+ # Be lenient with line length
13
14
  Layout/LineLength:
14
15
  Max: 92
15
16
 
@@ -31,7 +32,7 @@ Layout/MultilineOperationIndentation:
31
32
  Layout/SpaceBeforeBlockBraces:
32
33
  EnforcedStyleForEmptyBraces: space
33
34
 
34
- # This cop gives bad advice
35
+ # Assume the programmer knows how bracketed block syntax works
35
36
  Lint/AmbiguousBlockAssociation:
36
37
  Enabled: false
37
38
 
@@ -44,6 +45,9 @@ Metrics/BlockLength:
44
45
  Exclude:
45
46
  - 'spec/**/*'
46
47
 
48
+ Performance/StartWith:
49
+ AutoCorrect: true
50
+
47
51
  # Allow and/or for control flow only
48
52
  Style/AndOr:
49
53
  EnforcedStyle: conditionals
@@ -52,10 +56,20 @@ Style/AndOr:
52
56
  Style/GuardClause:
53
57
  MinBodyLength: 2
54
58
 
59
+ # Sometimes an if statement just looks better than next with a guard clause
60
+ Style/Next:
61
+ Enabled: false
62
+
55
63
  # Explicite numbers are often clearer, and more robust.
56
64
  Style/NumericPredicate:
57
65
  Enabled: false
58
66
 
67
+ # Use older RuboCop default
68
+ Style/PercentLiteralDelimiters:
69
+ PreferredDelimiters:
70
+ '%W': ()
71
+ '%w': ()
72
+
59
73
  # Allow explicit return with multiple return values
60
74
  Style/RedundantReturn:
61
75
  AllowMultipleReturnValues: true
@@ -68,8 +82,6 @@ Style/StringLiterals:
68
82
  Style/SymbolArray:
69
83
  EnforcedStyle: brackets
70
84
 
71
- # Project-specific configuration goes here.
72
-
73
- # Allow deeper nesting for spec organization
74
- RSpec/NestedGroups:
75
- Max: 4
85
+ # Accessors are only trivial if they match the ivar name
86
+ Style/TrivialAccessors:
87
+ ExactNameMatch: true
@@ -1,16 +1,21 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-12-22 13:07:39 +0100 using RuboCop version 0.78.0.
3
+ # on 2020-08-28 11:02:57 UTC using RuboCop version 0.89.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
10
- # Configuration parameters: CountComments, ExcludedMethods.
9
+ # Offense count: 2
10
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
11
11
  Metrics/MethodLength:
12
12
  Max: 15
13
13
 
14
+ # Offense count: 8
15
+ # Configuration parameters: AllowSubject.
16
+ RSpec/MultipleMemoizedHelpers:
17
+ Max: 10
18
+
14
19
  # Offense count: 1
15
20
  Security/Eval:
16
21
  Exclude:
data/.simplecov CHANGED
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  SimpleCov.start do
2
- track_files 'lib/**/*.rb'
3
- add_filter 'spec/'
4
- coverage_dir 'tmp/coverage'
4
+ add_group "Main", "lib"
5
+ add_group "Specs", "spec"
6
+ enable_coverage :branch
5
7
  end
6
8
 
7
9
  SimpleCov.at_exit do
@@ -10,7 +10,6 @@ cache:
10
10
  bundler: true
11
11
 
12
12
  rvm:
13
- - 2.4
14
13
  - 2.5
15
14
  - 2.6
16
15
  - 2.7
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0 / 2020-09-18
4
+
5
+ * Drop support for Ruby 2.4
6
+ * Improve wording for commit messages
7
+
3
8
  ## 0.8.1 / 2019-12-30
4
9
 
5
10
  * Silence keyword arguments deprecation on Ruby 2.7
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require "rspec/core/rake_task"
5
5
  require "cucumber/rake/task"
6
6
 
7
7
  RSpec::Core::RakeTask.new(:spec) do |t|
8
- t.ruby_opts = ["-w"]
8
+ t.ruby_opts = ["-rbundler/setup -rsimplecov -w"]
9
9
  end
10
10
 
11
11
  Cucumber::Rake::Task.new(:features)
@@ -24,13 +24,13 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.required_ruby_version = ">= 2.4.0"
27
+ spec.required_ruby_version = ">= 2.5.0"
28
28
 
29
29
  spec.add_runtime_dependency "bundler", [">= 1.15", "< 3.0"]
30
30
 
31
- spec.add_development_dependency "aruba", "~> 0.14.2"
32
- spec.add_development_dependency "cucumber", "~> 3.1"
31
+ spec.add_development_dependency "aruba", "~> 1.0"
32
+ spec.add_development_dependency "cucumber", "~> 5.0"
33
33
  spec.add_development_dependency "rake", "~> 13.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
- spec.add_development_dependency "simplecov", "~> 0.17.0"
35
+ spec.add_development_dependency "simplecov", "~> 0.19.0"
36
36
  end
@@ -8,7 +8,7 @@ module KeepUp
8
8
  attr_reader :bundle, :version_control, :filter
9
9
 
10
10
  def initialize(bundle:, version_control:,
11
- filter: NullFilter.new, out: STDOUT)
11
+ filter: NullFilter.new, out: $stdout)
12
12
  @bundle = bundle
13
13
  @version_control = version_control
14
14
  @filter = filter
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KeepUp
4
- VERSION = "0.8.1"
4
+ VERSION = "0.9.0"
5
5
  end
@@ -8,7 +8,7 @@ module KeepUp
8
8
  end
9
9
 
10
10
  def commit_changes(dependency)
11
- @runner.run "git commit -am 'Auto-update #{dependency.name} to #{dependency.version}'"
11
+ @runner.run "git commit -am 'Update #{dependency.name} to version #{dependency.version}'"
12
12
  end
13
13
 
14
14
  def revert_changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keep_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.14.2
39
+ version: '1.0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.14.2
46
+ version: '1.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cucumber
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '3.1'
53
+ version: '5.0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.1'
60
+ version: '5.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.17.0
95
+ version: 0.19.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 0.17.0
102
+ version: 0.19.0
103
103
  description: Automatically update the dependencies listed in your Gemfile, Gemfile.lock,
104
104
  and gemspec.
105
105
  email:
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - ">="
152
152
  - !ruby/object:Gem::Version
153
- version: 2.4.0
153
+ version: 2.5.0
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="