flex-sdk 0.3.2 → 0.3.3
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/VERSION +1 -1
- data/flex-sdk.gemspec +2 -2
- data/lib/flex-sdk.rb +7 -11
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/flex-sdk.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{flex-sdk}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jonathan Hoskin"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-03}
|
13
13
|
s.description = %q{Flex SDK Gem for redistribution to vWork servers and developers}
|
14
14
|
s.email = %q{jonathan.hoskin@visfleet.com}
|
15
15
|
s.executables = ["flex-sdk-path", "flex-sdk-prime"]
|
data/lib/flex-sdk.rb
CHANGED
@@ -14,12 +14,12 @@ class FlexSDK
|
|
14
14
|
# These variables are determined at runtime and combined into one hash
|
15
15
|
sdk_name = "flex_sdk_" + sdk_ver
|
16
16
|
config_hash["sdk_name"] = sdk_name
|
17
|
-
|
18
|
-
config_hash["
|
19
|
-
config_hash["cdn_file"] = cdn_path +
|
17
|
+
sdk_zipfile = sdk_name + ".zip"
|
18
|
+
config_hash["sdk_zipfile"] = sdk_zipfile
|
19
|
+
config_hash["cdn_file"] = cdn_path + sdk_zipfile
|
20
20
|
dest_dir = File.expand_path(File.join((File.dirname(__FILE__)), "..", vendor_path))
|
21
21
|
config_hash["dest_dir"] = dest_dir
|
22
|
-
config_hash["dest_file"] = File.join(dest_dir,
|
22
|
+
config_hash["dest_file"] = File.join(dest_dir, sdk_zipfile)
|
23
23
|
config_hash["sdk_dir"] = File.join(dest_dir, sdk_name)
|
24
24
|
|
25
25
|
config_hash
|
@@ -33,19 +33,15 @@ class FlexSDK
|
|
33
33
|
|
34
34
|
# Download the SDK zip file to the gem
|
35
35
|
def download(config)
|
36
|
-
require 'fileutils'
|
37
36
|
|
38
37
|
dest_dir = config["dest_dir"]
|
39
38
|
dest_file = config["dest_file"]
|
40
39
|
cdn_file = config["cdn_file"]
|
41
40
|
|
42
|
-
# Make sure the destination dir (likely GEM_NAME/vendor/) exists
|
43
|
-
FileUtils.mkdir_p dest_dir
|
44
|
-
|
45
41
|
puts "\n"
|
46
42
|
unless File.file?(dest_file)
|
47
43
|
puts "Downloading SDK\n\tFrom:\t#{cdn_file}\n\tTo:\t#{dest_file}\n\n"
|
48
|
-
`
|
44
|
+
`curl #{cdn_file} --create-dirs -o #{dest_file} `
|
49
45
|
if $?.to_i != 0
|
50
46
|
raise "Failed to download Flex SDK\n\n"
|
51
47
|
end
|
@@ -58,12 +54,12 @@ class FlexSDK
|
|
58
54
|
def unzip(config)
|
59
55
|
sdk_dir = config["sdk_dir"]
|
60
56
|
dest_file = config["dest_file"]
|
61
|
-
dest_dir = config["dest_dir"]
|
62
57
|
|
63
58
|
puts "\n"
|
59
|
+
|
64
60
|
unless File.directory?(sdk_dir)
|
65
61
|
puts "Unzipping SDK\n\tFrom:\t#{dest_file}\n\tTo:\t#{sdk_dir}/\n\n"
|
66
|
-
`unzip #{dest_file} -d #{
|
62
|
+
`unzip #{dest_file} -d #{sdk_dir}`
|
67
63
|
if $?.to_i != 0
|
68
64
|
raise "Failed to unzip Flex SDK\n\n"
|
69
65
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flex-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Hoskin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-03 00:00:00 +13:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|