Permalink
Browse files

using bundler's gemspec now.

  • Loading branch information...
1 parent 9966b8c commit 72a8ca5618331c6e1834222a34bee97b40cd1fab @apotonick committed Jan 10, 2011
Showing with 29 additions and 221 deletions.
  1. +2 −15 Gemfile
  2. +6 −38 Rakefile
  3. +21 −168 apotomo.gemspec
View
17 Gemfile
@@ -1,18 +1,5 @@
source "http://rubygems.org"
-gem "rails", "~> 3.0"
-#gem "rails", :path => "/home/nick/projects/rayls"
-
-gem "cells", "~> 3.4"
-gem "onfire", "~> 0.1.1"
-gem "hooks", "~> 0.1.3"
-
+gemspec
-
-gem "jeweler"
-
-# for test env:
-gem "shoulda"
-gem "mocha"
-gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' # needed in router_test, whatever.
-gem "capybara"
+#gem "rails", :path => "/home/nick/projects/rayls"
View
@@ -1,42 +1,10 @@
-require "rubygems"
-require "bundler"
+require 'bundler'
+Bundler::GemHelper.install_tasks
-require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
-$:.unshift File.dirname(__FILE__)+"/lib" # add current dir to LOAD_PATHS
-
-desc 'Default: run unit tests.'
-task :default => :test
-
-desc 'Test the Apotomo plugin.'
- Rake::TestTask.new(:test) do |t|
- t.libs << 'test'
- t.test_files = FileList['test/unit/*_test.rb', 'test/rails/*_test.rb']# - ['test/rails/capture_test.rb']
- t.verbose = true
-end
-
-
-require 'jeweler'
-require 'apotomo/version'
-
-Jeweler::Tasks.new do |spec|
- spec.name = "apotomo"
- spec.version = ::Apotomo::VERSION
- spec.summary = %{Web components for Rails.}
- spec.description = "Web component framework for Rails providing page widgets that trigger events and know when and how to update themselves with AJAX."
- spec.homepage = "http://apotomo.de"
- spec.authors = ["Nick Sutterer"]
- spec.email = "apotonick@gmail.com"
-
- spec.files = FileList["[A-Z]*", "lib/**/*", "config/*"] - ["Gemfile.lock"]
- spec.test_files = FileList["test/**/*"] - FileList["test/dummy/tmp", "test/dummy/tmp/**/*", "test/dummy/log/*"]
-
- spec.add_dependency 'cells', '~> 3.4.2'
- spec.add_dependency 'rails', '~> 3.0.0'
- spec.add_dependency 'onfire', '>= 0.1.0'
- spec.add_dependency 'hooks', '~> 0.1.3'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'test'
+ test.test_files = FileList['test/unit/*_test.rb', 'test/rails/*_test.rb']# - ['test/rails/capture_test.rb']
+ test.verbose = true
end
-
-Jeweler::GemcutterTasks.new
View
@@ -1,175 +1,28 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
-Gem::Specification.new do |s|
- s.name = %q{apotomo}
- s.version = "1.0.2"
+require 'apotomo/version'
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Nick Sutterer"]
- s.date = %q{2011-01-06}
+Gem::Specification.new do |s|
+ s.name = "apotomo"
+ s.version = Apotomo::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Nick Sutterer"]
+ s.email = ["apotonick@gmail.com"]
+ s.homepage = "http://github.com/apotonick/apotomo"
+ s.summary = %q{Web components for Rails.}
s.description = %q{Web component framework for Rails providing page widgets that trigger events and know when and how to update themselves with AJAX.}
- s.email = %q{apotonick@gmail.com}
- s.extra_rdoc_files = [
- "README.rdoc",
- "TODO"
- ]
- s.files = [
- "CHANGES.textile",
- "Gemfile",
- "README.rdoc",
- "Rakefile",
- "TODO",
- "config/routes.rb",
- "lib/apotomo.rb",
- "lib/apotomo/container_widget.rb",
- "lib/apotomo/event.rb",
- "lib/apotomo/event_handler.rb",
- "lib/apotomo/event_methods.rb",
- "lib/apotomo/invoke_event_handler.rb",
- "lib/apotomo/javascript_generator.rb",
- "lib/apotomo/persistence.rb",
- "lib/apotomo/proc_event_handler.rb",
- "lib/apotomo/rails/controller_methods.rb",
- "lib/apotomo/rails/view_helper.rb",
- "lib/apotomo/rails/view_methods.rb",
- "lib/apotomo/request_processor.rb",
- "lib/apotomo/stateful_widget.rb",
- "lib/apotomo/test_case.rb",
- "lib/apotomo/transition.rb",
- "lib/apotomo/tree_node.rb",
- "lib/apotomo/version.rb",
- "lib/apotomo/widget.rb",
- "lib/apotomo/widget_shortcuts.rb",
- "lib/generators/apotomo/USAGE",
- "lib/generators/apotomo/templates/view.erb",
- "lib/generators/apotomo/templates/view.haml",
- "lib/generators/apotomo/templates/widget.rb",
- "lib/generators/apotomo/templates/widget_test.rb",
- "lib/generators/apotomo/widget_generator.rb",
- "lib/tasks.rake"
- ]
- s.homepage = %q{http://apotomo.de}
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Web components for Rails.}
- s.test_files = [
- "test/dummy/Rakefile",
- "test/dummy/app/controllers/application_controller.rb",
- "test/dummy/app/helpers/application_helper.rb",
- "test/dummy/app/views/layouts/application.html.erb",
- "test/dummy/config.ru",
- "test/dummy/config/application.rb",
- "test/dummy/config/boot.rb",
- "test/dummy/config/database.yml",
- "test/dummy/config/environment.rb",
- "test/dummy/config/environments/development.rb",
- "test/dummy/config/environments/production.rb",
- "test/dummy/config/environments/test.rb",
- "test/dummy/config/initializers/backtrace_silencers.rb",
- "test/dummy/config/initializers/inflections.rb",
- "test/dummy/config/initializers/mime_types.rb",
- "test/dummy/config/initializers/secret_token.rb",
- "test/dummy/config/initializers/session_store.rb",
- "test/dummy/config/locales/en.yml",
- "test/dummy/config/routes.rb",
- "test/dummy/db/test.sqlite3",
- "test/dummy/public/404.html",
- "test/dummy/public/422.html",
- "test/dummy/public/500.html",
- "test/dummy/public/favicon.ico",
- "test/dummy/public/javascripts/application.js",
- "test/dummy/public/javascripts/controls.js",
- "test/dummy/public/javascripts/dragdrop.js",
- "test/dummy/public/javascripts/effects.js",
- "test/dummy/public/javascripts/prototype.js",
- "test/dummy/public/javascripts/rails.js",
- "test/dummy/script/rails",
- "test/fixtures/application_widget_tree.rb",
- "test/fixtures/mouse/content.html.erb",
- "test/fixtures/mouse/eating.html.erb",
- "test/fixtures/mouse/educate.html.erb",
- "test/fixtures/mouse/feed.html.erb",
- "test/fixtures/mouse/make_me_squeak.html.erb",
- "test/fixtures/mouse/posing.html.erb",
- "test/fixtures/mouse/snuggle.html.erb",
- "test/rails/controller_methods_test.rb",
- "test/rails/rails_integration_test.rb",
- "test/rails/view_helper_test.rb",
- "test/rails/view_methods_test.rb",
- "test/rails/widget_generator_test.rb",
- "test/support/test_case_methods.rb",
- "test/test_helper.rb",
- "test/unit/apotomo_test.rb",
- "test/unit/container_test.rb",
- "test/unit/event_handler_test.rb",
- "test/unit/event_methods_test.rb",
- "test/unit/event_test.rb",
- "test/unit/invoke_test.rb",
- "test/unit/javascript_generator_test.rb",
- "test/unit/onfire_integration_test.rb",
- "test/unit/persistence_test.rb",
- "test/unit/render_test.rb",
- "test/unit/request_processor_test.rb",
- "test/unit/stateful_widget_test.rb",
- "test/unit/test_addressing.rb",
- "test/unit/test_case_test.rb",
- "test/unit/test_jump_to_state.rb",
- "test/unit/test_tab_panel.rb",
- "test/unit/transition_test.rb",
- "test/unit/widget_shortcuts_test.rb",
- "test/unit/widget_test.rb"
- ]
+
+ s.add_dependency "rails", "~> 3.0"
+ s.add_dependency "cells", "~> 3.4"
+ s.add_dependency "onfire", "~> 0.1.1"
+ s.add_dependency "hooks", "~> 0.1.3"
- 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<rails>, ["~> 3.0"])
- s.add_runtime_dependency(%q<cells>, ["~> 3.4"])
- s.add_runtime_dependency(%q<onfire>, ["~> 0.1.1"])
- s.add_runtime_dependency(%q<hooks>, ["~> 0.1.3"])
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
- s.add_runtime_dependency(%q<shoulda>, [">= 0"])
- s.add_runtime_dependency(%q<mocha>, [">= 0"])
- s.add_runtime_dependency(%q<sqlite3-ruby>, ["= 1.2.5"])
- s.add_runtime_dependency(%q<capybara>, [">= 0"])
- s.add_runtime_dependency(%q<cells>, ["~> 3.4.2"])
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
- s.add_runtime_dependency(%q<onfire>, [">= 0.1.0"])
- s.add_runtime_dependency(%q<hooks>, ["~> 0.1.3"])
- else
- s.add_dependency(%q<rails>, ["~> 3.0"])
- s.add_dependency(%q<cells>, ["~> 3.4"])
- s.add_dependency(%q<onfire>, ["~> 0.1.1"])
- s.add_dependency(%q<hooks>, ["~> 0.1.3"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<mocha>, [">= 0"])
- s.add_dependency(%q<sqlite3-ruby>, ["= 1.2.5"])
- s.add_dependency(%q<capybara>, [">= 0"])
- s.add_dependency(%q<cells>, ["~> 3.4.2"])
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
- s.add_dependency(%q<onfire>, [">= 0.1.0"])
- s.add_dependency(%q<hooks>, ["~> 0.1.3"])
- end
- else
- s.add_dependency(%q<rails>, ["~> 3.0"])
- s.add_dependency(%q<cells>, ["~> 3.4"])
- s.add_dependency(%q<onfire>, ["~> 0.1.1"])
- s.add_dependency(%q<hooks>, ["~> 0.1.3"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<mocha>, [">= 0"])
- s.add_dependency(%q<sqlite3-ruby>, ["= 1.2.5"])
- s.add_dependency(%q<capybara>, [">= 0"])
- s.add_dependency(%q<cells>, ["~> 3.4.2"])
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
- s.add_dependency(%q<onfire>, [">= 0.1.0"])
- s.add_dependency(%q<hooks>, ["~> 0.1.3"])
- end
+ s.add_development_dependency "shoulda"
end
-

0 comments on commit 72a8ca5

Please sign in to comment.