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 +4 -4
- data/.github/workflows/ci.yml +24 -0
- data/.simplecov +1 -3
- data/Gemfile +1 -1
- data/lib/simple_scripting/configuration.rb +1 -1
- data/lib/simple_scripting/version.rb +1 -1
- data/simple_scripting.gemspec +2 -2
- data/spec/simple_scripting/configuration_spec.rb +1 -1
- metadata +5 -5
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '089c11f5b5e04174a3b9fdf92c0b902d90d98052767f199d1a527cc024d6317d'
|
4
|
+
data.tar.gz: fc39e4d74a0d30bdfc7af36599442b51fd14bd7aad4a342eb3154d3467ad5a76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Gemfile
CHANGED
@@ -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.
|
17
|
+
create_empty_file(config_file) if !File.exist?(config_file)
|
18
18
|
|
19
19
|
configuration = ParseConfig.new(config_file)
|
20
20
|
|
data/simple_scripting.gemspec
CHANGED
@@ -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.
|
11
|
+
s.required_ruby_version = '>= 2.7.0'
|
12
12
|
s.authors = ["Saverio Miroddi"]
|
13
|
-
s.date = "
|
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.
|
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.
|
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:
|
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.
|
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.
|
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.
|