retroflix 0.0.4 → 0.0.5
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/README.md +43 -11
- data/lib/conf.rb +1 -0
- data/public/RetrovilleNC.ttf +0 -0
- data/public/Vonique_64.ttf +0 -0
- data/public/my_game.ttf +0 -0
- data/public/slideshow.js +20 -0
- data/public/slideshow/0.jpg +0 -0
- data/public/slideshow/1.jpg +0 -0
- data/public/slideshow/2.jpg +0 -0
- data/public/slideshow/3.jpg +0 -0
- data/public/slideshow/4.jpg +0 -0
- data/public/slideshow/5.jpg +0 -0
- data/public/sources +3 -0
- data/public/style.css +111 -0
- metadata +28 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d1a5a571d877ec22161384e034cfa54d00e3da
|
4
|
+
data.tar.gz: 755a07bfca082fadcbf230efd55d57cfaae38f34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4310acc3dace2bae4b4daaecd292fdd3b078adf2420ada58fe0c2b907635ff17e3b0b36f1e323cbd11622144d56cc8e4fcf1dfe572ec71edd5c5bde5e5e60bc
|
7
|
+
data.tar.gz: 8f6525b70f000e0e34418291dab5e3fc332babe67f787ce3042c962688c3890bd7bd3bfb8fdf4e58e2fe47e857adbd2cc503161a4674a41f8b338a3d4c1aefc0
|
data/README.md
CHANGED
@@ -15,29 +15,61 @@ Currently the following sites & systems are supported:
|
|
15
15
|
* NES
|
16
16
|
* Sega Genesis / Master System
|
17
17
|
|
18
|
-
##
|
18
|
+
## Dependencies
|
19
|
+
|
20
|
+
RetroFlix is built as a [Sinatra](http://www.sinatrarb.com/) web service and shipped as a rubygem. To use it you will need to install the underlying dependencies.
|
21
|
+
|
22
|
+
On Fedora 25:
|
23
|
+
|
24
|
+
```$ sudo dnf install rubygems ruby-devel zlib-devel libcurl-devel redhat-rpm-config```
|
19
25
|
|
20
|
-
|
26
|
+
On Ubuntu 16.04:
|
21
27
|
|
22
|
-
|
28
|
+
```$sudo apt-get install ruby ruby-dev zlib1g-dev libcurl4-gnutls-dev```
|
29
|
+
|
30
|
+
**Note** I was able to install and run RetroFlix on a Raspberry PI running [Rasbian Jessie](https://www.raspberrypi.org/downloads/raspbian/) 4.4 after installing
|
31
|
+
the latest stable ruby version via [rbenv](https://github.com/rbenv/rbenv).
|
32
|
+
|
33
|
+
Setup of that is outside the scope of this article but after ruby 2.4.1 is installed
|
34
|
+
and activated, the Ubuntu instructions can be followed.
|
35
|
+
|
36
|
+
## Install
|
23
37
|
|
24
|
-
|
38
|
+
Install the actual application with:
|
25
39
|
|
40
|
+
```$ gem install --user-install retroflix```
|
26
41
|
|
27
|
-
|
28
|
-
|
42
|
+
**Note** the ***--user-install*** flag is specified so as to install RetroFlix and gem dependencies
|
43
|
+
to your user's home dir. Use the following command if you wish to install the application systemwide:
|
29
44
|
|
30
|
-
|
31
|
-
try out [rbenv](https://github.com/rbenv/rbenv).
|
45
|
+
```$ sudo gem install retroflix```
|
32
46
|
|
33
|
-
Launch it with
|
34
47
|
|
35
|
-
|
48
|
+
Simply launch the application with:
|
49
|
+
|
50
|
+
```$ rf```
|
36
51
|
|
37
52
|
And navigate to [http://localhost:4567](http://localhost:4567) to download and manage games!
|
38
53
|
|
39
|
-
**Note
|
54
|
+
**Note** if you get an error stating **rf command not found**, most likely your rubygems binary
|
55
|
+
path needs to be added to your run path. To do so, run the following command:
|
56
|
+
|
57
|
+
```export PATH=$PATH:~/.gem/ruby/2.3.0/bin```
|
58
|
+
|
59
|
+
(replacing 2.3.0 w/ the version of Ruby you have installed locally)
|
60
|
+
|
61
|
+
## Emulators
|
62
|
+
|
63
|
+
Inorder to play games you will need to download the emulator for the corresponding systems.
|
64
|
+
|
65
|
+
Currenly the default emulators are:
|
66
|
+
|
67
|
+
* gens for the Sega Genesis / Master Drive
|
68
|
+
* zsnes for Nintendo NES & SNES
|
69
|
+
* mupen64 for Nintendo 64
|
40
70
|
|
71
|
+
If these are not available on your system, copy the [Config File](https://raw.githubusercontent.com/movitto/retroflix/master/retroflix.yml)
|
72
|
+
to ~/.retroflix.yml and edit it to reference the emulators you have locally.
|
41
73
|
|
42
74
|
## Screens
|
43
75
|
|
data/lib/conf.rb
CHANGED
Binary file
|
Binary file
|
data/public/my_game.ttf
ADDED
Binary file
|
data/public/slideshow.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
var slideIndex = 0;
|
2
|
+
|
3
|
+
function carousel() {
|
4
|
+
var i;
|
5
|
+
var x = document.getElementsByClassName("slideshow");
|
6
|
+
for (i = 0; i < x.length; i++) {
|
7
|
+
x[i].style.display = "none";
|
8
|
+
}
|
9
|
+
|
10
|
+
slideIndex++;
|
11
|
+
|
12
|
+
if (slideIndex > x.length) {slideIndex = 1}
|
13
|
+
|
14
|
+
x[slideIndex-1].style.display = "block";
|
15
|
+
setTimeout(carousel, 5000); // Change image every 5 seconds
|
16
|
+
}
|
17
|
+
|
18
|
+
window.onload = function(){
|
19
|
+
carousel();
|
20
|
+
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/public/sources
ADDED
data/public/style.css
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
@font-face{
|
2
|
+
font-family: 'Retroville';
|
3
|
+
src: url('/RetrovilleNC.ttf');
|
4
|
+
}
|
5
|
+
|
6
|
+
@font-face{
|
7
|
+
font-family: 'Vonique64';
|
8
|
+
src: url('/Vonique_64.ttf');
|
9
|
+
}
|
10
|
+
|
11
|
+
body{
|
12
|
+
background-color: #666547;
|
13
|
+
color: #6FCB9F;
|
14
|
+
}
|
15
|
+
|
16
|
+
h1, h2, h3{
|
17
|
+
padding: 0;
|
18
|
+
margin: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
a{
|
22
|
+
color: #FFFEB3;
|
23
|
+
text-decoration: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
a:visited{
|
27
|
+
color: #FFFEB3;
|
28
|
+
}
|
29
|
+
|
30
|
+
#main_title{
|
31
|
+
font-family: 'Retroville', serif;
|
32
|
+
font-size: 6em;
|
33
|
+
text-align: center;
|
34
|
+
}
|
35
|
+
|
36
|
+
.game_title{
|
37
|
+
font-family: 'Vonique64', serif;
|
38
|
+
font-weight: bold;
|
39
|
+
color: white;
|
40
|
+
}
|
41
|
+
|
42
|
+
.slideshow{
|
43
|
+
display: none;
|
44
|
+
margin: auto;
|
45
|
+
animation:fade 6s infinite;
|
46
|
+
-webkit-animation:fade 6s infinite;
|
47
|
+
margin-top: 25px;
|
48
|
+
}
|
49
|
+
|
50
|
+
@keyframes fade
|
51
|
+
{
|
52
|
+
0% {opacity:0}
|
53
|
+
33.333% { opacity: 1 }
|
54
|
+
66.666% { opacity: 1 }
|
55
|
+
100% { opacity: 0 }
|
56
|
+
}
|
57
|
+
|
58
|
+
.bold{
|
59
|
+
font-weight: bold;
|
60
|
+
}
|
61
|
+
|
62
|
+
#sidebar{
|
63
|
+
float: left;
|
64
|
+
border-right: 2px solid gray;
|
65
|
+
border-bottom: 2px solid gray;
|
66
|
+
padding-right: 5px;
|
67
|
+
background-color: #766A47;
|
68
|
+
padding: 10px;
|
69
|
+
border-radius: 5px;
|
70
|
+
font-family: 'Vonique64', serif;
|
71
|
+
}
|
72
|
+
|
73
|
+
#main_content{
|
74
|
+
float: left;
|
75
|
+
margin-left: 20px;
|
76
|
+
width: 80%;
|
77
|
+
}
|
78
|
+
|
79
|
+
.blink_me {
|
80
|
+
animation: blinker 1s linear infinite;
|
81
|
+
|
82
|
+
}
|
83
|
+
|
84
|
+
@keyframes blinker {
|
85
|
+
50% { opacity: 0; }
|
86
|
+
}
|
87
|
+
|
88
|
+
.delete_link,
|
89
|
+
.delete_link:visited{
|
90
|
+
color: #FB2E01;
|
91
|
+
}
|
92
|
+
|
93
|
+
.play_link, .dl_link,
|
94
|
+
.play_link:visited,
|
95
|
+
.dl_link:visited{
|
96
|
+
color: #9BB4CE;
|
97
|
+
}
|
98
|
+
|
99
|
+
.game_preview{
|
100
|
+
margin-bottom: 10px;
|
101
|
+
}
|
102
|
+
|
103
|
+
.preview_screen{
|
104
|
+
float: left;
|
105
|
+
margin-right: 10px;
|
106
|
+
}
|
107
|
+
|
108
|
+
.preview_text{
|
109
|
+
float: right;
|
110
|
+
margin-top: 10px;
|
111
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: retroflix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mo Morsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.6'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: daemons
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.2'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.2'
|
83
97
|
description: Retro Game Library Manager
|
84
98
|
email: mo@morsi.org
|
85
99
|
executables:
|
@@ -97,6 +111,18 @@ files:
|
|
97
111
|
- lib/library.rb
|
98
112
|
- lib/scrape.rb
|
99
113
|
- lib/workers.rb
|
114
|
+
- public/RetrovilleNC.ttf
|
115
|
+
- public/Vonique_64.ttf
|
116
|
+
- public/my_game.ttf
|
117
|
+
- public/slideshow.js
|
118
|
+
- public/slideshow/0.jpg
|
119
|
+
- public/slideshow/1.jpg
|
120
|
+
- public/slideshow/2.jpg
|
121
|
+
- public/slideshow/3.jpg
|
122
|
+
- public/slideshow/4.jpg
|
123
|
+
- public/slideshow/5.jpg
|
124
|
+
- public/sources
|
125
|
+
- public/style.css
|
100
126
|
- random.rb
|
101
127
|
- retroflix.yml
|
102
128
|
- server.rb
|