videojuicer-player-sdk 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -1
- data/VERSION.yml +2 -2
- data/bin/playersdk +3 -4
- data/lib/playersdk/compiler.rb +21 -17
- metadata +1 -1
data/README.textile
CHANGED
data/VERSION.yml
CHANGED
data/bin/playersdk
CHANGED
@@ -6,11 +6,10 @@ help = <<HELP
|
|
6
6
|
Videojuicer Player 3.0 SDK
|
7
7
|
|
8
8
|
Basic Command Line Usage:
|
9
|
-
playersdk
|
10
|
-
playersdk
|
11
|
-
playersdk <path to source> <path to write generated site> # <path> -> <path>
|
9
|
+
playersdk
|
10
|
+
playersdk <path to workspace directory>
|
12
11
|
|
13
|
-
Configuration is read from '<
|
12
|
+
Configuration is read from '<workspace directory>/_config.yml' but can be overriden
|
14
13
|
using the following options:
|
15
14
|
|
16
15
|
HELP
|
data/lib/playersdk/compiler.rb
CHANGED
@@ -37,29 +37,33 @@ module PlayerSDK
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def find_version
|
40
|
-
|
40
|
+
if File.exists?("#{self.config['build_dir']}/version.properties")
|
41
|
+
file = File.read("#{self.config['build_dir']}/version.properties")
|
41
42
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
if (file == nil)
|
44
|
+
puts "Something went wrong reading the file"
|
45
|
+
return
|
46
|
+
end
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
version_s = ""
|
49
|
+
file.scan(/version.([a-z]+) = ('?)([\w]+)('?)/i).each { |key, q1, value, q2|
|
50
|
+
if value != ''
|
51
|
+
if key == 'text'
|
52
|
+
version_s = version_s.slice(0, version_s.length - 1)
|
53
|
+
end
|
53
54
|
|
54
|
-
|
55
|
-
|
56
|
-
|
55
|
+
version_s += "#{value}."
|
56
|
+
end
|
57
|
+
}
|
57
58
|
|
58
|
-
|
59
|
+
version_s = version_s.slice(0, version_s.length - 1)
|
59
60
|
|
60
|
-
|
61
|
+
self.version = version_s
|
61
62
|
|
62
|
-
|
63
|
+
puts "Using version #{self.version}"
|
64
|
+
else
|
65
|
+
puts "No version file found"
|
66
|
+
end
|
63
67
|
end
|
64
68
|
|
65
69
|
def run_task(key, value)
|