cloud_five_push 0.0.8 → 0.1.0

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: 11bf97e2ec2e9b8587c8fd40fbdaaf15a321da67
4
- data.tar.gz: e89aaf6777119488d0b1022fe4cbd82a061725ed
3
+ metadata.gz: a637194a0cfda7d051289e641ca785594fb3cd6f
4
+ data.tar.gz: dc408ff5e8bc2d12699c745c45cefbc6dedb0ec0
5
5
  SHA512:
6
- metadata.gz: 4d7db7d3574e327bee1949037e03ba3c67551c7e443a5a9ad33894206356242215cedfae51a49604bf8449196d2dfa3ab571dc8bf878845e52494eed1a9b5822
7
- data.tar.gz: 29a14ce066ab5d5065ed5589d7410711ec38c1625eed382ef3adf69e6a2e3ae09eaec41a5e94bfe013ff37da6db42a204745b1343fa86a286bd1f7c7cb18f156
6
+ metadata.gz: 0050e90cbf182ab1a1465ac9ec544f9bf392e01ab51cbf82cf6d2894307a2a6ceb2f01b3bcbd842aa9fbe677e182968f79d63cb2c4ee124413360504e9548526
7
+ data.tar.gz: c04c46babf1838d1e24de7b16fe0a4e8f15c2a62a9a0249ae1f69ad6d0415619cb7aed11b3f9691c26a0ae96ff940788f8c303619fa7584360c44a91cf57a820
@@ -6,7 +6,7 @@ module CloudFivePush
6
6
 
7
7
  include HTTParty
8
8
  base_uri 'https://push.cloudfiveapp.com'
9
- # debug_output $stderr
9
+ debug_output $stderr
10
10
 
11
11
  def initialize(api_key=nil)
12
12
  @api_key = api_key || CloudFivePush.api_key
@@ -33,6 +33,7 @@ module CloudFivePush
33
33
  def user_identifiers=(user_identifiers)
34
34
  @user_identifiers = [user_identifiers].flatten
35
35
  end
36
+ alias user_identifier= user_identifiers=
36
37
 
37
38
  private
38
39
 
@@ -42,11 +43,11 @@ module CloudFivePush
42
43
 
43
44
  def push_params
44
45
  params = {
45
- api_key: @api_key,
46
- alert: @alert,
47
- badge: @badge
46
+ api_key: @api_key
48
47
  }
49
48
 
49
+ params[:alert] = @alert if @alert
50
+ params[:badge] = @badge if @badge
50
51
  params[:message] = @message if @message
51
52
  params[:when] = @scheduled_at.iso8601 if @scheduled_at
52
53
  params[:data] = @data.to_json if @data
@@ -1,3 +1,3 @@
1
1
  module CloudFivePush
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_five_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson