lib/rhosync/ping/android.rb in rhosync-2.1.0.beta.1 vs lib/rhosync/ping/android.rb in rhosync-2.1.0.beta.2

- old
+ new

@@ -22,9 +22,10 @@ raise error end end def self.c2d_message(params) + params.reject! {|k,v| v.nil? || v.length == 0} data = {} data['registration_id'] = params['device_pin'] data['collapse_key'] = (rand * 100000000).to_i.to_s data['data.do_sync'] = params['sources'] ? params['sources'].join(',') : '' data['data.alert'] = params['message'] if params['message']