csd 0.1.2 → 0.1.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 CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{csd}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
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"]
data/lib/csd.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Loading all files in CSD
2
3
  require 'csd/error'
3
4
  require 'csd/options'
@@ -1,2 +1,3 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), 'application', 'default')
2
3
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module CSD
2
3
  # This namespace holds all individual application Modules
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'tmpdir'
2
3
 
3
4
  module CSD
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), 'default')
2
3
  Dir.glob(File.join(File.dirname(__FILE__), 'minisip', '*.rb')) { |file| require file }
3
4
  Dir.glob(File.join(File.dirname(__FILE__), 'minisip', 'unix', '*.rb')) { |file| require file }
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), '..', 'default', 'base')
2
3
 
3
4
  module CSD
@@ -106,6 +107,7 @@ module CSD
106
107
  end
107
108
 
108
109
  def fix_ubuntu_10_04
110
+ # TODO put backup file in Path.xxx
109
111
  if File.exist?("#{Path.giomm_header}.ai-backup")
110
112
  UI.warn "giomm-2.4 seems to be fixed already, I won't touch it. Delete `#{"#{Path.giomm_header}.ai-backup"}´ to enforce it."
111
113
  else
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), '..', '..', 'error')
2
3
 
3
4
  module CSD
@@ -0,0 +1 @@
1
+ # encoding: utf-8
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # This file gets eval'ed by the global options parser in lib/csd/rb
2
3
  # TODO: There must be a nicer solution for this.
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), '..', 'base')
2
3
 
3
4
  module CSD
@@ -21,7 +22,7 @@ module CSD
21
22
 
22
23
  def install_aptitude_dependencies
23
24
  DEBIAN_DEPENDENCIES.each do |apt|
24
- Cmd.run("sudo apt-get --yes install #{apt}")
25
+ Cmd.run("sudo apt-get install #{apt} --yes --fix-missing", :die_on_failure => true)
25
26
  end
26
27
  end
27
28
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'ostruct'
2
3
  require 'active_support/inflector'
3
4
  require 'active_support/core_ext/string/inflections'
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'pathname'
2
3
  require 'ostruct'
3
4
 
@@ -147,6 +148,7 @@ module CSD
147
148
  # [+:exit_on_failure+] If the exit code of the command was not 0, exit the CSD application.
148
149
  #
149
150
  def run(cmd, params={})
151
+ cmd = cmd.to_s
150
152
  default_params = { :die_on_failure => true, :silent => false }
151
153
  params = default_params.merge(params)
152
154
  unless params[:silent]
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module CSD
2
3
  # In this module we will keep all types of errors in a readable hierarchy
3
4
  #
@@ -1 +1,2 @@
1
+ # encoding: utf-8
1
2
  Dir.glob(File.join(File.dirname(__FILE__), 'extensions', '**', '*.rb')) { |file| require file }
@@ -1,4 +1,4 @@
1
- module CSD
1
+ # encoding: utf-8module CSD
2
2
  module Extensions
3
3
  module Core
4
4
  module Array
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'pathname'
2
3
 
3
4
  module CSD
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module CSD
2
3
  module Extensions
3
4
  module Core
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module CSD
2
3
  module Extensions
3
4
  module Core
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), 'string')
2
3
  require 'optparse'
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), 'string')
2
3
 
3
4
  module CSD
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'term/ansicolor'
2
3
 
3
4
  module CSD
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module CSD
2
3
  module Extensions
3
4
  module Gem
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module CSD
2
3
  class GlobalOpenStruct
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Ruby standard library
2
3
  require 'optparse'
3
4
  require 'optparse/time'
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), 'global_open_struct')
2
3
 
3
4
  module CSD
@@ -1 +1,2 @@
1
+ # encoding: utf-8
1
2
  Dir.glob(File.join(File.dirname(__FILE__), 'ui', '*.rb')) { |file| require file }
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), 'ui')
2
3
 
3
4
  module CSD
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module CSD
2
3
  class UI
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.join(File.dirname(__FILE__), 'path')
2
3
 
3
4
  module CSD
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Technology Transfer Alliance Team