haplo 2.3.1-java → 2.3.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: 0a3eebc09bdfe324c8aa13c7b7f9582e899403f5c45903a4527969f15530d74e
4
- data.tar.gz: 4cf8ad9d7a7948ae4ae0547da98f0e7be55c07d52b93cbe7fd8be0b21cc6c985
3
+ metadata.gz: ee8c72a6903130fcb13c248890c699aacae90c5b8cfdd574175ced37bc3c84bb
4
+ data.tar.gz: f3c99d27f274d326d02e48b68bd28c191caa00917e9fd10273084dc6bd1ab2b1
5
5
  SHA512:
6
- metadata.gz: 2f775a7d57dc82bc722bf86d1cc8e770221571093a4471548e3dc42acb7da919db76629ed2c3e5a85bb594bc1fc6e557e7df73c79fd8e4da9260683ccb23091e
7
- data.tar.gz: 9c5028a1077e07bd1f52b748d645524e9d880d080bd9be64b15f7384d554295e1f0239cc4e8a74073f810e47823cb2cd252709c5762e0927e6d99d465f00a92a
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.1'
7
- s.date = '2017-12-04'
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
- r = PluginTool.post_with_json_response("/api/development-plugin-loader/apply", {
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
- 4d92664
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.1
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-04 00:00:00.000000000 Z
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