fcshd 0.7.0 → 0.7.1

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.
data/README.md ADDED
@@ -0,0 +1,67 @@
1
+ This package aims to remove pain points for Adobe Flex developers who
2
+ prefer to compile code from the terminal or their favorite editor:
3
+
4
+ * It speeds up compilation by leveraging Adobe’s own Flex Compiler
5
+ Shell (`fcsh`) and a client-server architecture: basically, you
6
+ start the `fcshd` server, and then use the client program `fcshc`
7
+ as a faster and more usable replacement for `mxmlc`.
8
+
9
+ * It abstracts away the crazy command-line interface of `mxmlc` and
10
+ gives you a simpler and more `gcc`-like interface to work with.
11
+
12
+ * It postprocesses all compiler output, simplifies most of the
13
+ verbose (sometimes bordering on rambling) error messages, and
14
+ converts the stack traces into a more conventional GNU-style
15
+ format (so that tools like Emacs can understand them).
16
+
17
+ * It provides a rudimentary library lookup mechanism which lets you
18
+ reference any source directory or SWC you link into `~/.fcshd-lib`
19
+ (or `$FCSHD_LIBRARY_PATH`, if set) through the `-l` option.
20
+
21
+
22
+ It makes the easy easy:
23
+
24
+ ```
25
+ $ fcshc src/foo.mxml
26
+ ```
27
+
28
+ And the hard possible:
29
+
30
+ ```
31
+ $ fcshc --help
32
+ Usage: fcshc MAIN.{as,mxml} [SRCDIR|SWCDIR|SWC]... [-o OUT.swf]
33
+ fcshc SRCDIR... [SWCDIR|SWC]... -o OUT.swc
34
+ ```
35
+
36
+ To compile an SWF, name the main application source file, then any
37
+ additional source directories, SWC directories, or SWC files.
38
+
39
+ To compile an SWC using `compc`, you must provide the `-o` option, and
40
+ then at least one source directory, SWC directory, or SWC file.
41
+
42
+ Dependencies can also be specified by name using the `-l LIB` option,
43
+ which will search for LIB or LIB.swc in `~/.fcshd-lib`. Both source
44
+ directories, SWC directories, and SWC files can be named in this way.
45
+
46
+ To pass extra arguments, use e.g. `-X -include-file -X NAME -X FILE`.
47
+
48
+ ```
49
+ -o, --output OUTPUT.[swf|swc] Name of the resulting binary
50
+ -l, --library LIBRARY Search LIBRARY when compiling
51
+
52
+ -p, --production Leave out debugging metadata
53
+ --no-rsls Do not use Flex RSLs
54
+ --static-rsls Use static linking for RSLs
55
+
56
+ -3, --flex-3 Use -compatibility-version=3
57
+ --halo Use the Halo theme
58
+
59
+ -X EXTRA-ARGUMENT Pass through EXTRA-ARGUMENT
60
+
61
+ -R, --restart Restart the compiler first
62
+ -n, --dry-run Only print the compiler command
63
+ --verbose Also print the compiler command
64
+
65
+ -v, --version Show fcshd version
66
+ -h, --help Show this message
67
+ ```
data/bin/fcshc CHANGED
@@ -67,14 +67,14 @@ EOF
67
67
  $production = true
68
68
  end
69
69
 
70
- parser.on("--static-rsls", "Use static linking for RSLs") do
70
+ parser.on("--no-rsls", "Remove all runtime shared libraries") do
71
71
  $run_compilation = true
72
- $extra_arguments << "-static-link-runtime-shared-libraries=true"
72
+ $extra_arguments << "-runtime-shared-library-path="
73
73
  end
74
74
 
75
- parser.on("--no-rsls", "Remove all runtime shared libraries") do
75
+ parser.on("--static-rsls", "Use static linking for RSLs") do
76
76
  $run_compilation = true
77
- $extra_arguments << "-runtime-shared-library-path="
77
+ $extra_arguments << "-static-link-runtime-shared-libraries=true"
78
78
  end
79
79
 
80
80
  parser.separator ""
@@ -45,11 +45,7 @@ module FCSHD
45
45
  def parsed_message
46
46
  case FCSHD.trim(mxmlc_message).sub(/^Error: /, "")
47
47
  when "Unable to resolve MXML language version. Please specify the language namespace on the root document tag." then <<EOF
48
- error: missing MXML version
49
- error: hint: xmlns:fx="library://ns.adobe.com/mxml/2009"
50
- error: hint: xmlns="library://ns.adobe.com/flex/spark"
51
- error: hint: xmlns:mx="library://ns.adobe.com/flex/mx" (Flex 4)
52
- error: hint: xmlns="http://www.adobe.com/2006/mxml" (Flex 3)
48
+ error: missing xmlns:fx="http://ns.adobe.com/mxml/2009"
53
49
  EOF
54
50
  when /^Incorrect number of arguments. Expected (\d+)\.$/ then <<EOF
55
51
  error: expected #$1 arguments
data/lib/fcshd/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  unless defined? FCSHD::VERSION
2
2
  module FCSHD
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcshd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 7
9
- - 0
10
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Daniel Brockman
@@ -15,7 +14,8 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2012-04-10 00:00:00 Z
17
+ date: 2012-04-13 00:00:00 +02:00
18
+ default_executable:
19
19
  dependencies: []
20
20
 
21
21
  description: |
@@ -38,7 +38,7 @@ files:
38
38
  - Gemfile
39
39
  - Gemfile.lock
40
40
  - MIT-LICENSE
41
- - README
41
+ - README.md
42
42
  - Rakefile
43
43
  - bin/fcshc
44
44
  - bin/fcshc-repl
@@ -55,6 +55,7 @@ files:
55
55
  - lib/fcshd/transcript-parser.rb
56
56
  - lib/fcshd/transcript.rb
57
57
  - lib/fcshd/version.rb
58
+ has_rdoc: true
58
59
  homepage: http://github.com/dbrock/fcshd
59
60
  licenses: []
60
61
 
@@ -64,27 +65,23 @@ rdoc_options: []
64
65
  require_paths:
65
66
  - lib
66
67
  required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- hash: 3
72
71
  segments:
73
72
  - 0
74
73
  version: "0"
75
74
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
75
  requirements:
78
76
  - - ">="
79
77
  - !ruby/object:Gem::Version
80
- hash: 3
81
78
  segments:
82
79
  - 0
83
80
  version: "0"
84
81
  requirements: []
85
82
 
86
83
  rubyforge_project:
87
- rubygems_version: 1.8.15
84
+ rubygems_version: 1.3.6
88
85
  signing_key:
89
86
  specification_version: 3
90
87
  summary: Usable CLI for the Adobe Flex compiler shell (fcsh)
data/README DELETED
@@ -1,38 +0,0 @@
1
- By using a client-server architecture, we are able to make the Adobe Flex
2
- compiler run fast while still being usable in command-line environments.
3
- In practice, you start the `fcshd' server, and are then able to use the
4
- client program `fcshc' as a faster and more usable replacement for `mxmlc'.
5
-
6
- $ fcshc --help
7
- Usage: fcshc MAIN.[as|mxml] [-l LIB] [SRCDIR|SWCDIR|SWC]... [-o OUT.swf]
8
- fcshc -o OUT.swc SRCDIR... [-l LIB]... [SWCDIR|SWC]...
9
-
10
- To compile an SWF, name the main application source file, then any
11
- additional source directories, SWC directories, or SWC files.
12
-
13
- To compile an SWC using `compc', you must provide the `-o' option, and
14
- then at least one source directory, SWC directory, or SWC file.
15
-
16
- Dependencies can also be specified by name using the `-l LIB' option,
17
- which will search for LIB or LIB.swc in `~/.fcshd-lib'. Both source
18
- directories, SWC directories, and SWC files can be named in this way.
19
-
20
- To pass extra arguments, use e.g. `-X -include-file -X NAME -X FILE'.
21
-
22
- -o, --output OUTPUT.[swf|swc] Name of the resulting binary
23
- -l, --library LIBRARY Search LIBRARY when compiling
24
- -X, --extra-argument ARGUMENT Pass ARGUMENT to the compiler
25
- -p, --production Leave out debugging metadata
26
- --static-rsls Use static linking for RSLs
27
- --no-rsls Remove all runtime shared libraries
28
-
29
- -3, --flex-3 Use -compatibility-version=3
30
- --halo Use the Halo theme
31
-
32
- -R, --restart Restart the compiler first
33
- -n, --dry-run Only print the compiler command
34
- --verbose Also print the compiler command
35
- -v, --version Show `fcshc 0.6a'
36
- -h, --help Show this message
37
-
38
- TL;DR: $ fcshc src/my_app.mxml