itamae-plugin-recipe-highlight 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +67 -0
- data/lib/itamae/plugin/recipe/highlight/default.rb +65 -65
- data/lib/itamae/plugin/recipe/highlight/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7ad841328c589489e59e38bf7a5d28d3a4a37ef8f33aa65d5a41a86c5c206e3
|
4
|
+
data.tar.gz: 0c20f762793780a389ddc82520043c014239dfc7e09fd96e085f3447317cff82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31cee281d05a84568f97e62b2bf804f14734b009b97a8de18816803658380dc037b0156ca5c9e8a1bab4b6ed5c6e74a815b2e76eaa05bad053afe89aee8f4895
|
7
|
+
data.tar.gz: 85ac8f6e3ed3eec4804becad1ae126d527c8268170201784b0be3abeec973e3ab3aa25184dcf36067731c8823a5a97f28706ff38139064410cd672624c74292a
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 0.5.0 - 2024-06-02
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
* Update Highlight version to v4.12.
|
10
|
+
|
11
|
+
## 0.4.0 - 2024-03-29
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
* Update Highlight version to v4.11.
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
* Fixed not to create a temporary directory on the host system.
|
20
|
+
|
5
21
|
## 0.3.0 - 2023-11-14
|
6
22
|
|
7
23
|
### Changed
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
itamae-plugin-recipe-highlight (0.4.0)
|
5
|
+
itamae (~> 1.14)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ansi (1.5.0)
|
11
|
+
ast (2.4.2)
|
12
|
+
hashie (5.0.0)
|
13
|
+
itamae (1.14.1)
|
14
|
+
ansi
|
15
|
+
hashie
|
16
|
+
schash (~> 0.1.0)
|
17
|
+
specinfra (>= 2.64.0, < 3.0.0)
|
18
|
+
thor (>= 1.0.0)
|
19
|
+
json (2.7.2)
|
20
|
+
language_server-protocol (3.17.0.3)
|
21
|
+
net-scp (4.0.0)
|
22
|
+
net-ssh (>= 2.6.5, < 8.0.0)
|
23
|
+
net-ssh (7.2.3)
|
24
|
+
net-telnet (0.2.0)
|
25
|
+
parallel (1.24.0)
|
26
|
+
parser (3.3.1.0)
|
27
|
+
ast (~> 2.4.1)
|
28
|
+
racc
|
29
|
+
racc (1.7.3)
|
30
|
+
rainbow (3.1.1)
|
31
|
+
regexp_parser (2.9.2)
|
32
|
+
rexml (3.2.8)
|
33
|
+
strscan (>= 3.0.9)
|
34
|
+
rubocop (1.63.5)
|
35
|
+
json (~> 2.3)
|
36
|
+
language_server-protocol (>= 3.17.0)
|
37
|
+
parallel (~> 1.10)
|
38
|
+
parser (>= 3.3.0.2)
|
39
|
+
rainbow (>= 2.2.2, < 4.0)
|
40
|
+
regexp_parser (>= 1.8, < 3.0)
|
41
|
+
rexml (>= 3.2.5, < 4.0)
|
42
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
43
|
+
ruby-progressbar (~> 1.7)
|
44
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
45
|
+
rubocop-ast (1.31.3)
|
46
|
+
parser (>= 3.3.1.0)
|
47
|
+
ruby-progressbar (1.13.0)
|
48
|
+
schash (0.1.2)
|
49
|
+
sfl (2.3)
|
50
|
+
specinfra (2.89.0)
|
51
|
+
net-scp
|
52
|
+
net-ssh (>= 2.7)
|
53
|
+
net-telnet
|
54
|
+
sfl
|
55
|
+
strscan (3.1.0)
|
56
|
+
thor (1.3.1)
|
57
|
+
unicode-display_width (2.5.0)
|
58
|
+
|
59
|
+
PLATFORMS
|
60
|
+
x86_64-linux
|
61
|
+
|
62
|
+
DEPENDENCIES
|
63
|
+
itamae-plugin-recipe-highlight!
|
64
|
+
rubocop (~> 1.21)
|
65
|
+
|
66
|
+
BUNDLED WITH
|
67
|
+
2.3.26
|
@@ -5,7 +5,7 @@ node.reverse_merge!(
|
|
5
5
|
{
|
6
6
|
highlight: {
|
7
7
|
tmp: '/tmp',
|
8
|
-
version: '4.
|
8
|
+
version: '4.12',
|
9
9
|
command: 'highlight',
|
10
10
|
verify: true,
|
11
11
|
dependencies: {
|
@@ -54,95 +54,95 @@ grep_version = [node[:highlight][:commands][:grep], "highlight version #{ node[:
|
|
54
54
|
print_version = [node[:highlight][:command], '--version'].shelljoin
|
55
55
|
updated = "#{ print_version } | #{ grep_version }"
|
56
56
|
|
57
|
-
|
58
|
-
source_dir = File.join(tmp_dir, "highlight-#{ node[:highlight][:version] }")
|
59
|
-
makefile_exists = [node[:highlight][:commands][:test], '-f', File.join(source_dir, 'makefile')].shelljoin
|
57
|
+
tmp_dir = run_command(["mktemp", "--directory", "--tmpdir=#{node[:highlight][:tmp]}"].shelljoin).stdout
|
60
58
|
|
61
|
-
|
62
|
-
|
63
|
-
download_root_url = 'http://www.andre-simon.de/zip/'
|
59
|
+
source_dir = File.join(tmp_dir, "highlight-#{ node[:highlight][:version] }")
|
60
|
+
makefile_exists = [node[:highlight][:commands][:test], '-f', File.join(source_dir, 'makefile')].shelljoin
|
64
61
|
|
65
|
-
|
62
|
+
archive_file_name = "highlight-#{ node[:highlight][:version] }.tar.bz2"
|
63
|
+
archive_file_path = File.join(tmp_dir, archive_file_name)
|
64
|
+
download_root_url = 'http://www.andre-simon.de/zip/'
|
66
65
|
|
67
|
-
|
66
|
+
directory tmp_dir
|
68
67
|
|
69
|
-
|
70
|
-
cwd tmp_dir
|
71
|
-
download = [node[:highlight][:commands][:wget], URI.join(download_root_url, archive_file_name).to_s].shelljoin
|
72
|
-
command download
|
68
|
+
package 'wget'
|
73
69
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
70
|
+
execute 'download archive file' do
|
71
|
+
cwd tmp_dir
|
72
|
+
download = [node[:highlight][:commands][:wget], URI.join(download_root_url, archive_file_name).to_s].shelljoin
|
73
|
+
command download
|
78
74
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
http_request signature_path do
|
84
|
-
url URI.join(download_root_url, signature_name).to_s
|
75
|
+
not_if command_exists
|
76
|
+
not_if updated
|
77
|
+
not_if makefile_exists
|
78
|
+
end
|
85
79
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
end
|
80
|
+
if node[:highlight][:verify]
|
81
|
+
signature_name = "highlight-#{ node[:highlight][:version] }.tar.bz2.asc"
|
82
|
+
signature_path = File.join(tmp_dir, signature_name)
|
90
83
|
|
91
|
-
|
92
|
-
|
84
|
+
http_request signature_path do
|
85
|
+
url URI.join(download_root_url, signature_name).to_s
|
93
86
|
|
94
|
-
|
95
|
-
|
87
|
+
not_if command_exists
|
88
|
+
not_if updated
|
89
|
+
not_if [node[:highlight][:commands][:test], '-f', signature_path].shelljoin
|
90
|
+
end
|
96
91
|
|
97
|
-
|
98
|
-
|
92
|
+
execute 'receive key' do
|
93
|
+
key_id = 'D805A7C7'
|
99
94
|
|
100
|
-
|
101
|
-
|
102
|
-
only_if "#{ export_public_key } | #{ check_not_yet_imported }"
|
103
|
-
end
|
95
|
+
fetch_key = [node[:highlight][:commands][:gpg], '--keyserver', 'pgp.mit.edu', '--recv-key', key_id].shelljoin
|
96
|
+
command fetch_key
|
104
97
|
|
105
|
-
|
106
|
-
|
107
|
-
command verify_archive
|
98
|
+
not_if command_exists
|
99
|
+
not_if updated
|
108
100
|
|
109
|
-
|
110
|
-
|
111
|
-
|
101
|
+
export_public_key = [node[:highlight][:commands][:gpg], '--export', '--armor', key_id].shelljoin
|
102
|
+
check_not_yet_imported = [node[:highlight][:commands][:grep], 'nothing exported'].shelljoin
|
103
|
+
only_if "#{ export_public_key } | #{ check_not_yet_imported }"
|
112
104
|
end
|
113
105
|
|
114
|
-
execute '
|
115
|
-
|
116
|
-
command
|
117
|
-
cwd tmp_dir
|
106
|
+
execute 'verify' do
|
107
|
+
verify_archive = [node[:highlight][:commands][:gpg], '--verify', signature_path, archive_file_path].shelljoin
|
108
|
+
command verify_archive
|
118
109
|
|
119
110
|
not_if command_exists
|
120
111
|
not_if updated
|
121
|
-
not_if makefile_exists
|
122
112
|
end
|
113
|
+
end
|
123
114
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
end
|
129
|
-
end
|
115
|
+
execute 'extract' do
|
116
|
+
extract_archive = [node[:highlight][:commands][:tar], 'axf', archive_file_path].shelljoin
|
117
|
+
command extract_archive
|
118
|
+
cwd tmp_dir
|
130
119
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
120
|
+
not_if command_exists
|
121
|
+
not_if updated
|
122
|
+
not_if makefile_exists
|
123
|
+
end
|
135
124
|
|
125
|
+
[node[:highlight][:dependencies][:lua], node[:highlight][:dependencies][:boost]].each do |pack|
|
126
|
+
package pack do
|
136
127
|
not_if command_exists
|
137
128
|
not_if updated
|
138
129
|
end
|
130
|
+
end
|
139
131
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
132
|
+
execute 'compile' do
|
133
|
+
compile_cli = [node[:highlight][:commands][:make], 'cli'].shelljoin
|
134
|
+
command compile_cli
|
135
|
+
cwd source_dir
|
144
136
|
|
145
|
-
|
146
|
-
|
147
|
-
|
137
|
+
not_if command_exists
|
138
|
+
not_if updated
|
139
|
+
end
|
140
|
+
|
141
|
+
execute 'install' do
|
142
|
+
install_files = [node[:highlight][:commands][:make], 'install'].shelljoin
|
143
|
+
command install_files
|
144
|
+
cwd source_dir
|
145
|
+
|
146
|
+
not_if command_exists
|
147
|
+
not_if updated
|
148
148
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-highlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gemmaro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -34,6 +34,7 @@ extra_rdoc_files: []
|
|
34
34
|
files:
|
35
35
|
- CHANGELOG.md
|
36
36
|
- Gemfile
|
37
|
+
- Gemfile.lock
|
37
38
|
- LICENSE.txt
|
38
39
|
- README.md
|
39
40
|
- Rakefile
|