From a8f5790c13149cf057a39550300124cf6000b839 Mon Sep 17 00:00:00 2001 From: Daniel C <333222@gmail.com> Date: Tue, 27 Aug 2013 14:31:24 +0300 Subject: [PATCH 1/2] Update core.rb Isn't this loop redundant and make the bulk of notifications to be sent more than once?! --- lib/apns/core.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/apns/core.rb b/lib/apns/core.rb index c371d4e..5e56f36 100644 --- a/lib/apns/core.rb +++ b/lib/apns/core.rb @@ -23,9 +23,7 @@ def self.send_notifications(notifications) packed_nofications = self.packed_nofications(notifications) - notifications.each do |n| - ssl.write(packed_nofications) - end + ssl.write(packed_nofications) ssl.close sock.close From 8a784dcf06aa0b1391463d5934cca7d7488bd283 Mon Sep 17 00:00:00 2001 From: Thomas Kollbach Date: Wed, 28 Aug 2013 23:51:52 +0200 Subject: [PATCH 2/2] updated the gemspec to the patched 1.1.1 version --- apns.gemspec | 4 ++-- spec/apns/core_spec.rb | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 spec/apns/core_spec.rb diff --git a/apns.gemspec b/apns.gemspec index ec17887..1349e5b 100644 --- a/apns.gemspec +++ b/apns.gemspec @@ -2,12 +2,12 @@ Gem::Specification.new do |s| s.name = %q{apns} - s.version = "1.1.0" + s.version = "1.1.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["James Pozdena", "Thomas Kollbach"] s.autorequire = %q{apns} - s.date = %q{2013-06-25} + s.date = %q{2013-08-28} s.description = <