destiny_rb 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 4373dd724f34c41342d1eacc976fd21471d30dcd
4
- data.tar.gz: 006349a2e9dca25e6540b89209bfa79ede3b2ded
3
+ metadata.gz: ef47131cc7771e91ffd6e912ef12286766f80347
4
+ data.tar.gz: 3829409f7ef3cbe96529103758f28eab26888123
5
5
  SHA512:
6
- metadata.gz: c1e098690e716b3a409166c15fdefc8369d4dd8967b822f126cfaa9b4c0c9d2f7d03b5e60ceac8ae39d70a4e54d23d369544e5979ba5138463130aa374bfe99a
7
- data.tar.gz: 946b076a2bf1c143fc39584e51a547ae9dcaec3152d21cdc0b88d04c780b65cbf33cca1e6f0002b8a45a6b9b392dd07091106e82f96d6340c67b0cd3ec422675
6
+ metadata.gz: e468aed89f2325f93301733d2976e71e035bdcb78aa39e829110afd0d010d91488d9bdc7458b3b6af23aa5d11233ad5e833fe272165048509a087dc9cb32e487
7
+ data.tar.gz: 2930e57beceddc39832e236ee56b336834f6030f65ba9df68d35fc3562a4c01d42a86e0ee8f4651c614abad13b2c232e9b56ef0eed74b4719dcc7adfe82d487f
@@ -29,7 +29,7 @@ module Destiny
29
29
  # A JSON object containing activity information based on the activity hash supplied with:
30
30
  # activityName: (String)
31
31
  # activityDescription: (String)
32
- # skulls: (Array)(Strings)
32
+ # skulls: (Array)(Hash)(Strings)
33
33
  #
34
34
  # If raw = true, returns whole response back from bungie.
35
35
  #
@@ -37,12 +37,12 @@ module Destiny
37
37
  raw_data = self.class.get("/Manifest/Activity/#{activity_hash}", headers: @headers).parsed_response['Response']['data']['activity']
38
38
  skulls = []
39
39
  raw_data['skulls'].each do |skull|
40
- skulls << skull['displayName']
40
+ skulls << { :name => skull['displayName'], :description => skull['description'], :icon => skull['icon'] }
41
41
  end
42
42
  if raw
43
43
  raw_data
44
44
  else
45
- parsed_data = { activityName: raw_data['activityName'], activityDescription: raw_data['activityDescription'], skulls: skulls }
45
+ parsed_data = { activityName: raw_data['activityName'], activityDescription: raw_data['activityDescription'], skulls: skulls, pgcrImage: raw_data['pgcrImage'] }
46
46
  end
47
47
  end
48
48
 
@@ -1,3 +1,3 @@
1
1
  module Destiny
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: destiny_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - pDaily
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-19 00:00:00.000000000 Z
11
+ date: 2016-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty