haplo 2.4.1-java → 2.4.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/haplo.gemspec +2 -2
- data/lib/manifest.rb +1 -1
- data/lib/plugin_tool.rb +12 -0
- data/lib/usage.txt +42 -1
- data/lib/version.txt +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a37594425d0899dbb4273a67e56eec4213465e691287c5169d1072be472ee4b3
|
4
|
+
data.tar.gz: 96005dccc77f62eb1c978cd35c9895dd7ef5fd969e9b388521557e90bd58fafc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dadefae2414c9b6eaaa99dbec29976c887b1c298206fa379a958f8439bb7b80f070437b764647e406958a213104a8e69548634ddc2d426222e143b05f4e7e26
|
7
|
+
data.tar.gz: 66ee9ed2ac2159833069b7eba225b304ea64c6785c0950e324cc1d3c63d8ae0de8e2545d3ea78966556fafdabdcb86567f238e7b4b8aaceb9542e302410980c8
|
data/haplo.gemspec
CHANGED
@@ -3,8 +3,8 @@ Gem::Specification.new do |s|
|
|
3
3
|
files = Dir.glob("#{root_dir}/**/*.*").map { |x| x[root_dir.length + 1, x.length]}
|
4
4
|
|
5
5
|
s.name = 'haplo'
|
6
|
-
s.version = '2.4.
|
7
|
-
s.date = '
|
6
|
+
s.version = '2.4.2'
|
7
|
+
s.date = '2019-05-21'
|
8
8
|
s.summary = "Haplo Plugin Tool"
|
9
9
|
s.description = "Development tools for developing Haplo plugins, see https://haplo.org"
|
10
10
|
s.licenses = ["MPL-2.0"]
|
data/lib/manifest.rb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
module PluginTool
|
9
9
|
|
10
|
-
PLUGIN_ACCEPTABLE_FILENAME = /\A(js|static|template|test|file)\/([A-Za-z0-9_
|
10
|
+
PLUGIN_ACCEPTABLE_FILENAME = /\A(js|static|template|test|file)\/([A-Za-z0-9_\.-]+\/)*[A-Za-z0-9_\.-]+\.[A-Za-z0-9]+\z/
|
11
11
|
PLUGIN_ACCEPTABLE_FILENAME_EXCEPTIONS = ['plugin.json', 'requirements.schema', 'global.js', 'certificates-temp-http-api.pem', 'developer.json', 'readme.txt']
|
12
12
|
def self.plugin_filename_allowed?(filename)
|
13
13
|
(filename =~ PLUGIN_ACCEPTABLE_FILENAME) || (PLUGIN_ACCEPTABLE_FILENAME_EXCEPTIONS.include?(filename))
|
data/lib/plugin_tool.rb
CHANGED
@@ -159,6 +159,18 @@ if PLUGIN_TOOL_COMMAND == 'devtools'
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
|
+
if PLUGIN_TOOL_COMMAND == 'template-debugging'
|
163
|
+
disable = (ARGV[0] == 'disable')
|
164
|
+
puts disable ? "Disabling template debugging..." : "Enabling template debugging..."
|
165
|
+
if 'OK' == PluginTool.post("/api/development-plugin-loader/template-debugging?enable=#{disable ? '0' : '1'}")
|
166
|
+
puts "Done"
|
167
|
+
exit 0
|
168
|
+
else
|
169
|
+
puts "Error updating server"
|
170
|
+
exit 1
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
162
174
|
# If the user didn't requested a plugin, try to use the application info to select the root plugin
|
163
175
|
if requested_plugins.empty? && application_info
|
164
176
|
application_root_plugin = application_info["config"]["applicationRootPlugin"]
|
data/lib/usage.txt
CHANGED
@@ -11,7 +11,8 @@ Options:
|
|
11
11
|
--plugin, -p
|
12
12
|
Specify one or more plugin names, separated by commas, or ALL to specify all plugins
|
13
13
|
in the current directory. If not specified, and there's a single plugin in the current
|
14
|
-
directory, it will be selected automatically.
|
14
|
+
directory, it will be selected automatically. If running the develop command against a
|
15
|
+
server, any plugins this plugin depends on will be installed to the application as well.
|
15
16
|
|
16
17
|
--server, -s [SUBSTRING]
|
17
18
|
For this run of the plugin tool, use the server containing the given substring.
|
@@ -25,6 +26,36 @@ Options:
|
|
25
26
|
In development mode, don't connect to the server for notifications. This prevents the
|
26
27
|
output of console.log() being displayed in your local terminal window.
|
27
28
|
|
29
|
+
--no-dependency
|
30
|
+
Explicitly exclude any plugins this plugin depends on from being used in this command.
|
31
|
+
Commands each have a sensible default for whether they include or exclude dependencies
|
32
|
+
- this command allows you to override that default.
|
33
|
+
|
34
|
+
--with-dependency
|
35
|
+
Explicitly include any plugins this plugin depends on. Commands each have a sensible
|
36
|
+
default for whether they include or exclude dependencies - this command allows you to
|
37
|
+
override that default.
|
38
|
+
|
39
|
+
--output [DIR]
|
40
|
+
For use with the `pack` command. Specify a directory to output the packed plugins to.
|
41
|
+
|
42
|
+
--turbo
|
43
|
+
Run the platform in turbo mode. Results in faster reloading of JS runtimes, for rapid
|
44
|
+
reload of development files after changes.
|
45
|
+
|
46
|
+
--show-system-audit
|
47
|
+
Show system audit trail entries in the developer console.
|
48
|
+
|
49
|
+
--exclude-with-prefix [PREFIX]
|
50
|
+
Exclude all plugins that start with PREFIX from the command.
|
51
|
+
|
52
|
+
--force
|
53
|
+
Override platform safety checks to force-apply the command.
|
54
|
+
|
55
|
+
--pack-restrict-to-app-id [APPID]
|
56
|
+
For use with the `pack` command. Restrict this version of the packed plugins to only
|
57
|
+
be used by the application with id APPID
|
58
|
+
|
28
59
|
Commands:
|
29
60
|
|
30
61
|
develop (default command)
|
@@ -33,6 +64,10 @@ Commands:
|
|
33
64
|
devtools [disable]
|
34
65
|
Enable or disable devtools on the server for development with the standard plugins.
|
35
66
|
|
67
|
+
template-debugging [disable]
|
68
|
+
Enable or disable template debugging, including adding comments in generated HTML
|
69
|
+
to indicate which templates were used.
|
70
|
+
|
36
71
|
auth [SERVER]
|
37
72
|
Authorise with server. SERVER can optionally include a non-default port number.
|
38
73
|
|
@@ -62,6 +97,12 @@ Commands:
|
|
62
97
|
Generate a license key to allow plugin installation by a client. The numeric
|
63
98
|
application ID is displayed during plugin installation.
|
64
99
|
|
100
|
+
pack
|
101
|
+
Produce a packed version of the plugins suitable for deployment to a production zone.
|
102
|
+
|
103
|
+
list
|
104
|
+
Output to the terminal a list of all selected plugins and the plugins they depend on.
|
105
|
+
|
65
106
|
|
66
107
|
Running haplo-plugin without any arguments will find the plugin in the current directory and
|
67
108
|
run the 'develop' command.
|
data/lib/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ed77bab
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haplo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Haplo Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Development tools for developing Haplo plugins, see https://haplo.org
|
14
14
|
email: client.services@haplo-services.com
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.6
|
72
|
+
rubygems_version: 2.7.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Haplo Plugin Tool
|