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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f31a05fd3051ec0b37547bd85d945e68189b12dbbad4750fe249e85b7c93327
4
- data.tar.gz: 2a18bdb623aa28ce44eb3f9d4fd16c15ded643e5dd547ad7c8ef1c2f06bd0ad9
3
+ metadata.gz: a37594425d0899dbb4273a67e56eec4213465e691287c5169d1072be472ee4b3
4
+ data.tar.gz: 96005dccc77f62eb1c978cd35c9895dd7ef5fd969e9b388521557e90bd58fafc
5
5
  SHA512:
6
- metadata.gz: ed8e5ae72e0a9903ced3bc25d9bb716d2ac75f623afbffa6ed3cc5f185caa2bbc3b8bf2f2a4648ae21fb6a5e262e7719bedbccbf8479e47575c8120c29ef7528
7
- data.tar.gz: 3f84cd6d180238698d84dcd69128b85c12f103ea08f6e9a7b49ceac937ad124e0e7c5bf0f1f8a4c72ede326c116947afd9dcd4020bc014d984fe91ea4fd2ee05
6
+ metadata.gz: 3dadefae2414c9b6eaaa99dbec29976c887b1c298206fa379a958f8439bb7b80f070437b764647e406958a213104a8e69548634ddc2d426222e143b05f4e7e26
7
+ data.tar.gz: 66ee9ed2ac2159833069b7eba225b304ea64c6785c0950e324cc1d3c63d8ae0de8e2545d3ea78966556fafdabdcb86567f238e7b4b8aaceb9542e302410980c8
@@ -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.1'
7
- s.date = '2018-06-15'
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"]
@@ -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_-]+\/)*[A-Za-z0-9_-]+\.[A-Za-z0-9]+\z/
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))
@@ -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"]
@@ -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.
@@ -1 +1 @@
1
- 33a3b9b
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.1
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: 2018-06-15 00:00:00.000000000 Z
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.13
72
+ rubygems_version: 2.7.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Haplo Plugin Tool