orats 0.9.7 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/.rubocop.yml +24 -0
- data/.travis.yml +9 -0
- data/README.md +103 -194
- data/bin/orats +2 -5
- data/lib/orats/cli.rb +6 -67
- data/lib/orats/cli_help/destroy +11 -0
- data/lib/orats/cli_help/new +2 -26
- data/lib/orats/commands/new.rb +127 -0
- data/lib/orats/common.rb +0 -29
- data/lib/orats/templates/base/.dockerignore +5 -0
- data/lib/orats/templates/base/.gitignore +22 -0
- data/lib/orats/templates/base/.rubocop.yml +29 -0
- data/lib/orats/templates/base/Dockerfile +102 -0
- data/lib/orats/templates/base/Gemfile +69 -0
- data/lib/orats/templates/base/Gemfile.lock +205 -0
- data/lib/orats/templates/base/README.md +24 -0
- data/lib/orats/templates/base/Rakefile +7 -0
- data/lib/orats/templates/base/app/assets/config/manifest.js +3 -0
- data/lib/orats/templates/base/app/assets/images/.keep +0 -0
- data/lib/orats/templates/base/app/assets/javascripts/application.js +33 -0
- data/lib/orats/templates/base/app/assets/javascripts/cable.js +14 -0
- data/lib/orats/templates/base/app/assets/javascripts/channels/.keep +0 -0
- data/lib/orats/templates/base/app/assets/stylesheets/application.scss +89 -0
- data/lib/orats/templates/base/app/channels/application_cable/channel.rb +4 -0
- data/lib/orats/templates/base/app/channels/application_cable/connection.rb +4 -0
- data/lib/orats/templates/base/app/controllers/application_controller.rb +3 -0
- data/lib/orats/templates/base/app/controllers/concerns/.keep +0 -0
- data/lib/orats/templates/base/app/controllers/pages_controller.rb +4 -0
- data/lib/orats/templates/base/app/helpers/application_helper.rb +31 -0
- data/lib/orats/templates/base/app/helpers/pages_helper.rb +2 -0
- data/lib/orats/templates/base/app/jobs/application_job.rb +2 -0
- data/lib/orats/templates/base/app/mailers/application_mailer.rb +4 -0
- data/lib/orats/templates/base/app/models/application_record.rb +3 -0
- data/lib/orats/templates/base/app/models/concerns/.keep +0 -0
- data/lib/orats/templates/{includes/new/rails → base}/app/views/layouts/_flash.html.erb +1 -1
- data/lib/orats/templates/base/app/views/layouts/_footer.html.erb +3 -0
- data/lib/orats/templates/{includes/new/rails/app/views/layouts/_google_analytics_snippet.html.erb → base/app/views/layouts/_google_analytics.html.erb} +5 -9
- data/lib/orats/templates/{includes/new/rails → base}/app/views/layouts/_navigation.html.erb +5 -4
- data/lib/orats/templates/base/app/views/layouts/application.html.erb +48 -0
- data/lib/orats/templates/base/app/views/layouts/mailer.html.erb +13 -0
- data/lib/orats/templates/base/app/views/layouts/mailer.text.erb +1 -0
- data/lib/orats/templates/base/app/views/pages/home.html.erb +46 -0
- data/lib/orats/templates/base/bin/bundle +3 -0
- data/lib/orats/templates/base/bin/rails +4 -0
- data/lib/orats/templates/base/bin/rake +4 -0
- data/lib/orats/templates/base/bin/setup +34 -0
- data/lib/orats/templates/base/bin/update +29 -0
- data/lib/orats/templates/base/cable/config.ru +4 -0
- data/lib/orats/templates/base/config.ru +5 -0
- data/lib/orats/templates/base/config/application.rb +71 -0
- data/lib/orats/templates/base/config/boot.rb +3 -0
- data/lib/orats/templates/base/config/cable.yml +14 -0
- data/lib/orats/templates/base/config/database.yml +13 -0
- data/lib/orats/templates/base/config/environment.rb +5 -0
- data/lib/orats/templates/base/config/environments/development.rb +49 -0
- data/lib/orats/templates/base/config/environments/production.rb +56 -0
- data/lib/orats/templates/base/config/environments/staging.rb +6 -0
- data/lib/orats/templates/base/config/environments/test.rb +40 -0
- data/lib/orats/templates/base/config/initializers/application_controller_renderer.rb +6 -0
- data/lib/orats/templates/base/config/initializers/assets.rb +12 -0
- data/lib/orats/templates/base/config/initializers/backtrace_silencers.rb +9 -0
- data/lib/orats/templates/base/config/initializers/cookies_serializer.rb +5 -0
- data/lib/orats/templates/base/config/initializers/filter_parameter_logging.rb +4 -0
- data/lib/orats/templates/base/config/initializers/inflections.rb +16 -0
- data/lib/orats/templates/base/config/initializers/mime_types.rb +4 -0
- data/lib/orats/templates/base/config/initializers/new_framework_defaults.rb +27 -0
- data/lib/orats/templates/base/config/initializers/session_store.rb +4 -0
- data/lib/orats/templates/{includes/new/rails → base}/config/initializers/sidekiq.rb +1 -4
- data/lib/orats/templates/base/config/initializers/timeout.rb +1 -0
- data/lib/orats/templates/base/config/initializers/wrap_parameters.rb +15 -0
- data/lib/orats/templates/base/config/locales/en.yml +23 -0
- data/lib/orats/templates/base/config/puma.rb +60 -0
- data/lib/orats/templates/base/config/routes.rb +3 -0
- data/lib/orats/templates/{includes/new/rails → base}/config/secrets.yml +3 -2
- data/lib/orats/templates/base/config/sidekiq.yml.erb +5 -0
- data/lib/orats/templates/base/config/spring.rb +6 -0
- data/lib/orats/templates/base/db/seeds.rb +9 -0
- data/lib/orats/templates/base/docker-compose.yml +59 -0
- data/lib/orats/templates/base/lib/assets/.keep +0 -0
- data/lib/orats/templates/base/lib/tasks/.keep +0 -0
- data/lib/orats/templates/base/log/.keep +0 -0
- data/lib/orats/templates/base/public/404.html +67 -0
- data/lib/orats/templates/base/public/422.html +67 -0
- data/lib/orats/templates/base/public/500.html +66 -0
- data/lib/orats/templates/base/public/apple-touch-icon-precomposed.png +0 -0
- data/lib/orats/templates/base/public/apple-touch-icon.png +0 -0
- data/lib/orats/templates/base/public/favicon.ico +0 -0
- data/lib/orats/templates/base/public/robots.txt +5 -0
- data/lib/orats/templates/base/test/controllers/.keep +0 -0
- data/lib/orats/templates/base/test/controllers/pages_controller_test.rb +9 -0
- data/lib/orats/templates/base/test/fixtures/.keep +0 -0
- data/lib/orats/templates/base/test/fixtures/files/.keep +0 -0
- data/lib/orats/templates/base/test/helpers/.keep +0 -0
- data/lib/orats/templates/base/test/integration/.keep +0 -0
- data/lib/orats/templates/base/test/mailers/.keep +0 -0
- data/lib/orats/templates/base/test/models/.keep +0 -0
- data/lib/orats/templates/base/test/test_helper.rb +11 -0
- data/lib/orats/templates/base/tmp/.keep +0 -0
- data/lib/orats/templates/base/vendor/assets/javascripts/.keep +0 -0
- data/lib/orats/templates/base/vendor/assets/stylesheets/.keep +0 -0
- data/lib/orats/ui.rb +5 -5
- data/lib/orats/util.rb +14 -0
- data/lib/orats/version.rb +1 -1
- data/orats.gemspec +3 -2
- data/test/integration/cli_test.rb +43 -65
- data/test/test_helper.rb +9 -58
- metadata +114 -66
- data/lib/orats/argv_adjust.rb +0 -61
- data/lib/orats/cli_help/nuke +0 -19
- data/lib/orats/commands/new/exec.rb +0 -59
- data/lib/orats/commands/new/rails.rb +0 -215
- data/lib/orats/commands/new/server.rb +0 -67
- data/lib/orats/commands/nuke.rb +0 -108
- data/lib/orats/postgres.rb +0 -92
- data/lib/orats/process.rb +0 -35
- data/lib/orats/redis.rb +0 -25
- data/lib/orats/shell.rb +0 -12
- data/lib/orats/templates/auth.rb +0 -394
- data/lib/orats/templates/base.rb +0 -546
- data/lib/orats/templates/includes/common/.gitignore +0 -6
- data/lib/orats/templates/includes/common/LICENSE +0 -22
- data/lib/orats/templates/includes/new/rails/.env +0 -59
- data/lib/orats/templates/includes/new/rails/Gemfile +0 -48
- data/lib/orats/templates/includes/new/rails/Procfile +0 -3
- data/lib/orats/templates/includes/new/rails/README.md +0 -3
- data/lib/orats/templates/includes/new/rails/app/assets/favicon/favicon_base.png +0 -0
- data/lib/orats/templates/includes/new/rails/app/helpers/application_helper.rb +0 -53
- data/lib/orats/templates/includes/new/rails/app/models/account.rb +0 -40
- data/lib/orats/templates/includes/new/rails/app/views/devise/confirmations/new.html.erb +0 -26
- data/lib/orats/templates/includes/new/rails/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
- data/lib/orats/templates/includes/new/rails/app/views/devise/mailer/reset_password_instructions.html.erb +0 -10
- data/lib/orats/templates/includes/new/rails/app/views/devise/mailer/unlock_instructions.html.erb +0 -8
- data/lib/orats/templates/includes/new/rails/app/views/devise/passwords/edit.html.erb +0 -28
- data/lib/orats/templates/includes/new/rails/app/views/devise/passwords/new.html.erb +0 -26
- data/lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb +0 -51
- data/lib/orats/templates/includes/new/rails/app/views/devise/registrations/new.html.erb +0 -31
- data/lib/orats/templates/includes/new/rails/app/views/devise/sessions/new.html.erb +0 -39
- data/lib/orats/templates/includes/new/rails/app/views/devise/shared/_links.html.erb +0 -38
- data/lib/orats/templates/includes/new/rails/app/views/devise/unlocks/new.html.erb +0 -26
- data/lib/orats/templates/includes/new/rails/app/views/layouts/_disqus_comments_snippet.html.erb +0 -19
- data/lib/orats/templates/includes/new/rails/app/views/layouts/_disqus_count_snippet.html.erb +0 -12
- data/lib/orats/templates/includes/new/rails/app/views/layouts/_footer.html.erb +0 -2
- data/lib/orats/templates/includes/new/rails/app/views/layouts/_navigation_auth.html.erb +0 -15
- data/lib/orats/templates/includes/new/rails/app/views/layouts/_navigation_links.html.erb +0 -3
- data/lib/orats/templates/includes/new/rails/app/views/layouts/application.html.erb +0 -47
- data/lib/orats/templates/includes/new/rails/app/views/pages/home.html.erb +0 -58
- data/lib/orats/templates/includes/new/rails/config/database.yml +0 -6
- data/lib/orats/templates/includes/new/rails/config/environments/staging.rb +0 -5
- data/lib/orats/templates/includes/new/rails/config/initializers/devise_async.rb +0 -1
- data/lib/orats/templates/includes/new/rails/config/initializers/mini_profiler.rb +0 -4
- data/lib/orats/templates/includes/new/rails/config/puma.rb +0 -39
- data/lib/orats/templates/includes/new/rails/config/schedule.rb +0 -3
- data/lib/orats/templates/includes/new/rails/config/sidekiq.yml +0 -7
- data/lib/orats/templates/includes/new/rails/config/sitemap.rb +0 -20
- data/lib/orats/templates/includes/new/rails/config/unicorn.rb +0 -84
- data/lib/orats/templates/includes/new/rails/lib/tasks/orats/favicon.rake +0 -48
- data/lib/orats/templates/includes/new/rails/public/404.html +0 -13
- data/lib/orats/templates/includes/new/rails/public/422.html +0 -13
- data/lib/orats/templates/includes/new/rails/public/500.html +0 -13
- data/lib/orats/templates/includes/new/rails/public/502.html +0 -13
- data/lib/orats/templates/includes/new/rails/public/deploy.html +0 -14
- data/lib/orats/templates/includes/new/rails/test/fixtures/accounts.yml +0 -27
- data/lib/orats/templates/includes/new/rails/test/models/account_test.rb +0 -46
@@ -0,0 +1,205 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
actioncable (5.0.0)
|
5
|
+
actionpack (= 5.0.0)
|
6
|
+
nio4r (~> 1.2)
|
7
|
+
websocket-driver (~> 0.6.1)
|
8
|
+
actionmailer (5.0.0)
|
9
|
+
actionpack (= 5.0.0)
|
10
|
+
actionview (= 5.0.0)
|
11
|
+
activejob (= 5.0.0)
|
12
|
+
mail (~> 2.5, >= 2.5.4)
|
13
|
+
rails-dom-testing (~> 2.0)
|
14
|
+
actionpack (5.0.0)
|
15
|
+
actionview (= 5.0.0)
|
16
|
+
activesupport (= 5.0.0)
|
17
|
+
rack (~> 2.0)
|
18
|
+
rack-test (~> 0.6.3)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
21
|
+
actionview (5.0.0)
|
22
|
+
activesupport (= 5.0.0)
|
23
|
+
builder (~> 3.1)
|
24
|
+
erubis (~> 2.7.0)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
activejob (5.0.0)
|
28
|
+
activesupport (= 5.0.0)
|
29
|
+
globalid (>= 0.3.6)
|
30
|
+
activemodel (5.0.0)
|
31
|
+
activesupport (= 5.0.0)
|
32
|
+
activerecord (5.0.0)
|
33
|
+
activemodel (= 5.0.0)
|
34
|
+
activesupport (= 5.0.0)
|
35
|
+
arel (~> 7.0)
|
36
|
+
activesupport (5.0.0)
|
37
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
38
|
+
i18n (~> 0.7)
|
39
|
+
minitest (~> 5.1)
|
40
|
+
tzinfo (~> 1.1)
|
41
|
+
arel (7.0.0)
|
42
|
+
autoprefixer-rails (6.3.7)
|
43
|
+
execjs
|
44
|
+
bootstrap-sass (3.3.6)
|
45
|
+
autoprefixer-rails (>= 5.2.1)
|
46
|
+
sass (>= 3.3.4)
|
47
|
+
builder (3.2.2)
|
48
|
+
byebug (9.0.5)
|
49
|
+
concurrent-ruby (1.0.2)
|
50
|
+
connection_pool (2.2.0)
|
51
|
+
debug_inspector (0.0.2)
|
52
|
+
erubis (2.7.0)
|
53
|
+
execjs (2.7.0)
|
54
|
+
ffi (1.9.12)
|
55
|
+
font-awesome-rails (4.6.3.1)
|
56
|
+
railties (>= 3.2, < 5.1)
|
57
|
+
globalid (0.3.6)
|
58
|
+
activesupport (>= 4.1.0)
|
59
|
+
i18n (0.7.0)
|
60
|
+
jbuilder (2.5.0)
|
61
|
+
activesupport (>= 3.0.0, < 5.1)
|
62
|
+
multi_json (~> 1.2)
|
63
|
+
jquery-rails (4.1.1)
|
64
|
+
rails-dom-testing (>= 1, < 3)
|
65
|
+
railties (>= 4.2.0)
|
66
|
+
thor (>= 0.14, < 2.0)
|
67
|
+
listen (3.0.8)
|
68
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
69
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
70
|
+
loofah (2.0.3)
|
71
|
+
nokogiri (>= 1.5.9)
|
72
|
+
mail (2.6.4)
|
73
|
+
mime-types (>= 1.16, < 4)
|
74
|
+
method_source (0.8.2)
|
75
|
+
mime-types (3.1)
|
76
|
+
mime-types-data (~> 3.2015)
|
77
|
+
mime-types-data (3.2016.0521)
|
78
|
+
mini_portile2 (2.1.0)
|
79
|
+
minitest (5.9.0)
|
80
|
+
multi_json (1.12.1)
|
81
|
+
nio4r (1.2.1)
|
82
|
+
nokogiri (1.6.8)
|
83
|
+
mini_portile2 (~> 2.1.0)
|
84
|
+
pkg-config (~> 1.1.7)
|
85
|
+
pg (0.18.4)
|
86
|
+
pkg-config (1.1.7)
|
87
|
+
puma (3.4.0)
|
88
|
+
rack (2.0.1)
|
89
|
+
rack-mini-profiler (0.10.1)
|
90
|
+
rack (>= 1.2.0)
|
91
|
+
rack-test (0.6.3)
|
92
|
+
rack (>= 1.0)
|
93
|
+
rack-timeout (0.4.2)
|
94
|
+
rails (5.0.0)
|
95
|
+
actioncable (= 5.0.0)
|
96
|
+
actionmailer (= 5.0.0)
|
97
|
+
actionpack (= 5.0.0)
|
98
|
+
actionview (= 5.0.0)
|
99
|
+
activejob (= 5.0.0)
|
100
|
+
activemodel (= 5.0.0)
|
101
|
+
activerecord (= 5.0.0)
|
102
|
+
activesupport (= 5.0.0)
|
103
|
+
bundler (>= 1.3.0, < 2.0)
|
104
|
+
railties (= 5.0.0)
|
105
|
+
sprockets-rails (>= 2.0.0)
|
106
|
+
rails-dom-testing (2.0.1)
|
107
|
+
activesupport (>= 4.2.0, < 6.0)
|
108
|
+
nokogiri (~> 1.6.0)
|
109
|
+
rails-html-sanitizer (1.0.3)
|
110
|
+
loofah (~> 2.0)
|
111
|
+
railties (5.0.0)
|
112
|
+
actionpack (= 5.0.0)
|
113
|
+
activesupport (= 5.0.0)
|
114
|
+
method_source
|
115
|
+
rake (>= 0.8.7)
|
116
|
+
thor (>= 0.18.1, < 2.0)
|
117
|
+
rake (11.2.2)
|
118
|
+
rb-fsevent (0.9.7)
|
119
|
+
rb-inotify (0.9.7)
|
120
|
+
ffi (>= 0.5.0)
|
121
|
+
redis (3.3.0)
|
122
|
+
redis-actionpack (5.0.0)
|
123
|
+
actionpack (>= 4.0.0, < 6)
|
124
|
+
redis-rack (~> 2.0.0.pre)
|
125
|
+
redis-store (~> 1.2.0.pre)
|
126
|
+
redis-activesupport (5.0.1)
|
127
|
+
activesupport (>= 3, < 6)
|
128
|
+
redis-store (~> 1.2.0)
|
129
|
+
redis-rack (2.0.0.pre)
|
130
|
+
rack (> 1.5, < 3)
|
131
|
+
redis-store (~> 1.2.0.pre)
|
132
|
+
redis-rails (5.0.1)
|
133
|
+
redis-actionpack (~> 5.0.0)
|
134
|
+
redis-activesupport (~> 5.0.0)
|
135
|
+
redis-store (~> 1.2.0)
|
136
|
+
redis-store (1.2.0)
|
137
|
+
redis (>= 2.2)
|
138
|
+
sass (3.4.22)
|
139
|
+
sass-rails (5.0.5)
|
140
|
+
railties (>= 4.0.0, < 6)
|
141
|
+
sass (~> 3.1)
|
142
|
+
sprockets (>= 2.8, < 4.0)
|
143
|
+
sprockets-rails (>= 2.0, < 4.0)
|
144
|
+
tilt (>= 1.1, < 3)
|
145
|
+
sidekiq (4.1.2)
|
146
|
+
concurrent-ruby (~> 1.0)
|
147
|
+
connection_pool (~> 2.2, >= 2.2.0)
|
148
|
+
redis (~> 3.2, >= 3.2.1)
|
149
|
+
spring (1.7.2)
|
150
|
+
spring-watcher-listen (2.0.0)
|
151
|
+
listen (>= 2.7, < 4.0)
|
152
|
+
spring (~> 1.2)
|
153
|
+
sprockets (3.6.3)
|
154
|
+
concurrent-ruby (~> 1.0)
|
155
|
+
rack (> 1, < 3)
|
156
|
+
sprockets-rails (3.1.1)
|
157
|
+
actionpack (>= 4.0)
|
158
|
+
activesupport (>= 4.0)
|
159
|
+
sprockets (>= 3.0.0)
|
160
|
+
thor (0.19.1)
|
161
|
+
thread_safe (0.3.5)
|
162
|
+
tilt (2.0.5)
|
163
|
+
turbolinks (5.0.0)
|
164
|
+
turbolinks-source (~> 5)
|
165
|
+
turbolinks-source (5.0.0)
|
166
|
+
tzinfo (1.2.2)
|
167
|
+
thread_safe (~> 0.1)
|
168
|
+
uglifier (3.0.0)
|
169
|
+
execjs (>= 0.3.0, < 3)
|
170
|
+
web-console (3.3.1)
|
171
|
+
actionview (>= 5.0)
|
172
|
+
activemodel (>= 5.0)
|
173
|
+
debug_inspector
|
174
|
+
railties (>= 5.0)
|
175
|
+
websocket-driver (0.6.4)
|
176
|
+
websocket-extensions (>= 0.1.0)
|
177
|
+
websocket-extensions (0.1.2)
|
178
|
+
|
179
|
+
PLATFORMS
|
180
|
+
ruby
|
181
|
+
|
182
|
+
DEPENDENCIES
|
183
|
+
bootstrap-sass (~> 3.3)
|
184
|
+
byebug
|
185
|
+
font-awesome-rails (~> 4.6)
|
186
|
+
jbuilder (~> 2.5)
|
187
|
+
jquery-rails
|
188
|
+
listen (~> 3.0.5)
|
189
|
+
pg (~> 0.18)
|
190
|
+
puma (~> 3.0)
|
191
|
+
rack-mini-profiler (~> 0.10)
|
192
|
+
rack-timeout (~> 0.4)
|
193
|
+
rails (~> 5.0.0)
|
194
|
+
redis-rails (~> 5.0.0.pre)
|
195
|
+
sass-rails (~> 5.0)
|
196
|
+
sidekiq (~> 4.1)
|
197
|
+
spring
|
198
|
+
spring-watcher-listen (~> 2.0.0)
|
199
|
+
turbolinks (~> 5)
|
200
|
+
tzinfo-data
|
201
|
+
uglifier (>= 1.3.0)
|
202
|
+
web-console
|
203
|
+
|
204
|
+
BUNDLED WITH
|
205
|
+
1.12.5
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
File without changes
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will
|
2
|
+
// include all the files
|
3
|
+
// listed below.
|
4
|
+
//
|
5
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts,
|
6
|
+
// vendor/assets/javascripts,
|
7
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here
|
8
|
+
// using a relative path.
|
9
|
+
//
|
10
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at
|
11
|
+
// the bottom of the compiled file. JavaScript code in this file should be
|
12
|
+
// added after the last require_* statement.
|
13
|
+
//
|
14
|
+
// Read Sprockets README:
|
15
|
+
// https://github.com/rails/sprockets#sprockets-directives) for details
|
16
|
+
// about supported directives.
|
17
|
+
//
|
18
|
+
//= require jquery
|
19
|
+
//= require jquery_ujs
|
20
|
+
//= require turbolinks
|
21
|
+
//= require bootstrap/affix
|
22
|
+
//= require bootstrap/alert
|
23
|
+
//= require bootstrap/button
|
24
|
+
//= require bootstrap/carousel
|
25
|
+
//= require bootstrap/collapse
|
26
|
+
//= require bootstrap/dropdown
|
27
|
+
//= require bootstrap/modal
|
28
|
+
//= require bootstrap/tooltip
|
29
|
+
//= require bootstrap/popover
|
30
|
+
//= require bootstrap/scrollspy
|
31
|
+
//= require bootstrap/tab
|
32
|
+
//= require bootstrap/transition
|
33
|
+
//= require_tree .
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
+
// You can generate new channels where WebSocket features live using the rails
|
3
|
+
// generate channel command.
|
4
|
+
//
|
5
|
+
//= require action_cable
|
6
|
+
//= require_self
|
7
|
+
//= require_tree ./channels
|
8
|
+
|
9
|
+
(function() {
|
10
|
+
this.App || (this.App = {});
|
11
|
+
|
12
|
+
App.cable = ActionCable.createConsumer();
|
13
|
+
|
14
|
+
}).call(this);
|
File without changes
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will
|
3
|
+
* include all the files listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets,
|
6
|
+
* vendor/assets/stylesheets, or any plugin's vendor/assets/stylesheets
|
7
|
+
* directory can be referenced here using a relative path.
|
8
|
+
*
|
9
|
+
* You're free to add application-wide styles to this file and they'll appear
|
10
|
+
* at the bottom of the compiled file so the styles you add here take
|
11
|
+
* precedence over styles defined in any other CSS/SCSS files in this
|
12
|
+
* directory. Styles in this file should be added after the last
|
13
|
+
* require_* statement.
|
14
|
+
*
|
15
|
+
*It is generally better to create a new file per style scope.
|
16
|
+
*
|
17
|
+
*= require_tree .
|
18
|
+
*= require font-awesome
|
19
|
+
*= require_self
|
20
|
+
*/
|
21
|
+
|
22
|
+
// Core variables and mixins
|
23
|
+
// @import "bootstrap-sprockets";
|
24
|
+
@import "bootstrap/variables";
|
25
|
+
@import "bootstrap/mixins";
|
26
|
+
|
27
|
+
// Reset
|
28
|
+
@import "bootstrap/normalize";
|
29
|
+
@import "bootstrap/print";
|
30
|
+
|
31
|
+
// Core CSS
|
32
|
+
@import "bootstrap/scaffolding";
|
33
|
+
@import "bootstrap/type";
|
34
|
+
@import "bootstrap/code";
|
35
|
+
@import "bootstrap/grid";
|
36
|
+
@import "bootstrap/tables";
|
37
|
+
@import "bootstrap/forms";
|
38
|
+
@import "bootstrap/buttons";
|
39
|
+
|
40
|
+
// Components
|
41
|
+
@import "bootstrap/component-animations";
|
42
|
+
// @import "bootstrap/glyphicons";
|
43
|
+
@import "bootstrap/dropdowns";
|
44
|
+
@import "bootstrap/button-groups";
|
45
|
+
@import "bootstrap/input-groups";
|
46
|
+
@import "bootstrap/navs";
|
47
|
+
@import "bootstrap/navbar";
|
48
|
+
@import "bootstrap/breadcrumbs";
|
49
|
+
@import "bootstrap/pagination";
|
50
|
+
@import "bootstrap/pager";
|
51
|
+
@import "bootstrap/labels";
|
52
|
+
@import "bootstrap/badges";
|
53
|
+
@import "bootstrap/jumbotron";
|
54
|
+
@import "bootstrap/thumbnails";
|
55
|
+
@import "bootstrap/alerts";
|
56
|
+
@import "bootstrap/progress-bars";
|
57
|
+
@import "bootstrap/media";
|
58
|
+
@import "bootstrap/list-group";
|
59
|
+
@import "bootstrap/panels";
|
60
|
+
@import "bootstrap/wells";
|
61
|
+
@import "bootstrap/close";
|
62
|
+
|
63
|
+
// Components w/ JavaScript
|
64
|
+
@import "bootstrap/modals";
|
65
|
+
@import "bootstrap/tooltip";
|
66
|
+
@import "bootstrap/popovers";
|
67
|
+
@import "bootstrap/carousel";
|
68
|
+
|
69
|
+
// Utility classes
|
70
|
+
@import "bootstrap/utilities";
|
71
|
+
@import "bootstrap/responsive-utilities";
|
72
|
+
|
73
|
+
.alert-notice {
|
74
|
+
@extend .alert-success;
|
75
|
+
}
|
76
|
+
|
77
|
+
.alert-alert {
|
78
|
+
@extend .alert-danger;
|
79
|
+
}
|
80
|
+
|
81
|
+
img {
|
82
|
+
@extend .img-responsive;
|
83
|
+
}
|
84
|
+
|
85
|
+
.validation-error {
|
86
|
+
margin-top: 2px;
|
87
|
+
color: $brand-danger;
|
88
|
+
font-size: $font-size-small;
|
89
|
+
}
|
File without changes
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module ApplicationHelper
|
2
|
+
def title(page_title)
|
3
|
+
content_for(:title) { page_title }
|
4
|
+
end
|
5
|
+
|
6
|
+
def meta_description(page_meta_description)
|
7
|
+
content_for(:meta_description) { page_meta_description }
|
8
|
+
end
|
9
|
+
|
10
|
+
def heading(page_heading)
|
11
|
+
content_for(:heading) { page_heading }
|
12
|
+
end
|
13
|
+
|
14
|
+
def humanize_boolean(input)
|
15
|
+
input ||= ''
|
16
|
+
case input.to_s.downcase
|
17
|
+
when 't', 'true'
|
18
|
+
'Yes'
|
19
|
+
else
|
20
|
+
'No'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def css_for_boolean(input)
|
25
|
+
if input
|
26
|
+
'success'
|
27
|
+
else
|
28
|
+
'danger'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|