xezat 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0053db8d2a6f202e9aa40b7454f00f8ced3fdacd2c174944bec6c02a2ae106c4
4
- data.tar.gz: 5abd0d6bd506b6a44ca306675e7b37b81d8834ff12d1165f47ad2c100ec87fcb
3
+ metadata.gz: 44f20fb8c8d53290ca2aa712f0305df3a64fa92b5fd495e74d9c251cea4bd38c
4
+ data.tar.gz: 43aa81a90789ba5ab3d9c64b7b8aa4b93bf04d96cde0c51ceba7a35238623771
5
5
  SHA512:
6
- metadata.gz: eb736dd2128a11b7b249db02e58732b54578085808f3e8d4ad36cfa74741ae2583194e3337b810d82e2a048cf9f7a893e9df1941d589e8953de270abe1799196
7
- data.tar.gz: f8a26d86744acd8391b21c89db39afe00a880bf26b2660de5fc51d04ccae070a0e2761f650dea28c32a38cfc4b757f739b7baf4cad74aad5a480a4585e89e2dd
6
+ metadata.gz: fde0d1e68848308d416fe1e06749bfcaec89a558a40454fc8924a0038103ddbbc07db8900894d48b825a21633e112c83ce72899e40133b8766f082749a3a2f12
7
+ data.tar.gz: 0cbca3957598e70390bdb6c87bddfe94585d5d1afe85b97057158b23dae17a2ab1555c7b63410595417cf996382124e42907dd42f1aa1e43831710f26295184d
@@ -0,0 +1,45 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ "master" ]
13
+ pull_request:
14
+ branches: [ "master" ]
15
+
16
+ jobs:
17
+ test:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ with:
22
+ submodules: true
23
+ - name: Install native libraries
24
+ run: sudo apt-get install cmake libicu-dev
25
+ - name: Set up Ruby
26
+ uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: '3.2.2' # Not needed with a .ruby-version file
29
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30
+ - name: Run rubocop
31
+ run: bundle exec rubocop --format simple
32
+ - name: Run fasterer
33
+ run: bundle exec fasterer
34
+ - name: Run tests
35
+ run: bundle exec rspec
36
+ - name: Formatting coverage results
37
+ uses: 5monkeys/cobertura-action@master
38
+ with:
39
+ path: tmp/coverage/coverage.xml
40
+ minimum_coverage: 75
41
+ show_branch: true
42
+ show_missing: true
43
+ show_class_names: true
44
+ link_missing_lines: true
45
+ report_name: code coverage results
data/.gitignore CHANGED
@@ -1,12 +1,11 @@
1
1
  /.bundle/
2
- /.yardoc
3
2
  /Gemfile.lock
4
- /_yardoc/
5
3
  /coverage/
6
4
  /doc/
7
5
  /pkg/
8
6
  /spec/reports/
9
7
  /tmp/
8
+ /vendor/
10
9
 
11
10
  # rspec failure tracking
12
- .rspec_status
11
+ # .rspec_status
data/.rubocop.yml CHANGED
@@ -3,11 +3,14 @@ require: rubocop-performance
3
3
  AllCops:
4
4
  NewCops: enable
5
5
  SuggestExtensions: false
6
- TargetRubyVersion: 2.6
6
+ TargetRubyVersion: 3.2
7
7
  Exclude:
8
8
  - 'spec/cygport/**/*'
9
9
  - 'vendor/**/*'
10
10
 
11
+ Gemspec/DevelopmentDependencies:
12
+ EnforcedStyle: gemspec
13
+
11
14
  Layout/LineLength:
12
15
  Max: 160
13
16
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.4
1
+ 3.2.2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Xezat
2
2
 
3
- [![CircleCI](https://circleci.com/gh/fd00/xezat/tree/master.svg?style=svg)](https://circleci.com/gh/fd00/xezat/tree/master)
3
+ [![Actions](https://github.com/fd00/xezat/actions/workflows/ruby.yml/badge.svg)](https://github.com/fd00/xezat/)
4
4
 
5
5
  xezat helps you win at cygport.
6
6
 
@@ -8,16 +8,16 @@ module Xezat
8
8
  def get_compilers(languages, _variables)
9
9
  Xezat.logger.debug(' Collect compilers')
10
10
  compiler_file = File.expand_path(File.join(DATA_DIR, 'compilers.yaml'))
11
- compiler_candidates = YAML.safe_load(File.open(compiler_file), [Symbol])
11
+ compiler_candidates = YAML.safe_load(File.open(compiler_file), symbolize_names: true, permitted_classes: [Symbol])
12
12
  compilers = []
13
13
  languages.uniq.each do |language|
14
14
  next unless compiler_candidates.key?(language)
15
15
 
16
16
  compiler_candidate = compiler_candidates[language]
17
- compilers << compiler_candidate['package'].intern
18
- next unless compiler_candidate.key?('dependencies')
17
+ compilers << compiler_candidate[:package].intern
18
+ next unless compiler_candidate.key?(:dependencies)
19
19
 
20
- compiler_candidate['dependencies'].each do |dependency|
20
+ compiler_candidate[:dependencies].each do |dependency|
21
21
  compilers << dependency.intern
22
22
  end
23
23
  end
@@ -9,19 +9,23 @@ module Xezat
9
9
  def get_languages(top_src_dir)
10
10
  Xezat.logger.debug(' Collect languages')
11
11
  languages_file = File.expand_path(File.join(DATA_DIR, 'languages.yaml'))
12
- languages_candidates = YAML.safe_load(File.open(languages_file), [Symbol])
12
+ languages_candidates = YAML.safe_load(File.open(languages_file), symbolize_names: true, permitted_classes: [Symbol])
13
13
  languages = []
14
14
  Find.find(top_src_dir) do |path|
15
15
  next if FileTest.directory?(path)
16
16
 
17
- name = languages_candidates[File.extname(path)]
17
+ extname = File.extname(path)
18
+ next if extname == '.inc' # ambiguous
19
+
20
+ name = languages_candidates[extname.to_sym]
18
21
  if name.nil?
22
+
19
23
  language = Xezat::Linguist::FileBlob.new(path).language
20
24
  next if language.nil?
21
25
 
22
26
  name = language.name
23
27
  end
24
- languages << name
28
+ languages << name.to_sym
25
29
  end
26
30
  languages.uniq
27
31
  end
@@ -13,10 +13,11 @@ module Xezat
13
13
  runtime_packages = result.gsub(/^.*\*\*\*.*$/, '').split($INPUT_RECORD_SEPARATOR).map(&:lstrip)
14
14
  build_requires = variables[:BUILD_REQUIRES].nil? ? [] : variables[:BUILD_REQUIRES].split.map(&:to_sym)
15
15
  runtime_packages.delete(pkgs[:'libssl-devel']) if build_requires.include?(:'libssl1.0-devel')
16
+ runtime_packages.map! { |pkg| pkg == 'python3' ? pkgs[:python39] : pkg }
16
17
  variables[:REQUIRES]&.split&.each do |req|
17
18
  runtime_packages << pkgs[req.to_sym]
18
19
  end
19
- runtime_packages.sort
20
+ runtime_packages.sort.uniq
20
21
  end
21
22
  end
22
23
  end
@@ -44,7 +44,7 @@ module Xezat
44
44
  repository_file = File.expand_path(File.join(REPOSITORY_DIR, "#{repository}.yaml"))
45
45
  raise NoSuchRepositoryError, "No such repository: #{template}" unless FileTest.exist?(repository_file) || FileTest.readable?(repository_file)
46
46
 
47
- YAML.safe_load(File.open(repository_file), symbolize_names: true)
47
+ YAML.safe_load(File.open(repository_file), symbolize_names: true, permitted_classes: [Symbol])
48
48
  else
49
49
  {
50
50
  HOMEPAGE: '',
@@ -26,15 +26,13 @@ module Xezat
26
26
  readme = File.expand_path(File.join(vars[:C], 'README'))
27
27
  src_patch = File.expand_path(File.join(vars[:patchdir], "#{vars[:PF]}.src.patch"))
28
28
 
29
- fuo = {
30
- noop: @options[:noop],
31
- verbose: @options[:noop] || @options[:verbose]
32
- }
33
-
34
- FileUtils.mkdir_p(d, fuo)
35
- FileUtils.cp(cygport, d, fuo)
36
- FileUtils.cp(readme, d, fuo)
37
- FileUtils.cp(src_patch, d, fuo) unless FileTest.zero?(src_patch)
29
+ noop = @options[:noop]
30
+ verbose = @options[:noop] || @options[:verbose]
31
+
32
+ FileUtils.mkdir_p(d, noop:, verbose:)
33
+ FileUtils.cp(cygport, d, noop:, verbose:)
34
+ FileUtils.cp(readme, d, noop:, verbose:)
35
+ FileUtils.cp(src_patch, d, noop:, verbose:) unless FileTest.empty?(src_patch)
38
36
  Xezat.logger.debug('End porting')
39
37
  end
40
38
 
@@ -58,7 +58,8 @@ module Xezat
58
58
 
59
59
  def validate_category(category)
60
60
  categories_file = File.expand_path(File.join(DATA_DIR, 'categories.yaml'))
61
- Xezat.logger.error(" Category is invalid : #{category}") unless YAML.safe_load(File.open(categories_file), [Symbol]).include?(category.downcase)
61
+ Xezat.logger.error(" Category is invalid : #{category}") unless
62
+ YAML.safe_load(File.open(categories_file), symbolize_names: true, permitted_classes: [Symbol]).include?(category.downcase)
62
63
  end
63
64
 
64
65
  def validate_homepage(homepage)
@@ -72,7 +73,7 @@ module Xezat
72
73
  rescue OpenSSL::SSL::SSLError => e
73
74
  raise e unless @options[:ignore]
74
75
 
75
- Xezat.logger.error(' Ignore SSLError')
76
+ Xezat.logger.warn(' Ignore SSLError')
76
77
  end
77
78
 
78
79
  def validate_build_requires(build_requires, pkgs)
data/lib/xezat/config.rb CHANGED
@@ -8,8 +8,7 @@ module Xezat
8
8
  config['cygwin'] = {
9
9
  'cygclassdir' => '/usr/share/cygport/cygclass'
10
10
  }
11
- config['xezat'] = {
12
- }
11
+ config['xezat'] = {}
13
12
  config.merge!(YAML.load_file(filepath)) if filepath
14
13
  config
15
14
  end
@@ -49,11 +49,11 @@ module Xezat
49
49
  @changelogs.key?(key)
50
50
  end
51
51
 
52
- def each(&block)
52
+ def each(&)
53
53
  logs = @changelogs.sort do |a, b|
54
54
  -(Cygversion.new(a[0].to_s) <=> Cygversion.new(b[0].to_s))
55
55
  end
56
- logs.each(&block)
56
+ logs.each(&)
57
57
  end
58
58
 
59
59
  def length
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'find'
4
- require 'pp'
5
4
  require 'xezat/ext/linguist/file_blob'
6
5
  require 'xezat/variables'
7
6
 
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'pp'
4
3
  require 'xezat/variables'
5
4
 
6
5
  module Xezat
@@ -6,6 +6,24 @@ module Xezat
6
6
  module Detector
7
7
  class Autoconf
8
8
  def detect(variables)
9
+ return false unless variables.keys.index do |key|
10
+ %i[_cmake_CYGCLASS_ _meson_CYGCLASS_ _ninja_CYGCLASS_].include?(key)
11
+ end.nil?
12
+
13
+ cygautoreconf = false
14
+ File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line|
15
+ if line.index('cygautoreconf')
16
+ cygautoreconf = true
17
+ return true
18
+ end
19
+ end
20
+
21
+ unless cygautoreconf
22
+ File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line|
23
+ return false if line.index('src_compile')
24
+ end
25
+ end
26
+
9
27
  Find.find(variables[:S]) do |file|
10
28
  return true if file.end_with?("#{File::SEPARATOR}configure.ac", "#{File::SEPARATOR}configure.in")
11
29
  end
@@ -6,6 +6,24 @@ module Xezat
6
6
  module Detector
7
7
  class Automake
8
8
  def detect(variables)
9
+ return false unless variables.keys.index do |key|
10
+ %i[_cmake_CYGCLASS_ _meson_CYGCLASS_ _ninja_CYGCLASS_].include?(key)
11
+ end.nil?
12
+
13
+ cygautoreconf = false
14
+ File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line|
15
+ if line.index('cygautoreconf')
16
+ cygautoreconf = true
17
+ return true
18
+ end
19
+ end
20
+
21
+ unless cygautoreconf
22
+ File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line|
23
+ return false if line.index('src_compile')
24
+ end
25
+ end
26
+
9
27
  Find.find(variables[:S]) do |file|
10
28
  return true if file.end_with?('.am')
11
29
  end
@@ -8,7 +8,7 @@ module Xezat
8
8
  def initialize(detector_dir = File.expand_path(File.join(File.dirname(__FILE__), 'detector')))
9
9
  Xezat.logger.debug(' Load detectors')
10
10
  @detectors = {}
11
- Dir.glob(File.join(detector_dir, '*.rb')).sort.each do |rb|
11
+ Dir.glob(File.join(detector_dir, '*.rb')).each do |rb|
12
12
  require rb
13
13
  @detectors[File.basename(rb, '.rb').intern] = Object.const_get("Xezat::Detector::#{File.basename(rb, '.rb').camelize}").new
14
14
  end
@@ -99,7 +99,7 @@ module Xezat
99
99
  makefile_am = File.expand_path(File.join(srcdir, 'Makefile.am'))
100
100
  raise AutotoolsFileNotFoundError unless File.exist?(makefile_am)
101
101
 
102
- if /pkgconfig_DATA/.match?(File.read(makefile_am))
102
+ if File.read(makefile_am).include?('pkgconfig_DATA')
103
103
  Xezat.logger.debug(" Not rewrite #{makefile_am}")
104
104
  break
105
105
  end
@@ -18,7 +18,7 @@ module Xezat
18
18
 
19
19
  if File.exist?(cache_file) && File.ctime(cache_file) > File.ctime(cygport)
20
20
  Xezat.logger.debug(' Read cache for variables')
21
- return YAML.safe_load(File.open(cache_file), [Symbol]).each do |k, v|
21
+ return YAML.safe_load(File.open(cache_file), symbolize_names: true, permitted_classes: [Symbol]).each do |k, v|
22
22
  v.strip! if v.respond_to?(:strip) && k != :DESCRIPTION
23
23
  end
24
24
  end
@@ -30,7 +30,7 @@ module Xezat
30
30
  result.gsub!(/^.*\*\*\*.*$/, '')
31
31
 
32
32
  begin
33
- variables = YAML.safe_load(result, [Symbol]).each_value do |v|
33
+ variables = YAML.safe_load(result, symbolize_names: true, permitted_classes: [Symbol]).each_value do |v|
34
34
  v.strip! if v.respond_to?(:strip)
35
35
  end
36
36
  rescue Psych::SyntaxError => e
@@ -51,7 +51,7 @@ module Xezat
51
51
  def print_yaml(result)
52
52
  lineno = 1
53
53
  result.split($INPUT_RECORD_SEPARATOR).each do |line|
54
- printf '%<lineno>5d | %<line>s%<ls>s', lineno: lineno, line: line, ls: $INPUT_RECORD_SEPARATOR
54
+ printf '%<lineno>5d | %<line>s%<ls>s', lineno:, line:, ls: $INPUT_RECORD_SEPARATOR
55
55
  lineno += 1
56
56
  end
57
57
  end
data/lib/xezat/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xezat
4
- VERSION = '0.2.3'
4
+ VERSION = '0.3.0'
5
5
  end
data/xezat.gemspec CHANGED
@@ -21,23 +21,22 @@ Gem::Specification.new do |spec|
21
21
  spec.bindir = 'exe'
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
- spec.required_ruby_version = '>= 2.6.4'
24
+ spec.required_ruby_version = '>= 3.2.2'
25
25
 
26
26
  spec.add_runtime_dependency 'facets', '>= 3.1.0'
27
- spec.add_runtime_dependency 'github-linguist', '>= 7.21.0'
28
- spec.add_runtime_dependency 'pkg-config', '>= 1.4.7'
29
- spec.add_runtime_dependency 'spdx', '>= 4.1.1'
30
- spec.add_runtime_dependency 'thor', '>= 0.20.3'
31
- spec.add_runtime_dependency 'thor-zsh_completion', '>= 0.1.9'
27
+ spec.add_runtime_dependency 'github-linguist', '>= 7.26.0'
28
+ spec.add_runtime_dependency 'pkg-config', '>= 1.5.2'
29
+ spec.add_runtime_dependency 'spdx', '>= 4.1.3'
30
+ spec.add_runtime_dependency 'thor', '>= 1.2.2'
31
+ spec.add_runtime_dependency 'thor-zsh_completion', '>= 0.1.10'
32
32
 
33
33
  spec.add_development_dependency 'bundler', '>= 1.15.3'
34
- spec.add_development_dependency 'fasterer', '>= 0.10.0'
34
+ spec.add_development_dependency 'fasterer', '>= 0.10.1'
35
35
  spec.add_development_dependency 'rake', '>= 13.0'
36
- spec.add_development_dependency 'rspec', '>= 3.9.0'
37
- spec.add_development_dependency 'rspec_junit_formatter', '<= 0.4.1'
38
- spec.add_development_dependency 'rubocop', '>= 1.28.1'
39
- spec.add_development_dependency 'rubocop-performance', '>= 1.13.3'
40
- spec.add_development_dependency 'simplecov', '>= 0.21.2'
36
+ spec.add_development_dependency 'rspec', '>= 3.12.0'
37
+ spec.add_development_dependency 'rubocop', '>= 1.54.1'
38
+ spec.add_development_dependency 'rubocop-performance', '>= 1.18.0'
39
+ spec.add_development_dependency 'simplecov-cobertura', '>= 2.1.0'
41
40
 
42
41
  spec.metadata['rubygems_mfa_required'] = 'true'
43
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xezat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Fujimura (fd0)
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-29 00:00:00.000000000 Z
11
+ date: 2023-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facets
@@ -30,70 +30,70 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 7.21.0
33
+ version: 7.26.0
34
34
  type: :runtime
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: 7.21.0
40
+ version: 7.26.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pkg-config
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.4.7
47
+ version: 1.5.2
48
48
  type: :runtime
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: 1.4.7
54
+ version: 1.5.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: spdx
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 4.1.1
61
+ version: 4.1.3
62
62
  type: :runtime
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: 4.1.1
68
+ version: 4.1.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: thor
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.20.3
75
+ version: 1.2.2
76
76
  type: :runtime
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.20.3
82
+ version: 1.2.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: thor-zsh_completion
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.1.9
89
+ version: 0.1.10
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 0.1.9
96
+ version: 0.1.10
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 0.10.0
117
+ version: 0.10.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 0.10.0
124
+ version: 0.10.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,70 +142,56 @@ dependencies:
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 3.9.0
145
+ version: 3.12.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 3.9.0
153
- - !ruby/object:Gem::Dependency
154
- name: rspec_junit_formatter
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "<="
158
- - !ruby/object:Gem::Version
159
- version: 0.4.1
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "<="
165
- - !ruby/object:Gem::Version
166
- version: 0.4.1
152
+ version: 3.12.0
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: rubocop
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - ">="
172
158
  - !ruby/object:Gem::Version
173
- version: 1.28.1
159
+ version: 1.54.1
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - ">="
179
165
  - !ruby/object:Gem::Version
180
- version: 1.28.1
166
+ version: 1.54.1
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: rubocop-performance
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
171
  - - ">="
186
172
  - !ruby/object:Gem::Version
187
- version: 1.13.3
173
+ version: 1.18.0
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - ">="
193
179
  - !ruby/object:Gem::Version
194
- version: 1.13.3
180
+ version: 1.18.0
195
181
  - !ruby/object:Gem::Dependency
196
- name: simplecov
182
+ name: simplecov-cobertura
197
183
  requirement: !ruby/object:Gem::Requirement
198
184
  requirements:
199
185
  - - ">="
200
186
  - !ruby/object:Gem::Version
201
- version: 0.21.2
187
+ version: 2.1.0
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - ">="
207
193
  - !ruby/object:Gem::Version
208
- version: 0.21.2
194
+ version: 2.1.0
209
195
  description: xezat helps you win at cygport.
210
196
  email:
211
197
  - booleanlabel@gmail.com
@@ -214,8 +200,8 @@ executables:
214
200
  extensions: []
215
201
  extra_rdoc_files: []
216
202
  files:
217
- - ".circleci/config.yml"
218
203
  - ".fasterer.yml"
204
+ - ".github/workflows/ruby.yml"
219
205
  - ".gitignore"
220
206
  - ".gitmodules"
221
207
  - ".rspec"
@@ -308,7 +294,7 @@ licenses:
308
294
  - MIT
309
295
  metadata:
310
296
  rubygems_mfa_required: 'true'
311
- post_install_message:
297
+ post_install_message:
312
298
  rdoc_options: []
313
299
  require_paths:
314
300
  - lib
@@ -316,15 +302,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
302
  requirements:
317
303
  - - ">="
318
304
  - !ruby/object:Gem::Version
319
- version: 2.6.4
305
+ version: 3.2.2
320
306
  required_rubygems_version: !ruby/object:Gem::Requirement
321
307
  requirements:
322
308
  - - ">="
323
309
  - !ruby/object:Gem::Version
324
310
  version: '0'
325
311
  requirements: []
326
- rubygems_version: 3.3.11
327
- signing_key:
312
+ rubygems_version: 3.4.10
313
+ signing_key:
328
314
  specification_version: 4
329
315
  summary: xezat helps you win at cygport.
330
316
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,110 +0,0 @@
1
- version: 2.1
2
- orbs:
3
- ruby: circleci/ruby@1.4.0
4
- jobs:
5
- test:
6
- docker:
7
- - image: cimg/ruby:2.6
8
-
9
- working_directory: ~/repo
10
-
11
- steps:
12
- - checkout
13
-
14
- - run:
15
- name: Init & update submodule
16
- command: |
17
- git submodule init
18
- git submodule update
19
- git submodule foreach git pull origin master
20
-
21
- # Download and cache dependencies
22
- - restore_cache:
23
- keys:
24
- - v2-dependencies-{{ .Branch }}
25
- # fallback to using the latest cache if no exact match is found
26
- #- v1-dependencies-
27
-
28
- - run:
29
- name: Show ruby version
30
- command: |
31
- ruby -v
32
-
33
- - run:
34
- name: Install native libraries
35
- command: |
36
- sudo apt-get install cmake libicu-dev
37
-
38
- - run:
39
- name: Install dependencies
40
- command: |
41
- bundle install --jobs=4 --retry=3 --path vendor/bundle
42
-
43
- - save_cache:
44
- paths:
45
- - ./vendor/bundle
46
- key: v2-dependencies-{{ .Branch }}
47
-
48
- # Rubocop
49
- - run:
50
- name: Rubocop
51
- command: |
52
- bundle exec rubocop -D -c .rubocop.yml --format simple
53
-
54
- # Fasterer
55
- - run:
56
- name: Fasterer
57
- command: |
58
- bundle exec fasterer
59
-
60
- # Run tests
61
- - run:
62
- name: Run tests
63
- command: |
64
- mkdir /tmp/test-results
65
- bundle exec rspec --no-color \
66
- --format progress \
67
- --format RspecJunitFormatter \
68
- --out /tmp/test-results/rspec.xml
69
-
70
- # Collect reports
71
- - store_test_results:
72
- path: /tmp/test-results
73
- - store_artifacts:
74
- path: ~/repo/coverage
75
- destination: coverage
76
-
77
- deploy:
78
- docker:
79
- - image: cimg/ruby:2.6
80
- steps:
81
- - checkout
82
- - run:
83
- name: Install native libraries
84
- command: |
85
- sudo apt-get install cmake libicu-dev
86
-
87
- - run:
88
- name: Install dependencies
89
- command: |
90
- bundle install --jobs=4 --retry=3 --path vendor/bundle
91
-
92
- - run:
93
- name: Publish gem to Rubygems
94
- command: bundle exec rake release
95
-
96
- workflows:
97
- test:
98
- jobs:
99
- - test:
100
- filters:
101
- tags:
102
- only: /.*/
103
- - deploy:
104
- requires:
105
- - test
106
- filters:
107
- tags:
108
- only: /^v.*/
109
- branches:
110
- ignore: /.*/