moneypools-rake_helpers 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rake_helpers/config.rb +34 -0
- data/rake_helpers.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/rake_helpers/config.rb
CHANGED
@@ -149,4 +149,38 @@ module MP
|
|
149
149
|
downcase
|
150
150
|
end
|
151
151
|
end
|
152
|
+
|
153
|
+
class FlexConfig < Config
|
154
|
+
def initialize(*args)
|
155
|
+
super
|
156
|
+
add_extra_params
|
157
|
+
end
|
158
|
+
|
159
|
+
def swf(file_name)
|
160
|
+
File.expand_path("#{file_name}.swf", swf_output_path)
|
161
|
+
end
|
162
|
+
|
163
|
+
def player_global_path
|
164
|
+
player_global_paths = ["#{flex_sdk_path}/frameworks/libs/player/10/playerglobal.swc",
|
165
|
+
"#{flex_sdk_path}/frameworks/libs/player/playerglobal.swc"]
|
166
|
+
player_global_paths.detect do |path|
|
167
|
+
File.exist?(path)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
private
|
172
|
+
def add_extra_params
|
173
|
+
add(:flex_sdk_path, :name => 'flex_sdk',
|
174
|
+
:default => Proc.new do
|
175
|
+
if mxmlc_bin_path = %x(which mxmlc)
|
176
|
+
# /.../sdk_root/bin/mxmlc => /.../sdk_root
|
177
|
+
File.expand_path(File.join(File.dirname(mxmlc_bin_path), '..'))
|
178
|
+
else
|
179
|
+
"/Applications/Adobe Flex Builder 3/sdks/3.0.0"
|
180
|
+
end
|
181
|
+
end)
|
182
|
+
add(:swf_output_path, :name => 'swf_output',
|
183
|
+
:default => 'bin')
|
184
|
+
end
|
185
|
+
end
|
152
186
|
end
|
data/rake_helpers.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rake_helpers}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.6"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["moneypools"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-16}
|
10
10
|
s.email = %q{support@mymoneypools.com}
|
11
11
|
s.files = [
|
12
12
|
".gitignore",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moneypools-rake_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moneypools
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-16 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|