travis_check_rubies 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -2
- data/LICENSE.txt +1 -1
- data/README.markdown +1 -1
- data/bin/travis_check_rubies +3 -0
- data/lib/travis_check_rubies/travis_yml.rb +1 -1
- data/lib/travis_check_rubies/version.rb +1 -1
- data/travis_check_rubies.gemspec +7 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a243f7a9ee9c49601007f8f17c7aba32dd69203521976ecbc5a14887c46e54db
|
4
|
+
data.tar.gz: 9a409034a7d17c73f43b1209ffb25b1322cb80fa055d982b0cadc36c1f1766f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2001eaef85bfee1bbfb69eab2d5c06716c74abd711e801d227a23ab1f99325b9b08fe1bd973dc3190f5c11c8b37eb352f33bb6a88c77b7c349e1110ade2199be
|
7
|
+
data.tar.gz: 60e6630469d3ae1af191e61c92eb15b4048f3cbe7abd4345e3547170a351e3510de63b02702de27942146a5c70d59ff12e907214932e688a2729395dbde0bf20
|
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
data/README.markdown
CHANGED
data/bin/travis_check_rubies
CHANGED
@@ -38,6 +38,9 @@ end
|
|
38
38
|
op.on('--exclude V,V,V', Array, 'Exclude matching versions') do |exclude|
|
39
39
|
options[:exclude] = exclude
|
40
40
|
end
|
41
|
+
op.on('--conservative', 'Update to first instead of last possible version') do
|
42
|
+
options[:conservative] = true
|
43
|
+
end
|
41
44
|
op.on('-u', '--update', 'Update versions') do
|
42
45
|
update = true
|
43
46
|
end
|
@@ -53,7 +53,7 @@ module TravisCheckRubies
|
|
53
53
|
versions.each do |version|
|
54
54
|
next unless (suggestions = Version.update(version, options))
|
55
55
|
next if suggestions.include?(version)
|
56
|
-
to = section == 'include' ? suggestions.last : suggestions.first
|
56
|
+
to = section == 'include' && !options[:conservative] ? suggestions.last : suggestions.first
|
57
57
|
@suggestions << Suggestion.new(section, version, suggestions, to)
|
58
58
|
end
|
59
59
|
end
|
@@ -23,7 +23,7 @@ module TravisCheckRubies
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
def update(version, parts: 0..2, allow_pre: false, intermediary: true, exclude: [])
|
26
|
+
def update(version, parts: 0..2, allow_pre: false, intermediary: true, exclude: [], conservative: false)
|
27
27
|
version = convert(version)
|
28
28
|
return unless version.version_parts
|
29
29
|
|
data/travis_check_rubies.gemspec
CHANGED
@@ -2,13 +2,19 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'travis_check_rubies'
|
5
|
-
s.version = '0.
|
5
|
+
s.version = '0.4.0'
|
6
6
|
s.summary = 'Are you using the latest rubies in .travis.yml?'
|
7
7
|
s.description = 'Check if `.travis.yml` specifies latest available rubies from listed on https://rubies.travis-ci.org and propose changes'
|
8
8
|
s.homepage = "http://github.com/toy/#{s.name}"
|
9
9
|
s.authors = ['Ivan Kuchin']
|
10
10
|
s.license = 'MIT'
|
11
11
|
|
12
|
+
s.metadata = {
|
13
|
+
'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
|
14
|
+
'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
|
15
|
+
'source_code_uri' => "https://github.com/toy/#{s.name}",
|
16
|
+
}
|
17
|
+
|
12
18
|
s.files = `git ls-files`.split("\n")
|
13
19
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis_check_rubies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fspath
|
@@ -76,7 +76,10 @@ files:
|
|
76
76
|
homepage: http://github.com/toy/travis_check_rubies
|
77
77
|
licenses:
|
78
78
|
- MIT
|
79
|
-
metadata:
|
79
|
+
metadata:
|
80
|
+
bug_tracker_uri: https://github.com/toy/travis_check_rubies/issues
|
81
|
+
documentation_uri: https://www.rubydoc.info/gems/travis_check_rubies/0.4.0
|
82
|
+
source_code_uri: https://github.com/toy/travis_check_rubies
|
80
83
|
post_install_message:
|
81
84
|
rdoc_options: []
|
82
85
|
require_paths:
|
@@ -92,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
95
|
- !ruby/object:Gem::Version
|
93
96
|
version: '0'
|
94
97
|
requirements: []
|
95
|
-
|
96
|
-
rubygems_version: 2.6.14.3
|
98
|
+
rubygems_version: 3.0.3
|
97
99
|
signing_key:
|
98
100
|
specification_version: 4
|
99
101
|
summary: Are you using the latest rubies in .travis.yml?
|