ektoplayer 0.1.24.a → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e07a8f4ec7d580ca4b4b901f1004da8f0000b7254e3d50777311052541280a37
4
- data.tar.gz: 999a0502f214d570ec5eef7929807f04f35dd6e182591b208c3dbbcd460a4243
3
+ metadata.gz: 3b9b2111e3938c42b886f649c1563520bdd39cd829189bf65badc30b8248ee09
4
+ data.tar.gz: 7a66b921f88c757d34ea701f4bd122c71e017cec890efff3d051e7d1fa7c1a7f
5
5
  SHA512:
6
- metadata.gz: d6cb6faea7ddc50b86d572d10d9b1f6f655d3cb6760f383d924282fe1656d344746e4212c7e8020ca65418535f538c72f4581ce01b8d5fd18cb3e186e88560d3
7
- data.tar.gz: 7bcd8e8e43adbf34dac70d516af5d08017494ab00754334a63ad1911f73ad88f63142f98698ba5df3af63befd22d91cc564b2ab52fbc7ff129db2fb23e22a719
6
+ metadata.gz: f199e9a214b8854c2ef43df5be080c5806113ebfd2618e7316f50ea03465056737c067bd0bbcc02f50b4121e677dc748042fa3e1dcbfeb40c7dba315f3fa2eda
7
+ data.tar.gz: 8fb6627c472642ca7d8056ec9edd1bc00e52f426961ffccc77d9b83ce293a364e8cd99792a12de34411ec944a29cd633853a6bcdb462a5d5467a03b96154f10a
data/README.md CHANGED
@@ -46,21 +46,13 @@ 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
-
57
49
  * Using gem:
58
50
  ```
59
51
  pacman -S --needed ruby mpg123 sqlite3 ncurses
60
52
  gem install ektoplayer
61
53
  ```
62
54
 
63
- ### Debian (*)
55
+ ### Debian
64
56
  * Using gem:
65
57
  ```
66
58
  apt-get install ruby ruby-dev libz libz-dev ruby-ncurses ruby-nokogiri ruby-sqlite3 \
@@ -68,7 +60,7 @@ See output of `gem env gempath`.
68
60
  gem install ektoplayer
69
61
  ```
70
62
 
71
- ### OpenSuse (*)
63
+ ### OpenSuse
72
64
  * Using gem:
73
65
  ```
74
66
  zypper in ruby ruby-devel gcc sqlite3 sqlite3-devel ncurses ncurses-devel zlib zlib-devel \
@@ -76,15 +68,13 @@ See output of `gem env gempath`.
76
68
  gem install ektoplayer ffi-curses
77
69
  ```
78
70
 
79
- ### Ubuntu (*)
71
+ ### Ubuntu
80
72
  * Using gem:
81
73
  ```
82
74
  apt-get install ruby ruby-dev sqlite3 ruby-sqlite3 ruby-nokogiri ruby-ncurses mpg123
83
75
  gem install ektoplayer
84
76
  ```
85
77
 
86
- (*) Not tested yet
87
-
88
78
  ## Configuration
89
79
 
90
80
  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 = '0.1.24'.freeze
14
- GITHUB_URL = 'https://github.com/braph/ektoplayer'.freeze
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,6 +20,9 @@ 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
+
23
26
  def self.album_url(album)
24
27
  "#{EKTOPLAZM_ALBUM_BASE_URL}/#{album}"
25
28
  end
@@ -18,9 +18,8 @@ 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-ncursesw # preferred
22
- or
23
- yaourt -S ruby-curses
21
+ yaourt -S ruby-curses # or
22
+ yaourt -S ruby-ncursesw
24
23
 
25
24
  Debian / Ubuntu:
26
25
  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
- EKTOPLAZM_LOGO[0].size >= @size.width)
47
+ EKTOPLAZM_LOGO.max.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[0].size / 2)
52
+ left_pad = w_center - (EKTOPLAZM_LOGO.max.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[0].size / 2)
78
+ left_pad = w_center - (EKTOPLAZM_SIGNATURE.max.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.24.a
4
+ version: 0.1.24
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-31 00:00:00.000000000 Z
11
+ date: 2020-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -38,20 +38,6 @@ 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: '0.8'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.8'
55
41
  description: Ektoplayer is a commandline client for http://ektoplazm.com, a website
56
42
  providing free electronic music such as techno, goa and psy-trance
57
43
  email: braph93@gmx.de
@@ -136,14 +122,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
122
  version: '0'
137
123
  required_rubygems_version: !ruby/object:Gem::Requirement
138
124
  requirements:
139
- - - ">"
125
+ - - ">="
140
126
  - !ruby/object:Gem::Version
141
- version: 1.3.1
127
+ version: '0'
142
128
  requirements:
143
129
  - 'Playback: /bin/mpg123 or the "audite-lib" gem'
144
130
  - 'Archive unpacking: /bin/unzip, /bin/7z or the "rubyzip" gem'
145
131
  - 'One of these curses-gems: ffi-ncurses, ncurses, ncursesw, curses'
146
- rubygems_version: 3.1.2
132
+ rubygems_version: 3.0.6
147
133
  signing_key:
148
134
  specification_version: 4
149
135
  summary: play or download music from ektoplazm.com