tidyflash 0.1.5 → 0.1.6
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/README +17 -5
- data/Rakefile +1 -1
- data/lib/tidy/air_packager.rb +18 -0
- data/lib/tidy_project.rb +1 -1
- data/templates/project/script/fcsh/rakefile.rb +4 -1
- data/tidyflash.gemspec +3 -3
- metadata +4 -2
data/Manifest
CHANGED
@@ -10,6 +10,7 @@ lib/script/server.rb
|
|
10
10
|
lib/tasks/assets.rb
|
11
11
|
lib/tasks/demo_config.rb
|
12
12
|
lib/tasks/deploy.rb
|
13
|
+
lib/tidy/air_packager.rb
|
13
14
|
lib/tidy/axml.rb
|
14
15
|
lib/tidy/compile.rb
|
15
16
|
lib/tidy/generate.rb
|
@@ -38,4 +39,3 @@ templates/swfobject/bin/index.html
|
|
38
39
|
templates/swfobject/bin/js/swfobject.js
|
39
40
|
templates/swfobject/swfobject.rb
|
40
41
|
test/test_tidy_project.rb
|
41
|
-
tidyflash.gemspec
|
data/README
CHANGED
@@ -2,11 +2,23 @@ Following in the footsteps of Ruby On Rails, Processing, _why's Shoes and Luke B
|
|
2
2
|
|
3
3
|
USAGE:
|
4
4
|
|
5
|
-
tidyproject SomeProject
|
6
|
-
cd SomeProject
|
7
|
-
rake
|
5
|
+
tidyproject SomeProject
|
6
|
+
cd SomeProject
|
7
|
+
rake
|
8
8
|
|
9
9
|
BEFORE YOU START (on Ubuntu)
|
10
10
|
|
11
|
-
sudo apt-get install ruby rake rubygems libopenssl-ruby git-core
|
12
|
-
gem install tidyflash
|
11
|
+
sudo apt-get install ruby rake rubygems libopenssl-ruby git-core ubuntu-restricted-extras
|
12
|
+
gem install tidyflash
|
13
|
+
|
14
|
+
and make sure you have the rubygems bin folders in your path
|
15
|
+
edit ~/.bashrc
|
16
|
+
add the line:
|
17
|
+
export PATH=/var/lib/gems/1.8/bin:~/.gem/ruby/1.8/bin:$PATH
|
18
|
+
|
19
|
+
|
20
|
+
and for now, hack
|
21
|
+
|
22
|
+
/var/lib/gems/1.8/gems/sprout-as3-bundle-1.0.36/lib/sprout/fcsh_service.rb
|
23
|
+
|
24
|
+
to reference flex4sdk instead of flex3sdk
|
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.6') 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"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Tidy
|
2
|
+
class AirPackager
|
3
|
+
def self.package(id, files)
|
4
|
+
FileUtils.mkdir_p("../releases")
|
5
|
+
Dir.chdir "bin" do
|
6
|
+
certificate_command = "adt -certificate -cn SelfSigned 1024-RSA ../config/air_cert.pfx secret"
|
7
|
+
puts `#{certificate_command}`
|
8
|
+
package_command= "adt -package -storetype pkcs12 -keystore ../config/air_cert.pfx -storepass secret ../../releases/#{id}.air #{id}.axml #{id}.swf #{files.join(' ')}"
|
9
|
+
puts `#{package_command}`
|
10
|
+
end
|
11
|
+
unless RUBY_PLATFORM =~ /linux/
|
12
|
+
`open ../releases/#{id}.air`
|
13
|
+
else
|
14
|
+
`gnome-open ../releases/#{id}.air`
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/tidy_project.rb
CHANGED
@@ -8,7 +8,7 @@ class TidyProject
|
|
8
8
|
def initialize(project_name)
|
9
9
|
unless File.exists?(File.expand_path("~/.tidy/tidy-as3"))
|
10
10
|
puts "You don't have the tidy as3 libs installed. Attempting to pull them from github..."
|
11
|
-
command = "git clone git://github.com/michaelforrest/tidy.git ~/.tidy/tidy-as3"
|
11
|
+
command = "git clone git://github.com/michaelforrest/tidy-as3.git ~/.tidy/tidy-as3"
|
12
12
|
puts command
|
13
13
|
stdin, stdout, stderr = Open3.popen3(command)
|
14
14
|
puts "#{stdout.read}\n#{stderr.read}"
|
data/tidyflash.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
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.6"
|
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"]
|
@@ -10,8 +10,8 @@ Gem::Specification.new do |s|
|
|
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/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/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/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"]
|
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/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"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 6
|
9
|
+
version: 0.1.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Michael Forrest
|
@@ -83,6 +83,7 @@ extra_rdoc_files:
|
|
83
83
|
- lib/tasks/assets.rb
|
84
84
|
- lib/tasks/demo_config.rb
|
85
85
|
- lib/tasks/deploy.rb
|
86
|
+
- lib/tidy/air_packager.rb
|
86
87
|
- lib/tidy/axml.rb
|
87
88
|
- lib/tidy/compile.rb
|
88
89
|
- lib/tidy/generate.rb
|
@@ -104,6 +105,7 @@ files:
|
|
104
105
|
- lib/tasks/assets.rb
|
105
106
|
- lib/tasks/demo_config.rb
|
106
107
|
- lib/tasks/deploy.rb
|
108
|
+
- lib/tidy/air_packager.rb
|
107
109
|
- lib/tidy/axml.rb
|
108
110
|
- lib/tidy/compile.rb
|
109
111
|
- lib/tidy/generate.rb
|