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 CHANGED
@@ -32,4 +32,4 @@ h2. TODO
32
32
 
33
33
  # Tests
34
34
  # Expand README
35
- License
35
+ License
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 3
4
- :patch: 9
3
+ :minor: 4
4
+ :patch: 0
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 # . -> ./_site
10
- playersdk <path to write generated site> # . -> <path>
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 '<source>/_config.yml' but can be overriden
12
+ Configuration is read from '<workspace directory>/_config.yml' but can be overriden
14
13
  using the following options:
15
14
 
16
15
  HELP
@@ -37,29 +37,33 @@ module PlayerSDK
37
37
  end
38
38
 
39
39
  def find_version
40
- file = File.read("#{self.config['build_dir']}/version.properties")
40
+ if File.exists?("#{self.config['build_dir']}/version.properties")
41
+ file = File.read("#{self.config['build_dir']}/version.properties")
41
42
 
42
- if (file == nil)
43
- puts "No version file found"
44
- return
45
- end
43
+ if (file == nil)
44
+ puts "Something went wrong reading the file"
45
+ return
46
+ end
46
47
 
47
- version_s = ""
48
- file.scan(/version.([a-z]+) = ('?)([\w]+)('?)/i).each { |key, q1, value, q2|
49
- if value != ''
50
- if key == 'text'
51
- version_s = version_s.slice(0, version_s.length - 1)
52
- end
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
- version_s += "#{value}."
55
- end
56
- }
55
+ version_s += "#{value}."
56
+ end
57
+ }
57
58
 
58
- version_s = version_s.slice(0, version_s.length - 1)
59
+ version_s = version_s.slice(0, version_s.length - 1)
59
60
 
60
- self.version = version_s
61
+ self.version = version_s
61
62
 
62
- puts "Using version #{self.version}"
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: videojuicer-player-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Livesley