houston 0.2.3 → 0.2.4

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: 0360680125f946fdb78c54e0a424c759b4f5023f
4
- data.tar.gz: 25dff412f742d445e8a55d9c321c3edba77e7aa5
3
+ metadata.gz: e5aecadd372ded4ba46d1ae9eca31fbcab168644
4
+ data.tar.gz: f39b14600dbfe3610cc3b6d6024b5cdee0941471
5
5
  SHA512:
6
- metadata.gz: 6b3bd5a5652df5aa38881bb829079be1e22a54dc8e4aac541c5f027ba4167d49b2dfd70bd149a368c42c83f83409359ceb8b4ca697f7852a3489b760763ef76c
7
- data.tar.gz: cdea2d646a61ddc61c31f3a62b418bbb09dba4f1b288b1b0934a90f451b3899be06d17c6161e2d73c7c217d1646bbb66f8f055c81e3350fc0c6581f5434e9cb6
6
+ metadata.gz: 22539e7ac680df2138dc00a1e1688dbeb1e7c7c0973687f6c1bad64b1e64676cf7b8ecf88e3b209fcc49f743b7acc778c23d5a8e470d72d877815d86e7a55c3a
7
+ data.tar.gz: f95928800e51dda1313e1df4aeec8da7a1b0fb8543e6d124e7ff162dd01f7dfbd0307ede39ea56b6eff4c3ae2c2677dab98e891cbd52d00517a632506ece07cf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- houston (0.2.3)
4
+ houston (0.2.4)
5
5
  commander (~> 4.1)
6
6
  json
7
7
 
data/lib/houston.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Houston
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
4
4
 
5
5
  require 'houston/client'
@@ -20,7 +20,7 @@ module Houston
20
20
 
21
21
  def payload
22
22
  json = {}.merge(@custom_data || {})
23
- json['aps'] = {}
23
+ json['aps'] ||= {}
24
24
  json['aps']['alert'] = @alert if @alert
25
25
  json['aps']['badge'] = @badge.to_i rescue 0 if @badge
26
26
  json['aps']['sound'] = @sound if @sound
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: houston
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-20 00:00:00.000000000 Z
11
+ date: 2013-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -77,8 +77,6 @@ files:
77
77
  - ./apple_push_notification_production.pem
78
78
  - ./Gemfile
79
79
  - ./Gemfile.lock
80
- - ./houston-0.2.1.gem
81
- - ./houston-0.2.2.gem
82
80
  - ./houston.gemspec
83
81
  - ./lib/houston/client.rb
84
82
  - ./lib/houston/connection.rb
data/houston-0.2.1.gem DELETED
Binary file
data/houston-0.2.2.gem DELETED
Binary file