very_nifty_generators 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -8,10 +8,16 @@ The gem comes with executables that can be found in the /bin folder
8
8
  nifty_auth
9
9
  nifty_config
10
10
  nifty_layout
11
+
12
+ Scaffold:
11
13
  nifty_scaffold [model:string] [attributes:hash]
12
14
 
13
- Example
14
- $ nifty_scaffold Person name:string birthdate:date
15
+ $ nifty_scaffold Person name:string birthdate:date
16
+
17
+ Application:
18
+ nifty_app [application name]
19
+
20
+ $ nifty_app my_best_app
15
21
 
16
22
  The executables are installed when the gem is installed on your system
17
23
  $ sudo gem install very_nifty_generators
data/README.rdoc CHANGED
@@ -7,14 +7,27 @@ http://ryandaigle.com/articles/2009/8/10/what-s-new-in-edge-rails-default-restfu
7
7
  http://ryandaigle.com/articles/2009/8/6/what-s-new-in-edge-rails-cleaner-restful-controllers-w-respond_with
8
8
 
9
9
  The gem comes with executables that can be found in the /bin folder
10
- nifty_auth
11
- nifty_config
12
- nifty_layout
13
- nifty_scaffold [model:string] [attributes:hash]
10
+ * nifty_auth
11
+ * nifty_config
12
+ * nifty_layout
13
+
14
+ == Scaffold
15
+
16
+ nifty_scaffold [model:string] [attributes:hash]
14
17
 
15
- Example
16
18
  $ nifty_scaffold Person name:string birthdate:date
17
19
 
20
+ == Application
21
+
22
+ nifty_app [application name]
23
+
24
+ $ nifty_app my_best_app
25
+
26
+ Note:
27
+ The nifty_app is a bare-bones rails 3 app, without any prototype files, index file etc. This bare bones file is intended as a building-block for use with
28
+ Rails application templates to add custom application logic, such as the use of prototype/jquery, testing frameworks, authentication etc.
29
+ This bare-bones approach is meant to avoid having to first delete specific files from the default rails app created by the built-in rails app generator.
30
+
18
31
  The executables are installed when the gem is installed on your system
19
32
  $ sudo gem install very_nifty_generators
20
33
 
data/bin/nifty_controller CHANGED
@@ -22,6 +22,7 @@ end
22
22
 
23
23
  ARGV << "--help" if ARGV.empty?
24
24
 
25
+ require 'rails'
25
26
  require 'rails/generators'
26
27
  require 'generators/nifty/controller/controller_generator'
27
28
 
@@ -147,6 +147,7 @@ module Nifty
147
147
  end
148
148
 
149
149
  def apply_rails_template
150
+ puts rails_template.inspect
150
151
  apply rails_template if rails_template
151
152
  rescue Thor::Error, LoadError, Errno::ENOENT => e
152
153
  raise Error, "The template [#{rails_template}] could not be loaded. Error: #{e}"
@@ -17,12 +17,13 @@ gem "rails", "<%= Rails::VERSION::STRING %>"
17
17
  # mongo db
18
18
  gem "mongo", "~> 0.18.2"
19
19
  gem "mongo_ext", "~> 0.18.2"
20
- # gem "mongo_mapper", "~> 0.6.10 "
21
- # gem "mongoid"
22
20
 
23
21
  ## Bundle gems used only in certain environments:
24
22
  only :test do
25
23
  gem "rspec"
26
24
  gem "webrat"
27
25
  gem "cucumber"
26
+ gem "cucumber-rails"
27
+ gem "pickle"
28
+ gem "autotest-rails"
28
29
  end
@@ -1,2 +1,11 @@
1
+ .DS_Store
2
+ .rake_tasks~
3
+ config/database.yml
4
+ doc/api
1
5
  log/*.log
2
6
  tmp/**/*
7
+ db/*.sqlite3
8
+ bin/*
9
+ vendor/gems/*
10
+ !vendor/gems/cache/
11
+
@@ -1 +1 @@
1
- See if we can use the same actions pattern used in the scaffold generator ;)
1
+ What to do...?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: very_nifty_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Mandrup, dvyjones
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-29 00:00:00 +01:00
12
+ date: 2010-01-30 00:00:00 +01:00
13
13
  default_executable: nifty_scaffold
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency