textmate_fcsh 0.7.0 → 0.8.0
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.rdoc +11 -3
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/textmate_fcsh.rb +6 -3
- data/textmate_fcsh.gemspec +4 -1
- metadata +15 -2
data/README.rdoc
CHANGED
@@ -37,16 +37,24 @@ Make sure:
|
|
37
37
|
# open .textmate_fcsh and adapt compiler settings.
|
38
38
|
# You can add every directive that mxmlc understands. (underscores are translated to dashes)
|
39
39
|
|
40
|
+
|
40
41
|
|
41
42
|
=== Run
|
42
43
|
|
43
44
|
In project dir type:
|
44
45
|
|
45
|
-
# This will launch continuous compiler, that watches
|
46
|
+
# This will launch continuous compiler, that watches the paths added to source_path in source_path.
|
46
47
|
textmate_fcsh
|
47
48
|
|
48
|
-
This will launch a new browser window with an error report.
|
49
|
-
|
49
|
+
This will launch a new browser window with an error report. Every time you make a change, it will recompile and
|
50
|
+
push the changes to your browser.
|
51
|
+
|
52
|
+
|
53
|
+
=== Growl integration
|
54
|
+
|
55
|
+
Follow instructions at http://blog.chrislowis.co.uk/2010/07/06/growl-notifications-from-ruby-on-osx.html to enable growl.
|
56
|
+
|
57
|
+
==
|
50
58
|
|
51
59
|
|
52
60
|
|
data/Rakefile
CHANGED
@@ -14,6 +14,7 @@ begin
|
|
14
14
|
gem.add_dependency "fcsh"
|
15
15
|
gem.add_dependency "em-websocket"
|
16
16
|
gem.add_dependency "json"
|
17
|
+
gem.add_dependency "ruby-growl"
|
17
18
|
gem.bindir = 'bin'
|
18
19
|
gem.executables = ["textmate_fcsh"]
|
19
20
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
data/lib/textmate_fcsh.rb
CHANGED
@@ -9,7 +9,7 @@ require File.join(File.dirname(__FILE__), 'websocket_server')
|
|
9
9
|
require 'fcsh'
|
10
10
|
require 'em-websocket'
|
11
11
|
require 'json'
|
12
|
-
|
12
|
+
require 'ruby-growl'
|
13
13
|
|
14
14
|
class TextmateFcsh
|
15
15
|
CONFIG_FILE = '.textmate_fcsh'
|
@@ -19,6 +19,7 @@ class TextmateFcsh
|
|
19
19
|
@options = options
|
20
20
|
@server = WebsocketServer.new
|
21
21
|
open_browser_first_time
|
22
|
+
@growl = Growl.new "127.0.0.1", "ruby-growl", ["ruby-growl Notification"]
|
22
23
|
|
23
24
|
check_preconditions
|
24
25
|
read_config!
|
@@ -29,7 +30,7 @@ class TextmateFcsh
|
|
29
30
|
run
|
30
31
|
else
|
31
32
|
@fcsh = Fcsh.new
|
32
|
-
d = DirWatcher.new('
|
33
|
+
d = DirWatcher.new(@config[:mxmlc_options][:source_path].split(",").join(' ')) do
|
33
34
|
run
|
34
35
|
end
|
35
36
|
end
|
@@ -79,9 +80,11 @@ class TextmateFcsh
|
|
79
80
|
output = run_mxmlc
|
80
81
|
errors = @fcsh.errors
|
81
82
|
|
82
|
-
|
83
|
+
message = "Complete: %d errors, %d warnings" % [errors.errors.size, errors.warnings.size]
|
84
|
+
puts message
|
83
85
|
error_array = errors.messages.map {|x| {"filename" => x.filename, "line" => x.line, "level" => x.level, "message" => x.message, "content" => x.content, "column" => x.column } }
|
84
86
|
@server.send JSON.generate(error_array)
|
87
|
+
@growl.notify "ruby-growl Notification", "Textmate FCSH", message
|
85
88
|
end
|
86
89
|
|
87
90
|
|
data/textmate_fcsh.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{textmate_fcsh}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.8.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jaap van der Meer"]
|
@@ -63,17 +63,20 @@ Gem::Specification.new do |s|
|
|
63
63
|
s.add_runtime_dependency(%q<fcsh>, [">= 0"])
|
64
64
|
s.add_runtime_dependency(%q<em-websocket>, [">= 0"])
|
65
65
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
66
|
+
s.add_runtime_dependency(%q<ruby-growl>, [">= 0"])
|
66
67
|
else
|
67
68
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
68
69
|
s.add_dependency(%q<fcsh>, [">= 0"])
|
69
70
|
s.add_dependency(%q<em-websocket>, [">= 0"])
|
70
71
|
s.add_dependency(%q<json>, [">= 0"])
|
72
|
+
s.add_dependency(%q<ruby-growl>, [">= 0"])
|
71
73
|
end
|
72
74
|
else
|
73
75
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
74
76
|
s.add_dependency(%q<fcsh>, [">= 0"])
|
75
77
|
s.add_dependency(%q<em-websocket>, [">= 0"])
|
76
78
|
s.add_dependency(%q<json>, [">= 0"])
|
79
|
+
s.add_dependency(%q<ruby-growl>, [">= 0"])
|
77
80
|
end
|
78
81
|
end
|
79
82
|
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 8
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.8.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jaap van der Meer
|
@@ -71,6 +71,19 @@ dependencies:
|
|
71
71
|
version: "0"
|
72
72
|
type: :runtime
|
73
73
|
version_requirements: *id004
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: ruby-growl
|
76
|
+
prerelease: false
|
77
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
version: "0"
|
85
|
+
type: :runtime
|
86
|
+
version_requirements: *id005
|
74
87
|
description: Compile Flex in Textmate using FCSH. Advanced error reporting.
|
75
88
|
email: jaapvandermeer@gmail.com
|
76
89
|
executables:
|