bookends 2.8.0 → 3.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -8
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-book.eot +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-book.svg +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-book.ttf +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-book.woff +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-medium.eot +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-medium.svg +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-medium.ttf +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-medium.woff +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-regular.eot +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-regular.svg +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-regular.ttf +0 -0
- data/{fixtures/dummy-rails/app → app}/assets/fonts/bentonsans-regular.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/fonts/hk-icon.eot +0 -0
- data/app/assets/fonts/hk-icon.svg +268 -0
- data/app/assets/fonts/hk-icon.ttf +0 -0
- data/app/assets/fonts/hk-icon.woff +0 -0
- data/app/assets/fonts/inconsolata-bold.eot +0 -0
- data/app/assets/fonts/inconsolata-bold.svg +239 -0
- data/app/assets/fonts/inconsolata-bold.ttf +0 -0
- data/app/assets/fonts/inconsolata-bold.woff +0 -0
- data/app/assets/fonts/inconsolata-regular.eot +0 -0
- data/app/assets/fonts/inconsolata-regular.svg +239 -0
- data/app/assets/fonts/inconsolata-regular.ttf +0 -0
- data/app/assets/fonts/inconsolata-regular.woff +0 -0
- data/{lib/bookends/templates/footer_images → app/assets/images/bookends/footer}/footer_sprite.png +0 -0
- data/app/assets/images/bookends/footer/footer_sprite@2x.png +0 -0
- data/{lib/bookends/templates/footer_images → app/assets/images/bookends/footer}/salesforce.png +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/dashboard.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/databases.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/dataclips.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/docs.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/elements.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/heroku-logo.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/navigator-purple.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/navigator.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/settings.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/signout.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/glostick_icons/support.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/addons.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/buildpacks.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/buttons.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/connect.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/elements-information.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/enterprise.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/platform.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/postgres.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/redis.svg +0 -0
- data/{lib/bookends/templates → app/assets/images/bookends}/icons/teams.svg +0 -0
- data/app/assets/images/logo.svg +14 -0
- data/app/assets/images/nav-dropdown-caret.svg +16 -0
- data/app/assets/javascripts/blog-fetcher.js +131 -0
- data/{fixtures/dummy-rails/app/assets/javascripts/application.js → app/assets/javascripts/bookends.js} +1 -2
- data/{lib/bookends/templates/js → app/assets/javascripts}/header.js +0 -0
- data/app/assets/javascripts/heroku-namespace.js +1 -0
- data/app/assets/javascripts/lscache.js +359 -0
- data/{lib/bookends/templates/js → app/assets/javascripts}/md5.js +0 -0
- data/app/assets/javascripts/moment.js +3195 -0
- data/{lib/bookends/templates/js → app/assets/javascripts}/newsletter-init.js +1 -1
- data/{lib/bookends/templates/js → app/assets/javascripts}/newsletter.js +0 -0
- data/app/assets/stylesheets/bookends/_base.scss +21 -0
- data/app/assets/stylesheets/bookends/_colors.scss +62 -0
- data/app/assets/stylesheets/bookends/_fonts.scss +12 -0
- data/{lib/bookends/templates/scss/footer.scss → app/assets/stylesheets/bookends/_footer.scss} +17 -14
- data/{lib/bookends/templates/scss/glostick.scss → app/assets/stylesheets/bookends/_glostick.scss} +0 -0
- data/app/assets/stylesheets/bookends/_grid-settings.scss +18 -0
- data/app/assets/stylesheets/bookends/_header.scss +745 -0
- data/app/assets/stylesheets/bookends/_mixins.scss +72 -0
- data/app/assets/stylesheets/bookends/_responsive.scss +129 -0
- data/app/assets/stylesheets/bookends/_variables.scss +82 -0
- data/app/assets/stylesheets/bookends/bookends.scss +13 -0
- data/app/controllers/bookends/application_controller.rb +5 -0
- data/app/helpers/bookends/application_helper.rb +93 -0
- data/{lib/bookends/templates/footer.html → app/views/bookends/_footer.html.erb} +4 -6
- data/{lib/bookends/templates/rails_header.html.erb → app/views/bookends/_header.html.erb} +1 -2
- data/config/routes.rb +2 -0
- data/lib/bookends.rb +2 -2
- data/lib/bookends/config.rb +24 -0
- data/lib/bookends/engine.rb +15 -2
- data/lib/bookends/version.rb +1 -1
- data/lib/tasks/bookends_tasks.rake +4 -0
- metadata +221 -152
- data/.gitignore +0 -17
- data/.rspec +0 -2
- data/.ruby-version +0 -1
- data/.travis.yml +0 -8
- data/Gemfile +0 -4
- data/bin/bookends +0 -5
- data/bin/setup +0 -7
- data/bookends.gemspec +0 -31
- data/fixtures/dummy-jekyll/.gitkeep +0 -0
- data/fixtures/dummy-rails/README.md +0 -9
- data/fixtures/dummy-rails/Rakefile +0 -6
- data/fixtures/dummy-rails/app/assets/images/.keep +0 -0
- data/fixtures/dummy-rails/app/assets/images/bookends/footer/footer_sprite.png +0 -0
- data/fixtures/dummy-rails/app/assets/images/bookends/footer/footer_sprite@2x.png +0 -0
- data/fixtures/dummy-rails/app/assets/images/bookends/footer/salesforce_heroku_gray.png +0 -0
- data/fixtures/dummy-rails/app/assets/stylesheets/application.css.scss +0 -11
- data/fixtures/dummy-rails/app/controllers/application_controller.rb +0 -5
- data/fixtures/dummy-rails/app/controllers/concerns/.keep +0 -0
- data/fixtures/dummy-rails/app/controllers/pages_controller.rb +0 -5
- data/fixtures/dummy-rails/app/helpers/application_helper.rb +0 -2
- data/fixtures/dummy-rails/app/mailers/.keep +0 -0
- data/fixtures/dummy-rails/app/models/.keep +0 -0
- data/fixtures/dummy-rails/app/models/concerns/.keep +0 -0
- data/fixtures/dummy-rails/app/views/layouts/application.html.erb +0 -16
- data/fixtures/dummy-rails/app/views/pages/home.html.erb +0 -1
- data/fixtures/dummy-rails/bin/bundle +0 -3
- data/fixtures/dummy-rails/bin/rails +0 -4
- data/fixtures/dummy-rails/bin/rake +0 -4
- data/fixtures/dummy-rails/bin/setup +0 -29
- data/fixtures/dummy-rails/config.ru +0 -4
- data/fixtures/dummy-rails/config/application.rb +0 -34
- data/fixtures/dummy-rails/config/boot.rb +0 -5
- data/fixtures/dummy-rails/config/database.yml +0 -25
- data/fixtures/dummy-rails/config/environment.rb +0 -5
- data/fixtures/dummy-rails/config/environments/development.rb +0 -41
- data/fixtures/dummy-rails/config/environments/production.rb +0 -79
- data/fixtures/dummy-rails/config/environments/test.rb +0 -42
- data/fixtures/dummy-rails/config/initializers/assets.rb +0 -11
- data/fixtures/dummy-rails/config/initializers/backtrace_silencers.rb +0 -7
- data/fixtures/dummy-rails/config/initializers/cookies_serializer.rb +0 -3
- data/fixtures/dummy-rails/config/initializers/filter_parameter_logging.rb +0 -4
- data/fixtures/dummy-rails/config/initializers/inflections.rb +0 -16
- data/fixtures/dummy-rails/config/initializers/mime_types.rb +0 -4
- data/fixtures/dummy-rails/config/initializers/session_store.rb +0 -3
- data/fixtures/dummy-rails/config/initializers/wrap_parameters.rb +0 -14
- data/fixtures/dummy-rails/config/locales/en.yml +0 -23
- data/fixtures/dummy-rails/config/routes.rb +0 -6
- data/fixtures/dummy-rails/config/secrets.yml +0 -22
- data/fixtures/dummy-rails/db/development.sqlite3 +0 -0
- data/fixtures/dummy-rails/lib/assets/.keep +0 -0
- data/fixtures/dummy-rails/public/404.html +0 -67
- data/fixtures/dummy-rails/public/422.html +0 -67
- data/fixtures/dummy-rails/public/500.html +0 -66
- data/fixtures/dummy-rails/public/favicon.ico +0 -0
- data/lib/bookends/cli.rb +0 -95
- data/lib/bookends/config/framework.rb +0 -24
- data/lib/bookends/config/turbolinks.rb +0 -18
- data/lib/bookends/file_actions.rb +0 -13
- data/lib/bookends/flag_handler.rb +0 -17
- data/lib/bookends/jekyll_handler.rb +0 -25
- data/lib/bookends/rails_handler.rb +0 -41
- data/lib/bookends/templates/bookends_helper.rb +0 -63
- data/lib/bookends/templates/bookends_helper_spec.rb +0 -57
- data/lib/bookends/templates/footer_images/footer_sprite@2x.png +0 -0
- data/lib/bookends/templates/icons/kafka.svg +0 -37
- data/lib/bookends/templates/icons/spaces.svg +0 -1
- data/lib/bookends/templates/jekyll_header.html +0 -102
- data/lib/bookends/templates/js/header-turbolinks.js +0 -18
- data/lib/bookends/templates/js/newsletter-init-turbolinks.js +0 -6
- data/lib/bookends/templates/scss/bookends.scss +0 -21
@@ -1,11 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Version of your assets, change this if you want to expire all your assets.
|
4
|
-
Rails.application.config.assets.version = '1.0'
|
5
|
-
|
6
|
-
# Add additional assets to the asset load path
|
7
|
-
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
-
|
9
|
-
# Precompile additional assets.
|
10
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
-
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format. Inflections
|
4
|
-
# are locale specific, and you may define rules for as many different
|
5
|
-
# locales as you wish. All of these examples are active by default:
|
6
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
-
# inflect.singular /^(ox)en/i, '\1'
|
9
|
-
# inflect.irregular 'person', 'people'
|
10
|
-
# inflect.uncountable %w( fish sheep )
|
11
|
-
# end
|
12
|
-
|
13
|
-
# These inflection rules are supported but not enabled by default:
|
14
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
-
# inflect.acronym 'RESTful'
|
16
|
-
# end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
-
# is enabled by default.
|
5
|
-
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
-
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
-
end
|
10
|
-
|
11
|
-
# To enable root element in JSON for ActiveRecord objects.
|
12
|
-
# ActiveSupport.on_load(:active_record) do
|
13
|
-
# self.include_root_in_json = true
|
14
|
-
# end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
-
# than English, add the necessary files in this directory.
|
4
|
-
#
|
5
|
-
# To use the locales, use `I18n.t`:
|
6
|
-
#
|
7
|
-
# I18n.t 'hello'
|
8
|
-
#
|
9
|
-
# In views, this is aliased to just `t`:
|
10
|
-
#
|
11
|
-
# <%= t('hello') %>
|
12
|
-
#
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
14
|
-
#
|
15
|
-
# I18n.locale = :es
|
16
|
-
#
|
17
|
-
# This would use the information in config/locales/es.yml.
|
18
|
-
#
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
-
|
22
|
-
en:
|
23
|
-
hello: "Hello world"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
|
6
|
-
# Make sure the secret is at least 30 characters and all random,
|
7
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
-
# You can use `rake secret` to generate a secure secret key.
|
9
|
-
|
10
|
-
# Make sure the secrets in this file are kept private
|
11
|
-
# if you're sharing your code publicly.
|
12
|
-
|
13
|
-
development:
|
14
|
-
secret_key_base: 41776924b4a9cbe40255fede36b0f8bd7101c31804a7f1e5b98d6422d744cd4c739b241d726de19c87b3c51bb7d2258bbfea44dee3422ad726bf6562b3fd4b5a
|
15
|
-
|
16
|
-
test:
|
17
|
-
secret_key_base: b5e895323ab61bb9526f24c367a532c8e5d302746bae3b22c9a7d119b852864e46615fa50f42cb0a2408806cbc224108b936ed0a50cbea41e5c94a5c7cb12956
|
18
|
-
|
19
|
-
# Do not keep production secrets in the repository,
|
20
|
-
# instead read values from the environment.
|
21
|
-
production:
|
22
|
-
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
File without changes
|
File without changes
|
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/404.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/422.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|
data/lib/bookends/cli.rb
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
require 'bookends'
|
2
|
-
require 'thor'
|
3
|
-
require 'ostruct'
|
4
|
-
|
5
|
-
require_relative 'rails_handler'
|
6
|
-
require_relative 'jekyll_handler'
|
7
|
-
require_relative 'flag_handler'
|
8
|
-
require_relative 'config/framework'
|
9
|
-
require_relative 'config/turbolinks'
|
10
|
-
|
11
|
-
module Bookends
|
12
|
-
class CLI < Thor
|
13
|
-
at_exit { puts "\nThank you for using Bookends v#{Bookends::VERSION}" }
|
14
|
-
@@post_install_messages = ["\n", "\n"]
|
15
|
-
|
16
|
-
desc "install", "Installs bookends"
|
17
|
-
option :app
|
18
|
-
def install
|
19
|
-
ask_about_app unless valid_app_flag?
|
20
|
-
move_files
|
21
|
-
puts @@post_install_messages
|
22
|
-
end
|
23
|
-
|
24
|
-
private
|
25
|
-
def valid_app_flag?
|
26
|
-
return false unless options[:app]
|
27
|
-
|
28
|
-
Bookends::FlagHandler.handle_app_flag(options[:app], config)
|
29
|
-
end
|
30
|
-
|
31
|
-
def ask_about_app
|
32
|
-
ask_for_framework
|
33
|
-
ask_about_turbolinks if rails?
|
34
|
-
end
|
35
|
-
|
36
|
-
def move_files
|
37
|
-
self.send "handle_#{config.framework.get}"
|
38
|
-
end
|
39
|
-
|
40
|
-
def handle_rails
|
41
|
-
add_rails_post_install_messages
|
42
|
-
Bookends::RailsHandler.new.install(config)
|
43
|
-
end
|
44
|
-
|
45
|
-
def handle_jekyll
|
46
|
-
add_jekyll_post_install_messages
|
47
|
-
Bookends::JekyllHandler.new.install
|
48
|
-
end
|
49
|
-
|
50
|
-
def ask_about_turbolinks
|
51
|
-
if yes? 'Are you using Turbolinks? [y/n]'
|
52
|
-
config.turbolinks.set true
|
53
|
-
else
|
54
|
-
config.turbolinks.set false
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
def ask_for_framework
|
59
|
-
if yes? 'Are you using Ruby on Rails? [y/n]'
|
60
|
-
config.framework.set :rails
|
61
|
-
elsif yes? 'Are you using Jekyll? [y/n]'
|
62
|
-
config.framework.set :jekyll
|
63
|
-
else
|
64
|
-
say 'Bookends only supports Ruby on Rails and Jekyll right now; sorry'
|
65
|
-
exit
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
def config
|
70
|
-
@config ||= OpenStruct.new(
|
71
|
-
framework: Bookends::Config::Framework.new,
|
72
|
-
turbolinks: Bookends::Config::Turbolinks.new
|
73
|
-
)
|
74
|
-
end
|
75
|
-
|
76
|
-
def rails?
|
77
|
-
config.framework.rails?
|
78
|
-
end
|
79
|
-
|
80
|
-
def add_rails_post_install_messages
|
81
|
-
add_to_post_install_messages([
|
82
|
-
"Please ensure that gem 'fernet', '~> 2.2' is in your Gemfile"
|
83
|
-
])
|
84
|
-
end
|
85
|
-
|
86
|
-
def add_jekyll_post_install_messages
|
87
|
-
add_to_post_install_messages([
|
88
|
-
])
|
89
|
-
end
|
90
|
-
|
91
|
-
def add_to_post_install_messages(collection)
|
92
|
-
collection.map { |msg| @@post_install_messages << msg }
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Bookends
|
2
|
-
module Config
|
3
|
-
class Framework
|
4
|
-
|
5
|
-
attr_accessor :framework
|
6
|
-
|
7
|
-
def set(framework)
|
8
|
-
self.framework = framework
|
9
|
-
end
|
10
|
-
|
11
|
-
def get
|
12
|
-
framework
|
13
|
-
end
|
14
|
-
|
15
|
-
def rails?
|
16
|
-
framework == :rails
|
17
|
-
end
|
18
|
-
|
19
|
-
def jekyll?
|
20
|
-
framework == :jekyll
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|