keep_up 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: b87126233fa446f59335bed8bc12b3acdf46c46e
4
- data.tar.gz: 5ce5ca5f6c52e55f5bcd0055ca387e96a59dcb33
3
+ metadata.gz: a0fa25e4b5ca01380e460813b37313b4a0e104e4
4
+ data.tar.gz: 87805d313bd64486679cc033368196e7884ab7bf
5
5
  SHA512:
6
- metadata.gz: a88d0852f0855f690a0d5e771a9aaed607d7e34807275b16468d3a56bb7dc7fbd9ea2982fca49d8311db50009467d8e93ad5d6a4abf2975ca54ec526e50cc5d2
7
- data.tar.gz: 750e255fff0092dbce25f7986fb31c3f22f6cb6eaaa24864ae5b18a5affff047076e73f0f643efea7ba604f9ed4a5854917745fd386106dbf41ea0322acb1403
6
+ metadata.gz: 3cf7ad1c4dae7ac860c34f9322bd2a31c183910ea2644a3effebfa0494f0b28afddfd9f7d4e924f169ef091682b8cc1ee8c565ecd9c123852d5d5707911c461e
7
+ data.tar.gz: e83bb3fee50086dc631b888046e14797d1ca224eba9784651cf13466ad614c70400821c337ba8efb272193bd7eeeb671a22d35d3279bcec4aa9c64ad6e0889ff
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0 / 2016-11-24
4
+
5
+ * Resolve remotely to ensure list of available gems is fetched
6
+ * Do not attempt to 'upgrade' to a lower version
7
+ * Depend on Bundler 1.13 since keep_up uses stuff that's not in Bundler 1.12
8
+
9
+ ## 0.1.0 / 2016-11-23
10
+
11
+ * Initial release.
data/README.md CHANGED
@@ -13,11 +13,35 @@ install it yourself as:
13
13
 
14
14
  ## Usage
15
15
 
16
+ KeepUp only works with git at the moment!
17
+
18
+ First, make sure your checkout directory is clean. KeepUp will currently not
19
+ check this for you and may throw away your changes!
20
+
21
+ Next, it's probably nice to start a new branch.
22
+
16
23
  Run keep_up in your project directory:
17
24
 
18
25
  $ keep_up
19
26
 
20
- KeepUp will do its thing and create a pull request or bug report.
27
+ KeepUp will do its thing.
28
+
29
+ Next, run `bundle install` and run your tests or whatever. Since KeepUp
30
+ generates a separate commit for each succesful update, you can use `git bisect`
31
+ to find any updates that cause problems and remove or fix them.
32
+
33
+ ## Planned Features
34
+
35
+ * Check the starting situation (clean checkout, Gemfile.lock up to date)
36
+ * Allow some check for each change. My feeling at the moment is that for local,
37
+ supervised use it's best to test everything at once at the end and then go
38
+ back and fix things. However, for automation it may be helpful to fully check
39
+ each commit.
40
+ * Automaticall set up a new branch so you don't have to.
41
+ * Create a pull request with the created commits.
42
+ * Re-try with combinations of updates if single updates don't work: Sometimes
43
+ two or more dependencies need to be updated together due to their
44
+ interdependencies.
21
45
 
22
46
  ## Development
23
47
 
data/keep_up.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_runtime_dependency 'bundler', '~> 1.12'
26
+ spec.add_runtime_dependency 'bundler', '~> 1.13'
27
27
 
28
28
  spec.add_development_dependency 'rake', '~> 11.0'
29
29
  spec.add_development_dependency 'rspec', '~> 3.0'
@@ -79,8 +79,9 @@ module KeepUp
79
79
 
80
80
  def update_lockfile(dependency)
81
81
  Bundler.clear_gemspec_cache
82
- Bundler::Definition.build('Gemfile', 'Gemfile.lock',
83
- gems: [dependency.name]).lock('Gemfile.lock')
82
+ Bundler::Definition.build('Gemfile', 'Gemfile.lock', gems: [dependency.name]).
83
+ tap(&:resolve_remotely!).
84
+ lock('Gemfile.lock')
84
85
  true
85
86
  rescue Bundler::VersionConflict
86
87
  puts 'Update failed'
@@ -12,7 +12,7 @@ module KeepUp
12
12
  def updated_dependency_for(dependency)
13
13
  candidates = remote_index.search(dependency)
14
14
  latest = candidates.sort_by(&:version).last
15
- latest unless latest.version == dependency.locked_version
15
+ latest unless latest.version <= dependency.locked_version
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module KeepUp
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  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.1.0
4
+ version: 0.2.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: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
19
+ version: '1.13'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.12'
26
+ version: '1.13'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,7 @@ files:
107
107
  - ".rspec"
108
108
  - ".rubocop.yml"
109
109
  - ".travis.yml"
110
+ - CHANGELOG.md
110
111
  - CODE_OF_CONDUCT.md
111
112
  - Gemfile
112
113
  - LICENSE.txt
@@ -145,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
146
  version: '0'
146
147
  requirements: []
147
148
  rubyforge_project:
148
- rubygems_version: 2.5.1
149
+ rubygems_version: 2.4.5.1
149
150
  signing_key:
150
151
  specification_version: 4
151
152
  summary: Automatically update your dependencies