Skip to content

Commit 18ca559

Browse files
committed
started with generators
1 parent 5f6c999 commit 18ca559

File tree

13 files changed

+148
-1
lines changed

13 files changed

+148
-1
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ gemspec
77

88
# jquery-rails is used by the dummy application
99
gem "jquery-rails"
10-
10+
gem 'sqlite3'

Gemfile.lock

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@ PATH
22
remote: .
33
specs:
44
vision (0.0.1)
5+
bootstrap-kaminari-views
6+
cancan
7+
carrierwave
8+
devise
9+
haml-rails
10+
has_scope
11+
inherited_resources
12+
jquery-rails
13+
jquery-ui-rails
14+
kaminari
15+
mini_magick
516
rails (~> 3.2.11)
17+
redactor-rails
18+
simple-navigation
19+
simple_form
20+
simple_form_fancy_uploads
21+
twitter-bootstrap-rails
622

723
GEM
824
remote: http://rubygems.org/
@@ -35,21 +51,55 @@ GEM
3551
i18n (~> 0.6)
3652
multi_json (~> 1.0)
3753
arel (3.0.2)
54+
bcrypt-ruby (3.0.1)
55+
bootstrap-kaminari-views (0.0.2)
56+
kaminari (>= 0.13)
57+
rails (>= 3.1)
3858
builder (3.0.4)
59+
cancan (1.6.9)
60+
carrierwave (0.8.0)
61+
activemodel (>= 3.2.0)
62+
activesupport (>= 3.2.0)
63+
devise (2.2.2)
64+
bcrypt-ruby (~> 3.0)
65+
orm_adapter (~> 0.1)
66+
railties (~> 3.1)
67+
warden (~> 1.2.1)
3968
erubis (2.7.0)
69+
execjs (1.4.0)
70+
multi_json (~> 1.0)
71+
haml (3.1.7)
72+
haml-rails (0.3.5)
73+
actionpack (>= 3.1, < 4.1)
74+
activesupport (>= 3.1, < 4.1)
75+
haml (~> 3.1)
76+
railties (>= 3.1, < 4.1)
77+
has_scope (0.5.1)
4078
hike (1.2.1)
4179
i18n (0.6.1)
80+
inherited_resources (1.3.1)
81+
has_scope (~> 0.5.0)
82+
responders (~> 0.6)
4283
journey (1.0.4)
4384
jquery-rails (2.2.0)
4485
railties (>= 3.0, < 5.0)
4586
thor (>= 0.14, < 2.0)
87+
jquery-ui-rails (4.0.0)
88+
jquery-rails
89+
railties (>= 3.1.0)
4690
json (1.7.6)
91+
kaminari (0.14.1)
92+
actionpack (>= 3.0.0)
93+
activesupport (>= 3.0.0)
4794
mail (2.4.4)
4895
i18n (>= 0.4.0)
4996
mime-types (~> 1.16)
5097
treetop (~> 1.4.8)
5198
mime-types (1.20.1)
99+
mini_magick (3.4)
100+
subexec (~> 0.2.1)
52101
multi_json (1.5.0)
102+
orm_adapter (0.4.0)
53103
polyglot (0.3.3)
54104
rack (1.4.4)
55105
rack-cache (1.2)
@@ -76,18 +126,40 @@ GEM
76126
rake (10.0.3)
77127
rdoc (3.12)
78128
json (~> 1.4)
129+
redactor-rails (0.3.3)
130+
devise
131+
mime-types
132+
orm_adapter
133+
responders (0.9.3)
134+
railties (~> 3.1)
135+
simple-navigation (3.9.0)
136+
activesupport (>= 2.3.2)
137+
simple_form (2.0.4)
138+
actionpack (~> 3.0)
139+
activemodel (~> 3.0)
140+
simple_form_fancy_uploads (0.0.2)
141+
carrierwave
142+
rails (~> 3.2.1)
143+
simple_form (~> 2.0.1)
79144
sprockets (2.2.2)
80145
hike (~> 1.2)
81146
multi_json (~> 1.0)
82147
rack (~> 1.0)
83148
tilt (~> 1.1, != 1.3.0)
84149
sqlite3 (1.3.7)
150+
subexec (0.2.2)
85151
thor (0.17.0)
86152
tilt (1.3.3)
87153
treetop (1.4.12)
88154
polyglot
89155
polyglot (>= 0.3.1)
156+
twitter-bootstrap-rails (2.2.0)
157+
actionpack (>= 3.1)
158+
execjs
159+
railties (>= 3.1)
90160
tzinfo (0.3.35)
161+
warden (1.2.1)
162+
rack (>= 1.0)
91163

92164
PLATFORMS
93165
ruby

Gemfile~

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source "http://rubygems.org"
2+
3+
# Declare your gem's dependencies in vision.gemspec.
4+
# Bundler will treat runtime dependencies like base dependencies, and
5+
# development dependencies will be added by default to the :development group.
6+
gemspec
7+
8+
# jquery-rails is used by the dummy application
9+
gem "jquery-rails"
10+

lib/generators/install/USAGE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Description:
2+
Explain the generator
3+
4+
Example:
5+
rails generate install Thing
6+
7+
This will create:
8+
what/will/it/create
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Vision::Generators::InstallGenerator < Rails::Generators::Base
2+
source_root File.expand_path('../templates', __FILE__)
3+
def copy_config_files
4+
copy_file 'vision_navigation.rb', 'config/vision_navigation.rb'
5+
end
6+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Vision::InstallGenerator < Rails::Generators::Base
2+
source_root File.expand_path('../templates', __FILE__)
3+
def copy_config_files
4+
copy_file 'vision_navigation.rb', 'config/vision_navigation.rb'
5+
end
6+
end

lib/generators/install_generator.rb~

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class InstallGenerator < Rails::Generators::Base
2+
source_root File.expand_path("../templates", __FILE__)
3+
4+
def install
5+
copy_file "vision_navigation.rb", "config/templates/vision_navigation.rb"
6+
end
7+
end

lib/install/USAGE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Description:
2+
Explain the generator
3+
4+
Example:
5+
rails generate install Thing
6+
7+
This will create:
8+
what/will/it/create

lib/install/install_generator.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Vision::Generators::InstallGenerator < Rails::Generators::Base
2+
source_root File.expand_path('../templates', __FILE__)
3+
def copy_config_files
4+
copy_file 'vision_navigation.rb', 'config/vision_navigation.rb'
5+
end
6+
end

0 commit comments

Comments
 (0)