Skip to content

Commit c4a0a7a

Browse files
authored
Merge pull request #1165 from puppetlabs/update_automation
Update automation
2 parents 930525a + b826a0d commit c4a0a7a

File tree

4 files changed

+75
-83
lines changed

4 files changed

+75
-83
lines changed

Diff for: Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ group(:generate_references) do
2121
gem 'rgen', '~> 0.8'
2222
gem 'pandoc-ruby'
2323
gem 'puppet-strings'
24-
gem 'puppet', '~> 6'
24+
gem 'puppet', '>= 7', '< 9'
2525
gem 'nokogiri', '>= 1.12.5'
2626
gem 'pragmatic_segmenter', '~> 0.3'
2727
gem 'punkt-segmenter', '~> 0.9'

Diff for: Gemfile.lock

+72-80
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,47 @@ PATH
66
GEM
77
remote: https://rubygems.org/
88
specs:
9-
CFPropertyList (2.3.6)
10-
activemodel (6.1.7)
11-
activesupport (= 6.1.7)
12-
activerecord (6.1.7)
13-
activemodel (= 6.1.7)
14-
activesupport (= 6.1.7)
15-
activesupport (6.1.7)
9+
activemodel (6.1.7.8)
10+
activesupport (= 6.1.7.8)
11+
activerecord (6.1.7.8)
12+
activemodel (= 6.1.7.8)
13+
activesupport (= 6.1.7.8)
14+
activesupport (6.1.7.8)
1615
concurrent-ruby (~> 1.0, >= 1.0.2)
1716
i18n (>= 1.6, < 2)
1817
minitest (>= 5.1)
1918
tzinfo (~> 2.0)
2019
zeitwerk (~> 2.3)
21-
addressable (2.8.1)
22-
public_suffix (>= 2.0.2, < 6.0)
20+
addressable (2.8.7)
21+
public_suffix (>= 2.0.2, < 7.0)
22+
bigdecimal (3.1.8)
2323
blockenspiel (0.5.0)
2424
colorator (1.1.0)
25-
concurrent-ruby (1.1.10)
25+
concurrent-ruby (1.3.3)
2626
deep_merge (1.2.2)
2727
em-websocket (0.5.3)
2828
eventmachine (>= 0.12.9)
2929
http_parser.rb (~> 0)
3030
eventmachine (1.2.7)
31-
facter (4.2.13)
31+
facter (4.7.1)
3232
hocon (~> 1.3)
33-
thor (>= 1.0.1, < 2.0)
34-
fast_gettext (1.8.0)
35-
ffi (1.15.5)
33+
thor (>= 1.0.1, < 1.3)
34+
fast_gettext (2.4.0)
35+
prime
36+
ffi (1.17.0-x86_64-linux-gnu)
37+
forwardable (1.3.3)
3638
forwardable-extended (2.6.0)
37-
git (1.12.0)
39+
git (1.19.1)
3840
addressable (~> 2.8)
3941
rchardet (~> 1.8)
40-
hiera (3.10.0)
41-
hocon (1.3.1)
42+
google-protobuf (4.27.2-x86_64-linux)
43+
bigdecimal
44+
rake (>= 13)
45+
hocon (1.4.0)
4246
http_parser.rb (0.8.0)
43-
httpclient (2.8.3)
44-
i18n (1.12.0)
47+
i18n (1.14.5)
4548
concurrent-ruby (~> 1.0)
46-
jekyll (4.3.1)
49+
jekyll (4.3.3)
4750
addressable (~> 2.4)
4851
colorator (~> 1.0)
4952
em-websocket (~> 0.5)
@@ -59,96 +62,87 @@ GEM
5962
safe_yaml (~> 1.0)
6063
terminal-table (>= 1.8, < 4.0)
6164
webrick (~> 1.7)
62-
jekyll-sass-converter (2.2.0)
63-
sassc (> 2.0.1, < 3.0)
65+
jekyll-sass-converter (3.0.0)
66+
sass-embedded (~> 1.54)
6467
jekyll-watch (2.2.1)
6568
listen (~> 3.0)
66-
json (2.6.2)
69+
json (2.7.2)
6770
kramdown (2.4.0)
6871
rexml
6972
kramdown-parser-gfm (1.1.0)
7073
kramdown (~> 2.0)
71-
liquid (4.0.3)
74+
liquid (4.0.4)
7275
listen (3.5.1)
7376
rb-fsevent (~> 0.10, >= 0.10.3)
7477
rb-inotify (~> 0.9, >= 0.9.10)
75-
locale (2.1.3)
78+
locale (2.1.4)
7679
maruku (0.7.3)
7780
mercenary (0.4.0)
78-
mini_portile2 (2.8.0)
79-
minitest (5.16.3)
81+
minitest (5.24.1)
8082
multi_json (1.15.0)
81-
nokogiri (1.13.9)
82-
mini_portile2 (~> 2.8.0)
83-
racc (~> 1.4)
84-
nokogiri (1.13.9-x86_64-darwin)
83+
nokogiri (1.16.6-x86_64-linux)
8584
racc (~> 1.4)
8685
open4 (1.3.4)
87-
pandoc-ruby (2.1.7)
86+
pandoc-ruby (2.1.10)
8887
pathutil (0.16.2)
8988
forwardable-extended (~> 2.6)
9089
pragmatic_segmenter (0.3.23)
9190
unicode
92-
psych (4.0.6)
91+
prime (0.1.2)
92+
forwardable
93+
singleton
94+
psych (5.1.2)
9395
stringio
94-
public_suffix (5.0.0)
96+
public_suffix (6.0.0)
9597
punkt-segmenter (0.9.1)
9698
unicode_utils (>= 1.0.0)
97-
puppet (6.28.0)
98-
concurrent-ruby (~> 1.0)
99-
deep_merge (~> 1.0)
100-
facter (> 2.0.1, < 5)
101-
fast_gettext (~> 1.1)
102-
hiera (>= 3.2.1, < 4)
103-
httpclient (~> 2.8)
104-
locale (~> 2.1)
105-
multi_json (~> 1.10)
106-
puppet-resource_api (~> 1.5)
107-
semantic_puppet (~> 1.0)
108-
puppet (6.28.0-universal-darwin)
109-
CFPropertyList (~> 2.2)
99+
puppet (8.7.0)
110100
concurrent-ruby (~> 1.0)
111101
deep_merge (~> 1.0)
112-
facter (> 2.0.1, < 5)
113-
fast_gettext (~> 1.1)
114-
hiera (>= 3.2.1, < 4)
115-
httpclient (~> 2.8)
102+
facter (>= 4.3.0, < 5)
103+
fast_gettext (>= 2.1, < 3)
116104
locale (~> 2.1)
117-
multi_json (~> 1.10)
105+
multi_json (~> 1.13)
118106
puppet-resource_api (~> 1.5)
107+
scanf (~> 1.0)
119108
semantic_puppet (~> 1.0)
120-
puppet-resource_api (1.8.14)
109+
puppet-resource_api (1.9.0)
121110
hocon (>= 1.0)
122-
puppet-strings (2.9.0)
123-
rgen
124-
yard (~> 0.9.5)
125-
racc (1.6.0)
126-
rack (2.2.4)
127-
rake (13.0.6)
111+
puppet-strings (4.1.2)
112+
rgen (~> 0.9)
113+
yard (~> 0.9)
114+
racc (1.8.0)
115+
rack (2.2.9)
116+
rake (13.2.1)
128117
rake-remote_task (2.4.4)
129118
open4 (~> 1.0)
130119
rake (>= 0.8, < 15.0)
131120
rb-fsevent (0.11.2)
132-
rb-inotify (0.10.1)
121+
rb-inotify (0.11.1)
133122
ffi (~> 1.0)
134123
rchardet (1.8.0)
135-
rdoc (6.4.0)
124+
rdoc (6.7.0)
136125
psych (>= 4.0.0)
137-
rexml (3.2.5)
138-
rgen (0.9.0)
139-
rouge (3.30.0)
126+
rexml (3.3.2)
127+
strscan
128+
rgen (0.9.1)
129+
rouge (4.3.0)
140130
safe_yaml (1.0.5)
141-
sassc (2.4.0)
142-
ffi (~> 1.9)
143-
semantic_puppet (1.0.4)
144-
stringio (3.0.2)
131+
sass-embedded (1.77.8)
132+
google-protobuf (~> 4.26)
133+
rake (>= 13)
134+
scanf (1.0.0)
135+
semantic_puppet (1.1.0)
136+
singleton (0.2.0)
137+
stringio (3.1.1)
138+
strscan (3.1.0)
145139
terminal-table (3.0.2)
146140
unicode-display_width (>= 1.1.1, < 3)
147-
thor (1.2.1)
148-
tzinfo (2.0.5)
141+
thor (1.2.2)
142+
tzinfo (2.0.6)
149143
concurrent-ruby (~> 1.0)
150-
unicode (0.4.4.4)
151-
unicode-display_width (2.3.0)
144+
unicode (0.4.4.5)
145+
unicode-display_width (2.5.0)
152146
unicode_utils (1.4.0)
153147
versionomy (0.5.0)
154148
blockenspiel (~> 0.5)
@@ -157,14 +151,12 @@ GEM
157151
rake-remote_task (~> 2.3)
158152
vlad-git (2.2.0)
159153
vlad (>= 2.1.0)
160-
webrick (1.7.0)
161-
yard (0.9.28)
162-
webrick (~> 1.7.0)
163-
zeitwerk (2.6.6)
154+
webrick (1.8.1)
155+
yard (0.9.36)
156+
zeitwerk (2.6.16)
164157

165158
PLATFORMS
166-
ruby
167-
x86_64-darwin-18
159+
x86_64-linux
168160

169161
DEPENDENCIES
170162
activerecord (~> 6)
@@ -178,7 +170,7 @@ DEPENDENCIES
178170
pandoc-ruby
179171
pragmatic_segmenter (~> 0.3)
180172
punkt-segmenter (~> 0.9)
181-
puppet (~> 6)
173+
puppet (>= 7, < 9)
182174
puppet-strings
183175
puppet_docs!
184176
rack (~> 2.2, >= 2.2.3)
@@ -191,4 +183,4 @@ DEPENDENCIES
191183
yard (~> 0.9)
192184

193185
BUNDLED WITH
194-
2.2.14
186+
2.5.10

Diff for: lib/puppet_references/puppet/functions_template.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Signature <%= index+1 %>
1313

1414
<% end -%>
1515
`<%= signature['signature'] %>`
16-
<% has_parameters = signature['docstring']['tags'].detect {|tag| tag['tag_name'] == 'param' && tag['text'] != '' && tag['text'] != nil }
16+
<% has_parameters = signature.dig('docstring', 'tags')&.detect {|tag| tag['tag_name'] == 'param' && tag['text'] != '' && tag['text'] != nil } || false
1717
if has_parameters -%>
1818

1919
### Parameters

Diff for: lib/puppet_references/puppet/strings.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def initialize(force_cached = false)
2323
def generate_strings_data
2424
puts 'Generating Puppet Strings JSON data...'
2525
rubyfiles = Dir.glob("#{PuppetReferences::PUPPET_DIR}/lib/puppet/**/*.rb")
26-
system("bundle exec puppet strings generate --emit-json #{STRINGS_JSON_FILE} #{rubyfiles.join(' ')}")
26+
system("bundle exec puppet strings generate --format json --out #{STRINGS_JSON_FILE} #{rubyfiles.join(' ')}")
2727
puts "Strings data: Done! (#{STRINGS_JSON_FILE})"
2828
@@strings_data_cached = true
2929
end

0 commit comments

Comments
 (0)