clash_of_clans_api 0.4.0 → 0.4.1

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: c3406e2ce3f3bf897da83e7a6412a66e692bb76e8df66b83d84a7b3132663af2
4
- data.tar.gz: 56b4c3b5d2bcd0fd39dcc80a44182e783c24087442fed953e5f85ab8e221b9f1
3
+ metadata.gz: fad57278f4c548b496dc331ed301684b8f86814c3cda412411fc93aa6de1b8fb
4
+ data.tar.gz: 35f2d2e5fbe8a58702bfc9ac07bbb708812162321aa2bdc9c004a450358626aa
5
5
  SHA512:
6
- metadata.gz: 451953dbac8d17669134d8cd072425e1f406aa50425b01fc003549a1285337cae130f60831f3294546128cbd717f97255ed0c82372982729f44eeebe0c962d4c
7
- data.tar.gz: f098a36f13f7925fc402e38517115610a7e686c1ec431bf60bef177b9acf27dee139b839a88ec898dfac4de6af484c86e9f815b717b5fd71a021838b0c38ddcb
6
+ metadata.gz: 41e9cd2fee91bda4f81f8bf7459a78b24167357d5350c6d3ec72de25a8a33caccef9a39c3185da7a9e301bf96295283937c42f05fa8fa2f4866fbcd58c69b0c4
7
+ data.tar.gz: 4bc9e643ba24e1a720a51b7a8fe724155f3048f1803b16971cb002dd5f9e3d49925967da9c20d31fb057cfdd7eae6feb35bc163c6d59407ff8eab6572fbc339c
@@ -1,6 +1,7 @@
1
1
  require_relative 'api'
2
2
  require_relative 'models/paginated_response'
3
3
  require_relative 'models/clan'
4
+ require_relative 'models/clan_war_league_group'
4
5
  require_relative 'models/player'
5
6
  require_relative 'models/league'
6
7
  require_relative 'models/war'
@@ -17,6 +18,14 @@ module ClashOfClansApi
17
18
  api.perform_request(:get, 'test').code == '404'
18
19
  end
19
20
 
21
+ def clan_currentwar_leaguegroup(clan_tag)
22
+ Models::ClanWarLeagueGroup.new(api.clan_currentwar_leaguegroup(clan_tag), self)
23
+ end
24
+
25
+ def clanwarleagues_war(war_tag)
26
+ Models::War.new(api.clanwarleagues_war(war_tag), self)
27
+ end
28
+
20
29
  def clan_currentwar(clan_tag)
21
30
  Models::War.new(api.clan_currentwar(clan_tag), self)
22
31
  end
@@ -0,0 +1,15 @@
1
+ require_relative 'base'
2
+ require_relative 'clan_war_league_clan_member'
3
+ require_relative 'icon_set'
4
+
5
+ module ClashOfClansApi
6
+ module Models
7
+ class ClanWarLeagueClan < Base
8
+ property :tag, 'tag', required: true
9
+ property :name, 'name', required: true
10
+ property :clan_level, 'clanLevel', required: true
11
+ property :badge_urls, 'badgeUrls', required: true, type: IconSet
12
+ property :members, 'members', required: true, type: ClanWarLeagueClanMember
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ require_relative 'base'
2
+
3
+ module ClashOfClansApi
4
+ module Models
5
+ class ClanWarLeagueClanMember < Base
6
+ property :tag, 'tag', required: true
7
+ property :name, 'name', required: true
8
+ property :townhall_level, 'townhallLevel', required: true
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,14 @@
1
+ require_relative 'base'
2
+ require_relative 'clan_war_league_clan'
3
+ require_relative 'clan_war_league_round'
4
+
5
+ module ClashOfClansApi
6
+ module Models
7
+ class ClanWarLeagueGroup < Base
8
+ property :state, 'state', required: true
9
+ property :season, 'season', required: true
10
+ property :clans, 'clans', required: true, type: ClanWarLeagueClan
11
+ property :rounds, 'rounds', required: true, type: ClanWarLeagueRound
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ require_relative 'base'
2
+
3
+ module ClashOfClansApi
4
+ module Models
5
+ class ClanWarLeagueRound < Base
6
+ property :war_tags, 'warTags', required: true
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClashOfClansApi
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clash_of_clans_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - expeehaa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-26 00:00:00.000000000 Z
11
+ date: 2024-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api_frame
@@ -44,6 +44,10 @@ files:
44
44
  - lib/clash_of_clans_api/models/clan_capital.rb
45
45
  - lib/clash_of_clans_api/models/clan_capital_district.rb
46
46
  - lib/clash_of_clans_api/models/clan_location.rb
47
+ - lib/clash_of_clans_api/models/clan_war_league_clan.rb
48
+ - lib/clash_of_clans_api/models/clan_war_league_clan_member.rb
49
+ - lib/clash_of_clans_api/models/clan_war_league_group.rb
50
+ - lib/clash_of_clans_api/models/clan_war_league_round.rb
47
51
  - lib/clash_of_clans_api/models/hero.rb
48
52
  - lib/clash_of_clans_api/models/hero_equipment.rb
49
53
  - lib/clash_of_clans_api/models/icon_set.rb
@@ -91,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
95
  - !ruby/object:Gem::Version
92
96
  version: '0'
93
97
  requirements: []
94
- rubygems_version: 3.4.10
98
+ rubygems_version: 3.5.3
95
99
  signing_key:
96
100
  specification_version: 4
97
101
  summary: Client library for interacting with the ClashOfClans API.