Skip to content

Commit 2acfede

Browse files
committed
added some gems and plugins: factory_girl, annotate_models, exception_notification, shoulda
1 parent fcc4606 commit 2acfede

File tree

307 files changed

+12914
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+12914
-0
lines changed

test/factories.rb

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require 'factory_girl'
2+
3+
# Factory.define :destination do |c|
4+
# c.name 'Germany'
5+
# end

test/test_helper.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ENV["RAILS_ENV"] = "test"
22
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
33
require 'test_help'
4+
require File.expand_path(File.dirname(__FILE__) + "/factories")
45

56
class Test::Unit::TestCase
67
# Transactional fixtures accelerate your tests by wrapping each test method
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
8
2+
3+
dir
4+
145
5+
https://svn.mindmatters.de/travelx/platform/trunk/travelx-platform/vendor/plugins/annotate_models
6+
https://svn.mindmatters.de/travelx
7+
8+
9+
10+
2008-09-02T13:28:33.164413Z
11+
13
12+
sven.klever
13+
14+
15+
svn:special svn:externals svn:needs-lock
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
53b558f6-e855-0410-90d1-a6cd0c9ed16b
28+
29+
tasks
30+
dir
31+
32+
lib
33+
dir
34+
35+
ChangeLog
36+
file
37+
38+
39+
40+
41+
2008-09-08T08:10:55.000000Z
42+
17183cfff8bf3daef5caaac2dba7e66b
43+
2008-09-02T13:28:33.164413Z
44+
13
45+
sven.klever
46+
47+
README
48+
file
49+
50+
51+
52+
53+
2008-09-08T08:10:55.000000Z
54+
1584d33a28eca3bccb7ae644600aaef0
55+
2008-09-02T13:28:33.164413Z
56+
13
57+
sven.klever
58+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2008-08-24 Dave Thomas <[email protected]>
2+
* annotate_models.rb (AnnotateModels::self.annotate): Patch from
3+
Robert Evans (and almost identical patch from Akhil
4+
Bansai) to add support for annotating rspec files and
5+
fixtures
6+
7+
* annotate_models.rb (AnnotateModels::self.get_schema_info): Patch
8+
from Denis Barushev to removing trailing whitespace from
9+
the output.
10+
11+
* annotate_models.rb (AnnotateModels::self.annotate): Patch from
12+
Zach Moazeni to support fixtures in subdirectories
13+
14+
2007-03-05: Dave Thomas <[email protected]>
15+
* Forgot to call the quote method
16+
17+
2007-03-02: Dave Thomas <[email protected]>
18+
* Allow non-printing characters in column defaults (suggested by Ben Booth)
19+
20+
2007-02-28: Dave Thomas <[email protected]>
21+
* Report errors loading model classes better. Change suggested by Niels Knacke
22+
23+
2007-02-22: Dave Thomas <[email protected]>
24+
* Ignore models with no underlying database table (based on patch from Jamie van Dyke)
25+
* Handle case where database has no session_info table (patch by David Vrensk)
26+
27+
28+
2006-07-13: Dave Thomas <[email protected]>
29+
* Support :scale for decimal columns
30+
31+
2006-07-13: Wes Gamble
32+
* Don't annotate abstract models
33+
34+
2006-06-13: Dave Thomas <[email protected]>
35+
* Fix bug where we corrupted the PREFIX string and therefore duplicated
36+
the header
37+
* No longer include the datetime, so we don't trigger a commit
38+
back into repos
39+
40+
-- NOTE -- just this once, you'll get a duplicate header after you run
41+
a_m on an already-annotated model. Sorry.... Dave
42+
43+
44+
45+
2006-06-11 Dave Thomas <[email protected]>
46+
* lib/annotate_models.rb: At Kian Wright's suggestion, document the table
47+
name and primary key. Also make the timestamp prettier
48+
49+
2006-04-17 Dave Thomas <[email protected]>
50+
51+
* lib/annnotate_models.rb: Include Bruce William's patch to allow
52+
models in subdirectories
53+
54+
2006-03-11 Dave Thomas <[email protected]>
55+
56+
* lib/annotate_models.rb: Use camelize, not classify, to construct
57+
class names (Grant Hollingworth)
58+
59+
3/3/06 Now annotates fixture files too (thanks to Josha Susser)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
AnnotateSchema
2+
==============
3+
4+
Add a comment summarizing the current schema to the top
5+
of each ActiveRecord model source file:
6+
7+
# Schema as of Sun Feb 26 21:58:32 CST 2006 (schema version 7)
8+
#
9+
# id :integer(11) not null
10+
# quantity :integer(11)
11+
# product_id :integer(11)
12+
# unit_price :float
13+
# order_id :integer(11)
14+
#
15+
16+
class LineItem < ActiveRecord::Base belongs_to :product
17+
18+
. . .
19+
20+
Note that this code will blow away the initial comment block in your models if it looks ike it was
21+
previously added by annotate models, so you don't want to add additional text to an automatically
22+
created comment block.
23+
24+
Author:
25+
Dave Thomas
26+
Pragmatic Programmers, LLC
27+
28+
Released under the same license as Ruby. No Support. No Warranty.
29+
30+
Back up your model files before using...
31+
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2008-08-24 Dave Thomas <[email protected]>
2+
* annotate_models.rb (AnnotateModels::self.annotate): Patch from
3+
Robert Evans (and almost identical patch from Akhil
4+
Bansai) to add support for annotating rspec files and
5+
fixtures
6+
7+
* annotate_models.rb (AnnotateModels::self.get_schema_info): Patch
8+
from Denis Barushev to removing trailing whitespace from
9+
the output.
10+
11+
* annotate_models.rb (AnnotateModels::self.annotate): Patch from
12+
Zach Moazeni to support fixtures in subdirectories
13+
14+
2007-03-05: Dave Thomas <[email protected]>
15+
* Forgot to call the quote method
16+
17+
2007-03-02: Dave Thomas <[email protected]>
18+
* Allow non-printing characters in column defaults (suggested by Ben Booth)
19+
20+
2007-02-28: Dave Thomas <[email protected]>
21+
* Report errors loading model classes better. Change suggested by Niels Knacke
22+
23+
2007-02-22: Dave Thomas <[email protected]>
24+
* Ignore models with no underlying database table (based on patch from Jamie van Dyke)
25+
* Handle case where database has no session_info table (patch by David Vrensk)
26+
27+
28+
2006-07-13: Dave Thomas <[email protected]>
29+
* Support :scale for decimal columns
30+
31+
2006-07-13: Wes Gamble
32+
* Don't annotate abstract models
33+
34+
2006-06-13: Dave Thomas <[email protected]>
35+
* Fix bug where we corrupted the PREFIX string and therefore duplicated
36+
the header
37+
* No longer include the datetime, so we don't trigger a commit
38+
back into repos
39+
40+
-- NOTE -- just this once, you'll get a duplicate header after you run
41+
a_m on an already-annotated model. Sorry.... Dave
42+
43+
44+
45+
2006-06-11 Dave Thomas <[email protected]>
46+
* lib/annotate_models.rb: At Kian Wright's suggestion, document the table
47+
name and primary key. Also make the timestamp prettier
48+
49+
2006-04-17 Dave Thomas <[email protected]>
50+
51+
* lib/annnotate_models.rb: Include Bruce William's patch to allow
52+
models in subdirectories
53+
54+
2006-03-11 Dave Thomas <[email protected]>
55+
56+
* lib/annotate_models.rb: Use camelize, not classify, to construct
57+
class names (Grant Hollingworth)
58+
59+
3/3/06 Now annotates fixture files too (thanks to Josha Susser)

vendor/plugins/annotate_models/README

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
AnnotateSchema
2+
==============
3+
4+
Add a comment summarizing the current schema to the top
5+
of each ActiveRecord model source file:
6+
7+
# Schema as of Sun Feb 26 21:58:32 CST 2006 (schema version 7)
8+
#
9+
# id :integer(11) not null
10+
# quantity :integer(11)
11+
# product_id :integer(11)
12+
# unit_price :float
13+
# order_id :integer(11)
14+
#
15+
16+
class LineItem < ActiveRecord::Base belongs_to :product
17+
18+
. . .
19+
20+
Note that this code will blow away the initial comment block in your models if it looks ike it was
21+
previously added by annotate models, so you don't want to add additional text to an automatically
22+
created comment block.
23+
24+
Author:
25+
Dave Thomas
26+
Pragmatic Programmers, LLC
27+
28+
Released under the same license as Ruby. No Support. No Warranty.
29+
30+
Back up your model files before using...
31+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
8
2+
3+
dir
4+
145
5+
https://svn.mindmatters.de/travelx/platform/trunk/travelx-platform/vendor/plugins/annotate_models/lib
6+
https://svn.mindmatters.de/travelx
7+
8+
9+
10+
2008-09-02T13:28:33.164413Z
11+
13
12+
sven.klever
13+
14+
15+
svn:special svn:externals svn:needs-lock
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
53b558f6-e855-0410-90d1-a6cd0c9ed16b
28+
29+
annotate_models.rb
30+
file
31+
32+
33+
34+
35+
2008-09-08T08:10:55.000000Z
36+
848f6aa7247c951f0953f8857aed174a
37+
2008-09-02T13:28:33.164413Z
38+
13
39+
sven.klever
40+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8

0 commit comments

Comments
 (0)