haplo 2.3.1-java → 2.3.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/haplo.gemspec +2 -2
- data/lib/plugin.rb +6 -2
- data/lib/plugin_tool.rb +4 -1
- data/lib/version.txt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee8c72a6903130fcb13c248890c699aacae90c5b8cfdd574175ced37bc3c84bb
|
4
|
+
data.tar.gz: f3c99d27f274d326d02e48b68bd28c191caa00917e9fd10273084dc6bd1ab2b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20625fedf138fae9b50852a57de0a3e88bcd518a9a1100e19947066e0656b554f0fbe2b38ade89638ed6572e086b4db38b4b3d302fa8db8effaa65b17b66c3a7
|
7
|
+
data.tar.gz: 4e257c0eb2cb950b8c587816c73d86f44ce1bdb896a9f2a775fbef83acf412e2a9d755558073bb8b824949bc1ae01afa5a262e3fa0d7f5542a8122fc75473565
|
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.3.
|
7
|
-
s.date = '2017-12-
|
6
|
+
s.version = '2.3.2'
|
7
|
+
s.date = '2017-12-14'
|
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/plugin.rb
CHANGED
@@ -13,6 +13,7 @@ module PluginTool
|
|
13
13
|
def initialize(dir, options)
|
14
14
|
@plugin_dir = dir
|
15
15
|
@options = options
|
16
|
+
@@apply_with_turbo = true if options.turbo
|
16
17
|
# Check to see if the plugin is valid
|
17
18
|
unless File.file?("#{@plugin_dir}/plugin.json")
|
18
19
|
end_on_error "Plugin #{@plugin_dir} does not exist (no plugin.json file)"
|
@@ -31,6 +32,7 @@ module PluginTool
|
|
31
32
|
# ---------------------------------------------------------------------------------------------------------
|
32
33
|
|
33
34
|
@@pending_apply = []
|
35
|
+
@@apply_with_turbo = false
|
34
36
|
|
35
37
|
# ---------------------------------------------------------------------------------------------------------
|
36
38
|
|
@@ -204,9 +206,11 @@ module PluginTool
|
|
204
206
|
def self.do_apply
|
205
207
|
return if @@pending_apply.empty?
|
206
208
|
puts "Applying changes on server: #{@@pending_apply.map { |p| p.name } .join(', ')}"
|
207
|
-
|
209
|
+
params = {
|
208
210
|
:plugins => @@pending_apply.map { |p| p.loaded_plugin_id }.join(' ')
|
209
|
-
}
|
211
|
+
}
|
212
|
+
params[:turbo] = '1' if @@apply_with_turbo
|
213
|
+
r = PluginTool.post_with_json_response("/api/development-plugin-loader/apply", params)
|
210
214
|
if r["result"] == 'success'
|
211
215
|
@@pending_apply = []
|
212
216
|
else
|
data/lib/plugin_tool.rb
CHANGED
@@ -23,7 +23,7 @@ NO_DEPENDENCY_COMMANDS.delete('list')
|
|
23
23
|
PLUGIN_SEARCH_PATH = ['.']
|
24
24
|
|
25
25
|
# Options for passing to plugin objects
|
26
|
-
options = Struct.new(:output, :minimiser, :no_dependency, :no_console, :show_system_audit, :args, :force, :server_substring).new
|
26
|
+
options = Struct.new(:output, :minimiser, :no_dependency, :no_console, :show_system_audit, :args, :force, :turbo, :server_substring).new
|
27
27
|
|
28
28
|
# Parse arguments
|
29
29
|
show_help = false
|
@@ -34,6 +34,7 @@ opts = GetoptLong.new(
|
|
34
34
|
['--no-dependency', GetoptLong::NO_ARGUMENT],
|
35
35
|
['--server', '-s', GetoptLong::REQUIRED_ARGUMENT],
|
36
36
|
['--force', GetoptLong::NO_ARGUMENT],
|
37
|
+
['--turbo', GetoptLong::NO_ARGUMENT],
|
37
38
|
['--output', GetoptLong::REQUIRED_ARGUMENT],
|
38
39
|
['--no-console', '-n', GetoptLong::NO_ARGUMENT],
|
39
40
|
['--show-system-audit', GetoptLong::NO_ARGUMENT],
|
@@ -60,6 +61,8 @@ opts.each do |opt, argument|
|
|
60
61
|
options.minimiser = PluginTool::Minimiser.new
|
61
62
|
when '--force'
|
62
63
|
options.force = true
|
64
|
+
when '--turbo'
|
65
|
+
options.turbo = true
|
63
66
|
end
|
64
67
|
end
|
65
68
|
# Handle rest of command line -- first arg is the command, the rest are passed on
|
data/lib/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2c8d256
|
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.3.
|
4
|
+
version: 2.3.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: 2017-12-
|
11
|
+
date: 2017-12-14 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
|