flashsdk_sqe 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/assets/playerglobal.swc +0 -0
- data/lib/flashsdk/generators/templates/Gemfile +1 -1
- data/lib/flashsdk/generators/templates/rakefileFlashsdk.rb +1 -0
- data/lib/flashsdk.rb +1 -5
- data/lib/sprout/remote_file_target.rb +39 -0
- data/pkg/flashsdk_sqe-0.0.7.gem +0 -0
- metadata +15 -12
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
Binary file
|
data/lib/flashsdk.rb
CHANGED
@@ -3,10 +3,6 @@ require 'sprout'
|
|
3
3
|
lib = File.expand_path File.dirname(__FILE__)
|
4
4
|
$:.unshift lib unless $:.include?(lib)
|
5
5
|
|
6
|
-
module FlashSDK
|
7
|
-
VERSION = '0.0.6'
|
8
|
-
end
|
9
|
-
|
10
6
|
require 'benchmark'
|
11
7
|
require 'flashsdk/module'
|
12
8
|
require 'flashsdk/generators/flash_helper'
|
@@ -25,4 +21,4 @@ require 'flashsdk/adt'
|
|
25
21
|
require 'flashsdk/adl'
|
26
22
|
require 'flashsdk/fdb'
|
27
23
|
require 'flashplayer'
|
28
|
-
|
24
|
+
require 'sprout/remote_file_target'
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'digest/md5'
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
module Sprout
|
5
|
+
|
6
|
+
class RemoteFileTarget < FileTarget
|
7
|
+
|
8
|
+
def move_player_lib
|
9
|
+
path = File.join(File.dirname(__FILE__), "..", "..", "assets", "playerglobal.swc")
|
10
|
+
to_path = File.join(unpacked_file, "frameworks", "libs", "player", "10.2")
|
11
|
+
FileUtils.mkdir(to_path)
|
12
|
+
FileUtils.cp(path, to_path)
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def load_unpack_or_ignore_archive
|
18
|
+
if(!unpacked_files_exist?)
|
19
|
+
if(!File.exists?(downloaded_file))
|
20
|
+
bytes = download_archive
|
21
|
+
write_archive bytes
|
22
|
+
end
|
23
|
+
|
24
|
+
# If we *just* downloaded the file,
|
25
|
+
# use the bytes directly, otherwise
|
26
|
+
# read them off disk from a previous
|
27
|
+
# download attempt:
|
28
|
+
bytes ||= File.open(downloaded_file, 'rb').read
|
29
|
+
|
30
|
+
if should_unpack?(bytes, md5)
|
31
|
+
unpack_archive
|
32
|
+
end
|
33
|
+
|
34
|
+
self.move_player_lib
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flashsdk_sqe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-24 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprout
|
16
|
-
requirement: &
|
16
|
+
requirement: &70137227866500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.1.18.pre
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70137227866500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sprout-flex4sdk-tool
|
27
|
-
requirement: &
|
27
|
+
requirement: &70137227866100 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70137227866100
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: shoulda
|
38
|
-
requirement: &
|
38
|
+
requirement: &70137227865640 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70137227865640
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: mocha
|
49
|
-
requirement: &
|
49
|
+
requirement: &70137227865220 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70137227865220
|
58
58
|
description: The Flash SDK Rubygem is brought to you by Project Sprouts (http://projectsprouts.org)
|
59
59
|
email: kazantsev.nickolay@gmail.com
|
60
60
|
executables:
|
@@ -65,6 +65,7 @@ executables:
|
|
65
65
|
extensions: []
|
66
66
|
extra_rdoc_files: []
|
67
67
|
files:
|
68
|
+
- assets/playerglobal.swc
|
68
69
|
- bin/flashlog
|
69
70
|
- bin/flashplayer
|
70
71
|
- bin/sprout-as3
|
@@ -116,11 +117,13 @@ files:
|
|
116
117
|
- lib/flashsdk.rb
|
117
118
|
- lib/flex3.rb
|
118
119
|
- lib/flex4.rb
|
120
|
+
- lib/sprout/remote_file_target.rb
|
119
121
|
- pkg/flashsdk_sqe-0.0.1.gem
|
120
122
|
- pkg/flashsdk_sqe-0.0.2.gem
|
121
123
|
- pkg/flashsdk_sqe-0.0.3.gem
|
122
124
|
- pkg/flashsdk_sqe-0.0.4.gem
|
123
125
|
- pkg/flashsdk_sqe-0.0.6.gem
|
126
|
+
- pkg/flashsdk_sqe-0.0.7.gem
|
124
127
|
- POSTINSTALL.rdoc
|
125
128
|
- rakefile.rb
|
126
129
|
- README.textile
|
@@ -196,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
199
|
version: '0'
|
197
200
|
segments:
|
198
201
|
- 0
|
199
|
-
hash:
|
202
|
+
hash: 1494476764122983031
|
200
203
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
204
|
none: false
|
202
205
|
requirements:
|
@@ -205,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
208
|
version: '0'
|
206
209
|
segments:
|
207
210
|
- 0
|
208
|
-
hash:
|
211
|
+
hash: 1494476764122983031
|
209
212
|
requirements: []
|
210
213
|
rubyforge_project:
|
211
214
|
rubygems_version: 1.8.10
|