imdb-terminal 0.7.1 → 0.7.2
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.
- checksums.yaml +4 -4
- data/bin/imdb +12 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e075bb6da14b0fbb4e0c0cc5253ee7bfe7c8b89f16a78cf30b94b05484134395
|
4
|
+
data.tar.gz: 8e59348345ff0a4d99d50a0de155eacf1a50f231fcd8326c36094d65945d3836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0468c8d2a90220dfd5c055aa243fc28fd86829d882be6c587c203acb1f83348f6e9e6f9eb30d11a3e43c1a85172544599bde4054859d5da0fa007705eec57cd
|
7
|
+
data.tar.gz: 3c701d27f6402fe259efbd2d7c7a0b882aef611f0b47d5730dbae665eff9669aa88099cb12c0bfa741f7c20916bdc4a3315b3f8c06a1074daed307dcc9e1bc1a
|
data/bin/imdb
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
@version = "0.7.
|
17
|
+
@version = "0.7.2"
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -174,13 +174,18 @@ class Curses::Window # CLASS EXTENSION
|
|
174
174
|
self.setpos(y, x)
|
175
175
|
end
|
176
176
|
def p(fg = self.fg, bg = self.bg, attr = self.attr, text) # Puts text to window with full set of attributes
|
177
|
-
fg
|
178
|
-
bg
|
179
|
-
attr = 0
|
180
|
-
cp
|
177
|
+
fg = 255 if fg == nil
|
178
|
+
bg = 0 if bg == nil
|
179
|
+
attr = 0 if attr == nil
|
180
|
+
cp = Curses::Window.pair(fg, bg)
|
181
181
|
self.attron(color_pair(cp) | attr) { self << text }
|
182
182
|
self.refresh
|
183
183
|
end
|
184
|
+
def nl(bg = self.bg)
|
185
|
+
bg = 232 if bg == nil
|
186
|
+
f = " " * (self.maxx - self.curx)
|
187
|
+
self.p(self.fg, bg, self.attr, f)
|
188
|
+
end
|
184
189
|
def format(text) # Format text so that it linebreaks neatly inside window
|
185
190
|
return "\n" + text.gsub(/(.{1,#{self.maxx-1}})( +|$\n?)|(.{1,#{self.maxx-1}})/, "\\1\\3\n")
|
186
191
|
end
|
@@ -539,8 +544,8 @@ def w_t # SHOW INFO IN @w_t
|
|
539
544
|
@w_t.clr
|
540
545
|
@movies ? text = " MOVIES :: " : text = " SERIES :: "
|
541
546
|
text += "Rating MIN: #{@rating} - Year MIN: #{@yearMin} - Year MAX: #{@yearMax} :: Selection = #{@imdbsel.size}"
|
542
|
-
text += " " * (@w_t.maxx - text.length) if text.length < @w_t.maxx
|
543
547
|
@w_t.p(text)
|
548
|
+
@w_t.nl
|
544
549
|
end
|
545
550
|
def w_list(win) # LIST IN WINDOW
|
546
551
|
win.attr = 0
|
@@ -573,9 +578,7 @@ def w_list(win) # LIST IN WINDOW
|
|
573
578
|
str = str[0..(win.maxx - 6)] + "…" if str.length > win.maxx - 4
|
574
579
|
win.p(str)
|
575
580
|
win.attr = 0
|
576
|
-
|
577
|
-
fill = fill[0..-2] if win == @w_g
|
578
|
-
win.p(fill)
|
581
|
+
win.nl
|
579
582
|
ix += 1; t += 1
|
580
583
|
end
|
581
584
|
if win.index > win.maxy/2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imdb-terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -48,8 +48,8 @@ description: 'Narrow down your preferences from a 1000 movies and almost 500 ser
|
|
48
48
|
Select a minimum IMDB rating, range of production years, genres you like and dislike
|
49
49
|
to get your preferred list. Get detailed information on movies and series and where
|
50
50
|
you can stream them. Even the movie poster in the terminal. New in 0.2: Added ''v''
|
51
|
-
to show version and RubyGem version. Code cleanup. 0.7:
|
52
|
-
extension upgrade.
|
51
|
+
to show version and RubyGem version. Code cleanup. 0.7.2: Code cleanup according
|
52
|
+
to curses extension upgrade.'
|
53
53
|
email: g@isene.com
|
54
54
|
executables:
|
55
55
|
- imdb
|