Skip to content

Commit c865932

Browse files
committed
using the using-gemspecs-as-intended gemspec.
1 parent 3aa08ad commit c865932

3 files changed

Lines changed: 26 additions & 181 deletions

File tree

Gemfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
source :gemcutter
2-
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' # needed in router_test, whatever.
32

4-
#gem "rails" , :path => "/home/nick/projects/rayls"
5-
gem "rails", '~> 3.0'
6-
gem "haml"
3+
gemspec
74

8-
group :test do
9-
gem "shoulda"
10-
end
11-
gem "rack", :git => "git://github.com/rack/rack.git"
5+
#gem "rails" , :path => "/home/nick/projects/rayls"

Rakefile

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,11 @@
1-
require 'rake'
2-
require 'rake/testtask'
3-
require 'rake/rdoctask'
4-
require File.join(File.dirname(__FILE__), 'lib', 'cells', 'version')
5-
1+
require 'bundler'
2+
Bundler::GemHelper.install_tasks
63

7-
desc 'Default: run unit tests.'
8-
task :default => :test
4+
require 'rake/testtask'
95

106
desc 'Test the cells plugin.'
117
Rake::TestTask.new(:test) do |test|
128
test.libs << 'test'
139
test.test_files = FileList['test/*_test.rb', 'test/rails/*_test.rb'] - ['test/rails/capture_test.rb']
1410
test.verbose = true
1511
end
16-
17-
begin
18-
gem 'jeweler'
19-
require 'jeweler'
20-
21-
Jeweler::Tasks.new do |spec|
22-
spec.name = "cells"
23-
spec.version = ::Cells::VERSION
24-
spec.summary = %{View Components for Rails.}
25-
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.}
26-
spec.homepage = "http://cells.rubyforge.org"
27-
spec.authors = ["Nick Sutterer"]
28-
spec.email = "apotonick@gmail.com"
29-
30-
spec.files = FileList["[A-Z]*", "lib/**/*"] - ["Gemfile.lock"]
31-
spec.test_files = FileList["test/**/*"] - FileList["test/dummy/tmp", "test/dummy/tmp/**/*", "test/dummy/log/*"]
32-
33-
# spec.add_dependency 'activesupport', '>= 2.3.0' # Dependencies and minimum versions?
34-
end
35-
36-
Jeweler::GemcutterTasks.new
37-
rescue LoadError
38-
puts "Jeweler - or one of its dependencies - is not available. " <<
39-
"Install it with: sudo gem install jeweler -s http://gemcutter.org"
40-
end

cells.gemspec

Lines changed: 21 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -1,146 +1,26 @@
1-
# Generated by jeweler
2-
# DO NOT EDIT THIS FILE DIRECTLY
3-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
41
# -*- encoding: utf-8 -*-
2+
lib = File.expand_path('../lib/', __FILE__)
3+
$:.unshift lib unless $:.include?(lib)
54

6-
Gem::Specification.new do |s|
7-
s.name = %q{cells}
8-
s.version = "3.4.4"
5+
require 'cells/version'
96

10-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11-
s.authors = ["Nick Sutterer"]
12-
s.date = %q{2011-01-02}
13-
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.}
14-
s.email = %q{apotonick@gmail.com}
15-
s.extra_rdoc_files = [
16-
"README.rdoc"
17-
]
18-
s.files = [
19-
"CHANGES.textile",
20-
"Gemfile",
21-
"README.rdoc",
22-
"Rakefile",
23-
"lib/cell.rb",
24-
"lib/cell/active_helper.rb",
25-
"lib/cell/caching.rb",
26-
"lib/cell/rails.rb",
27-
"lib/cell/test_case.rb",
28-
"lib/cells.rb",
29-
"lib/cells/cells.rake",
30-
"lib/cells/helpers.rb",
31-
"lib/cells/helpers/capture_helper.rb",
32-
"lib/cells/rails.rb",
33-
"lib/cells/version.rb",
34-
"lib/generators/cells/USAGE",
35-
"lib/generators/cells/cell_generator.rb",
36-
"lib/generators/cells/templates/cell.rb",
37-
"lib/generators/cells/templates/cell_test.rb",
38-
"lib/generators/cells/templates/view.erb",
39-
"lib/generators/cells/templates/view.haml"
40-
]
41-
s.homepage = %q{http://cells.rubyforge.org}
42-
s.rdoc_options = ["--charset=UTF-8"]
7+
Gem::Specification.new do |s|
8+
s.name = "cells"
9+
s.version = Cells::VERSION
10+
s.platform = Gem::Platform::RUBY
11+
s.authors = ["Nick Sutterer"]
12+
s.email = ["apotonick@gmail.com"]
13+
s.homepage = "http://cells.rubyforge.org"
14+
s.summary = %q{View Components for Rails.}
15+
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.}
16+
17+
s.files = `git ls-files`.split("\n")
18+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
4320
s.require_paths = ["lib"]
44-
s.rubygems_version = %q{1.3.7}
45-
s.summary = %q{View Components for Rails.}
46-
s.test_files = [
47-
"test/active_helper_test.rb",
48-
"test/rails",
49-
"test/rails/router_test.rb",
50-
"test/rails/view_test.rb",
51-
"test/rails/capture_test.rb",
52-
"test/rails/integration_test.rb",
53-
"test/rails/render_test.rb",
54-
"test/rails/cells_test.rb",
55-
"test/rails/caching_test.rb",
56-
"test/cell_generator_test.rb",
57-
"test/test_helper.rb",
58-
"test/dummy",
59-
"test/dummy/config",
60-
"test/dummy/config/application.rb",
61-
"test/dummy/config/locales",
62-
"test/dummy/config/locales/en.yml",
63-
"test/dummy/config/routes.rb",
64-
"test/dummy/config/boot.rb",
65-
"test/dummy/config/environment.rb",
66-
"test/dummy/config/environments",
67-
"test/dummy/config/environments/production.rb",
68-
"test/dummy/config/environments/test.rb",
69-
"test/dummy/config/environments/development.rb",
70-
"test/dummy/config/database.yml",
71-
"test/dummy/script",
72-
"test/dummy/script/rails",
73-
"test/dummy/config.ru",
74-
"test/dummy/db",
75-
"test/dummy/db/test.sqlite3",
76-
"test/dummy/Rakefile",
77-
"test/dummy/public",
78-
"test/dummy/public/422.html",
79-
"test/dummy/public/favicon.ico",
80-
"test/dummy/public/stylesheets",
81-
"test/dummy/public/500.html",
82-
"test/dummy/public/404.html",
83-
"test/dummy/public/javascripts",
84-
"test/dummy/public/javascripts/controls.js",
85-
"test/dummy/public/javascripts/application.js",
86-
"test/dummy/public/javascripts/rails.js",
87-
"test/dummy/public/javascripts/dragdrop.js",
88-
"test/dummy/public/javascripts/prototype.js",
89-
"test/dummy/public/javascripts/effects.js",
90-
"test/dummy/log",
91-
"test/dummy/app",
92-
"test/dummy/app/controllers",
93-
"test/dummy/app/controllers/musician_controller.rb",
94-
"test/dummy/app/controllers/application_controller.rb",
95-
"test/dummy/app/views",
96-
"test/dummy/app/views/layouts",
97-
"test/dummy/app/views/layouts/application.html.erb",
98-
"test/dummy/app/views/musician",
99-
"test/dummy/app/views/musician/featured_with_block.html.erb",
100-
"test/dummy/app/views/musician/hamlet.html.haml",
101-
"test/dummy/app/views/musician/featured.html.erb",
102-
"test/dummy/app/helpers",
103-
"test/dummy/app/helpers/application_helper.rb",
104-
"test/cells_module_test.rb",
105-
"test/test_case_test.rb",
106-
"test/helper_test.rb",
107-
"test/cell_module_test.rb",
108-
"test/app",
109-
"test/app/cells",
110-
"test/app/cells/layouts",
111-
"test/app/cells/layouts/metal.html.erb",
112-
"test/app/cells/layouts/b.erb",
113-
"test/app/cells/bassist_cell.rb",
114-
"test/app/cells/producer",
115-
"test/app/cells/producer/capture.html.erb",
116-
"test/app/cells/producer/content_for.html.erb",
117-
"test/app/cells/bad_guitarist",
118-
"test/app/cells/bad_guitarist/_dii.html.erb",
119-
"test/app/cells/bad_guitarist_cell.rb",
120-
"test/app/cells/bassist",
121-
"test/app/cells/bassist/contact_form.html.erb",
122-
"test/app/cells/bassist/slap.html.erb",
123-
"test/app/cells/bassist/play.html.erb",
124-
"test/app/cells/bassist/play.js.erb",
125-
"test/app/cells/bassist/sing.html.haml",
126-
"test/app/cells/bassist/jam.html.erb",
127-
"test/app/cells/bassist/ahem.html.erb",
128-
"test/app/cells/bassist/provoke.html.erb",
129-
"test/app/cells/bassist/pose.html.erb",
130-
"test/app/cells/bassist/promote.html.erb",
131-
"test/app/cells/bassist/compose.html.erb",
132-
"test/app/cells/bassist/_dii.html.erb",
133-
"test/app/cells/bassist/yell.en.html.erb"
134-
]
135-
136-
if s.respond_to? :specification_version then
137-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
138-
s.specification_version = 3
139-
140-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
141-
else
142-
end
143-
else
144-
end
21+
22+
s.add_dependency "rails", "~> 3.0"
23+
24+
s.add_development_dependency "shoulda"
25+
s.add_development_dependency "haml"
14526
end
146-

0 commit comments

Comments
 (0)