csd 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -91,6 +91,13 @@ module CSD
|
|
91
91
|
# On Windows it will just crash here, unless we determine where the heck sudo make install is targetting at :)
|
92
92
|
raise Error::Minisip::BuildDirNotFound, "Sorry, `/usr/local´ could not be found but was requested as MiniSIP target. Use `#{CSD.executable}´ with the option `--this-user´ instead." unless Path.build.directory?
|
93
93
|
end
|
94
|
+
if Options.branch == 'master'
|
95
|
+
# Before TTA made changes in the edge version, this was the location of the address book.
|
96
|
+
# The master branch resembles the vendor's SVN branch. Whereas any other branch is made by TTA.
|
97
|
+
Path.phonebook = Pathname.new(File.join(ENV['HOME'], '.minisip.addr'))
|
98
|
+
else
|
99
|
+
Path.phonebook = Pathname.new(File.join(ENV['HOME'], '.minisip', 'minisip.addr'))
|
100
|
+
end
|
94
101
|
Path.build_bin = Pathname.new(File.join(Path.build, 'bin'))
|
95
102
|
Path.build_gtkgui = Pathname.new(File.join(Path.build_bin, 'minisip_gtkgui'))
|
96
103
|
Path.build_include = Pathname.new(File.join(Path.build, 'include'))
|
@@ -129,7 +136,6 @@ module CSD
|
|
129
136
|
Path.minisip_gnome_png_fallback = Pathname.new(File.join(Path.repository, 'minisip', 'share', 'minisip.png'))
|
130
137
|
Path.minisip_gnome_pixmap = Pathname.new(File.join('/', 'usr', 'share', 'pixmaps', 'minisip_gnome.png'))
|
131
138
|
Path.minisip_desktop_entry = Pathname.new(File.join('/', 'usr', 'share', 'applications', 'minisip.desktop'))
|
132
|
-
Path.phonebook = Pathname.new(File.join(ENV['HOME'], '.minisip.addr'))
|
133
139
|
Path.realtek_firmware = Pathname.new(File.join(Path.work, 'realtek'))
|
134
140
|
Path.intel_firmware = Pathname.new(File.join(Path.work, 'intel'))
|
135
141
|
Path.intel_firmware_src = Pathname.new(File.join(Path.intel_firmware, 'src'))
|
@@ -117,7 +117,8 @@ module CSD
|
|
117
117
|
Cmd.replace Path.repository_sip_conf, 'sip.domain.example', ''
|
118
118
|
# We would like decklink to be the default video device
|
119
119
|
Cmd.replace Path.repository_sip_conf, 'be->commit();', %{be->save("video_device", "decklink:0/720p50@25");be->commit();}
|
120
|
-
#
|
120
|
+
# Switching logging to ON as default, as opposed to OFF
|
121
|
+
Cmd.replace Path.repository_sip_conf, 'be->saveBool("logging",false)', 'be->saveBool("logging",true)'
|
121
122
|
if Options.ffmpeg_first
|
122
123
|
UI.info "Fixing MiniSIP Audio/Video en/decoder source code".green.bold
|
123
124
|
Cmd.replace Path.repository_avcoder_cxx, 'PIX_FMT_RGBA32', 'PIX_FMT_RGB32'
|
@@ -267,7 +268,7 @@ module CSD
|
|
267
268
|
end
|
268
269
|
|
269
270
|
def create_address_book
|
270
|
-
return
|
271
|
+
return unless !Path.phonebook.file? or ::CSD::Application::Minisip::OUTDATED_PHONEBOOKS.include?(File.read(Path.phonebook).hashed)
|
271
272
|
UI.info "Creating default MiniSIP phonebook".green.bold
|
272
273
|
Cmd.touch_and_replace_content Path.phonebook, ::CSD::Application::Minisip::PHONEBOOK_EXAMPLE, :internal => true
|
273
274
|
UI.info " Phonebook successfully saved in #{Path.phonebook}".yellow
|
@@ -4,6 +4,13 @@ module CSD
|
|
4
4
|
module Application
|
5
5
|
module Minisip
|
6
6
|
|
7
|
+
# This Array holds SHA1 hashes of phonebooks that should be overwritten by the AI without asking.
|
8
|
+
#
|
9
|
+
OUTDATED_PHONEBOOKS = [
|
10
|
+
'ad51d1f3ec295dec000d9690bd1b7b801027c958', # This is the default MiniSIP phonebook
|
11
|
+
'611e86dfbf82457d6137371884b8f56d224fbf59' # This is the AI-made phonebook up to version 0.3.1
|
12
|
+
]
|
13
|
+
|
7
14
|
PHONEBOOK_EXAMPLE = %{
|
8
15
|
<phonebook>
|
9
16
|
<name>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# -*- encoding: UTF-8 -*-
|
2
|
+
require 'digest/sha1'
|
2
3
|
require 'csd/vendor/term/ansicolor'
|
3
4
|
require 'csd/vendor/active_support/inflector'
|
4
5
|
|
@@ -19,6 +20,12 @@ module CSD
|
|
19
20
|
%Q{"#{self}"}
|
20
21
|
end
|
21
22
|
|
23
|
+
# Creates a SHA1 hash of the String object.
|
24
|
+
#
|
25
|
+
def hashed
|
26
|
+
Digest::SHA1.hexdigest self
|
27
|
+
end
|
28
|
+
|
22
29
|
# See CSD::Vendor::ActiveSupport::Inflector#constantize
|
23
30
|
#
|
24
31
|
def constantize
|
data/test/unit/test_string.rb
CHANGED
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Technology Transfer Alliance Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-09 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|