grimen-dry_scaffold 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.textile +9 -1
- data/README.textile +12 -2
- data/lib/dry_scaffold/tasks.rb +5 -0
- metadata +3 -2
data/CHANGELOG.textile
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
+
h1. 0.3.4 (2009-09-16)
|
2
|
+
|
3
|
+
* Fixed bug: Make it possible to require rake tasks (In Rakefile: require 'dry_scaffold/tasks')
|
4
|
+
|
5
|
+
h1. 0.3.2/0.3.3 (2009-09-14)
|
6
|
+
|
7
|
+
* Fixed bug: Rspec tests issues
|
8
|
+
|
1
9
|
h1. 0.3.1 (2009-09-09)
|
2
10
|
|
3
|
-
* Added Rspec tests generation
|
11
|
+
* Feature: Added Rspec tests generation
|
4
12
|
|
5
13
|
h1. 0.3.0 (2009-07-23)
|
6
14
|
|
data/README.textile
CHANGED
@@ -201,7 +201,7 @@ Install dependencies to release the full power of dry_scaffold. Only HAML is rea
|
|
201
201
|
|
202
202
|
h4. Automatic/Express
|
203
203
|
|
204
|
-
For us lazy ones... =)
|
204
|
+
For us lazy ones... =) *Note:* Probably won't work without require the rake tasks first in the project @Rakefile@: @require 'dry_scaffold/tasks'@
|
205
205
|
|
206
206
|
<pre>rake dry_scaffold:setup</pre>
|
207
207
|
|
@@ -223,7 +223,7 @@ config.gem 'will_paginate'
|
|
223
223
|
config.gem 'justinfrench-formtastic', :lib => 'formtastic', :source => 'http://gems.github.com'
|
224
224
|
config.gem 'josevalim-inherited_resources', :lib => 'inherited_resources', :source => 'http://gems.github.com'</pre>
|
225
225
|
|
226
|
-
Also configure @config/environments/test.rb@ with the
|
226
|
+
Also configure @config/environments/test.rb@ with the RSpec library if you want to
|
227
227
|
|
228
228
|
<pre>config.gem 'rspec'
|
229
229
|
config.gem 'rspec-rails'</pre>
|
@@ -232,6 +232,16 @@ And don't forget to initialize it as well:
|
|
232
232
|
|
233
233
|
<pre>./script/generate rspec</pre>
|
234
234
|
|
235
|
+
To access Rake tasks in Rails from the gem version of DryScaffold you need to do this:
|
236
|
+
|
237
|
+
In your project @Rakefile@:
|
238
|
+
|
239
|
+
<pre>
|
240
|
+
require 'dry_scaffold/tasks'
|
241
|
+
</pre>
|
242
|
+
|
243
|
+
Don't ask me why me why this is the only way with gems...Ask the Rails core team, because this is not conventions over configuration. Raur...
|
244
|
+
|
235
245
|
h2. Usage
|
236
246
|
|
237
247
|
<pre>./script/generate dry_scaffold ModelName [attribute:type attribute:type] [_actions:new,create,...] [_formats:html,json,...] [_indexes:attribute,...] [--skip-pagination] [--skip-resourceful] [--skip-formtastic] [--skip-views] [--skip-helpers] [--skip-migration] [--skip-timestamps] [--skip-tests] [--layout] [--tunit] [--shoulda] [--rspec] [--fixtures] [--fgirl] [--machinist] [--odaddy]</pre>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grimen-dry_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Grimfelt
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-16 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -96,6 +96,7 @@ files:
|
|
96
96
|
- generators/dry_scaffold/templates/views/haml/show.html.haml
|
97
97
|
- generators/dscaffold/dscaffold_generator.rb
|
98
98
|
- lib/dry_generator.rb
|
99
|
+
- lib/dry_scaffold/tasks.rb
|
99
100
|
- lib/setup_helper.rb
|
100
101
|
- rails/init.rb
|
101
102
|
- tasks/dry_scaffold.rake
|