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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44039bac7161d320c4953fadca10cd0a99e1a6ab
4
- data.tar.gz: c35e2b0305765eb0f17ba4f95e735fd7b3baded3
3
+ metadata.gz: 5b57db6dd8959c97a21ba14cb5b9940a343d7873
4
+ data.tar.gz: e72b35f09b0594747c79bf798e2eb8c420afec64
5
5
  SHA512:
6
- metadata.gz: 724b1e1f8944bb6040445baa038df7920b6cd9e1888b1c09f49ab51bda147c328f226f088345969ba12fe6e34a72245d1fd6a81451a4cf3fe9bb4dc4a730aa14
7
- data.tar.gz: a1fbe535acea52e111c316dc4671a005d276bd68e08fc75f7d65be8be9d0a843ef3944dadc3a845459d15086079b2a5bb09bdd16b6de973309a05095360d091b
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.3'
7
- s.date = '2016-02-01'
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
- exclude_files_from_check = []
79
- developer_json_pathname = "#{@plugin_dir}/developer.json"
80
- if File.exist? developer_json_pathname
81
- developer_json = JSON.parse(File.read(developer_json_pathname))
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
 
@@ -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
- e388b40
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.3
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-01 00:00:00.000000000 Z
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