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 +4 -4
- data/lib/destiny_rb/advisors.rb +16 -10
- data/lib/destiny_rb/client.rb +1 -1
- data/lib/destiny_rb/item_explorer.rb +1 -1
- data/lib/destiny_rb/manifest.rb +3 -3
- data/lib/destiny_rb/vendors.rb +1 -1
- data/lib/destiny_rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a3ce7d1768ec3f0dcb30d8e1dc8eab508806dba
|
4
|
+
data.tar.gz: c31b04a2ad0870b39377270b4bba040b9fab68f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3036e42fb12642f7bad80f973249f2a4911bd83487f7d13600210801dc1805944a937768b02ebcf157316d51b8ed0635d24a3b98cceb2e764fb41b6ca9f33f
|
7
|
+
data.tar.gz: fb1f0288650672968ffa7b07b2aec629d0983620fab272aac503753d4a17ec7a8e7f44dbf8ded651d55817d07991871ba1ffe3223f093cab4783f93329fe670f
|
data/lib/destiny_rb/advisors.rb
CHANGED
@@ -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
|
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
|
-
#
|
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
|
49
|
+
# GET the weekly nightfall info from '/manifest/activity/#{activity_hash}'
|
50
50
|
#
|
51
51
|
# Optional boolean argument.
|
52
52
|
#
|
53
53
|
# Usage:
|
54
|
-
#
|
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
|
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
|
-
#
|
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
|
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
|
-
#
|
83
|
-
|
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
|
data/lib/destiny_rb/client.rb
CHANGED
@@ -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
|
-
#
|
29
|
+
# client = Destiny::Client.new('6971067dec36c6597cd57789a62f48f0')
|
30
30
|
#
|
31
31
|
# Arguments:
|
32
32
|
# api_token: (String)
|
data/lib/destiny_rb/manifest.rb
CHANGED
@@ -4,7 +4,7 @@ module Destiny
|
|
4
4
|
# GET information about a place, specifically a planet.
|
5
5
|
#
|
6
6
|
# Usage:
|
7
|
-
#
|
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
|
-
#
|
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
|
data/lib/destiny_rb/vendors.rb
CHANGED
data/lib/destiny_rb/version.rb
CHANGED