playstationnetwork-api 2.1.1 → 2.1.2
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/playstationnetwork/api.rb +8 -4
- data/lib/playstationnetwork/version.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b9b7df510bfc8a63fa11d22d7df2b71d4995a48
|
|
4
|
+
data.tar.gz: bfaa01f192a7fa3947b970fc4be2200ef7c95359
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21798f59011e728095efe55e76ce331d138a7f2f5c101f0c048791f72574599b5190b0606a9112a4439ba12aed8b8262081ebb205bf1cb3814d5cbcf59661424
|
|
7
|
+
data.tar.gz: a54fe341db147350244270536b8a1d5a1068a514dc5da886462cf5916b97bfdaba2910411a9a5081c180f1e04c6641d412752b456e64ca12027e78f2918a6b3f
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module PlayStationNetwork
|
|
2
2
|
class Configuration
|
|
3
|
-
attr_writer :key, :secret, :url
|
|
3
|
+
attr_writer :key, :secret, :url, :verify_ssl
|
|
4
4
|
|
|
5
5
|
def key
|
|
6
6
|
@key
|
|
@@ -13,6 +13,10 @@ module PlayStationNetwork
|
|
|
13
13
|
def url
|
|
14
14
|
@url
|
|
15
15
|
end
|
|
16
|
+
|
|
17
|
+
def verify_ssl
|
|
18
|
+
@verify_ssl
|
|
19
|
+
end
|
|
16
20
|
end
|
|
17
21
|
|
|
18
22
|
def self.configure(&block)
|
|
@@ -25,9 +29,8 @@ module PlayStationNetwork
|
|
|
25
29
|
|
|
26
30
|
module API
|
|
27
31
|
include HTTParty
|
|
28
|
-
HTTParty::Basement.default_options.update(verify: false)
|
|
29
32
|
|
|
30
|
-
base_uri ""
|
|
33
|
+
# base_uri ""
|
|
31
34
|
|
|
32
35
|
extend self
|
|
33
36
|
|
|
@@ -43,7 +46,8 @@ module PlayStationNetwork
|
|
|
43
46
|
raise MISSING_SECRET if PlayStationNetwork.configuration.secret.nil?
|
|
44
47
|
raise MISSING_URL if PlayStationNetwork.configuration.url.nil?
|
|
45
48
|
|
|
46
|
-
|
|
49
|
+
default_options.update(base_uri: PlayStationNetwork.configuration.url)
|
|
50
|
+
default_options.update(verify: PlayStationNetwork.configuration.verify_ssl)
|
|
47
51
|
|
|
48
52
|
return {
|
|
49
53
|
api_key: PlayStationNetwork.configuration.key,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module PlayStationNetwork
|
|
2
|
-
VERSION ||= '2.1.
|
|
2
|
+
VERSION ||= '2.1.2'
|
|
3
3
|
|
|
4
4
|
def self.changelog
|
|
5
5
|
puts "
|
|
@@ -47,6 +47,9 @@ module PlayStationNetwork
|
|
|
47
47
|
|
|
48
48
|
v2.1.1
|
|
49
49
|
- Tidy up the code and add a new option which should make internal calls cleaner
|
|
50
|
+
|
|
51
|
+
v2.1.2
|
|
52
|
+
- Added 'verify: false' option introduced in v2.1.0 as a configurable option in the initializer
|
|
50
53
|
"
|
|
51
54
|
end
|
|
52
55
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playstationnetwork-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vlad Radulescu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|