travis_check_rubies 0.2.2 → 0.2.3

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: 6dfa90b3a72aa937099b77271cea52cc0b949693
4
- data.tar.gz: 3f333d0dc8f2898eea5c468ea07bb3fd9502a44c
3
+ metadata.gz: 705f3daf747e41d10b3741675911bc8e4e8c2a0b
4
+ data.tar.gz: e6f8c836ab2219974821ebbf9d574cb85a75e496
5
5
  SHA512:
6
- metadata.gz: 127f3053cf10229c1b692c0c5efdcfd04aa936bd5cdf6ff08d46628209bfcc06ecd642aec3aa61b556e6f699bf64e14679ae04033b609cb43e068f7493c7d3fd
7
- data.tar.gz: 0d7b1a8e3a32a23c96da5457bd9c7dbe52708cdc5dc762ea539a574b978b49ebd3e3d23f13810ede2deffd0e127f348d50ae40578c27841b7d8c8d0ace0183f1
6
+ metadata.gz: ef52802f01db0665985b173ad44a12e01a5c9ad86f338d2123a4a5f3c3cccace827700f8958ba2b51a946076f10cc78303c3444ef8858c758d017da9c6ebd697
7
+ data.tar.gz: 70c2ad0b29ca21d23d5180c8beb9527c8ccf747537724d986a0c5091f82c169d3e535c7558023c07e6fdf5bca1bda2c5e8964af59f5658e179c7e1f2a09af9fc
data/.travis.yml CHANGED
@@ -3,9 +3,9 @@ language: ruby
3
3
  rvm:
4
4
  - '2.0.0-p648'
5
5
  - '2.1.10'
6
- - '2.2.7'
7
- - '2.3.4'
8
- - '2.4.1'
6
+ - '2.2.8'
7
+ - '2.3.5'
8
+ - '2.4.2'
9
9
  - 'jruby-9.0.5.0'
10
10
  - 'jruby-9.1.9.0'
11
11
  before_script:
@@ -2,10 +2,20 @@
2
2
 
3
3
  require 'travis_check_rubies/travis_yml'
4
4
  require 'optparse'
5
+ require 'yaml'
5
6
 
6
- options = {}
7
+ CONFIG_FILE = '.travis_check_rubies.yml'
8
+
9
+ options = if File.exist?(CONFIG_FILE)
10
+ yaml = YAML.load_file(CONFIG_FILE) || {}
11
+ fail "#{CONFIG_FILE} doesn't contain options hash" unless yaml.is_a?(Hash)
12
+ yaml.map{ |key, value| [key.to_sym, value] }.to_h
13
+ else
14
+ {}
15
+ end
7
16
 
8
17
  op = OptionParser.new
18
+ op.banner += "\nOptions can be also specified in .travis_check_rubies.yml"
9
19
  op.on('--parts N|M..N', 'Match updates by how many parts (0..2 by default)') do |parts|
10
20
  options[:parts] = case parts
11
21
  when /\A\d+\z/
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'travis_check_rubies'
5
- s.version = '0.2.2'
5
+ s.version = '0.2.3'
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}"
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-25 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fspath
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.6.11
80
+ rubygems_version: 2.6.13
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Are you using the latest rubies in .travis.yml?