base-generators 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +16 -2
- data/Rakefile +8 -7
- data/VERSION +1 -1
- data/base-generators.gemspec +1 -22
- data/lib/generators/common/layout/layout_generator.rb +8 -8
- metadata +4 -108
data/README.textile
CHANGED
@@ -1,9 +1,23 @@
|
|
1
1
|
h1. BaseGenerators
|
2
2
|
|
3
|
-
BaseGenerators tries to ease the pain of starting a new app from scratch by automating tasks with generators.
|
3
|
+
BaseGenerators tries to ease the pain of starting a new app from scratch by automating tasks with generators.
|
4
|
+
|
5
|
+
h2. General usage
|
6
|
+
|
7
|
+
The basic idea is that BaseGenerators provides a way to speed up prototyping. You have two generators. One for the basic structure (first layout (using WebAppTheme), helpers, partials) and dependencies (gems, plugins).
|
8
|
+
|
9
|
+
If you also bootstrap your app with the rails template included in the project, you'll also end up with all the dependencies installed for you.
|
10
|
+
|
11
|
+
The other generator provides a classic scaffold with pagination. See specific notes for usage information.
|
12
|
+
|
13
|
+
So, you first create the layout/bootstrap and then create as many scaffolds for your models as you want.
|
14
|
+
|
15
|
+
h2. Specific notes for different Rails versions
|
16
|
+
|
17
|
+
So far, it provides them for Rails 2.3 and Rails 3. Sadly, the interface for writing generators in Rails 3 has changed, so for that version everything is pretty different.
|
4
18
|
|
5
|
-
* "Using the generators on Rails 2.3":http://github.com/lucasefe/base-generators/blob/master/README.2.3.textile
|
6
19
|
* "Using the generators on Rails 3":http://github.com/lucasefe/base-generators/blob/master/README.3.textile
|
20
|
+
* "Using the generators on Rails 2.3":http://github.com/lucasefe/base-generators/blob/master/README.2.3.textile
|
7
21
|
|
8
22
|
h2. Dependencies
|
9
23
|
|
data/Rakefile
CHANGED
@@ -23,13 +23,14 @@ begin
|
|
23
23
|
gemspec.homepage = "http://github.com/lucasefe/base-generators"
|
24
24
|
gemspec.authors = ["Lucas Efe"]
|
25
25
|
gemspec.email = "lucasefe@gmail.com"
|
26
|
-
|
27
|
-
gemspec.add_dependency('
|
28
|
-
gemspec.add_dependency('
|
29
|
-
gemspec.add_dependency('
|
30
|
-
gemspec.add_dependency('
|
31
|
-
gemspec.add_dependency('
|
32
|
-
gemspec.add_dependency('
|
26
|
+
# This doesn't belong here
|
27
|
+
# gemspec.add_dependency('searchlogic', '>= 2.4.19')
|
28
|
+
# gemspec.add_dependency('inherited_resources', '= 1.0.6')
|
29
|
+
# gemspec.add_dependency('formtastic','= 0.9.8')
|
30
|
+
# gemspec.add_dependency('validation_reflection','= 0.3.6')
|
31
|
+
# gemspec.add_dependency('show_for','= 0.1.3')
|
32
|
+
# gemspec.add_dependency('will_paginate','= 2.3.12')
|
33
|
+
# gemspec.add_dependency('haml','3.0.0.rc.2')
|
33
34
|
end
|
34
35
|
Jeweler::GemcutterTasks.new
|
35
36
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/base-generators.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{base-generators}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Lucas Efe"]
|
@@ -97,30 +97,9 @@ Gem::Specification.new do |s|
|
|
97
97
|
s.specification_version = 3
|
98
98
|
|
99
99
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
100
|
-
s.add_runtime_dependency(%q<searchlogic>, [">= 2.4.19"])
|
101
|
-
s.add_runtime_dependency(%q<inherited_resources>, ["= 1.0.6"])
|
102
|
-
s.add_runtime_dependency(%q<formtastic>, ["= 0.9.8"])
|
103
|
-
s.add_runtime_dependency(%q<validation_reflection>, ["= 0.3.6"])
|
104
|
-
s.add_runtime_dependency(%q<show_for>, ["= 0.1.3"])
|
105
|
-
s.add_runtime_dependency(%q<will_paginate>, ["= 2.3.12"])
|
106
|
-
s.add_runtime_dependency(%q<haml>, ["= 2.2.23"])
|
107
100
|
else
|
108
|
-
s.add_dependency(%q<searchlogic>, [">= 2.4.19"])
|
109
|
-
s.add_dependency(%q<inherited_resources>, ["= 1.0.6"])
|
110
|
-
s.add_dependency(%q<formtastic>, ["= 0.9.8"])
|
111
|
-
s.add_dependency(%q<validation_reflection>, ["= 0.3.6"])
|
112
|
-
s.add_dependency(%q<show_for>, ["= 0.1.3"])
|
113
|
-
s.add_dependency(%q<will_paginate>, ["= 2.3.12"])
|
114
|
-
s.add_dependency(%q<haml>, ["= 2.2.23"])
|
115
101
|
end
|
116
102
|
else
|
117
|
-
s.add_dependency(%q<searchlogic>, [">= 2.4.19"])
|
118
|
-
s.add_dependency(%q<inherited_resources>, ["= 1.0.6"])
|
119
|
-
s.add_dependency(%q<formtastic>, ["= 0.9.8"])
|
120
|
-
s.add_dependency(%q<validation_reflection>, ["= 0.3.6"])
|
121
|
-
s.add_dependency(%q<show_for>, ["= 0.1.3"])
|
122
|
-
s.add_dependency(%q<will_paginate>, ["= 2.3.12"])
|
123
|
-
s.add_dependency(%q<haml>, ["= 2.2.23"])
|
124
103
|
end
|
125
104
|
end
|
126
105
|
|
@@ -63,22 +63,22 @@ Compass.handle_configuration_change!
|
|
63
63
|
run "curl -L http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js > public/javascripts/jquery-ui.js"
|
64
64
|
run "curl -L http://github.com/brandonaaron/livequery/raw/master/jquery.livequery.js > public/javascripts/jquery.livequery.js"
|
65
65
|
|
66
|
-
gem "inherited_resources", ">= 1.1.
|
66
|
+
gem "inherited_resources", ">= 1.1.1"
|
67
67
|
gem 'formtastic', :branch => 'rails3', :git => 'git://github.com/justinfrench/formtastic.git'
|
68
68
|
gem "web-app-theme", :git => "git://github.com/lucasefe/web-app-theme.git"
|
69
69
|
gem 'validation_reflection'
|
70
70
|
gem 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git', :branch => 'rails3'
|
71
71
|
gem 'show_for'
|
72
|
-
|
73
|
-
gem 'webrat', :group => :test
|
74
|
-
gem "cucumber", ">= 0.6.2", :group => :test
|
75
|
-
gem 'faker', :group => :test
|
76
|
-
gem 'factory_girl', :group => :test
|
77
|
-
|
78
72
|
gem "haml", "3.0.0.rc.2"
|
79
73
|
gem 'compass', '0.10.0.rc4'
|
80
74
|
gem 'compass-960-plugin'
|
81
|
-
|
75
|
+
|
76
|
+
gem 'faker', :group => :test
|
77
|
+
gem 'factory_girl', :group => :test
|
78
|
+
gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git', :group => :test
|
79
|
+
gem 'database_cleaner', :git => 'git://github.com/bmabey/database_cleaner.git', :group => :test
|
80
|
+
gem 'cucumber-rails', :git => 'git://github.com/aslakhellesoy/cucumber-rails.git', :group => :test
|
81
|
+
|
82
82
|
in_root { run "bundle install" }
|
83
83
|
|
84
84
|
generate("responders_install")
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Lucas Efe
|
@@ -16,112 +16,8 @@ cert_chain: []
|
|
16
16
|
|
17
17
|
date: 2010-05-02 00:00:00 -03:00
|
18
18
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
21
|
-
name: searchlogic
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 4
|
31
|
-
- 19
|
32
|
-
version: 2.4.19
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: inherited_resources
|
37
|
-
prerelease: false
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - "="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 0
|
46
|
-
- 6
|
47
|
-
version: 1.0.6
|
48
|
-
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: formtastic
|
52
|
-
prerelease: false
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
|
-
requirements:
|
56
|
-
- - "="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
- 9
|
61
|
-
- 8
|
62
|
-
version: 0.9.8
|
63
|
-
type: :runtime
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: validation_reflection
|
67
|
-
prerelease: false
|
68
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
|
-
requirements:
|
71
|
-
- - "="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
- 3
|
76
|
-
- 6
|
77
|
-
version: 0.3.6
|
78
|
-
type: :runtime
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: show_for
|
82
|
-
prerelease: false
|
83
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
|
-
requirements:
|
86
|
-
- - "="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
- 1
|
91
|
-
- 3
|
92
|
-
version: 0.1.3
|
93
|
-
type: :runtime
|
94
|
-
version_requirements: *id005
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: will_paginate
|
97
|
-
prerelease: false
|
98
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
|
-
requirements:
|
101
|
-
- - "="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
segments:
|
104
|
-
- 2
|
105
|
-
- 3
|
106
|
-
- 12
|
107
|
-
version: 2.3.12
|
108
|
-
type: :runtime
|
109
|
-
version_requirements: *id006
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: haml
|
112
|
-
prerelease: false
|
113
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
|
-
requirements:
|
116
|
-
- - "="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
segments:
|
119
|
-
- 2
|
120
|
-
- 2
|
121
|
-
- 23
|
122
|
-
version: 2.2.23
|
123
|
-
type: :runtime
|
124
|
-
version_requirements: *id007
|
19
|
+
dependencies: []
|
20
|
+
|
125
21
|
description: BaseGenerators tries to ease the pain of starting a new app from scratch by automating tasks with generators.
|
126
22
|
email: lucasefe@gmail.com
|
127
23
|
executables: []
|