sprout-flexsystemsdk-tool 0.1.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/.gitignore +2 -0
- data/README.markdown +48 -0
- data/VERSION.yml +4 -0
- data/bin/adl +2 -0
- data/bin/adt +2 -0
- data/bin/asdoc +2 -0
- data/bin/compc +2 -0
- data/bin/fdb +2 -0
- data/bin/mxmlc +2 -0
- data/rakefile.rb +53 -0
- data/sprout.spec +6 -0
- metadata +74 -0
data/.gitignore
ADDED
data/README.markdown
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
sprout-flexsystemsdk-tool
|
2
|
+
=============
|
3
|
+
This is a sprout tool for using the flex sdk on your system to do your compiling. This has a couple benefits:
|
4
|
+
|
5
|
+
* You don't have to download another copy of the flex sdk if you already have it
|
6
|
+
* As long as you have the data visualization libraries in your sdk, it will automatically make them available
|
7
|
+
|
8
|
+
Example Rakefile
|
9
|
+
========
|
10
|
+
require 'sprout'
|
11
|
+
sprout 'as3'
|
12
|
+
|
13
|
+
# enable github as a source
|
14
|
+
Sprout::Sprout.gem_sources += ['http://gems.github.com']
|
15
|
+
|
16
|
+
Sprout::Sprout.class_eval do
|
17
|
+
# overriding this to allow sprout to be anywhere in the name, supporting github style aliases
|
18
|
+
def self.sprout_to_gem_name(name)
|
19
|
+
if(!name.match(/sprout-/))
|
20
|
+
name = "sprout-#{name}-bundle"
|
21
|
+
end
|
22
|
+
return name
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
mxmlc 'app.swf' do |t|
|
27
|
+
# configure your build
|
28
|
+
# ...
|
29
|
+
|
30
|
+
# tell it to use our custom builder
|
31
|
+
t.gem_name = 'jerryvos-sprout-flexsystemsdk-tool'
|
32
|
+
end
|
33
|
+
|
34
|
+
Example Rakefile paired with [sprouts-extensions](http://github.com/jerryvos/sprouts-extensions)
|
35
|
+
========
|
36
|
+
require 'sprout'
|
37
|
+
sprout 'as3'
|
38
|
+
|
39
|
+
# Performs all the 'setup to connect to github' work
|
40
|
+
require 'sprouts-extensions'
|
41
|
+
|
42
|
+
mxmlc 'app.swf' do |t|
|
43
|
+
# configure your build
|
44
|
+
# ...
|
45
|
+
|
46
|
+
# tell it to use our custom builder
|
47
|
+
t.gem_name = 'jerryvos-sprout-flexsystemsdk-tool'
|
48
|
+
end
|
data/VERSION.yml
ADDED
data/bin/adl
ADDED
data/bin/adt
ADDED
data/bin/asdoc
ADDED
data/bin/compc
ADDED
data/bin/fdb
ADDED
data/bin/mxmlc
ADDED
data/rakefile.rb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'jeweler'
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'jeweler'
|
5
|
+
Jeweler::Tasks.new do |gemspec|
|
6
|
+
gemspec.name = 'sprout-flexsystemsdk-tool'
|
7
|
+
gemspec.summary = "A sprout tool for interacting with your local sdk"
|
8
|
+
gemspec.email = 'jerry.vos@gmail.com'
|
9
|
+
gemspec.homepage = 'http://github.com/jerryvos/sprout-flexsystemsdk-tool'
|
10
|
+
gemspec.add_dependency('sprout', '>= 0.7.1')
|
11
|
+
|
12
|
+
gemspec.platform = Gem::Platform::RUBY
|
13
|
+
gemspec.has_rdoc = false
|
14
|
+
gemspec.executables = []
|
15
|
+
# s.default_executable = ''
|
16
|
+
end
|
17
|
+
rescue LoadError
|
18
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
19
|
+
end
|
20
|
+
|
21
|
+
BIN_PKG_NAME = File.join('pkg', 'unix_command_aliases.tar.gz')
|
22
|
+
|
23
|
+
namespace :bin do
|
24
|
+
task :generate do
|
25
|
+
%w(adl adt asdoc compc fdb mxmlc).each do |command|
|
26
|
+
File.open(File.join(File.dirname(__FILE__), 'bin', command), 'w') do |file|
|
27
|
+
file.write <<-EOF
|
28
|
+
#!/usr/bin/env ruby
|
29
|
+
# Append $FLEX_SDK/bin to the PATH if it isn't already
|
30
|
+
if ENV['FLEX_SDK']
|
31
|
+
path_separator = RUBY_PLATFORM =~ /(mingw)|win/ ? ";" : ":"
|
32
|
+
|
33
|
+
flex_sdk_bin = File.join(ENV['FLEX_SDK'], bin)
|
34
|
+
|
35
|
+
ENV['PATH'] += "#{path_separator}#{flex_sdk_bin}" unless ENV['PATH'].include?(flex_sdk_bin)
|
36
|
+
end
|
37
|
+
exec("#{command}", *ARGV)
|
38
|
+
EOF
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
task :package => :generate do
|
44
|
+
system "tar -czf #{BIN_PKG_NAME} bin"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
desc "Reinstall this gem"
|
49
|
+
task :reinstall do |t|
|
50
|
+
system "sudo gem uninstall #{NAME}"
|
51
|
+
system "rake clean package"
|
52
|
+
system "sudo gem install -f pkg/#{NAME}-#{GEM_VERSION}.gem"
|
53
|
+
end
|
data/sprout.spec
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
- !ruby/object:Sprout::RemoteFileTarget
|
2
|
+
platform: macosx
|
3
|
+
url: http://cloud.github.com/downloads/jerryvos/sprout-flexsystemsdk-tool/unix_command_aliases.tar.gz
|
4
|
+
- !ruby/object:Sprout::RemoteFileTarget
|
5
|
+
platform: linux
|
6
|
+
url: http://cloud.github.com/downloads/jerryvos/sprout-flexsystemsdk-tool/unix_command_aliases.tar.gz
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sprout-flexsystemsdk-tool
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors: []
|
7
|
+
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-11-23 00:00:00 -06:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: sprout
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.7.1
|
24
|
+
version:
|
25
|
+
description:
|
26
|
+
email: jerry.vos@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.markdown
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- README.markdown
|
36
|
+
- VERSION.yml
|
37
|
+
- bin/adl
|
38
|
+
- bin/adt
|
39
|
+
- bin/asdoc
|
40
|
+
- bin/compc
|
41
|
+
- bin/fdb
|
42
|
+
- bin/mxmlc
|
43
|
+
- rakefile.rb
|
44
|
+
- sprout.spec
|
45
|
+
has_rdoc: false
|
46
|
+
homepage: http://github.com/jerryvos/sprout-flexsystemsdk-tool
|
47
|
+
licenses: []
|
48
|
+
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options:
|
51
|
+
- --charset=UTF-8
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: "0"
|
59
|
+
version:
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
version:
|
66
|
+
requirements: []
|
67
|
+
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 1.3.5
|
70
|
+
signing_key:
|
71
|
+
specification_version: 3
|
72
|
+
summary: A sprout tool for interacting with your local sdk
|
73
|
+
test_files: []
|
74
|
+
|