socketserv-ruby 0.1.0 → 0.1.1

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: 7e3b2e1485fd2f2b9ad098231c419c183a08ccac
4
- data.tar.gz: 31f332a3f1d335799501e6a744b50b3bfb5e42f3
3
+ metadata.gz: 5da39943f5965dacae93b231be14e48b9a46b7da
4
+ data.tar.gz: 2a3d1c391cd226041d0a14b36a6bc7056d171400
5
5
  SHA512:
6
- metadata.gz: 5222627564b888208c49c1628e1a344df5637447ac3a656cf185554b1119ea7ff5e5bbe067a9a0d6c799da663be9cba5ef8b99b912e0c0a9b14abf0796f27395
7
- data.tar.gz: 33b7f2a88316e93b1727869c949a147c4e46ecac303de86d222b2309827de958a805941d5447c330dfaf5ecf2efcb7c0f83eed0cc454345ecda7b8c95dc20986
6
+ metadata.gz: d11c3524cbd7cda070318341d0629c0fe833949eb82eb84dfc0c9f5e3f327d33f4de2002f50e9a3696ca54b5a57db9216b2a8ba2fc8d8f8cf7ac051fb73ab7af
7
+ data.tar.gz: f4b238d79f5b066f7bd28ade23b7ae506fcc2442d7d7a382ae9c50c2993833c3d9689add7ed72443d5d51edf4c04d937f16ccf5d2bb400866986756d714f9388
@@ -76,9 +76,12 @@ class SocketServ::Client
76
76
  return true if @@test_mode
77
77
 
78
78
  resp = self.class.post "/api/v1/sessions/#{session_id}/push", authenticated_params({
79
- body: {
79
+ headers: {
80
+ 'Content-Type' => 'application/json'
81
+ },
82
+ body: JSON.generate({
80
83
  payload: message_payload
81
- }
84
+ })
82
85
  })
83
86
 
84
87
  resp.code == 200
@@ -88,10 +91,13 @@ class SocketServ::Client
88
91
  return true if @@test_mode
89
92
 
90
93
  resp = self.class.post "/api/v1/multi_push", authenticated_params({
91
- body: {
94
+ headers: {
95
+ 'Content-Type' => 'application/json'
96
+ },
97
+ body: JSON.generate({
92
98
  session_ids: session_ids,
93
99
  payload: message_payload
94
- }
100
+ })
95
101
  })
96
102
 
97
103
  resp.code == 200
@@ -1,4 +1,4 @@
1
1
  class SocketServ
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  API_VERSION = "v1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socketserv-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keita Kobayashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty