tidyflash 0.1.9 → 0.1.10
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 +1 -1
- data/Rakefile +1 -1
- data/lib/tidy_project.rb +1 -3
- data/templates/project/assets/fonts/Fonts.as +40 -0
- data/templates/project/src/app/helpers/Typography.as +1 -1
- data/templates/project/src/app/views/MainView.as +3 -2
- data/tidyflash.gemspec +5 -5
- metadata +18 -4
data/Manifest
CHANGED
@@ -19,6 +19,7 @@ lib/tidy/template_binding.rb
|
|
19
19
|
lib/tidy/templates/air.axml.erb
|
20
20
|
lib/tidy/templates/demo_config.as.erb
|
21
21
|
lib/tidy_project.rb
|
22
|
+
templates/project/assets/fonts/Fonts.as
|
22
23
|
templates/project/project.rb
|
23
24
|
templates/project/rakefile.rb
|
24
25
|
templates/project/script/fcsh/rakefile.rb
|
@@ -40,4 +41,3 @@ templates/swfobject/bin/index.html
|
|
40
41
|
templates/swfobject/bin/js/swfobject.js
|
41
42
|
templates/swfobject/swfobject.rb
|
42
43
|
test/test_tidy_project.rb
|
43
|
-
tidyflash.gemspec
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('tidyflash', '0.1.
|
5
|
+
Echoe.new('tidyflash', '0.1.10') do |p|
|
6
6
|
p.description = "Tidy Flash - an ActionScript framework for people who love Ruby"
|
7
7
|
p.url = "http://github.com/michaelforrest/tidy"
|
8
8
|
p.author = "Michael Forrest"
|
data/lib/tidy_project.rb
CHANGED
@@ -10,9 +10,7 @@ class TidyProject
|
|
10
10
|
puts "You don't have the tidy as3 libs installed. Attempting to pull them from github..."
|
11
11
|
command = "git clone git://github.com/michaelforrest/tidy-as3.git ~/.tidy/tidy-as3"
|
12
12
|
puts command
|
13
|
-
|
14
|
-
puts "#{stdout.read}\n#{stderr.read}"
|
15
|
-
|
13
|
+
IO.popen(command) { |process| process.each { |line| puts line } }
|
16
14
|
end
|
17
15
|
@project_dir = project_name
|
18
16
|
raise "Project already exists" if File.exists? project_name
|
@@ -0,0 +1,40 @@
|
|
1
|
+
package fonts {
|
2
|
+
|
3
|
+
/**
|
4
|
+
* <%= credit >
|
5
|
+
*
|
6
|
+
* UNICODE RANGES:
|
7
|
+
* Uppercase: U+0020,U+0041-U+005A
|
8
|
+
* Lowercase: U+0020,U+0061-U+007A
|
9
|
+
* Numerals: U+0030-U+0039,U+002E
|
10
|
+
* Punctuation: U+0020-U+002F,U+003A-U+0040,U+005B-U+0060,U+007B-U+007E
|
11
|
+
* Basic Latin: U+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E
|
12
|
+
* Latin I: U+0020,U+00A1-U+00FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183
|
13
|
+
* Latin Extended A:U+0100-U+01FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183
|
14
|
+
* Latin Extended B:U+0180-U+024F,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183
|
15
|
+
* Latin Extended Add'l:U+1E00-U+1EFF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183
|
16
|
+
* Greek: U+0374-U+03F2,U+1F00-U+1FFE,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183
|
17
|
+
* Cyrillic: U+0400-U+04CE,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183
|
18
|
+
* Armenian: U+0530-U+058F,U+FB13-U+FB17
|
19
|
+
* Arabic: U+0600-U+06FF,U+FB50-U+FDFF,U+FE70-U+FEFF
|
20
|
+
* Hebrew: U+05B0-U+05FF,U+FB1D-U+FB4F,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183
|
21
|
+
*
|
22
|
+
* See flash-unicode-table.xml in flex frameworks for others.
|
23
|
+
*
|
24
|
+
*/
|
25
|
+
public class Fonts {
|
26
|
+
/*
|
27
|
+
|
28
|
+
// SAMPLE OF HOW TO EMBED A FONT WITH TWO WEIGHTS (normal and bold)
|
29
|
+
|
30
|
+
public static var BITSTREAM_VERA_SANS : String = "Bitstream Vera Sans";
|
31
|
+
[Embed(source="Vera.ttf", fontFamily="Bitstream Vera Sans",fontWeight="normal")]
|
32
|
+
private static var bitstream_vera_sans : Class;
|
33
|
+
|
34
|
+
[Embed(source="Vera-Bold.ttf", fontFamily="Bitstream Vera Sans",fontWeight="bold")]
|
35
|
+
private static var bitstream_vera_sans_bold : Class;
|
36
|
+
*/
|
37
|
+
|
38
|
+
}
|
39
|
+
|
40
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
package app.helpers {
|
1
|
+
package app.helpers {
|
2
2
|
font = "_sans";
|
3
3
|
embedFonts = true;
|
4
4
|
font = Fonts.BITSTREAM_VERA_SANS;
|
5
5
|
color = 0;
|
6
6
|
bold = false;
|
7
7
|
italic = false;
|
8
8
|
underline = false;
|
9
9
|
url = "";
|
10
10
|
target = "";
|
11
11
|
align = "left";
|
12
12
|
leftMargin = 0;
|
13
13
|
rightMargin = 0;
|
14
14
|
indent = 0;
|
15
15
|
leading = 0;
|
16
16
|
autoSize = "left";
|
17
17
|
background = false;
|
18
18
|
html = false;
|
19
19
|
wordWrap = true;
|
20
20
|
multiline = true;
|
21
21
|
condenseWhite = true;
|
22
22
|
border = false;
|
23
23
|
selectable = false;
|
24
24
|
embedFonts = true;
|
25
25
|
type = "dynamic";
|
26
26
|
antiAliasType = "normal";
|
27
27
|
gridFitType = "none";
|
28
28
|
thickness = 0;
|
29
29
|
maxChars;
|
30
30
|
sharpness = 0;
|
31
31
|
letterSpacing = 0;
|
32
32
|
kerning = false;
|
33
33
|
filters = [];
|
34
34
|
|
35
35
|
// USAGE:
|
36
36
|
// text("Text to show", "Heading1");
|
37
37
|
// USAGE:
|
38
38
|
// text("Text to show", "Paragraph");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
package app.views {
|
2
2
|
import app.views.ViewBase;
|
3
|
-
|
3
|
+
import app.helpers.Style;
|
4
4
|
/**
|
5
5
|
* Main Entry Point Class
|
6
6
|
* <%= credit %>
|
@@ -9,7 +9,8 @@ package app.views {
|
|
9
9
|
public class MainView extends ViewBase {
|
10
10
|
|
11
11
|
public function MainView() {
|
12
|
-
super();
|
12
|
+
super(Style.DEFAULT);
|
13
|
+
|
13
14
|
trace("Hello from this src/app/views/MainView");
|
14
15
|
|
15
16
|
append(text("It worked! Edit this view in src/app/views/MainView"));
|
data/tidyflash.gemspec
CHANGED
@@ -2,21 +2,21 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{tidyflash}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.10"
|
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-06-23}
|
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
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/air.axml.erb", "lib/tidy/templates/demo_config.as.erb", "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/air.axml.erb", "lib/tidy/templates/demo_config.as.erb", "lib/tidy_project.rb", "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/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/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"]
|
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/air.axml.erb", "lib/tidy/templates/demo_config.as.erb", "lib/tidy_project.rb", "templates/project/assets/fonts/Fonts.as", "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/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/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"]
|
18
18
|
s.rubyforge_project = %q{tidyflash}
|
19
|
-
s.rubygems_version = %q{1.3.
|
19
|
+
s.rubygems_version = %q{1.3.7}
|
20
20
|
s.summary = %q{Tidy Flash - an ActionScript framework for people who love Ruby}
|
21
21
|
s.test_files = ["test/test_tidy_project.rb"]
|
22
22
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
25
|
s.specification_version = 3
|
26
26
|
|
27
|
-
if Gem::Version.new(Gem::
|
27
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
28
28
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
29
29
|
s.add_runtime_dependency(%q<sprout>, [">= 0"])
|
30
30
|
s.add_runtime_dependency(%q<sprout-flex4sdk-tool>, [">= 0"])
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tidyflash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 10
|
10
|
+
version: 0.1.10
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Michael Forrest
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-06-23 00:00:00 +01:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: activesupport
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
version: "0"
|
@@ -33,9 +36,11 @@ dependencies:
|
|
33
36
|
name: sprout
|
34
37
|
prerelease: false
|
35
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
36
40
|
requirements:
|
37
41
|
- - ">="
|
38
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
39
44
|
segments:
|
40
45
|
- 0
|
41
46
|
version: "0"
|
@@ -45,9 +50,11 @@ dependencies:
|
|
45
50
|
name: sprout-flex4sdk-tool
|
46
51
|
prerelease: false
|
47
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
48
54
|
requirements:
|
49
55
|
- - ">="
|
50
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
51
58
|
segments:
|
52
59
|
- 0
|
53
60
|
version: "0"
|
@@ -57,9 +64,11 @@ dependencies:
|
|
57
64
|
name: sprout-as3-bundle
|
58
65
|
prerelease: false
|
59
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
60
68
|
requirements:
|
61
69
|
- - ">="
|
62
70
|
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
63
72
|
segments:
|
64
73
|
- 0
|
65
74
|
version: "0"
|
@@ -114,6 +123,7 @@ files:
|
|
114
123
|
- lib/tidy/templates/air.axml.erb
|
115
124
|
- lib/tidy/templates/demo_config.as.erb
|
116
125
|
- lib/tidy_project.rb
|
126
|
+
- templates/project/assets/fonts/Fonts.as
|
117
127
|
- templates/project/project.rb
|
118
128
|
- templates/project/rakefile.rb
|
119
129
|
- templates/project/script/fcsh/rakefile.rb
|
@@ -151,16 +161,20 @@ rdoc_options:
|
|
151
161
|
require_paths:
|
152
162
|
- lib
|
153
163
|
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
none: false
|
154
165
|
requirements:
|
155
166
|
- - ">="
|
156
167
|
- !ruby/object:Gem::Version
|
168
|
+
hash: 3
|
157
169
|
segments:
|
158
170
|
- 0
|
159
171
|
version: "0"
|
160
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
+
none: false
|
161
174
|
requirements:
|
162
175
|
- - ">="
|
163
176
|
- !ruby/object:Gem::Version
|
177
|
+
hash: 11
|
164
178
|
segments:
|
165
179
|
- 1
|
166
180
|
- 2
|
@@ -168,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
182
|
requirements: []
|
169
183
|
|
170
184
|
rubyforge_project: tidyflash
|
171
|
-
rubygems_version: 1.3.
|
185
|
+
rubygems_version: 1.3.7
|
172
186
|
signing_key:
|
173
187
|
specification_version: 3
|
174
188
|
summary: Tidy Flash - an ActionScript framework for people who love Ruby
|