travis_check_rubies 0.3.0 → 0.4.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
- SHA1:
3
- metadata.gz: d0565043dfa3d7dcaed61f34261c1af5b367d923
4
- data.tar.gz: fd91c41ce727573376e72d29f05e6c5e68751553
2
+ SHA256:
3
+ metadata.gz: a243f7a9ee9c49601007f8f17c7aba32dd69203521976ecbc5a14887c46e54db
4
+ data.tar.gz: 9a409034a7d17c73f43b1209ffb25b1322cb80fa055d982b0cadc36c1f1766f6
5
5
  SHA512:
6
- metadata.gz: acedf4996dadb6720dfffa8444ad5def2e4b5076ff1a09a5a56bd770c14a051ea242f6a8769035d8335f023f9191f49f340fc8632e830d6db4f9800ca866e17d
7
- data.tar.gz: 70f4e50e8362147dcd4ec8a0deed8ef07acacffcc97235e336263e6dd96818ebaf4a7a56c0d32595371cc74971298639f7e241d7f69ef799aa38c2fd9b820e7c
6
+ metadata.gz: 2001eaef85bfee1bbfb69eab2d5c06716c74abd711e801d227a23ab1f99325b9b08fe1bd973dc3190f5c11c8b37eb352f33bb6a88c77b7c349e1110ade2199be
7
+ data.tar.gz: 60e6630469d3ae1af191e61c92eb15b4048f3cbe7abd4345e3547170a351e3510de63b02702de27942146a5c70d59ff12e907214932e688a2729395dbde0bf20
@@ -2,8 +2,9 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - '2.3.8'
5
- - '2.4.5'
6
- - '2.5.3'
5
+ - '2.4.6'
6
+ - '2.5.5'
7
+ - '2.6.2'
7
8
  - 'jruby-9.1.9.0'
8
9
  before_script:
9
10
  - env
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2018 Ivan Kuchin
1
+ Copyright (c) 2017-2019 Ivan Kuchin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -43,4 +43,4 @@ bundle exec travis_check_rubies
43
43
 
44
44
  ## Copyright
45
45
 
46
- Copyright (c) 2017-2018 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
46
+ Copyright (c) 2017-2019 Ivan Kuchin. See [LICENSE.txt](LICENSE.txt) for details.
@@ -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
 
@@ -2,13 +2,19 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'travis_check_rubies'
5
- s.version = '0.3.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.3.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: 2018-11-02 00:00:00.000000000 Z
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
- rubyforge_project:
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?