opium 1.5.1 → 1.5.2

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
  SHA1:
3
- metadata.gz: afcd218c0464f3b8a8b47c9f3203007f78a3096c
4
- data.tar.gz: 899c86f06d5e7b5ff90e4fe24573964a0f4dc1f7
3
+ metadata.gz: df649015596245c055a437ab8d6946fa2c6badd7
4
+ data.tar.gz: 35c58b1cc03b4bc34c4ea74fae80eafa691fa1e6
5
5
  SHA512:
6
- metadata.gz: aac084bb325da3d6b1bb5458c4c63cbf39e811daa97c3d06a48e96951937ac18d7b9af9b0b18d47b3cf5caa16574fba50d7412937516b99d704010ef43e689d9
7
- data.tar.gz: 3deaf7216912daad377f38e4a4dd34afbf9d8be1c49cbe6b142a904d8558e7ba6905a350b7a12e3df9ae0bc8f546eca60a8e6f2bb60214bc76e736817e36a282
6
+ metadata.gz: 1bd35e1c4a44a923d3bbc1a2b76800b8e166b98ad450a33ec0a32b3708063224dd283e28bf4ecf5b576d1f783bd57120a556732bf659a654506fe5749957732e
7
+ data.tar.gz: 71c2ab4dcc1457000e07abfac7e28165568212b86bdd61564950a605a80cd61c93c28ed82bcde2c68c122815e99b23023c749093e13a53cb4348235764640f62
@@ -1,3 +1,7 @@
1
+ ## 1.5.2
2
+ ### Resolved Issues
3
+ - Push should now use the master key for creating notifications, rather than the REST API key.
4
+
1
5
  ## 1.5.1
2
6
  ### Resolved Issues
3
7
  - Model::Criteria should now respond to #size correctly.
@@ -4,6 +4,8 @@ module Opium
4
4
  class Push
5
5
  include Opium::Model::Connectable
6
6
 
7
+ requires_heightened_privileges!
8
+
7
9
  def initialize( attributes = {} )
8
10
  self.channels = []
9
11
  self.data = {}.with_indifferent_access
@@ -1,3 +1,3 @@
1
1
  module Opium
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
@@ -66,7 +66,7 @@ describe Opium::Push do
66
66
  before do
67
67
  stub_request(:post, "https://api.parse.com/1/push").
68
68
  with(body: "{\"channels\":[\"Penguins\",\"PolarBears\"],\"data\":{\"alert\":\"Zoo animals are fighting!\"}}",
69
- headers: {'Content-Type'=>'application/json', 'X-Parse-Application-Id'=>'PARSE_APP_ID', 'X-Parse-Rest-Api-Key'=>'PARSE_API_KEY'}).
69
+ headers: {'Content-Type'=>'application/json', 'X-Parse-Application-Id'=>'PARSE_APP_ID', 'X-Parse-Master-Key' => 'PARSE_MASTER_KEY'}).
70
70
  to_return(:status => 200, :body => { result: true }.to_json, :headers => {content_type: 'application/json'})
71
71
  end
72
72
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Bowers