DreamTeam 1.0.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44fe4579aca3b8a24360b67ef7460fb30b6e106902eda1a0d57c417e662c825c
4
- data.tar.gz: bdb2ecf2275d5dd44a0f0d3a2c92e33474f308254db219a2120a7f090f6827f5
3
+ metadata.gz: bbc0891f61c02a489e8c142f428db4d1e8dcc527662921d8b2055def22198dfc
4
+ data.tar.gz: b7811901c4e374a5089e927fb29c55e53033fe344110718bfc16b71f02ba738b
5
5
  SHA512:
6
- metadata.gz: f702732d72c19bc91b8d51ec8ff0cf8e3009e3150e14a20331b306ea2b8b473ef120e722dbc9e085059b22f8829fde69e3a5d2c42dd2a9980d8a886689543bfa
7
- data.tar.gz: a7f6bb1499b917d25a0580e176f2f4690382cff8232728c618b51cdc892870b0933a0e7982fad7903bb21c89898d25e8c42c5aa38e96c3213aa37912c04c25e0
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("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 {
@@ -1,6 +1,5 @@
1
1
  require 'open-uri'
2
2
  require 'nokogiri'
3
- require_relative 'api_key'
4
3
 
5
4
  def get_user_information(steam_id)
6
5
  url = Nokogiri::HTML5(URI.open('https://steamcommunity.com/profiles/' + steam_id + '/?xml=1')).to_s
@@ -13,7 +12,7 @@ def get_user_games(steam_id)
13
12
  res = []
14
13
  begin
15
14
  url = Nokogiri::HTML5(URI.open('https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/?steamid=' +
16
- + steam_id + '&key=' + GetKey())).to_s
15
+ + steam_id + '&key=' + 'FB8E10E3C18DFD06F605ACF4D049866A')).to_s
17
16
  rescue
18
17
  return res
19
18
  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>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DreamTeam
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.2"
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.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spooky_Loki