swf_fu 1.3.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +30 -50
- data/Rakefile +38 -0
- data/app/assets/javascripts/swf_fu.js.coffee +7 -0
- data/{assets → app/assets}/javascripts/swfobject.js +0 -0
- data/app/helpers/swf_fu_helper.rb +51 -0
- data/app/models/swf_fu/generator.rb +139 -0
- data/lib/swf_fu.rb +15 -2
- data/lib/swf_fu/version.rb +3 -0
- data/lib/tasks/swf_fu_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +16 -0
- data/test/dummy/app/assets/javascripts/example.js.coffee +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/application/example.html.erb +7 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +56 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +2861 -0
- data/test/dummy/log/test.log +1002 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/swfs/example.swf +0 -0
- data/test/dummy/public/swfs/source/Example.as +26 -0
- data/test/dummy/public/swfs/source/example.fla +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/C14/440/sprockets%2F7165b4ee637490447887e423298985d7 +0 -0
- data/test/dummy/tmp/cache/assets/CC9/940/sprockets%2F384b7526ce19a1676cf839c97e283d65 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/D21/B30/sprockets%2F3c26aead77064197ac98a91d4c46f879 +0 -0
- data/test/dummy/tmp/cache/assets/D2B/260/sprockets%2F85f8be26166cf70b5d954fff37a42987 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D41/740/sprockets%2F414358cbdcf6fbb7d59c54ea24824407 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D4F/590/sprockets%2Ff4f8bbee986218b7a2173c69ca28429e +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D68/4F0/sprockets%2F448bbac6b7407ae050c726c3491fde6d +0 -0
- data/test/dummy/tmp/cache/assets/DB2/170/sprockets%2Fc6c10bc26cb025a7b1beb05c24198fae +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E1E/4F0/sprockets%2Fefa070e0f1ca299bc30dad1ff1b196ee +0 -0
- data/test/dummy/tmp/cache/assets/E6D/DA0/sprockets%2F753c6b9fddf2dffb5f978cd1ae50cda8 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/support/assert_same_striped.rb +8 -0
- data/test/{results.rb → support/fixtures/results.rb} +5 -6
- data/test/swf_path_test.rb +35 -0
- data/test/swf_tag_test.rb +93 -0
- data/test/test_helper.rb +9 -18
- metadata +220 -85
- data/CHANGELOG.rdoc +0 -45
- data/FLASH_OBJECT.rdoc +0 -31
- data/VERSION +0 -1
- data/assets/swfs/expressInstall.swf +0 -0
- data/lib/action_view/helpers/asset_tag_helper/swf_asset.rb +0 -61
- data/lib/action_view/helpers/swf_fu_helper.rb +0 -184
- data/lib/swf_fu/tasks.rb +0 -72
- data/rails/init.rb +0 -11
- data/tasks/rails.rake +0 -1
- data/test/swf_fu_test.rb +0 -131
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
Binary file
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import flash.external.ExternalInterface;
|
2
|
+
import mx.utils.Delegate;
|
3
|
+
|
4
|
+
dynamic class Example extends MovieClip {
|
5
|
+
|
6
|
+
function Example() {
|
7
|
+
this.info = createTextField("info", getNextHighestDepth(), 0, 0, Stage.width, Stage.height);
|
8
|
+
this.log(_level0.message ? _level0.message : "Hello, world!\n");
|
9
|
+
ExternalInterface.addCallback("sendFlash", this, this.receiveFromJS);
|
10
|
+
}
|
11
|
+
|
12
|
+
function callJS(arg) {
|
13
|
+
ExternalInterface.call("receiveFromFlash", arg);
|
14
|
+
}
|
15
|
+
|
16
|
+
function receiveFromJS(arg) {
|
17
|
+
this.log("Received from JS: "+arg+"\n");
|
18
|
+
this.callJS("Thanks for: "+arg);
|
19
|
+
}
|
20
|
+
|
21
|
+
function log(txt) {
|
22
|
+
this.info.text += txt;
|
23
|
+
}
|
24
|
+
|
25
|
+
private var info: TextField;
|
26
|
+
}
|
Binary file
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
93497
|
@@ -0,0 +1,8 @@
|
|
1
|
+
def assert_same_stripped(expect, test)
|
2
|
+
expect, test = [expect, test].map{|s| s.split("\n").map(&:strip)}
|
3
|
+
same = expect & test
|
4
|
+
delta_expect, delta_test = [expect, test].map{|a| a-same}
|
5
|
+
STDOUT << "\n\n---- Actual result: ----\n" << test.join("\n") << "\n---------\n" unless delta_expect == delta_test
|
6
|
+
assert_equal delta_expect, delta_test
|
7
|
+
end
|
8
|
+
|
@@ -1,15 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
DYNAMIC_RESULT = <<'EOS'
|
2
3
|
<script type="text/javascript">
|
3
4
|
//<![CDATA[
|
4
5
|
swfobject.embedSWF("/swfs/mySwf.swf","mySwf_div","456","123","7","/swfs/expressInstall.swf",{"myVar":"value 1 \u003E 2","id":"mySwf"},{"play":true},{"id":"mySwf"})
|
5
6
|
//]]>
|
6
|
-
</script><div id="mySwf_div">
|
7
|
-
<a href="http://www.adobe.com/go/getflashplayer">
|
7
|
+
</script><div id="mySwf_div"><a href="http://www.adobe.com/go/getflashplayer">
|
8
8
|
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
|
9
|
-
</a>
|
10
|
-
</div><script type="text/javascript">
|
9
|
+
</a></div><script type="text/javascript">
|
11
10
|
//<![CDATA[
|
12
|
-
swfobject.addDomLoadEvent(function(){
|
11
|
+
swfobject.addDomLoadEvent(function(){SwfFu.setup($('#mySwf')[0], SomeClass, [{"be":"good"}])})
|
13
12
|
//]]>
|
14
13
|
</script>
|
15
14
|
EOS
|
@@ -36,7 +35,7 @@ swfobject.registerObject("mySwf_container", "7", "/swfs/expressInstall.swf");
|
|
36
35
|
<!--<![endif]-->
|
37
36
|
</object></div><script type="text/javascript">
|
38
37
|
//<![CDATA[
|
39
|
-
|
38
|
+
SwfFu.setup($('#mySwf')[0], SomeClass, [{"be":"good"}])
|
40
39
|
//]]>
|
41
40
|
</script>
|
42
41
|
EOS
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SwfPathTest < ActionView::TestCase
|
4
|
+
context "with no special asset host" do
|
5
|
+
should "deduce the extension" do
|
6
|
+
assert_equal swf_path("example.swf"), swf_path("example")
|
7
|
+
assert_match "/swfs/example.swf", swf_path("example.swf")
|
8
|
+
end
|
9
|
+
|
10
|
+
should "accept relative paths" do
|
11
|
+
assert_equal "/swfs/whatever/example.swf", swf_path("whatever/example.swf")
|
12
|
+
end
|
13
|
+
|
14
|
+
should "leave full paths alone" do
|
15
|
+
["/full/path.swf", "http://www.example.com/whatever.swf"].each do |p|
|
16
|
+
assert_equal p, swf_path(p)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
context "with custom asset host" do
|
22
|
+
HOST = "http://assets.example.com"
|
23
|
+
setup do
|
24
|
+
ActionController::Base.asset_host = HOST
|
25
|
+
end
|
26
|
+
|
27
|
+
teardown do
|
28
|
+
ActionController::Base.asset_host = nil
|
29
|
+
end
|
30
|
+
|
31
|
+
should "take it into account" do
|
32
|
+
assert_equal "#{HOST}/swfs/whatever.swf", swf_path("whatever")
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SwfTagTest < ActionView::TestCase
|
4
|
+
|
5
|
+
COMPLEX_OPTIONS = { :width => "456", :height => 123,
|
6
|
+
:flashvars => {:myVar => "value 1 > 2"}.freeze,
|
7
|
+
:javascript_class => "SomeClass",
|
8
|
+
:initialize => {:be => "good"}.freeze,
|
9
|
+
:parameters => {:play => true}.freeze
|
10
|
+
}.freeze
|
11
|
+
|
12
|
+
should "understand size" do
|
13
|
+
assert_equal swf_tag("hello", :size => "123x456"),
|
14
|
+
swf_tag("hello", :width => 123, :height => "456")
|
15
|
+
end
|
16
|
+
|
17
|
+
should "only accept valid modes" do
|
18
|
+
assert_raise(ArgumentError) { swf_tag("xyz", :mode => :xyz) }
|
19
|
+
end
|
20
|
+
|
21
|
+
context "with custom defaults" do
|
22
|
+
setup do
|
23
|
+
test = {:flashvars=> {:xyz => "abc", :hello => "world"}.freeze, :mode => :static, :size => "400x300"}.freeze
|
24
|
+
@expect = swf_tag("test", test)
|
25
|
+
@expect_with_hello = swf_tag("test", :flashvars => {:xyz => "abc", :hello => "my friend"}, :mode => :static, :size => "400x300")
|
26
|
+
ActionView::Base.swf_default_options = test
|
27
|
+
end
|
28
|
+
|
29
|
+
should "respect them" do
|
30
|
+
assert_equal @expect, swf_tag("test")
|
31
|
+
end
|
32
|
+
|
33
|
+
should "merge suboptions" do
|
34
|
+
assert_equal @expect_with_hello, swf_tag("test", :flashvars => {:hello => "my friend"}.freeze)
|
35
|
+
end
|
36
|
+
|
37
|
+
teardown { ActionView::Base.swf_default_options = {} }
|
38
|
+
end
|
39
|
+
|
40
|
+
context "with proc options" do
|
41
|
+
should "call them" do
|
42
|
+
expect = swf_tag("test", :id => "generated_id_for_test")
|
43
|
+
assert_equal expect, swf_tag("test", :id => Proc.new{|arg| "generated_id_for_#{arg}"})
|
44
|
+
end
|
45
|
+
|
46
|
+
should "call global default's everytime" do
|
47
|
+
expect1 = swf_tag("test", :id => "call_number_1")
|
48
|
+
expect2 = swf_tag("test", :id => "call_number_2")
|
49
|
+
cnt = 0
|
50
|
+
ActionView::Base.swf_default_options = { :id => Proc.new{ "call_number_#{cnt+=1}" }}
|
51
|
+
assert_equal expect1, swf_tag("test")
|
52
|
+
assert_equal expect2, swf_tag("test")
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context "with static mode" do
|
57
|
+
setup { ActionView::Base.swf_default_options = {:mode => :static} }
|
58
|
+
|
59
|
+
should "deal with string flashvars" do
|
60
|
+
assert_equal swf_tag("hello", :flashvars => "xyz=abc", :mode => :static),
|
61
|
+
swf_tag("hello", :flashvars => {:xyz => "abc"}, :mode => :static)
|
62
|
+
end
|
63
|
+
|
64
|
+
should "produce the expected code" do
|
65
|
+
assert_same_stripped STATIC_RESULT, swf_tag("mySwf", COMPLEX_OPTIONS.merge(:html_options => {:class => "lots"}.freeze).freeze)
|
66
|
+
end
|
67
|
+
|
68
|
+
teardown { ActionView::Base.swf_default_options = {} }
|
69
|
+
end
|
70
|
+
|
71
|
+
context "with dynamic mode" do
|
72
|
+
should "produce the expected code" do
|
73
|
+
assert_same_stripped DYNAMIC_RESULT, swf_tag("mySwf", COMPLEX_OPTIONS)
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
|
78
|
+
should "enforce HTML id validity" do
|
79
|
+
div_result = '<div id="swf_123-456_ok___X_div">'
|
80
|
+
assert_match /#{div_result}/, swf_tag("123-456_ok$!+X")
|
81
|
+
obj_result = '"id":"swf_123-456_ok___X"'
|
82
|
+
assert_match /#{obj_result}/, swf_tag("123-456_ok$!+X")
|
83
|
+
end
|
84
|
+
|
85
|
+
should "treat initialize arrays as list of parameters" do
|
86
|
+
assert_match '"hello","world"])', swf_tag("mySwf", :initialize => ["hello", "world"], :javascript_class => "SomeClass")
|
87
|
+
end
|
88
|
+
|
89
|
+
should "be html safe" do
|
90
|
+
assert swf_tag("test").html_safe?
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
data/test/test_helper.rb
CHANGED
@@ -1,21 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
gem 'activesupport', '~> 2.3'
|
4
|
-
require 'active_support'
|
5
|
-
gem 'activerecord', '~> 2.3'
|
6
|
-
require 'active_record'
|
7
|
-
gem 'actionpack', '~> 2.3'
|
8
|
-
require 'active_support'
|
9
|
-
require 'action_view'
|
10
|
-
require 'action_controller'
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
11
3
|
|
12
|
-
|
13
|
-
require
|
14
|
-
require "
|
15
|
-
require 'shoulda'
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
require "shoulda-context"
|
16
7
|
|
17
|
-
|
8
|
+
Rails.backtrace_cleaner.remove_silencers!
|
9
|
+
|
10
|
+
# Load support files
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
18
12
|
|
19
|
-
def assert_starts_with(start, what)
|
20
|
-
assert what.starts_with?(start), "#{what} does not start with #{start}"
|
21
|
-
end
|
metadata
CHANGED
@@ -1,103 +1,238 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: swf_fu
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 3
|
8
|
-
- 3
|
9
|
-
version: 1.3.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
-
|
13
|
-
- Marcus Wyatt
|
7
|
+
authors:
|
8
|
+
- Marc-André Lafortune
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
date: 2012-03-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.1'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: coffee-script
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
23
39
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: shoulda-context
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
33
54
|
type: :development
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: sqlite3
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: Treat your swf files like other assets
|
79
|
+
email:
|
80
|
+
- github@marc-andre.ca
|
42
81
|
executables: []
|
43
|
-
|
44
82
|
extensions: []
|
45
|
-
|
46
|
-
|
47
|
-
-
|
48
|
-
-
|
49
|
-
|
50
|
-
-
|
51
|
-
-
|
83
|
+
extra_rdoc_files: []
|
84
|
+
files:
|
85
|
+
- app/assets/javascripts/swf_fu.js.coffee
|
86
|
+
- app/assets/javascripts/swfobject.js
|
87
|
+
- app/helpers/swf_fu_helper.rb
|
88
|
+
- app/models/swf_fu/generator.rb
|
89
|
+
- lib/swf_fu/version.rb
|
90
|
+
- lib/swf_fu.rb
|
91
|
+
- lib/tasks/swf_fu_tasks.rake
|
52
92
|
- LICENSE
|
93
|
+
- Rakefile
|
53
94
|
- README.rdoc
|
54
|
-
-
|
55
|
-
- assets/javascripts/
|
56
|
-
- assets/
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
|
64
|
-
|
95
|
+
- test/dummy/app/assets/javascripts/application.js
|
96
|
+
- test/dummy/app/assets/javascripts/example.js.coffee
|
97
|
+
- test/dummy/app/assets/stylesheets/application.css
|
98
|
+
- test/dummy/app/controllers/application_controller.rb
|
99
|
+
- test/dummy/app/helpers/application_helper.rb
|
100
|
+
- test/dummy/app/views/application/example.html.erb
|
101
|
+
- test/dummy/app/views/layouts/application.html.erb
|
102
|
+
- test/dummy/config/application.rb
|
103
|
+
- test/dummy/config/boot.rb
|
104
|
+
- test/dummy/config/database.yml
|
105
|
+
- test/dummy/config/environment.rb
|
106
|
+
- test/dummy/config/environments/development.rb
|
107
|
+
- test/dummy/config/environments/production.rb
|
108
|
+
- test/dummy/config/environments/test.rb
|
109
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
110
|
+
- test/dummy/config/initializers/inflections.rb
|
111
|
+
- test/dummy/config/initializers/mime_types.rb
|
112
|
+
- test/dummy/config/initializers/secret_token.rb
|
113
|
+
- test/dummy/config/initializers/session_store.rb
|
114
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
115
|
+
- test/dummy/config/locales/en.yml
|
116
|
+
- test/dummy/config/routes.rb
|
117
|
+
- test/dummy/config.ru
|
118
|
+
- test/dummy/db/development.sqlite3
|
119
|
+
- test/dummy/db/test.sqlite3
|
120
|
+
- test/dummy/log/development.log
|
121
|
+
- test/dummy/log/test.log
|
122
|
+
- test/dummy/public/404.html
|
123
|
+
- test/dummy/public/422.html
|
124
|
+
- test/dummy/public/500.html
|
125
|
+
- test/dummy/public/favicon.ico
|
126
|
+
- test/dummy/public/swfs/example.swf
|
127
|
+
- test/dummy/public/swfs/source/Example.as
|
128
|
+
- test/dummy/public/swfs/source/example.fla
|
129
|
+
- test/dummy/Rakefile
|
130
|
+
- test/dummy/README.rdoc
|
131
|
+
- test/dummy/script/rails
|
132
|
+
- test/dummy/tmp/cache/assets/C14/440/sprockets%2F7165b4ee637490447887e423298985d7
|
133
|
+
- test/dummy/tmp/cache/assets/CC9/940/sprockets%2F384b7526ce19a1676cf839c97e283d65
|
134
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
135
|
+
- test/dummy/tmp/cache/assets/D21/B30/sprockets%2F3c26aead77064197ac98a91d4c46f879
|
136
|
+
- test/dummy/tmp/cache/assets/D2B/260/sprockets%2F85f8be26166cf70b5d954fff37a42987
|
137
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
138
|
+
- test/dummy/tmp/cache/assets/D41/740/sprockets%2F414358cbdcf6fbb7d59c54ea24824407
|
139
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
140
|
+
- test/dummy/tmp/cache/assets/D4F/590/sprockets%2Ff4f8bbee986218b7a2173c69ca28429e
|
141
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
142
|
+
- test/dummy/tmp/cache/assets/D68/4F0/sprockets%2F448bbac6b7407ae050c726c3491fde6d
|
143
|
+
- test/dummy/tmp/cache/assets/DB2/170/sprockets%2Fc6c10bc26cb025a7b1beb05c24198fae
|
144
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
145
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
146
|
+
- test/dummy/tmp/cache/assets/E1E/4F0/sprockets%2Fefa070e0f1ca299bc30dad1ff1b196ee
|
147
|
+
- test/dummy/tmp/cache/assets/E6D/DA0/sprockets%2F753c6b9fddf2dffb5f978cd1ae50cda8
|
148
|
+
- test/dummy/tmp/pids/server.pid
|
149
|
+
- test/support/assert_same_striped.rb
|
150
|
+
- test/support/fixtures/results.rb
|
151
|
+
- test/swf_path_test.rb
|
152
|
+
- test/swf_tag_test.rb
|
153
|
+
- test/test_helper.rb
|
154
|
+
homepage: http://github.com/marcandre/swf_fu
|
65
155
|
licenses: []
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
swf_fu has rake tasks to install and uninstall the assets required
|
70
|
-
when running within a rails project. To enable the rake tasks, add
|
71
|
-
the following require to your Rakefile:
|
72
|
-
|
73
|
-
require 'swf_fu/tasks'
|
74
|
-
|
75
|
-
rdoc_options:
|
76
|
-
- --charset=UTF-8
|
77
|
-
require_paths:
|
156
|
+
post_install_message:
|
157
|
+
rdoc_options: []
|
158
|
+
require_paths:
|
78
159
|
- lib
|
79
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
- 0
|
92
|
-
version: "0"
|
160
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
+
none: false
|
168
|
+
requirements:
|
169
|
+
- - ! '>='
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
93
172
|
requirements: []
|
94
|
-
|
95
173
|
rubyforge_project:
|
96
|
-
rubygems_version: 1.
|
174
|
+
rubygems_version: 1.8.19
|
97
175
|
signing_key:
|
98
176
|
specification_version: 3
|
99
|
-
summary:
|
100
|
-
test_files:
|
101
|
-
- test/
|
102
|
-
- test/
|
177
|
+
summary: Rails.supported_asset_types << 'swf'
|
178
|
+
test_files:
|
179
|
+
- test/dummy/app/assets/javascripts/application.js
|
180
|
+
- test/dummy/app/assets/javascripts/example.js.coffee
|
181
|
+
- test/dummy/app/assets/stylesheets/application.css
|
182
|
+
- test/dummy/app/controllers/application_controller.rb
|
183
|
+
- test/dummy/app/helpers/application_helper.rb
|
184
|
+
- test/dummy/app/views/application/example.html.erb
|
185
|
+
- test/dummy/app/views/layouts/application.html.erb
|
186
|
+
- test/dummy/config/application.rb
|
187
|
+
- test/dummy/config/boot.rb
|
188
|
+
- test/dummy/config/database.yml
|
189
|
+
- test/dummy/config/environment.rb
|
190
|
+
- test/dummy/config/environments/development.rb
|
191
|
+
- test/dummy/config/environments/production.rb
|
192
|
+
- test/dummy/config/environments/test.rb
|
193
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
194
|
+
- test/dummy/config/initializers/inflections.rb
|
195
|
+
- test/dummy/config/initializers/mime_types.rb
|
196
|
+
- test/dummy/config/initializers/secret_token.rb
|
197
|
+
- test/dummy/config/initializers/session_store.rb
|
198
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
199
|
+
- test/dummy/config/locales/en.yml
|
200
|
+
- test/dummy/config/routes.rb
|
201
|
+
- test/dummy/config.ru
|
202
|
+
- test/dummy/db/development.sqlite3
|
203
|
+
- test/dummy/db/test.sqlite3
|
204
|
+
- test/dummy/log/development.log
|
205
|
+
- test/dummy/log/test.log
|
206
|
+
- test/dummy/public/404.html
|
207
|
+
- test/dummy/public/422.html
|
208
|
+
- test/dummy/public/500.html
|
209
|
+
- test/dummy/public/favicon.ico
|
210
|
+
- test/dummy/public/swfs/example.swf
|
211
|
+
- test/dummy/public/swfs/source/Example.as
|
212
|
+
- test/dummy/public/swfs/source/example.fla
|
213
|
+
- test/dummy/Rakefile
|
214
|
+
- test/dummy/README.rdoc
|
215
|
+
- test/dummy/script/rails
|
216
|
+
- test/dummy/tmp/cache/assets/C14/440/sprockets%2F7165b4ee637490447887e423298985d7
|
217
|
+
- test/dummy/tmp/cache/assets/CC9/940/sprockets%2F384b7526ce19a1676cf839c97e283d65
|
218
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
219
|
+
- test/dummy/tmp/cache/assets/D21/B30/sprockets%2F3c26aead77064197ac98a91d4c46f879
|
220
|
+
- test/dummy/tmp/cache/assets/D2B/260/sprockets%2F85f8be26166cf70b5d954fff37a42987
|
221
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
222
|
+
- test/dummy/tmp/cache/assets/D41/740/sprockets%2F414358cbdcf6fbb7d59c54ea24824407
|
223
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
224
|
+
- test/dummy/tmp/cache/assets/D4F/590/sprockets%2Ff4f8bbee986218b7a2173c69ca28429e
|
225
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
226
|
+
- test/dummy/tmp/cache/assets/D68/4F0/sprockets%2F448bbac6b7407ae050c726c3491fde6d
|
227
|
+
- test/dummy/tmp/cache/assets/DB2/170/sprockets%2Fc6c10bc26cb025a7b1beb05c24198fae
|
228
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
229
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
230
|
+
- test/dummy/tmp/cache/assets/E1E/4F0/sprockets%2Fefa070e0f1ca299bc30dad1ff1b196ee
|
231
|
+
- test/dummy/tmp/cache/assets/E6D/DA0/sprockets%2F753c6b9fddf2dffb5f978cd1ae50cda8
|
232
|
+
- test/dummy/tmp/pids/server.pid
|
233
|
+
- test/support/assert_same_striped.rb
|
234
|
+
- test/support/fixtures/results.rb
|
235
|
+
- test/swf_path_test.rb
|
236
|
+
- test/swf_tag_test.rb
|
103
237
|
- test/test_helper.rb
|
238
|
+
has_rdoc:
|