flex-sdk 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/flex-sdk.gemspec +1 -1
- data/lib/flex_compiler.rb +1 -1
- data/lib/opt_builder.rb +4 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/flex-sdk.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{flex-sdk}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jonathan Hoskin", "Rasheed Abdul-Aziz"]
|
data/lib/flex_compiler.rb
CHANGED
@@ -60,7 +60,7 @@ module FlexCompiler
|
|
60
60
|
single :debug, { :alias_for => "compiler.debug" }
|
61
61
|
collection :default_css_files, { :alias_for => "compiler.defaults-css-files" }
|
62
62
|
single :default_css_url, { :alias_for => "compiler.defaults-css-url" }
|
63
|
-
|
63
|
+
collection :define, { :alias_for => "compiler.define" }
|
64
64
|
single :es, { :alias_for => "compiler.es" }
|
65
65
|
collection :external_library_path, { :alias_for => "compiler.external-library-path" }
|
66
66
|
single :advanced_anti_aliasing, { :alias_for => "compiler.fonts.advanced-anti-aliasing" }
|
data/lib/opt_builder.rb
CHANGED
@@ -34,7 +34,7 @@ class OptBuilder
|
|
34
34
|
|
35
35
|
def self.single(sym,opts={})
|
36
36
|
attr_writer sym
|
37
|
-
|
37
|
+
|
38
38
|
self.single_opts << {
|
39
39
|
:sym => sym,
|
40
40
|
:alias_for => opts[:alias_for] || sym.to_s.dasherize
|
@@ -42,7 +42,9 @@ class OptBuilder
|
|
42
42
|
|
43
43
|
self.class_eval do
|
44
44
|
define_method sym do
|
45
|
-
self.send(:instance_variable_get,"@#{sym.to_s}")
|
45
|
+
result = self.send(:instance_variable_get,"@#{sym.to_s}")
|
46
|
+
result = opts[:default] if result.nil?
|
47
|
+
result
|
46
48
|
end
|
47
49
|
end
|
48
50
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flex-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Hoskin
|