ektoplayer 0.1.24 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/lib/ektoplayer/application.rb +2 -5
- data/lib/ektoplayer/icurses.rb +3 -2
- data/lib/ektoplayer/views/splash.rb +7 -7
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4d0597d87dd6ae0ecdb738b27aebbcee796693be7562b1cbb86e64e898b6749
|
4
|
+
data.tar.gz: fa330cc4934ec74e818299b4a919dd80dda6d87849a35e77c525fe9eb519e995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c60396e24908653f5e516c568097aa3abe500255bf1378f0cbb18428bb884a02a8a9feef26de5b1149f8f8be1c71c06a283f98333381d74af71e6e93bd2055f4
|
7
|
+
data.tar.gz: 936183f1b8e9e42a41a54081032fa645738fdf306599e67e47881f741ce6fa2d3aea5b72269a9e6478282702474cd064cead84b230ef7b8de2e6bb92993a25f9
|
data/README.md
CHANGED
@@ -46,13 +46,21 @@ See output of `gem env gempath`.
|
|
46
46
|
yaourt -S ektoplayer
|
47
47
|
```
|
48
48
|
|
49
|
+
* Using makepkg:
|
50
|
+
```
|
51
|
+
git clone https://github.com/braph/ektoplayer
|
52
|
+
cd ektoplayer
|
53
|
+
makepkg
|
54
|
+
sudo pacman -U ektoplayer-*.pkg.tar.xz
|
55
|
+
```
|
56
|
+
|
49
57
|
* Using gem:
|
50
58
|
```
|
51
59
|
pacman -S --needed ruby mpg123 sqlite3 ncurses
|
52
60
|
gem install ektoplayer
|
53
61
|
```
|
54
62
|
|
55
|
-
### Debian
|
63
|
+
### Debian (*)
|
56
64
|
* Using gem:
|
57
65
|
```
|
58
66
|
apt-get install ruby ruby-dev libz libz-dev ruby-ncurses ruby-nokogiri ruby-sqlite3 \
|
@@ -60,7 +68,7 @@ See output of `gem env gempath`.
|
|
60
68
|
gem install ektoplayer
|
61
69
|
```
|
62
70
|
|
63
|
-
### OpenSuse
|
71
|
+
### OpenSuse (*)
|
64
72
|
* Using gem:
|
65
73
|
```
|
66
74
|
zypper in ruby ruby-devel gcc sqlite3 sqlite3-devel ncurses ncurses-devel zlib zlib-devel \
|
@@ -68,13 +76,15 @@ See output of `gem env gempath`.
|
|
68
76
|
gem install ektoplayer ffi-curses
|
69
77
|
```
|
70
78
|
|
71
|
-
### Ubuntu
|
79
|
+
### Ubuntu (*)
|
72
80
|
* Using gem:
|
73
81
|
```
|
74
82
|
apt-get install ruby ruby-dev sqlite3 ruby-sqlite3 ruby-nokogiri ruby-ncurses mpg123
|
75
83
|
gem install ektoplayer
|
76
84
|
```
|
77
85
|
|
86
|
+
(*) Not tested yet
|
87
|
+
|
78
88
|
## Configuration
|
79
89
|
|
80
90
|
Ektoplayer keeps it's default configuration file under `~/.config/ektoplayer/ektoplayer.rc`.
|
@@ -10,8 +10,8 @@ require 'date'
|
|
10
10
|
|
11
11
|
module Ektoplayer
|
12
12
|
class Application
|
13
|
-
VERSION
|
14
|
-
GITHUB_URL
|
13
|
+
VERSION = '0.1.24'.freeze
|
14
|
+
GITHUB_URL = 'https://github.com/braph/ektoplayer'.freeze
|
15
15
|
EKTOPLAZM_URL = 'https://ektoplazm.com'.freeze
|
16
16
|
|
17
17
|
EKTOPLAZM_ALBUM_BASE_URL = "#{EKTOPLAZM_URL}/free-music".freeze
|
@@ -20,9 +20,6 @@ module Ektoplayer
|
|
20
20
|
EKTOPLAZM_STYLE_BASE_URL = "#{EKTOPLAZM_URL}/style".freeze
|
21
21
|
EKTOPLAZM_ARCHIVE_BASE_URL = "#{EKTOPLAZM_URL}/files".freeze
|
22
22
|
|
23
|
-
CONFIG_DIR = File.join(Dir.home, '.config', 'ektoplayer').freeze
|
24
|
-
CONFIG_FILE = File.join(CONFIG_DIR, 'ektoplayer.rc').freeze
|
25
|
-
|
26
23
|
def self.album_url(album)
|
27
24
|
"#{EKTOPLAZM_ALBUM_BASE_URL}/#{album}"
|
28
25
|
end
|
data/lib/ektoplayer/icurses.rb
CHANGED
@@ -18,8 +18,9 @@ No module for ncurses found. Please install one of the following gems:
|
|
18
18
|
Maybe your distribution ships one of these already as a package.
|
19
19
|
|
20
20
|
Arch Linux:
|
21
|
-
yaourt -S ruby-
|
22
|
-
|
21
|
+
yaourt -S ruby-ncursesw # preferred
|
22
|
+
or
|
23
|
+
yaourt -S ruby-curses
|
23
24
|
|
24
25
|
Debian / Ubuntu:
|
25
26
|
apt-get install ruby-ncurses
|
@@ -7,7 +7,7 @@ module Ektoplayer
|
|
7
7
|
module Views
|
8
8
|
class Splash < UI::Window
|
9
9
|
EKTOPLAZM_LOGO = %q[
|
10
|
-
____ _ _ _ ____ _ _____ ______ _ ___ ___
|
10
|
+
____ _ _ _ ____ _ _____ ______ _ ___ ___
|
11
11
|
/ __) ; | | ; | | | _ \ | | /___ \ |____ | | '_ `_ \
|
12
12
|
/ / | | | | _| |__ ___ | | | | | | | | | | | | | | | |
|
13
13
|
( ( | | | | |_ __) / _ \ | | | | | | ___| | / ; | | | | | |
|
@@ -19,9 +19,9 @@ module Ektoplayer
|
|
19
19
|
\____) |_| |_| \___/ |_| \____/ \_____| |______| |_| |_|].
|
20
20
|
split(?\n)[1..-1].freeze
|
21
21
|
EKTOPLAZM_SIGNATURE = %q[
|
22
|
-
___ _ _ _ _ _ _
|
23
|
-
/ __| ___ _ _ _ _ __| | | | (_) |__ ___ _ _ __ _| |_(_)___ _ _
|
24
|
-
\__ \/ _ \ || | ' \/ _` | | |__| | '_ \/ -_) '_/ _` | _| / _ \ ' \
|
22
|
+
___ _ _ _ _ _ _
|
23
|
+
/ __| ___ _ _ _ _ __| | | | (_) |__ ___ _ _ __ _| |_(_)___ _ _
|
24
|
+
\__ \/ _ \ || | ' \/ _` | | |__| | '_ \/ -_) '_/ _` | _| / _ \ ' \
|
25
25
|
|___/\___/\_,_|_||_\__,_| |____|_|_.__/\___|_| \__,_|\__|_\___/_||_|].
|
26
26
|
split(?\n)[1..-1].freeze
|
27
27
|
|
@@ -44,12 +44,12 @@ module Ektoplayer
|
|
44
44
|
def draw
|
45
45
|
@win.erase
|
46
46
|
return if (EKTOPLAZM_LOGO.size >= @size.height or
|
47
|
-
|
47
|
+
EKTOPLAZM_LOGO[0].size >= @size.width)
|
48
48
|
load_colorfaders unless @bubble_fade#,@signature_fade,@ekto_logo_fade
|
49
49
|
|
50
50
|
w_center = @size.width / 2
|
51
51
|
h_center = @size.height / 2
|
52
|
-
left_pad = w_center - (EKTOPLAZM_LOGO.
|
52
|
+
left_pad = w_center - (EKTOPLAZM_LOGO[0].size / 2)
|
53
53
|
|
54
54
|
if EKTOPLAZM_LOGO.size + EKTOPLAZM_SIGNATURE.size + 3 > @size.height
|
55
55
|
top_pad = h_center - (EKTOPLAZM_LOGO.size / 2)
|
@@ -75,7 +75,7 @@ module Ektoplayer
|
|
75
75
|
return unless draw_signature
|
76
76
|
|
77
77
|
top_pad += EKTOPLAZM_LOGO.size + 2
|
78
|
-
left_pad = w_center - (EKTOPLAZM_SIGNATURE.
|
78
|
+
left_pad = w_center - (EKTOPLAZM_SIGNATURE[0].size / 2)
|
79
79
|
|
80
80
|
EKTOPLAZM_SIGNATURE.each_with_index do |line, i|
|
81
81
|
@win.move(top_pad + i, left_pad)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ektoplayer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Abendroth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: scanf
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
41
55
|
description: Ektoplayer is a commandline client for http://ektoplazm.com, a website
|
42
56
|
providing free electronic music such as techno, goa and psy-trance
|
43
57
|
email: braph93@gmx.de
|
@@ -129,7 +143,7 @@ requirements:
|
|
129
143
|
- 'Playback: /bin/mpg123 or the "audite-lib" gem'
|
130
144
|
- 'Archive unpacking: /bin/unzip, /bin/7z or the "rubyzip" gem'
|
131
145
|
- 'One of these curses-gems: ffi-ncurses, ncurses, ncursesw, curses'
|
132
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.1.2
|
133
147
|
signing_key:
|
134
148
|
specification_version: 4
|
135
149
|
summary: play or download music from ektoplazm.com
|