Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
convert to gem
Browse files Browse the repository at this point in the history
  • Loading branch information
negonicrac committed Jan 24, 2010
1 parent fb8a903 commit f80652f
Show file tree
Hide file tree
Showing 11 changed files with 230 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.DS_Store
haml/scaffold/.DS_Store
## PROJECT::GENERAL
coverage
rdoc
pkg

## PROJECT::SPECIFIC
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2009 Louis T.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 11 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
= rails3-generators

Rails 3 compatible generators for RSpec, DataMapper, Haml, Factory-girl and Authlogic

== Note on Patches/Pull Requests

== Contributors

== Copyright

Copyright (c) 2010 Louis T. See LICENSE for details.
57 changes: 57 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rails3-generators"
gem.summary = %Q{Rails 3 compatible generators}
gem.description = %Q{Rails 3 compatible generators for RSpec, DataMapper, Haml, Factory-girl and Authlogic}
gem.email = "[email protected]"
gem.homepage = "http://github.com/negonicrac/rails3-generators"
gem.authors = ["Louis T."]
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency "cucumber", ">= 0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end

task :spec => :check_dependencies

begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)

task :features => :check_dependencies
rescue LoadError
task :features do
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
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 = "rails3-generators #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
4 changes: 4 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$:.unshift File.join(File.dirname(__FILE__), %w[.. .. lib])
require 'rails3-generators'

require 'spec/expectations'
2 changes: 2 additions & 0 deletions lib/rails3-generators.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module Rails3Generators
end
116 changes: 116 additions & 0 deletions rails3-generators.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# 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{rails3-generators}
s.version = "0.0.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Louis T."]
s.date = %q{2010-01-24}
s.description = %q{Rails 3 compatible generators for RSpec, DataMapper, Haml, Factory-girl and Authlogic}
s.email = %q{[email protected]}
s.extra_rdoc_files = [
"LICENSE",
"README.rdoc"
]
s.files = [
".gitignore",
"LICENSE",
"README.rdoc",
"Rakefile",
"VERSION",
"features/support/env.rb",
"lib/generators/authlogic.rb",
"lib/generators/authlogic/session/session_generator.rb",
"lib/generators/authlogic/session/templates/session.rb",
"lib/generators/datamapper.rb",
"lib/generators/datamapper/migration/migration_generator.rb",
"lib/generators/datamapper/migration/templates/migration.rb",
"lib/generators/datamapper/model/model_generator.rb",
"lib/generators/datamapper/model/templates/migration.rb",
"lib/generators/datamapper/model/templates/model.rb",
"lib/generators/datamapper/observer/observer_generator.rb",
"lib/generators/datamapper/observer/templates/observer.rb",
"lib/generators/factory_girl.rb",
"lib/generators/factory_girl/model/model_generator.rb",
"lib/generators/factory_girl/model/templates/fixtures.rb",
"lib/generators/haml.rb",
"lib/generators/haml/controller/controller_generator.rb",
"lib/generators/haml/controller/templates/view.html.haml",
"lib/generators/haml/scaffold/scaffold_generator.rb",
"lib/generators/haml/scaffold/templates/_form.haml.erb",
"lib/generators/haml/scaffold/templates/edit.haml.erb",
"lib/generators/haml/scaffold/templates/index.haml.erb",
"lib/generators/haml/scaffold/templates/layout.haml.erb",
"lib/generators/haml/scaffold/templates/new.haml.erb",
"lib/generators/haml/scaffold/templates/show.haml.erb",
"lib/generators/rspec.rb",
"lib/generators/rspec/controller/controller_generator.rb",
"lib/generators/rspec/controller/templates/controller_spec.rb",
"lib/generators/rspec/controller/templates/view_spec.rb",
"lib/generators/rspec/helper/helper_generator.rb",
"lib/generators/rspec/helper/templates/helper_spec.rb",
"lib/generators/rspec/install/install_generator.rb",
"lib/generators/rspec/install/templates/lib/tasks/rspec.rake",
"lib/generators/rspec/install/templates/script/autospec.tt",
"lib/generators/rspec/install/templates/script/spec.tt",
"lib/generators/rspec/install/templates/script/spec_server.tt",
"lib/generators/rspec/install/templates/spec/rcov.opts",
"lib/generators/rspec/install/templates/spec/spec.opts",
"lib/generators/rspec/install/templates/spec/spec_helper.rb",
"lib/generators/rspec/integration/integration_generator.rb",
"lib/generators/rspec/integration/templates/integration_spec.rb",
"lib/generators/rspec/mailer/mailer_generator.rb",
"lib/generators/rspec/mailer/templates/fixture",
"lib/generators/rspec/mailer/templates/mailer_spec.rb",
"lib/generators/rspec/model/model_generator.rb",
"lib/generators/rspec/model/templates/fixtures.yml",
"lib/generators/rspec/model/templates/model_spec.rb",
"lib/generators/rspec/observer/observer_generator.rb",
"lib/generators/rspec/observer/templates/observer_spec.rb",
"lib/generators/rspec/plugin/plugin_generator.rb",
"lib/generators/rspec/plugin/templates/%file_name%_spec.rb.tt",
"lib/generators/rspec/plugin/templates/test_helper.rb",
"lib/generators/rspec/scaffold/scaffold_generator.rb",
"lib/generators/rspec/scaffold/templates/controller_spec.rb",
"lib/generators/rspec/scaffold/templates/edit_spec.rb",
"lib/generators/rspec/scaffold/templates/index_spec.rb",
"lib/generators/rspec/scaffold/templates/new_spec.rb",
"lib/generators/rspec/scaffold/templates/routing_spec.rb",
"lib/generators/rspec/scaffold/templates/show_spec.rb",
"lib/rails3-generators.rb",
"rails3-generators.gemspec",
"spec/rails3-generators_spec.rb",
"spec/spec.opts",
"spec/spec_helper.rb"
]
s.homepage = %q{http://github.com/negonicrac/rails3-generators}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{Rails 3 compatible generators}
s.test_files = [
"spec/rails3-generators_spec.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
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
s.add_development_dependency(%q<cucumber>, [">= 0"])
else
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<cucumber>, [">= 0"])
end
else
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<cucumber>, [">= 0"])
end
end

4 changes: 4 additions & 0 deletions spec/rails3-generators_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Rails3Generators" do
end
1 change: 1 addition & 0 deletions spec/spec.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--color
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$:.unshift File.dirname(__FILE__), File.join(File.dirname(__FILE__), %w[.. lib])

require 'rails3-generators'
require 'spec'
require 'spec/autorun'

Spec::Runner.configure do |config|
end

0 comments on commit f80652f

Please sign in to comment.