haplo 2.1.3-java → 2.1.4-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 +15 -8
- data/lib/syntax_checking.rb +7 -0
- data/lib/version.txt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b57db6dd8959c97a21ba14cb5b9940a343d7873
|
4
|
+
data.tar.gz: e72b35f09b0594747c79bf798e2eb8c420afec64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 617b0ad328c0de02f5ecf9e3bf056735bb27f8d8260074ade0d6d16891a115c4bce3be286fa06517f844822a9f76bb35fc8b62d24538da6d51db3db913f20fb1
|
7
|
+
data.tar.gz: f8e0d3b004f0aa63adbeaeda6f53f9ca90a618818c9b0666419a79a7ae521e62df69a15b62a3a1456569ac9f0ddef31c8bb09b2fff0c33ab27372ca6d499d761
|
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.1.
|
7
|
-
s.date = '2016-02-
|
6
|
+
s.version = '2.1.4'
|
7
|
+
s.date = '2016-02-02'
|
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"]
|
data/lib/plugin.rb
CHANGED
@@ -72,18 +72,25 @@ module PluginTool
|
|
72
72
|
|
73
73
|
# ---------------------------------------------------------------------------------------------------------
|
74
74
|
|
75
|
+
def developer_json
|
76
|
+
@developer_json ||= begin
|
77
|
+
developer_json_pathname = "#{@plugin_dir}/developer.json"
|
78
|
+
if File.exist? developer_json_pathname
|
79
|
+
JSON.parse(File.read(developer_json_pathname))
|
80
|
+
else
|
81
|
+
{}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
75
86
|
def exclude_files_from_syntax_check
|
76
87
|
@exclude_files_from_syntax_check ||= begin
|
77
88
|
# developer.json file might contain some files which should not be syntax checked
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
if developer_json['excludeFromSyntaxCheck'].kind_of?(Array)
|
83
|
-
exclude_files_from_check = developer_json['excludeFromSyntaxCheck']
|
84
|
-
end
|
89
|
+
if developer_json['excludeFromSyntaxCheck'].kind_of?(Array)
|
90
|
+
developer_json['excludeFromSyntaxCheck']
|
91
|
+
else
|
92
|
+
[]
|
85
93
|
end
|
86
|
-
exclude_files_from_check
|
87
94
|
end
|
88
95
|
end
|
89
96
|
|
data/lib/syntax_checking.rb
CHANGED
@@ -77,6 +77,13 @@ module PluginTool
|
|
77
77
|
# global.js requires server side syntax checking, but doesn't have any extra globals, not even the plugin name.
|
78
78
|
kind = 'js' if kind == 'global.js'
|
79
79
|
end
|
80
|
+
# Add extra symbols from developer.json?
|
81
|
+
extra_globals.concat(
|
82
|
+
case kind
|
83
|
+
when 'js', 'test'; plugin.developer_json['syntaxCheckGlobalsServer']
|
84
|
+
when 'static'; plugin.developer_json['syntaxCheckGlobalsBrowser']
|
85
|
+
else; []
|
86
|
+
end || [])
|
80
87
|
# Do syntax checking
|
81
88
|
lint_report = @@syntax_tester.call(@@cx, @@javascript_scope, @@javascript_scope, [js, kind, JSON.generate(extra_globals)])
|
82
89
|
schema_report = schema_requirements ? schema_requirements.report_usage(js) : nil
|
data/lib/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
14b9698
|
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.1.
|
4
|
+
version: 2.1.4
|
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-02-
|
11
|
+
date: 2016-02-02 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
|