avm-tools 0.114.0 → 0.115.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/launcher/git/publish_base.rb +2 -0
- data/lib/avm/tools/version.rb +1 -1
- data/sub/avm/lib/avm/instances/base/auto_values/database.rb +2 -2
- data/sub/avm/lib/avm/instances/entry_keys.rb +2 -1
- data/{lib → sub/avm/lib}/avm/launcher/errors/base.rb +0 -0
- data/{lib → sub/avm/lib}/avm/launcher/errors/non_project.rb +0 -0
- data/{lib → sub/avm/lib}/avm/launcher/paths/real.rb +0 -0
- data/{lib → sub/avm/lib}/avm/launcher/publish/check_result.rb +0 -0
- data/sub/avm/lib/avm/self/instance.rb +0 -1
- data/sub/avm/lib/avm/sources/base/instance.rb +28 -0
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/assert.rb +77 -0
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb +23 -12
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +1 -1
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/deploy.rb +1 -1
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +1 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/data_unit.rb +6 -10
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb +20 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/rest_api.rb +11 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/install.sh.template +3 -3
- data/sub/avm-files/lib/avm/files/formatter/formats/generic_plain.rb +2 -2
- data/sub/avm-files/lib/avm/files/version.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/runner/context.rb +4 -0
- data/sub/eac_cli/lib/eac_cli/runner/instance_methods.rb +10 -0
- data/sub/eac_cli/lib/eac_cli/speaker.rb +1 -2
- data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
- data/sub/eac_fs/lib/eac_fs/cached_download.rb +2 -2
- data/sub/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +6 -1
- data/sub/eac_fs/lib/eac_fs/version.rb +1 -1
- data/sub/eac_rest/Gemfile +5 -0
- data/sub/eac_rest/eac_rest.gemspec +18 -0
- data/sub/eac_rest/lib/eac_rest/api.rb +39 -0
- data/sub/eac_rest/lib/eac_rest/entity.rb +16 -0
- data/sub/eac_rest/lib/eac_rest/request.rb +74 -0
- data/sub/eac_rest/lib/eac_rest/response.rb +72 -0
- data/sub/eac_rest/lib/eac_rest/version.rb +5 -0
- data/sub/eac_rest/lib/eac_rest.rb +7 -0
- data/sub/eac_rest/spec/rubocop_spec.rb +3 -0
- data/sub/eac_rest/spec/spec_helper.rb +4 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit.rb +46 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit_array.rb +81 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte.rb +105 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte_array.rb +36 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +21 -3
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb +12 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb +11 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb +15 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_noext.rb +10 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb +13 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/bit_array_spec.rb +22 -0
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/byte_spec.rb +54 -0
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_noext_spec.rb +26 -0
- metadata +35 -12
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/patches/pathname/basename_noext'
|
4
|
+
|
5
|
+
RSpec.describe ::Pathname do
|
6
|
+
describe '#basename_noext' do
|
7
|
+
{
|
8
|
+
'After.Life.S01E01.WEBRip.x264-ION10.mp4' =>
|
9
|
+
%w[After.Life.S01E01.WEBRip.x264-ION10 After.Life.S01E01.WEBRip.x264-ION10.mp4
|
10
|
+
After.Life.S01E01.WEBRip.x264-ION10 After.Life.S01E01.WEBRip.x264-ION10],
|
11
|
+
's01e01.en.srt' => %w[s01e01 s01e01.en.srt s01e01.en s01e01 s01e01],
|
12
|
+
's01e01.srt' => %w[s01e01 s01e01.srt s01e01 s01e01 s01e01],
|
13
|
+
'/path/to/file.tar.gz' => %w[file file.tar.gz file.tar file file]
|
14
|
+
}.each do |source, expected_values|
|
15
|
+
expected_values.each_with_index do |expected_value, index|
|
16
|
+
limit = index - 1
|
17
|
+
context "when source is \"#{source}\" and limit is \"#{limit}\"" do
|
18
|
+
let(:instance) { described_class.new(source) }
|
19
|
+
let(:expected_path) { described_class.new(expected_value) }
|
20
|
+
|
21
|
+
it { expect(instance.basename_noext(limit)).to eq(expected_path) }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.115.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.17'
|
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: '0.
|
40
|
+
version: '0.17'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: avm-eac_asciidoctor_base0
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.2'
|
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: '0.
|
68
|
+
version: '0.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: avm-eac_redmine_base0
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.4'
|
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.
|
82
|
+
version: '0.4'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: avm-eac_ruby_base1
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -292,8 +292,6 @@ files:
|
|
292
292
|
- lib/avm/launcher/context/instance_manager/cached_instance.rb
|
293
293
|
- lib/avm/launcher/context/instance_manager/cached_instances.rb
|
294
294
|
- lib/avm/launcher/context/settings.rb
|
295
|
-
- lib/avm/launcher/errors/base.rb
|
296
|
-
- lib/avm/launcher/errors/non_project.rb
|
297
295
|
- lib/avm/launcher/git.rb
|
298
296
|
- lib/avm/launcher/git/base.rb
|
299
297
|
- lib/avm/launcher/git/base/class_methods.rb
|
@@ -315,11 +313,9 @@ files:
|
|
315
313
|
- lib/avm/launcher/instances/settings.rb
|
316
314
|
- lib/avm/launcher/paths.rb
|
317
315
|
- lib/avm/launcher/paths/logical.rb
|
318
|
-
- lib/avm/launcher/paths/real.rb
|
319
316
|
- lib/avm/launcher/project.rb
|
320
317
|
- lib/avm/launcher/publish.rb
|
321
318
|
- lib/avm/launcher/publish/base.rb
|
322
|
-
- lib/avm/launcher/publish/check_result.rb
|
323
319
|
- lib/avm/launcher/ruby.rb
|
324
320
|
- lib/avm/launcher/ruby/gem.rb
|
325
321
|
- lib/avm/launcher/ruby/gem/build.rb
|
@@ -464,6 +460,7 @@ files:
|
|
464
460
|
- sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec
|
465
461
|
- sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0.rb
|
466
462
|
- sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb
|
463
|
+
- sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/assert.rb
|
467
464
|
- sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/data_unit.rb
|
468
465
|
- sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance_with.rb
|
469
466
|
- sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb
|
@@ -514,6 +511,7 @@ files:
|
|
514
511
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/deploy.rb
|
515
512
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
|
516
513
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb
|
514
|
+
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/rest_api.rb
|
517
515
|
- sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb
|
518
516
|
- sub/avm-eac_redmine_base0/spec/rubocop_spec.rb
|
519
517
|
- sub/avm-eac_redmine_base0/spec/spec_helper.rb
|
@@ -721,6 +719,10 @@ files:
|
|
721
719
|
- sub/avm/lib/avm/jobs.rb
|
722
720
|
- sub/avm/lib/avm/jobs/base.rb
|
723
721
|
- sub/avm/lib/avm/jobs/variables_source.rb
|
722
|
+
- sub/avm/lib/avm/launcher/errors/base.rb
|
723
|
+
- sub/avm/lib/avm/launcher/errors/non_project.rb
|
724
|
+
- sub/avm/lib/avm/launcher/paths/real.rb
|
725
|
+
- sub/avm/lib/avm/launcher/publish/check_result.rb
|
724
726
|
- sub/avm/lib/avm/path_string.rb
|
725
727
|
- sub/avm/lib/avm/registry.rb
|
726
728
|
- sub/avm/lib/avm/registry/base.rb
|
@@ -739,6 +741,7 @@ files:
|
|
739
741
|
- sub/avm/lib/avm/sources.rb
|
740
742
|
- sub/avm/lib/avm/sources/base.rb
|
741
743
|
- sub/avm/lib/avm/sources/base/configuration.rb
|
744
|
+
- sub/avm/lib/avm/sources/base/instance.rb
|
742
745
|
- sub/avm/lib/avm/sources/base/testing.rb
|
743
746
|
- sub/avm/lib/avm/sources/configuration.rb
|
744
747
|
- sub/avm/lib/avm/sources/configuration/_locale.rb
|
@@ -1124,6 +1127,16 @@ files:
|
|
1124
1127
|
- sub/eac_git/vendor/git-subrepo/test/setup
|
1125
1128
|
- sub/eac_git/vendor/git-subrepo/test/status.t
|
1126
1129
|
- sub/eac_git/vendor/git-subrepo/test/submodule.t
|
1130
|
+
- sub/eac_rest/Gemfile
|
1131
|
+
- sub/eac_rest/eac_rest.gemspec
|
1132
|
+
- sub/eac_rest/lib/eac_rest.rb
|
1133
|
+
- sub/eac_rest/lib/eac_rest/api.rb
|
1134
|
+
- sub/eac_rest/lib/eac_rest/entity.rb
|
1135
|
+
- sub/eac_rest/lib/eac_rest/request.rb
|
1136
|
+
- sub/eac_rest/lib/eac_rest/response.rb
|
1137
|
+
- sub/eac_rest/lib/eac_rest/version.rb
|
1138
|
+
- sub/eac_rest/spec/rubocop_spec.rb
|
1139
|
+
- sub/eac_rest/spec/spec_helper.rb
|
1127
1140
|
- sub/eac_ruby_base0/Gemfile
|
1128
1141
|
- sub/eac_ruby_base0/eac_ruby_base0.gemspec
|
1129
1142
|
- sub/eac_ruby_base0/lib/eac_ruby_base0.rb
|
@@ -1184,9 +1197,13 @@ files:
|
|
1184
1197
|
- sub/eac_ruby_utils/lib/eac_ruby_utils.rb
|
1185
1198
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb
|
1186
1199
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
|
1200
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/bit.rb
|
1201
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/bit_array.rb
|
1187
1202
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
|
1188
1203
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
|
1189
1204
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb
|
1205
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/byte.rb
|
1206
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/byte_array.rb
|
1190
1207
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb
|
1191
1208
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb
|
1192
1209
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb
|
@@ -1285,12 +1302,15 @@ files:
|
|
1285
1302
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
|
1286
1303
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
|
1287
1304
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
|
1305
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb
|
1288
1306
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
|
1307
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_noext.rb
|
1289
1308
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
|
1290
1309
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/if_exist.rb
|
1291
1310
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb
|
1292
1311
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb
|
1293
1312
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/readlink_r.rb
|
1313
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
|
1294
1314
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb
|
1295
1315
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb
|
1296
1316
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/to_parser.rb
|
@@ -1323,7 +1343,9 @@ files:
|
|
1323
1343
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
|
1324
1344
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb
|
1325
1345
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
|
1346
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/bit_array_spec.rb
|
1326
1347
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb
|
1348
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/byte_spec.rb
|
1327
1349
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb
|
1328
1350
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb
|
1329
1351
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb
|
@@ -1354,6 +1376,7 @@ files:
|
|
1354
1376
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb
|
1355
1377
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb
|
1356
1378
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template
|
1379
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_noext_spec.rb
|
1357
1380
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
|
1358
1381
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb
|
1359
1382
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb
|