rubaidh-generators 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +15 -0
- data/README.rdoc +36 -0
- data/Rakefile +3 -15
- data/generators.gemspec +4 -2
- data/templates/rubaidh.rb +9 -0
- metadata +4 -2
data/CHANGELOG
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
= Change Log
|
2
|
+
|
3
|
+
== Version 1.0.2
|
4
|
+
|
5
|
+
* Enhance (ie write) documentation.
|
6
|
+
|
7
|
+
== Version 1.0.1
|
8
|
+
|
9
|
+
* Modify the model generator to generate an object_daddy examplar too.
|
10
|
+
|
11
|
+
* Fix a regression that was causing generated routing spec failure.
|
12
|
+
|
13
|
+
== Version 1.0.0
|
14
|
+
|
15
|
+
* Initial release.
|
data/README.rdoc
CHANGED
@@ -5,4 +5,40 @@ complete scaffolds. RSpec ships with its own take on these generators. We ship
|
|
5
5
|
with yet another slightly different take on the generators, suited to
|
6
6
|
Rubaidh's tastes.
|
7
7
|
|
8
|
+
== Application Generator
|
9
|
+
|
10
|
+
The gem ships with a program called +rubaidh_rails+ which generates a Rails
|
11
|
+
application and applies the Rubaidh template to it. In short, this will:
|
12
|
+
|
13
|
+
* initialize a local Git repository, ignoring the appropriate things and
|
14
|
+
saving the log directory but not its contents;
|
15
|
+
|
16
|
+
* install RSpec, RSpec's Rails support, Cucumber, Remarkable and object_daddy
|
17
|
+
for testing support;
|
18
|
+
|
19
|
+
* install and enable hoptoad for watching errors in production; and
|
20
|
+
|
21
|
+
* create and migrate all the appropriate databases.
|
22
|
+
|
23
|
+
So, for every new application, it'll save us a good hour of boring fiddling.
|
24
|
+
:-)
|
25
|
+
|
26
|
+
== Component Generators
|
27
|
+
|
28
|
+
We currently ship with 4 generators:
|
29
|
+
|
30
|
+
* rubaidh_model which generates a model, specification and exemplar.
|
31
|
+
|
32
|
+
* rubaidh_controller which generates a controller and specification.
|
33
|
+
|
34
|
+
* rubaidh_helper which generates a helper and its specification.
|
35
|
+
|
36
|
+
* rubaidh_scaffold which generates the full shebang for a CRUD-operated
|
37
|
+
RESTful resource.
|
38
|
+
|
39
|
+
Where possible generators are built in terms of other generators (so the
|
40
|
+
scaffold calls on rubaidh_model to generate the model).
|
41
|
+
|
42
|
+
== License
|
43
|
+
|
8
44
|
Copyright (c) 2009 Rubaidh Ltd, released under the MIT license.
|
data/Rakefile
CHANGED
@@ -1,26 +1,14 @@
|
|
1
1
|
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
2
|
require 'rake/rdoctask'
|
4
3
|
require 'rake/gempackagetask'
|
5
4
|
|
6
|
-
desc 'Default: run unit tests.'
|
7
|
-
task :default => :test
|
8
|
-
|
9
|
-
desc 'Test the generators plugin.'
|
10
|
-
Rake::TestTask.new(:test) do |t|
|
11
|
-
t.libs << 'lib'
|
12
|
-
t.libs << 'test'
|
13
|
-
t.pattern = 'test/**/*_test.rb'
|
14
|
-
t.verbose = true
|
15
|
-
end
|
16
|
-
|
17
|
-
desc 'Generate documentation for the generators plugin.'
|
18
5
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
19
6
|
rdoc.rdoc_dir = 'rdoc'
|
20
|
-
rdoc.title = 'Generators'
|
7
|
+
rdoc.title = 'Rubaidh Generators'
|
21
8
|
rdoc.options << '--line-numbers' << '--inline-source'
|
22
9
|
rdoc.rdoc_files.include('README.rdoc')
|
23
|
-
rdoc.rdoc_files.include('
|
10
|
+
rdoc.rdoc_files.include('CHANGELOG')
|
11
|
+
rdoc.rdoc_files.include('MIT-LICENSE')
|
24
12
|
end
|
25
13
|
|
26
14
|
Rake::GemPackageTask.new(eval(File.read('generators.gemspec'))) do |p|
|
data/generators.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'generators'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.2'
|
4
4
|
s.date = '2009-02-13'
|
5
5
|
s.authors = ['Graeme Mathieson', 'Rubaidh Ltd']
|
6
6
|
s.email = 'support@rubaidh.com'
|
@@ -11,7 +11,7 @@ spec = Gem::Specification.new do |s|
|
|
11
11
|
s.description = 'Generators for building Ruby on Rails projects the Rubaidh Way'
|
12
12
|
|
13
13
|
s.files = %w(
|
14
|
-
.gitignore MIT-LICENSE Rakefile README.rdoc TODO generators.gemspec
|
14
|
+
.gitignore MIT-LICENSE Rakefile README.rdoc CHANGELOG TODO generators.gemspec
|
15
15
|
bin/rubaidh_rails
|
16
16
|
generators/rubaidh_controller/rubaidh_controller_generator.rb
|
17
17
|
generators/rubaidh_controller/templates/controller.rb
|
@@ -49,4 +49,6 @@ spec = Gem::Specification.new do |s|
|
|
49
49
|
s.bindir = "bin"
|
50
50
|
s.executables = ["rubaidh_rails"]
|
51
51
|
s.default_executable = "rubaidh_rails"
|
52
|
+
|
53
|
+
s.has_rdoc = true
|
52
54
|
end
|
data/templates/rubaidh.rb
CHANGED
@@ -24,6 +24,15 @@ file "log/.keep", ""
|
|
24
24
|
git :add => '.'
|
25
25
|
git :commit => "-m 'Initial commit of application skeleton.'"
|
26
26
|
|
27
|
+
# Pull Rails in as a submodule
|
28
|
+
git :submodule => 'add git://github.com/rails/rails.git vendor/rails'
|
29
|
+
git :commit => '-m "Pull in Rails as a git submodule."'
|
30
|
+
|
31
|
+
# Update against the latest edge Rails
|
32
|
+
rake 'rails:update'
|
33
|
+
git :add => '.'
|
34
|
+
git :commit => '-m "Update Rails skeleton code to latest from edge Rails."'
|
35
|
+
|
27
36
|
# Pull in all our favourite testing tools.
|
28
37
|
plugin 'remarkable', :git => 'git://github.com/carlosbrando/remarkable.git', :submodule => true
|
29
38
|
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git', :submodule => true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubaidh-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Graeme Mathieson
|
@@ -15,6 +15,7 @@ default_executable: rubaidh_rails
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
|
+
type: :runtime
|
18
19
|
version_requirement:
|
19
20
|
version_requirements: !ruby/object:Gem::Requirement
|
20
21
|
requirements:
|
@@ -35,6 +36,7 @@ files:
|
|
35
36
|
- MIT-LICENSE
|
36
37
|
- Rakefile
|
37
38
|
- README.rdoc
|
39
|
+
- CHANGELOG
|
38
40
|
- TODO
|
39
41
|
- generators.gemspec
|
40
42
|
- bin/rubaidh_rails
|
@@ -67,7 +69,7 @@ files:
|
|
67
69
|
- generators/rubaidh_scaffold/templates/view_show.html.erb
|
68
70
|
- generators/rubaidh_scaffold/USAGE
|
69
71
|
- templates/rubaidh.rb
|
70
|
-
has_rdoc:
|
72
|
+
has_rdoc: true
|
71
73
|
homepage: http://rubaidh.com/portfolio/open-source
|
72
74
|
post_install_message:
|
73
75
|
rdoc_options: []
|