keep_up 0.7.1 → 0.10.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: 71bc8afb3df371945d1491945cf9fa87c27719b9339078c271f3c1b9747de092
4
- data.tar.gz: 9bd607f3a1cea627402896a54a28d8e3609218d346789bdf3c53e8374c937274
3
+ metadata.gz: 7f7cf0d8f661622facd6330ca2b0185be3b4e307750f498a8d7a5fe5e426b2d4
4
+ data.tar.gz: d4b93a7ecde478f08fe746582af8aafcae56edb2c32932f37a5e324ee39fc811
5
5
  SHA512:
6
- metadata.gz: 52a1457646dabdff5d3f225e58593c580077a99c4c8594947a1366d51054aed9a7442e81824b20ffbd8198dbf0db09fe589e2569837575f39ed9403b8fa8d732
7
- data.tar.gz: 02fa21142769361bcc9a6fb6f207174a20c875603dbc008f50e4aca39fbcfecdfe30bfc3addeb3d27e02fe73668fc0c3d46754fa74aa49680439f9fe12021c68
6
+ metadata.gz: 2636dc31ad91af4460b38804925e078161cce26c86041683022a8a11f6932d615ec61bcded0db14e25d9b0d255481a7bc1ede9a1de0bb5f6fb7067d93fc2471a
7
+ data.tar.gz: 559e8a41d53d847156b468e8cf28ae49183ac839ead216fc0440d4c28c4a3a7fc42d753dd1fdf52733fae7fd1749388449bf843943cc1193b461ee6f18f9dc9e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.0 / 2022-01-23
4
+
5
+ * Drop support for Ruby 2.5 and 2.6
6
+ * Add support for Ruby 3.0 and 3.1
7
+ * Avoid interrupting half-printed lines when bundle update fails
8
+
9
+ ## 0.9.0 / 2020-09-18
10
+
11
+ * Drop support for Ruby 2.4
12
+ * Improve wording for commit messages
13
+
14
+ ## 0.8.1 / 2019-12-30
15
+
16
+ * Silence keyword arguments deprecation on Ruby 2.7
17
+
18
+ ## 0.8.0 / 2019-10-16
19
+
20
+ * Drop support for Ruby 2.3
21
+ * Handle use of `require_relative` in gemspec files
22
+
3
23
  ## 0.7.1 / 2019-01-16
4
24
 
5
25
  * Support Ruby 2.6
data/bin/keep_up CHANGED
@@ -1,30 +1,30 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'optparse'
5
- require_relative '../lib/keep_up'
4
+ require "optparse"
5
+ require_relative "../lib/keep_up"
6
6
 
7
7
  options = {
8
8
  local: false,
9
- test_command: 'bundle exec rake',
9
+ test_command: "bundle exec rake",
10
10
  skip: []
11
11
  }
12
12
 
13
13
  opt_parser = OptionParser.new do |parser|
14
- parser.on('--[no-]local', 'Only consider locally installed gems') do |local|
14
+ parser.on("--[no-]local", "Only consider locally installed gems") do |local|
15
15
  options[:local] = local
16
16
  end
17
- parser.on('--test-command=COMMAND', 'Run COMMAND to test each update') do |command|
17
+ parser.on("--test-command=COMMAND", "Run COMMAND to test each update") do |command|
18
18
  options[:test_command] = command
19
19
  end
20
- parser.on('--skip=SKIPPED_GEM', 'Do not consider SKIPPED_GEM for updating') do |gemname|
20
+ parser.on("--skip=SKIPPED_GEM", "Do not consider SKIPPED_GEM for updating") do |gemname|
21
21
  options[:skip] << gemname
22
22
  end
23
- parser.on_tail('-h', '--help', 'Show this message') do
23
+ parser.on_tail("-h", "--help", "Show this message") do
24
24
  puts parser
25
25
  exit
26
26
  end
27
- parser.on_tail('-v', '--version', 'Show version') do
27
+ parser.on_tail("-v", "--version", "Show version") do
28
28
  puts "#{parser.program_name} #{KeepUp::VERSION}\n"
29
29
  exit
30
30
  end
@@ -33,7 +33,7 @@ end
33
33
  opt_parser.parse!
34
34
 
35
35
  begin
36
- KeepUp::Application.new(options).run
36
+ KeepUp::Application.new(**options).run
37
37
  rescue KeepUp::BailOut => e
38
38
  warn e.message
39
39
  exit 1
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'runner'
4
- require_relative 'bundle'
5
- require_relative 'null_filter'
6
- require_relative 'skip_filter'
7
- require_relative 'updater'
8
- require_relative 'version_control'
3
+ require_relative "runner"
4
+ require_relative "bundle"
5
+ require_relative "null_filter"
6
+ require_relative "skip_filter"
7
+ require_relative "updater"
8
+ require_relative "version_control"
9
9
 
10
10
  module KeepUp
11
11
  # Error thrown when we can't go any further.
@@ -46,9 +46,11 @@ module KeepUp
46
46
  end
47
47
 
48
48
  def update_all_dependencies
49
- Updater.new(bundle: bundle,
50
- version_control: version_control,
51
- filter: filter).run
49
+ Updater.new(
50
+ bundle: bundle,
51
+ version_control: version_control,
52
+ filter: filter
53
+ ).run
52
54
  end
53
55
 
54
56
  def version_control
@@ -60,15 +62,16 @@ module KeepUp
60
62
  end
61
63
 
62
64
  def report_done
63
- puts 'All done!'
65
+ puts "All done!"
64
66
  end
65
67
 
66
68
  def filter
67
- @filter ||= if skip.any?
68
- SkipFilter.new(skip)
69
- else
70
- NullFilter.new
71
- end
69
+ @filter ||=
70
+ if skip.any?
71
+ SkipFilter.new(skip)
72
+ else
73
+ NullFilter.new
74
+ end
72
75
  end
73
76
  end
74
77
  end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'gemfile_filter'
4
- require_relative 'gemspec_filter'
5
- require_relative 'dependency'
3
+ require_relative "gemfile_filter"
4
+ require_relative "gemspec_filter"
5
+ require_relative "dependency"
6
6
 
7
7
  module KeepUp
8
8
  # A Gemfile with its current set of locked dependencies.
@@ -20,23 +20,16 @@ module KeepUp
20
20
  def dependencies
21
21
  @dependencies ||=
22
22
  begin
23
- command = "bundle outdated --parseable#{' --local' if @local}"
23
+ command = "bundle outdated --parseable#{" --local" if @local}"
24
24
  lines = run_filtered command, OUTDATED_MATCHER
25
25
  lines.map do |name, newest, version, requirement|
26
- requirement_list = requirement&.split(/,\s*/)
27
- requirement_list ||= fetch_gemspec_dependency_requirements(name)
28
- version = version.split(' ').first
29
- newest = newest.split(' ').first
30
- Dependency.new(name: name,
31
- locked_version: version,
32
- newest_version: newest,
33
- requirement_list: requirement_list)
26
+ build_dependency(name, newest, version, requirement)
34
27
  end
35
28
  end
36
29
  end
37
30
 
38
31
  def check?
39
- _, status = @runner.run2 'bundle check'
32
+ _, status = @runner.run2 "bundle check"
40
33
  status == 0
41
34
  end
42
35
 
@@ -44,7 +37,7 @@ module KeepUp
44
37
  update = find_specification_update(dependencies, update)
45
38
  return unless update
46
39
 
47
- update_specification_contents(update, 'Gemfile', GemfileFilter)
40
+ update_specification_contents(update, "Gemfile", GemfileFilter)
48
41
  end
49
42
 
50
43
  def update_gemspec_contents(update)
@@ -59,7 +52,7 @@ module KeepUp
59
52
  # Update lockfile and return resulting spec, or false in case of failure
60
53
  def update_lockfile(update)
61
54
  update_name = update.name
62
- command = "bundle update#{' --local' if @local} --conservative #{update_name}"
55
+ command = "bundle update#{" --local" if @local} --conservative #{update_name}"
63
56
  lines = run_filtered command, UPDATE_MATCHER
64
57
  lines.each do |name, version, old_version|
65
58
  next unless name == update_name && old_version
@@ -74,15 +67,33 @@ module KeepUp
74
67
  private
75
68
 
76
69
  def gemspec
77
- @gemspec ||= eval File.read(gemspec_name) if gemspec_name
70
+ @gemspec ||=
71
+ if gemspec_name
72
+ gemspec_path = File.expand_path(gemspec_name)
73
+ eval File.read(gemspec_name), nil, gemspec_path
74
+ end
78
75
  end
79
76
 
80
77
  def gemspec_dependencies
81
- @gemspec_dependencies ||= if gemspec
82
- gemspec.dependencies
83
- else
84
- []
85
- end
78
+ @gemspec_dependencies ||=
79
+ if gemspec
80
+ gemspec.dependencies
81
+ else
82
+ []
83
+ end
84
+ end
85
+
86
+ def build_dependency(name, newest, version, requirement)
87
+ requirement_list = requirement&.split(/,\s*/)
88
+ requirement_list ||= fetch_gemspec_dependency_requirements(name)
89
+ version = version.split.first
90
+ newest = newest.split.first
91
+ Dependency.new(
92
+ name: name,
93
+ locked_version: version,
94
+ newest_version: newest,
95
+ requirement_list: requirement_list
96
+ )
86
97
  end
87
98
 
88
99
  def fetch_gemspec_dependency_requirements(name)
@@ -104,7 +115,7 @@ module KeepUp
104
115
  end
105
116
 
106
117
  def gemspec_name
107
- @gemspec_name ||= Dir.glob('*.gemspec').first
118
+ @gemspec_name ||= Dir.glob("*.gemspec").first
108
119
  end
109
120
 
110
121
  def run_filtered(command, regexp)
@@ -114,7 +125,7 @@ module KeepUp
114
125
  matchdata = regexp.match line
115
126
  next unless matchdata
116
127
 
117
- matchdata.to_a[1..-1]
128
+ matchdata.to_a[1..]
118
129
  end.compact
119
130
  end
120
131
  end
@@ -26,7 +26,7 @@ module KeepUp
26
26
  segments = specification.version.segments
27
27
  return specification if segments.count <= segment_count
28
28
 
29
- version = segments.take(segment_count).join('.')
29
+ version = segments.take(segment_count).join(".")
30
30
  Gem::Specification.new(specification.name, version)
31
31
  end
32
32
 
@@ -44,10 +44,11 @@ module KeepUp
44
44
  end
45
45
 
46
46
  def segment_count
47
- @segment_count ||= begin
48
- _, ver = requirement.requirements.first
49
- ver.segments.count
50
- end
47
+ @segment_count ||=
48
+ begin
49
+ _, ver = requirement.requirements.first
50
+ ver.segments.count
51
+ end
51
52
  end
52
53
  end
53
54
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'open3'
3
+ require "open3"
4
4
 
5
5
  module KeepUp
6
6
  # Encapsulate knowledge of running external commands
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'null_filter'
3
+ require_relative "null_filter"
4
4
 
5
5
  module KeepUp
6
6
  # Apply potential updates to a Gemfile.
7
7
  class Updater
8
8
  attr_reader :bundle, :version_control, :filter
9
9
 
10
- def initialize(bundle:, version_control:,
11
- filter: NullFilter.new, out: STDOUT)
10
+ def initialize(bundle:, version_control:, filter: NullFilter.new, out: $stdout)
12
11
  @bundle = bundle
13
12
  @version_control = version_control
14
13
  @filter = filter
@@ -27,9 +26,9 @@ module KeepUp
27
26
  end
28
27
 
29
28
  def possible_updates
30
- bundle.dependencies.
31
- select { |dep| filter.call dep }.
32
- map { |dep| updated_dependency_for dep }.compact.uniq
29
+ bundle.dependencies
30
+ .select { |dep| filter.call dep }
31
+ .map { |dep| updated_dependency_for dep }.compact.uniq
33
32
  end
34
33
 
35
34
  private
@@ -44,15 +43,14 @@ module KeepUp
44
43
  end
45
44
 
46
45
  def report_intent(dependency)
47
- @out.print "Updating #{dependency.name}"
46
+ @out.puts "Updating #{dependency.name}"
48
47
  end
49
48
 
50
49
  def report_result(dependency, result)
51
50
  if result
52
- @out.puts " to #{result.version}"
51
+ @out.puts "Updated #{dependency.name} to #{result.version}"
53
52
  else
54
- @out.puts " to #{dependency.version}"
55
- @out.puts 'Update failed'
53
+ @out.puts "Failed updating #{dependency.name} to #{dependency.version}"
56
54
  end
57
55
  end
58
56
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KeepUp
4
- VERSION = '0.7.1'
4
+ VERSION = "0.10.0"
5
5
  end
@@ -8,15 +8,16 @@ 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
+ message = "Update #{dependency.name} to version #{dependency.version}"
12
+ @runner.run "git commit -am '#{message}'"
12
13
  end
13
14
 
14
15
  def revert_changes
15
- @runner.run 'git reset --hard'
16
+ @runner.run "git reset --hard"
16
17
  end
17
18
 
18
19
  def clean?
19
- @runner.run('git status -s') == ''
20
+ @runner.run("git status -s") == ""
20
21
  end
21
22
  end
22
23
  end
data/lib/keep_up.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'keep_up/version'
4
- require_relative 'keep_up/application'
3
+ require_relative "keep_up/version"
4
+ require_relative "keep_up/application"
5
5
 
6
6
  # Main KeepUp namespace
7
7
  module KeepUp
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.7.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2022-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -36,28 +36,56 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.14.2
39
+ version: '2.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: '2.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: cucumber
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '7.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '7.0'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: rake
49
63
  requirement: !ruby/object:Gem::Requirement
50
64
  requirements:
51
65
  - - "~>"
52
66
  - !ruby/object:Gem::Version
53
- version: '12.0'
67
+ version: '13.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '13.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rake-manifest
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: 0.2.0
54
82
  type: :development
55
83
  prerelease: false
56
84
  version_requirements: !ruby/object:Gem::Requirement
57
85
  requirements:
58
86
  - - "~>"
59
87
  - !ruby/object:Gem::Version
60
- version: '12.0'
88
+ version: 0.2.0
61
89
  - !ruby/object:Gem::Dependency
62
90
  name: rspec
63
91
  requirement: !ruby/object:Gem::Requirement
@@ -72,20 +100,62 @@ dependencies:
72
100
  - - "~>"
73
101
  - !ruby/object:Gem::Version
74
102
  version: '3.0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rubocop
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.25'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.25'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rubocop-performance
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.13'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '1.13'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop-rspec
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '2.7'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '2.7'
75
145
  - !ruby/object:Gem::Dependency
76
146
  name: simplecov
77
147
  requirement: !ruby/object:Gem::Requirement
78
148
  requirements:
79
149
  - - "~>"
80
150
  - !ruby/object:Gem::Version
81
- version: 0.16.1
151
+ version: 0.21.0
82
152
  type: :development
83
153
  prerelease: false
84
154
  version_requirements: !ruby/object:Gem::Requirement
85
155
  requirements:
86
156
  - - "~>"
87
157
  - !ruby/object:Gem::Version
88
- version: 0.16.1
158
+ version: 0.21.0
89
159
  description: Automatically update the dependencies listed in your Gemfile, Gemfile.lock,
90
160
  and gemspec.
91
161
  email:
@@ -95,23 +165,11 @@ executables:
95
165
  extensions: []
96
166
  extra_rdoc_files: []
97
167
  files:
98
- - ".dockerignore"
99
- - ".gitignore"
100
- - ".hound.yml"
101
- - ".rspec"
102
- - ".rubocop.yml"
103
- - ".rubocop_todo.yml"
104
- - ".simplecov"
105
- - ".travis.yml"
106
168
  - CHANGELOG.md
107
169
  - CODE_OF_CONDUCT.md
108
- - Dockerfile
109
- - Gemfile
110
170
  - LICENSE.txt
111
171
  - README.md
112
- - Rakefile
113
172
  - bin/keep_up
114
- - keep_up.gemspec
115
173
  - lib/keep_up.rb
116
174
  - lib/keep_up/application.rb
117
175
  - lib/keep_up/bundle.rb
@@ -127,8 +185,10 @@ files:
127
185
  homepage: https://github.com/mvz/keep_up
128
186
  licenses:
129
187
  - MIT
130
- metadata: {}
131
- post_install_message:
188
+ metadata:
189
+ homepage_uri: https://github.com/mvz/keep_up
190
+ rubygems_mfa_required: 'true'
191
+ post_install_message:
132
192
  rdoc_options: []
133
193
  require_paths:
134
194
  - lib
@@ -136,15 +196,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
196
  requirements:
137
197
  - - ">="
138
198
  - !ruby/object:Gem::Version
139
- version: 2.3.0
199
+ version: 2.6.0
140
200
  required_rubygems_version: !ruby/object:Gem::Requirement
141
201
  requirements:
142
202
  - - ">="
143
203
  - !ruby/object:Gem::Version
144
204
  version: '0'
145
205
  requirements: []
146
- rubygems_version: 3.0.1
147
- signing_key:
206
+ rubygems_version: 3.3.3
207
+ signing_key:
148
208
  specification_version: 4
149
209
  summary: Automatically update your dependencies
150
210
  test_files: []
data/.dockerignore DELETED
@@ -1,3 +0,0 @@
1
- tmp/
2
- Dockerfile
3
- .dockerignore
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.hound.yml DELETED
@@ -1,2 +0,0 @@
1
- rubocop:
2
- config_file: .rubocop.yml
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.rubocop.yml DELETED
@@ -1,60 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- require:
4
- - rubocop-rspec
5
-
6
- AllCops:
7
- Exclude:
8
- - 'tmp/**/*'
9
- TargetRubyVersion: 2.3
10
-
11
- # Dot at end of line makes it clearer that the line is not done
12
- Layout/DotPosition:
13
- EnforcedStyle: trailing
14
-
15
- # Multi-line assignment should be simply indented. Aligning them makes it even
16
- # harder to keep a sane line length.
17
- Layout/MultilineOperationIndentation:
18
- EnforcedStyle: indented
19
-
20
- # Multi-line method calls should be simply indented. Aligning them makes it
21
- # even harder to keep a sane line length.
22
- Layout/MultilineMethodCallIndentation:
23
- EnforcedStyle: indented
24
-
25
- # Allow if (foo = get_foo) style
26
- Lint/AssignmentInCondition:
27
- AllowSafeAssignment: true
28
-
29
- # Spec describe blocks can be any size
30
- Metrics/BlockLength:
31
- Exclude:
32
- - 'spec/**/*'
33
-
34
- # Require lines to fit in pull requests.
35
- Metrics/LineLength:
36
- Max: 92
37
-
38
- # Allow deeper nesting for spec organization
39
- RSpec/NestedGroups:
40
- Max: 4
41
-
42
- # Allow and/or for control flow only
43
- Style/AndOr:
44
- EnforcedStyle: conditionals
45
-
46
- # Require at least two dependent lines before suggesting a guard clause
47
- Style/GuardClause:
48
- MinBodyLength: 2
49
-
50
- # Explicite numbers are often clearer, and more robust.
51
- Style/NumericPredicate:
52
- Enabled: false
53
-
54
- # Allow explicit return with multiple return values
55
- Style/RedundantReturn:
56
- AllowMultipleReturnValues: true
57
-
58
- # I prefer to have symbols look like symbols
59
- Style/SymbolArray:
60
- EnforcedStyle: brackets
data/.rubocop_todo.yml DELETED
@@ -1,17 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2018-12-03 09:08:01 +0100 using RuboCop version 0.60.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # Configuration parameters: CountComments, ExcludedMethods.
11
- Metrics/MethodLength:
12
- Max: 17
13
-
14
- # Offense count: 1
15
- Security/Eval:
16
- Exclude:
17
- - 'lib/keep_up/bundle.rb'
data/.simplecov DELETED
@@ -1,9 +0,0 @@
1
- SimpleCov.start do
2
- track_files 'lib/**/*.rb'
3
- add_filter 'spec/'
4
- coverage_dir 'tmp/coverage'
5
- end
6
-
7
- SimpleCov.at_exit do
8
- SimpleCov.result.format!
9
- end
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- before_install:
5
- - git config --global user.email "you@example.com"
6
- - git config --global user.name "Your Name"
7
- - gem update --system
8
-
9
- rvm:
10
- - 2.3
11
- - 2.4
12
- - 2.5
13
- - 2.6
14
- - ruby-head
15
-
16
- matrix:
17
- allow_failures:
18
- - rvm: ruby-head
19
-
20
- branches:
21
- only:
22
- - master
data/Dockerfile DELETED
@@ -1,21 +0,0 @@
1
- FROM ruby:2.4.0
2
-
3
- RUN mkdir /keep_up
4
- WORKDIR /keep_up
5
-
6
- # Set up minimum files to run bundler
7
- ADD Gemfile /keep_up
8
- ADD keep_up.gemspec /keep_up
9
- RUN mkdir -p /keep_up/lib/keep_up
10
- ADD lib/keep_up/version.rb /keep_up/lib/keep_up
11
- ADD .git /keep_up
12
-
13
- RUN bundle install
14
-
15
- RUN gem uninstall bunder -xa
16
- RUN gem install bundler --version=1.13.7
17
- RUN git config --global user.email "you@example.com"
18
- RUN git config --global user.name "Your Name"
19
-
20
- ADD . /keep_up
21
- RUN bundle exec rake
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in keep_up.gemspec
6
- gemspec
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
- require 'cucumber/rake/task'
6
-
7
- RSpec::Core::RakeTask.new(:spec)
8
- Cucumber::Rake::Task.new(:features)
9
-
10
- task default: [:spec, :features]
data/keep_up.gemspec DELETED
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'keep_up/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'keep_up'
9
- spec.version = KeepUp::VERSION
10
- spec.authors = ['Matijs van Zuijlen']
11
- spec.email = ['matijs@matijs.net']
12
-
13
- spec.summary = 'Automatically update your dependencies'
14
- spec.description =
15
- 'Automatically update the dependencies listed in your Gemfile,' \
16
- ' Gemfile.lock, and gemspec.'
17
- spec.homepage = 'https://github.com/mvz/keep_up'
18
- spec.license = 'MIT'
19
-
20
- spec.files = `git ls-files -z`.split("\x0").
21
- reject { |f| f.match(%r{^(test|script|spec|features)/}) }
22
-
23
- spec.bindir = 'bin'
24
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
25
- spec.require_paths = ['lib']
26
-
27
- spec.required_ruby_version = '>= 2.3.0'
28
-
29
- spec.add_runtime_dependency 'bundler', ['>= 1.15', '< 3.0']
30
-
31
- spec.add_development_dependency 'aruba', '~> 0.14.2'
32
- spec.add_development_dependency 'rake', '~> 12.0'
33
- spec.add_development_dependency 'rspec', '~> 3.0'
34
- spec.add_development_dependency 'simplecov', '~> 0.16.1'
35
- end