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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a31e06185c711924565be44455735e02e55b31a98fc6782a101214cf9d37266
4
- data.tar.gz: 2fa2139a689a85e1703604a3da2be186ac8596b9b17c0bc2af4c8c8244c8ad4d
3
+ metadata.gz: ccda16c3d0d547b879118105a4a8e6612dcdeab5a2b4304f5a173ae853640d19
4
+ data.tar.gz: f0a608185cf3896b7e7a70028396d35573532ac9b72af592b0f459482fcb7f0b
5
5
  SHA512:
6
- metadata.gz: bbf4a7477108d85b62922592eedbc550f0896ca75265385c219c052636d0c45628cd93ca59603649f9ee9227cf00fdf2526732918efb0ab7d55fe62d4b158196
7
- data.tar.gz: b754caa9b812a0d7a5882d5bc2c67b0e72a276da9385a2be70d423838f00da711a182fb1f9b67c4072176c73a9d4020acb3b2070fba54f83615edd830cc5aa5c
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
@@ -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.1"
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 = "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.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.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: 2022-07-21 00:00:00.000000000 Z
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.3.0
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.1.6
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:
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