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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e56eb7bd9dcb45d28d571a33d0adf37d9894ae3
4
- data.tar.gz: 4388a58f9e660fce67553d597f84c293b09f0a71
3
+ metadata.gz: 5b9b7df510bfc8a63fa11d22d7df2b71d4995a48
4
+ data.tar.gz: bfaa01f192a7fa3947b970fc4be2200ef7c95359
5
5
  SHA512:
6
- metadata.gz: 9f0437c8fbd634e43be05b3e7824d171cc817440a48b52d9ad2b8d7b19a6a842ea834890ab202c19bf44e7cc0ad1dd5463bb3a935ac4eb0fb067ce042409e9b6
7
- data.tar.gz: fd46890fc1d4d0e11dee9db998a451b7809821ca8e2df6dc563a59f6e0874402309fca0cf82e4af15b0e489879429d4040c290a22721552b47aad0df874b6955
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
- self.base_uri PlayStationNetwork.configuration.url
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.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.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-13 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty