videojuicer-player-sdk 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 0
4
+ :patch: 1
data/bin/playersdk CHANGED
@@ -7,7 +7,7 @@ Videojuicer Player 3.0 SDK
7
7
 
8
8
  Basic Command Line Usage:
9
9
  playersdk
10
- playersdk <path to workspace directory>
10
+ playersdk <path to configuration file>
11
11
 
12
12
  Configuration is read from '<workspace directory>/_config.yml' but can be overriden
13
13
  using the following options:
@@ -23,15 +23,11 @@ options = { }
23
23
  opts = OptionParser.new do |opts|
24
24
  opts.banner = help
25
25
 
26
- opts.on("--build-dir [DIR]", "Location of the build targets") do |location|
27
- options['build_dir'] = location unless location.nil?
26
+ opts.on("--config [PATH]", "Location of the YAML task list to use") do |location|
27
+ options['config_path'] = location unless location.nil?
28
28
  end
29
29
 
30
- opts.on("--workspace-dir [DIR]", "Location of the workspace directory") do |location|
31
- options['workspace_dir'] = location unless location.nil?
32
- end
33
-
34
- opts.on("--verbose", "Use verbose ouput mode") do
30
+ opts.on("--verbose", "Use verbose output mode") do
35
31
  options['verbose'] = true
36
32
  end
37
33
 
@@ -94,10 +94,9 @@ module PlayerSDK
94
94
  puts "Moving Flex framework RSLs to #{value['target']}"
95
95
 
96
96
  self.compiler.run_command("cp #{config['flex_sdk']}/frameworks/rsls/#{value['framework_rsl']}.swz #{config['build_dir']}/#{value['target']}.swz")
97
-
98
97
  self.compiler.run_command("cp #{config['flex_sdk']}/frameworks/rsls/#{value['framework_rsl']}.swf #{config['build_dir']}/#{value['target']}.swf")
99
98
 
100
- self.compiler.run_command("chmod 644 #{config['build_dir']}/#{config['target']}.sw*")
99
+ #self.compiler.run_command("chmod 644 #{config['build_dir']}/#{config['target']}.sw*")
101
100
  when "clean"
102
101
  puts "Cleaning directories ..."
103
102
 
data/lib/playersdk.rb CHANGED
@@ -19,7 +19,7 @@ module PlayerSDK
19
19
  DEFAULTS = {
20
20
  'build_dir' => 'builds',
21
21
  'temp_dir' => 'tmp',
22
- 'workspace_dir' => '.',
22
+ 'config_path' => './config.yml',
23
23
  'flex_sdk' => '',
24
24
  'flex_framework_swc' => 'frameworks/libs/framework.swc',
25
25
  'flex_framework_version' => '',
@@ -36,14 +36,14 @@ module PlayerSDK
36
36
  def self.configuration(override)
37
37
  # _config.yml may override default source location, but until
38
38
  # then, we need to know where to look for _config.yml
39
- workspace_dir = override['workspace_dir'] || PlayerSDK::DEFAULTS['workspace_dir']
39
+ config_path = override['config_path'] || PlayerSDK::DEFAULTS['config_path']
40
40
 
41
41
  # Get configuration from <source>/config.yml
42
42
  config = {}
43
- config_file = File.join(workspace_dir, 'config.yml')
43
+
44
44
  begin
45
- config = YAML.load_file(config_file)
46
- puts "Configuration from #{config_file}"
45
+ config = YAML.load_file(config_path)
46
+ puts "Configuration from #{config_path}"
47
47
  rescue => err
48
48
  puts "WARNING: Could not read configuration. Using defaults (and options)."
49
49
  puts "\t" + err
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Livesley
@@ -51,7 +51,6 @@ files:
51
51
  - lib/playersdk/compilers/flex.rb
52
52
  has_rdoc: true
53
53
  homepage: http://developer.videojuicer.com
54
- licenses:
55
54
  post_install_message:
56
55
  rdoc_options:
57
56
  - --charset=UTF-8
@@ -72,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
71
  requirements: []
73
72
 
74
73
  rubyforge_project:
75
- rubygems_version: 1.3.5
74
+ rubygems_version: 1.2.0
76
75
  signing_key:
77
76
  specification_version: 2
78
77
  summary: Videojuicer Player SDK runtime and compiler.