playstationnetwork-api 3.1 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -4
- data/lib/playstationnetwork/api.rb +2 -2
- data/lib/playstationnetwork/store.rb +2 -2
- data/lib/playstationnetwork/version.rb +6 -6
- data/playstationnetwork-api.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f68cc7788803d58cb2961e0f771cfbea1ba8c9468d41f614ff2c64fa378489c
|
4
|
+
data.tar.gz: 0a0e81b55edf645ae2025146fb94772d7363fe29a331f5b21fdbda20851749c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c218b8d4dbb465911aa190037521e3104e15c18c89bed2fcb3aaed3a2937425a8c9b82c0caa99f2dbc88c4e462c0c779aad0e5d79bcd894294871b295effccf
|
7
|
+
data.tar.gz: e4fd871f70e9cf5e318a776f9ed28a52f6875ab0c8d0dbb46c561b239998bfebb3addd4cc0f482617c2df0cc19f80fdd26442e50cbea31c85b303694dfcd3037
|
data/.gitignore
CHANGED
@@ -31,11 +31,11 @@ module PlayStationNetwork
|
|
31
31
|
attr_writer :key, :secret, :url, :verify_ssl
|
32
32
|
|
33
33
|
def key
|
34
|
-
@key || '
|
34
|
+
@key || ''
|
35
35
|
end
|
36
36
|
|
37
37
|
def secret
|
38
|
-
@secret || '
|
38
|
+
@secret || ''
|
39
39
|
end
|
40
40
|
|
41
41
|
def url
|
@@ -38,7 +38,7 @@ module PlayStationNetwork
|
|
38
38
|
end
|
39
39
|
|
40
40
|
response = http.request(request)
|
41
|
-
|
41
|
+
|
42
42
|
if response.code == '200'
|
43
43
|
results = JSON.parse(response.body)['included'].select do |result|
|
44
44
|
result['attributes']['game-content-type'] == game_type
|
@@ -72,7 +72,7 @@ module PlayStationNetwork
|
|
72
72
|
end
|
73
73
|
|
74
74
|
response = http.request(request)
|
75
|
-
|
75
|
+
|
76
76
|
if response.code == '200'
|
77
77
|
return JSON.parse(
|
78
78
|
JSON.parse(response.body)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module PlayStationNetwork
|
2
|
-
VERSION ||= '3.1'
|
2
|
+
VERSION ||= '3.1.1'
|
3
3
|
|
4
4
|
def self.changelog
|
5
5
|
puts "
|
@@ -10,15 +10,15 @@ module PlayStationNetwork
|
|
10
10
|
v0.0.3 - Added Trophies offset
|
11
11
|
v0.1.0 - Pluralized Renamed Trophy and TrophyGroup classes
|
12
12
|
v0.1.1 - Added a convenient method 'all' on Trophies, without having to pass the group id as an argument
|
13
|
-
|
13
|
+
|
14
14
|
v1.0 - This version is not backwards compatible! Read below for new API endpoints
|
15
|
-
|
15
|
+
|
16
16
|
v1.0.0 - Introduces a new API source and a new format
|
17
17
|
v1.0.1 - Fixes a bug where ActiveSupport version would cause an issue with existing rails apps
|
18
18
|
v1.0.2 - Adds correct hash format to pass the api key and secret to each route
|
19
|
-
|
19
|
+
|
20
20
|
v2.0 - This version is not backwards compatible! Read below for new API endpoints
|
21
|
-
|
21
|
+
|
22
22
|
v2.0.0
|
23
23
|
- Simplified API calls. Instead of separating each endpoint into its own file, use one file per class
|
24
24
|
- Remove all dependencies except HTTParty and use native Ruby where dependency was required
|
@@ -31,7 +31,7 @@ module PlayStationNetwork
|
|
31
31
|
Profile: ::U::User.profile('pacMakaveli90') -> ::User.new('pacMakaveli90').profile
|
32
32
|
Games: ::U::Games.all('pacMakaveli90') -> ::User.new('pacMakaveli90').games
|
33
33
|
Trophies: ::U::Trophies.all('pacMakaveli90', 'NPWR00132_00') -> ::User.new('pacMakaveli90').trophies('NPWR00132_00')
|
34
|
-
|
34
|
+
|
35
35
|
# Games
|
36
36
|
#
|
37
37
|
Game: ::G::Game.find('NPWR00132_00') -> ::Game.new('NPWR00132_00').details
|
@@ -7,8 +7,8 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.authors = ['Vlad Radulescu']
|
8
8
|
spec.email = ['oss@games.directory']
|
9
9
|
|
10
|
-
spec.summary = %q{ A Ruby wrapper around PSN Leaderboard's API }
|
11
|
-
spec.description = %q{ Allows your app to communicate with the PlayStation Network API and retrieve your, or a given user, Games, Trophies and Achievements. API is provided by psnloaderboard.com . }
|
10
|
+
spec.summary = %q{ [DEPRECATED] A Ruby wrapper around PSN Leaderboard's API }
|
11
|
+
spec.description = %q{ [DEPRECATED] Allows your app to communicate with the PlayStation Network API and retrieve your, or a given user, Games, Trophies and Achievements. API is provided by psnloaderboard.com . }
|
12
12
|
spec.homepage = ''
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playstationnetwork-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlad Radulescu
|
@@ -66,9 +66,9 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '12.3'
|
69
|
-
description: " Allows your app to communicate with the PlayStation Network
|
70
|
-
retrieve your, or a given user, Games, Trophies and Achievements. API is
|
71
|
-
by psnloaderboard.com . "
|
69
|
+
description: " [DEPRECATED] Allows your app to communicate with the PlayStation Network
|
70
|
+
API and retrieve your, or a given user, Games, Trophies and Achievements. API is
|
71
|
+
provided by psnloaderboard.com . "
|
72
72
|
email:
|
73
73
|
- oss@games.directory
|
74
74
|
executables:
|
@@ -111,5 +111,5 @@ requirements: []
|
|
111
111
|
rubygems_version: 3.1.2
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
|
-
summary: A Ruby wrapper around PSN Leaderboard's API
|
114
|
+
summary: "[DEPRECATED] A Ruby wrapper around PSN Leaderboard's API"
|
115
115
|
test_files: []
|