retroflix 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: cdc73a4acea12ab2f44d6c9f4daabb30204cfbe6
4
- data.tar.gz: 8c48e0b7022e3c10b454ff68a5207d6d3e225873
3
+ metadata.gz: 24d1a5a571d877ec22161384e034cfa54d00e3da
4
+ data.tar.gz: 755a07bfca082fadcbf230efd55d57cfaae38f34
5
5
  SHA512:
6
- metadata.gz: 00cb7fe2563a3c14192cb79e45de77bb7d1856e72d881714def3e6a15b252580c9d2027bcc493df9e37f3e7e768faf0e50b6b4296d70a47c8847e97a55f3b81f
7
- data.tar.gz: 89742cb8c83cc59c7e8fa1140553790c7fbddf47ba41f3b8e5eaa680dce8754c741fd169c0b0cb51faf72be82b90018a800b888c6e015ebd7b44c371283418d0
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
- ## Install
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
- RetroFlix is built as a [Sinatra](http://www.sinatrarb.com/) web service.
26
+ On Ubuntu 16.04:
21
27
 
22
- To use [install Ruby](https://www.ruby-lang.org/en/) and install the following gems:
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
- ```$ gem install sinatra rubyzip curb nokogiri thin```
38
+ Install the actual application with:
25
39
 
40
+ ```$ gem install --user-install retroflix```
26
41
 
27
- If the previous produces any errors, check the gem documentation for the corresponding
28
- dependencies (curb requires libcurl-dev which may need to be installed seperately).
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
- If a recent version of Ruby is not available for your system, you may want to
31
- try out [rbenv](https://github.com/rbenv/rbenv).
45
+ ```$ sudo gem install retroflix```
32
46
 
33
- Launch it with
34
47
 
35
- ```$ ruby server.rb```
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**: Inorder to play games you will need to download the emulator for the corresponding systems. See the **emulators.rb** file for the current list of emulators used (may be configured there)
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
 
@@ -6,6 +6,7 @@ require 'yaml'
6
6
 
7
7
  module RetroFlix
8
8
  CONFIG_FILES = [File.expand_path('~/.retroflix.yml'),
9
+ File.expand_path('~/retroflix.yml'),
9
10
  File.expand_path('../../retroflix.yml', __FILE__)]
10
11
 
11
12
  unless CONFIG_FILES.any? { |cf| File.exists?(cf) }
Binary file
Binary file
Binary file
@@ -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
@@ -0,0 +1,3 @@
1
+ http://www.1001freefonts.com/my_game.font
2
+ http://www.1001freefonts.com/vonique_64.font
3
+ http://www.1001freefonts.com/retroville.font
@@ -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
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 00:00:00.000000000 Z
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