middlemac 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -0
- data/CHANGELOG.md +17 -1
- data/Rakefile +16 -5
- data/documentation_project/Contents/Resources/SharedGlobalAssets/_layouts/layout-apple-modern.haml +2 -2
- data/documentation_project/Gemfile +2 -2
- data/documentation_project/config.rb +6 -5
- data/ext/trie/darray.c +673 -0
- data/ext/trie/darray.h +233 -0
- data/ext/trie/extconf.rb +23 -0
- data/ext/trie/fileutils.c +151 -0
- data/ext/trie/fileutils.h +36 -0
- data/ext/trie/tail.c +340 -0
- data/ext/trie/tail.h +207 -0
- data/ext/trie/trie-private.c +299 -0
- data/ext/trie/trie-private.h +31 -0
- data/ext/trie/trie.c +628 -0
- data/ext/trie/trie.h +40 -0
- data/ext/trie/triedefs.h +73 -0
- data/ext/trie/typedefs.h +117 -0
- data/features/helpers_features.feature +8 -9
- data/features/main_features.feature +3 -3
- data/fixtures/middlemac_app/Gemfile +2 -2
- data/fixtures/middlemac_app/config.rb +7 -9
- data/lib/middlemac.rb +1 -1
- data/lib/middlemac/extension.rb +5 -1
- data/lib/middlemac/{trie.rb → trie-extension.rb} +0 -0
- data/lib/middlemac/version.rb +1 -1
- data/middlemac.gemspec +20 -2
- metadata +51 -34
data/ext/trie/trie.h
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
#include "darray.h"
|
2
|
+
#include "tail.h"
|
3
|
+
|
4
|
+
typedef struct _Trie {
|
5
|
+
DArray *da;
|
6
|
+
Tail *tail;
|
7
|
+
} Trie;
|
8
|
+
|
9
|
+
typedef struct _TrieState {
|
10
|
+
const Trie *trie; /**< the corresponding trie */
|
11
|
+
TrieIndex index; /**< index in double-array/tail structures */
|
12
|
+
short suffix_idx; /**< suffix character offset, if in suffix */
|
13
|
+
short is_suffix; /**< whether it is currently in suffix part */
|
14
|
+
} TrieState;
|
15
|
+
|
16
|
+
|
17
|
+
#define trie_da_is_separate(da,s) (da_get_base ((da), (s)) < 0)
|
18
|
+
#define trie_da_get_tail_index(da,s) (-da_get_base ((da), (s)))
|
19
|
+
#define trie_da_set_tail_index(da,s,v) (da_set_base ((da), (s), -(v)))
|
20
|
+
#define trie_state_is_terminal(s) trie_state_is_walkable((s),TRIE_CHAR_TERM)
|
21
|
+
|
22
|
+
|
23
|
+
Trie* trie_new();
|
24
|
+
void trie_free(Trie *trie);
|
25
|
+
static Bool trie_branch_in_branch (Trie *trie, TrieIndex sep_node, const TrieChar *suffix, TrieData data);
|
26
|
+
static Bool trie_branch_in_tail(Trie *trie, TrieIndex sep_node, const TrieChar *suffix, TrieData data);
|
27
|
+
Bool trie_store (Trie *trie, const TrieChar *key, TrieData data);
|
28
|
+
Bool trie_retrieve (const Trie *trie, const TrieChar *key, TrieData *o_data);
|
29
|
+
Bool trie_delete (Trie *trie, const TrieChar *key);
|
30
|
+
TrieState * trie_root (const Trie *trie);
|
31
|
+
static TrieState * trie_state_new (const Trie *trie, TrieIndex index, short suffix_idx, short is_suffix);
|
32
|
+
TrieState * trie_state_clone (const TrieState *s);
|
33
|
+
void trie_state_free (TrieState *s);
|
34
|
+
void trie_state_rewind (TrieState *s);
|
35
|
+
Bool trie_state_walk (TrieState *s, TrieChar c);
|
36
|
+
Bool trie_state_is_walkable (const TrieState *s, TrieChar c);
|
37
|
+
Bool trie_state_is_leaf (const TrieState *s);
|
38
|
+
TrieData trie_state_get_data (const TrieState *s);
|
39
|
+
|
40
|
+
|
data/ext/trie/triedefs.h
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
|
+
/*
|
3
|
+
* triedefs.h - General typedefs for trie
|
4
|
+
* Created: 2006-08-11
|
5
|
+
* Author: Theppitak Karoonboonyanan <thep@linux.thai.net>
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef __TRIEDEFS_H
|
9
|
+
#define __TRIEDEFS_H
|
10
|
+
|
11
|
+
#include "typedefs.h"
|
12
|
+
|
13
|
+
/**
|
14
|
+
* @file triedefs.h
|
15
|
+
* @brief General typedefs for trie
|
16
|
+
*/
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @brief Trie IO modes
|
20
|
+
*/
|
21
|
+
typedef enum {
|
22
|
+
TRIE_IO_READ = 0x01,
|
23
|
+
TRIE_IO_WRITE = 0x02,
|
24
|
+
TRIE_IO_CREATE = 0x04
|
25
|
+
} TrieIOMode;
|
26
|
+
|
27
|
+
/**
|
28
|
+
* @brief Trie character type for alphabet
|
29
|
+
*/
|
30
|
+
typedef uint32 AlphaChar;
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @brief Error value for alphabet character
|
34
|
+
*/
|
35
|
+
#define ALPHA_CHAR_ERROR (~(AlphaChar)0)
|
36
|
+
|
37
|
+
/**
|
38
|
+
* @brief Trie character type for key
|
39
|
+
*/
|
40
|
+
typedef unsigned char TrieChar;
|
41
|
+
/**
|
42
|
+
* @brief Trie terminator character
|
43
|
+
*/
|
44
|
+
#define TRIE_CHAR_TERM '\0'
|
45
|
+
#define TRIE_CHAR_MAX 255
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @brief Type of Trie index
|
49
|
+
*/
|
50
|
+
typedef int32 TrieIndex;
|
51
|
+
/**
|
52
|
+
* @brief Trie error index
|
53
|
+
*/
|
54
|
+
#define TRIE_INDEX_ERROR 0
|
55
|
+
/**
|
56
|
+
* @brief Maximum trie index value
|
57
|
+
*/
|
58
|
+
#define TRIE_INDEX_MAX 0x7fffffff
|
59
|
+
|
60
|
+
/**
|
61
|
+
* @brief Type of value associated to trie entries
|
62
|
+
*/
|
63
|
+
typedef unsigned long TrieData;
|
64
|
+
/**
|
65
|
+
* @brief Trie error data
|
66
|
+
*/
|
67
|
+
#define TRIE_DATA_ERROR -1
|
68
|
+
|
69
|
+
#endif /* __TRIEDEFS_H */
|
70
|
+
|
71
|
+
/*
|
72
|
+
vi:ts=4:ai:expandtab
|
73
|
+
*/
|
data/ext/trie/typedefs.h
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
|
+
/*
|
3
|
+
* typedefs.h - general types
|
4
|
+
* Created : 11 Aug 2006
|
5
|
+
* Author : Theppitak Karoonboonyanan <thep@linux.thai.net>
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef __TYPEDEFS_H
|
9
|
+
#define __TYPEDEFS_H
|
10
|
+
|
11
|
+
#include <limits.h>
|
12
|
+
|
13
|
+
// fix for fast_trie on Windows. Should be easy to merge with future changes to libdatrie. MH
|
14
|
+
#include <stdbool.h>
|
15
|
+
#define Bool bool
|
16
|
+
#define FALSE false
|
17
|
+
#define TRUE true
|
18
|
+
|
19
|
+
# if UCHAR_MAX == 0xff
|
20
|
+
# ifndef UINT8_TYPEDEF
|
21
|
+
# define UINT8_TYPEDEF
|
22
|
+
typedef unsigned char uint8;
|
23
|
+
# endif /* UINT8_TYPEDEF */
|
24
|
+
# endif /* UCHAR_MAX */
|
25
|
+
|
26
|
+
# if SCHAR_MAX == 0x7f
|
27
|
+
# ifndef INT8_TYPEDEF
|
28
|
+
# define INT8_TYPEDEF
|
29
|
+
typedef signed char int8;
|
30
|
+
# endif /* INT8_TYPEDEF */
|
31
|
+
# endif /* SCHAR_MAX */
|
32
|
+
|
33
|
+
# if UINT_MAX == 0xffff
|
34
|
+
# ifndef UINT16_TYPEDEF
|
35
|
+
# define UINT16_TYPEDEF
|
36
|
+
typedef unsigned int uint16;
|
37
|
+
# endif /* UINT16_TYPEDEF */
|
38
|
+
# endif /* UINT_MAX */
|
39
|
+
|
40
|
+
# if INT_MAX == 0x7fff
|
41
|
+
# ifndef INT16_TYPEDEF
|
42
|
+
# define INT16_TYPEDEF
|
43
|
+
typedef int int16;
|
44
|
+
# endif /* INT16_TYPEDEF */
|
45
|
+
# endif /* INT_MAX */
|
46
|
+
|
47
|
+
# if USHRT_MAX == 0xffff
|
48
|
+
# ifndef UINT16_TYPEDEF
|
49
|
+
# define UINT16_TYPEDEF
|
50
|
+
typedef unsigned short uint16;
|
51
|
+
# endif /* UINT16_TYPEDEF */
|
52
|
+
# endif /* USHRT_MAX */
|
53
|
+
|
54
|
+
# if SHRT_MAX == 0x7fff
|
55
|
+
# ifndef INT16_TYPEDEF
|
56
|
+
# define INT16_TYPEDEF
|
57
|
+
typedef short int16;
|
58
|
+
# endif /* INT16_TYPEDEF */
|
59
|
+
# endif /* SHRT_MAX */
|
60
|
+
|
61
|
+
# if UINT_MAX == 0xffffffff
|
62
|
+
# ifndef UINT32_TYPEDEF
|
63
|
+
# define UINT32_TYPEDEF
|
64
|
+
typedef unsigned int uint32;
|
65
|
+
# endif /* UINT32_TYPEDEF */
|
66
|
+
# endif /* UINT_MAX */
|
67
|
+
|
68
|
+
# if INT_MAX == 0x7fffffff
|
69
|
+
# ifndef INT32_TYPEDEF
|
70
|
+
# define INT32_TYPEDEF
|
71
|
+
typedef int int32;
|
72
|
+
# endif /* INT32_TYPEDEF */
|
73
|
+
# endif /* INT_MAX */
|
74
|
+
|
75
|
+
# if ULONG_MAX == 0xffffffff
|
76
|
+
# ifndef UINT32_TYPEDEF
|
77
|
+
# define UINT32_TYPEDEF
|
78
|
+
typedef unsigned long uint32;
|
79
|
+
# endif /* UINT32_TYPEDEF */
|
80
|
+
# endif /* ULONG_MAX */
|
81
|
+
|
82
|
+
# if LONG_MAX == 0x7fffffff
|
83
|
+
# ifndef INT32_TYPEDEF
|
84
|
+
# define INT32_TYPEDEF
|
85
|
+
typedef long int32;
|
86
|
+
# endif /* INT32_TYPEDEF */
|
87
|
+
# endif /* LONG_MAX */
|
88
|
+
|
89
|
+
# ifndef UINT8_TYPEDEF
|
90
|
+
# error "uint8 type is undefined!"
|
91
|
+
# endif
|
92
|
+
# ifndef INT8_TYPEDEF
|
93
|
+
# error "int8 type is undefined!"
|
94
|
+
# endif
|
95
|
+
# ifndef UINT16_TYPEDEF
|
96
|
+
# error "uint16 type is undefined!"
|
97
|
+
# endif
|
98
|
+
# ifndef INT16_TYPEDEF
|
99
|
+
# error "int16 type is undefined!"
|
100
|
+
# endif
|
101
|
+
# ifndef UINT32_TYPEDEF
|
102
|
+
# error "uint32 type is undefined!"
|
103
|
+
# endif
|
104
|
+
# ifndef INT32_TYPEDEF
|
105
|
+
# error "int32 type is undefined!"
|
106
|
+
# endif
|
107
|
+
|
108
|
+
typedef uint8 byte;
|
109
|
+
typedef uint16 word;
|
110
|
+
typedef uint32 dword;
|
111
|
+
|
112
|
+
|
113
|
+
#endif /* __TYPEDEFS_H */
|
114
|
+
|
115
|
+
/*
|
116
|
+
vi:ts=4:ai:expandtab
|
117
|
+
*/
|
@@ -34,19 +34,18 @@ Feature: Provide helpers and resource items to make multiple targets easy to man
|
|
34
34
|
And the file "goodbye_world_file.html" should contain '[hello_world_file]: #/topic-en.lproj-hello_world_file "Hello World"'
|
35
35
|
And the file "goodbye_world_file.html" should contain '[testing_world_file]: #/topic-en.lproj-testing_world_file "Testing World"'
|
36
36
|
|
37
|
-
|
38
37
|
Scenario:
|
39
38
|
The extended image tag should include srcset automatically if @2x images are
|
40
39
|
present, and not include a srcset if not.
|
41
40
|
When I cd to "New_Project_(pro).help/Contents/Resources/en.lproj/"
|
42
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/convention/icon_32x32.png" srcset="/Resources/SharedGlobalAssets/convention/icon_32x32.png 1x, /Resources/SharedGlobalAssets/convention/icon_32x32@2x.png 2x" alt="
|
43
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/convention/icon_256x256.png" srcset="/Resources/SharedGlobalAssets/convention/icon_256x256.png 1x, /Resources/SharedGlobalAssets/convention/icon_256x256@2x.png 2x" alt="
|
44
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/subdirectory/logo_32x32.png" alt="
|
45
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/neat_thing_32x32.png" alt="
|
46
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/subdirectory/pro-image_32x32.png" alt="
|
47
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/all-graphic_32x32.png" alt="
|
48
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/images/myfile-NOT_IN_SITEMAP" alt="
|
49
|
-
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/images/myfile-NOT_IN_SITEMAP.png" alt="
|
41
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/convention/icon_32x32.png" srcset="/Resources/SharedGlobalAssets/convention/icon_32x32.png 1x, /Resources/SharedGlobalAssets/convention/icon_32x32@2x.png 2x" alt=""'
|
42
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/convention/icon_256x256.png" srcset="/Resources/SharedGlobalAssets/convention/icon_256x256.png 1x, /Resources/SharedGlobalAssets/convention/icon_256x256@2x.png 2x" alt=""'
|
43
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/subdirectory/logo_32x32.png" alt=""'
|
44
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/neat_thing_32x32.png" alt=""'
|
45
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/subdirectory/pro-image_32x32.png" alt=""'
|
46
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/en.lproj/assets/images/all-graphic_32x32.png" alt=""'
|
47
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/images/myfile-NOT_IN_SITEMAP" alt=""'
|
48
|
+
And the file "goodbye_world_file.html" should contain 'img src="/Resources/SharedGlobalAssets/images/myfile-NOT_IN_SITEMAP.png" alt=""'
|
50
49
|
|
51
50
|
|
52
51
|
Scenario:
|
@@ -5,8 +5,8 @@ Feature: Middlemac produces plist and strings files, uses correct HTML formats,
|
|
5
5
|
I want to build useable macOS help books.
|
6
6
|
|
7
7
|
Background:
|
8
|
-
|
9
|
-
|
8
|
+
Given a built app at "middlemac_app"
|
9
|
+
|
10
10
|
Scenario:
|
11
11
|
The correct HTML version must be used on generated files.
|
12
12
|
When I cd to "New_Project_(pro).help/Contents/Resources/en.lproj/"
|
@@ -42,7 +42,7 @@ Feature: Middlemac produces plist and strings files, uses correct HTML formats,
|
|
42
42
|
And the file "testing_world_file.html" should contain "com.sample.project.pro.help"
|
43
43
|
And the file "testing_world_file.html" should contain "New Project"
|
44
44
|
And the file "testing_world_file.html" should contain "New Project Pro"
|
45
|
-
And the file "testing_world_file.html" should contain "3.1.
|
45
|
+
And the file "testing_world_file.html" should contain "3.1.1"
|
46
46
|
And the file "testing_world_file.html" should contain "http://www.sample.com"
|
47
47
|
And the file "testing_world_file.html" should contain "_new_style_partial"
|
48
48
|
And the file "testing_world_file.html" should contain "_partials_dir_partial"
|
@@ -17,14 +17,14 @@ source 'https://rubygems.org'
|
|
17
17
|
#######################################
|
18
18
|
# Middlemac, natch.
|
19
19
|
#######################################
|
20
|
-
gem 'middlemac', '~> 3.1.
|
20
|
+
gem 'middlemac', '~> 3.1.1'
|
21
21
|
gem 'middleman-targets', '~> 1.0.12'
|
22
22
|
|
23
23
|
|
24
24
|
#######################################
|
25
25
|
# Core gems
|
26
26
|
#######################################
|
27
|
-
gem 'middleman', '~> 4.
|
27
|
+
gem 'middleman', '~> 4.3.7'
|
28
28
|
gem 'middleman-core'
|
29
29
|
gem 'middleman-cli'
|
30
30
|
gem 'middleman-livereload' # Live-reloading plugin
|
@@ -73,8 +73,8 @@ config[:target] = :pro
|
|
73
73
|
# for the current target will be available via the `product_uri` helper.
|
74
74
|
|
75
75
|
# :ProductCopyright
|
76
|
-
# You should specify a copyright string to be included in the Apple Help Book
|
77
|
-
#
|
76
|
+
# You should specify a copyright string to be included in the Apple Help Book.
|
77
|
+
# This typically appears when you print a Help Book.
|
78
78
|
|
79
79
|
# (other)
|
80
80
|
# You can specify additional .plist and .strings keys here, too. Have a look
|
@@ -94,9 +94,9 @@ config[:targets] = {
|
|
94
94
|
:HPDBookIconPath => nil,
|
95
95
|
:CFBundleName => 'New Project',
|
96
96
|
:ProductName => 'New Project',
|
97
|
-
:ProductVersion => version_app || '3.1.
|
97
|
+
:ProductVersion => version_app || '3.1.1',
|
98
98
|
:ProductURI => 'http://www.sample.com',
|
99
|
-
:ProductCopyright => '©
|
99
|
+
:ProductCopyright => '© 2021 Jim Derry. All rights reserved.',
|
100
100
|
:features =>
|
101
101
|
{
|
102
102
|
:feature_advertise_pro => true,
|
@@ -112,9 +112,9 @@ config[:targets] = {
|
|
112
112
|
:HPDBookIconPath => nil,
|
113
113
|
:CFBundleName => 'New Project',
|
114
114
|
:ProductName => 'New Project Pro',
|
115
|
-
:ProductVersion => version_app || '3.1.
|
115
|
+
:ProductVersion => version_app || '3.1.1',
|
116
116
|
:ProductURI => 'http://www.sample.com',
|
117
|
-
:ProductCopyright => '©
|
117
|
+
:ProductCopyright => '© 2021 Jim Derry. All rights reserved.',
|
118
118
|
:features =>
|
119
119
|
{
|
120
120
|
:feature_advertise_pro => false,
|
@@ -127,7 +127,7 @@ config[:targets] = {
|
|
127
127
|
} # targets
|
128
128
|
|
129
129
|
# By enabling :target_magic_images, target specific images will be used instead
|
130
|
-
# of the image you specify if it'
|
130
|
+
# of the image you specify if it'ss prefixed with :target_magic_word. For
|
131
131
|
# example, you might request "all-my_image.png", and "pro-my_image.png" (if it
|
132
132
|
# exists) will be used in your :pro target instead.
|
133
133
|
#
|
@@ -205,8 +205,6 @@ end #activate
|
|
205
205
|
|
206
206
|
#===============================================================
|
207
207
|
# Setup directories to mirror Help Book directory layout.
|
208
|
-
# All shared assets are subdirectories of :assets_dir, and
|
209
|
-
# localized assets are subdirectories of `lang.lproj/assets/`.
|
210
208
|
#===============================================================
|
211
209
|
set :source, 'Contents'
|
212
210
|
set :data_dir, 'Contents/Resources/SharedGlobalAssets/_data'
|
data/lib/middlemac.rb
CHANGED
@@ -5,6 +5,6 @@ Middleman::Extensions.register :Middlemac, :before_configuration do
|
|
5
5
|
require_relative 'middlemac/sitemap'
|
6
6
|
require_relative 'middlemac/helpers'
|
7
7
|
require_relative 'middlemac/private'
|
8
|
-
require_relative 'middlemac/trie'
|
8
|
+
require_relative 'middlemac/trie-extension'
|
9
9
|
Middlemac
|
10
10
|
end
|
data/lib/middlemac/extension.rb
CHANGED
@@ -4,7 +4,7 @@ require 'pathname'
|
|
4
4
|
require 'json'
|
5
5
|
require 'nokogiri'
|
6
6
|
require 'words_counted'
|
7
|
-
require 'trie'
|
7
|
+
require 'trie/trie'
|
8
8
|
|
9
9
|
################################################################################
|
10
10
|
# **Middlemac** is a tool to build macOS application help book files from
|
@@ -150,6 +150,10 @@ class Middlemac < ::Middleman::Extension
|
|
150
150
|
#############################################################
|
151
151
|
def after_configuration
|
152
152
|
|
153
|
+
puts "****************************************************"
|
154
|
+
puts "after_configuration"
|
155
|
+
puts "****************************************************"
|
156
|
+
|
153
157
|
# Set the correct :build_dir based on the options.
|
154
158
|
dir = options[:help_output_location] || File.expand_path('./')
|
155
159
|
cf_bundle_name = app.config[:targets][app.config[:target]][:CFBundleName]
|
File without changes
|
data/lib/middlemac/version.rb
CHANGED
data/middlemac.gemspec
CHANGED
@@ -2,9 +2,26 @@
|
|
2
2
|
$:.push File.expand_path('../lib', __FILE__)
|
3
3
|
require 'middlemac/version'
|
4
4
|
|
5
|
-
|
5
|
+
# We should work with any 4.3.x version of Middleman, but due to #2319,
|
6
|
+
# automatic image alt attributes have been removed from Middleman, so
|
7
|
+
# I'm adjusting the minimum requirement to the first release incorporating
|
8
|
+
# that change.
|
9
|
+
|
10
|
+
mm_needed = ['~> 4.3.0', '>= 4.3.7']
|
11
|
+
|
12
|
+
# We should work with any 2.0 version of Ruby, but I'm no longer testing them
|
13
|
+
# for regressions. Version 2.6.0 goes back to December 2018, and is a suitable
|
14
|
+
# minimum version.
|
15
|
+
#
|
16
|
+
# Currently no released version of Middleman works with Ruby 3, so until that is
|
17
|
+
# resolved, We will only support 2.6 up to and not including Ruby 3.0.
|
18
|
+
|
19
|
+
rb_needed = ['~> 2.0', '>= 2.6']
|
20
|
+
|
6
21
|
|
7
22
|
Gem::Specification.new do |s|
|
23
|
+
|
24
|
+
s.required_ruby_version = rb_needed
|
8
25
|
s.name = 'middlemac'
|
9
26
|
s.version = Middleman::Middlemac::VERSION
|
10
27
|
s.platform = Gem::Platform::RUBY
|
@@ -18,6 +35,7 @@ Gem::Specification.new do |s|
|
|
18
35
|
s.files = `git ls-files`.split("\n")
|
19
36
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
37
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
38
|
+
s.extensions << "ext/trie/extconf.rb"
|
21
39
|
s.require_paths = ['lib']
|
22
40
|
|
23
41
|
# The version of middleman-core your extension depends on
|
@@ -28,7 +46,7 @@ Gem::Specification.new do |s|
|
|
28
46
|
s.add_runtime_dependency('middleman-targets', ['~> 1.0', '>= 1.0.12'])
|
29
47
|
s.add_runtime_dependency 'nokogiri'
|
30
48
|
s.add_runtime_dependency 'words_counted'
|
31
|
-
s.add_runtime_dependency '
|
49
|
+
s.add_runtime_dependency 'rake-compiler'
|
32
50
|
|
33
51
|
# Development dependencies
|
34
52
|
s.add_development_dependency 'middleman', mm_needed
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middlemac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Derry
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.0
|
20
17
|
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 4.
|
19
|
+
version: 4.3.0
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.3.7
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 4.2.0
|
30
27
|
- - "~>"
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version: 4.
|
29
|
+
version: 4.3.0
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.3.7
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: middleman-cli
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 4.2.0
|
40
37
|
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version: 4.
|
39
|
+
version: 4.3.0
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 4.3.7
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 4.2.0
|
50
47
|
- - "~>"
|
51
48
|
- !ruby/object:Gem::Version
|
52
|
-
version: 4.
|
49
|
+
version: 4.3.0
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 4.3.7
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: middleman-targets
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
|
-
name:
|
102
|
+
name: rake-compiler
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
@@ -116,22 +116,22 @@ dependencies:
|
|
116
116
|
name: middleman
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- - ">="
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: 4.2.0
|
122
119
|
- - "~>"
|
123
120
|
- !ruby/object:Gem::Version
|
124
|
-
version: 4.
|
121
|
+
version: 4.3.0
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.3.7
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 4.2.0
|
132
129
|
- - "~>"
|
133
130
|
- !ruby/object:Gem::Version
|
134
|
-
version: 4.
|
131
|
+
version: 4.3.0
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 4.3.7
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: bundler
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,7 +193,8 @@ email:
|
|
193
193
|
- balthisar@gmail.com
|
194
194
|
executables:
|
195
195
|
- middlemac
|
196
|
-
extensions:
|
196
|
+
extensions:
|
197
|
+
- ext/trie/extconf.rb
|
197
198
|
extra_rdoc_files: []
|
198
199
|
files:
|
199
200
|
- ".gitattributes"
|
@@ -425,6 +426,19 @@ files:
|
|
425
426
|
- documentation_project/config.rb
|
426
427
|
- documentation_project/makefile
|
427
428
|
- documentation_project/middlemac.webloc
|
429
|
+
- ext/trie/darray.c
|
430
|
+
- ext/trie/darray.h
|
431
|
+
- ext/trie/extconf.rb
|
432
|
+
- ext/trie/fileutils.c
|
433
|
+
- ext/trie/fileutils.h
|
434
|
+
- ext/trie/tail.c
|
435
|
+
- ext/trie/tail.h
|
436
|
+
- ext/trie/trie-private.c
|
437
|
+
- ext/trie/trie-private.h
|
438
|
+
- ext/trie/trie.c
|
439
|
+
- ext/trie/trie.h
|
440
|
+
- ext/trie/triedefs.h
|
441
|
+
- ext/trie/typedefs.h
|
428
442
|
- features/helpers_features.feature
|
429
443
|
- features/main_features.feature
|
430
444
|
- features/support/env.rb
|
@@ -560,7 +574,7 @@ files:
|
|
560
574
|
- lib/middlemac/helpers.rb
|
561
575
|
- lib/middlemac/private.rb
|
562
576
|
- lib/middlemac/sitemap.rb
|
563
|
-
- lib/middlemac/trie.rb
|
577
|
+
- lib/middlemac/trie-extension.rb
|
564
578
|
- lib/middlemac/version.rb
|
565
579
|
- middlemac.gemspec
|
566
580
|
- resources/stopwords/ar.plist
|
@@ -610,23 +624,26 @@ homepage: https://github.com/middlemac/middlemac
|
|
610
624
|
licenses:
|
611
625
|
- MIT
|
612
626
|
metadata: {}
|
613
|
-
post_install_message:
|
627
|
+
post_install_message:
|
614
628
|
rdoc_options: []
|
615
629
|
require_paths:
|
616
630
|
- lib
|
617
631
|
required_ruby_version: !ruby/object:Gem::Requirement
|
618
632
|
requirements:
|
633
|
+
- - "~>"
|
634
|
+
- !ruby/object:Gem::Version
|
635
|
+
version: '2.0'
|
619
636
|
- - ">="
|
620
637
|
- !ruby/object:Gem::Version
|
621
|
-
version: '
|
638
|
+
version: '2.6'
|
622
639
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
623
640
|
requirements:
|
624
641
|
- - ">="
|
625
642
|
- !ruby/object:Gem::Version
|
626
643
|
version: '0'
|
627
644
|
requirements: []
|
628
|
-
rubygems_version: 3.
|
629
|
-
signing_key:
|
645
|
+
rubygems_version: 3.1.4
|
646
|
+
signing_key:
|
630
647
|
specification_version: 4
|
631
648
|
summary: Build complete macOS application help books using Middleman.
|
632
649
|
test_files:
|