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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed8df8d87ebafa825a4892aa8a5d4d8c468a3526891611deebcbfa6e13721ac6
4
- data.tar.gz: 6b2fd961cf40dc0073dfcb59e7110e37c24b045103c5ee3882a4833262a3b9ec
3
+ metadata.gz: 3f68cc7788803d58cb2961e0f771cfbea1ba8c9468d41f614ff2c64fa378489c
4
+ data.tar.gz: 0a0e81b55edf645ae2025146fb94772d7363fe29a331f5b21fdbda20851749c1
5
5
  SHA512:
6
- metadata.gz: 750c870408d9c4de23cb83151d651bc3a4b9d83a03e419e9924d6847e822a7d23e85eedb34559756ddfbd7ae056242dd0fc813be915b6efab927abdaea1e8a2d
7
- data.tar.gz: 552d9c738e2e05335dd103a29414e25bf0c4a3348ea6a36e1ca507626fbda40d20ea41a7eaef3c45a3c7468a6d9d07c75e2a61303bafb0a63c1c77f866d18c60
6
+ metadata.gz: 4c218b8d4dbb465911aa190037521e3104e15c18c89bed2fcb3aaed3a2937425a8c9b82c0caa99f2dbc88c4e462c0c779aad0e5d79bcd894294871b295effccf
7
+ data.tar.gz: e4fd871f70e9cf5e318a776f9ed28a52f6875ab0c8d0dbb46c561b239998bfebb3addd4cc0f482617c2df0cc19f80fdd26442e50cbea31c85b303694dfcd3037
data/.gitignore CHANGED
@@ -1,7 +1,3 @@
1
1
  # Ignore Gemfile.lock
2
2
  #
3
3
  *.lock
4
-
5
- # Ignore generated .gem files
6
- #
7
- *.gem
@@ -31,11 +31,11 @@ module PlayStationNetwork
31
31
  attr_writer :key, :secret, :url, :verify_ssl
32
32
 
33
33
  def key
34
- @key || '4047cc6b66393a82a0c7d90844cf0d88b14e0c3a'
34
+ @key || ''
35
35
  end
36
36
 
37
37
  def secret
38
- @secret || 'pacMakaveli90'
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: '3.1'
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 API and
70
- retrieve your, or a given user, Games, Trophies and Achievements. API is provided
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: []