simple_scripting 0.13.0 → 0.14.1
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 +3 -2
- data/spec/simple_scripting/configuration_spec.rb +1 -1
- metadata +22 -8
- 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: ccda16c3d0d547b879118105a4a8e6612dcdeab5a2b4304f5a173ae853640d19
|
4
|
+
data.tar.gz: f0a608185cf3896b7e7a70028396d35573532ac9b72af592b0f459482fcb7f0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8e954db6fcf8db093451e1b92873e4a5d16ed5c84fc802e2dc006b2d35d10c88a3b74744905210fe389036898bc8b171f2e323ea249db14c80da2612e51e97a
|
7
|
+
data.tar.gz: 7db2ee472ef700028e861774b8c85dffc050752adab3d63b71a0596cff43fbef00c53f25ab0b148e4be7c2a29fe6fa0cf867c8a4a90257a9d99942e2ee171a2d
|
@@ -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 = "2024-12-25"
|
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."
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.license = "GPL-3.0"
|
19
19
|
|
20
20
|
s.add_runtime_dependency "parseconfig", "~> 1.0"
|
21
|
+
s.add_runtime_dependency "ostruct", "~> 0.6.1"
|
21
22
|
|
22
23
|
s.add_development_dependency "rake", "~> 12.0"
|
23
24
|
s.add_development_dependency "rspec", "~> 3.7"
|
@@ -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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saverio Miroddi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parseconfig
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ostruct
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.6.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.1
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,10 +73,10 @@ executables: []
|
|
59
73
|
extensions: []
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
76
|
+
- ".github/workflows/ci.yml"
|
62
77
|
- ".gitignore"
|
63
78
|
- ".rspec"
|
64
79
|
- ".simplecov"
|
65
|
-
- ".travis.yml"
|
66
80
|
- Gemfile
|
67
81
|
- LICENSE
|
68
82
|
- README.md
|
@@ -84,7 +98,7 @@ homepage: https://github.com/saveriomiroddi/simple_scripting
|
|
84
98
|
licenses:
|
85
99
|
- GPL-3.0
|
86
100
|
metadata: {}
|
87
|
-
post_install_message:
|
101
|
+
post_install_message:
|
88
102
|
rdoc_options: []
|
89
103
|
require_paths:
|
90
104
|
- lib
|
@@ -92,15 +106,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
106
|
requirements:
|
93
107
|
- - ">="
|
94
108
|
- !ruby/object:Gem::Version
|
95
|
-
version: 2.
|
109
|
+
version: 2.7.0
|
96
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
111
|
requirements:
|
98
112
|
- - ">="
|
99
113
|
- !ruby/object:Gem::Version
|
100
114
|
version: '0'
|
101
115
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
103
|
-
signing_key:
|
116
|
+
rubygems_version: 3.5.22
|
117
|
+
signing_key:
|
104
118
|
specification_version: 4
|
105
119
|
summary: Library for simplifying some typical scripting functionalities.
|
106
120
|
test_files:
|