flashsdk 1.0.22.pre → 1.0.23.pre

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.22.pre
1
+ 1.0.23.pre
@@ -867,7 +867,7 @@ module FlashSDK
867
867
  # the {#library_path} option.
868
868
  #
869
869
  # The source path is also used as the search path for the component
870
- # compiler's {#include_classes} and {linclude_resource_bundles} options.
870
+ # compiler's {#includes} and {#resource_bundle_list} options.
871
871
  #
872
872
  # desc "Compile the Application"
873
873
  # mxmlc 'bin/SomeProject.swf' do |t|
@@ -882,9 +882,9 @@ module FlashSDK
882
882
  add_param_alias :sp, :source_path
883
883
 
884
884
  ##
885
- # Statically link the libraries specified by the {#runtime_shared_libraries_path} option.
885
+ # Statically link the libraries specified by the {#runtime_shared_libraries} option.
886
886
  #
887
- # @see #runtime_shared_libraries_path
887
+ # @see #runtime_shared_libraries
888
888
  #
889
889
  add_param :static_link_runtime_shared_libraries, Boolean, { :default => true }
890
890
 
@@ -78,7 +78,8 @@ module FlashSDK
78
78
  clear_requests
79
79
  end
80
80
 
81
- response = output.read
81
+ response = "#{rendered}\n"
82
+ response << output.read.gsub(rendered, '')
82
83
  session.puts response.gsub(fcsh.prompt, "\n")
83
84
  session.flush
84
85
  session.close
@@ -89,6 +90,7 @@ module FlashSDK
89
90
  start = Time.now
90
91
  port = port || @port
91
92
  begin
93
+ #Sprout.stdout.puts "[FCSH] #{command}"
92
94
  session = TCPSocket.new 'localhost', port
93
95
  session.puts command
94
96
  response = session.read
@@ -122,10 +124,11 @@ module FlashSDK
122
124
  private
123
125
 
124
126
  def render_request request
125
- hash = Digest::MD5.hexdigest request
126
127
  if request.match /^mxmlc|^compc/
128
+ hash = Digest::MD5.hexdigest request
129
+
127
130
  if requests[hash].nil?
128
- requests[hash] = requests.size + 1
131
+ requests[hash] = next_compiler_index
129
132
  request
130
133
  else
131
134
  "compile #{requests[hash]}"
@@ -135,6 +138,15 @@ module FlashSDK
135
138
  end
136
139
  end
137
140
 
141
+ def next_compiler_index
142
+ index = 1
143
+ @requests.each do |key, value|
144
+ value += 1
145
+ index = [index, value].max
146
+ end
147
+ index
148
+ end
149
+
138
150
  def clear_requests
139
151
  # Clear the cached requests,
140
152
  # but leave them in place, the underlying
@@ -142,8 +154,8 @@ module FlashSDK
142
154
  # indices.
143
155
 
144
156
  new_requests = {}
145
- @requests.each do |item|
146
- new_requests["removed-item"] = "removed-item"
157
+ @requests.each do |key, value|
158
+ new_requests["removed-item"] = value
147
159
  end
148
160
  @requests = new_requests
149
161
  end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 22
8
+ - 23
9
9
  - pre
10
- version: 1.0.22.pre
10
+ version: 1.0.23.pre
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luke Bayes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-29 00:00:00 -08:00
18
+ date: 2011-02-01 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency