simple_scripting 0.13.0 → 0.14.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: 0a31e06185c711924565be44455735e02e55b31a98fc6782a101214cf9d37266
4
- data.tar.gz: 2fa2139a689a85e1703604a3da2be186ac8596b9b17c0bc2af4c8c8244c8ad4d
3
+ metadata.gz: '089c11f5b5e04174a3b9fdf92c0b902d90d98052767f199d1a527cc024d6317d'
4
+ data.tar.gz: fc39e4d74a0d30bdfc7af36599442b51fd14bd7aad4a342eb3154d3467ad5a76
5
5
  SHA512:
6
- metadata.gz: bbf4a7477108d85b62922592eedbc550f0896ca75265385c219c052636d0c45628cd93ca59603649f9ee9227cf00fdf2526732918efb0ab7d55fe62d4b158196
7
- data.tar.gz: b754caa9b812a0d7a5882d5bc2c67b0e72a276da9385a2be70d423838f00da711a182fb1f9b67c4072176c73a9d4020acb3b2070fba54f83615edd830cc5aa5c
6
+ metadata.gz: af7f13967863d6f1fc65a37e5d3c91c8c3edb115102dccd708932be124f6ae07e1aeb1b0323d14434ff1178d53d2ccf1390d554aee69fec34ccfc5f7db539c0d
7
+ data.tar.gz: d9c2c31845944fa3c7df01eedb76a0cdaf4224a14b59135c66cccd6cd6c32cf64813e8962606248c01f3b19f0eccf85703f7cab830f3782df857bb45c585eb54
@@ -0,0 +1,24 @@
1
+ name: CI
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby-version: [head, 3.2, 3.1, 3.0, 2.7]
11
+ fail-fast: false
12
+ continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
16
+ - name: Set up Ruby ${{ matrix.ruby-version }}
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ bundler-cache: true
21
+ - name: Install dependencies
22
+ run: bundle install
23
+ - name: Run tests
24
+ run: bundle exec rspec
data/.simplecov CHANGED
@@ -3,6 +3,4 @@ require 'coveralls'
3
3
 
4
4
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
5
5
 
6
- SimpleCov.start do
7
- add_filter '/spec/'
8
- end
6
+ SimpleCov.add_filter '/spec/'
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'coveralls', '~> 0.8.21', require: false
6
+ gem 'coveralls', '~> 0.8.23', require: false
7
7
  end
8
8
 
9
9
  group :tools do
@@ -14,7 +14,7 @@ module SimpleScripting
14
14
  # are not considered keys.
15
15
  #
16
16
  def load(config_file: default_config_file, passwords_key: nil, required: [])
17
- create_empty_file(config_file) if !File.exists?(config_file)
17
+ create_empty_file(config_file) if !File.exist?(config_file)
18
18
 
19
19
  configuration = ParseConfig.new(config_file)
20
20
 
@@ -1,5 +1,5 @@
1
1
  module SimpleScripting
2
2
 
3
- VERSION = "0.13.0"
3
+ VERSION = "0.14.0"
4
4
 
5
5
  end
@@ -8,9 +8,9 @@ Gem::Specification.new do |s|
8
8
  s.name = "simple_scripting"
9
9
  s.version = SimpleScripting::VERSION
10
10
  s.platform = Gem::Platform::RUBY
11
- s.required_ruby_version = '>= 2.3.0'
11
+ s.required_ruby_version = '>= 2.7.0'
12
12
  s.authors = ["Saverio Miroddi"]
13
- s.date = "2022-07-21"
13
+ s.date = "2023-04-20"
14
14
  s.email = ["saverio.pub2@gmail.com"]
15
15
  s.homepage = "https://github.com/saveriomiroddi/simple_scripting"
16
16
  s.summary = "Library for simplifying some typical scripting functionalities."
@@ -62,7 +62,7 @@ g2_key=bang
62
62
  it "should create the configuration file if it doesn't exist" do
63
63
  temp_config_file = File.join(Dir.tmpdir, '.test_simple_scripting_config')
64
64
 
65
- File.delete(temp_config_file) if File.exists?(temp_config_file)
65
+ File.delete(temp_config_file) if File.exist?(temp_config_file)
66
66
 
67
67
  begin
68
68
  described_class.load(config_file: temp_config_file)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_scripting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saverio Miroddi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2023-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parseconfig
@@ -59,10 +59,10 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".github/workflows/ci.yml"
62
63
  - ".gitignore"
63
64
  - ".rspec"
64
65
  - ".simplecov"
65
- - ".travis.yml"
66
66
  - Gemfile
67
67
  - LICENSE
68
68
  - README.md
@@ -92,14 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: 2.3.0
95
+ version: 2.7.0
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.1.6
102
+ rubygems_version: 3.4.12
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Library for simplifying some typical scripting functionalities.
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.3
5
- - 2.4
6
- - 2.5
7
- - 2.6