shoulda_machinist_generator 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +20 -7
- data/VERSION +1 -1
- data/rails_generators/shoulda_machinist_model/templates/unit_test.rb +1 -1
- data/rails_generators/shoulda_machinist_scaffold/templates/erb/index.html.erb +3 -0
- data/rails_generators/shoulda_machinist_scaffold/templates/functional_test/basic.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,17 +1,30 @@
|
|
1
1
|
= shoulda_machinist_generator
|
2
2
|
|
3
|
-
|
3
|
+
We have been loving {shoulda}[http://github.com/thoughtbot/shoulda] and {machinist}[http://github.com/notahat/machinist], so we thought it would be a good idea to be able to generate scaffold code which used our conventions. Looking around, we found the {shoulda_generator}[http://github.com/technicalpickles/] and shamelessly copied it into a new gem, then brutally switched its unfixture usage from Factory Girl to Machinist.
|
4
|
+
|
5
|
+
It's used in basically the same way as shoulda_generator, i.e.:
|
6
|
+
|
7
|
+
script/generate shoulda_machinist_scaffold post # no attributes, view will be anemic
|
8
|
+
script/generate shoulda_machinist_scaffold post title:string body:text published:boolean
|
9
|
+
script/generate shoulda_machinist_scaffold purchase order_id:integer amount:decimal
|
10
|
+
|
11
|
+
In the interest of simplicity, there is no option to use haml (only erb templates are included). It'd be nice to support alternate template types, so if anyone wants to fork the gem we would happily say yes to any pull requests slapping this functionality in.
|
12
|
+
|
13
|
+
== Installation
|
14
|
+
|
15
|
+
gem install shoulda_machinist_generator
|
16
|
+
|
17
|
+
Enjoy!
|
4
18
|
|
5
19
|
== Note on Patches/Pull Requests
|
6
|
-
|
20
|
+
|
7
21
|
* Fork the project.
|
8
22
|
* Make your feature addition or bug fix.
|
9
|
-
* Add tests for it. This is important so I don't break it in a
|
10
|
-
|
11
|
-
* Commit, do not mess with rakefile, version, or history.
|
12
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
23
|
+
* Add tests for it. This is important so I don't break it in a future version unintentionally.
|
24
|
+
* Commit, do not mess with rakefile, version, or history. (If you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
25
|
* Send me a pull request. Bonus points for topic branches.
|
14
26
|
|
15
27
|
== Copyright
|
16
28
|
|
17
|
-
Copyright (c) 2009 Dave Hrycyszyn. See LICENSE for details.
|
29
|
+
Copyright (c) 2009 Dave Hrycyszyn, Dan Garland, Stuart Chinery. See LICENSE for details.
|
30
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoulda_machinist_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Hrycyszyn
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2010-01-07 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|