wot_xbox_api 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: c316d361a2ecd2642c46231d0a28b0890d4c21ef
4
- data.tar.gz: 62602a7ac4f578866c81fb50d37fb74aa0840025
3
+ metadata.gz: df15d0eaa7fcc66f1f60cc4069cfbbc4361b4aa5
4
+ data.tar.gz: f9df13bf66454b3202c57782801960ffeafda509
5
5
  SHA512:
6
- metadata.gz: 54399a1c58d0a63c31c4056535a7b12a5c218f3c438202cdfdb7afc40f4b2c8f80c5b95d691827bc66c55c09d753c953ff390c1507e3ba5bb66e90f6c756a18f
7
- data.tar.gz: e1d7fccb26c838c893534d552906fe137133fd69bbbc19dc35545348f6c9bbcd5cf03e52093870da096384e3868c84c0e190212bbfeb8996fd8012cd0c302e71
6
+ metadata.gz: f1e213d50a56c88b4920ab6269cb6c9ed2c487d167a869dc941594e8af09bebde6b6fab9eba3824a6391eadc82cffa1593a0f7fca6ef282774c2ce8894698e30
7
+ data.tar.gz: 96a74bb7b94331c1d717aa2a3e50ee8646c30c6f1c7e087395ca865070e96dc450a5c9d2d47a45984a5c854dd31b4866ebb7e068b168c7771b36f93e3e8f48c3
@@ -26,6 +26,12 @@ module WotXboxApi
26
26
  ))
27
27
  end
28
28
 
29
+ def self.clan_stats(clan_tag)
30
+ WotXboxApi::Clan.new(clan_tag, Nokogiri::HTML(
31
+ get("/en/clans/xbox/#{clan_tag}").body
32
+ ))
33
+ end
34
+
29
35
  def player_search
30
36
  #todo
31
37
  end
@@ -1,3 +1,3 @@
1
1
  module WotXboxApi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/wot_xbox_api.rb CHANGED
@@ -5,6 +5,7 @@ require 'thread/future'
5
5
  require "wot_xbox_api/version"
6
6
  require "wot_xbox_api/client"
7
7
  require "wot_xbox_api/call_failed_exception"
8
+ require 'wot_xbox_api/clan'
8
9
  require 'wot_xbox_api/leaderboard'
9
10
  require 'wot_xbox_api/player_stats'
10
11
  require 'wot_xbox_api/player_tank_stats'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wot_xbox_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Calvert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2015-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty