DreamTeam 1.0.1 → 1.0.3

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: e1cb92ee4fcbc6cd3f234a7b381c8410c9cf6253a621af21c943cc89bedb56c9
4
- data.tar.gz: b46529b4d292c3f1247dfd558ccd3a08b1c0d6782b56ba3e8b83eb14ff54cd8b
3
+ metadata.gz: c9c3702a9a1031c72921ed8055e781121180e04f409709b0a8a30b6c2807626b
4
+ data.tar.gz: ecfeb2274571006fbc2844db6089b2f8ce83d902aa812853c0d9c57ba109ffb6
5
5
  SHA512:
6
- metadata.gz: 8cf658a99c61e70f48d774741bcf6825882208fd17cd4ebcb4122be26610fbef36f278172f5b628a71435aef20655fe03d9fc1add97729e2841b48eb0be7f817
7
- data.tar.gz: d00ca30e8b4c2f0cf8dfd22b0d50ff75a875c598e31b08be31363a627bb3961f5160301218cb94440bd7dc76c8585d92b66cf10eaa37d00d592f8affc340adf7
6
+ metadata.gz: ab9880a24dc5a0b3e27ccd896d2abb3434fbdbec6891c09c3dc81c944d2b3f2895f3877acb0348be272f4a3867b02eb4cde93480a219be549405a40a3fdd1381
7
+ data.tar.gz: f8c26c107702d123336141553bb7bbd508d00629742dd152664e7bbbdc8709722f69c3932c063c2b4f0badb225ba930271b36b0319a41d0686f46d9e5b143e26
@@ -1,7 +1,7 @@
1
1
  require_relative 'parsing_films'
2
2
 
3
- def create_table_with_film
4
- fileHtml = File.new("lib/DreamTeam/Films/table.html", "w+")
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("lib/DreamTeam/Games/table.html", "w+")
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
@@ -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('lib/DreamTeam/main_table.html', 'w+')
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>
@@ -29,8 +29,8 @@ module DreamTeam
29
29
  <div>
30
30
  <p border='0'>
31
31
  <div2>
32
- <a href='Games/table.html'><img src='../../images/logo1.png' width=45% border='0' alt=''></a>
33
- <a href='Films/table.html'><img src='../../images/logo2.png' width=45% border='0' alt=''></a>
32
+ <a href='#{path + '/table_game.html'}'><img src='https://github.com/Spoky-Loki/DreamTeam/blob/master/images/logo1.png' width=45% border='0' alt=''></a>
33
+ <a href='#{path + '/table_film.html'}'><img src='https://github.com/Spoky-Loki/DreamTeam/blob/master/images/logo2.png' width=45% border='0' alt=''></a>
34
34
  </div2>
35
35
  </p>
36
36
  </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DreamTeam
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DreamTeam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spooky_Loki