tb_events 1.0.2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +6 -14
  2. data/README.md +17 -5
  3. data/Rakefile +2 -2
  4. data/app/assets/javascripts/admin/events/application.js +16 -0
  5. data/app/assets/javascripts/{calendar_events.js → admin/events/calendar_events.js} +0 -0
  6. data/app/assets/javascripts/{spud/admin → admin/events}/calendars.js +0 -0
  7. data/app/assets/stylesheets/admin/events/application.css +4 -0
  8. data/app/assets/{javascripts/spud/events.js → stylesheets/admin/events/calendar_events.css} +0 -0
  9. data/app/assets/stylesheets/{spud → admin/events}/calendars.css +23 -28
  10. data/app/controllers/admin/calendar_events_controller.rb +67 -0
  11. data/app/controllers/{spud/admin → admin}/calendars_controller.rb +17 -14
  12. data/app/controllers/calendar_events_controller.rb +12 -6
  13. data/app/controllers/calendars_controller.rb +18 -18
  14. data/app/helpers/admin/calendar_events_helper.rb +2 -0
  15. data/app/helpers/admin/calendars_helper.rb +13 -0
  16. data/app/helpers/calendars_helper.rb +66 -35
  17. data/app/models/spud_calendar.rb +28 -3
  18. data/app/models/spud_calendar_event.rb +1 -20
  19. data/app/models/spud_events/calendar_event_model.rb +31 -0
  20. data/app/views/admin/calendar_events/_calendar.html.erb +19 -0
  21. data/app/views/admin/calendar_events/_form.html.erb +21 -0
  22. data/app/views/admin/calendar_events/edit.html.erb +1 -0
  23. data/app/views/admin/calendar_events/index.html.erb +28 -0
  24. data/app/views/admin/calendar_events/new.html.erb +1 -0
  25. data/app/views/admin/calendars/_calendar_legend.html.erb +8 -0
  26. data/app/views/admin/calendars/_form.html.erb +5 -0
  27. data/app/views/{spud/admin → admin}/calendars/edit.html.erb +0 -0
  28. data/app/views/{spud/admin → admin}/calendars/new.html.erb +0 -0
  29. data/app/views/calendar_events/index.html.erb +22 -0
  30. data/app/views/calendar_events/show.html.erb +7 -5
  31. data/app/views/calendars/show.html.erb +19 -4
  32. data/config/locales/en.yml +9 -0
  33. data/config/routes.rb +9 -15
  34. data/db/migrate/20120216191833_create_spud_calendars.rb +2 -2
  35. data/db/migrate/20140723203144_add_identifier_to_spud_calendars.rb +6 -0
  36. data/db/migrate/20140730182213_remove_color_from_spud_calendars.rb +9 -0
  37. data/lib/spud_events/calendar_builder.rb +53 -0
  38. data/lib/spud_events/configuration.rb +6 -0
  39. data/lib/spud_events/engine.rb +23 -0
  40. data/lib/spud_events/version.rb +3 -0
  41. data/lib/tb_events.rb +4 -4
  42. metadata +83 -131
  43. data/app/assets/javascripts/calendars.js +0 -2
  44. data/app/assets/javascripts/spud/admin/calendar_events.js +0 -2
  45. data/app/assets/javascripts/spud/admin/events.js +0 -51
  46. data/app/assets/lib/colorpicker/colorpicker.css +0 -164
  47. data/app/assets/lib/colorpicker/colorpicker.js +0 -484
  48. data/app/assets/lib/colorpicker/images/blank.gif +0 -0
  49. data/app/assets/lib/colorpicker/images/colorpicker_background.png +0 -0
  50. data/app/assets/lib/colorpicker/images/colorpicker_hex.png +0 -0
  51. data/app/assets/lib/colorpicker/images/colorpicker_hsb_b.png +0 -0
  52. data/app/assets/lib/colorpicker/images/colorpicker_hsb_h.png +0 -0
  53. data/app/assets/lib/colorpicker/images/colorpicker_hsb_s.png +0 -0
  54. data/app/assets/lib/colorpicker/images/colorpicker_indic.gif +0 -0
  55. data/app/assets/lib/colorpicker/images/colorpicker_overlay.png +0 -0
  56. data/app/assets/lib/colorpicker/images/colorpicker_rgb_b.png +0 -0
  57. data/app/assets/lib/colorpicker/images/colorpicker_rgb_g.png +0 -0
  58. data/app/assets/lib/colorpicker/images/colorpicker_rgb_r.png +0 -0
  59. data/app/assets/lib/colorpicker/images/colorpicker_select.gif +0 -0
  60. data/app/assets/lib/colorpicker/images/colorpicker_submit.png +0 -0
  61. data/app/assets/lib/colorpicker/images/custom_background.png +0 -0
  62. data/app/assets/lib/colorpicker/images/custom_hex.png +0 -0
  63. data/app/assets/lib/colorpicker/images/custom_hsb_b.png +0 -0
  64. data/app/assets/lib/colorpicker/images/custom_hsb_h.png +0 -0
  65. data/app/assets/lib/colorpicker/images/custom_hsb_s.png +0 -0
  66. data/app/assets/lib/colorpicker/images/custom_indic.gif +0 -0
  67. data/app/assets/lib/colorpicker/images/custom_rgb_b.png +0 -0
  68. data/app/assets/lib/colorpicker/images/custom_rgb_g.png +0 -0
  69. data/app/assets/lib/colorpicker/images/custom_rgb_r.png +0 -0
  70. data/app/assets/lib/colorpicker/images/custom_submit.png +0 -0
  71. data/app/assets/lib/colorpicker/images/select.png +0 -0
  72. data/app/assets/lib/colorpicker/images/select2.png +0 -0
  73. data/app/assets/lib/colorpicker/images/slider.png +0 -0
  74. data/app/assets/stylesheets/spud/admin/events.css +0 -16
  75. data/app/assets/stylesheets/spud/calendar_events.css +0 -18
  76. data/app/assets/stylesheets/spud/events.css +0 -4
  77. data/app/controllers/spud/admin/calendar_events_controller.rb +0 -64
  78. data/app/helpers/spud/admin/calendar_events_helper.rb +0 -2
  79. data/app/helpers/spud/admin/calendars_helper.rb +0 -15
  80. data/app/views/calendars/_calendar.html.erb +0 -26
  81. data/app/views/calendars/_calendar_options.html.erb +0 -4
  82. data/app/views/spud/admin/calendar_events/_calendar.html.erb +0 -14
  83. data/app/views/spud/admin/calendar_events/_form.html.erb +0 -98
  84. data/app/views/spud/admin/calendar_events/edit.html.erb +0 -1
  85. data/app/views/spud/admin/calendar_events/index.html.erb +0 -20
  86. data/app/views/spud/admin/calendar_events/new.html.erb +0 -1
  87. data/app/views/spud/admin/calendars/_calendar_legend.html.erb +0 -7
  88. data/app/views/spud/admin/calendars/_form.html.erb +0 -20
  89. data/config/application.rb +0 -50
  90. data/config/boot.rb +0 -6
  91. data/lib/spud/events/calendar.rb +0 -85
  92. data/lib/spud/events/calendar_builder.rb +0 -58
  93. data/lib/spud/events/configuration.rb +0 -10
  94. data/lib/spud/events/engine.rb +0 -26
  95. data/lib/spud/events/table_builder.rb +0 -88
  96. data/lib/spud/events/version.rb +0 -5
@@ -1,7 +1,32 @@
1
1
  class SpudCalendar < ActiveRecord::Base
2
- has_many :spud_calendar_events, :dependent => :destroy
3
- validates_presence_of :title, :color
2
+ has_many :spud_calendar_events, dependent: :destroy
3
+ validates_presence_of :title
4
+ validates :identifier, presence: true, uniqueness: true
4
5
 
5
- attr_accessible :title, :color
6
+ before_validation :set_identifier
6
7
 
8
+ def self.with_identifier(identifier)
9
+ where(identifier: identifier).first
10
+ end
11
+
12
+ def color
13
+ modulo = (id - 1) % COLORS.length
14
+ COLORS[modulo]
15
+ end
16
+
17
+ COLORS = %w(
18
+ 4D854B
19
+ f89406
20
+ b94a48
21
+ 3a87ad
22
+ 999999
23
+ 333333)
24
+
25
+ private
26
+
27
+ def set_identifier
28
+ if identifier.nil? && title.present?
29
+ self.identifier = title.parameterize.underscore
30
+ end
31
+ end
7
32
  end
@@ -1,21 +1,2 @@
1
- class SpudCalendarEvent < ActiveRecord::Base
2
- belongs_to :spud_calendar
3
- validates_presence_of :title, :start_at, :end_at, :spud_calendar_id
4
-
5
- attr_accessible :title, :description, :start_at, :end_at, :all_day, :spud_calendar_id, :spud_calendar, :location, :address, :address_2, :city, :state, :zip
6
-
7
- def self.in_month_of(month)
8
- where(["spud_calendar_events.start_at <= ? AND spud_calendar_events.start_at >= ?", month.end_of_month, month.beginning_of_month])
9
- end
10
-
11
- def days_span
12
- return (end_at.to_date - start_at.to_date).to_i + 1
13
- end
14
-
15
- def falls_on?(day)
16
- start_date = start_at.beginning_of_day.to_date
17
- end_date = end_at.end_of_day.to_date
18
- return day >= start_date && day <= end_date
19
- end
20
-
1
+ class SpudCalendarEvent < SpudEvents::CalendarEventModel
21
2
  end
@@ -0,0 +1,31 @@
1
+ class SpudEvents::CalendarEventModel < ActiveRecord::Base
2
+ self.table_name = 'spud_calendar_events'
3
+
4
+ belongs_to :spud_calendar
5
+ validates_presence_of :title, :start_at, :end_at, :spud_calendar_id
6
+
7
+ scope :ordered, -> { order('start_at desc') }
8
+ scope :in_month_of, lambda { |date|
9
+ where('start_at BETWEEN ? AND ? OR end_at BETWEEN ? AND ?', date.beginning_of_month, date.end_of_month, date.beginning_of_month, date.end_of_month).order('start_at asc')
10
+ # where(:start_at => date.beginning_of_month...date.end_of_month)
11
+ }
12
+ scope :upcoming, ->(limit = false) { where('start_at >= ?', Date.today).order('start_at asc').limit(limit) }
13
+
14
+ def start_date
15
+ start_at.to_date
16
+ end
17
+
18
+ def end_date
19
+ end_at.to_date
20
+ end
21
+
22
+ def days_span
23
+ (end_at.to_date - start_at.to_date).to_i + 1
24
+ end
25
+
26
+ def falls_on?(day)
27
+ start_date = start_at.beginning_of_day.to_date
28
+ end_date = end_at.end_of_day.to_date
29
+ day >= start_date && day <= end_date
30
+ end
31
+ end
@@ -0,0 +1,19 @@
1
+ <%= link_to_next_admin_calendar_month @calendar_date %>
2
+ <%= link_to_previous_admin_calendar_month @calendar_date %>
3
+
4
+ <%= spud_calendar_for_events(@calendar_events, @calendar_date, :headers => ['S', 'M', 'T', 'W', 'T', 'F', 'S']) do |day, events| %>
5
+ <span class="calendar-day">
6
+ <%= day.day %>
7
+ </span>
8
+ <ul class="calendar-events-list">
9
+ <% events.each do |event| %>
10
+ <li>
11
+ <%= link_to edit_admin_calendar_event_path(event.id) do %>
12
+ <span class="label" style="background-color: #<%= event.spud_calendar.color %>">
13
+ <%= truncate(event.title, :length => 25) %>
14
+ </span>
15
+ <% end %>
16
+ </li>
17
+ <% end %>
18
+ </ul>
19
+ <% end %>
@@ -0,0 +1,21 @@
1
+ <%= form_for @calendar_event, :url => path, :builder => TbCore::FormBuilder, :html => {:class => "form-horizontal"} do |f| %>
2
+ <%= tb_form_error_header(f.object) %>
3
+
4
+ <%= f.tb_select :spud_calendar_id, options_from_collection_for_select(SpudCalendar.all, :id, :title, @calendar_event.spud_calendar_id) %>
5
+
6
+ <%= f.tb_text_field :title %>
7
+ <%= f.tb_text_area :description, :style => "width:100%;", :class => 'tinymce full-width' %>
8
+
9
+ <%= f.tb_datetime_select :start_at, :ampm => true, :minute_step => 5 %>
10
+ <%= f.tb_datetime_select :end_at, :ampm => true, :minute_step => 5 %>
11
+
12
+ <%= f.tb_text_field :location %>
13
+ <%= f.tb_text_field :address %>
14
+ <%= f.tb_text_field :address_2 %>
15
+ <%= f.tb_text_field :city %>
16
+ <%= f.tb_text_field :state %>
17
+ <%= f.tb_text_field :zip %>
18
+
19
+ <%= f.tb_save_buttons 'Event', admin_list_spud_calendar_events_path, @calendar_event.id ? admin_calendar_event_path(@calendar_event) : nil %>
20
+
21
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render :partial => 'form', :locals => {:path => admin_calendar_event_path(@calendar_event)} %>
@@ -0,0 +1,28 @@
1
+ <% @page_name = "Events - #{@calendar_date.strftime('%B %Y')}" %>
2
+
3
+ <%= content_for :data_controls do %>
4
+ <%= link_to "New Calendar", new_admin_calendar_path, :class => "btn btn-default" %>
5
+ <%= link_to "New Event", new_admin_calendar_event_path, :class => "btn btn-primary" %>
6
+ <% end %>
7
+
8
+ <%= content_for :detail do %>
9
+
10
+ <div class="row">
11
+ <div id="spud_events_admin_calendar" class="col-md-8">
12
+ <%= render :partial => 'calendar' %>
13
+ </div>
14
+
15
+ <div class="col-md-4">
16
+ <ul id="spud_events_admin_calendar_legend">
17
+ <%= render :partial => 'admin/calendars/calendar_legend', :collection => @calendars, :as => :calendar %>
18
+ </ul>
19
+ </div>
20
+ </div>
21
+
22
+ <script>
23
+ $(document).ready(function() {
24
+ spud.admin.events.init();
25
+ });
26
+ </script>
27
+
28
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render :partial => 'form', :locals => {:path => admin_calendar_events_path} %>
@@ -0,0 +1,8 @@
1
+ <li id="spud_events_admin_calendar_legend_<%= calendar.id %>" class="spud_events_admin_calendar_legend_item">
2
+ <div class="spud_events_admin_calendar_actions pull-right">
3
+ <%= link_to 'edit', edit_admin_calendar_path(calendar), :class => "btn btn-sm btn-default" %>
4
+ <%= link_to 'delete', admin_calendar_path(calendar), :remote => true, :data => {:confirm => "This action can't be undone. Would you like to remove the calendar \"#{calendar.title}\"?"}, :method => :delete, :class => 'js-spud-calendar-delete-action btn btn-sm btn-danger' %>
5
+ </div>
6
+ <%= content_tag :span, calendar.title, :style => "background-color: \##{calendar.color}", :class => 'label' %>
7
+ <div class="clearfix"></div>
8
+ </li>
@@ -0,0 +1,5 @@
1
+ <%= form_for @calendar, :url => (@calendar.new_record? ? admin_calendars_path : admin_calendar_path(@calendar)), :builder => TbCore::FormBuilder, :html => {:class => "form-horizontal"} do |f| %>
2
+ <%= tb_form_errors(f.object) %>
3
+ <%= f.tb_text_field :title %>
4
+ <%= f.tb_save_buttons('Calendar', admin_list_spud_calendar_events_path) %>
5
+ <% end %>
@@ -0,0 +1,22 @@
1
+ <h1>Events</h1>
2
+
3
+ <table>
4
+ <tr>
5
+ <th>Title</th>
6
+ <th>Date</th>
7
+ <th>&nbsp;</th>
8
+ </tr>
9
+ <tbody>
10
+ <% cache(@events) do %>
11
+ <% @events.each do |event| %>
12
+ <tr>
13
+ <td><%= event.title %></td>
14
+ <td><%= event.start_at.strftime('%D') %></td>
15
+ <td><%= link_to 'Details', calendar_event_path(event) %></td>
16
+ </tr>
17
+ <% end %>
18
+ <% end %>
19
+ </tbody>
20
+ </table>
21
+
22
+ <%= will_paginate(@events) %>
@@ -1,5 +1,7 @@
1
- <h2><%= @event.title %></h2>
2
- <h4 class="spud_calendar_event_date">
3
- <%= @event.start_at.strftime('%B %d, %Y') %>
4
- </h4>
5
- <p><%= @event.description %></p>
1
+ <h1><%= @event.title %></h1>
2
+ <p><b>Calendar:</b> <%= @event.spud_calendar.title %></p>
3
+ <p><em><%= @event.start_at %> - <%= @event.end_at %></em></p>
4
+ <%= simple_format(@event.description) %>
5
+
6
+ <p><%= link_to 'Events List', calendar_events_path %> | <%= link_to 'Calendar', calendar_path %></p>
7
+
@@ -1,4 +1,19 @@
1
- <%= render :partial => 'calendar_options' %>
2
- <div id="spud_events_calendar">
3
- <%= render :partial => 'calendar', :locals => {:date => @calendar_date} %>
4
- </div>
1
+ <% @page_title = @calendar_date.strftime("Events Calendar %B %Y") %>
2
+
3
+ <h1><%= @page_title %></h1>
4
+
5
+ <nav id="events-calendar-nav">
6
+ <%= link_to_previous_calendar_month(@calendar_date) %>
7
+ <%= link_to_next_calendar_month(@calendar_date) %>
8
+ </nav>
9
+
10
+ <%= spud_calendar_for_events(@events, @calendar_date) do |day, events| %>
11
+ <span class="calendar-day">
12
+ <%= day.day %>
13
+ </span>
14
+ <ul class="calendar-events">
15
+ <% events.each do |event| %>
16
+ <li><%= link_to truncate(event.title, :length => 25), calendar_event_path(event.id) %></li>
17
+ <% end %>
18
+ </ul>
19
+ <% end %>
@@ -0,0 +1,9 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ activerecord:
6
+ attributes:
7
+ spud_calendar_event:
8
+ spud_calendar_id: 'Calendar'
9
+
@@ -1,17 +1,11 @@
1
1
  Rails.application.routes.draw do
2
-
3
- # Calendar
4
- match 'calendar(/:month(/:year(/:calendar)))' => "calendars#show", :as => "calendar"
5
- match 'calendar_event/:id' => "calendar_events#show", :as => "event"
6
- namespace :spud do
7
- namespace :admin do
8
- # Events
9
- resources :calendar_events, :except => [:index]
10
- resources :calendars, :except => [:index]
11
- match 'events(/:month(/:year(/:calendar)))' => "calendar_events#index", :as => "list_spud_calendar_events"
12
- end
13
- end
14
-
15
-
2
+ # Calendar
3
+ get 'calendar(/:month/:year)' => 'calendars#show', :as => :calendar
4
+ resources :calendar_events, only: [:index, :show], path: '/events'
5
+
6
+ namespace :admin do
7
+ resources :calendar_events, except: [:index]
8
+ resources :calendars, except: [:index]
9
+ get 'events(/:month(/:year(/:calendar)))' => 'calendar_events#index', :as => 'list_spud_calendar_events'
10
+ end
16
11
  end
17
-
@@ -3,10 +3,10 @@ class CreateSpudCalendars < ActiveRecord::Migration
3
3
  create_table :spud_calendars do |t|
4
4
  t.string :title
5
5
  t.column :color, 'binary(6)'
6
-
6
+
7
7
  t.timestamps
8
8
  end
9
-
9
+
10
10
  add_index :spud_calendars, :title
11
11
  end
12
12
  end
@@ -0,0 +1,6 @@
1
+ class AddIdentifierToSpudCalendars < ActiveRecord::Migration
2
+ def change
3
+ add_column :spud_calendars, :identifier, :string
4
+ add_index :spud_calendars, :identifier
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ class RemoveColorFromSpudCalendars < ActiveRecord::Migration
2
+ def up
3
+ remove_column :spud_calendars, :color
4
+ end
5
+
6
+ def down
7
+ add_column :spud_calendars, :color, 'binary(6)'
8
+ end
9
+ end
@@ -0,0 +1,53 @@
1
+ class SpudEvents::CalendarBuilder
2
+ DEFAULT_HEADERS = %w(Sunday Monday Tuesday Wednesday Thursday Friday Saturday)
3
+ START_DAY = :sunday
4
+
5
+ delegate :content_tag, to: :view
6
+ attr_accessor :view, :date, :callback
7
+
8
+ def initialize(view, date, opts)
9
+ @view = view
10
+ @date = date
11
+ @headers = opts.delete(:headers) || DEFAULT_HEADERS
12
+ end
13
+
14
+ def table(&block)
15
+ @callback = block
16
+ content_tag :table, class: 'calendar' do
17
+ header + week_rows
18
+ end
19
+ end
20
+
21
+ private
22
+
23
+ def header
24
+ content_tag :tr do
25
+ @headers.map { |day| content_tag :th, day, class: 'day-header' }.join.html_safe
26
+ end
27
+ end
28
+
29
+ def week_rows
30
+ weeks.map do |week|
31
+ content_tag :tr do
32
+ week.map { |day| day_cell(day) }.join.html_safe
33
+ end
34
+ end.join.html_safe
35
+ end
36
+
37
+ def day_cell(day)
38
+ content_tag :td, view.capture(day, &callback), :class => day_classes(day), 'data-date' => day.strftime('%F')
39
+ end
40
+
41
+ def day_classes(day)
42
+ classes = ['day-cell']
43
+ classes << 'today' if day == Date.today
44
+ classes << 'not-month' if day.month != date.month
45
+ classes.empty? ? nil : classes.join(' ')
46
+ end
47
+
48
+ def weeks
49
+ first = date.beginning_of_month.beginning_of_week(START_DAY)
50
+ last = date.end_of_month.end_of_week(START_DAY)
51
+ (first..last).to_a.in_groups_of(7)
52
+ end
53
+ end
@@ -0,0 +1,6 @@
1
+ module SpudEvents
2
+ include ActiveSupport::Configurable
3
+ config_accessor :content_for, :calendar_layout
4
+ self.content_for = nil
5
+ self.calendar_layout = nil
6
+ end
@@ -0,0 +1,23 @@
1
+ require 'tb_core'
2
+
3
+ module SpudEvents
4
+ class Engine < Rails::Engine
5
+ engine_name :tb_events
6
+ config.autoload_paths << "#{root}/lib"
7
+
8
+ initializer :admin do
9
+ TbCore.configure do |config|
10
+ config.admin_applications += [{ name: 'Events', thumbnail: 'spud/admin/events_thumb.png', url: '/admin/events', order: 10 }]
11
+ end
12
+ end
13
+
14
+ initializer :assets do |_config|
15
+ TbCore.append_admin_stylesheets('admin/events/application')
16
+ TbCore.append_admin_javascripts('admin/events/application')
17
+ end
18
+
19
+ initializer 'tb_events.assets' do
20
+ Rails.application.config.assets.precompile += ['spud/admin/events_thumb.png']
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module SpudEvents
2
+ VERSION = '1.3.0'
3
+ end
@@ -1,6 +1,6 @@
1
1
  module Spud
2
- module Events
3
- require 'spud/events/configuration'
4
- require 'spud/events/engine' if defined?(Rails)
5
- end
2
+ module Events
3
+ require 'spud_events/configuration'
4
+ require 'spud_events/engine' if defined?(Rails)
5
+ end
6
6
  end
metadata CHANGED
@@ -1,259 +1,211 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Greg Woods
8
- autorequire:
7
+ - Moser Consulting
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
11
+ date: 2021-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.2
19
+ version: 5.0.0.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.2
26
+ version: 5.0.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tb_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mysql2
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.11
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.11
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 2.8.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '='
67
- - !ruby/object:Gem::Version
68
- version: 2.8.0
54
+ version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec-rails
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - '='
59
+ - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: 2.8.1
61
+ version: '0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - '='
66
+ - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: 2.8.1
68
+ version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: shoulda
70
+ name: rails-controller-testing
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ~>
73
+ - - ">="
88
74
  - !ruby/object:Gem::Version
89
- version: 3.0.1
75
+ version: '0'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ~>
80
+ - - ">="
95
81
  - !ruby/object:Gem::Version
96
- version: 3.0.1
82
+ version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
- name: factory_girl
84
+ name: factory_bot_rails
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - '='
87
+ - - ">="
102
88
  - !ruby/object:Gem::Version
103
- version: 2.5.0
89
+ version: '0'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - '='
94
+ - - ">="
109
95
  - !ruby/object:Gem::Version
110
- version: 2.5.0
96
+ version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
- name: mocha
98
+ name: database_cleaner
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - '='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
- version: 0.10.3
103
+ version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - '='
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
- version: 0.10.3
110
+ version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
- name: database_cleaner
112
+ name: simplecov
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - '='
115
+ - - ">="
130
116
  - !ruby/object:Gem::Version
131
- version: 0.7.1
117
+ version: '0'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - '='
122
+ - - ">="
137
123
  - !ruby/object:Gem::Version
138
- version: 0.7.1
124
+ version: '0'
139
125
  - !ruby/object:Gem::Dependency
140
- name: simplecov
126
+ name: rubocop
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ~>
129
+ - - ">="
144
130
  - !ruby/object:Gem::Version
145
- version: 0.6.4
131
+ version: '0'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ~>
136
+ - - ">="
151
137
  - !ruby/object:Gem::Version
152
- version: 0.6.4
153
- description:
138
+ version: '0'
139
+ description:
154
140
  email:
155
- - greg@westlakedesign.com
141
+ - greg.woods@moserit.com
156
142
  executables: []
157
143
  extensions: []
158
144
  extra_rdoc_files: []
159
145
  files:
146
+ - README.md
147
+ - Rakefile
160
148
  - app/assets/images/spud/admin/events_thumb.png
161
- - app/assets/javascripts/calendar_events.js
162
- - app/assets/javascripts/calendars.js
163
- - app/assets/javascripts/spud/admin/calendar_events.js
164
- - app/assets/javascripts/spud/admin/calendars.js
165
- - app/assets/javascripts/spud/admin/events.js
166
- - app/assets/javascripts/spud/events.js
167
- - app/assets/lib/colorpicker/colorpicker.css
168
- - app/assets/lib/colorpicker/colorpicker.js
169
- - app/assets/lib/colorpicker/images/blank.gif
170
- - app/assets/lib/colorpicker/images/colorpicker_background.png
171
- - app/assets/lib/colorpicker/images/colorpicker_hex.png
172
- - app/assets/lib/colorpicker/images/colorpicker_hsb_b.png
173
- - app/assets/lib/colorpicker/images/colorpicker_hsb_h.png
174
- - app/assets/lib/colorpicker/images/colorpicker_hsb_s.png
175
- - app/assets/lib/colorpicker/images/colorpicker_indic.gif
176
- - app/assets/lib/colorpicker/images/colorpicker_overlay.png
177
- - app/assets/lib/colorpicker/images/colorpicker_rgb_b.png
178
- - app/assets/lib/colorpicker/images/colorpicker_rgb_g.png
179
- - app/assets/lib/colorpicker/images/colorpicker_rgb_r.png
180
- - app/assets/lib/colorpicker/images/colorpicker_select.gif
181
- - app/assets/lib/colorpicker/images/colorpicker_submit.png
182
- - app/assets/lib/colorpicker/images/custom_background.png
183
- - app/assets/lib/colorpicker/images/custom_hex.png
184
- - app/assets/lib/colorpicker/images/custom_hsb_b.png
185
- - app/assets/lib/colorpicker/images/custom_hsb_h.png
186
- - app/assets/lib/colorpicker/images/custom_hsb_s.png
187
- - app/assets/lib/colorpicker/images/custom_indic.gif
188
- - app/assets/lib/colorpicker/images/custom_rgb_b.png
189
- - app/assets/lib/colorpicker/images/custom_rgb_g.png
190
- - app/assets/lib/colorpicker/images/custom_rgb_r.png
191
- - app/assets/lib/colorpicker/images/custom_submit.png
192
- - app/assets/lib/colorpicker/images/select.png
193
- - app/assets/lib/colorpicker/images/select2.png
194
- - app/assets/lib/colorpicker/images/slider.png
195
- - app/assets/stylesheets/spud/admin/events.css
196
- - app/assets/stylesheets/spud/calendar_events.css
197
- - app/assets/stylesheets/spud/calendars.css
198
- - app/assets/stylesheets/spud/events.css
149
+ - app/assets/javascripts/admin/events/application.js
150
+ - app/assets/javascripts/admin/events/calendar_events.js
151
+ - app/assets/javascripts/admin/events/calendars.js
152
+ - app/assets/stylesheets/admin/events/application.css
153
+ - app/assets/stylesheets/admin/events/calendar_events.css
154
+ - app/assets/stylesheets/admin/events/calendars.css
155
+ - app/controllers/admin/calendar_events_controller.rb
156
+ - app/controllers/admin/calendars_controller.rb
199
157
  - app/controllers/calendar_events_controller.rb
200
158
  - app/controllers/calendars_controller.rb
201
- - app/controllers/spud/admin/calendar_events_controller.rb
202
- - app/controllers/spud/admin/calendars_controller.rb
159
+ - app/helpers/admin/calendar_events_helper.rb
160
+ - app/helpers/admin/calendars_helper.rb
203
161
  - app/helpers/calendars_helper.rb
204
- - app/helpers/spud/admin/calendar_events_helper.rb
205
- - app/helpers/spud/admin/calendars_helper.rb
206
162
  - app/models/spud_calendar.rb
207
163
  - app/models/spud_calendar_event.rb
164
+ - app/models/spud_events/calendar_event_model.rb
165
+ - app/views/admin/calendar_events/_calendar.html.erb
166
+ - app/views/admin/calendar_events/_form.html.erb
167
+ - app/views/admin/calendar_events/edit.html.erb
168
+ - app/views/admin/calendar_events/index.html.erb
169
+ - app/views/admin/calendar_events/new.html.erb
170
+ - app/views/admin/calendars/_calendar_legend.html.erb
171
+ - app/views/admin/calendars/_form.html.erb
172
+ - app/views/admin/calendars/edit.html.erb
173
+ - app/views/admin/calendars/new.html.erb
174
+ - app/views/calendar_events/index.html.erb
208
175
  - app/views/calendar_events/show.html.erb
209
- - app/views/calendars/_calendar.html.erb
210
- - app/views/calendars/_calendar_options.html.erb
211
176
  - app/views/calendars/show.html.erb
212
- - app/views/spud/admin/calendar_events/_calendar.html.erb
213
- - app/views/spud/admin/calendar_events/_form.html.erb
214
- - app/views/spud/admin/calendar_events/edit.html.erb
215
- - app/views/spud/admin/calendar_events/index.html.erb
216
- - app/views/spud/admin/calendar_events/new.html.erb
217
- - app/views/spud/admin/calendars/_calendar_legend.html.erb
218
- - app/views/spud/admin/calendars/_form.html.erb
219
- - app/views/spud/admin/calendars/edit.html.erb
220
- - app/views/spud/admin/calendars/new.html.erb
221
- - config/application.rb
222
- - config/boot.rb
177
+ - config/locales/en.yml
223
178
  - config/routes.rb
224
179
  - db/migrate/20120216191833_create_spud_calendars.rb
225
180
  - db/migrate/20120216192531_create_spud_calendar_events.rb
226
181
  - db/migrate/20130214131628_add_location_to_spud_calendar_event.rb
227
- - lib/spud/events/calendar.rb
228
- - lib/spud/events/calendar_builder.rb
229
- - lib/spud/events/configuration.rb
230
- - lib/spud/events/engine.rb
231
- - lib/spud/events/table_builder.rb
232
- - lib/spud/events/version.rb
182
+ - db/migrate/20140723203144_add_identifier_to_spud_calendars.rb
183
+ - db/migrate/20140730182213_remove_color_from_spud_calendars.rb
184
+ - lib/spud_events/calendar_builder.rb
185
+ - lib/spud_events/configuration.rb
186
+ - lib/spud_events/engine.rb
187
+ - lib/spud_events/version.rb
233
188
  - lib/tb_events.rb
234
- - Rakefile
235
- - README.md
236
- homepage:
189
+ homepage:
237
190
  licenses: []
238
191
  metadata: {}
239
- post_install_message:
192
+ post_install_message:
240
193
  rdoc_options: []
241
194
  require_paths:
242
195
  - lib
243
196
  required_ruby_version: !ruby/object:Gem::Requirement
244
197
  requirements:
245
- - - ! '>='
198
+ - - ">="
246
199
  - !ruby/object:Gem::Version
247
200
  version: '0'
248
201
  required_rubygems_version: !ruby/object:Gem::Requirement
249
202
  requirements:
250
- - - ! '>='
203
+ - - ">="
251
204
  - !ruby/object:Gem::Version
252
205
  version: '0'
253
206
  requirements: []
254
- rubyforge_project:
255
- rubygems_version: 2.0.7
256
- signing_key:
207
+ rubygems_version: 3.0.8
208
+ signing_key:
257
209
  specification_version: 4
258
210
  summary: Twice Baked Events engine
259
211
  test_files: []