keep_up 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +16 -15
- data/CHANGELOG.md +5 -0
- data/keep_up.gemspec +2 -4
- data/lib/keep_up/bundle.rb +2 -9
- data/lib/keep_up/one.rb +13 -0
- data/lib/keep_up/repository.rb +1 -1
- data/lib/keep_up/version.rb +1 -1
- metadata +20 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6e9711c520dce8201a771fec4b0b972817ab8b9
|
4
|
+
data.tar.gz: 2cbdba7b2d01263a405bc8baee64fb587dc28fd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 994a91e4ed5c541a0c594cc41868b19be18d5d50dd1c62ca011e947116c64377f24e1ce641b770fb4836db68f5f5bca0aa158f737476a88a79a63dfe166397d4
|
7
|
+
data.tar.gz: bc4867a1518651a0715ab59c9c418c1ea1a1d822d89235c665232e6c4db1e6c4ca86f741a0472ab4881446631be87dbdc58cd28c1363f409fbade67e8f5cd551
|
data/.rubocop.yml
CHANGED
@@ -2,10 +2,25 @@ AllCops:
|
|
2
2
|
Exclude:
|
3
3
|
- 'tmp/**/*'
|
4
4
|
|
5
|
+
# Dot at end of line makes it clearer that the line is not done
|
6
|
+
Layout/DotPosition:
|
7
|
+
EnforcedStyle: trailing
|
8
|
+
|
9
|
+
# Multi-line assignment should be simply indented. Aligning them makes it even
|
10
|
+
# harder to keep a sane line length.
|
11
|
+
Layout/MultilineOperationIndentation:
|
12
|
+
EnforcedStyle: indented
|
13
|
+
|
14
|
+
# Multi-line method calls should be simply indented. Aligning them makes it
|
15
|
+
# even harder to keep a sane line length.
|
16
|
+
Layout/MultilineMethodCallIndentation:
|
17
|
+
EnforcedStyle: indented
|
18
|
+
|
5
19
|
# Allow if (foo = get_foo) style
|
6
20
|
Lint/AssignmentInCondition:
|
7
21
|
AllowSafeAssignment: true
|
8
22
|
|
23
|
+
# Spec describe blocks can be any size
|
9
24
|
Metrics/BlockLength:
|
10
25
|
Exclude:
|
11
26
|
- 'spec/**/*'
|
@@ -18,10 +33,6 @@ Metrics/LineLength:
|
|
18
33
|
Style/AndOr:
|
19
34
|
EnforcedStyle: conditionals
|
20
35
|
|
21
|
-
# Dot at end of line makes it clearer that the line is not done
|
22
|
-
Style/DotPosition:
|
23
|
-
EnforcedStyle: trailing
|
24
|
-
|
25
36
|
# Require at least two dependent lines before suggesting a guard clause
|
26
37
|
Style/GuardClause:
|
27
38
|
MinBodyLength: 2
|
@@ -30,16 +41,6 @@ Style/GuardClause:
|
|
30
41
|
Style/IfUnlessModifier:
|
31
42
|
MaxLineLength: 60
|
32
43
|
|
33
|
-
# Multi-line assignment should be simply indented. Aligning them makes it even
|
34
|
-
# harder to keep a sane line length.
|
35
|
-
Style/MultilineOperationIndentation:
|
36
|
-
EnforcedStyle: indented
|
37
|
-
|
38
|
-
# Multi-line method calls should be simply indented. Aligning them makes it
|
39
|
-
# even harder to keep a sane line length.
|
40
|
-
Style/MultilineMethodCallIndentation:
|
41
|
-
EnforcedStyle: indented
|
42
|
-
|
43
44
|
# Explicite numbers are often clearer, and more robust.
|
44
45
|
Style/NumericPredicate:
|
45
46
|
Enabled: false
|
@@ -50,4 +51,4 @@ Style/RedundantReturn:
|
|
50
51
|
|
51
52
|
# I prefer to have symbols look like symbols
|
52
53
|
Style/SymbolArray:
|
53
|
-
|
54
|
+
EnforcedStyle: brackets
|
data/CHANGELOG.md
CHANGED
data/keep_up.gemspec
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
1
|
lib = File.expand_path('../lib', __FILE__)
|
4
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
3
|
require 'keep_up/version'
|
@@ -26,8 +24,8 @@ Gem::Specification.new do |spec|
|
|
26
24
|
|
27
25
|
spec.add_runtime_dependency 'bundler', '~> 1.13'
|
28
26
|
|
29
|
-
spec.add_development_dependency 'rake', '~> 12.0'
|
30
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
27
|
spec.add_development_dependency 'aruba', '~> 0.14.2'
|
32
28
|
spec.add_development_dependency 'pry'
|
29
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
31
|
end
|
data/lib/keep_up/bundle.rb
CHANGED
@@ -2,6 +2,7 @@ require 'bundler'
|
|
2
2
|
require_relative 'gemfile_filter'
|
3
3
|
require_relative 'gemspec_filter'
|
4
4
|
require_relative 'dependency'
|
5
|
+
require_relative 'one'
|
5
6
|
|
6
7
|
module KeepUp
|
7
8
|
# A Gemfile with its current set of locked dependencies.
|
@@ -113,15 +114,7 @@ module KeepUp
|
|
113
114
|
end
|
114
115
|
|
115
116
|
def gemspec_name
|
116
|
-
@gemspec_name ||=
|
117
|
-
gemspecs = Dir.glob('*.gemspec')
|
118
|
-
case gemspecs.count
|
119
|
-
when 1
|
120
|
-
gemspecs.first
|
121
|
-
else
|
122
|
-
raise '???'
|
123
|
-
end
|
124
|
-
end
|
117
|
+
@gemspec_name ||= One.fetch(Dir.glob('*.gemspec'))
|
125
118
|
end
|
126
119
|
|
127
120
|
# Update lockfile and return resulting spec, or false in case of failure
|
data/lib/keep_up/one.rb
ADDED
data/lib/keep_up/repository.rb
CHANGED
@@ -8,7 +8,7 @@ module KeepUp
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def updated_dependency_for(dependency)
|
11
|
-
candidates = index.search(dependency)
|
11
|
+
candidates = index.search(dependency).reject { |it| it.version.prerelease? }
|
12
12
|
latest = candidates.sort_by(&:version).last
|
13
13
|
latest unless latest.version <= dependency.locked_version
|
14
14
|
end
|
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.6.
|
4
|
+
version: 0.6.3
|
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: 2017-
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -25,61 +25,61 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.13'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: aruba
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.14.2
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.14.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '12.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '12.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '3.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '3.0'
|
83
83
|
description: Automatically update the dependencies listed in your Gemfile, Gemfile.lock,
|
84
84
|
and gemspec.
|
85
85
|
email:
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- lib/keep_up/gemfile_filter.rb
|
113
113
|
- lib/keep_up/gemspec_filter.rb
|
114
114
|
- lib/keep_up/null_filter.rb
|
115
|
+
- lib/keep_up/one.rb
|
115
116
|
- lib/keep_up/repository.rb
|
116
117
|
- lib/keep_up/skip_filter.rb
|
117
118
|
- lib/keep_up/updater.rb
|
@@ -137,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
138
|
version: '0'
|
138
139
|
requirements: []
|
139
140
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.6.
|
141
|
+
rubygems_version: 2.6.13
|
141
142
|
signing_key:
|
142
143
|
specification_version: 4
|
143
144
|
summary: Automatically update your dependencies
|