csd 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{csd}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Technology Transfer Alliance Team"]
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: UTF-8 -*-
2
- require 'csd/application/default/base'
2
+ require 'csd/application/default'
3
3
  require 'csd/application/decklink/base'
4
4
 
5
5
  module CSD
@@ -35,7 +35,7 @@ module CSD
35
35
  end
36
36
 
37
37
  def scopes(action)
38
- about.scopes.key?(action) ? about.scopes[action] : []
38
+ (about.scopes.is_a?(Hash) and about.scopes.key?(action)) ? about.scopes[action] : []
39
39
  end
40
40
 
41
41
  # This method will look for application and task specific optionsfiles of the current application module.
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: UTF-8 -*-
2
- require 'csd/application/default/base'
2
+ require 'csd/application/default'
3
3
  require 'csd/application/i2conf/base'
4
4
 
5
5
  module CSD
@@ -45,7 +45,8 @@ module CSD
45
45
  content = Path.sysctl_conf.file? ? File.read(Path.sysctl_conf) : ''
46
46
  Cmd.copy Path.sysctl_conf, Path.new_sysctl_conf
47
47
  UI.info "Adding modifications to #{Path.new_sysctl_conf}".cyan
48
- modifications = ['', '# Changes made by the AI'] + OPTIMUM_BUFFERS.map { |key, value| %{#{key} = #{value}} }
48
+ modifications = ['# Changes made by the AI'] + OPTIMUM_BUFFERS.map { |key, value| %{#{key} = #{value}} }
49
+ modifications = content + "\n" + modifications
49
50
  Cmd.touch_and_replace_content Path.new_sysctl_conf, modifications.join("\n"), :internal => true
50
51
  # We cannot use Cmd.copy here, because Cmd.copy has no superuser privileges.
51
52
  # And since we are for sure on Ubuntu, these commands will work.
@@ -6,6 +6,7 @@ module CSD
6
6
  #
7
7
  # * +minisip+ has been assigned error status codes 200-280
8
8
  # * +decklink+ has been assigned error status codes 280-299
9
+ # * +graphics+ has been assigned error status codes 300-349
9
10
  #
10
11
  module Error
11
12
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Technology Transfer Alliance Team