happy_seed 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/happy_seed_plugin +14 -0
- data/happy_seed.rb +1 -1
- data/lib/generators/happy_seed/admin/admin_generator.rb +23 -1
- data/lib/generators/happy_seed/admin/templates/app/admin/campaigns.rb +36 -0
- data/lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb +54 -0
- data/lib/generators/happy_seed/admin/templates/app/admin/newsletter.rb +48 -0
- data/lib/generators/happy_seed/admin/templates/app/controllers/admin/stats_controller.rb +15 -0
- data/lib/generators/happy_seed/admin/templates/app/views/admin/_chart.html.haml +5 -0
- data/lib/generators/happy_seed/admin/templates/docs/README.07.admin.rdoc +3 -0
- data/lib/generators/happy_seed/admin/templates/spec/controllers/admin/stats_controller_spec.rb +40 -0
- data/lib/generators/happy_seed/admin/templates/spec/factories/admin_users.rb +7 -0
- data/lib/generators/happy_seed/admin/templates/vendor/assets/javascripts/chartkick.js +830 -0
- data/lib/generators/happy_seed/{foreman/foreman_generator.rb → base/base_generator.rb} +15 -1
- data/lib/generators/happy_seed/{foreman → base}/templates/.env +0 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/.foreman +0 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/Procfile +0 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/app/controllers/setup_controller.rb +0 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/app/views/setup/index.html.haml +0 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/application_controller.rb +0 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/config/unicorn.rb +0 -0
- data/lib/generators/happy_seed/base/templates/docs/README.00.base.rdoc +43 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/spec/controllers/application_controller_spec.rb +0 -0
- data/lib/generators/happy_seed/{foreman → base}/templates/spec/controllers/setup_controller_spec.rb +0 -0
- data/lib/generators/happy_seed/bootstrap/templates/app/views/application/_footer.html.haml +7 -6
- data/lib/generators/happy_seed/bootstrap/templates/docs/README.01.bootstrap.rdoc +6 -0
- data/lib/generators/happy_seed/devise/devise_generator.rb +3 -0
- data/lib/generators/happy_seed/devise/templates/docs/README.03.devise.rdoc +5 -3
- data/lib/generators/happy_seed/devise/templates/spec/factories/users.rb +15 -0
- data/lib/generators/happy_seed/facebook/templates/docs/README.06.facebook.rdoc +4 -0
- data/lib/generators/happy_seed/omniauth/omniauth_generator.rb +1 -0
- data/lib/generators/happy_seed/omniauth/templates/docs/README.04.omniauth.rdoc +9 -5
- data/lib/generators/happy_seed/plugin/plugin_generator.rb +32 -0
- data/lib/generators/happy_seed/plugin/templates/.autotest +7 -0
- data/lib/generators/happy_seed/plugin/templates/.rspec +3 -0
- data/lib/generators/happy_seed/plugin/templates/Rakefile +25 -0
- data/lib/generators/happy_seed/plugin/templates/gemspec +8 -0
- data/lib/generators/happy_seed/plugin/templates/spec/rails_helper.rb +43 -0
- data/lib/generators/happy_seed/plugin/templates/spec/spec_helper.rb +20 -0
- data/lib/generators/happy_seed/splash/templates/app/assets/stylesheets/splash.css.scss +4 -74
- data/lib/generators/happy_seed/splash/templates/app/views/layouts/splash.html.haml +6 -5
- data/lib/generators/happy_seed/splash/templates/app/views/splash/index.html.haml +66 -178
- data/lib/generators/happy_seed/splash/templates/docs/README.02.splash.rdoc +6 -4
- data/lib/generators/happy_seed/twitter/templates/docs/README.05.twitter.rdoc +3 -1
- data/lib/happy_seed/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +5 -0
- metadata +35 -13
- data/lib/generators/happy_seed/foreman/templates/docs/README.00.base.rdoc +0 -34
@@ -1,189 +1,17 @@
|
|
1
|
-
%section.masthead
|
1
|
+
%section.masthead.jumbotron
|
2
2
|
.container
|
3
|
-
.row
|
4
|
-
.col-md-12.text-center
|
5
|
-
%h1{"data-scroll-reveal"=>"enter from the top but wait .5s"}
|
6
|
-
%span.glyphicon.glyphicon-leaf
|
7
|
-
Happy Seed
|
8
|
-
%h2{"data-scroll-reveal"=>"enter bottom but wait 1s over 1s"}
|
9
|
-
Quickly setup a Rails app
|
10
|
-
%h2{"data-scroll-reveal"=>"enter bottom but wait 1.5s over 1.5s"}
|
11
|
-
with awesome plugins
|
12
|
-
%h2{"data-scroll-reveal"=>"enter bottom but wait 4s over 2s"}
|
13
|
-
= "...and get all the pesky details right"
|
14
|
-
#bottom{ "data-scroll-reveal" => "wait 6s and then ease-in-out 100px" }
|
15
|
-
%a{ :href => "#what"}
|
16
|
-
%span.glyphicon.glyphicon-chevron-down
|
17
|
-
|
18
|
-
%section#what.light
|
19
|
-
.container
|
20
|
-
.row
|
21
|
-
.col-sm-4
|
22
|
-
%h2 Solid Gems
|
23
|
-
%p.lead Stand on the shoulders of giants.
|
24
|
-
%ul
|
25
|
-
%li
|
26
|
-
Follows
|
27
|
-
= link_to "12 factors", "http://12factor.net/"
|
28
|
-
%li
|
29
|
-
Can easily be deployed to
|
30
|
-
= link_to "heroku", "http://heroku.com"
|
31
|
-
with foreman/Profile
|
32
|
-
%li
|
33
|
-
= link_to "bootstrap", "http://getbootstrap.com/"
|
34
|
-
with clean layout structure
|
35
|
-
%li
|
36
|
-
= link_to "haml", "http://haml.info"
|
37
|
-
templates, upgraded rails scaffold templates to work with bootstap
|
38
|
-
%li
|
39
|
-
= link_to "metatag", "https://github.com/kpumuk/meta-tags"
|
40
|
-
setup for SEO
|
41
|
-
%li
|
42
|
-
= link_to "devise", "https://github.com/plataformatec/devise"
|
43
|
-
for user authentication
|
44
|
-
%li
|
45
|
-
= link_to "omniauth", "https://github.com/intridea/omniauth"
|
46
|
-
for oauth support
|
47
|
-
%li
|
48
|
-
= link_to "angular", "https://angularjs.org"
|
49
|
-
installer that fits with the rails asset pipeline
|
50
|
-
%li
|
51
|
-
= link_to "active_admin", "http://activeadmin.info"
|
52
|
-
for admin panel
|
53
|
-
|
54
|
-
.col-sm-4
|
55
|
-
%h2 Sensible Defaults
|
56
|
-
%p.lead Get it working quickly and start customizing
|
57
|
-
%ul
|
58
|
-
%li
|
59
|
-
= link_to "unicorn", "http://unicorn.bogomips.org"
|
60
|
-
configured
|
61
|
-
%li
|
62
|
-
Basic layout/navbar structure include
|
63
|
-
%li
|
64
|
-
Devise user models
|
65
|
-
%li
|
66
|
-
Omniauth Callback Controller
|
67
|
-
%li
|
68
|
-
Twitter, Facebook, Instrgram integration optionally wired up
|
69
|
-
%li
|
70
|
-
Site nav structure
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
.col-sm-4
|
75
|
-
%h2 More awesome stuff
|
76
|
-
%p.lead Why stop there?
|
77
|
-
|
78
|
-
%ul
|
79
|
-
%li Splash page template
|
80
|
-
%li Mailchimp signup form
|
81
|
-
%li
|
82
|
-
= link_to "rspec", "http://rspec.info"
|
83
|
-
%li
|
84
|
-
= link_to "factory_girl", "https://github.com/thoughtbot/factory_girl"
|
85
|
-
%li
|
86
|
-
= link_to "webmock", "https://github.com/bblimke/webmock"
|
87
|
-
%li
|
88
|
-
= link_to "autotest", "http://autotest.github.io"
|
89
|
-
|
90
|
-
|
91
|
-
%section#why
|
92
|
-
.container
|
93
|
-
.row
|
94
|
-
.col-sm-12.text-center
|
95
|
-
%h1 Why
|
96
|
-
|
97
|
-
.row
|
98
|
-
.col-sm-4.col-sm-offset-1
|
99
|
-
%p.lead We like to try out lots of different ideas, and we build a lot of apps for clients.
|
100
|
-
.col-sm-4.col-sm-offset-2
|
101
|
-
%p.lead The ruby community has tons of great gems out there that have save a huge amount of time.
|
102
|
-
|
103
|
-
.row
|
104
|
-
.col-sm-6.col-sm-offset-3
|
105
|
-
%p.lead
|
106
|
-
But everytime I started a project I found myself doing the same stuff over and over.
|
107
|
-
|
108
|
-
%p Figuring out exactly how I wanted to configure a particular gem for a particular problem, even though I was more interested in creating a new product with particular functionality I was spending a lot of time doing "plumbing".
|
109
|
-
|
110
|
-
.row
|
111
|
-
.col-sm-8.col-sm-offset-2
|
112
|
-
%h2
|
113
|
-
Why not make it really easy to get through the plumbing, so I can focus on the part that makes the application different rather than the stuff that makes it the same?
|
114
|
-
|
115
|
-
%section#how.light
|
116
|
-
.container
|
117
|
-
.row
|
118
|
-
.col-sm-12
|
119
|
-
%h1.text-center How
|
120
|
-
|
121
|
-
.row
|
122
|
-
.col-sm-4.col-sm-offset-1
|
123
|
-
%p.lead Install the gem
|
124
|
-
|
125
|
-
%pre="$ gem install happy_seed"
|
126
|
-
|
127
|
-
.col-sm-4.col-sm-offset-1
|
128
|
-
%p.lead This create the rails plugin on your system.
|
129
|
-
|
130
|
-
%p
|
131
|
-
There is a small application template that is used to start the app, which itself includes the happy_seed gem. This exposes the rail generators and templates to your project, which is how functionality gets installed.
|
132
|
-
|
133
|
-
.row
|
134
|
-
.col-sm-4.col-sm-offset-1
|
135
|
-
%p.lead Generate a new app
|
136
|
-
%pre="$ happy_seed app_name"
|
137
|
-
|
138
|
-
.col-sm-4.col-sm-offset-1
|
139
|
-
%p.lead Now create!
|
140
|
-
|
141
|
-
%p You will get prompted for what you want to install.
|
142
|
-
|
143
|
-
%p The current generators are:
|
144
|
-
|
145
|
-
%ul
|
146
|
-
%li The application template
|
147
|
-
%li= link_to "happy_seed:forman", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/foreman/templates/docs/README.00.base.rdoc"
|
148
|
-
%li
|
149
|
-
= link_to "happy_seed:bootstrap", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/bootstrap/templates/docs/README.01.bootstrap.rdoc"
|
150
|
-
%ul
|
151
|
-
%li= link_to "happy_seed:splash", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/splash/templates/docs/README.02.splash.rdoc"
|
152
|
-
%li
|
153
|
-
= link_to "happy_seed:devise", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/devise/templates/docs/README.03.devise.rdoc"
|
154
|
-
%ul
|
155
|
-
%li
|
156
|
-
= link_to "happy_seed:omniauth", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/omniauth/templates/docs/README.04.omniauth.rdoc"
|
157
|
-
%li
|
158
|
-
= link_to "happy_seed:twitter", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/twitter/templates/docs/README.05.twitter.rdoc"
|
159
|
-
%li
|
160
|
-
= link_to "happy_seed:facebook", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/facebook/templates/docs/README.06.facebook.rdoc"
|
161
|
-
%li
|
162
|
-
= link_to "happy_seed:instagram", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/instagram/templates/docs/README.05.instagram.rdoc"
|
163
|
-
%li
|
164
|
-
= link_to "happy_seed:admin", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/admin/templates/docs/README.07.admin.rdoc"
|
165
|
-
|
166
|
-
%li
|
167
|
-
= link_to "happy_seed:angular_install", "https://github.com/sublimeguile/happy_seed/blob/master/lib/generators/happy_seed/angular_install/templates/docs/README.10.angular_install.rdoc"
|
168
|
-
|
169
|
-
|
170
|
-
%section#who
|
171
|
-
.container
|
172
|
-
.row
|
3
|
+
.row#top
|
173
4
|
.col-md-8.col-md-offset-2
|
174
5
|
.panel.panel-default
|
175
6
|
.panel-body
|
176
7
|
.row
|
177
8
|
.col-md-4.text-center.brand
|
178
|
-
%h1
|
179
|
-
%span.glyphicon.glyphicon-
|
9
|
+
%h1
|
10
|
+
%span.glyphicon.glyphicon-cloud
|
180
11
|
%br
|
181
|
-
|
12
|
+
App
|
182
13
|
.signup.col-md-7.col-md-offset-0.col-lg-7.col-lg-offset-0.col-sm-offset-2.col-sm-8
|
183
|
-
%p.lead
|
184
|
-
Sign up for the
|
185
|
-
= link_to "HappyFunCorp", "http://happyfuncorp.com"
|
186
|
-
mailing list!.
|
14
|
+
%p.lead Get ready. We'll make your life easier and more meaningful.
|
187
15
|
= form_tag splash_signup_path, role: :form, :class=>'form-horizontal', :remote=>true do
|
188
16
|
.form-group#signup
|
189
17
|
.col-sm-12
|
@@ -193,3 +21,63 @@
|
|
193
21
|
= submit_tag 'Sign up', :class=>'btn btn-primary'
|
194
22
|
%small#signup-message
|
195
23
|
|
24
|
+
.container.marketing
|
25
|
+
.row#what
|
26
|
+
.col-lg-4
|
27
|
+
%img.img-circle{:alt => "Generic placeholder image", :src => "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==", :style => "width: 140px; height: 140px;"}
|
28
|
+
%h2 Heading
|
29
|
+
%p Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna.
|
30
|
+
%p
|
31
|
+
%a.btn.btn-default{:href => "#", :role => "button"} View details »
|
32
|
+
.col-lg-4
|
33
|
+
%img.img-circle{:alt => "Generic placeholder image", :src => "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==", :style => "width: 140px; height: 140px;"}
|
34
|
+
%h2 Heading
|
35
|
+
%p Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
|
36
|
+
%p
|
37
|
+
%a.btn.btn-default{:href => "#", :role => "button"} View details »
|
38
|
+
.col-lg-4
|
39
|
+
%img.img-circle{:alt => "Generic placeholder image", :src => "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==", :style => "width: 140px; height: 140px;"}
|
40
|
+
%h2 Heading
|
41
|
+
%p Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
|
42
|
+
%p
|
43
|
+
%a.btn.btn-default{:href => "#", :role => "button"} View details »
|
44
|
+
|
45
|
+
/ START THE FEATURETTES
|
46
|
+
%hr.featurette-divider
|
47
|
+
.row.featurette#feature1
|
48
|
+
.col-md-7
|
49
|
+
%h2.featurette-heading
|
50
|
+
First featurette heading.
|
51
|
+
%span.text-muted It'll blow your mind.
|
52
|
+
%p.lead Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
|
53
|
+
.col-md-5
|
54
|
+
%img.featurette-image.img-responsive{:alt => "500x500", "data-src" => "holder.js/500x500/auto", :src => "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48cmVjdCB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgZmlsbD0iI2VlZSIvPjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9IjI1MCIgeT0iMjUwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjMxcHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+NTAweDUwMDwvdGV4dD48L3N2Zz4="}
|
55
|
+
%hr.featurette-divider
|
56
|
+
.row.featurette#feature2
|
57
|
+
.col-md-5
|
58
|
+
%img.featurette-image.img-responsive{:alt => "500x500", "data-src" => "holder.js/500x500/auto", :src => "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48cmVjdCB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgZmlsbD0iI2VlZSIvPjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9IjI1MCIgeT0iMjUwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjMxcHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+NTAweDUwMDwvdGV4dD48L3N2Zz4="}
|
59
|
+
.col-md-7
|
60
|
+
%h2.featurette-heading
|
61
|
+
Oh yeah, it's that good.
|
62
|
+
%span.text-muted See for yourself.
|
63
|
+
%p.lead Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
|
64
|
+
%hr.featurette-divider
|
65
|
+
.row.featurette#feature3
|
66
|
+
.col-md-7
|
67
|
+
%h2.featurette-heading
|
68
|
+
And lastly, this one.
|
69
|
+
%span.text-muted Checkmate.
|
70
|
+
%p.lead Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
|
71
|
+
.col-md-5
|
72
|
+
%img.featurette-image.img-responsive{:alt => "500x500", "data-src" => "holder.js/500x500/auto", :src => "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48cmVjdCB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgZmlsbD0iI2VlZSIvPjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9IjI1MCIgeT0iMjUwIiBzdHlsZT0iZmlsbDojYWFhO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1zaXplOjMxcHg7Zm9udC1mYW1pbHk6QXJpYWwsSGVsdmV0aWNhLHNhbnMtc2VyaWY7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+NTAweDUwMDwvdGV4dD48L3N2Zz4="}
|
73
|
+
%hr.featurette-divider
|
74
|
+
/ /END THE FEATURETTES
|
75
|
+
/ FOOTER
|
76
|
+
%footer
|
77
|
+
%p.pull-right
|
78
|
+
%a{:href => "#"} Back to top
|
79
|
+
%p
|
80
|
+
© 2014 Company, Inc. ·
|
81
|
+
%a{:href => "#"} Privacy
|
82
|
+
·
|
83
|
+
%a{:href => "#"} Terms
|
@@ -6,12 +6,14 @@ HappySeed Splash Install
|
|
6
6
|
The happy_seed:splash generator depends upon the happy_seed:bootstrap generator and will prompt you to run it if it hasn't already.
|
7
7
|
|
8
8
|
* Installs a splash screen with sign up for the mailing list.
|
9
|
-
* Installs a base styling for the splash screen
|
9
|
+
* Installs a base styling for the splash screen
|
10
10
|
* Installs a splash controller which can used to signup for a Mailchimp mailing list.
|
11
11
|
|
12
12
|
### Why do you want this?
|
13
13
|
|
14
|
-
Everyone wants an interest signup page ASAP.
|
14
|
+
This is a quick framework to get up a marketing page for your application, and a way to start collecting email addresses. Everyone wants an interest signup page ASAP.
|
15
|
+
|
16
|
+
The splash controller uses a seperate splash layout, which lets you isolate the design of the splash page from the overall content and look and feel of your application.
|
15
17
|
|
16
18
|
### Environment Variables
|
17
19
|
|
@@ -24,6 +26,6 @@ This is for the mailchimp signup form.
|
|
24
26
|
|
25
27
|
### What needs to be done?
|
26
28
|
|
27
|
-
Style the page.
|
29
|
+
Style the page by editing assets/stylesheets/slash.css.scss, views/splash/index.html.haml, and views/layouts/splash
|
28
30
|
|
29
|
-
Sign up for mailchimp and setup the environment.
|
31
|
+
Sign up for mailchimp, get your api key, create a mailing list and setup the environment.
|
@@ -21,4 +21,6 @@ If you want to have the user connect via twitter, this is the one line command f
|
|
21
21
|
|
22
22
|
### What needs to be done?
|
23
23
|
|
24
|
-
|
24
|
+
Go to twitter.com and sign up for an application. Since you need to set the callbacks as urls, you'll need to create one app for local development and another app for production. (Possibly one for staging as well.)
|
25
|
+
|
26
|
+
https://dev.twitter.com
|
data/lib/happy_seed/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: happy_seed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Schenk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -45,15 +45,25 @@ email:
|
|
45
45
|
- will@happyfuncorp.com
|
46
46
|
executables:
|
47
47
|
- happy_seed
|
48
|
+
- happy_seed_plugin
|
48
49
|
extensions: []
|
49
50
|
extra_rdoc_files: []
|
50
51
|
files:
|
51
52
|
- MIT-LICENSE
|
52
53
|
- Rakefile
|
53
54
|
- bin/happy_seed
|
55
|
+
- bin/happy_seed_plugin
|
54
56
|
- happy_seed.rb
|
55
57
|
- lib/generators/happy_seed/admin/admin_generator.rb
|
58
|
+
- lib/generators/happy_seed/admin/templates/app/admin/campaigns.rb
|
59
|
+
- lib/generators/happy_seed/admin/templates/app/admin/dashboard.rb
|
60
|
+
- lib/generators/happy_seed/admin/templates/app/admin/newsletter.rb
|
61
|
+
- lib/generators/happy_seed/admin/templates/app/controllers/admin/stats_controller.rb
|
62
|
+
- lib/generators/happy_seed/admin/templates/app/views/admin/_chart.html.haml
|
56
63
|
- lib/generators/happy_seed/admin/templates/docs/README.07.admin.rdoc
|
64
|
+
- lib/generators/happy_seed/admin/templates/spec/controllers/admin/stats_controller_spec.rb
|
65
|
+
- lib/generators/happy_seed/admin/templates/spec/factories/admin_users.rb
|
66
|
+
- lib/generators/happy_seed/admin/templates/vendor/assets/javascripts/chartkick.js
|
57
67
|
- lib/generators/happy_seed/angular_install/angular_install_generator.rb
|
58
68
|
- lib/generators/happy_seed/angular_install/templates/app/assets/javascripts/angular_app.js.coffee.erb
|
59
69
|
- lib/generators/happy_seed/angular_install/templates/app/controllers/angular_controller.rb
|
@@ -64,6 +74,17 @@ files:
|
|
64
74
|
- lib/generators/happy_seed/angular_view/templates/app/assets/javascripts/controllers/controller.js.coffee
|
65
75
|
- lib/generators/happy_seed/angular_view/templates/app/assets/templates/view.html
|
66
76
|
- lib/generators/happy_seed/angular_view/templates/docs/README.11.angular_view.rdoc
|
77
|
+
- lib/generators/happy_seed/base/base_generator.rb
|
78
|
+
- lib/generators/happy_seed/base/templates/.env
|
79
|
+
- lib/generators/happy_seed/base/templates/.foreman
|
80
|
+
- lib/generators/happy_seed/base/templates/Procfile
|
81
|
+
- lib/generators/happy_seed/base/templates/app/controllers/setup_controller.rb
|
82
|
+
- lib/generators/happy_seed/base/templates/app/views/setup/index.html.haml
|
83
|
+
- lib/generators/happy_seed/base/templates/application_controller.rb
|
84
|
+
- lib/generators/happy_seed/base/templates/config/unicorn.rb
|
85
|
+
- lib/generators/happy_seed/base/templates/docs/README.00.base.rdoc
|
86
|
+
- lib/generators/happy_seed/base/templates/spec/controllers/application_controller_spec.rb
|
87
|
+
- lib/generators/happy_seed/base/templates/spec/controllers/setup_controller_spec.rb
|
67
88
|
- lib/generators/happy_seed/bootstrap/bootstrap_generator.rb
|
68
89
|
- lib/generators/happy_seed/bootstrap/templates/app/assets/javascripts/application.js
|
69
90
|
- lib/generators/happy_seed/bootstrap/templates/app/assets/stylesheets/application.css.scss
|
@@ -90,20 +111,10 @@ files:
|
|
90
111
|
- lib/generators/happy_seed/devise/templates/app/views/devise/registrations/new.html.haml
|
91
112
|
- lib/generators/happy_seed/devise/templates/app/views/devise/sessions/new.html.haml
|
92
113
|
- lib/generators/happy_seed/devise/templates/docs/README.03.devise.rdoc
|
114
|
+
- lib/generators/happy_seed/devise/templates/spec/factories/users.rb
|
93
115
|
- lib/generators/happy_seed/devise/templates/test/mailers/previews/devise_preview.rb
|
94
116
|
- lib/generators/happy_seed/facebook/facebook_generator.rb
|
95
117
|
- lib/generators/happy_seed/facebook/templates/docs/README.06.facebook.rdoc
|
96
|
-
- lib/generators/happy_seed/foreman/foreman_generator.rb
|
97
|
-
- lib/generators/happy_seed/foreman/templates/.env
|
98
|
-
- lib/generators/happy_seed/foreman/templates/.foreman
|
99
|
-
- lib/generators/happy_seed/foreman/templates/Procfile
|
100
|
-
- lib/generators/happy_seed/foreman/templates/app/controllers/setup_controller.rb
|
101
|
-
- lib/generators/happy_seed/foreman/templates/app/views/setup/index.html.haml
|
102
|
-
- lib/generators/happy_seed/foreman/templates/application_controller.rb
|
103
|
-
- lib/generators/happy_seed/foreman/templates/config/unicorn.rb
|
104
|
-
- lib/generators/happy_seed/foreman/templates/docs/README.00.base.rdoc
|
105
|
-
- lib/generators/happy_seed/foreman/templates/spec/controllers/application_controller_spec.rb
|
106
|
-
- lib/generators/happy_seed/foreman/templates/spec/controllers/setup_controller_spec.rb
|
107
118
|
- lib/generators/happy_seed/happy_seed_generator.rb
|
108
119
|
- lib/generators/happy_seed/instagram/instagram_generator.rb
|
109
120
|
- lib/generators/happy_seed/instagram/templates/docs/README.05.instagram.rdoc
|
@@ -117,6 +128,13 @@ files:
|
|
117
128
|
- lib/generators/happy_seed/omniauth/templates/docs/README.04.omniauth.rdoc
|
118
129
|
- lib/generators/happy_seed/omniauth/templates/spec/models/identity_spec.rb
|
119
130
|
- lib/generators/happy_seed/omniauth/templates/user.rb
|
131
|
+
- lib/generators/happy_seed/plugin/plugin_generator.rb
|
132
|
+
- lib/generators/happy_seed/plugin/templates/.autotest
|
133
|
+
- lib/generators/happy_seed/plugin/templates/.rspec
|
134
|
+
- lib/generators/happy_seed/plugin/templates/Rakefile
|
135
|
+
- lib/generators/happy_seed/plugin/templates/gemspec
|
136
|
+
- lib/generators/happy_seed/plugin/templates/spec/rails_helper.rb
|
137
|
+
- lib/generators/happy_seed/plugin/templates/spec/spec_helper.rb
|
120
138
|
- lib/generators/happy_seed/splash/splash_generator.rb
|
121
139
|
- lib/generators/happy_seed/splash/templates/app/assets/stylesheets/splash.css.scss
|
122
140
|
- lib/generators/happy_seed/splash/templates/app/controllers/splash_controller.rb
|
@@ -161,6 +179,8 @@ files:
|
|
161
179
|
- test/dummy/config/locales/en.yml
|
162
180
|
- test/dummy/config/routes.rb
|
163
181
|
- test/dummy/config/secrets.yml
|
182
|
+
- test/dummy/db/test.sqlite3
|
183
|
+
- test/dummy/log/test.log
|
164
184
|
- test/dummy/public/404.html
|
165
185
|
- test/dummy/public/422.html
|
166
186
|
- test/dummy/public/500.html
|
@@ -220,6 +240,8 @@ test_files:
|
|
220
240
|
- test/dummy/config/routes.rb
|
221
241
|
- test/dummy/config/secrets.yml
|
222
242
|
- test/dummy/config.ru
|
243
|
+
- test/dummy/db/test.sqlite3
|
244
|
+
- test/dummy/log/test.log
|
223
245
|
- test/dummy/public/404.html
|
224
246
|
- test/dummy/public/422.html
|
225
247
|
- test/dummy/public/500.html
|
@@ -1,34 +0,0 @@
|
|
1
|
-
HappySeed Base Install
|
2
|
-
=================
|
3
|
-
|
4
|
-
### What does this do?
|
5
|
-
|
6
|
-
The happy_seed application template sets up haml, meta-tags, disables turbolinks, and installs the happy_seed generators into your application.
|
7
|
-
|
8
|
-
The happy_seed:foreman generator installs dotenv-rails, unicorn, http site authentication, and the setup_controller.
|
9
|
-
|
10
|
-
/setup is used to see the happy_seed documentation for each of the installed generators, and copies things into the rails doc directory. The setup_controller is only visible locally.
|
11
|
-
|
12
|
-
### Why do you want this?
|
13
|
-
|
14
|
-
Haml is create and turbolinks make it impossible to correctly debug a site.
|
15
|
-
|
16
|
-
Using the .env file to manage configuration variables makes it much easier to keep track of what is needed in each environment, and sets you up to use heroku.
|
17
|
-
|
18
|
-
### Environment Variables
|
19
|
-
|
20
|
-
The AWS env variables are there for reference
|
21
|
-
|
22
|
-
If the HTTP_AUTH_* variables are set, application_controller will force them to be used for authentication to let people into the site. (The happy_seed:splash generator will not use this.)
|
23
|
-
|
24
|
-
```
|
25
|
-
AWS_ACCESS_KEY_ID=
|
26
|
-
AWS_SECRET_ACCESS_KEY=
|
27
|
-
S3_BUCKET_NAME=
|
28
|
-
HTTP_AUTH_USERNAME=
|
29
|
-
HTTP_AUTH_PASSWORD=
|
30
|
-
```
|
31
|
-
|
32
|
-
### What needs to be done?
|
33
|
-
|
34
|
-
At some point, you should remove the setup_controller from your application.
|