irecorder 0.0.7 → 0.0.8
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/README +2 -2
- data/Rakefile +3 -3
- data/bin/irecorder.rb +5 -4
- data/ext/Rakefile +17 -8
- data/lib/mylibs.rb +6 -0
- data/lib/settings.rb +3 -4
- metadata +6 -6
data/README
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
iRecorder is Audio recorder which has KDE GUI looks like BBC iPlayer.
|
2
|
+
you can browse BBC Radio programmes and click to download stream file.
|
3
3
|
files will be converted to mp3 files automatically.
|
4
4
|
irecorder allow to play without any other browser or play on your prefered browser.
|
5
5
|
|
data/Rakefile
CHANGED
@@ -6,11 +6,11 @@ require 'rake/gempackagetask'
|
|
6
6
|
|
7
7
|
spec = Gem::Specification.new do |s|
|
8
8
|
s.name = "irecorder"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.8"
|
10
10
|
s.author = "ruby.twiddler"
|
11
11
|
s.email = "ruby.twiddler at gmail.com"
|
12
12
|
s.homepage = "http://github.com/rubytwiddler/irecorder/wiki"
|
13
|
-
s.summary = "
|
13
|
+
s.summary = "iRecorder is Audio recorder which has KDE GUI looks like BBC iPlayer."
|
14
14
|
s.files = FileList["{bin,lib}/**/*"].to_a
|
15
15
|
s.files += %w{ README MIT-LICENSE Rakefile resources/bbcstyle.qss }
|
16
16
|
s.executables = [ 'irecorder.rb' ]
|
@@ -19,7 +19,7 @@ spec = Gem::Specification.new do |s|
|
|
19
19
|
s.requirements = %w{ korundum4 qtwebkit kio ktexteditor }
|
20
20
|
s.add_runtime_dependency( 'nokogiri', '>= 1.4.0' )
|
21
21
|
s.description = <<-EOF
|
22
|
-
|
22
|
+
iRecorder is Audio recorder which has KDE GUI looks like BBC iPlayer.
|
23
23
|
You can browse BBC Radio programmes and click to download stream file.
|
24
24
|
files will be converted to mp3 files automatically.
|
25
25
|
irecorder allow to play without any other browser or play on your prefered browser.
|
data/bin/irecorder.rb
CHANGED
@@ -2,17 +2,18 @@
|
|
2
2
|
#
|
3
3
|
# 2010 by ruby.twiddler@gmail.com
|
4
4
|
#
|
5
|
-
#
|
5
|
+
# KDE GUI Audio recorder which has similar interface to BBC iPlayer.
|
6
6
|
# record real/wma (rtsp/mms) audio stream
|
7
7
|
#
|
8
8
|
|
9
9
|
$KCODE = 'UTF8'
|
10
10
|
require 'ftools'
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
APP_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
13
|
+
APP_NAME = File.basename(APP_FILE).sub(/\.rb/, '')
|
14
|
+
APP_DIR = File::dirname(File.expand_path(File.dirname(APP_FILE)))
|
14
15
|
LIB_DIR = File::join(APP_DIR, "lib")
|
15
|
-
APP_VERSION = "0.0.
|
16
|
+
APP_VERSION = "0.0.8"
|
16
17
|
|
17
18
|
# standard libs
|
18
19
|
require 'rubygems'
|
data/ext/Rakefile
CHANGED
@@ -5,22 +5,31 @@ require 'ftools'
|
|
5
5
|
|
6
6
|
desc "Install Application Menu"
|
7
7
|
task :install_menu do
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
appDirs= %x{ kde4-config --install xdgdata-apps }.strip.split(/:/)
|
9
|
+
if %x{ whoami }.strip == 'root' then
|
10
|
+
menuDir = appDirs.find { |d| d !~ %r{^/home} }
|
11
|
+
else
|
12
|
+
menuDir = appDirs.find { |d| d =~ %r{^/home} }
|
13
|
+
end
|
14
|
+
if menuDir then
|
15
|
+
|
16
|
+
menuEntryFile = File.join(menuDir, 'irecorder.desktop')
|
17
|
+
|
18
|
+
open(menuEntryFile,'w') do |f|
|
19
|
+
f.write(<<-EOF
|
12
20
|
[Desktop Entry]
|
13
21
|
Name=iRecorder
|
14
|
-
Comment=
|
22
|
+
Comment=Audio recorder with KDE GUI.
|
15
23
|
Exec=irecorder.rb %f
|
16
24
|
Icon=irecorder
|
17
25
|
Terminal=false
|
18
26
|
Type=Application
|
19
27
|
Categories=Qt;KDE;AudioVideo;Radio;News;Music;Player
|
20
28
|
MimeType=application/x-gem;
|
21
|
-
|
22
|
-
|
23
|
-
|
29
|
+
EOF
|
30
|
+
)
|
31
|
+
%x{ update-menus }
|
32
|
+
end
|
24
33
|
end
|
25
34
|
end
|
26
35
|
|
data/lib/mylibs.rb
CHANGED
@@ -410,6 +410,12 @@ def openDirectory(dir)
|
|
410
410
|
fork do exec(cmd) end
|
411
411
|
end
|
412
412
|
|
413
|
+
def openUrlDocument(url)
|
414
|
+
cmd = Mime::services('.html').first.exec
|
415
|
+
cmd.gsub!(/%\w+/, url)
|
416
|
+
fork do exec(cmd) end
|
417
|
+
end
|
418
|
+
|
413
419
|
#--------------------------------------------------------------------------
|
414
420
|
#
|
415
421
|
# stdlib
|
data/lib/settings.rb
CHANGED
@@ -16,6 +16,7 @@ class SelectServiceDlg < KDE::Dialog
|
|
16
16
|
self.windowTitle = @message
|
17
17
|
@selectedName = @services[0].name
|
18
18
|
createWidget
|
19
|
+
connect(self, SIGNAL(:accepted), self, SLOT(:selected))
|
19
20
|
setSelected(defaultName)
|
20
21
|
end
|
21
22
|
|
@@ -32,9 +33,9 @@ class SelectServiceDlg < KDE::Dialog
|
|
32
33
|
SelectServiceDlg.exeName2IconName(serviceFromName(name).exec)
|
33
34
|
end
|
34
35
|
|
35
|
-
|
36
|
+
slots :selected
|
37
|
+
def selected
|
36
38
|
@selectedName = @serviceList.selectedItems.first.text
|
37
|
-
super
|
38
39
|
end
|
39
40
|
|
40
41
|
def commandFromName(name)
|
@@ -76,9 +77,7 @@ class SelectServiceDlg < KDE::Dialog
|
|
76
77
|
iconName = SelectServiceDlg.exeName2IconName(s.exec)
|
77
78
|
@serviceList.addItem( Qt::ListWidgetItem.new(KDE::Icon.new(iconName), s.name) )
|
78
79
|
end
|
79
|
-
@selectFromMenu = KDE::PushButton.new(i18n('Select Other from Menu'))
|
80
80
|
mainWidget.addWidget(@serviceList)
|
81
|
-
# mainWidget.addWidget(@selectFromMenu)
|
82
81
|
|
83
82
|
setMainWidget(mainWidget)
|
84
83
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irecorder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- ruby.twiddler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-16 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
description: |
|
38
|
-
|
38
|
+
iRecorder is Audio recorder which has KDE GUI looks like BBC iPlayer.
|
39
39
|
You can browse BBC Radio programmes and click to download stream file.
|
40
40
|
files will be converted to mp3 files automatically.
|
41
41
|
irecorder allow to play without any other browser or play on your prefered browser.
|
@@ -102,6 +102,6 @@ rubyforge_project:
|
|
102
102
|
rubygems_version: 1.3.7
|
103
103
|
signing_key:
|
104
104
|
specification_version: 3
|
105
|
-
summary:
|
105
|
+
summary: iRecorder is Audio recorder which has KDE GUI looks like BBC iPlayer.
|
106
106
|
test_files: []
|
107
107
|
|