command_mapper 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog.md +15 -0
- data/README.md +19 -5
- data/{commnad_mapper.gemspec → command_mapper.gemspec} +0 -0
- data/examples/grep.rb +62 -0
- data/gemspec.yml +2 -2
- data/lib/command_mapper/arg.rb +4 -0
- data/lib/command_mapper/argument.rb +6 -0
- data/lib/command_mapper/command.rb +59 -29
- data/lib/command_mapper/option.rb +8 -0
- data/lib/command_mapper/option_value.rb +22 -0
- data/lib/command_mapper/types/dec.rb +84 -0
- data/lib/command_mapper/types/enum.rb +8 -0
- data/lib/command_mapper/types/hex.rb +6 -0
- data/lib/command_mapper/types/input_dir.rb +2 -0
- data/lib/command_mapper/types/input_file.rb +2 -0
- data/lib/command_mapper/types/input_path.rb +2 -0
- data/lib/command_mapper/types/key_value.rb +10 -0
- data/lib/command_mapper/types/key_value_list.rb +2 -0
- data/lib/command_mapper/types/list.rb +10 -0
- data/lib/command_mapper/types/map.rb +10 -1
- data/lib/command_mapper/types/num.rb +7 -1
- data/lib/command_mapper/types/str.rb +10 -1
- data/lib/command_mapper/types/type.rb +5 -1
- data/lib/command_mapper/types.rb +1 -0
- data/lib/command_mapper/version.rb +1 -1
- data/spec/commnad_spec.rb +25 -5
- data/spec/option_value_spec.rb +28 -0
- data/spec/types/dec_spec.rb +180 -0
- data/spec/types/input_dir_spec.rb +13 -9
- data/spec/types/map_spec.rb +2 -2
- data/spec/types/num_spec.rb +6 -6
- metadata +9 -6
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command_mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,8 +24,8 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
|
-
description: Command Mapper maps
|
28
|
-
safely and securely executing commands.
|
27
|
+
description: Command Mapper maps an external command's arguments to Class attributes
|
28
|
+
to allow safely and securely executing commands.
|
29
29
|
email: postmodern.mod3@gmail.com
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
@@ -44,7 +44,8 @@ files:
|
|
44
44
|
- LICENSE.txt
|
45
45
|
- README.md
|
46
46
|
- Rakefile
|
47
|
-
-
|
47
|
+
- command_mapper.gemspec
|
48
|
+
- examples/grep.rb
|
48
49
|
- gemspec.yml
|
49
50
|
- lib/command_mapper.rb
|
50
51
|
- lib/command_mapper/arg.rb
|
@@ -55,6 +56,7 @@ files:
|
|
55
56
|
- lib/command_mapper/option_value.rb
|
56
57
|
- lib/command_mapper/sudo.rb
|
57
58
|
- lib/command_mapper/types.rb
|
59
|
+
- lib/command_mapper/types/dec.rb
|
58
60
|
- lib/command_mapper/types/enum.rb
|
59
61
|
- lib/command_mapper/types/hex.rb
|
60
62
|
- lib/command_mapper/types/input_dir.rb
|
@@ -76,6 +78,7 @@ files:
|
|
76
78
|
- spec/option_value_spec.rb
|
77
79
|
- spec/spec_helper.rb
|
78
80
|
- spec/sudo_spec.rb
|
81
|
+
- spec/types/dec_spec.rb
|
79
82
|
- spec/types/enum_spec.rb
|
80
83
|
- spec/types/hex_spec.rb
|
81
84
|
- spec/types/input_dir_spec.rb
|
@@ -113,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
116
|
- !ruby/object:Gem::Version
|
114
117
|
version: '0'
|
115
118
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.3.7
|
117
120
|
signing_key:
|
118
121
|
specification_version: 4
|
119
122
|
summary: Safe and secure execution of commands.
|