middlemac 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cc65eec33bce51ed9f9895d28f87491bf7f3ec0165928e4ac61e82f7fb0994f
4
- data.tar.gz: a092b0da52ba6da22fb0487984488a6fb4b16648a3db8ae61913d0d98e959a8b
3
+ metadata.gz: d36a639d23b4ec321d7047879332e744986115c5d2eb0addf9959357d915ff2b
4
+ data.tar.gz: bbc5aa12ebf741fc881922d884850a1b31524ecbd9c0c3df1ce32afd1ff2a3cd
5
5
  SHA512:
6
- metadata.gz: 4640aba23a4ae0e588ea1f75805e211fd6c9060767baea5864158951ddc900b1b21377b5369397a55e7e379c0803afe1ae7d96792b0cf2061c466b0aa44c6b62
7
- data.tar.gz: eb53d93c3ea28dc7894efae7191bc0d104b2ca8cb7a06251338fd25869efe799c9c6d5c5eb1a09e51cc572d8dd87fb1792cbf1addc5123b57f08862b34ce856a
6
+ metadata.gz: 201dc66cda139522d89824b801493388c310f80e9dbd7703b58f2af4dab92f1c02ea3eadba0d211b6c863865bf6717f20a1b6fbdddee402bc54777a135e5fd7a
7
+ data.tar.gz: 47425d49c57f6c7d975228542b126d338f579107d53737876ebdfababfcb1ff0961162d6299cf8b10580461b4781ab089eedef49bc6da97b20d6416a7c208a0e
@@ -10,6 +10,8 @@
10
10
  <string>index_hpd.html</string>
11
11
  <key>HPDBookIndexPath</key>
12
12
  <string><%= cfBundleName %>.helpindex</string>
13
+ <key>HPDBookCSIndexPath</key>
14
+ <string><%= cfBundleName %>.cshelpindex</string>
13
15
  <key>HPDBookTitle</key>
14
16
  <string><%= cfBundleName %> Help</string>
15
17
  <key>CFBundleDevelopmentRegion</key>
@@ -25,7 +27,7 @@
25
27
  <key>HPDBookKBURL</key>
26
28
  <string><%= config[:targets][config[:target]][:HPDBookKBURL] || product_uri %></string>
27
29
  <key>HPDBookRemoteURL</key>
28
- <string><%= config[:targets][config[:target]][:HPDBookRemoteURL] %></string>
30
+ <string><%= config[:targets][config[:target]][:HPDBookRemoteURL] || 'dummy_enables_share' %></string>
29
31
  <key>HPDBookTopicListCSSPath</key>
30
32
  <string><%= config[:targets][config[:target]][:HPDBookTopicListCSSPath] %></string>
31
33
  <key>HPDBookTopicListTemplatePath</key>
@@ -162,6 +162,7 @@ used and relevant today:
162
162
  | HPDBookAccessPath | index.html | The file that should be loaded when Apple Help Viewer starts.
163
163
  | HPDBookIconPath | SharedGlobalArt/free-icon_32x32@2x.png | Icon used to represent the Help Book, especially during system-wide searches.
164
164
  | HPDBookIndexPath | Middlemac.helpindex | The name of your index file, relative to your `.lproj` directory.
165
+ | HPDBookCSIndexPath | Middlemac.cshelpindex | The newer, corespotlight version of the HPDBookIndexPath, required for macOS 10.15+.
165
166
  | HPDBookTitle | Middlemac Help | The title of the Help Book, and it can be localized.
166
167
  | HPDBookType | **3** | Required as is.
167
168
 
@@ -17,7 +17,7 @@ source 'https://rubygems.org'
17
17
  #######################################
18
18
  # Middlemac, natch.
19
19
  #######################################
20
- gem 'middlemac', '~> 3.1.1'
20
+ gem 'middlemac', '~> 3.1.2'
21
21
  gem 'middleman-targets', '~> 1.0.12'
22
22
 
23
23
 
@@ -10,6 +10,8 @@
10
10
  <string>index_hpd.html</string>
11
11
  <key>HPDBookIndexPath</key>
12
12
  <string><%= cfBundleName %>.helpindex</string>
13
+ <key>HPDBookCSIndexPath</key>
14
+ <string><%= cfBundleName %>.cshelpindex</string>
13
15
  <key>HPDBookTitle</key>
14
16
  <string><%= cfBundleName %> Help</string>
15
17
  <key>CFBundleDevelopmentRegion</key>
@@ -25,7 +27,7 @@
25
27
  <key>HPDBookKBURL</key>
26
28
  <string><%= config[:targets][config[:target]][:HPDBookKBURL] || product_uri %></string>
27
29
  <key>HPDBookRemoteURL</key>
28
- <string><%= config[:targets][config[:target]][:HPDBookRemoteURL] %></string>
30
+ <string><%= config[:targets][config[:target]][:HPDBookRemoteURL] || 'dummy_enables_share' %></string>
29
31
  <key>HPDBookTopicListCSSPath</key>
30
32
  <string><%= config[:targets][config[:target]][:HPDBookTopicListCSSPath] %></string>
31
33
  <key>HPDBookTopicListTemplatePath</key>
@@ -17,7 +17,7 @@ source 'https://rubygems.org'
17
17
  #######################################
18
18
  # Middlemac, natch.
19
19
  #######################################
20
- gem 'middlemac', '~> 3.1.1'
20
+ gem 'middlemac', '~> 3.1.2'
21
21
  gem 'middleman-targets', '~> 1.0.12'
22
22
 
23
23
 
@@ -450,13 +450,16 @@ class Middlemac < ::Middleman::Extension
450
450
 
451
451
  index_dir = File.expand_path(File.join(app.config[:build_dir], 'Resources', locale))
452
452
  index_dst = File.expand_path(File.join(index_dir, "#{cf_bundle_name}.helpindex"))
453
+ index_dcs = File.expand_path(File.join(index_dir, "#{cf_bundle_name}.cshelpindex"))
453
454
  iso_code = File.basename(locale, '.*')
454
455
  stopwords = File.expand_path(File.join( '..', 'resources', 'stopwords', "#{iso_code}.plist" ))
455
456
 
456
457
  say "'…#{index_dir.split(//).last(60).join}' (indexing)", :cyan
457
458
  say "'…#{index_dst.split(//).last(60).join}' (final file)", :cyan
459
+ say "'…#{index_dcs.split(//).last(60).join}' (final file)", :cyan
458
460
 
459
- `hiutil -Cf "#{index_dst}" -ag -m 3 -s #{stopwords} -l #{iso_code} "#{index_dir}"`
461
+ `hiutil -I lsm -Cf "#{index_dst}" -ag -m 3 -s #{stopwords} -l #{iso_code} "#{index_dir}"`
462
+ `hiutil -I corespotlight -Cf "#{index_dcs}" -ag -m 3 -s #{stopwords} -l #{iso_code} "#{index_dir}"`
460
463
  else
461
464
  say "NOTE: `hiutil` is not found, so no index will exist for target '#{target}'.", :red
462
465
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Middlemac
3
- VERSION = '3.1.1'
3
+ VERSION = '3.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middlemac
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Derry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2021-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core