fcshd 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -22,6 +22,7 @@ end
22
22
 
23
23
  task :push => gem do
24
24
  sh "gem push #{gem}"
25
+ sh "sudo gem install #{name}"
25
26
  end
26
27
 
27
28
  require "rake/clean"
data/bin/fcshc CHANGED
@@ -199,8 +199,10 @@ if $run_compilation
199
199
  case $source_files.size
200
200
  when 0
201
201
  die "missing main application source file"
202
- when 1: $source_file = $source_files.first
203
- else die "multiple source files not allowed when compiling SWF"
202
+ when 1
203
+ $source_file = $source_files.first
204
+ else
205
+ die "multiple source files not allowed when compiling SWF"
204
206
  end
205
207
 
206
208
  if $directories.empty?
@@ -44,14 +44,14 @@ module FCSHD
44
44
 
45
45
  def parsed_message
46
46
  case FCSHD.trim(mxmlc_message).sub(/^Error: /, "")
47
- when "Unable to resolve MXML language version. Please specify the language namespace on the root document tag.": <<EOF
47
+ when "Unable to resolve MXML language version. Please specify the language namespace on the root document tag." then <<EOF
48
48
  error: missing MXML version
49
49
  error: hint: xmlns:fx="library://ns.adobe.com/mxml/2009"
50
50
  error: hint: xmlns="library://ns.adobe.com/flex/spark"
51
51
  error: hint: xmlns:mx="library://ns.adobe.com/flex/mx" (Flex 4)
52
52
  error: hint: xmlns="http://www.adobe.com/2006/mxml" (Flex 3)
53
53
  EOF
54
- when /^Incorrect number of arguments. Expected (\d+)\.$/: <<EOF
54
+ when /^Incorrect number of arguments. Expected (\d+)\.$/ then <<EOF
55
55
  error: expected #$1 arguments
56
56
  EOF
57
57
  when
@@ -61,7 +61,7 @@ EOF
61
61
  then <<EOF
62
62
  error: #{quote $1} undeclared in #{name $2}
63
63
  EOF
64
- when /^Attempted access of inaccessible property (.+) through a reference with static type (.+)\.$/: <<EOF
64
+ when /^Attempted access of inaccessible property (.+) through a reference with static type (.+)\.$/ then <<EOF
65
65
  error: #{quote $1} inaccessible in #{name $2}
66
66
  EOF
67
67
  when
@@ -82,7 +82,7 @@ error: hint: import #{package}.#$1
82
82
  EOF
83
83
  end
84
84
  end
85
- when /^Definition (.+) could not be found\.$/: <<EOF
85
+ when /^Definition (.+) could not be found\.$/ then <<EOF
86
86
  error: #{quote $1} not found
87
87
  EOF
88
88
  when /^Implicit coercion of a value of type (.+) to an unrelated type (.+)\.$/, /^Implicit coercion of a value with static type (.+) to a possibly unrelated type (.+)\./
@@ -93,16 +93,16 @@ error: expected #{format_type(expected)} (got #{format_type(actual)})
93
93
  EOF
94
94
  error: expected #{expected} (got #{actual})
95
95
  EOF
96
- when "Method marked override must override another method.": <<EOF
96
+ when "Method marked override must override another method." then <<EOF
97
97
  error: overriding nonexistent method
98
98
  EOF
99
- when "Overriding a function that is not marked for override.": <<EOF
99
+ when "Overriding a function that is not marked for override." then <<EOF
100
100
  error: unmarked override
101
101
  EOF
102
- when "Incompatible override.": <<EOF
102
+ when "Incompatible override." then <<EOF
103
103
  error: incompatible override
104
104
  EOF
105
- when /^Ambiguous reference to (.+)\.$/: <<EOF
105
+ when /^Ambiguous reference to (.+)\.$/ then <<EOF
106
106
  error: #{quote $1} is ambiguous
107
107
  EOF
108
108
  when /^Can not resolve a multiname reference unambiguously. (\S+) \(from ([^)]+)\) and (\S+) \(from ([^)]+)\) are available\.$/
@@ -114,7 +114,7 @@ error: conflicting definition
114
114
  EOF
115
115
  error: conflicting definition
116
116
  EOF
117
- when /^A conflict exists with definition (.+) in namespace internal\.$/: <<EOF
117
+ when /^A conflict exists with definition (.+) in namespace internal\.$/ then <<EOF
118
118
  error: #{quote $1} conflicts with an internal name
119
119
  EOF
120
120
  when
@@ -125,25 +125,25 @@ EOF
125
125
  <<EOF
126
126
  error: #{who} missing type declaration
127
127
  EOF
128
- when /^A file found in a source-path must have the same package structure '(.*)', as the definition's package, '(.*)'\.$/: <<EOF
128
+ when /^A file found in a source-path must have the same package structure '(.*)', as the definition's package, '(.*)'\.$/ then <<EOF
129
129
  error: package should be #{quote $1}
130
130
  EOF
131
- when /^Comparison between a value with static type (.+) and a possibly unrelated type (.+)\.$/: <<EOF
131
+ when /^Comparison between a value with static type (.+) and a possibly unrelated type (.+)\.$/ then <<EOF
132
132
  error: comparing #$1 to #$2
133
133
  EOF
134
- when "Illegal assignment to a variable specified as constant.": <<EOF
134
+ when "Illegal assignment to a variable specified as constant." then <<EOF
135
135
  error: modifying constant
136
136
  EOF
137
- when "Function does not have a body.": <<EOF
137
+ when "Function does not have a body." then <<EOF
138
138
  error: missing function body"
139
139
  EOF
140
- when "Return type of a setter definition must be unspecified or void.": <<EOF
140
+ when "Return type of a setter definition must be unspecified or void." then <<EOF
141
141
  error: setter must return void"
142
142
  EOF
143
- when "Function does not return a value.": <<EOF
143
+ when "Function does not return a value." then <<EOF
144
144
  error: missing return statement"
145
145
  EOF
146
- when "Syntax error: expecting identifier before rightparen.": <<EOF
146
+ when "Syntax error: expecting identifier before rightparen." then <<EOF
147
147
  error: #{quote ")"} unexpected"
148
148
  EOF
149
149
  when
data/lib/fcshd/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  unless defined? FCSHD::VERSION
2
2
  module FCSHD
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcshd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: