keep_up 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.rubocop.yml +45 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +47 -0
- data/Rakefile +8 -0
- data/bin/keep_up +24 -0
- data/keep_up.gemspec +33 -0
- data/lib/keep_up/application.rb +36 -0
- data/lib/keep_up/bundle.rb +90 -0
- data/lib/keep_up/dependency.rb +12 -0
- data/lib/keep_up/gemfile_filter.rb +15 -0
- data/lib/keep_up/gemspec_filter.rb +15 -0
- data/lib/keep_up/remote_index.rb +17 -0
- data/lib/keep_up/repository.rb +18 -0
- data/lib/keep_up/updater.rb +27 -0
- data/lib/keep_up/version.rb +3 -0
- data/lib/keep_up/version_control.rb +12 -0
- data/lib/keep_up.rb +7 -0
- metadata +152 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b87126233fa446f59335bed8bc12b3acdf46c46e
|
4
|
+
data.tar.gz: 5ce5ca5f6c52e55f5bcd0055ca387e96a59dcb33
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a88d0852f0855f690a0d5e771a9aaed607d7e34807275b16468d3a56bb7dc7fbd9ea2982fca49d8311db50009467d8e93ad5d6a4abf2975ca54ec526e50cc5d2
|
7
|
+
data.tar.gz: 750e255fff0092dbce25f7986fb31c3f22f6cb6eaaa24864ae5b18a5affff047076e73f0f643efea7ba604f9ed4a5854917745fd386106dbf41ea0322acb1403
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- 'tmp/**/*'
|
4
|
+
|
5
|
+
# Allow if (foo = get_foo) style
|
6
|
+
Lint/AssignmentInCondition:
|
7
|
+
AllowSafeAssignment: true
|
8
|
+
|
9
|
+
# Require lines to fit in pull requests.
|
10
|
+
Metrics/LineLength:
|
11
|
+
Max: 92
|
12
|
+
|
13
|
+
# Allow and/or for control flow only
|
14
|
+
Style/AndOr:
|
15
|
+
EnforcedStyle: conditionals
|
16
|
+
|
17
|
+
# Dot at end of line makes it clearer that the line is not done
|
18
|
+
Style/DotPosition:
|
19
|
+
EnforcedStyle: trailing
|
20
|
+
|
21
|
+
# Require at least two dependent lines before suggesting a guard clause
|
22
|
+
Style/GuardClause:
|
23
|
+
MinBodyLength: 2
|
24
|
+
|
25
|
+
# Don't use if or unless as modifier if the line gets too long
|
26
|
+
Style/IfUnlessModifier:
|
27
|
+
MaxLineLength: 60
|
28
|
+
|
29
|
+
# Multi-line assignment should be simply indented. Aligning them makes it even
|
30
|
+
# harder to keep a sane line length.
|
31
|
+
Style/MultilineOperationIndentation:
|
32
|
+
EnforcedStyle: indented
|
33
|
+
|
34
|
+
# Multi-line method calls should be simply indented. Aligning them makes it
|
35
|
+
# even harder to keep a sane line length.
|
36
|
+
Style/MultilineMethodCallIndentation:
|
37
|
+
EnforcedStyle: indented
|
38
|
+
|
39
|
+
# Explicite numbers are often clearer, and more robust.
|
40
|
+
Style/NumericPredicate:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
# Allow explicit return with multiple return values
|
44
|
+
Style/RedundantReturn:
|
45
|
+
AllowMultipleReturnValues: true
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at matijs@matijs.net. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Matijs van Zuijlen
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# KeepUp
|
2
|
+
|
3
|
+
Automatically update your dependencies.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
THIS GEM IS HIGHLY EXPERIMENTAL AND WILL EAT YOUR HOMEWORK!
|
8
|
+
|
9
|
+
KeepUp is not intended to be part of your application's bundle. You should
|
10
|
+
install it yourself as:
|
11
|
+
|
12
|
+
$ gem install keep_up
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
|
16
|
+
Run keep_up in your project directory:
|
17
|
+
|
18
|
+
$ keep_up
|
19
|
+
|
20
|
+
KeepUp will do its thing and create a pull request or bug report.
|
21
|
+
|
22
|
+
## Development
|
23
|
+
|
24
|
+
After checking out the repo, run `script/setup` to install dependencies. Then, run
|
25
|
+
`rake spec` to run the tests. You can also run `script/console` for an interactive
|
26
|
+
prompt that will allow you to experiment.
|
27
|
+
|
28
|
+
You can run `keep_up` from the checked-out repo by running `ruby -Ilib bin/keep_up`.
|
29
|
+
|
30
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To
|
31
|
+
release a new version, update the version number in `version.rb`, and then run
|
32
|
+
`bundle exec rake release`, which will create a git tag for the version, push
|
33
|
+
git commits and tags, and push the `.gem` file to
|
34
|
+
[rubygems.org](https://rubygems.org).
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
Bug reports and pull requests are welcome on GitHub at
|
39
|
+
https://github.com/mvz/keep_up. This project is intended to be a safe,
|
40
|
+
welcoming space for collaboration, and contributors are expected to adhere to
|
41
|
+
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
42
|
+
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
The gem is available as open source under the terms of the
|
47
|
+
[MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/keep_up
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'optparse'
|
4
|
+
require_relative '../lib/keep_up'
|
5
|
+
|
6
|
+
options = {
|
7
|
+
local: false,
|
8
|
+
test_command: 'bundle exec rake'
|
9
|
+
}
|
10
|
+
OptionParser.new do |parser|
|
11
|
+
parser.on('--[no-]local') do |local|
|
12
|
+
options[:local] = local
|
13
|
+
end
|
14
|
+
|
15
|
+
parser.on('--test-command=COMMAND') do |command|
|
16
|
+
options[:test_command] = command
|
17
|
+
end
|
18
|
+
end.parse!
|
19
|
+
|
20
|
+
begin
|
21
|
+
KeepUp::Application.new(options).run
|
22
|
+
rescue KeepUp::BailOut => e
|
23
|
+
puts "Failure: #{e.message}"
|
24
|
+
end
|
data/keep_up.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'keep_up/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'keep_up'
|
8
|
+
spec.version = KeepUp::VERSION
|
9
|
+
spec.authors = ['Matijs van Zuijlen']
|
10
|
+
spec.email = ['matijs@matijs.net']
|
11
|
+
|
12
|
+
spec.summary = 'Automatically update your dependencies'
|
13
|
+
spec.description =
|
14
|
+
'Automatically update the dependencies listed in your Gemfile,' \
|
15
|
+
' Gemfile.lock, and gemspec.'
|
16
|
+
spec.homepage = 'https://github.com/mvz/keep_up'
|
17
|
+
spec.license = 'MIT'
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").
|
20
|
+
reject { |f| f.match(%r{^(test|script|spec|features)/}) }
|
21
|
+
|
22
|
+
spec.bindir = 'bin'
|
23
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ['lib']
|
25
|
+
|
26
|
+
spec.add_runtime_dependency 'bundler', '~> 1.12'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'rake', '~> 11.0'
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
30
|
+
spec.add_development_dependency 'aruba', '~> 0.14.2'
|
31
|
+
spec.add_development_dependency 'rubocop', '~> 0.45.0'
|
32
|
+
spec.add_development_dependency 'pry'
|
33
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
require 'open3'
|
3
|
+
require_relative 'bundle'
|
4
|
+
require_relative 'repository'
|
5
|
+
require_relative 'updater'
|
6
|
+
require_relative 'version_control'
|
7
|
+
|
8
|
+
module KeepUp
|
9
|
+
# Error thrown when we can't go any further.
|
10
|
+
class BailOut < RuntimeError
|
11
|
+
end
|
12
|
+
|
13
|
+
# Main application
|
14
|
+
class Application
|
15
|
+
def initialize(local:, test_command:)
|
16
|
+
@test_command = test_command
|
17
|
+
@local = local
|
18
|
+
end
|
19
|
+
|
20
|
+
def run
|
21
|
+
update_all_dependencies
|
22
|
+
report_up_to_date
|
23
|
+
end
|
24
|
+
|
25
|
+
def update_all_dependencies
|
26
|
+
Updater.new(bundle: Bundle.new,
|
27
|
+
repository: Repository.new,
|
28
|
+
version_control: VersionControl.new).run
|
29
|
+
end
|
30
|
+
|
31
|
+
def report_up_to_date
|
32
|
+
puts 'Bundle up to date!'
|
33
|
+
puts 'All done!'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
require_relative 'gemfile_filter'
|
3
|
+
require_relative 'gemspec_filter'
|
4
|
+
require_relative 'dependency'
|
5
|
+
|
6
|
+
module KeepUp
|
7
|
+
# A Gemfile with its current set of locked dependencies.
|
8
|
+
class Bundle
|
9
|
+
def direct_dependencies
|
10
|
+
(gemspec_dependencies + gemfile_dependencies).map do |dep|
|
11
|
+
spec = locked_spec dep
|
12
|
+
next unless spec
|
13
|
+
Dependency.new(name: dep.name,
|
14
|
+
version: dep.requirements_list.first,
|
15
|
+
locked_version: spec.version)
|
16
|
+
end.compact
|
17
|
+
end
|
18
|
+
|
19
|
+
def apply_updated_dependency(dependency)
|
20
|
+
puts "Updating #{dependency.name} to #{dependency.version}"
|
21
|
+
update_gemfile_contents(dependency)
|
22
|
+
update_gemspec_contents(dependency)
|
23
|
+
update_lockfile(dependency)
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def gemfile_dependencies
|
29
|
+
bundler_lockfile.dependencies
|
30
|
+
end
|
31
|
+
|
32
|
+
def gemspec_dependencies
|
33
|
+
gemspec_source = bundler_lockfile.sources.find { |it| it.is_a? Bundler::Source::Gemspec }
|
34
|
+
return [] unless gemspec_source
|
35
|
+
gemspec_source.gemspec.dependencies
|
36
|
+
end
|
37
|
+
|
38
|
+
def locked_spec(dep)
|
39
|
+
bundler_lockfile.specs.find { |it| it.name == dep.name }
|
40
|
+
end
|
41
|
+
|
42
|
+
def bundler_lockfile
|
43
|
+
@bundler_lockfile ||= bundler_definition.locked_gems
|
44
|
+
end
|
45
|
+
|
46
|
+
def bundler_definition
|
47
|
+
@bundler_definition ||= Bundler::Definition.build('Gemfile', 'Gemfile.lock', false)
|
48
|
+
end
|
49
|
+
|
50
|
+
def update_gemfile_contents(dependency)
|
51
|
+
current_dependency = gemfile_dependencies.find { |it| it.name == dependency.name }
|
52
|
+
return if !current_dependency
|
53
|
+
return if current_dependency.matches_spec?(dependency)
|
54
|
+
contents = File.read 'Gemfile'
|
55
|
+
updated_contents = GemfileFilter.apply(contents, dependency)
|
56
|
+
File.write 'Gemfile', updated_contents
|
57
|
+
end
|
58
|
+
|
59
|
+
def update_gemspec_contents(dependency)
|
60
|
+
current_dependency = gemspec_dependencies.find { |it| it.name == dependency.name }
|
61
|
+
return if !current_dependency
|
62
|
+
return if current_dependency.matches_spec?(dependency)
|
63
|
+
contents = File.read gemspec_name
|
64
|
+
updated_contents = GemspecFilter.apply(contents, dependency)
|
65
|
+
File.write gemspec_name, updated_contents
|
66
|
+
end
|
67
|
+
|
68
|
+
def gemspec_name
|
69
|
+
@gemspec_name ||= begin
|
70
|
+
gemspecs = Dir.glob('*.gemspec')
|
71
|
+
case gemspecs.count
|
72
|
+
when 1
|
73
|
+
gemspecs.first
|
74
|
+
else
|
75
|
+
raise '???'
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def update_lockfile(dependency)
|
81
|
+
Bundler.clear_gemspec_cache
|
82
|
+
Bundler::Definition.build('Gemfile', 'Gemfile.lock',
|
83
|
+
gems: [dependency.name]).lock('Gemfile.lock')
|
84
|
+
true
|
85
|
+
rescue Bundler::VersionConflict
|
86
|
+
puts 'Update failed'
|
87
|
+
false
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module KeepUp
|
2
|
+
# Single dependency with its current locked version.
|
3
|
+
class Dependency
|
4
|
+
def initialize(name:, version:, locked_version:)
|
5
|
+
@name = name
|
6
|
+
@version = version
|
7
|
+
@locked_version = locked_version
|
8
|
+
end
|
9
|
+
|
10
|
+
attr_reader :name, :version, :locked_version
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module KeepUp
|
2
|
+
# Filter to update dependency information in a Gemfile.
|
3
|
+
module GemfileFilter
|
4
|
+
def self.apply(contents, dependency)
|
5
|
+
contents.each_line.map do |line|
|
6
|
+
if line =~ /^(\s*gem ['"]#{dependency.name}['"], ['"](~> *)?)[^'"]*(['"].*)/m
|
7
|
+
match = Regexp.last_match
|
8
|
+
"#{match[1]}#{dependency.version}#{match[3]}"
|
9
|
+
else
|
10
|
+
line
|
11
|
+
end
|
12
|
+
end.join
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module KeepUp
|
2
|
+
# Filter to update dependency information in a Gemspec.
|
3
|
+
module GemspecFilter
|
4
|
+
def self.apply(contents, dependency)
|
5
|
+
contents.each_line.map do |line|
|
6
|
+
if line =~ /^(.*_dependency[ (](?:['"]|%q.)#{dependency.name}., \[?['"](?:~>|=)? *)[^'"]*(['"].*)/m
|
7
|
+
match = Regexp.last_match
|
8
|
+
"#{match[1]}#{dependency.version}#{match[2]}"
|
9
|
+
else
|
10
|
+
line
|
11
|
+
end
|
12
|
+
end.join
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module KeepUp
|
2
|
+
# Searches possibly remote gem index o find potential dependency updates.
|
3
|
+
class RemoteIndex
|
4
|
+
def search(dependency)
|
5
|
+
remote_index.search(Bundler::Dependency.new(dependency.name, nil))
|
6
|
+
end
|
7
|
+
|
8
|
+
def remote_definition
|
9
|
+
@remote_definition ||=
|
10
|
+
Bundler::Definition.build('Gemfile', 'Gemfile.lock', true).tap(&:resolve_remotely!)
|
11
|
+
end
|
12
|
+
|
13
|
+
def remote_index
|
14
|
+
@remote_index ||= remote_definition.index
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require_relative 'remote_index'
|
2
|
+
|
3
|
+
module KeepUp
|
4
|
+
# Picks updated versions for dependencies.
|
5
|
+
class Repository
|
6
|
+
attr_reader :remote_index
|
7
|
+
|
8
|
+
def initialize(remote_index: RemoteIndex.new)
|
9
|
+
@remote_index = remote_index
|
10
|
+
end
|
11
|
+
|
12
|
+
def updated_dependency_for(dependency)
|
13
|
+
candidates = remote_index.search(dependency)
|
14
|
+
latest = candidates.sort_by(&:version).last
|
15
|
+
latest unless latest.version == dependency.locked_version
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module KeepUp
|
2
|
+
# Apply potential updates to a Gemfile.
|
3
|
+
class Updater
|
4
|
+
attr_reader :bundle, :repository, :version_control
|
5
|
+
|
6
|
+
def initialize(bundle:, repository:, version_control:)
|
7
|
+
@bundle = bundle
|
8
|
+
@repository = repository
|
9
|
+
@version_control = version_control
|
10
|
+
end
|
11
|
+
|
12
|
+
def run
|
13
|
+
possible_updates.each do |update|
|
14
|
+
if bundle.apply_updated_dependency update
|
15
|
+
version_control.commit_changes update
|
16
|
+
else
|
17
|
+
version_control.revert_changes
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def possible_updates
|
23
|
+
bundle.direct_dependencies.
|
24
|
+
map { |dep| repository.updated_dependency_for dep }.compact
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module KeepUp
|
2
|
+
# Interface to the version control system (only Git is supported).
|
3
|
+
class VersionControl
|
4
|
+
def commit_changes(dependency)
|
5
|
+
`git ci -am "Update #{dependency.name} to #{dependency.version}"`
|
6
|
+
end
|
7
|
+
|
8
|
+
def revert_changes
|
9
|
+
`git reset --hard`
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/keep_up.rb
ADDED
metadata
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: keep_up
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matijs van Zuijlen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '11.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '11.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: aruba
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.14.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.14.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.45.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.45.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Automatically update the dependencies listed in your Gemfile, Gemfile.lock,
|
98
|
+
and gemspec.
|
99
|
+
email:
|
100
|
+
- matijs@matijs.net
|
101
|
+
executables:
|
102
|
+
- keep_up
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- ".gitignore"
|
107
|
+
- ".rspec"
|
108
|
+
- ".rubocop.yml"
|
109
|
+
- ".travis.yml"
|
110
|
+
- CODE_OF_CONDUCT.md
|
111
|
+
- Gemfile
|
112
|
+
- LICENSE.txt
|
113
|
+
- README.md
|
114
|
+
- Rakefile
|
115
|
+
- bin/keep_up
|
116
|
+
- keep_up.gemspec
|
117
|
+
- lib/keep_up.rb
|
118
|
+
- lib/keep_up/application.rb
|
119
|
+
- lib/keep_up/bundle.rb
|
120
|
+
- lib/keep_up/dependency.rb
|
121
|
+
- lib/keep_up/gemfile_filter.rb
|
122
|
+
- lib/keep_up/gemspec_filter.rb
|
123
|
+
- lib/keep_up/remote_index.rb
|
124
|
+
- lib/keep_up/repository.rb
|
125
|
+
- lib/keep_up/updater.rb
|
126
|
+
- lib/keep_up/version.rb
|
127
|
+
- lib/keep_up/version_control.rb
|
128
|
+
homepage: https://github.com/mvz/keep_up
|
129
|
+
licenses:
|
130
|
+
- MIT
|
131
|
+
metadata: {}
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
requirements: []
|
147
|
+
rubyforge_project:
|
148
|
+
rubygems_version: 2.5.1
|
149
|
+
signing_key:
|
150
|
+
specification_version: 4
|
151
|
+
summary: Automatically update your dependencies
|
152
|
+
test_files: []
|