twilson63-nifty-generators 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('nifty-generators', '0.3.7') do |p|
5
+ Echoe.new('nifty-generators', '0.3.8') do |p|
6
6
  p.project = "forked-niftygenerators"
7
7
  p.description = "A collection of useful generator scripts for Rails."
8
8
  p.url = "http://github.com/twilson63/nifty-generators"
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{nifty-generators}
5
- s.version = "0.3.7"
5
+ s.version = "0.3.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tom Wilson, Ryan Bates"]
9
- s.date = %q{2009-04-26}
9
+ s.date = %q{2009-05-01}
10
10
  s.description = %q{A collection of useful generator scripts for Rails.}
11
11
  s.email = %q{ryan (at) railscasts (dot) com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/nifty_generators.rb", "LICENSE", "README.rdoc", "tasks/deployment.rake", "TODO"]
13
- s.files = ["CHANGELOG", "lib/nifty_generators.rb", "LICENSE", "Manifest", "nifty-generators.gemspec", "rails_generators/nifty_authentication/lib/insert_commands.rb", "rails_generators/nifty_authentication/nifty_authentication_generator.rb", "rails_generators/nifty_authentication/templates/authentication.rb", "rails_generators/nifty_authentication/templates/fixtures.yml", "rails_generators/nifty_authentication/templates/migration.rb", "rails_generators/nifty_authentication/templates/sessions_controller.rb", "rails_generators/nifty_authentication/templates/sessions_helper.rb", "rails_generators/nifty_authentication/templates/tests/rspec/sessions_controller.rb", "rails_generators/nifty_authentication/templates/tests/rspec/user.rb", "rails_generators/nifty_authentication/templates/tests/rspec/users_controller.rb", "rails_generators/nifty_authentication/templates/tests/shoulda/sessions_controller.rb", "rails_generators/nifty_authentication/templates/tests/shoulda/user.rb", "rails_generators/nifty_authentication/templates/tests/shoulda/users_controller.rb", "rails_generators/nifty_authentication/templates/tests/testunit/sessions_controller.rb", "rails_generators/nifty_authentication/templates/tests/testunit/user.rb", "rails_generators/nifty_authentication/templates/tests/testunit/users_controller.rb", "rails_generators/nifty_authentication/templates/user.rb", "rails_generators/nifty_authentication/templates/users_controller.rb", "rails_generators/nifty_authentication/templates/users_helper.rb", "rails_generators/nifty_authentication/templates/views/erb/login.html.erb", "rails_generators/nifty_authentication/templates/views/erb/signup.html.erb", "rails_generators/nifty_authentication/templates/views/haml/login.html.haml", "rails_generators/nifty_authentication/templates/views/haml/signup.html.haml", "rails_generators/nifty_authentication/USAGE", "rails_generators/nifty_config/nifty_config_generator.rb", "rails_generators/nifty_config/templates/config.yml", "rails_generators/nifty_config/templates/load_config.rb", "rails_generators/nifty_config/USAGE", "rails_generators/nifty_layout/nifty_layout_generator.rb", "rails_generators/nifty_layout/templates/_footer.html.haml", "rails_generators/nifty_layout/templates/_header.html.haml", "rails_generators/nifty_layout/templates/_javascripts.html.haml", "rails_generators/nifty_layout/templates/_navigation.html.haml", "rails_generators/nifty_layout/templates/_stylesheets.html.haml", "rails_generators/nifty_layout/templates/helper.rb", "rails_generators/nifty_layout/templates/javascript.js", "rails_generators/nifty_layout/templates/layout.html.erb", "rails_generators/nifty_layout/templates/layout.html.haml", "rails_generators/nifty_layout/templates/stylesheet.css", "rails_generators/nifty_layout/templates/stylesheet.sass", "rails_generators/nifty_layout/USAGE", "rails_generators/nifty_nested_scaffold/nifty_nested_scaffold_generator.rb", "rails_generators/nifty_nested_scaffold/templates/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/controller.rb", "rails_generators/nifty_nested_scaffold/templates/fixtures.yml", "rails_generators/nifty_nested_scaffold/templates/helper.rb", "rails_generators/nifty_nested_scaffold/templates/migration.rb", "rails_generators/nifty_nested_scaffold/templates/model.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/controller.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/model.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/controller.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/model.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/controller.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/model.rb", "rails_generators/nifty_nested_scaffold/templates/views/erb/_form.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/edit.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/index.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/new.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/show.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/haml/_error.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/_form.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/_item.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/_items.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/create.rjs", "rails_generators/nifty_nested_scaffold/templates/views/haml/dialog.rjs", "rails_generators/nifty_nested_scaffold/templates/views/haml/edit.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/error.rjs", "rails_generators/nifty_nested_scaffold/templates/views/haml/index.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/new.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/show.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/update.rjs", "rails_generators/nifty_nested_scaffold/USAGE", "rails_generators/nifty_scaffold/nifty_scaffold_generator.rb", "rails_generators/nifty_scaffold/templates/actions/create.rb", "rails_generators/nifty_scaffold/templates/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/actions/edit.rb", "rails_generators/nifty_scaffold/templates/actions/index.rb", "rails_generators/nifty_scaffold/templates/actions/new.rb", "rails_generators/nifty_scaffold/templates/actions/show.rb", "rails_generators/nifty_scaffold/templates/actions/update.rb", "rails_generators/nifty_scaffold/templates/controller.rb", "rails_generators/nifty_scaffold/templates/fixtures.yml", "rails_generators/nifty_scaffold/templates/helper.rb", "rails_generators/nifty_scaffold/templates/migration.rb", "rails_generators/nifty_scaffold/templates/model.rb", "rails_generators/nifty_scaffold/templates/tests/cucumber/factories.rb", "rails_generators/nifty_scaffold/templates/tests/cucumber/manage_item.feature", "rails_generators/nifty_scaffold/templates/tests/cucumber/step_definitions/items_steps.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/create.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/edit.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/index.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/new.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/show.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/update.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/controller.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/model.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/create.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/edit.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/index.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/new.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/show.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/update.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/controller.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/model.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/create.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/edit.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/index.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/new.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/show.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/update.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/controller.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/model.rb", "rails_generators/nifty_scaffold/templates/views/erb/_form.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/edit.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/index.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/new.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/show.html.erb", "rails_generators/nifty_scaffold/templates/views/haml/_error.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/_form.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/_item.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/_items.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/create.rjs", "rails_generators/nifty_scaffold/templates/views/haml/dialog.rjs", "rails_generators/nifty_scaffold/templates/views/haml/edit.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/error.rjs", "rails_generators/nifty_scaffold/templates/views/haml/index.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/new.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/show.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/update.rjs", "rails_generators/nifty_scaffold/USAGE", "Rakefile", "README.rdoc", "tasks/deployment.rake", "test/test_helper.rb", "test/test_nifty_authentication_generator.rb", "test/test_nifty_config_generator.rb", "test/test_nifty_layout_generator.rb", "test/test_nifty_scaffold_generator.rb", "TODO"]
13
+ s.files = ["CHANGELOG", "lib/nifty_generators.rb", "LICENSE", "Manifest", "nifty-generators.gemspec", "rails_generators/nifty_authentication/lib/insert_commands.rb", "rails_generators/nifty_authentication/nifty_authentication_generator.rb", "rails_generators/nifty_authentication/templates/authentication.rb", "rails_generators/nifty_authentication/templates/fixtures.yml", "rails_generators/nifty_authentication/templates/migration.rb", "rails_generators/nifty_authentication/templates/sessions_controller.rb", "rails_generators/nifty_authentication/templates/sessions_helper.rb", "rails_generators/nifty_authentication/templates/tests/rspec/sessions_controller.rb", "rails_generators/nifty_authentication/templates/tests/rspec/user.rb", "rails_generators/nifty_authentication/templates/tests/rspec/users_controller.rb", "rails_generators/nifty_authentication/templates/tests/shoulda/sessions_controller.rb", "rails_generators/nifty_authentication/templates/tests/shoulda/user.rb", "rails_generators/nifty_authentication/templates/tests/shoulda/users_controller.rb", "rails_generators/nifty_authentication/templates/tests/testunit/sessions_controller.rb", "rails_generators/nifty_authentication/templates/tests/testunit/user.rb", "rails_generators/nifty_authentication/templates/tests/testunit/users_controller.rb", "rails_generators/nifty_authentication/templates/user.rb", "rails_generators/nifty_authentication/templates/users_controller.rb", "rails_generators/nifty_authentication/templates/users_helper.rb", "rails_generators/nifty_authentication/templates/views/erb/login.html.erb", "rails_generators/nifty_authentication/templates/views/erb/signup.html.erb", "rails_generators/nifty_authentication/templates/views/haml/login.html.haml", "rails_generators/nifty_authentication/templates/views/haml/signup.html.haml", "rails_generators/nifty_authentication/USAGE", "rails_generators/nifty_config/nifty_config_generator.rb", "rails_generators/nifty_config/templates/config.yml", "rails_generators/nifty_config/templates/load_config.rb", "rails_generators/nifty_config/USAGE", "rails_generators/nifty_layout/nifty_layout_generator.rb", "rails_generators/nifty_layout/templates/_footer.html.haml", "rails_generators/nifty_layout/templates/_header.html.haml", "rails_generators/nifty_layout/templates/_javascripts.html.haml", "rails_generators/nifty_layout/templates/_navigation.html.haml", "rails_generators/nifty_layout/templates/_stylesheets.html.haml", "rails_generators/nifty_layout/templates/helper.rb", "rails_generators/nifty_layout/templates/javascript.js", "rails_generators/nifty_layout/templates/layout.html.erb", "rails_generators/nifty_layout/templates/layout.html.haml", "rails_generators/nifty_layout/templates/stylesheet.css", "rails_generators/nifty_layout/templates/stylesheet.sass", "rails_generators/nifty_layout/USAGE", "rails_generators/nifty_metal/nifty_metal_generator.rb", "rails_generators/nifty_metal/templates/metal.rb", "rails_generators/nifty_nested_scaffold/nifty_nested_scaffold_generator.rb", "rails_generators/nifty_nested_scaffold/templates/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/controller.rb", "rails_generators/nifty_nested_scaffold/templates/fixtures.yml", "rails_generators/nifty_nested_scaffold/templates/helper.rb", "rails_generators/nifty_nested_scaffold/templates/migration.rb", "rails_generators/nifty_nested_scaffold/templates/model.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/controller.rb", "rails_generators/nifty_nested_scaffold/templates/tests/rspec/model.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/controller.rb", "rails_generators/nifty_nested_scaffold/templates/tests/shoulda/model.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/create.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/destroy.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/edit.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/index.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/new.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/show.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/actions/update.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/controller.rb", "rails_generators/nifty_nested_scaffold/templates/tests/testunit/model.rb", "rails_generators/nifty_nested_scaffold/templates/views/erb/_form.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/edit.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/index.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/new.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/erb/show.html.erb", "rails_generators/nifty_nested_scaffold/templates/views/haml/_error.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/_form.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/_item.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/_items.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/create.rjs", "rails_generators/nifty_nested_scaffold/templates/views/haml/dialog.rjs", "rails_generators/nifty_nested_scaffold/templates/views/haml/edit.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/error.rjs", "rails_generators/nifty_nested_scaffold/templates/views/haml/index.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/new.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/show.html.haml", "rails_generators/nifty_nested_scaffold/templates/views/haml/update.rjs", "rails_generators/nifty_nested_scaffold/USAGE", "rails_generators/nifty_scaffold/nifty_scaffold_generator.rb", "rails_generators/nifty_scaffold/templates/actions/create.rb", "rails_generators/nifty_scaffold/templates/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/actions/edit.rb", "rails_generators/nifty_scaffold/templates/actions/index.rb", "rails_generators/nifty_scaffold/templates/actions/new.rb", "rails_generators/nifty_scaffold/templates/actions/show.rb", "rails_generators/nifty_scaffold/templates/actions/update.rb", "rails_generators/nifty_scaffold/templates/controller.rb", "rails_generators/nifty_scaffold/templates/fixtures.yml", "rails_generators/nifty_scaffold/templates/helper.rb", "rails_generators/nifty_scaffold/templates/migration.rb", "rails_generators/nifty_scaffold/templates/model.rb", "rails_generators/nifty_scaffold/templates/tests/cucumber/factories.rb", "rails_generators/nifty_scaffold/templates/tests/cucumber/manage_item.feature", "rails_generators/nifty_scaffold/templates/tests/cucumber/step_definitions/items_steps.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/create.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/edit.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/index.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/new.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/show.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/actions/update.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/controller.rb", "rails_generators/nifty_scaffold/templates/tests/rspec/model.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/create.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/edit.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/index.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/new.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/show.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/actions/update.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/controller.rb", "rails_generators/nifty_scaffold/templates/tests/shoulda/model.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/create.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/edit.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/index.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/new.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/show.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/actions/update.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/controller.rb", "rails_generators/nifty_scaffold/templates/tests/testunit/model.rb", "rails_generators/nifty_scaffold/templates/views/erb/_form.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/edit.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/index.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/new.html.erb", "rails_generators/nifty_scaffold/templates/views/erb/show.html.erb", "rails_generators/nifty_scaffold/templates/views/haml/_error.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/_form.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/_item.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/_items.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/create.rjs", "rails_generators/nifty_scaffold/templates/views/haml/dialog.rjs", "rails_generators/nifty_scaffold/templates/views/haml/edit.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/error.rjs", "rails_generators/nifty_scaffold/templates/views/haml/index.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/new.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/show.html.haml", "rails_generators/nifty_scaffold/templates/views/haml/update.rjs", "rails_generators/nifty_scaffold/USAGE", "Rakefile", "README.rdoc", "tasks/deployment.rake", "test/test_helper.rb", "test/test_nifty_authentication_generator.rb", "test/test_nifty_config_generator.rb", "test/test_nifty_layout_generator.rb", "test/test_nifty_scaffold_generator.rb", "TODO"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://github.com/twilson63/nifty-generators}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Nifty-generators", "--main", "README.rdoc"]
@@ -12,7 +12,7 @@
12
12
  = yield(:head)
13
13
 
14
14
  %body
15
- #container.clearfix
15
+ #container.clearfix.ui-corner-all
16
16
  - flash.each do |name, msg|
17
17
  = content_tag :div, msg, :id => "flash_#{name}"
18
18
 
@@ -0,0 +1,15 @@
1
+ class NiftyMetalGenerator < Rails::Generator::Base
2
+ def initialize(runtime_args, runtime_options = {})
3
+ super
4
+ #@model_name = @args.first || 'app'
5
+ end
6
+
7
+ def manifest
8
+ record do |m|
9
+ m.directory 'app/metal'
10
+
11
+ m.template "metal.rb", "app/metal/api.rb"
12
+ end
13
+ end
14
+
15
+ end
@@ -0,0 +1,117 @@
1
+ require 'sinatra'
2
+ require 'xmlrpc/marshal'
3
+ require 'aws/s3'
4
+
5
+
6
+ Sinatra::Application.set(:run => false, :environment => :production)
7
+ Api = Sinatra::Application unless defined? Api
8
+
9
+ before do
10
+ response['Content-Type'] = 'text/xml'
11
+ end
12
+
13
+ post '/xmlrpc' do
14
+ #puts request.body
15
+ xml = request.body.string
16
+
17
+ call = XMLRPC::Marshal.load_call(xml)
18
+
19
+
20
+ # method = call[0].gsub(/blogger\.(.*)/, '\1').gsub(/([A-Z])/, '_\1').downcase
21
+ # convert metaWeblog.getPost to get_post
22
+ method = call[0].gsub(/metaWeblog\.(.*)/, '\1').gsub(/([A-Z])/, '_\1').downcase
23
+
24
+ if method == "blogger.get_users_blogs"
25
+ method = "get_users_blogs"
26
+ end
27
+
28
+ if method == "blogger.get_user_info"
29
+ method = "get_user_info"
30
+ end
31
+
32
+
33
+ puts method
34
+
35
+ response['Content-Type'] = 'text/xml'
36
+ send(method, call)
37
+ end
38
+
39
+
40
+ def get_post(xmlrpc_call)
41
+ if authorized?(xmlrpc_call[1])
42
+ begin
43
+ page = Page.find(xmlrpc_call[1][0])
44
+ rescue ActiveRecord::RecordNotFound
45
+ page = Page.find(xmlrpc_call[1][0].gsub(/^.*pages\/(\d+)[^\d].*$/, '\1'))
46
+ end
47
+ XMLRPC::Marshal.dump_response(post.to_metaweblog)
48
+ end
49
+ end
50
+
51
+ def get_recent_posts(xmlrpc_call)
52
+ if authorized?(xmlrpc_call[1])
53
+ pages = Page.find(:all, :limit => 10, :order => "created_at DESC")
54
+ XMLRPC::Marshal.dump_response(posts.map{|p| p.to_metaweblog})
55
+ end
56
+ end
57
+
58
+ def new_post(xmlrpc_call)
59
+ if authorized?(xmlrpc_call[1])
60
+ data = xmlrpc_call[1]
61
+ # blog_id = data[0]; user = data[1]; pass = data[2]
62
+ post_data = data[3]
63
+ page = Page.create(:name => post_data["title"], :body => post_data["description"])
64
+ XMLRPC::Marshal.dump_response(page.to_metaweblog)
65
+ end
66
+ end
67
+
68
+ def edit_post(xmlrpc_call)
69
+ if authorized?(xmlrpc_call[1])
70
+ data = xmlrpc_call[1]
71
+ page = Page.find(data[0])
72
+ # user = data[1]; pass = data[2]
73
+ post_data = data[3]
74
+ page.update_attributes!(:name => post_data["title"], :body => post_data["description"])
75
+ XMLRPC::Marshal.dump_response(post.to_metaweblog)
76
+ end
77
+ end
78
+
79
+ def get_categories(xmlrpc_call)
80
+ if authorized?(xmlrpc_call[1])
81
+ tags = Tag.find(:all)
82
+ XMLRPC::Marshal.dump_response(tags.map{ |t| {:categoryId => t.id, :parentId => 0, :description => t.name, :categoryName => t.name, :htmlUrl => "http://" + APP_CONFIG['domain'] + "/pages?tag=#{t.name}", :rssUrl => "http://" + APP_CONFIG['domain'] + "/pages.rss?tag=#{t.name}" } } )
83
+ end
84
+ end
85
+
86
+ def new_media_object(xmlrpc_call)
87
+ if authorized?(xmlrpc_call[1])
88
+ post_data = xmlrpc_call[1][3]
89
+ name = post_data["name"].gsub(/\//,'')
90
+ access_keys = YAML.load_file("#{RAILS_ROOT}/config/s3.yml")[ENV["RAILS_ENV"]]
91
+ AWS::S3::Base.establish_connection! :access_key_id => access_keys['access_key_id'], :secret_access_key => access_keys['secret_access_key']
92
+
93
+ AWS::S3::S3Object.store(name, post_data["bits"], APP_CONFIG['name'], :access => :public_read)
94
+ XMLRPC::Marshal.dump_response({
95
+ :file => name,
96
+ :url => "http://s3.amazonaws.com/#{APP_CONFIG['name']}/#{name}"
97
+ })
98
+ end
99
+ end
100
+
101
+ def get_users_blogs(xmlrpc_call)
102
+ if authorized?(xmlrpc_call[1])
103
+ XMLRPC::Marshal.dump_response([{ :url => "http://" + APP_CONFIG['domain'], :blogid => "1", :blogName => APP_CONFIG['name'] }])
104
+ end
105
+ end
106
+
107
+ def get_user_info(xmlrpc_call)
108
+ if user = authorized?(xmlrpc_call[1])
109
+ XMLRPC::Marshal.dump_response([{ :userid => user.id, :url => "http://" + APP_CONFIG['domain'], :lastname => user.login, :firstname => "", :email => user.email }])
110
+ end
111
+ end
112
+
113
+ protected
114
+
115
+ def authorized?(data)
116
+ User.authenticate(data[1], data[2])
117
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilson63-nifty-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wilson, Ryan Bates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-26 00:00:00 -07:00
12
+ date: 2009-05-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -73,6 +73,8 @@ files:
73
73
  - rails_generators/nifty_layout/templates/stylesheet.css
74
74
  - rails_generators/nifty_layout/templates/stylesheet.sass
75
75
  - rails_generators/nifty_layout/USAGE
76
+ - rails_generators/nifty_metal/nifty_metal_generator.rb
77
+ - rails_generators/nifty_metal/templates/metal.rb
76
78
  - rails_generators/nifty_nested_scaffold/nifty_nested_scaffold_generator.rb
77
79
  - rails_generators/nifty_nested_scaffold/templates/actions/create.rb
78
80
  - rails_generators/nifty_nested_scaffold/templates/actions/destroy.rb