From 296a01f891ead17657f38b35c57dd58b0fe60fca Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Wed, 23 Mar 2011 00:32:40 -0700 Subject: [PATCH 1/8] updated gemspec to address changes --- apn_on_rails.gemspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apn_on_rails.gemspec b/apn_on_rails.gemspec index b2d5b047..9f81b4b9 100644 --- a/apn_on_rails.gemspec +++ b/apn_on_rails.gemspec @@ -8,10 +8,10 @@ Gem::Specification.new do |s| s.version = "0.4.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["markbates", "Rebecca Nesson"] + s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] s.date = %q{2011-01-04} s.description = %q{APN on Rails is a Ruby on Rails gem that allows you to -easily add Apple Push Notification (iPhone) support to your Rails application. +easily add Apple Push Notification (iPhone) support to your Rails application. This version includes an association between an assumed User model and APN::Device } s.email = %q{tech-team@prx.org} s.extra_rdoc_files = [ @@ -80,7 +80,7 @@ easily add Apple Push Notification (iPhone) support to your Rails application. "spec/rails_root/config/apple_push_notification_development.pem", "spec/spec_helper.rb" ] - s.homepage = %q{http://github.com/PRX/apn_on_rails} + s.homepage = %q{http://github.com/calebhaye/apn_on_rails} s.require_paths = ["lib"] s.rubygems_version = %q{1.3.7} s.summary = %q{Apple Push Notifications on Rails} From 46a3aef4c7a91c1283aa80652e56bb4080557f36 Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Wed, 23 Mar 2011 00:33:07 -0700 Subject: [PATCH 2/8] added user model association --- lib/apn_on_rails/app/models/apn/device.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/apn_on_rails/app/models/apn/device.rb b/lib/apn_on_rails/app/models/apn/device.rb index 1864ca0a..b142e6bc 100644 --- a/lib/apn_on_rails/app/models/apn/device.rb +++ b/lib/apn_on_rails/app/models/apn/device.rb @@ -13,6 +13,7 @@ class APN::Device < APN::Base belongs_to :app, :class_name => 'APN::App' has_many :notifications, :class_name => 'APN::Notification' has_many :unsent_notifications, :class_name => 'APN::Notification', :conditions => 'sent_at is null' + belongs_to :user validates_uniqueness_of :token, :scope => :app_id validates_format_of :token, :with => /^[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}$/ From 600652870a91023da0655079006dec04a0bfa15a Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Wed, 23 Mar 2011 00:57:12 -0700 Subject: [PATCH 3/8] latest --- apn_on_rails.gemspec | 4 +- calebhaye-apn_on_rails.gemspec | 144 +++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+), 2 deletions(-) create mode 100644 calebhaye-apn_on_rails.gemspec diff --git a/apn_on_rails.gemspec b/apn_on_rails.gemspec index 9f81b4b9..0ef4e627 100644 --- a/apn_on_rails.gemspec +++ b/apn_on_rails.gemspec @@ -9,11 +9,11 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] - s.date = %q{2011-01-04} + s.date = %q{2011-03-21} s.description = %q{APN on Rails is a Ruby on Rails gem that allows you to easily add Apple Push Notification (iPhone) support to your Rails application. This version includes an association between an assumed User model and APN::Device } - s.email = %q{tech-team@prx.org} + s.email = %q{caleb@fire.coop} s.extra_rdoc_files = [ "LICENSE", "README", diff --git a/calebhaye-apn_on_rails.gemspec b/calebhaye-apn_on_rails.gemspec new file mode 100644 index 00000000..66cc9463 --- /dev/null +++ b/calebhaye-apn_on_rails.gemspec @@ -0,0 +1,144 @@ +# Generated by jeweler +# DO NOT EDIT THIS FILE DIRECTLY +# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{calebhaye-apn_on_rails} + s.version = "0.4.2" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] + s.date = %q{2011-03-21} + s.description = %q{APN on Rails is a Ruby on Rails gem that allows you to +easily add Apple Push Notification (iPhone) support to your Rails application. This version includes an association between an assumed User model and APN::Device +} + s.email = %q{caleb@fire.coop} + s.extra_rdoc_files = [ + "LICENSE", + "README", + "README.textile" + ] + s.files = [ + ".rspec", + ".specification", + "Gemfile", + "Gemfile.lock", + "LICENSE", + "README", + "README.textile", + "Rakefile", + "VERSION", + "apn_on_rails.gemspec", + "autotest/discover.rb", + "generators/apn_migrations_generator.rb", + "generators/templates/apn_migrations/001_create_apn_devices.rb", + "generators/templates/apn_migrations/002_create_apn_notifications.rb", + "generators/templates/apn_migrations/003_alter_apn_devices.rb", + "generators/templates/apn_migrations/004_create_apn_apps.rb", + "generators/templates/apn_migrations/005_create_groups.rb", + "generators/templates/apn_migrations/006_alter_apn_groups.rb", + "generators/templates/apn_migrations/007_create_device_groups.rb", + "generators/templates/apn_migrations/008_create_apn_group_notifications.rb", + "generators/templates/apn_migrations/009_create_pull_notifications.rb", + "generators/templates/apn_migrations/010_alter_apn_notifications.rb", + "generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb", + "generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb", + "lib/apn_on_rails.rb", + "lib/apn_on_rails/apn_on_rails.rb", + "lib/apn_on_rails/app/models/apn/app.rb", + "lib/apn_on_rails/app/models/apn/base.rb", + "lib/apn_on_rails/app/models/apn/device.rb", + "lib/apn_on_rails/app/models/apn/device_grouping.rb", + "lib/apn_on_rails/app/models/apn/group.rb", + "lib/apn_on_rails/app/models/apn/group_notification.rb", + "lib/apn_on_rails/app/models/apn/notification.rb", + "lib/apn_on_rails/app/models/apn/pull_notification.rb", + "lib/apn_on_rails/libs/connection.rb", + "lib/apn_on_rails/libs/feedback.rb", + "lib/apn_on_rails/tasks/apn.rake", + "lib/apn_on_rails/tasks/db.rake", + "lib/apn_on_rails_tasks.rb", + "spec/active_record/setup_ar.rb", + "spec/apn_on_rails/app/models/apn/app_spec.rb", + "spec/apn_on_rails/app/models/apn/device_spec.rb", + "spec/apn_on_rails/app/models/apn/group_notification_spec.rb", + "spec/apn_on_rails/app/models/apn/notification_spec.rb", + "spec/apn_on_rails/app/models/apn/pull_notification_spec.rb", + "spec/apn_on_rails/libs/connection_spec.rb", + "spec/apn_on_rails/libs/feedback_spec.rb", + "spec/extensions/string.rb", + "spec/factories/app_factory.rb", + "spec/factories/device_factory.rb", + "spec/factories/device_grouping_factory.rb", + "spec/factories/group_factory.rb", + "spec/factories/group_notification_factory.rb", + "spec/factories/notification_factory.rb", + "spec/factories/pull_notification_factory.rb", + "spec/fixtures/hexa.bin", + "spec/fixtures/message_for_sending.bin", + "spec/rails_root/config/apple_push_notification_development.pem", + "spec/spec_helper.rb" + ] + s.homepage = %q{http://github.com/calebhaye/apn_on_rails} + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.7} + s.summary = %q{Apple Push Notifications on Rails} + s.test_files = [ + "spec/active_record/setup_ar.rb", + "spec/apn_on_rails/app/models/apn/app_spec.rb", + "spec/apn_on_rails/app/models/apn/device_spec.rb", + "spec/apn_on_rails/app/models/apn/group_notification_spec.rb", + "spec/apn_on_rails/app/models/apn/notification_spec.rb", + "spec/apn_on_rails/app/models/apn/pull_notification_spec.rb", + "spec/apn_on_rails/libs/connection_spec.rb", + "spec/apn_on_rails/libs/feedback_spec.rb", + "spec/extensions/string.rb", + "spec/factories/app_factory.rb", + "spec/factories/device_factory.rb", + "spec/factories/device_grouping_factory.rb", + "spec/factories/group_factory.rb", + "spec/factories/group_notification_factory.rb", + "spec/factories/notification_factory.rb", + "spec/factories/pull_notification_factory.rb", + "spec/spec_helper.rb" + ] + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 3 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 2.0.0"]) + s.add_development_dependency(%q, ["~> 1.0.0"]) + s.add_development_dependency(%q, ["~> 1.5.0"]) + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, ["~> 2.3.0"]) + s.add_development_dependency(%q, ["~> 2.3.0"]) + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 2.0.0"]) + s.add_dependency(%q, ["~> 1.0.0"]) + s.add_dependency(%q, ["~> 1.5.0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + end + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 2.0.0"]) + s.add_dependency(%q, ["~> 1.0.0"]) + s.add_dependency(%q, ["~> 1.5.0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + end +end + From e73e450daa5efabb8ab8550adc7b55826fde3aa3 Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Wed, 23 Mar 2011 01:10:48 -0700 Subject: [PATCH 4/8] updating gemspecs --- calebhaye-apn_on_rails.gemspec | 144 ------------------ ...ls.gemspec => fireinc-apn_on_rails.gemspec | 4 +- 2 files changed, 2 insertions(+), 146 deletions(-) delete mode 100644 calebhaye-apn_on_rails.gemspec rename apn_on_rails.gemspec => fireinc-apn_on_rails.gemspec (99%) diff --git a/calebhaye-apn_on_rails.gemspec b/calebhaye-apn_on_rails.gemspec deleted file mode 100644 index 66cc9463..00000000 --- a/calebhaye-apn_on_rails.gemspec +++ /dev/null @@ -1,144 +0,0 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{calebhaye-apn_on_rails} - s.version = "0.4.2" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] - s.date = %q{2011-03-21} - s.description = %q{APN on Rails is a Ruby on Rails gem that allows you to -easily add Apple Push Notification (iPhone) support to your Rails application. This version includes an association between an assumed User model and APN::Device -} - s.email = %q{caleb@fire.coop} - s.extra_rdoc_files = [ - "LICENSE", - "README", - "README.textile" - ] - s.files = [ - ".rspec", - ".specification", - "Gemfile", - "Gemfile.lock", - "LICENSE", - "README", - "README.textile", - "Rakefile", - "VERSION", - "apn_on_rails.gemspec", - "autotest/discover.rb", - "generators/apn_migrations_generator.rb", - "generators/templates/apn_migrations/001_create_apn_devices.rb", - "generators/templates/apn_migrations/002_create_apn_notifications.rb", - "generators/templates/apn_migrations/003_alter_apn_devices.rb", - "generators/templates/apn_migrations/004_create_apn_apps.rb", - "generators/templates/apn_migrations/005_create_groups.rb", - "generators/templates/apn_migrations/006_alter_apn_groups.rb", - "generators/templates/apn_migrations/007_create_device_groups.rb", - "generators/templates/apn_migrations/008_create_apn_group_notifications.rb", - "generators/templates/apn_migrations/009_create_pull_notifications.rb", - "generators/templates/apn_migrations/010_alter_apn_notifications.rb", - "generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb", - "generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb", - "lib/apn_on_rails.rb", - "lib/apn_on_rails/apn_on_rails.rb", - "lib/apn_on_rails/app/models/apn/app.rb", - "lib/apn_on_rails/app/models/apn/base.rb", - "lib/apn_on_rails/app/models/apn/device.rb", - "lib/apn_on_rails/app/models/apn/device_grouping.rb", - "lib/apn_on_rails/app/models/apn/group.rb", - "lib/apn_on_rails/app/models/apn/group_notification.rb", - "lib/apn_on_rails/app/models/apn/notification.rb", - "lib/apn_on_rails/app/models/apn/pull_notification.rb", - "lib/apn_on_rails/libs/connection.rb", - "lib/apn_on_rails/libs/feedback.rb", - "lib/apn_on_rails/tasks/apn.rake", - "lib/apn_on_rails/tasks/db.rake", - "lib/apn_on_rails_tasks.rb", - "spec/active_record/setup_ar.rb", - "spec/apn_on_rails/app/models/apn/app_spec.rb", - "spec/apn_on_rails/app/models/apn/device_spec.rb", - "spec/apn_on_rails/app/models/apn/group_notification_spec.rb", - "spec/apn_on_rails/app/models/apn/notification_spec.rb", - "spec/apn_on_rails/app/models/apn/pull_notification_spec.rb", - "spec/apn_on_rails/libs/connection_spec.rb", - "spec/apn_on_rails/libs/feedback_spec.rb", - "spec/extensions/string.rb", - "spec/factories/app_factory.rb", - "spec/factories/device_factory.rb", - "spec/factories/device_grouping_factory.rb", - "spec/factories/group_factory.rb", - "spec/factories/group_notification_factory.rb", - "spec/factories/notification_factory.rb", - "spec/factories/pull_notification_factory.rb", - "spec/fixtures/hexa.bin", - "spec/fixtures/message_for_sending.bin", - "spec/rails_root/config/apple_push_notification_development.pem", - "spec/spec_helper.rb" - ] - s.homepage = %q{http://github.com/calebhaye/apn_on_rails} - s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.7} - s.summary = %q{Apple Push Notifications on Rails} - s.test_files = [ - "spec/active_record/setup_ar.rb", - "spec/apn_on_rails/app/models/apn/app_spec.rb", - "spec/apn_on_rails/app/models/apn/device_spec.rb", - "spec/apn_on_rails/app/models/apn/group_notification_spec.rb", - "spec/apn_on_rails/app/models/apn/notification_spec.rb", - "spec/apn_on_rails/app/models/apn/pull_notification_spec.rb", - "spec/apn_on_rails/libs/connection_spec.rb", - "spec/apn_on_rails/libs/feedback_spec.rb", - "spec/extensions/string.rb", - "spec/factories/app_factory.rb", - "spec/factories/device_factory.rb", - "spec/factories/device_grouping_factory.rb", - "spec/factories/group_factory.rb", - "spec/factories/group_notification_factory.rb", - "spec/factories/notification_factory.rb", - "spec/factories/pull_notification_factory.rb", - "spec/spec_helper.rb" - ] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 2.0.0"]) - s.add_development_dependency(%q, ["~> 1.0.0"]) - s.add_development_dependency(%q, ["~> 1.5.0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, ["~> 2.3.0"]) - s.add_development_dependency(%q, ["~> 2.3.0"]) - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 2.0.0"]) - s.add_dependency(%q, ["~> 1.0.0"]) - s.add_dependency(%q, ["~> 1.5.0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, ["~> 2.3.0"]) - s.add_dependency(%q, ["~> 2.3.0"]) - end - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 2.0.0"]) - s.add_dependency(%q, ["~> 1.0.0"]) - s.add_dependency(%q, ["~> 1.5.0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, ["~> 2.3.0"]) - s.add_dependency(%q, ["~> 2.3.0"]) - end -end - diff --git a/apn_on_rails.gemspec b/fireinc-apn_on_rails.gemspec similarity index 99% rename from apn_on_rails.gemspec rename to fireinc-apn_on_rails.gemspec index 0ef4e627..9a6c6ef1 100644 --- a/apn_on_rails.gemspec +++ b/fireinc-apn_on_rails.gemspec @@ -4,8 +4,8 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| - s.name = %q{apn_on_rails} - s.version = "0.4.2" + s.name = %q{fireinc-apn_on_rails} + s.version = "0.4.2.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] From 491215c2d20a2efecc5f7e7212c9d514a02961a8 Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Wed, 23 Mar 2011 01:25:41 -0700 Subject: [PATCH 5/8] updated version --- VERSION | 2 +- fireinc-apn_on_rails.gemspec | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 2b7c5ae0..0e29e390 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.2 +0.4.2.2 \ No newline at end of file diff --git a/fireinc-apn_on_rails.gemspec b/fireinc-apn_on_rails.gemspec index 9a6c6ef1..658afc0a 100644 --- a/fireinc-apn_on_rails.gemspec +++ b/fireinc-apn_on_rails.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = %q{fireinc-apn_on_rails} - s.version = "0.4.2.1" + s.version = "0.4.2.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] @@ -29,7 +29,7 @@ easily add Apple Push Notification (iPhone) support to your Rails application. "README.textile", "Rakefile", "VERSION", - "apn_on_rails.gemspec", + "fireinc-apn_on_rails.gemspec", "autotest/discover.rb", "generators/apn_migrations_generator.rb", "generators/templates/apn_migrations/001_create_apn_devices.rb", From 475ad21c1ddb8bc57376846e042f8ad51d549b8d Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Mon, 31 Oct 2011 15:48:48 -0700 Subject: [PATCH 6/8] log connection error --- .gitignore | 0 .rspec | 0 .specification | 0 Gemfile | 0 Gemfile.lock | 0 LICENSE | 0 README | 0 README.textile | 0 Rakefile | 9 +++++---- VERSION | 2 +- autotest/discover.rb | 0 fireinc-apn_on_rails.gemspec | 4 ++-- generators/apn_migrations_generator.rb | 0 .../apn_migrations/001_create_apn_devices.rb | 0 .../apn_migrations/002_create_apn_notifications.rb | 0 .../apn_migrations/003_alter_apn_devices.rb | 0 .../templates/apn_migrations/004_create_apn_apps.rb | 0 .../templates/apn_migrations/005_create_groups.rb | 0 .../apn_migrations/006_alter_apn_groups.rb | 0 .../apn_migrations/007_create_device_groups.rb | 0 .../008_create_apn_group_notifications.rb | 0 .../apn_migrations/009_create_pull_notifications.rb | 0 .../apn_migrations/010_alter_apn_notifications.rb | 0 .../011_make_device_token_index_nonunique.rb | 0 ...launch_notification_to_apn_pull_notifications.rb | 0 lib/apn_on_rails.rb | 0 lib/apn_on_rails/apn_on_rails.rb | 0 lib/apn_on_rails/app/models/apn/app.rb | 2 +- lib/apn_on_rails/app/models/apn/base.rb | 0 lib/apn_on_rails/app/models/apn/device.rb | 0 lib/apn_on_rails/app/models/apn/device_grouping.rb | 0 lib/apn_on_rails/app/models/apn/group.rb | 0 .../app/models/apn/group_notification.rb | 0 lib/apn_on_rails/app/models/apn/notification.rb | 0 .../app/models/apn/pull_notification.rb | 0 lib/apn_on_rails/libs/connection.rb | 0 lib/apn_on_rails/libs/feedback.rb | 0 lib/apn_on_rails/tasks/apn.rake | 0 lib/apn_on_rails/tasks/db.rake | 0 lib/apn_on_rails_tasks.rb | 0 spec/active_record/setup_ar.rb | 0 spec/apn_on_rails/app/models/apn/app_spec.rb | 0 spec/apn_on_rails/app/models/apn/device_spec.rb | 0 .../app/models/apn/group_notification_spec.rb | 0 .../app/models/apn/notification_spec.rb | 0 .../app/models/apn/pull_notification_spec.rb | 0 spec/apn_on_rails/libs/connection_spec.rb | 0 spec/apn_on_rails/libs/feedback_spec.rb | 0 spec/extensions/string.rb | 0 spec/factories/app_factory.rb | 0 spec/factories/device_factory.rb | 0 spec/factories/device_grouping_factory.rb | 0 spec/factories/group_factory.rb | 0 spec/factories/group_notification_factory.rb | 0 spec/factories/notification_factory.rb | 0 spec/factories/pull_notification_factory.rb | 0 spec/fixtures/hexa.bin | 0 spec/fixtures/message_for_sending.bin | Bin .../config/apple_push_notification_development.pem | 0 spec/spec_helper.rb | 0 60 files changed, 9 insertions(+), 8 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .rspec mode change 100644 => 100755 .specification mode change 100644 => 100755 Gemfile mode change 100644 => 100755 Gemfile.lock mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README mode change 100644 => 100755 README.textile mode change 100644 => 100755 Rakefile mode change 100644 => 100755 VERSION mode change 100644 => 100755 autotest/discover.rb mode change 100644 => 100755 fireinc-apn_on_rails.gemspec mode change 100644 => 100755 generators/apn_migrations_generator.rb mode change 100644 => 100755 generators/templates/apn_migrations/001_create_apn_devices.rb mode change 100644 => 100755 generators/templates/apn_migrations/002_create_apn_notifications.rb mode change 100644 => 100755 generators/templates/apn_migrations/003_alter_apn_devices.rb mode change 100644 => 100755 generators/templates/apn_migrations/004_create_apn_apps.rb mode change 100644 => 100755 generators/templates/apn_migrations/005_create_groups.rb mode change 100644 => 100755 generators/templates/apn_migrations/006_alter_apn_groups.rb mode change 100644 => 100755 generators/templates/apn_migrations/007_create_device_groups.rb mode change 100644 => 100755 generators/templates/apn_migrations/008_create_apn_group_notifications.rb mode change 100644 => 100755 generators/templates/apn_migrations/009_create_pull_notifications.rb mode change 100644 => 100755 generators/templates/apn_migrations/010_alter_apn_notifications.rb mode change 100644 => 100755 generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb mode change 100644 => 100755 generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb mode change 100644 => 100755 lib/apn_on_rails.rb mode change 100644 => 100755 lib/apn_on_rails/apn_on_rails.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/app.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/base.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/device.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/device_grouping.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/group.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/group_notification.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/notification.rb mode change 100644 => 100755 lib/apn_on_rails/app/models/apn/pull_notification.rb mode change 100644 => 100755 lib/apn_on_rails/libs/connection.rb mode change 100644 => 100755 lib/apn_on_rails/libs/feedback.rb mode change 100644 => 100755 lib/apn_on_rails/tasks/apn.rake mode change 100644 => 100755 lib/apn_on_rails/tasks/db.rake mode change 100644 => 100755 lib/apn_on_rails_tasks.rb mode change 100644 => 100755 spec/active_record/setup_ar.rb mode change 100644 => 100755 spec/apn_on_rails/app/models/apn/app_spec.rb mode change 100644 => 100755 spec/apn_on_rails/app/models/apn/device_spec.rb mode change 100644 => 100755 spec/apn_on_rails/app/models/apn/group_notification_spec.rb mode change 100644 => 100755 spec/apn_on_rails/app/models/apn/notification_spec.rb mode change 100644 => 100755 spec/apn_on_rails/app/models/apn/pull_notification_spec.rb mode change 100644 => 100755 spec/apn_on_rails/libs/connection_spec.rb mode change 100644 => 100755 spec/apn_on_rails/libs/feedback_spec.rb mode change 100644 => 100755 spec/extensions/string.rb mode change 100644 => 100755 spec/factories/app_factory.rb mode change 100644 => 100755 spec/factories/device_factory.rb mode change 100644 => 100755 spec/factories/device_grouping_factory.rb mode change 100644 => 100755 spec/factories/group_factory.rb mode change 100644 => 100755 spec/factories/group_notification_factory.rb mode change 100644 => 100755 spec/factories/notification_factory.rb mode change 100644 => 100755 spec/factories/pull_notification_factory.rb mode change 100644 => 100755 spec/fixtures/hexa.bin mode change 100644 => 100755 spec/fixtures/message_for_sending.bin mode change 100644 => 100755 spec/rails_root/config/apple_push_notification_development.pem mode change 100644 => 100755 spec/spec_helper.rb diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.rspec b/.rspec old mode 100644 new mode 100755 diff --git a/.specification b/.specification old mode 100644 new mode 100755 diff --git a/Gemfile b/Gemfile old mode 100644 new mode 100755 diff --git a/Gemfile.lock b/Gemfile.lock old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README b/README old mode 100644 new mode 100755 diff --git a/README.textile b/README.textile old mode 100644 new mode 100755 diff --git a/Rakefile b/Rakefile old mode 100644 new mode 100755 index 1bc84211..a0606ffb --- a/Rakefile +++ b/Rakefile @@ -12,16 +12,17 @@ require 'rake' require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options - gem.name = "apn_on_rails" + gem.name = "fireinc-apn_on_rails" gem.summary = %Q{Apple Push Notifications on Rails} gem.description = %Q{APN on Rails is a Ruby on Rails gem that allows you to easily add Apple Push Notification (iPhone) support to your Rails application. +This version includes an association between an assumed User model and APN::Device } - gem.email = "tech-team@prx.org" - gem.homepage = "http://github.com/PRX/apn_on_rails" - gem.authors = ["markbates", "Rebecca Nesson"] + gem.email = "caleb@fire.coop" + gem.homepage = "http://github.com/calebhaye/apn_on_rails" + gem.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] end #Jeweler::RubygemsDotOrgsTasks.new diff --git a/VERSION b/VERSION old mode 100644 new mode 100755 index 0e29e390..f4cac9b5 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.2.2 \ No newline at end of file +0.4.2.3 \ No newline at end of file diff --git a/autotest/discover.rb b/autotest/discover.rb old mode 100644 new mode 100755 diff --git a/fireinc-apn_on_rails.gemspec b/fireinc-apn_on_rails.gemspec old mode 100644 new mode 100755 index 658afc0a..99e98527 --- a/fireinc-apn_on_rails.gemspec +++ b/fireinc-apn_on_rails.gemspec @@ -5,11 +5,11 @@ Gem::Specification.new do |s| s.name = %q{fireinc-apn_on_rails} - s.version = "0.4.2.2" + s.version = "0.4.2.4" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] - s.date = %q{2011-03-21} + s.date = %q{2011-11-31} s.description = %q{APN on Rails is a Ruby on Rails gem that allows you to easily add Apple Push Notification (iPhone) support to your Rails application. This version includes an association between an assumed User model and APN::Device } diff --git a/generators/apn_migrations_generator.rb b/generators/apn_migrations_generator.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/001_create_apn_devices.rb b/generators/templates/apn_migrations/001_create_apn_devices.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/002_create_apn_notifications.rb b/generators/templates/apn_migrations/002_create_apn_notifications.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/003_alter_apn_devices.rb b/generators/templates/apn_migrations/003_alter_apn_devices.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/004_create_apn_apps.rb b/generators/templates/apn_migrations/004_create_apn_apps.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/005_create_groups.rb b/generators/templates/apn_migrations/005_create_groups.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/006_alter_apn_groups.rb b/generators/templates/apn_migrations/006_alter_apn_groups.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/007_create_device_groups.rb b/generators/templates/apn_migrations/007_create_device_groups.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/008_create_apn_group_notifications.rb b/generators/templates/apn_migrations/008_create_apn_group_notifications.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/009_create_pull_notifications.rb b/generators/templates/apn_migrations/009_create_pull_notifications.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/010_alter_apn_notifications.rb b/generators/templates/apn_migrations/010_alter_apn_notifications.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb b/generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb old mode 100644 new mode 100755 diff --git a/generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb b/generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails.rb b/lib/apn_on_rails.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/apn_on_rails.rb b/lib/apn_on_rails/apn_on_rails.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/app/models/apn/app.rb b/lib/apn_on_rails/app/models/apn/app.rb old mode 100644 new mode 100755 index a0927374..f6b9f162 --- a/lib/apn_on_rails/app/models/apn/app.rb +++ b/lib/apn_on_rails/app/models/apn/app.rb @@ -144,7 +144,7 @@ def self.process_devices_for_cert(the_cert) protected - def log_connection_exception(ex) + def self.log_connection_exception(ex) puts ex.message end diff --git a/lib/apn_on_rails/app/models/apn/base.rb b/lib/apn_on_rails/app/models/apn/base.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/app/models/apn/device.rb b/lib/apn_on_rails/app/models/apn/device.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/app/models/apn/device_grouping.rb b/lib/apn_on_rails/app/models/apn/device_grouping.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/app/models/apn/group.rb b/lib/apn_on_rails/app/models/apn/group.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/app/models/apn/group_notification.rb b/lib/apn_on_rails/app/models/apn/group_notification.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/app/models/apn/notification.rb b/lib/apn_on_rails/app/models/apn/notification.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/app/models/apn/pull_notification.rb b/lib/apn_on_rails/app/models/apn/pull_notification.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/libs/connection.rb b/lib/apn_on_rails/libs/connection.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/libs/feedback.rb b/lib/apn_on_rails/libs/feedback.rb old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/tasks/apn.rake b/lib/apn_on_rails/tasks/apn.rake old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails/tasks/db.rake b/lib/apn_on_rails/tasks/db.rake old mode 100644 new mode 100755 diff --git a/lib/apn_on_rails_tasks.rb b/lib/apn_on_rails_tasks.rb old mode 100644 new mode 100755 diff --git a/spec/active_record/setup_ar.rb b/spec/active_record/setup_ar.rb old mode 100644 new mode 100755 diff --git a/spec/apn_on_rails/app/models/apn/app_spec.rb b/spec/apn_on_rails/app/models/apn/app_spec.rb old mode 100644 new mode 100755 diff --git a/spec/apn_on_rails/app/models/apn/device_spec.rb b/spec/apn_on_rails/app/models/apn/device_spec.rb old mode 100644 new mode 100755 diff --git a/spec/apn_on_rails/app/models/apn/group_notification_spec.rb b/spec/apn_on_rails/app/models/apn/group_notification_spec.rb old mode 100644 new mode 100755 diff --git a/spec/apn_on_rails/app/models/apn/notification_spec.rb b/spec/apn_on_rails/app/models/apn/notification_spec.rb old mode 100644 new mode 100755 diff --git a/spec/apn_on_rails/app/models/apn/pull_notification_spec.rb b/spec/apn_on_rails/app/models/apn/pull_notification_spec.rb old mode 100644 new mode 100755 diff --git a/spec/apn_on_rails/libs/connection_spec.rb b/spec/apn_on_rails/libs/connection_spec.rb old mode 100644 new mode 100755 diff --git a/spec/apn_on_rails/libs/feedback_spec.rb b/spec/apn_on_rails/libs/feedback_spec.rb old mode 100644 new mode 100755 diff --git a/spec/extensions/string.rb b/spec/extensions/string.rb old mode 100644 new mode 100755 diff --git a/spec/factories/app_factory.rb b/spec/factories/app_factory.rb old mode 100644 new mode 100755 diff --git a/spec/factories/device_factory.rb b/spec/factories/device_factory.rb old mode 100644 new mode 100755 diff --git a/spec/factories/device_grouping_factory.rb b/spec/factories/device_grouping_factory.rb old mode 100644 new mode 100755 diff --git a/spec/factories/group_factory.rb b/spec/factories/group_factory.rb old mode 100644 new mode 100755 diff --git a/spec/factories/group_notification_factory.rb b/spec/factories/group_notification_factory.rb old mode 100644 new mode 100755 diff --git a/spec/factories/notification_factory.rb b/spec/factories/notification_factory.rb old mode 100644 new mode 100755 diff --git a/spec/factories/pull_notification_factory.rb b/spec/factories/pull_notification_factory.rb old mode 100644 new mode 100755 diff --git a/spec/fixtures/hexa.bin b/spec/fixtures/hexa.bin old mode 100644 new mode 100755 diff --git a/spec/fixtures/message_for_sending.bin b/spec/fixtures/message_for_sending.bin old mode 100644 new mode 100755 diff --git a/spec/rails_root/config/apple_push_notification_development.pem b/spec/rails_root/config/apple_push_notification_development.pem old mode 100644 new mode 100755 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb old mode 100644 new mode 100755 From caa0d0efddcdf8b908912c6058ea33b78f7679d5 Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Tue, 31 Jan 2012 15:53:25 -0800 Subject: [PATCH 7/8] fixed broken pipe mumbo jumbo --- VERSION | 2 +- fireinc-apn_on_rails.gemspec | 2 +- lib/apn_on_rails/app/models/apn/app.rb | 23 +++++++++++------------ 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/VERSION b/VERSION index f4cac9b5..73333c8a 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.2.3 \ No newline at end of file +0.4.2.5 \ No newline at end of file diff --git a/fireinc-apn_on_rails.gemspec b/fireinc-apn_on_rails.gemspec index 99e98527..16a5da4c 100755 --- a/fireinc-apn_on_rails.gemspec +++ b/fireinc-apn_on_rails.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = %q{fireinc-apn_on_rails} - s.version = "0.4.2.4" + s.version = "0.4.2.5" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] diff --git a/lib/apn_on_rails/app/models/apn/app.rb b/lib/apn_on_rails/app/models/apn/app.rb index f6b9f162..f74a50d4 100755 --- a/lib/apn_on_rails/app/models/apn/app.rb +++ b/lib/apn_on_rails/app/models/apn/app.rb @@ -38,27 +38,26 @@ def self.send_notifications end def self.send_notifications_for_cert(the_cert, app_id) - # unless self.unsent_notifications.nil? || self.unsent_notifications.empty? - if (app_id == nil) - conditions = "app_id is null" - else - conditions = ["app_id = ?", app_id] - end begin APN::Connection.open_for_delivery({:cert => the_cert}) do |conn, sock| - APN::Device.find_each(:conditions => conditions) do |dev| - dev.unsent_notifications.each do |noty| + devs = APN::Device.where(:app_id => app_id) + unset = APN::Notification.where(:sent_at => nil).where(:device_id => devs.all.collect {|d| d.id}).order(:device_id, :created_at) + unset.each do |noty| + Rails.logger.debug "Sending notification ##{noty.id}" + begin conn.write(noty.message_for_sending) - noty.sent_at = Time.now - noty.save + rescue => e + Rails.logger.error "Cannot send notification ##{noty.id}: " + e.message + return if e.message == "Broken pipe" end + noty.sent_at = Time.now + noty.save end end rescue Exception => e log_connection_exception(e) end - # end - end + end def send_group_notifications if self.cert.nil? From b569993f6c56fd84f940311f5db20ceeb5e214a7 Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Wed, 1 Feb 2012 02:03:42 -0800 Subject: [PATCH 8/8] created presskit version; 'experimented' with fireinc base version ;-) --- fireinc-apn_on_rails.gemspec | 2 +- lib/apn_on_rails/app/models/apn/app.rb | 26 ++-- lib/apn_on_rails/app/models/apn/device.rb | 2 +- lib/apn_on_rails/libs/connection.rb | 2 +- presskit-apn_on_rails.gemspec | 144 ++++++++++++++++++++++ 5 files changed, 161 insertions(+), 15 deletions(-) create mode 100755 presskit-apn_on_rails.gemspec diff --git a/fireinc-apn_on_rails.gemspec b/fireinc-apn_on_rails.gemspec index 16a5da4c..c7c6a2a5 100755 --- a/fireinc-apn_on_rails.gemspec +++ b/fireinc-apn_on_rails.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = %q{fireinc-apn_on_rails} - s.version = "0.4.2.5" + s.version = "0.4.2.13" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] diff --git a/lib/apn_on_rails/app/models/apn/app.rb b/lib/apn_on_rails/app/models/apn/app.rb index f74a50d4..ecfafc8f 100755 --- a/lib/apn_on_rails/app/models/apn/app.rb +++ b/lib/apn_on_rails/app/models/apn/app.rb @@ -38,26 +38,28 @@ def self.send_notifications end def self.send_notifications_for_cert(the_cert, app_id) + # unless self.unsent_notifications.nil? || self.unsent_notifications.empty? + if (app_id == nil) + conditions = "app_id is null" + else + conditions = ["app_id = ?", app_id] + end begin - APN::Connection.open_for_delivery({:cert => the_cert}) do |conn, sock| - devs = APN::Device.where(:app_id => app_id) - unset = APN::Notification.where(:sent_at => nil).where(:device_id => devs.all.collect {|d| d.id}).order(:device_id, :created_at) - unset.each do |noty| - Rails.logger.debug "Sending notification ##{noty.id}" - begin + APN::Device.find_each(:conditions => conditions) do |dev| + APN::Connection.open_for_delivery({:cert => the_cert}) do |conn, sock| + dev.unsent_notifications.each do |noty| conn.write(noty.message_for_sending) - rescue => e - Rails.logger.error "Cannot send notification ##{noty.id}: " + e.message - return if e.message == "Broken pipe" + noty.sent_at = Time.now + noty.save end - noty.sent_at = Time.now - noty.save end + sleep(1) end rescue Exception => e log_connection_exception(e) end - end + # end + end def send_group_notifications if self.cert.nil? diff --git a/lib/apn_on_rails/app/models/apn/device.rb b/lib/apn_on_rails/app/models/apn/device.rb index b142e6bc..c744dcfa 100755 --- a/lib/apn_on_rails/app/models/apn/device.rb +++ b/lib/apn_on_rails/app/models/apn/device.rb @@ -15,7 +15,7 @@ class APN::Device < APN::Base has_many :unsent_notifications, :class_name => 'APN::Notification', :conditions => 'sent_at is null' belongs_to :user - validates_uniqueness_of :token, :scope => :app_id + validates_uniqueness_of :token, :scope => :artist_id validates_format_of :token, :with => /^[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}$/ before_create :set_last_registered_at diff --git a/lib/apn_on_rails/libs/connection.rb b/lib/apn_on_rails/libs/connection.rb index c44f8a7e..a94c32d2 100755 --- a/lib/apn_on_rails/libs/connection.rb +++ b/lib/apn_on_rails/libs/connection.rb @@ -59,7 +59,7 @@ def open(options = {}, &block) # :nodoc: ssl.connect yield ssl, sock if block_given? - + ensure ssl.close sock.close end diff --git a/presskit-apn_on_rails.gemspec b/presskit-apn_on_rails.gemspec new file mode 100755 index 00000000..a719d8d3 --- /dev/null +++ b/presskit-apn_on_rails.gemspec @@ -0,0 +1,144 @@ +# Generated by jeweler +# DO NOT EDIT THIS FILE DIRECTLY +# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{presskit-apn_on_rails} + s.version = "0.1" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["markbates", "Rebecca Nesson", "Caleb Adam Haye"] + s.date = %q{2011-11-31} + s.description = %q{APN on Rails is a Ruby on Rails gem that allows you to +easily add Apple Push Notification (iPhone) support to your Rails application. This version includes an association between an assumed User model and APN::Device +} + s.email = %q{caleb@fire.coop} + s.extra_rdoc_files = [ + "LICENSE", + "README", + "README.textile" + ] + s.files = [ + ".rspec", + ".specification", + "Gemfile", + "Gemfile.lock", + "LICENSE", + "README", + "README.textile", + "Rakefile", + "VERSION", + "presskit-apn_on_rails.gemspec", + "autotest/discover.rb", + "generators/apn_migrations_generator.rb", + "generators/templates/apn_migrations/001_create_apn_devices.rb", + "generators/templates/apn_migrations/002_create_apn_notifications.rb", + "generators/templates/apn_migrations/003_alter_apn_devices.rb", + "generators/templates/apn_migrations/004_create_apn_apps.rb", + "generators/templates/apn_migrations/005_create_groups.rb", + "generators/templates/apn_migrations/006_alter_apn_groups.rb", + "generators/templates/apn_migrations/007_create_device_groups.rb", + "generators/templates/apn_migrations/008_create_apn_group_notifications.rb", + "generators/templates/apn_migrations/009_create_pull_notifications.rb", + "generators/templates/apn_migrations/010_alter_apn_notifications.rb", + "generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb", + "generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb", + "lib/apn_on_rails.rb", + "lib/apn_on_rails/apn_on_rails.rb", + "lib/apn_on_rails/app/models/apn/app.rb", + "lib/apn_on_rails/app/models/apn/base.rb", + "lib/apn_on_rails/app/models/apn/device.rb", + "lib/apn_on_rails/app/models/apn/device_grouping.rb", + "lib/apn_on_rails/app/models/apn/group.rb", + "lib/apn_on_rails/app/models/apn/group_notification.rb", + "lib/apn_on_rails/app/models/apn/notification.rb", + "lib/apn_on_rails/app/models/apn/pull_notification.rb", + "lib/apn_on_rails/libs/connection.rb", + "lib/apn_on_rails/libs/feedback.rb", + "lib/apn_on_rails/tasks/apn.rake", + "lib/apn_on_rails/tasks/db.rake", + "lib/apn_on_rails_tasks.rb", + "spec/active_record/setup_ar.rb", + "spec/apn_on_rails/app/models/apn/app_spec.rb", + "spec/apn_on_rails/app/models/apn/device_spec.rb", + "spec/apn_on_rails/app/models/apn/group_notification_spec.rb", + "spec/apn_on_rails/app/models/apn/notification_spec.rb", + "spec/apn_on_rails/app/models/apn/pull_notification_spec.rb", + "spec/apn_on_rails/libs/connection_spec.rb", + "spec/apn_on_rails/libs/feedback_spec.rb", + "spec/extensions/string.rb", + "spec/factories/app_factory.rb", + "spec/factories/device_factory.rb", + "spec/factories/device_grouping_factory.rb", + "spec/factories/group_factory.rb", + "spec/factories/group_notification_factory.rb", + "spec/factories/notification_factory.rb", + "spec/factories/pull_notification_factory.rb", + "spec/fixtures/hexa.bin", + "spec/fixtures/message_for_sending.bin", + "spec/rails_root/config/apple_push_notification_development.pem", + "spec/spec_helper.rb" + ] + s.homepage = %q{http://github.com/calebhaye/apn_on_rails} + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.7} + s.summary = %q{Apple Push Notifications on Rails} + s.test_files = [ + "spec/active_record/setup_ar.rb", + "spec/apn_on_rails/app/models/apn/app_spec.rb", + "spec/apn_on_rails/app/models/apn/device_spec.rb", + "spec/apn_on_rails/app/models/apn/group_notification_spec.rb", + "spec/apn_on_rails/app/models/apn/notification_spec.rb", + "spec/apn_on_rails/app/models/apn/pull_notification_spec.rb", + "spec/apn_on_rails/libs/connection_spec.rb", + "spec/apn_on_rails/libs/feedback_spec.rb", + "spec/extensions/string.rb", + "spec/factories/app_factory.rb", + "spec/factories/device_factory.rb", + "spec/factories/device_grouping_factory.rb", + "spec/factories/group_factory.rb", + "spec/factories/group_notification_factory.rb", + "spec/factories/notification_factory.rb", + "spec/factories/pull_notification_factory.rb", + "spec/spec_helper.rb" + ] + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 3 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 2.0.0"]) + s.add_development_dependency(%q, ["~> 1.0.0"]) + s.add_development_dependency(%q, ["~> 1.5.0"]) + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, ["~> 2.3.0"]) + s.add_development_dependency(%q, ["~> 2.3.0"]) + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 2.0.0"]) + s.add_dependency(%q, ["~> 1.0.0"]) + s.add_dependency(%q, ["~> 1.5.0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + end + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 2.0.0"]) + s.add_dependency(%q, ["~> 1.0.0"]) + s.add_dependency(%q, ["~> 1.5.0"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + s.add_dependency(%q, ["~> 2.3.0"]) + end +end +