tidyflash 0.1.11 → 0.9.2
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/Manifest +3 -2
- data/Rakefile +3 -2
- data/lib/tidy/air_packager.rb +8 -3
- data/lib/tidy/axml.rb +16 -1
- data/lib/tidy/compile.rb +16 -11
- data/lib/tidy/version.rb +7 -0
- data/{lib/tidy → templates/project/config}/templates/air.axml.erb +2 -2
- data/templates/project/rakefile.rb +4 -1
- data/templates/project/src/app/helpers/Typography.as +71 -1
- data/templates/project/{assets → src/assets}/fonts/Fonts.as +1 -1
- data/test/test_tidy_project.rb +76 -8
- data/tidyflash.gemspec +4 -7
- metadata +12 -25
data/Manifest
CHANGED
@@ -16,10 +16,10 @@ lib/tidy/compile.rb
|
|
16
16
|
lib/tidy/generate.rb
|
17
17
|
lib/tidy/template.rb
|
18
18
|
lib/tidy/template_binding.rb
|
19
|
-
lib/tidy/templates/air.axml.erb
|
20
19
|
lib/tidy/templates/demo_config.as.erb
|
20
|
+
lib/tidy/version.rb
|
21
21
|
lib/tidy_project.rb
|
22
|
-
templates/project/
|
22
|
+
templates/project/config/templates/air.axml.erb
|
23
23
|
templates/project/project.rb
|
24
24
|
templates/project/rakefile.rb
|
25
25
|
templates/project/script/fcsh/rakefile.rb
|
@@ -32,6 +32,7 @@ templates/project/src/app/models/FlashVars.as
|
|
32
32
|
templates/project/src/app/views/MainView.as
|
33
33
|
templates/project/src/app/views/PreloaderView.as
|
34
34
|
templates/project/src/app/views/ViewBase.as
|
35
|
+
templates/project/src/assets/fonts/Fonts.as
|
35
36
|
templates/scaffold/bin/xml/__model.xml
|
36
37
|
templates/scaffold/scaffold.rb
|
37
38
|
templates/scaffold/src/models/__Model.as
|
data/Rakefile
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
|
+
require 'lib/tidy/version'
|
4
5
|
|
5
|
-
Echoe.new('tidyflash',
|
6
|
+
Echoe.new('tidyflash', Tidy::Version.number) do |p|
|
6
7
|
p.description = "Tidy Flash - an ActionScript framework for people who love Ruby"
|
7
8
|
p.url = "http://github.com/michaelforrest/tidy"
|
8
9
|
p.author = "Michael Forrest"
|
9
10
|
p.email = "mf@grimaceworks.com"
|
10
11
|
p.ignore_pattern = ["tmp/**/*", "script/*", "tasks/**/*"]
|
11
12
|
p.development_dependencies = []
|
12
|
-
p.runtime_dependencies = ["
|
13
|
+
p.runtime_dependencies = ["sprout", "sprout-flex4sdk-tool","sprout-as3-bundle"]
|
13
14
|
end
|
14
15
|
|
15
16
|
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
data/lib/tidy/air_packager.rb
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
module Tidy
|
2
2
|
class AirPackager
|
3
|
-
def self.package(
|
3
|
+
def self.package(options = {})
|
4
|
+
id = options[:id]
|
5
|
+
files = options[:files] || []
|
6
|
+
certificate=options[:certificate] || "../config/air_cert.pfx"
|
7
|
+
password = options[:password] || "secret"
|
8
|
+
|
4
9
|
FileUtils.mkdir_p("../releases")
|
5
10
|
Dir.chdir "bin" do
|
6
|
-
certificate_command = "adt -certificate -cn SelfSigned 1024-RSA
|
11
|
+
certificate_command = "adt -certificate -cn SelfSigned 1024-RSA #{certificate} #{password}"
|
7
12
|
puts `#{certificate_command}`
|
8
|
-
package_command= "adt -package -storetype pkcs12 -keystore ../config/air_cert.pfx -storepass
|
13
|
+
package_command= "adt -package -storetype pkcs12 -keystore ../config/air_cert.pfx -storepass #{password} ../../releases/#{id}.air #{id}.axml #{id}.swf #{files.join(' ')}"
|
9
14
|
puts `#{package_command}`
|
10
15
|
end
|
11
16
|
unless RUBY_PLATFORM =~ /linux/
|
data/lib/tidy/axml.rb
CHANGED
@@ -13,7 +13,12 @@ module Tidy
|
|
13
13
|
@content = "#{@output}.swf"
|
14
14
|
@width = args[:width] || 1200
|
15
15
|
@height = args[:height] || 900
|
16
|
-
|
16
|
+
# check which if application template is available use array
|
17
|
+
locations = [
|
18
|
+
"config/templates/#{@output}.axml.erb",
|
19
|
+
"config/templates/air.axml.erb"
|
20
|
+
]
|
21
|
+
source = File.read(getFirstExistingFileFromArray(locations))
|
17
22
|
|
18
23
|
axml_file = "bin/#{@output}.axml"
|
19
24
|
|
@@ -25,6 +30,16 @@ module Tidy
|
|
25
30
|
f << template.result(binding)
|
26
31
|
end
|
27
32
|
end
|
33
|
+
|
34
|
+
def getFirstExistingFileFromArray(files)
|
35
|
+
files.each do |file|
|
36
|
+
if File.exists?(file)
|
37
|
+
return file
|
38
|
+
end
|
39
|
+
end
|
40
|
+
puts "CAN'T find existing file in #{files}"
|
41
|
+
# throw error
|
42
|
+
end
|
28
43
|
|
29
44
|
|
30
45
|
end
|
data/lib/tidy/compile.rb
CHANGED
@@ -14,13 +14,18 @@ end
|
|
14
14
|
require 'sprout/user'
|
15
15
|
require 'sprout/fcsh_socket'
|
16
16
|
require "#{File.expand_path(File.dirname(__FILE__))}/axml"
|
17
|
+
require "#{File.expand_path(File.dirname(__FILE__))}/version"
|
18
|
+
|
19
|
+
def method_name
|
20
|
+
|
21
|
+
end
|
17
22
|
|
18
23
|
module Tidy
|
19
24
|
class Compile
|
20
25
|
WIDTH, HEIGHT = 1200, 900
|
21
26
|
DEFAULTS = {
|
22
27
|
:default_background_color=>"#000000",
|
23
|
-
:default_frame_rate=>
|
28
|
+
:default_frame_rate=> 30,
|
24
29
|
#:incremental=>true,
|
25
30
|
:use_network=>false,
|
26
31
|
:verbose_stacktraces=>true
|
@@ -33,15 +38,18 @@ module Tidy
|
|
33
38
|
# args can include:
|
34
39
|
# :width, :height, :output, etc...
|
35
40
|
# and underscore_versions of the compiler arguments
|
36
|
-
|
37
|
-
|
41
|
+
|
42
|
+
def self.air(args)
|
43
|
+
build args, "mxmlc +configname=air " + parse_options(args)
|
38
44
|
Axml.new( args )
|
39
45
|
unless args[:do_not_launch]
|
40
|
-
|
46
|
+
if File.exists? File.expand_path("~/mm.cfg")
|
47
|
+
File.rename(File.expand_path("~/mm.cfg"), File.expand_path("~/mm.cfg") + ".bak")
|
48
|
+
end
|
41
49
|
puts `adl bin/#{args[:output]}.axml`
|
42
50
|
end
|
43
51
|
end
|
44
|
-
|
52
|
+
|
45
53
|
|
46
54
|
#
|
47
55
|
# TODO: make adl launch an air file with a webkit instance and the swf inside it
|
@@ -58,6 +66,7 @@ module Tidy
|
|
58
66
|
end
|
59
67
|
|
60
68
|
def self.build(args,command)
|
69
|
+
puts "Compiling with TidyFlash #{Tidy::Version.number}"
|
61
70
|
#puts "cd #{FileUtils.pwd} && #{command}"
|
62
71
|
command_result = command
|
63
72
|
filtered_result = command_result.to_a.map{|l| l unless l.match(/^Reason|^Recompile/)}.compact
|
@@ -65,9 +74,7 @@ module Tidy
|
|
65
74
|
|
66
75
|
unless File.exists?(swf_url args)
|
67
76
|
puts "Building for first time"
|
68
|
-
|
69
|
-
stdin, stdout, stderr = Open3.popen3(command)
|
70
|
-
puts "#{stdout.read}\n#{stderr.read}"
|
77
|
+
IO.popen(command){ |process| process.each { |line| puts line } }
|
71
78
|
return
|
72
79
|
end
|
73
80
|
begin
|
@@ -78,9 +85,7 @@ module Tidy
|
|
78
85
|
puts "* Starting FCSH *"
|
79
86
|
puts "*******************"
|
80
87
|
Dir.chdir("script/fcsh") do
|
81
|
-
|
82
|
-
stdin, stdout, stderr = Open3.popen3("rake fcsh:start")
|
83
|
-
puts "#{stdout.read}\n#{stderr.read}"
|
88
|
+
IO.popen("rake fcsh:start"){ |process| process.each { |line| puts line } }
|
84
89
|
end
|
85
90
|
end
|
86
91
|
end
|
data/lib/tidy/version.rb
ADDED
@@ -16,7 +16,10 @@ desc 'Compile and run app'
|
|
16
16
|
task :app do
|
17
17
|
Tidy::Compile.air(:main=>'src/app/views/MainView.as',
|
18
18
|
:output=>"<%= @project_name.underscore %>",
|
19
|
-
:version=> "0.1"
|
19
|
+
:version=> "0.1",
|
20
|
+
:width=>1024,
|
21
|
+
:height=>768,
|
22
|
+
:default_background_color=>"#FFFFFF")
|
20
23
|
|
21
24
|
end
|
22
25
|
task :package do
|
@@ -1 +1,71 @@
|
|
1
|
-
package app.helpers {
|
2
1
|
font = "_sans";
|
3
2
|
embedFonts = true;
|
4
3
|
font = Fonts.BITSTREAM_VERA_SANS;
|
5
4
|
color = 0;
|
6
5
|
bold = false;
|
7
6
|
italic = false;
|
8
7
|
underline = false;
|
9
8
|
url = "";
|
10
9
|
target = "";
|
11
10
|
align = "left";
|
12
11
|
leftMargin = 0;
|
13
12
|
rightMargin = 0;
|
14
13
|
indent = 0;
|
15
14
|
leading = 0;
|
16
15
|
autoSize = "left";
|
17
16
|
background = false;
|
18
17
|
html = false;
|
19
18
|
wordWrap = true;
|
20
19
|
multiline = true;
|
21
20
|
condenseWhite = true;
|
22
21
|
border = false;
|
23
22
|
selectable = false;
|
24
23
|
embedFonts = true;
|
25
24
|
type = "dynamic";
|
26
25
|
antiAliasType = "normal";
|
27
26
|
gridFitType = "none";
|
28
27
|
thickness = 0;
|
29
28
|
maxChars;
|
30
29
|
sharpness = 0;
|
31
30
|
letterSpacing = 0;
|
32
31
|
kerning = false;
|
33
32
|
filters = [];
|
34
33
|
|
35
34
|
// USAGE:
|
36
35
|
// text("Text to show", "Heading1");
|
37
36
|
// USAGE:
|
38
37
|
// text("Text to show", "Paragraph");
|
38
|
+
|
39
|
+
package app.helpers {
|
40
|
+
import tidy.mvc.helper.TypographyBase;
|
41
|
+
import assets.fonts.Fonts;
|
42
|
+
// import
|
43
|
+
/**
|
44
|
+
* <%= credit %>
|
45
|
+
*/
|
46
|
+
public class Typography extends TypographyBase {
|
47
|
+
public function Typography(style:String) {
|
48
|
+
super(style);
|
49
|
+
}
|
50
|
+
public static function style( id: String) : TypographyBase{
|
51
|
+
return new Typography(id);
|
52
|
+
}
|
53
|
+
override protected function Defaults() : void {
|
54
|
+
super.Defaults();
|
55
|
+
embedFonts = false;
|
56
|
+
font = "_sans";
|
57
|
+
fontSize = 30;
|
58
|
+
/*
|
59
|
+
embedFonts = true;
|
60
|
+
font = Fonts.BITSTREAM_VERA_SANS;
|
61
|
+
verticalOffset = 0;
|
62
|
+
color = 0;
|
63
|
+
bold = false;
|
64
|
+
italic = false;
|
65
|
+
underline = false;
|
66
|
+
url = "";
|
67
|
+
target = "";
|
68
|
+
align = "left";
|
69
|
+
leftMargin = 0;
|
70
|
+
rightMargin = 0;
|
71
|
+
indent = 0;
|
72
|
+
leading = 0;
|
73
|
+
autoSize = "left";
|
74
|
+
background = false;
|
75
|
+
html = false;
|
76
|
+
wordWrap = true;
|
77
|
+
multiline = true;
|
78
|
+
condenseWhite = true;
|
79
|
+
border = false;
|
80
|
+
selectable = false;
|
81
|
+
embedFonts = true;
|
82
|
+
type = "dynamic";
|
83
|
+
antiAliasType = "normal";
|
84
|
+
gridFitType = "none";
|
85
|
+
thickness = 0;
|
86
|
+
maxChars;
|
87
|
+
sharpness = 0;
|
88
|
+
letterSpacing = 0;
|
89
|
+
kerning = false;
|
90
|
+
filters = [];
|
91
|
+
|
92
|
+
*/
|
93
|
+
}
|
94
|
+
/*
|
95
|
+
// USAGE:
|
96
|
+
// myViewBase.text("Text to show", "Heading1");
|
97
|
+
public function Heading1() : void{
|
98
|
+
|
99
|
+
}
|
100
|
+
*/
|
101
|
+
// USAGE:
|
102
|
+
// myViewBase.text("Text to show", "Paragraph");
|
103
|
+
public function Paragraph() : void{
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
}
|
108
|
+
}
|
data/test/test_tidy_project.rb
CHANGED
@@ -4,6 +4,7 @@ require 'ftools'
|
|
4
4
|
class TestTidyProject < Test::Unit::TestCase
|
5
5
|
TEST_PROJECT_NAME = "TestProject"
|
6
6
|
TEST_PROJECT_FILE_NAME = "test_project"
|
7
|
+
AIR_CONFIG_FILE_PATH = "bin/#{TEST_PROJECT_FILE_NAME}.axml"
|
7
8
|
def setup
|
8
9
|
lib_path = File.expand_path('lib', __FILE__)
|
9
10
|
$:.unshift(lib_path) unless $:.include?(lib_path)
|
@@ -15,6 +16,69 @@ class TestTidyProject < Test::Unit::TestCase
|
|
15
16
|
TidyProject.new(TEST_PROJECT_NAME)
|
16
17
|
end
|
17
18
|
end
|
19
|
+
|
20
|
+
def test_air_main_template
|
21
|
+
in_project_folder do
|
22
|
+
template_path = 'config/templates/air.axml.erb';
|
23
|
+
assert File.exists?(template_path), "Main AIR template should be included in the project on creation"
|
24
|
+
#IO.popen('rake'){ |process| process.each { |line| puts line } }
|
25
|
+
do_silent_rake()
|
26
|
+
assert File.exists?(AIR_CONFIG_FILE_PATH), "AXML config file should be auto-generated from root template"
|
27
|
+
config_file = File.new(AIR_CONFIG_FILE_PATH,'r')
|
28
|
+
assert_equal(
|
29
|
+
get_file_line_from_index(File.new(template_path,'r'), 1),
|
30
|
+
get_file_line_from_index(config_file, 1),
|
31
|
+
"AXML config file should be generated by main template")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_air_custom_template
|
36
|
+
in_project_folder do
|
37
|
+
File.delete AIR_CONFIG_FILE_PATH if File.exists? AIR_CONFIG_FILE_PATH
|
38
|
+
template_path = "config/templates/#{TEST_PROJECT_FILE_NAME}.axml.erb"
|
39
|
+
File.open(template_path, 'w') do |f|
|
40
|
+
f.puts("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
|
41
|
+
f.puts("<application xmlns=\"http://ns.adobe.com/air/application/1.0\">")
|
42
|
+
f.puts("\t<id><%=@app_name.gsub(\" \", \"\")%></id>")
|
43
|
+
f.puts("\t<version><%=@version.chomp%></version>")
|
44
|
+
f.puts("\t<filename><%=@app_name%></filename>")
|
45
|
+
f.puts("\t<initialWindow>")
|
46
|
+
f.puts("\t\t<content><%=@content%></content>")
|
47
|
+
f.puts("\t\t<visible>true</visible>")
|
48
|
+
f.puts("\t\t<x>50</x>")
|
49
|
+
f.puts("\t\t<y>50</y>")
|
50
|
+
f.puts("\t\t<width><%=@width%></width>")
|
51
|
+
f.puts("\t<height><%=@height + 23%></height>")
|
52
|
+
f.puts("\t</initialWindow>")
|
53
|
+
f.puts("</application>")
|
54
|
+
end
|
55
|
+
do_silent_rake()
|
56
|
+
assert File.exists?(AIR_CONFIG_FILE_PATH), "AXML config file should be auto-generated from custom template"
|
57
|
+
config_file = File.new(AIR_CONFIG_FILE_PATH,'r')
|
58
|
+
assert_equal(
|
59
|
+
get_file_line_from_index(File.new(template_path,'r'), 1),
|
60
|
+
get_file_line_from_index(config_file, 1),
|
61
|
+
"AXML config file should be generated by custom template")
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def do_silent_rake
|
66
|
+
Tidy::Compile.air(:main=>'src/app/views/MainView.as',
|
67
|
+
:output=>TEST_PROJECT_FILE_NAME,
|
68
|
+
:version=> "0.1",
|
69
|
+
:do_not_launch=>true)
|
70
|
+
end
|
71
|
+
|
72
|
+
def get_file_line_from_index(file, index)
|
73
|
+
i = 0;
|
74
|
+
while (line = file.gets)
|
75
|
+
#puts "#{i}: #{line}"
|
76
|
+
if (i==index)
|
77
|
+
return line
|
78
|
+
end
|
79
|
+
i=i+1
|
80
|
+
end
|
81
|
+
end
|
18
82
|
|
19
83
|
#def test_add_libs
|
20
84
|
# in_project_folder do
|
@@ -26,14 +90,18 @@ class TestTidyProject < Test::Unit::TestCase
|
|
26
90
|
# end
|
27
91
|
#
|
28
92
|
#end
|
29
|
-
def test_fcsh
|
30
|
-
in_project_folder do
|
31
|
-
Tidy::Compile.air(:main=>'src/app/views/MainView.as',
|
32
|
-
:output=>TEST_PROJECT_FILE_NAME
|
33
|
-
#:do_not_launch=>true
|
34
|
-
)
|
35
|
-
end
|
36
|
-
end
|
93
|
+
# def test_fcsh
|
94
|
+
# in_project_folder do
|
95
|
+
# Tidy::Compile.air(:main=>'src/app/views/MainView.as',
|
96
|
+
# :output=>TEST_PROJECT_FILE_NAME
|
97
|
+
# #:do_not_launch=>true
|
98
|
+
# )
|
99
|
+
# end
|
100
|
+
# end
|
101
|
+
|
102
|
+
# do packaging
|
103
|
+
# test content in package
|
104
|
+
|
37
105
|
#def test_build
|
38
106
|
#
|
39
107
|
# in_project_folder do
|
data/tidyflash.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{tidyflash}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.9.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Michael Forrest"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-07-29}
|
10
10
|
s.description = %q{Tidy Flash - an ActionScript framework for people who love Ruby}
|
11
11
|
s.email = %q{mf@grimaceworks.com}
|
12
12
|
s.executables = ["test_project.axml", "tidyflash"]
|
13
|
-
s.extra_rdoc_files = ["README", "bin/test_project.axml", "bin/tidyflash", "lib/script/bwlimit.rb", "lib/script/generate", "lib/script/server", "lib/script/server.rb", "lib/tasks/assets.rb", "lib/tasks/demo_config.rb", "lib/tasks/deploy.rb", "lib/tidy/air_packager.rb", "lib/tidy/axml.rb", "lib/tidy/compile.rb", "lib/tidy/generate.rb", "lib/tidy/template.rb", "lib/tidy/template_binding.rb", "lib/tidy/templates/
|
14
|
-
s.files = ["Manifest", "README", "Rakefile", "bin/test_project.axml", "bin/tidyflash", "lib/script/bwlimit.rb", "lib/script/generate", "lib/script/server", "lib/script/server.rb", "lib/tasks/assets.rb", "lib/tasks/demo_config.rb", "lib/tasks/deploy.rb", "lib/tidy/air_packager.rb", "lib/tidy/axml.rb", "lib/tidy/compile.rb", "lib/tidy/generate.rb", "lib/tidy/template.rb", "lib/tidy/template_binding.rb", "lib/tidy/templates/
|
13
|
+
s.extra_rdoc_files = ["README", "bin/test_project.axml", "bin/tidyflash", "lib/script/bwlimit.rb", "lib/script/generate", "lib/script/server", "lib/script/server.rb", "lib/tasks/assets.rb", "lib/tasks/demo_config.rb", "lib/tasks/deploy.rb", "lib/tidy/air_packager.rb", "lib/tidy/axml.rb", "lib/tidy/compile.rb", "lib/tidy/generate.rb", "lib/tidy/template.rb", "lib/tidy/template_binding.rb", "lib/tidy/templates/demo_config.as.erb", "lib/tidy/version.rb", "lib/tidy_project.rb"]
|
14
|
+
s.files = ["Manifest", "README", "Rakefile", "bin/test_project.axml", "bin/tidyflash", "lib/script/bwlimit.rb", "lib/script/generate", "lib/script/server", "lib/script/server.rb", "lib/tasks/assets.rb", "lib/tasks/demo_config.rb", "lib/tasks/deploy.rb", "lib/tidy/air_packager.rb", "lib/tidy/axml.rb", "lib/tidy/compile.rb", "lib/tidy/generate.rb", "lib/tidy/template.rb", "lib/tidy/template_binding.rb", "lib/tidy/templates/demo_config.as.erb", "lib/tidy/version.rb", "lib/tidy_project.rb", "templates/project/config/templates/air.axml.erb", "templates/project/project.rb", "templates/project/rakefile.rb", "templates/project/script/fcsh/rakefile.rb", "templates/project/src/app/helpers/Colours.as", "templates/project/src/app/helpers/Debug.as", "templates/project/src/app/helpers/Style.as", "templates/project/src/app/helpers/Typography.as", "templates/project/src/app/models/App.as", "templates/project/src/app/models/FlashVars.as", "templates/project/src/app/views/MainView.as", "templates/project/src/app/views/PreloaderView.as", "templates/project/src/app/views/ViewBase.as", "templates/project/src/assets/fonts/Fonts.as", "templates/scaffold/bin/xml/__model.xml", "templates/scaffold/scaffold.rb", "templates/scaffold/src/models/__Model.as", "templates/scaffold/src/views/__model/__ModelDetailView.as", "templates/scaffold/src/views/__model/__ModelListItemView.as", "templates/scaffold/src/views/__model/__ModelListView.as", "templates/swfobject/bin/index.html", "templates/swfobject/bin/js/swfobject.js", "templates/swfobject/swfobject.rb", "test/test_tidy_project.rb", "tidyflash.gemspec"]
|
15
15
|
s.homepage = %q{http://github.com/michaelforrest/tidy}
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Tidyflash", "--main", "README"]
|
17
17
|
s.require_paths = ["lib"]
|
@@ -25,18 +25,15 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.specification_version = 3
|
26
26
|
|
27
27
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
28
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
29
28
|
s.add_runtime_dependency(%q<sprout>, [">= 0"])
|
30
29
|
s.add_runtime_dependency(%q<sprout-flex4sdk-tool>, [">= 0"])
|
31
30
|
s.add_runtime_dependency(%q<sprout-as3-bundle>, [">= 0"])
|
32
31
|
else
|
33
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
34
32
|
s.add_dependency(%q<sprout>, [">= 0"])
|
35
33
|
s.add_dependency(%q<sprout-flex4sdk-tool>, [">= 0"])
|
36
34
|
s.add_dependency(%q<sprout-as3-bundle>, [">= 0"])
|
37
35
|
end
|
38
36
|
else
|
39
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
40
37
|
s.add_dependency(%q<sprout>, [">= 0"])
|
41
38
|
s.add_dependency(%q<sprout-flex4sdk-tool>, [">= 0"])
|
42
39
|
s.add_dependency(%q<sprout-as3-bundle>, [">= 0"])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tidyflash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 9
|
9
|
+
- 2
|
10
|
+
version: 0.9.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Forrest
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-07-29 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: sprout
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name: sprout
|
36
|
+
name: sprout-flex4sdk-tool
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name: sprout-
|
50
|
+
name: sprout-as3-bundle
|
51
51
|
prerelease: false
|
52
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
@@ -60,20 +60,6 @@ dependencies:
|
|
60
60
|
version: "0"
|
61
61
|
type: :runtime
|
62
62
|
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: sprout-as3-bundle
|
65
|
-
prerelease: false
|
66
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
|
-
requirements:
|
69
|
-
- - ">="
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
75
|
-
type: :runtime
|
76
|
-
version_requirements: *id004
|
77
63
|
description: Tidy Flash - an ActionScript framework for people who love Ruby
|
78
64
|
email: mf@grimaceworks.com
|
79
65
|
executables:
|
@@ -98,8 +84,8 @@ extra_rdoc_files:
|
|
98
84
|
- lib/tidy/generate.rb
|
99
85
|
- lib/tidy/template.rb
|
100
86
|
- lib/tidy/template_binding.rb
|
101
|
-
- lib/tidy/templates/air.axml.erb
|
102
87
|
- lib/tidy/templates/demo_config.as.erb
|
88
|
+
- lib/tidy/version.rb
|
103
89
|
- lib/tidy_project.rb
|
104
90
|
files:
|
105
91
|
- Manifest
|
@@ -120,10 +106,10 @@ files:
|
|
120
106
|
- lib/tidy/generate.rb
|
121
107
|
- lib/tidy/template.rb
|
122
108
|
- lib/tidy/template_binding.rb
|
123
|
-
- lib/tidy/templates/air.axml.erb
|
124
109
|
- lib/tidy/templates/demo_config.as.erb
|
110
|
+
- lib/tidy/version.rb
|
125
111
|
- lib/tidy_project.rb
|
126
|
-
- templates/project/
|
112
|
+
- templates/project/config/templates/air.axml.erb
|
127
113
|
- templates/project/project.rb
|
128
114
|
- templates/project/rakefile.rb
|
129
115
|
- templates/project/script/fcsh/rakefile.rb
|
@@ -136,6 +122,7 @@ files:
|
|
136
122
|
- templates/project/src/app/views/MainView.as
|
137
123
|
- templates/project/src/app/views/PreloaderView.as
|
138
124
|
- templates/project/src/app/views/ViewBase.as
|
125
|
+
- templates/project/src/assets/fonts/Fonts.as
|
139
126
|
- templates/scaffold/bin/xml/__model.xml
|
140
127
|
- templates/scaffold/scaffold.rb
|
141
128
|
- templates/scaffold/src/models/__Model.as
|