keep_up 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/keep_up/bundle.rb +10 -3
- data/lib/keep_up/updater.rb +4 -3
- data/lib/keep_up/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97d3f75d5a76fc8ce0a3d1c0c9d93df3d7d1f7790108b7166012c12e83eb824a
|
4
|
+
data.tar.gz: 850cd7426571713d51c058b068a31c9abd72de6713bdbdd721baf596d9363d6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '049e14f64bd4dd799dcabac41e0141fb682f81b6a933817f182d1b07c9365f38da42fa0c2dd4a79a1e19512420cb29fa81325030e4d149538198b9c447dcb344'
|
7
|
+
data.tar.gz: 41bd81924f216a3957bdaf627ebe4cf3f878e7668b953af977b6467cc272ff5ff8203b9f60748febb4cda97ef42cc4613d47a584ead02d899bd30d36bbd59bbc
|
data/CHANGELOG.md
CHANGED
data/lib/keep_up/bundle.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/keep_up/updater.rb
CHANGED
@@ -35,11 +35,12 @@ module KeepUp
|
|
35
35
|
|
36
36
|
def apply_updated_dependency(dependency)
|
37
37
|
report_intent dependency
|
38
|
-
bundle.
|
39
|
-
bundle.
|
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)
|
data/lib/keep_up/version.rb
CHANGED
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.
|
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-
|
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.
|
206
|
+
rubygems_version: 3.3.7
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: Automatically update your dependencies
|