hackathon_manager 0.4.2 → 0.4.3
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/README.md +1 -0
- data/app/mailers/application_mailer.rb +1 -1
- data/app/views/bus_lists/show.html.haml +7 -8
- data/app/views/layouts/hackathon_manager.html.haml +1 -0
- data/app/views/layouts/manage/application.html.haml +1 -1
- data/app/views/mailer/bus_captain_confirmation_email.html.erb +1 -1
- data/app/views/mailer/rsvp_confirmation_email.html.erb +0 -1
- data/config/initializers/0_hackathon.rb +3 -0
- data/config/initializers/devise.rb +1 -1
- data/lib/hackathon_manager.rb +11 -1
- data/lib/hackathon_manager/engine.rb +12 -0
- data/lib/hackathon_manager/version.rb +1 -1
- metadata +3 -4
- data/app/views/mailer/_questions.html.erb +0 -2
- data/config/initializers/hackathon.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4724f373322d63b97bdcd2206ae8800d46df4bbe
|
4
|
+
data.tar.gz: 6455037f0ed30a72f2ca03ba9b468e8335f7aa11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd86e390f0b33e90c170d991ad8a20d72e2cf9991d6a37aed9397f1683b38b7e220b0372128181b4c862e4b1c21bee10d070b7dd452f2daf2dfa2171999ec1f
|
7
|
+
data.tar.gz: '09dfd27814dd8534898dd002702aa540f5e3b4c5bd906ab1f570fed2f564e16714d7ca147a82302ec7809083fc9a7d43106ffee1d9b1d018b3b5b3e74cd43bc6'
|
data/README.md
CHANGED
@@ -57,6 +57,7 @@ And finally, create the a `config/hackathon.yml` with the contents from [test/du
|
|
57
57
|
|
58
58
|
### Customization
|
59
59
|
|
60
|
+
* **Content**: Various constants are configured in your own app's `config/hackathon.yml`. Example configs: [dummy]([test/dummy/config/hackathon.yml](test/dummy/config/hackathon.yml)), [brickhack](https://github.com/codeRIT/brickhack.io/blob/develop/config/hackathon.yml).
|
60
61
|
* **Emails**: The default email templates are located at [`/app/views/mailer`](https://github.com/codeRIT/brickhack.io/tree/develop/app/views/mailer). You can override these templates by copying the specific template(s) to the same `/app/views/mailer` in your Rails app and making the changes you need.
|
61
62
|
* **Styling**: The style for management, application, and RSVP pages can be customized by modifying your Rails app's `/app/assets/stylesheets/variable-overrides.sass` file. You can see the defaults in the hackathon_manager [`varaibles.sass`](https://github.com/codeRIT/hackathon_manager/blob/master/app/assets/stylesheets/variables.sass). The style for all other pages is controlled by your own stylesheets - hackathon_manager does not control those.
|
62
63
|
|
@@ -4,14 +4,13 @@
|
|
4
4
|
|
5
5
|
%p Thank you for being a bus captain! Below is any information you may need about your passengers.
|
6
6
|
|
7
|
-
%
|
8
|
-
|
9
|
-
%
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
!
|
7
|
+
%p
|
8
|
+
If a student was accepted but didn't RSVP or sign up for the bus, they can go to
|
9
|
+
%strong= rsvp_url
|
10
|
+
to do so.
|
11
|
+
|
12
|
+
- if Rails.configuration.hackathon['bus_captain_notes']
|
13
|
+
= markdown(Rails.configuration.hackathon['bus_captain_notes'])
|
15
14
|
|
16
15
|
%p
|
17
16
|
%b Bus List Name:
|
@@ -8,7 +8,6 @@
|
|
8
8
|
%body
|
9
9
|
= render "layouts/sidebar"
|
10
10
|
= javascript_include_tag "hackathon_manager/manage/application"
|
11
|
-
= render "layouts/shared_footer"
|
12
11
|
#main
|
13
12
|
#manageNav
|
14
13
|
%p #{Rails.configuration.hackathon['name']} Manager
|
@@ -24,3 +23,4 @@
|
|
24
23
|
= link_to "Sidekiq", sidekiq_web_path
|
25
24
|
= link_to "Blazer", blazer_path
|
26
25
|
= yield
|
26
|
+
= render "layouts/shared_footer"
|
@@ -9,4 +9,4 @@
|
|
9
9
|
</p>
|
10
10
|
<p>This will be the central source of truth for passengers & bus information, in addition to anything you hear from our travel director.</p>
|
11
11
|
<p>This also means your <strong>name, email, and phone number</strong> are visible to everyone riding the bus. This information is taken straight from your <%= Rails.configuration.hackathon['name'] %> application, so please make sure it is up to date! You can check this at <a href="https://brickhack.io/apply">https://brickhack.io/apply</a></p>
|
12
|
-
<p>Again, thank you so much for being a bus captain! If you have any questions at all, feel free to reach out
|
12
|
+
<p>Again, thank you so much for being a bus captain! If you have any questions at all, feel free to reach out. We can't wait to see you at <%= Rails.configuration.hackathon['name'] %>!</p>
|
@@ -3,4 +3,3 @@
|
|
3
3
|
<p><strong>If you can no longer attend, please let us know so we can open the spot to someone else. <a href="https://brickhack.io/rsvp/deny" target="_blank">I Can No Longer Attend »</a></strong></p>
|
4
4
|
<h3>Meet Other Hackers</h3>
|
5
5
|
<p>Join our <a href="https://www.facebook.com/groups/brickhack3attendees/" target="_blank">Facebook Group</a> to get in touch with other attendees. This will be the best way to find teammates if you don't have a team already!</p>
|
6
|
-
<%= render 'questions' %>
|
@@ -10,7 +10,7 @@ Devise.setup do |config|
|
|
10
10
|
# Configure the e-mail address which will be shown in Devise::Mailer,
|
11
11
|
# note that it will be overwritten if you use your own mailer class
|
12
12
|
# with default "from" parameter.
|
13
|
-
config.mailer_sender =
|
13
|
+
config.mailer_sender = Rails.configuration.hackathon['email_from']
|
14
14
|
|
15
15
|
# Configure the class responsible to send e-mails.
|
16
16
|
# config.mailer = 'Devise::Mailer'
|
data/lib/hackathon_manager.rb
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
require "hackathon_manager/engine"
|
2
2
|
|
3
3
|
module HackathonManager
|
4
|
-
|
4
|
+
def self.reload_config(app)
|
5
|
+
hackathon = app.config_for(:hackathon)
|
6
|
+
|
7
|
+
# Applications without a specified config.time_zone will parse
|
8
|
+
# this as a string instead of a DateTime
|
9
|
+
if hackathon['last_day_to_apply'].is_a?(String)
|
10
|
+
hackathon['last_day_to_apply'] = DateTime.parse(hackathon['last_day_to_apply'])
|
11
|
+
end
|
12
|
+
|
13
|
+
app.config.hackathon = hackathon
|
14
|
+
end
|
5
15
|
end
|
@@ -15,6 +15,18 @@ module HackathonManager
|
|
15
15
|
]
|
16
16
|
end
|
17
17
|
|
18
|
+
# Watch hackathon.yml for changes & reload
|
19
|
+
initializer "hackathon_manager.watch_hackathon_config", after: :load_config_initializers do |app|
|
20
|
+
hackathon_config_reloader = app.config.file_watcher.new(['config/hackathon.yml']) do
|
21
|
+
HackathonManager.reload_config(app)
|
22
|
+
end
|
23
|
+
|
24
|
+
app.reloaders << hackathon_config_reloader
|
25
|
+
|
26
|
+
# Reload renderers in dev when files change
|
27
|
+
app.config.to_prepare { hackathon_config_reloader.execute_if_updated }
|
28
|
+
end
|
29
|
+
|
18
30
|
# Initializer to combine this engines static assets with the static assets of the hosting site.
|
19
31
|
initializer "static assets" do |app|
|
20
32
|
app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hackathon_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Olivera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -536,7 +536,6 @@ files:
|
|
536
536
|
- app/views/layouts/hackathon_manager.html.haml
|
537
537
|
- app/views/layouts/mailer.html.erb
|
538
538
|
- app/views/layouts/manage/application.html.haml
|
539
|
-
- app/views/mailer/_questions.html.erb
|
540
539
|
- app/views/mailer/accepted_email.html.erb
|
541
540
|
- app/views/mailer/application_confirmation_email.html.erb
|
542
541
|
- app/views/mailer/bulk_message_email.html.erb
|
@@ -584,10 +583,10 @@ files:
|
|
584
583
|
- app/workers/bulk_message_worker.rb
|
585
584
|
- app/workers/slack_invite_worker.rb
|
586
585
|
- config/blazer.yml
|
586
|
+
- config/initializers/0_hackathon.rb
|
587
587
|
- config/initializers/ajax_datatables_rails.rb
|
588
588
|
- config/initializers/chartkick.rb
|
589
589
|
- config/initializers/devise.rb
|
590
|
-
- config/initializers/hackathon.rb
|
591
590
|
- config/initializers/mime_types.rb
|
592
591
|
- config/initializers/new_framework_defaults.rb
|
593
592
|
- config/initializers/sidekiq.rb
|
@@ -1,2 +0,0 @@
|
|
1
|
-
<h3>Questions?</h3>
|
2
|
-
<p>If you have any questions, please check out our <a href="https://brickhack.io/#faq" target="_blank">FAQ</a>. You can also email <a href="mailto:travel@codeRIT.org">travel@codeRIT.org</a> with travel-related questions, or <a href="mailto:hello@codeRIT.org">hello@codeRIT.org</a> with general questions.</p>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
Rails.application.configure do
|
2
|
-
config.hackathon = config_for(:hackathon)
|
3
|
-
|
4
|
-
# Applications without a specified config.time_zone will parse
|
5
|
-
# this as a string instead of a DateTime
|
6
|
-
if config.hackathon['last_day_to_apply'].is_a?(String)
|
7
|
-
config.hackathon['last_day_to_apply'] = DateTime.parse(config.hackathon['last_day_to_apply'])
|
8
|
-
end
|
9
|
-
end
|