keep_up 0.10.0 → 0.10.1

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
2
  SHA256:
3
- metadata.gz: 7f7cf0d8f661622facd6330ca2b0185be3b4e307750f498a8d7a5fe5e426b2d4
4
- data.tar.gz: d4b93a7ecde478f08fe746582af8aafcae56edb2c32932f37a5e324ee39fc811
3
+ metadata.gz: 97d3f75d5a76fc8ce0a3d1c0c9d93df3d7d1f7790108b7166012c12e83eb824a
4
+ data.tar.gz: 850cd7426571713d51c058b068a31c9abd72de6713bdbdd721baf596d9363d6c
5
5
  SHA512:
6
- metadata.gz: 2636dc31ad91af4460b38804925e078161cce26c86041683022a8a11f6932d615ec61bcded0db14e25d9b0d255481a7bc1ede9a1de0bb5f6fb7067d93fc2471a
7
- data.tar.gz: 559e8a41d53d847156b468e8cf28ae49183ac839ead216fc0440d4c28c4a3a7fc42d753dd1fdf52733fae7fd1749388449bf843943cc1193b461ee6f18f9dc9e
6
+ metadata.gz: '049e14f64bd4dd799dcabac41e0141fb682f81b6a933817f182d1b07c9365f38da42fa0c2dd4a79a1e19512420cb29fa81325030e4d149538198b9c447dcb344'
7
+ data.tar.gz: 41bd81924f216a3957bdaf627ebe4cf3f878e7668b953af977b6467cc272ff5ff8203b9f60748febb4cda97ef42cc4613d47a584ead02d899bd30d36bbd59bbc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1 / 2022-05-20
4
+
5
+ * Adjust commit message to match update specificity
6
+
3
7
  ## 0.10.0 / 2022-01-23
4
8
 
5
9
  * Drop support for Ruby 2.5 and 2.6
@@ -37,7 +37,7 @@ module KeepUp
37
37
  update = find_specification_update(dependencies, update)
38
38
  return unless update
39
39
 
40
- update_specification_contents(update, "Gemfile", GemfileFilter)
40
+ update if update_specification_contents(update, "Gemfile", GemfileFilter)
41
41
  end
42
42
 
43
43
  def update_gemspec_contents(update)
@@ -46,7 +46,7 @@ module KeepUp
46
46
  update = find_specification_update(dependencies, update)
47
47
  return unless update
48
48
 
49
- update_specification_contents(update, gemspec_name, GemspecFilter)
49
+ update if update_specification_contents(update, gemspec_name, GemspecFilter)
50
50
  end
51
51
 
52
52
  # Update lockfile and return resulting spec, or false in case of failure
@@ -111,7 +111,14 @@ module KeepUp
111
111
  end
112
112
 
113
113
  def update_specification_contents(update, file, filter)
114
- File.write file, filter.apply(File.read(file), update)
114
+ contents = File.read(file)
115
+ updated_contents = filter.apply(contents, update)
116
+ if contents == updated_contents
117
+ false
118
+ else
119
+ File.write file, updated_contents
120
+ true
121
+ end
115
122
  end
116
123
 
117
124
  def gemspec_name
@@ -35,11 +35,12 @@ module KeepUp
35
35
 
36
36
  def apply_updated_dependency(dependency)
37
37
  report_intent dependency
38
- bundle.update_gemfile_contents(dependency)
39
- bundle.update_gemspec_contents(dependency)
38
+ update = bundle.update_gemspec_contents(dependency)
39
+ update2 = bundle.update_gemfile_contents(dependency)
40
+ update ||= update2
40
41
  result = bundle.update_lockfile(dependency)
41
42
  report_result dependency, result
42
- result
43
+ update || result if result
43
44
  end
44
45
 
45
46
  def report_intent(dependency)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KeepUp
4
- VERSION = "0.10.0"
4
+ VERSION = "0.10.1"
5
5
  end
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.10.0
4
+ version: 0.10.1
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: 2022-01-23 00:00:00.000000000 Z
11
+ date: 2022-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  requirements: []
206
- rubygems_version: 3.3.3
206
+ rubygems_version: 3.3.7
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: Automatically update your dependencies