DreamTeam 1.0.1 → 1.0.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/lib/DreamTeam/Films/html_table.rb +3 -3
- data/lib/DreamTeam/Games/html_table.rb +3 -3
- data/lib/DreamTeam/html_main.rb +4 -4
- data/lib/DreamTeam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbc0891f61c02a489e8c142f428db4d1e8dcc527662921d8b2055def22198dfc
|
4
|
+
data.tar.gz: b7811901c4e374a5089e927fb29c55e53033fe344110718bfc16b71f02ba738b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96e5ae7a7f81a4e4ec2557edeaab937e95c90b07a175584bd0ad9c255ce361c2970a4e0433b753655f673b94ce64231ce025248dc098ec61769a84b612a43e7d
|
7
|
+
data.tar.gz: c522165470f8af76fa13ae79866fb2ead7e5ced3c6f6b6d7ce5f999e850fa337905dc1ee0af3ce3900f11e29a576b2fdbdd0c88220689db6f98de70e84abcf7d
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative 'parsing_films'
|
2
2
|
|
3
|
-
def create_table_with_film
|
4
|
-
fileHtml = File.new("
|
3
|
+
def create_table_with_film(path)
|
4
|
+
fileHtml = File.new(path + "/table_film.html", "w+")
|
5
5
|
|
6
6
|
fileHtml.puts "<style>
|
7
7
|
.table_dark {
|
@@ -76,4 +76,4 @@ end
|
|
76
76
|
|
77
77
|
fileHtml.puts "</table>"
|
78
78
|
fileHtml.close
|
79
|
-
end
|
79
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative 'parsing_games'
|
2
2
|
|
3
|
-
def create_table_with_user_game(user_id)
|
4
|
-
file_html = File.new("
|
3
|
+
def create_table_with_user_game(path, user_id)
|
4
|
+
file_html = File.new(path + "/table_game.html", "w+")
|
5
5
|
user_info = get_user_information(user_id)
|
6
6
|
file_html.puts "<style type='text/css'>
|
7
7
|
.table {
|
@@ -121,4 +121,4 @@ def create_table_with_user_game(user_id)
|
|
121
121
|
file_html.puts "</tbody>
|
122
122
|
</table>"
|
123
123
|
file_html.close
|
124
|
-
end
|
124
|
+
end
|
data/lib/DreamTeam/html_main.rb
CHANGED
@@ -4,10 +4,10 @@ require 'DreamTeam/Films/html_table'
|
|
4
4
|
module DreamTeam
|
5
5
|
module Html_main
|
6
6
|
class Html_main_page
|
7
|
-
def create_main(steam_id)
|
8
|
-
create_table_with_user_game(steam_id)
|
9
|
-
create_table_with_film
|
10
|
-
file_html = File.new('
|
7
|
+
def create_main(path, steam_id)
|
8
|
+
create_table_with_user_game(path, steam_id)
|
9
|
+
create_table_with_film(path)
|
10
|
+
file_html = File.new(path + '/main_table.html', 'w+')
|
11
11
|
file_html.puts "<!DOCTYPE html>
|
12
12
|
<html>
|
13
13
|
<head>
|
data/lib/DreamTeam/version.rb
CHANGED