destiny_rb 0.1.0 → 0.1.1

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: 33b674773d7c75eec6ace73041554d225b7c7492
4
- data.tar.gz: ce89d49e9c8dd492fea6d36b34fb453062e6d778
3
+ metadata.gz: 4a3ce7d1768ec3f0dcb30d8e1dc8eab508806dba
4
+ data.tar.gz: c31b04a2ad0870b39377270b4bba040b9fab68f9
5
5
  SHA512:
6
- metadata.gz: 9af5f5aaa57188d2a7d6a384772edf933723f2ce937c49a372aaa3a142f5903f61cf99b628721a7aab7296c9bc7e7700d33b03a625f09c281190e3efe305f6f5
7
- data.tar.gz: ce9cc451ac68e6e2b133e2eeca67b55c124b284145c817ff8ae09f61215cc98a145ecbd9c368bd00e6a163999b47fab131831ddd536b5209f73ad431eb2e9901
6
+ metadata.gz: bb3036e42fb12642f7bad80f973249f2a4911bd83487f7d13600210801dc1805944a937768b02ebcf157316d51b8ed0635d24a3b98cceb2e764fb41b6ca9f33f
7
+ data.tar.gz: fb1f0288650672968ffa7b07b2aec629d0983620fab272aac503753d4a17ec7a8e7f44dbf8ded651d55817d07991871ba1ffe3223f093cab4783f93329fe670f
@@ -14,12 +14,12 @@ module Destiny
14
14
  parsed = raw_data.parsed_response['Response']['data']
15
15
  end
16
16
 
17
- # GET the activity information from http://www.bungie.net/platform/destiny/manifest/activity/{activity_hash}/
17
+ # GET the activity information from '/manifest/activity/{activity_hash}/'
18
18
  #
19
19
  # Raw argument will return an unmodified respons from Bungie.
20
20
  #
21
21
  # Usage:
22
- # destiny.activity('3508129769', false)
22
+ # client.activity('3508129769', false)
23
23
  #
24
24
  # Arguments:
25
25
  # activity_hash: (String)
@@ -46,28 +46,28 @@ module Destiny
46
46
  end
47
47
  end
48
48
 
49
- # GET the weekly nightfall info from http://www.bungie.net/platform/destiny/manifest/activity/#{activity_hash}
49
+ # GET the weekly nightfall info from '/manifest/activity/#{activity_hash}'
50
50
  #
51
51
  # Optional boolean argument.
52
52
  #
53
53
  # Usage:
54
- # destiny.nightfall(true)
54
+ # client.nightfall(true)
55
55
  #
56
56
  # Arguments:
57
57
  # raw: (boolean)
58
58
  #
59
59
  def nightfall(raw=false)
60
60
  nightfall_activity_hash = self.daily_report['nightfallActivityHash']
61
- activity_search(nightfall_activity_hash)
61
+ activity_search(nightfall_activity_hash, raw)
62
62
  end
63
63
 
64
- # GET the weekly strike info from http://www.bungie.net/platform/destiny/manifest/activity/#{activity_hash}
64
+ # GET the weekly strike info from '/manifest/activity/#{activity_hash}'
65
65
  # Returns an array of three items, only need one for the skulls and location.
66
66
  #
67
67
  # Optional boolean argument, defaults to false from activity method to return basic information for Lita bot.
68
68
  #
69
69
  # Usage:
70
- # destiny.weekly_strike(false)
70
+ # client.weekly_strike(false)
71
71
  #
72
72
  # Arguments:
73
73
  # raw: (boolean)
@@ -77,10 +77,16 @@ module Destiny
77
77
  activity_search(heroic_strike_hashes[0], raw)
78
78
  end
79
79
 
80
- # GET the weekly nightfall info from http://www.bungie.net/platform/destiny/manifest/activity/#{activity_hash}
80
+ # GET the weekly prison of elders pulled info from '/advisors' endpoint
81
+ # Without any arguments, only returns the level 32 information.
81
82
  #
82
- # No known endpoints.
83
- def arena(raw=false, level=32)
83
+ # Usage:
84
+ # client.arena(34)
85
+ #
86
+ # Arguments:
87
+ # level: (integer)
88
+ #
89
+ def arena(level=32)
84
90
  arenas = self.daily_report['arena']
85
91
  case level
86
92
  when 32
@@ -26,7 +26,7 @@ module Destiny
26
26
  # Init the Destiny API with Bungie API stored in ENV variable
27
27
  #
28
28
  # Usage:
29
- # destiny = Destiny::Client.new('6971067dec36c6597cd57789a62f48f0')
29
+ # client = Destiny::Client.new('6971067dec36c6597cd57789a62f48f0')
30
30
  #
31
31
  # Arguments:
32
32
  # api_token: (String)
@@ -5,7 +5,7 @@ module Destiny
5
5
  #
6
6
  # Usage:
7
7
  # client.types(:armor)
8
- # client.enemy_race(2)
8
+ # client.types(2)
9
9
  #
10
10
  # Arguments:
11
11
  # type: (String/Symbol)
@@ -4,7 +4,7 @@ module Destiny
4
4
  # GET information about a place, specifically a planet.
5
5
  #
6
6
  # Usage:
7
- # destiny.place('3747705955')
7
+ # client.place('3747705955')
8
8
  #
9
9
  # Arguments:
10
10
  # place_hash: (String)
@@ -17,7 +17,7 @@ module Destiny
17
17
  # GET information about a destination, specifically a location on a planet.
18
18
  #
19
19
  # Usage:
20
- # destiny.destination('518553403')
20
+ # client.destination('518553403')
21
21
  #
22
22
  # Arguments:
23
23
  # destination_hash: (String)
@@ -26,6 +26,6 @@ module Destiny
26
26
  raw_data = self.class.get('/Manifest/Destination/#{destination_hash}').parsed_response['Response']['data']
27
27
  response = { dest_name: raw_data['destinationName'], dest_desc: raw_data['destinationDescription'] }
28
28
  end
29
-
29
+
30
30
  end
31
31
  end
@@ -2,7 +2,7 @@ module Destiny
2
2
  module Vendors
3
3
 
4
4
  # WIP: Pull xur inventory
5
- # http://www.bungie.net/platform/destiny/advisors/xur/
5
+ # '/advisors/xur/''
6
6
  def xur(raw=false)
7
7
  raw_data = self.class.get('/Advisors/Xur/').parsed_response['Response']
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Destiny
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: destiny_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pDaily