hackathon_manager 0.4.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96832db5f9a50e511404a589a199df7b0f9bb75a
4
- data.tar.gz: 53be2d0062aca66911498ba43db1d346e7f8cdf5
3
+ metadata.gz: 10ada44c422fef916f3f8ff3523e1e79295130b9
4
+ data.tar.gz: cbd65ffc0718a35379a357513b26eb8261c0b172
5
5
  SHA512:
6
- metadata.gz: c51bcc3e382909fc1d4695668a89446529930e18f93a6b26c5d74d6355fd99b287242e6cd66a136c9218122af9902a4a9eafef98b0dfbf5368180cc1fd5ea01e
7
- data.tar.gz: 20422fcae9c759c67cf402b21975cc988cf4018c5452fb86f3acc078adfaaf849c6e2ae9a4b19a4c116cb3498918301f7c86856e2a5402b825fefe9bd6cdf991
6
+ metadata.gz: 041cb1c01079842c38c1a00c871b17420798d938bc1b6b569edf3ab19299bcfd5fbdcdcd175c7318af12190f0d11c43114e8046873c9fb00c53bc2b9d6371fcb
7
+ data.tar.gz: 0ce36a1fdf7e8cc26033f0714d880dce350e15eafe3caba2ace831a2d7b901fe802c3d678b717c82a19a8b2f2448c3b22ed4a0a500876061f4e9d69650623594
data/README.md CHANGED
@@ -77,3 +77,4 @@ The gem is available as open source under the terms of the [MIT License](http://
77
77
  # IMPORTANT
78
78
 
79
79
  * Set a `root to:` (root path)
80
+ * Add `HackathonManager::Engine.load_seed` to your app's `db/seeds.rb`, then run `rails db:seed`
@@ -1,3 +1,4 @@
1
+ @import '../variables'
1
2
  @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600')
2
3
 
3
4
  body
@@ -63,7 +64,7 @@ h1, h2
63
64
  font-weight: 300
64
65
  text-transform: uppercase
65
66
  font-size: 36px
66
- color: #f58625
67
+ color: $primary
67
68
 
68
69
  h3
69
70
  font-weight: 600
@@ -95,7 +96,7 @@ h1.center,h2.center,h3.center,h4.center,h5.center,h6.center,p.center
95
96
  text-align: center
96
97
 
97
98
  .button
98
- background: #3413ac
99
+ background: $secondary
99
100
  display: inline-block
100
101
  padding: 0.8em 1.5em
101
102
  font-size: 15px
@@ -2,7 +2,7 @@ if defined?(ActionMailer::Preview)
2
2
  class MailPreview < ActionMailer::Preview
3
3
  def application_confirmation_email
4
4
  questionnaire = Questionnaire.first
5
- Mailer.application_confirmation_email(questionnaire)
5
+ Mailer.application_confirmation_email(questionnaire.id)
6
6
  end
7
7
 
8
8
  def rsvp_confirmation_email
@@ -1,6 +1,6 @@
1
1
  <h2>Finish Your Application</h2>
2
2
  <p>You're almost there! You completed the My MLH part of the application, but didn't finish the additional <%= Rails.configuration.hackathon['name'] %>-specific questions.</p>
3
3
  <p><strong>Your application will not be considered until it is completed.</strong></p>
4
- <p>Not to worry! Just head on back to the website, <a href="https://brickhack.io/apply">brickhack.io/apply</a>, sign in with your existing My MLH account (if necessary), and complete the application.</p>
5
- <p><a href="https://brickhack.io/apply" class="button">Finish Application »</a></p>
4
+ <p>Not to worry! Just <%= link_to 'head on back to the website', questionnaires_url %>, sign in with your existing My MLH account (if necessary), and complete the application.</p>
5
+ <p><%= link_to 'Finish Application »', questionnaires_url, class: 'button' %></p>
6
6
  <p>Happy hacking!<br> - The <%= Rails.configuration.hackathon['name'] %> Team</p>
@@ -10,7 +10,8 @@ require 'csv'
10
10
 
11
11
  puts "Seeding school list..."
12
12
 
13
- csv_text = File.read('db/schools.csv')
13
+ csv_file = File.join(File.dirname(__FILE__), 'schools.csv')
14
+ csv_text = File.read(csv_file)
14
15
  csv = CSV.parse(csv_text, headers: true)
15
16
  csv.each do |row|
16
17
  School.create(row.to_hash)
@@ -1,3 +1,3 @@
1
1
  module HackathonManager
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackathon_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Olivera