dockerfile-analyzer 0.3.1__tar.gz → 0.3.2__tar.gz
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.
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/Cargo.lock +1 -1
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/Cargo.toml +1 -1
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/PKG-INFO +1 -1
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/src/parse_utils.rs +4 -4
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/.github/dependabot.yml +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/.github/workflows/CI.yml +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/.gitignore +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/LICENSE +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/README.md +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/dockerfile_analyzer.pyi +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/example.py +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/py.typed +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/pyproject.toml +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/src/analyzer.rs +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/src/constants.rs +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/src/lib.rs +0 -0
- {dockerfile_analyzer-0.3.1 → dockerfile_analyzer-0.3.2}/src/models.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dockerfile-analyzer
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -49,9 +49,9 @@ fn extract_tokens_from_instr(ins: &str) -> Vec<String> {
|
|
|
49
49
|
processed
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
fn vec_to_map(
|
|
52
|
+
fn vec_to_map(toks: &[String]) -> HashMap<String, String> {
|
|
53
53
|
let mut res = HashMap::new();
|
|
54
|
-
for chunk in
|
|
54
|
+
for chunk in toks.chunks(2) {
|
|
55
55
|
match chunk {
|
|
56
56
|
[k, v] => {
|
|
57
57
|
res.insert(k.to_string(), v.to_string());
|
|
@@ -66,9 +66,9 @@ fn vec_to_map(v: &[String]) -> HashMap<String, String> {
|
|
|
66
66
|
res
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
fn vec_to_map_opt_val(
|
|
69
|
+
fn vec_to_map_opt_val(toks: &[String]) -> HashMap<String, Option<String>> {
|
|
70
70
|
let mut res: HashMap<String, Option<String>> = HashMap::new();
|
|
71
|
-
for chunk in
|
|
71
|
+
for chunk in toks.chunks(2) {
|
|
72
72
|
match chunk {
|
|
73
73
|
[k, v] => {
|
|
74
74
|
res.insert(k.to_string(), Some(v.to_string()));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|