From cd672849b84fb51f969c8df086c6b968ec6c6f7a Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 10 May 2019 16:00:44 +0800 Subject: [PATCH] Remove `gems` folder that was incorrectly checked in. --- gems/2.6.2/cache/omniauth-steam-1.0.6.gem | Bin 6656 -> 0 bytes .../gems/omniauth-steam-1.0.6/.gitignore | 4 - gems/2.6.2/gems/omniauth-steam-1.0.6/Gemfile | 6 -- .../2.6.2/gems/omniauth-steam-1.0.6/README.md | 70 ----------------- gems/2.6.2/gems/omniauth-steam-1.0.6/Rakefile | 1 - .../lib/omniauth-steam.rb | 2 - .../lib/omniauth-steam/version.rb | 5 -- .../lib/omniauth/strategies/steam.rb | 72 ------------------ .../omniauth-steam.gemspec | 22 ------ .../omniauth-steam-1.0.6.gemspec | 33 -------- 10 files changed, 215 deletions(-) delete mode 100644 gems/2.6.2/cache/omniauth-steam-1.0.6.gem delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/.gitignore delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/Gemfile delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/README.md delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/Rakefile delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam.rb delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam/version.rb delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth/strategies/steam.rb delete mode 100644 gems/2.6.2/gems/omniauth-steam-1.0.6/omniauth-steam.gemspec delete mode 100644 gems/2.6.2/specifications/omniauth-steam-1.0.6.gemspec diff --git a/gems/2.6.2/cache/omniauth-steam-1.0.6.gem b/gems/2.6.2/cache/omniauth-steam-1.0.6.gem deleted file mode 100644 index 39b08f2d698a878d9f545d4d50e95e8806f45afe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6656 zcmeHLXH*kP7Eb6LsnR7t6c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2h~maIMhpE$l%Z$> zk!D4kGwsU9E<^f_`4_h{B9X37jF^ui0vD@;|in`3?8?IwY@PJAW z>WCwbm8*TWA?d@bZW={^3E7-vG0F2<|quE>EA~iiO8Zr@iLI{gy53D5K7z zy;E`KEFq`*O~>MMcMyv6E-@?HKEa%a*<;Inwn;YR>f@6@(iNV4j30@tbPzIX>$VB| zS{NY1pC*PJ8~gg~#LZPJCbv?G*j80#GczP4DLOOkfFljNwG&_Hw@QIDL=?Aa+8;qb zyWlWuUm!~iVplW6%#67JvO>=34AilvS3z=vX(}5E#$22`AlP|?CPhjMp5zrJ%405v z3s|hC+fXSPuV_#cv2u9nVDlo+A*C;UJ-%}dd^)x9)+s-#6q?(F&~;v{;R@yIhw{%) zg@@k(Zk}Ib`U=W-Ehkk=P7hAf2By_y((W)`=rdus*KbddkQqr%MdsWR)nc60>Vrd# zgv}e|>(@mbEc=Zd-foCkie_&YDzJJdFJ_N7D3*OQEW3-~&T%&dcNOM*9()YetG$be zeO7kqIb{H&fUB@+7H7TLX|9R+bMKOXnca55?q@)9j8z$U%YS;RHT}>!y3}4CW-!ic=c@od@!Jlxv z^YEN;1V!nsx1+hWhP3b^^iinj9E}jgcFV*LrQc>aO~rb;~Pz+-!kVF<&&9DWaLLGWWV^7qU4gFot!S!^S(_T)0Y8 z)BE6v!pe~i8i8k`okk2G^rl*_^dtISI??v7W*WS9Kpi-!setl|u!`BReBas^b$)|` zMJeH~aW2zcv0QcrjFPrvOLT7}Js*PoV6U9$S+ZKwC!V>70O=}U4;BIc2U!1F;uiwH M5cq|_-wA<#0EKyuq5uE@ diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/.gitignore b/gems/2.6.2/gems/omniauth-steam-1.0.6/.gitignore deleted file mode 100644 index 4040c6c..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -*.gem -.bundle -Gemfile.lock -pkg/* diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/Gemfile b/gems/2.6.2/gems/omniauth-steam-1.0.6/Gemfile deleted file mode 100644 index 762505f..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/Gemfile +++ /dev/null @@ -1,6 +0,0 @@ -source "http://rubygems.org" - -# Specify your gem's dependencies in omniauth-steam.gemspec -gemspec - -gem "rake" diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/README.md b/gems/2.6.2/gems/omniauth-steam-1.0.6/README.md deleted file mode 100644 index 4ce6ff5..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# OmniAuth Steam - -This gem is an OmniAuth 1.0 strategy, supporting the Steam OpenID provider. - -## Usage - -Add to your `Gemfile`: - -```ruby -gem 'omniauth-steam' -``` - -And then integrate the strategy into your middleware: - -```ruby -use OmniAuth::Builder do - provider :steam, "my-steam-web-api-key" -end -``` - -If you are using Rails, you may want to add it to the middleware stack: - -```ruby -Rails.application.config.middleware.use OmniAuth::Builder do - provider :steam, ENV['STEAM_WEB_API_KEY'] -end -``` - -You will need to provide your Steam Web API key to be able to retrieve information about the authenticated user. You can request one by filling out [this form](http://steamcommunity.com/dev/apikey). - -For additional information, please refer to the [OmniAuth wiki](https://github.com/intridea/omniauth/wiki). - -## Authentication Hash - -Here's an example of the *Authentication Hash* available in `request.env['omniauth.auth']` - -```ruby -{ - :provider => "steam", - :uid => "76561198010202071", - :info => { - :nickname => "Reu", - :name => "Rodrigo Navarro", - :location => "BR", - :image => "http://media.steampowered.com/steamcommunity/public/images/avatars/3c/3c91a935dca0c1e243f3a67a198b0abea9cf6d48_medium.jpg", - :urls => { - :Profile => "http://steamcommunity.com/id/rnavarro1/" - } - }, - :credentials => {}, - :extra => { - :raw_info => { - :steamid => "76561198010202071", - :communityvisibilitystate => 3, - :profilestate => 1, - :personaname => "Reu", - :lastlogoff => 1325637158, - :profileurl => "http://steamcommunity.com/id/rnavarro1/", - :avatar => "http://media.steampowered.com/steamcommunity/public/images/avatars/3c/3c91a935dca0c1e243f3a67a198b0abea9cf6d48.jpg", - :avatarmedium => "http://media.steampowered.com/steamcommunity/public/images/avatars/3c/3c91a935dca0c1e243f3a67a198b0abea9cf6d48_medium.jpg", - :avatarfull => "http://media.steampowered.com/steamcommunity/public/images/avatars/3c/3c91a935dca0c1e243f3a67a198b0abea9cf6d48_full.jpg", - :personastate => 1, - :realname => "Rodrigo Navarro", - :primaryclanid => "103582791432706194", - :timecreated => 1243031082, - :loccountrycode => "BR" - } - } -} -``` diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/Rakefile b/gems/2.6.2/gems/omniauth-steam-1.0.6/Rakefile deleted file mode 100644 index 2995527..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/Rakefile +++ /dev/null @@ -1 +0,0 @@ -require "bundler/gem_tasks" diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam.rb b/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam.rb deleted file mode 100644 index 6080ad7..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam.rb +++ /dev/null @@ -1,2 +0,0 @@ -require "omniauth-steam/version" -require File.expand_path("../omniauth/strategies/steam", __FILE__) \ No newline at end of file diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam/version.rb b/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam/version.rb deleted file mode 100644 index d7b6bb0..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth-steam/version.rb +++ /dev/null @@ -1,5 +0,0 @@ -module OmniAuth - module Steam - VERSION = "1.0.6" - end -end diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth/strategies/steam.rb b/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth/strategies/steam.rb deleted file mode 100644 index 861218b..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/lib/omniauth/strategies/steam.rb +++ /dev/null @@ -1,72 +0,0 @@ -require 'omniauth-openid' -require 'multi_json' - -module OmniAuth - module Strategies - class Steam < OmniAuth::Strategies::OpenID - args :api_key - - option :api_key, nil - option :name, "steam" - option :identifier, "http://steamcommunity.com/openid" - - uid { steam_id } - - info do - begin - { - "nickname" => player["personaname"], - "name" => player["realname"], - "location" => [player["loccityid"], player["locstatecode"], player["loccountrycode"]].compact.join(", "), - "image" => player["avatarmedium"], - "urls" => { - "Profile" => player["profileurl"], - "FriendList" => friend_list_url - } - } - rescue MultiJson::ParseError => exception - fail!(:steamError, exception) - {} - end - end - - extra do - begin - { "raw_info" => player } - rescue MultiJson::ParseError => exception - fail!(:steamError, exception) - {} - end - end - - private - - def raw_info - @raw_info ||= options.api_key ? MultiJson.decode(Net::HTTP.get(player_profile_uri)) : {} - end - - def player - @player ||= raw_info["response"]["players"].first - end - - def steam_id - @steam_id ||= begin - claimed_id = openid_response.display_identifier.split('/').last - expected_uri = %r{\Ahttps?://steamcommunity\.com/openid/id/#{claimed_id}\Z} - unless expected_uri.match(openid_response.endpoint.claimed_id) - raise 'Steam Claimed ID mismatch!' - end - claimed_id - end - end - - def player_profile_uri - URI.parse("https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=#{options.api_key}&steamids=#{steam_id}") - end - - def friend_list_url - URI.parse("https://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=#{options.api_key}&steamid=#{steam_id}&relationship=friend") - end - end - end -end diff --git a/gems/2.6.2/gems/omniauth-steam-1.0.6/omniauth-steam.gemspec b/gems/2.6.2/gems/omniauth-steam-1.0.6/omniauth-steam.gemspec deleted file mode 100644 index d51e6ea..0000000 --- a/gems/2.6.2/gems/omniauth-steam-1.0.6/omniauth-steam.gemspec +++ /dev/null @@ -1,22 +0,0 @@ -# -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) -require "omniauth-steam/version" - -Gem::Specification.new do |s| - s.name = "omniauth-steam" - s.version = OmniAuth::Steam::VERSION - s.authors = ["Rodrigo Navarro"] - s.email = ["rnavarro1@gmail.com"] - s.homepage = "https://github.com/reu/omniauth-steam" - s.summary = "Steam strategy for OmniAuth" - - s.rubyforge_project = "omniauth-steam" - - s.files = `git ls-files`.split("\n") - `git ls-files examples`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - s.require_paths = ["lib"] - - s.add_runtime_dependency "omniauth-openid" - s.add_runtime_dependency "multi_json" -end diff --git a/gems/2.6.2/specifications/omniauth-steam-1.0.6.gemspec b/gems/2.6.2/specifications/omniauth-steam-1.0.6.gemspec deleted file mode 100644 index 00af3ff..0000000 --- a/gems/2.6.2/specifications/omniauth-steam-1.0.6.gemspec +++ /dev/null @@ -1,33 +0,0 @@ -# -*- encoding: utf-8 -*- -# stub: omniauth-steam 1.0.6 ruby lib - -Gem::Specification.new do |s| - s.name = "omniauth-steam".freeze - s.version = "1.0.6" - - s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= - s.require_paths = ["lib".freeze] - s.authors = ["Rodrigo Navarro".freeze] - s.date = "2018-07-30" - s.email = ["rnavarro1@gmail.com".freeze] - s.homepage = "https://github.com/reu/omniauth-steam".freeze - s.rubygems_version = "3.0.3".freeze - s.summary = "Steam strategy for OmniAuth".freeze - - s.installed_by_version = "3.0.3" if s.respond_to? :installed_by_version - - if s.respond_to? :specification_version then - s.specification_version = 4 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q.freeze, [">= 0"]) - s.add_runtime_dependency(%q.freeze, [">= 0"]) - else - s.add_dependency(%q.freeze, [">= 0"]) - s.add_dependency(%q.freeze, [">= 0"]) - end - else - s.add_dependency(%q.freeze, [">= 0"]) - s.add_dependency(%q.freeze, [">= 0"]) - end -end