haplo 2.2.4-java → 2.2.5-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fe34a8b772a94f2081c13061dbeaa847bd8d59f
4
- data.tar.gz: 6feb4525fb78d5ea42e4b9df4d2c7b6745f80737
3
+ metadata.gz: 9a2d0f8e6b19cdcefd1107596453a9cb05f115a9
4
+ data.tar.gz: bb56ab3d5c69fdcadc186e03a93b1b831ddf686d
5
5
  SHA512:
6
- metadata.gz: abe4e42470ab21c5faa712c2c8e39169107d7e9c206c6861af15262bffcdbd6d453654ea16fba355ac9ef1c534b0a0fe9e42beec3a8da8197f3ba972dd543fad
7
- data.tar.gz: 648bef2f9722e6fe327e2a73835e6d0161bf81f15f607b97da8b653cbf8b8c4483f183331c079df75090e828a1d391a6be85f7f85b1676d0260a63e8f613be7a
6
+ metadata.gz: db94e51576e9bc3656575f9f78adfc57ea027fd07871fbbaf7bbdf3d7cd3f135b4af043499fa0cee9acf1fcde145f0b12250093d865a5624eea329f6f00efc54
7
+ data.tar.gz: 456b62e366b95f23d85edcb5556c30342b5daefe8a725c2240f064c0ab1cd12e62d8a7dd63c745744db7e1f06d6cd189bbeca893e3f70793d74c73970ff76367
@@ -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.2.4'
7
- s.date = '2016-09-08'
6
+ s.version = '2.2.5'
7
+ s.date = '2017-10-20'
8
8
  s.summary = "Haplo Plugin Tool"
9
9
  s.description = "Development tools for developing Haplo plugins, see http://haplo.org"
10
10
  s.licenses = ["MPL-2.0"]
Binary file
@@ -11,14 +11,15 @@ def end_on_error(err)
11
11
  end
12
12
 
13
13
  File.open("#{File.dirname(__FILE__)}/version.txt") do |f|
14
- puts "Haplo Plugin Tool (#{f.read.chomp})"
14
+ STDERR.puts "Haplo Plugin Tool (#{f.read.chomp})"
15
15
  end
16
16
 
17
17
  PluginTool.try_load_custom
18
18
 
19
19
  WORKSPACE_FILE = 'workspace.json'
20
- LOCAL_ONLY_COMMANDS = {"license-key" => true, "pack" => true, "check" => true, "new" => true}
20
+ LOCAL_ONLY_COMMANDS = {"license-key" => true, "pack" => true, "check" => true, "new" => true, "list" => true}
21
21
  NO_DEPENDENCY_COMMANDS = {"reset-db" => true}.merge(LOCAL_ONLY_COMMANDS)
22
+ NO_DEPENDENCY_COMMANDS.delete('list')
22
23
  PLUGIN_SEARCH_PATH = ['.']
23
24
 
24
25
  # Options for passing to plugin objects
@@ -231,13 +232,22 @@ unless LOCAL_ONLY_COMMANDS[PLUGIN_TOOL_COMMAND]
231
232
  end
232
233
  end
233
234
 
234
- # Sort plugins by load order, and prepare local plugin objects
235
+ # Sort plugins by load order
235
236
  plugins.each { |p| p.start }
236
237
  plugins.sort! do |a,b|
237
238
  pri_a = a.plugin_load_priority
238
239
  pri_b = b.plugin_load_priority
239
240
  (pri_a == pri_b) ? (a.name <=> b.name) : (pri_a <=> pri_b)
240
241
  end
242
+
243
+ # List needs to output text now
244
+ if PLUGIN_TOOL_COMMAND == 'list'
245
+ plugins.each do |p|
246
+ puts "#{p.name}\t#{p.plugin_dir}"
247
+ end
248
+ exit 0
249
+ end
250
+
241
251
  puts "#{plugins.length} plugin#{plugins.length != 1 ? 's' : ''}"
242
252
 
243
253
  # Custom behaviour for this repo?
@@ -1 +1 @@
1
- 0f48ed9
1
+ 6f10c60
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.2.4
4
+ version: 2.2.5
5
5
  platform: java
6
6
  authors:
7
7
  - Haplo Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-08 00:00:00.000000000 Z
11
+ date: 2017-10-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Development tools for developing Haplo plugins, see http://haplo.org
14
14
  email: client.services@haplo-services.com