hackathon_manager 0.10.0 → 0.10.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
  SHA256:
3
- metadata.gz: 75702c73df8a6c3d94f11a7c8f0a067aa747d2862aba1d949e77c180f30c87b5
4
- data.tar.gz: a04a9c400928c649cd152c4aadfdf98a8ac80e7c88db24fc7cb88c39843d1b05
3
+ metadata.gz: da318b13e4e36741b1c6c64bb2b9f247677df22db0307e9eeb1aeea45a56637a
4
+ data.tar.gz: 9c4f819818f9d9ef31b526acf4cc3cf32e92f9a6407d18e6d1ae0c362b15e200
5
5
  SHA512:
6
- metadata.gz: b1484e04b959ec1ef418a07b359f12bfcf08d014c87c15fb8758029461e6bf8eab912f1f60d3944dbef566623da82c11f3b1a0153a223b1eeddd347907552f21
7
- data.tar.gz: 7299d07a9f27c86d576a2e7dc257c305a9d6655304d65c3857fc9816ea3fffe5d9a8391472c23326b597cdda0260f89c225cd95e4367d056695368e6d106bd85
6
+ metadata.gz: 6d615fa1467c998ecbe4c6c34ccfbfda53140d00b98a25a200c866b887fb08bcd0b4c90a6350f27d0b346409b8cc621d52c00b706064120c535710f642b42233
7
+ data.tar.gz: 0c6b21a4f9c10ba914f52b8d27e1890c978204fb0a831cd11fc8fb3cc35c7e3433db33315e5bd525195191f44870c8fe772294bee9deb80ef24136343ad0bc70
@@ -1,9 +1,10 @@
1
1
  class Manage::AdminsController < Manage::ApplicationController
2
2
  before_action :find_user, only: [:show, :edit, :update, :destroy]
3
3
 
4
- respond_to :html
4
+ respond_to :html, :json
5
5
 
6
6
  def index
7
+ respond_with(:manage, User.where(admin: true))
7
8
  end
8
9
 
9
10
  def datatable
@@ -1,7 +1,7 @@
1
1
  class Manage::BusListsController < Manage::ApplicationController
2
2
  before_action :set_bus_list, only: [:show, :edit, :update, :destroy, :toggle_bus_captain, :send_update_email]
3
3
 
4
- respond_to :html
4
+ respond_to :html, :json
5
5
 
6
6
  def index
7
7
  @bus_lists = BusList.all
@@ -1,7 +1,10 @@
1
1
  class Manage::ConfigsController < Manage::ApplicationController
2
2
  before_action :limit_access_admin
3
3
 
4
+ respond_to :html, :json
5
+
4
6
  def show
7
+ respond_with(Rails.configuration.hackathon)
5
8
  end
6
9
 
7
10
  private
@@ -2,9 +2,10 @@ class Manage::MessagesController < Manage::ApplicationController
2
2
  before_action :set_message, only: [:show, :edit, :update, :destroy, :deliver, :preview, :duplicate]
3
3
  before_action :check_message_access, only: [:edit, :update, :destroy]
4
4
 
5
- respond_to :html
5
+ respond_to :html, :json
6
6
 
7
7
  def index
8
+ respond_with(:manage, Message.all)
8
9
  end
9
10
 
10
11
  def datatable
@@ -3,9 +3,10 @@ class Manage::QuestionnairesController < Manage::ApplicationController
3
3
 
4
4
  before_action :set_questionnaire, only: [:show, :edit, :update, :destroy, :check_in, :convert_to_admin, :update_acc_status, :message_events, :invite_to_slack]
5
5
 
6
- respond_to :html
6
+ respond_to :html, :json
7
7
 
8
8
  def index
9
+ respond_with(:manage, Questionnaire.all)
9
10
  end
10
11
 
11
12
  def datatable
@@ -1,9 +1,10 @@
1
1
  class Manage::SchoolsController < Manage::ApplicationController
2
2
  before_action :find_school, only: [:show, :edit, :update, :destroy, :merge, :perform_merge]
3
3
 
4
- respond_to :html
4
+ respond_to :html, :json
5
5
 
6
6
  def index
7
+ respond_with(:manage, School.all)
7
8
  end
8
9
 
9
10
  def datatable
@@ -1,3 +1,3 @@
1
1
  module HackathonManager
2
- VERSION = '0.10.0'.freeze
2
+ VERSION = '0.10.1'.freeze
3
3
  end
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Olivera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-02 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails