Skip to content
Browse files

Moved from Gemstub to Jeweler and Bundler for ease of continued devel…

…opment.

Regenerated gemspec file to reflect change in gem ownership, ensured that
tests continue to run, moved to version 0.3.1, built Bundler Gemfile, and
upgraded to RSpec v2.
  • Loading branch information...
1 parent ae314f5 commit f94d0b38cd00aaeed0393c7ea8e7337ccabf9a29 @chrisrhoden chrisrhoden committed Oct 6, 2010
Showing with 201 additions and 28 deletions.
  1. +2 −0 .rspec
  2. +18 −0 Gemfile
  3. +45 −0 Gemfile.lock
  4. +43 −11 Rakefile
  5. +1 −0 VERSION
  6. +90 −12 apn_on_rails.gemspec
  7. +0 −2 spec/spec.opts
  8. +2 −3 spec/spec_helper.rb
View
2 .rspec
@@ -0,0 +1,2 @@
+-f d
+--colour
View
18 Gemfile
@@ -0,0 +1,18 @@
+source :gemcutter
+gem 'configatron'
+
+# Add dependencies required to use your gem here.
+# Example:
+# gem "activesupport", ">= 2.3.5"
+
+# Add dependencies to develop your gem here.
+# Include everything needed to run rake, tests, features, etc.
+group :development do
+ gem 'sqlite3-ruby'
+ gem "rspec", ">= 2.0.0.beta.19"
+ gem "bundler", ">= 1.0.0.rc.5"
+ gem "jeweler", "~> 1.5.0.pre2"
+ gem "rcov", ">= 0"
+ gem "actionpack", '~> 2.3.8'
+ gem 'activerecord', "~> 2.3.8"
+end
View
45 Gemfile.lock
@@ -0,0 +1,45 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionpack (2.3.9)
+ activesupport (= 2.3.9)
+ rack (~> 1.1.0)
+ activerecord (2.3.9)
+ activesupport (= 2.3.9)
+ activesupport (2.3.9)
+ configatron (2.6.4)
+ yamler (>= 0.1.0)
+ diff-lcs (1.1.2)
+ git (1.2.5)
+ jeweler (1.5.0.pre3)
+ bundler (~> 1.0.0)
+ git (>= 1.2.5)
+ rake
+ rack (1.1.0)
+ rake (0.8.7)
+ rcov (0.9.9)
+ rspec (2.0.0.rc)
+ rspec-core (= 2.0.0.rc)
+ rspec-expectations (= 2.0.0.rc)
+ rspec-mocks (= 2.0.0.rc)
+ rspec-core (2.0.0.rc)
+ rspec-expectations (2.0.0.rc)
+ diff-lcs (>= 1.1.2)
+ rspec-mocks (2.0.0.rc)
+ rspec-core (= 2.0.0.rc)
+ rspec-expectations (= 2.0.0.rc)
+ sqlite3-ruby (1.3.1)
+ yamler (0.1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ actionpack (~> 2.3.8)
+ activerecord (~> 2.3.8)
+ bundler (>= 1.0.0.rc.5)
+ configatron
+ jeweler (~> 1.5.0.pre2)
+ rcov
+ rspec (>= 2.0.0.beta.19)
+ sqlite3-ruby
View
54 Rakefile
@@ -1,17 +1,49 @@
require 'rubygems'
-require 'gemstub'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
+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.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.
+}
-Gemstub.test_framework = :rspec
+ gem.email = "tech-team@prx.org"
+ gem.homepage = "http://github.com/PRX/apn_on_rails"
+ gem.authors = ["markbates", "Rebecca Nesson"]
+end
+#Jeweler::RubygemsDotOrgsTasks.new
-Gemstub.gem_spec do |s|
- s.version = "0.3.1"
- s.rubyforge_project = "magrathea"
- s.add_dependency('configatron')
- s.email = 'mark@markbates.com'
- s.homepage = 'http://www.metabates.com'
- s.files = FileList['lib/**/*.*', 'README', 'LICENSE', 'bin/**/*.*', 'generators/**/*.*']
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
end
-Gemstub.rdoc do |rd|
- rd.title = "APN on Rails"
+RSpec::Core::RakeTask.new(:rcov) do |spec|
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
+end
+
+task :default => :spec
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "apn #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
end
View
1 VERSION
@@ -0,0 +1 @@
+0.3.1
View
102 apn_on_rails.gemspec
@@ -1,32 +1,110 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{apn_on_rails}
- s.version = "0.3.0.20090731235503"
+ s.version = "0.3.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["markbates"]
- s.date = %q{2009-07-31}
- s.description = %q{apn_on_rails was developed by: markbates}
- s.email = %q{mark@markbates.com}
- s.extra_rdoc_files = ["README", "LICENSE"]
- s.files = ["lib/apn_on_rails/apn_on_rails.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/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.rb", "lib/apn_on_rails_tasks.rb", "README", "LICENSE", "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"]
- s.homepage = %q{http://www.metabates.com}
+ s.authors = ["markbates", "Rebecca Nesson"]
+ s.date = %q{2010-10-06}
+ 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.
+}
+ s.email = %q{tech-team@prx.org}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README",
+ "README.textile"
+ ]
+ s.files = [
+ ".gitignore",
+ ".rspec",
+ "Gemfile",
+ "Gemfile.lock",
+ "LICENSE",
+ "README",
+ "README.textile",
+ "Rakefile",
+ "VERSION",
+ "apn_on_rails.gemspec",
+ "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",
+ "lib/apn_on_rails.rb",
+ "lib/apn_on_rails/apn_on_rails.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/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/device_spec.rb",
+ "spec/apn_on_rails/app/models/apn/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/device_factory.rb",
+ "spec/factories/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/PRX/apn_on_rails}
s.require_paths = ["lib"]
- s.rubyforge_project = %q{magrathea}
- s.rubygems_version = %q{1.3.4}
- s.summary = %q{apn_on_rails}
+ 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/device_spec.rb",
+ "spec/apn_on_rails/app/models/apn/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/device_factory.rb",
+ "spec/factories/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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<configatron>, [">= 0"])
+ s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
+ s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.19"])
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0.rc.5"])
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.0.pre2"])
+ s.add_development_dependency(%q<rcov>, [">= 0"])
+ s.add_development_dependency(%q<actionpack>, ["~> 2.3.8"])
+ s.add_development_dependency(%q<activerecord>, ["~> 2.3.8"])
else
s.add_dependency(%q<configatron>, [">= 0"])
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
+ s.add_dependency(%q<rspec>, [">= 2.0.0.beta.19"])
+ s.add_dependency(%q<bundler>, [">= 1.0.0.rc.5"])
+ s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre2"])
+ s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<actionpack>, ["~> 2.3.8"])
+ s.add_dependency(%q<activerecord>, ["~> 2.3.8"])
end
else
s.add_dependency(%q<configatron>, [">= 0"])
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
+ s.add_dependency(%q<rspec>, [">= 2.0.0.beta.19"])
+ s.add_dependency(%q<bundler>, [">= 1.0.0.rc.5"])
+ s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre2"])
+ s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<actionpack>, ["~> 2.3.8"])
+ s.add_dependency(%q<activerecord>, ["~> 2.3.8"])
end
end
+
View
2 spec/spec.opts
@@ -1,2 +0,0 @@
---format specdoc
---colour
View
5 spec/spec_helper.rb
@@ -1,5 +1,4 @@
-require 'rubygems'
-require 'spec'
+require 'rspec'
require 'action_view'
Dir.glob(File.join(File.dirname(__FILE__), 'extensions', '*.rb')).sort.each do |f|
@@ -16,7 +15,7 @@
configatron.apn.cert = File.expand_path(File.join(File.dirname(__FILE__), 'rails_root', 'config', 'apple_push_notification_development.pem'))
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.before(:all) do

0 comments on commit f94d0b3

Please sign in to comment.
Something went wrong with that request. Please try again.