Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using the using-gemspecs-as-intended gemspec.

  • Loading branch information...
commit c865932c4e3236102a37dbbb108d83ad7f69ddfd 1 parent 3aa08ad
@apotonick apotonick authored
Showing with 26 additions and 181 deletions.
  1. +2 −8 Gemfile
  2. +3 −32 Rakefile
  3. +21 −141 cells.gemspec
View
10 Gemfile
@@ -1,11 +1,5 @@
source :gemcutter
-gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' # needed in router_test, whatever.
-#gem "rails" , :path => "/home/nick/projects/rayls"
-gem "rails", '~> 3.0'
-gem "haml"
+gemspec
-group :test do
- gem "shoulda"
-end
-gem "rack", :git => "git://github.com/rack/rack.git"
+#gem "rails" , :path => "/home/nick/projects/rayls"
View
35 Rakefile
@@ -1,11 +1,7 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-require File.join(File.dirname(__FILE__), 'lib', 'cells', 'version')
-
+require 'bundler'
+Bundler::GemHelper.install_tasks
-desc 'Default: run unit tests.'
-task :default => :test
+require 'rake/testtask'
desc 'Test the cells plugin.'
Rake::TestTask.new(:test) do |test|
@@ -13,28 +9,3 @@ Rake::TestTask.new(:test) do |test|
test.test_files = FileList['test/*_test.rb', 'test/rails/*_test.rb'] - ['test/rails/capture_test.rb']
test.verbose = true
end
-
-begin
- gem 'jeweler'
- require 'jeweler'
-
- Jeweler::Tasks.new do |spec|
- spec.name = "cells"
- spec.version = ::Cells::VERSION
- spec.summary = %{View Components for Rails.}
- spec.description = %{Cells are lightweight controllers for Rails and can be rendered in views, providing an elegant and fast way for encapsulation and component-orientation.}
- spec.homepage = "http://cells.rubyforge.org"
- spec.authors = ["Nick Sutterer"]
- spec.email = "apotonick@gmail.com"
-
- spec.files = FileList["[A-Z]*", "lib/**/*"] - ["Gemfile.lock"]
- spec.test_files = FileList["test/**/*"] - FileList["test/dummy/tmp", "test/dummy/tmp/**/*", "test/dummy/log/*"]
-
- # spec.add_dependency 'activesupport', '>= 2.3.0' # Dependencies and minimum versions?
- end
-
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler - or one of its dependencies - is not available. " <<
- "Install it with: sudo gem install jeweler -s http://gemcutter.org"
-end
View
162 cells.gemspec
@@ -1,146 +1,26 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
-Gem::Specification.new do |s|
- s.name = %q{cells}
- s.version = "3.4.4"
+require 'cells/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-02}
- s.description = %q{Cells are lightweight controllers for Rails and can be rendered in views, providing an elegant and fast way for encapsulation and component-orientation.}
- s.email = %q{apotonick@gmail.com}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "CHANGES.textile",
- "Gemfile",
- "README.rdoc",
- "Rakefile",
- "lib/cell.rb",
- "lib/cell/active_helper.rb",
- "lib/cell/caching.rb",
- "lib/cell/rails.rb",
- "lib/cell/test_case.rb",
- "lib/cells.rb",
- "lib/cells/cells.rake",
- "lib/cells/helpers.rb",
- "lib/cells/helpers/capture_helper.rb",
- "lib/cells/rails.rb",
- "lib/cells/version.rb",
- "lib/generators/cells/USAGE",
- "lib/generators/cells/cell_generator.rb",
- "lib/generators/cells/templates/cell.rb",
- "lib/generators/cells/templates/cell_test.rb",
- "lib/generators/cells/templates/view.erb",
- "lib/generators/cells/templates/view.haml"
- ]
- s.homepage = %q{http://cells.rubyforge.org}
- s.rdoc_options = ["--charset=UTF-8"]
+Gem::Specification.new do |s|
+ s.name = "cells"
+ s.version = Cells::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Nick Sutterer"]
+ s.email = ["apotonick@gmail.com"]
+ s.homepage = "http://cells.rubyforge.org"
+ s.summary = %q{View Components for Rails.}
+ s.description = %q{Cells are View Components for Rails. They are lightweight controllers, can be rendered in views and thus provide an elegant and fast way for encapsulation and component-orientation.}
+
+ 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{View Components for Rails.}
- s.test_files = [
- "test/active_helper_test.rb",
- "test/rails",
- "test/rails/router_test.rb",
- "test/rails/view_test.rb",
- "test/rails/capture_test.rb",
- "test/rails/integration_test.rb",
- "test/rails/render_test.rb",
- "test/rails/cells_test.rb",
- "test/rails/caching_test.rb",
- "test/cell_generator_test.rb",
- "test/test_helper.rb",
- "test/dummy",
- "test/dummy/config",
- "test/dummy/config/application.rb",
- "test/dummy/config/locales",
- "test/dummy/config/locales/en.yml",
- "test/dummy/config/routes.rb",
- "test/dummy/config/boot.rb",
- "test/dummy/config/environment.rb",
- "test/dummy/config/environments",
- "test/dummy/config/environments/production.rb",
- "test/dummy/config/environments/test.rb",
- "test/dummy/config/environments/development.rb",
- "test/dummy/config/database.yml",
- "test/dummy/script",
- "test/dummy/script/rails",
- "test/dummy/config.ru",
- "test/dummy/db",
- "test/dummy/db/test.sqlite3",
- "test/dummy/Rakefile",
- "test/dummy/public",
- "test/dummy/public/422.html",
- "test/dummy/public/favicon.ico",
- "test/dummy/public/stylesheets",
- "test/dummy/public/500.html",
- "test/dummy/public/404.html",
- "test/dummy/public/javascripts",
- "test/dummy/public/javascripts/controls.js",
- "test/dummy/public/javascripts/application.js",
- "test/dummy/public/javascripts/rails.js",
- "test/dummy/public/javascripts/dragdrop.js",
- "test/dummy/public/javascripts/prototype.js",
- "test/dummy/public/javascripts/effects.js",
- "test/dummy/log",
- "test/dummy/app",
- "test/dummy/app/controllers",
- "test/dummy/app/controllers/musician_controller.rb",
- "test/dummy/app/controllers/application_controller.rb",
- "test/dummy/app/views",
- "test/dummy/app/views/layouts",
- "test/dummy/app/views/layouts/application.html.erb",
- "test/dummy/app/views/musician",
- "test/dummy/app/views/musician/featured_with_block.html.erb",
- "test/dummy/app/views/musician/hamlet.html.haml",
- "test/dummy/app/views/musician/featured.html.erb",
- "test/dummy/app/helpers",
- "test/dummy/app/helpers/application_helper.rb",
- "test/cells_module_test.rb",
- "test/test_case_test.rb",
- "test/helper_test.rb",
- "test/cell_module_test.rb",
- "test/app",
- "test/app/cells",
- "test/app/cells/layouts",
- "test/app/cells/layouts/metal.html.erb",
- "test/app/cells/layouts/b.erb",
- "test/app/cells/bassist_cell.rb",
- "test/app/cells/producer",
- "test/app/cells/producer/capture.html.erb",
- "test/app/cells/producer/content_for.html.erb",
- "test/app/cells/bad_guitarist",
- "test/app/cells/bad_guitarist/_dii.html.erb",
- "test/app/cells/bad_guitarist_cell.rb",
- "test/app/cells/bassist",
- "test/app/cells/bassist/contact_form.html.erb",
- "test/app/cells/bassist/slap.html.erb",
- "test/app/cells/bassist/play.html.erb",
- "test/app/cells/bassist/play.js.erb",
- "test/app/cells/bassist/sing.html.haml",
- "test/app/cells/bassist/jam.html.erb",
- "test/app/cells/bassist/ahem.html.erb",
- "test/app/cells/bassist/provoke.html.erb",
- "test/app/cells/bassist/pose.html.erb",
- "test/app/cells/bassist/promote.html.erb",
- "test/app/cells/bassist/compose.html.erb",
- "test/app/cells/bassist/_dii.html.erb",
- "test/app/cells/bassist/yell.en.html.erb"
- ]
-
- 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
- else
- end
- else
- end
+
+ s.add_dependency "rails", "~> 3.0"
+
+ s.add_development_dependency "shoulda"
+ s.add_development_dependency "haml"
end
-
Please sign in to comment.
Something went wrong with that request. Please try again.