rac1-endirecte 0.1.1
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.md +10 -0
- data/Rakefile +19 -0
- data/VERSION +1 -0
- data/bin/rac1-endirecte +7 -0
- data/lib/rac1-endirecte.rb +14 -0
- data/pkg/rac1-endirecte-0.1.0.gem +0 -0
- data/rac1-endirecte.gemspec +42 -0
- metadata +71 -0
data/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
rac1-endirecte
|
2
|
+
==============
|
3
|
+
|
4
|
+
Voleu escoltar RAC1 en una altra pestanya de la Terminal sense haver d'obrir l'iTunes, Rhythmbox o similars? Baixa't aquest script i escolta RAC1
|
5
|
+
|
6
|
+
# Mac OS X
|
7
|
+
* Instal.lar VLC a la carpeta /Applications: http://www.videolan.org/
|
8
|
+
|
9
|
+
# Linux
|
10
|
+
* Instal.lar _mplayer_ (eg. sudo apt-get install mplayer)
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gemspec|
|
7
|
+
gemspec.name = "rac1-endirecte"
|
8
|
+
gemspec.summary = "Escoltar RAC1 en directe des de la terminal"
|
9
|
+
gemspec.description = "Escoltar RAC1 en directe des de la terminal"
|
10
|
+
gemspec.email = "apuratepp@gmail.com"
|
11
|
+
gemspec.homepage = "http://github.com/apuratepp/rac1-endirecte"
|
12
|
+
gemspec.authors = ["Josep Sirvent"]
|
13
|
+
end
|
14
|
+
Jeweler::GemcutterTasks.new
|
15
|
+
rescue LoadError
|
16
|
+
puts "Jeweler not available. Please, install it :D"
|
17
|
+
end
|
18
|
+
|
19
|
+
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each {|ext| load ext}
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
data/bin/rac1-endirecte
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
class Rac1Endirecte
|
2
|
+
STREAM_URI = "http://streaming3.radiocat.net:80/"
|
3
|
+
|
4
|
+
case(RUBY_PLATFORM.downcase)
|
5
|
+
when /darwin/
|
6
|
+
PLAYER_CMD = "/Applications/VLC.app/Contents/MacOS/VLC -I rc"
|
7
|
+
when /linux/
|
8
|
+
PLAYER_CMD = "mplayer"
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.play
|
12
|
+
`#{PLAYER_CMD} #{STREAM_URI}`
|
13
|
+
end
|
14
|
+
end
|
Binary file
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "rac1-endirecte"
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Josep Sirvent"]
|
12
|
+
s.date = "2013-02-19"
|
13
|
+
s.description = "Escoltar RAC1 en directe des de la terminal"
|
14
|
+
s.email = "apuratepp@gmail.com"
|
15
|
+
s.executables = ["rac1-endirecte"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"README.md",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"bin/rac1-endirecte",
|
24
|
+
"lib/rac1-endirecte.rb",
|
25
|
+
"pkg/rac1-endirecte-0.1.0.gem",
|
26
|
+
"rac1-endirecte.gemspec"
|
27
|
+
]
|
28
|
+
s.homepage = "http://github.com/apuratepp/rac1-endirecte"
|
29
|
+
s.require_paths = ["lib"]
|
30
|
+
s.rubygems_version = "1.8.24"
|
31
|
+
s.summary = "Escoltar RAC1 en directe des de la terminal"
|
32
|
+
|
33
|
+
if s.respond_to? :specification_version then
|
34
|
+
s.specification_version = 3
|
35
|
+
|
36
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
37
|
+
else
|
38
|
+
end
|
39
|
+
else
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rac1-endirecte
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Josep Sirvent
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2013-02-19 00:00:00 Z
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: Escoltar RAC1 en directe des de la terminal
|
22
|
+
email: apuratepp@gmail.com
|
23
|
+
executables:
|
24
|
+
- rac1-endirecte
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- README.md
|
29
|
+
files:
|
30
|
+
- README.md
|
31
|
+
- Rakefile
|
32
|
+
- VERSION
|
33
|
+
- bin/rac1-endirecte
|
34
|
+
- lib/rac1-endirecte.rb
|
35
|
+
- pkg/rac1-endirecte-0.1.0.gem
|
36
|
+
- rac1-endirecte.gemspec
|
37
|
+
homepage: http://github.com/apuratepp/rac1-endirecte
|
38
|
+
licenses: []
|
39
|
+
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options: []
|
42
|
+
|
43
|
+
require_paths:
|
44
|
+
- lib
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
none: false
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
hash: 3
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
version: "0"
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
requirements: []
|
64
|
+
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 1.8.24
|
67
|
+
signing_key:
|
68
|
+
specification_version: 3
|
69
|
+
summary: Escoltar RAC1 en directe des de la terminal
|
70
|
+
test_files: []
|
71
|
+
|