event_calendar_engine 0.1.0

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.
Files changed (173) hide show
  1. data/Gemfile +23 -0
  2. data/Gemfile.lock +161 -0
  3. data/README +1 -0
  4. data/Rakefile +39 -0
  5. data/VERSION +1 -0
  6. data/app/controllers/application_controller.rb +4 -0
  7. data/app/controllers/attendees_controller.rb +53 -0
  8. data/app/controllers/event_calendar/application_controller.rb +5 -0
  9. data/app/controllers/event_revisions_controller.rb +26 -0
  10. data/app/controllers/events_controller.rb +129 -0
  11. data/app/helpers/event_calendar/application_helper.rb +118 -0
  12. data/app/helpers/events_helper.rb +2 -0
  13. data/app/models/attendee.rb +6 -0
  14. data/app/models/deletable_instance_methods.rb +7 -0
  15. data/app/models/event.rb +124 -0
  16. data/app/models/event_revision.rb +9 -0
  17. data/app/models/participant.rb +23 -0
  18. data/app/models/participator.rb +20 -0
  19. data/app/views/attendees/index.html.erb +14 -0
  20. data/app/views/attendees/new.html.erb +13 -0
  21. data/app/views/event-calendar-shared/_flash.html.erb +7 -0
  22. data/app/views/event-calendar-shared/_main_menu.html.erb +3 -0
  23. data/app/views/event-calendar-shared/_navigation.html.erb +15 -0
  24. data/app/views/event_revisions/index.html.erb +31 -0
  25. data/app/views/event_revisions/show.html.erb +5 -0
  26. data/app/views/events/_browse_event_revisions.html.erb +19 -0
  27. data/app/views/events/_event.html.erb +10 -0
  28. data/app/views/events/_event_details.html.erb +26 -0
  29. data/app/views/events/_form.html.erb +36 -0
  30. data/app/views/events/attendees.html.erb +29 -0
  31. data/app/views/events/edit.html.erb +3 -0
  32. data/app/views/events/index.html.erb +41 -0
  33. data/app/views/events/new.html.erb +3 -0
  34. data/app/views/events/search.html.erb +11 -0
  35. data/app/views/events/show.html.erb +30 -0
  36. data/app/views/layouts/application.html.erb +49 -0
  37. data/config/application.rb +42 -0
  38. data/config/blueprint_settings.yml +10 -0
  39. data/config/boot.rb +13 -0
  40. data/config/cucumber.yml +8 -0
  41. data/config/database.example.yml +22 -0
  42. data/config/environment.rb +5 -0
  43. data/config/environments/development.rb +26 -0
  44. data/config/environments/production.rb +49 -0
  45. data/config/environments/test.rb +38 -0
  46. data/config/initializers/backtrace_silencers.rb +7 -0
  47. data/config/initializers/formtastic.rb +55 -0
  48. data/config/initializers/inflections.rb +10 -0
  49. data/config/initializers/mime_types.rb +5 -0
  50. data/config/initializers/secret_token.rb +9 -0
  51. data/config/initializers/session_store.rb +10 -0
  52. data/config/locales/en.yml +5 -0
  53. data/config/routes.rb +67 -0
  54. data/db/migrate/20101011142543_create_events.rb +19 -0
  55. data/db/migrate/20101011172027_create_attendees.rb +16 -0
  56. data/db/migrate/20101011200048_make_events_revisable.rb +25 -0
  57. data/db/schema.rb +45 -0
  58. data/db/seeds.rb +7 -0
  59. data/lib/event_calendar.rb +3 -0
  60. data/lib/event_calendar/engine.rb +25 -0
  61. data/lib/generators/event_calendar/install/USAGE +5 -0
  62. data/lib/generators/event_calendar/install/install_generator.rb +19 -0
  63. data/lib/generators/event_calendar/install/templates/event_calendar.rake +169 -0
  64. data/lib/tasks/blueprint.rake +25 -0
  65. data/lib/tasks/cucumber.rake +53 -0
  66. data/public/404.html +26 -0
  67. data/public/422.html +26 -0
  68. data/public/500.html +26 -0
  69. data/public/favicon.ico +0 -0
  70. data/public/images/rails.png +0 -0
  71. data/public/javascripts/event_calendar.js +62 -0
  72. data/public/javascripts/event_calendar_behaviors.js +131 -0
  73. data/public/javascripts/fullcalendar.js +3965 -0
  74. data/public/javascripts/jquery-ui-1.7.2.custom.min.js +298 -0
  75. data/public/javascripts/jquery.clonePosition.js +27 -0
  76. data/public/javascripts/jquery.js +154 -0
  77. data/public/javascripts/jquery.qtip-1.0.0-rc3.js +2149 -0
  78. data/public/javascripts/jquery.string.1.0-min.js +6 -0
  79. data/public/javascripts/jquery.tablesorter.min.js +2 -0
  80. data/public/javascripts/lowpro.jquery.js +224 -0
  81. data/public/javascripts/rails.js +132 -0
  82. data/public/robots.txt +5 -0
  83. data/public/stylesheets/blueprint/grid.css +280 -0
  84. data/public/stylesheets/blueprint/icons/cross.png +0 -0
  85. data/public/stylesheets/blueprint/icons/doc.png +0 -0
  86. data/public/stylesheets/blueprint/icons/email.png +0 -0
  87. data/public/stylesheets/blueprint/icons/external.png +0 -0
  88. data/public/stylesheets/blueprint/icons/feed.png +0 -0
  89. data/public/stylesheets/blueprint/icons/im.png +0 -0
  90. data/public/stylesheets/blueprint/icons/key.png +0 -0
  91. data/public/stylesheets/blueprint/icons/pdf.png +0 -0
  92. data/public/stylesheets/blueprint/icons/tick.png +0 -0
  93. data/public/stylesheets/blueprint/icons/visited.png +0 -0
  94. data/public/stylesheets/blueprint/icons/xls.png +0 -0
  95. data/public/stylesheets/blueprint/ie.css +36 -0
  96. data/public/stylesheets/blueprint/plugins/buttons/icons/cross.png +0 -0
  97. data/public/stylesheets/blueprint/plugins/buttons/icons/key.png +0 -0
  98. data/public/stylesheets/blueprint/plugins/buttons/icons/tick.png +0 -0
  99. data/public/stylesheets/blueprint/plugins/buttons/readme.txt +32 -0
  100. data/public/stylesheets/blueprint/plugins/buttons/screen.css +97 -0
  101. data/public/stylesheets/blueprint/plugins/fancy-type/readme.txt +14 -0
  102. data/public/stylesheets/blueprint/plugins/fancy-type/screen.css +71 -0
  103. data/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png +0 -0
  104. data/public/stylesheets/blueprint/plugins/link-icons/icons/email.png +0 -0
  105. data/public/stylesheets/blueprint/plugins/link-icons/icons/external.png +0 -0
  106. data/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png +0 -0
  107. data/public/stylesheets/blueprint/plugins/link-icons/icons/im.png +0 -0
  108. data/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  109. data/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png +0 -0
  110. data/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png +0 -0
  111. data/public/stylesheets/blueprint/plugins/link-icons/readme.txt +18 -0
  112. data/public/stylesheets/blueprint/plugins/link-icons/screen.css +40 -0
  113. data/public/stylesheets/blueprint/plugins/rtl/readme.txt +10 -0
  114. data/public/stylesheets/blueprint/plugins/rtl/screen.css +110 -0
  115. data/public/stylesheets/blueprint/plugins/silksprite/sprite.css +1 -0
  116. data/public/stylesheets/blueprint/plugins/silksprite/sprites.png +0 -0
  117. data/public/stylesheets/blueprint/print.css +29 -0
  118. data/public/stylesheets/blueprint/readme.txt +12 -0
  119. data/public/stylesheets/blueprint/screen.css +429 -0
  120. data/public/stylesheets/error_messages.css +65 -0
  121. data/public/stylesheets/formtastic.css +131 -0
  122. data/public/stylesheets/formtastic_changes.css +14 -0
  123. data/public/stylesheets/fullcalendar.css +574 -0
  124. data/public/stylesheets/fullcalendar_changes.css +0 -0
  125. data/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  126. data/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  127. data/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  128. data/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  129. data/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  130. data/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  131. data/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  132. data/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  133. data/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
  134. data/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  135. data/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
  136. data/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
  137. data/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  138. data/public/stylesheets/smoothness/jquery-ui-1.7.2.custom.css +406 -0
  139. data/public/stylesheets/tablesorter/blue/asc.gif +0 -0
  140. data/public/stylesheets/tablesorter/blue/bg.gif +0 -0
  141. data/public/stylesheets/tablesorter/blue/desc.gif +0 -0
  142. data/public/stylesheets/tablesorter/blue/style.css +39 -0
  143. data/public/stylesheets/text_and_colors.css +49 -0
  144. data/spec/controllers/attendees_controller_spec.rb +27 -0
  145. data/spec/controllers/event_revisions_controller_spec.rb +86 -0
  146. data/spec/controllers/events_controller_spec.rb +168 -0
  147. data/spec/fixtures/event_calendar_events.yml +8 -0
  148. data/spec/models/deletable_instance_methods_spec.rb +61 -0
  149. data/spec/models/event_revision_spec.rb +36 -0
  150. data/spec/models/event_spec.rb +139 -0
  151. data/spec/spec_helper.rb +27 -0
  152. data/spec/spec_helpers/mocks.rb +6 -0
  153. data/vendor/plugins/searchable_by/MIT-LICENSE +20 -0
  154. data/vendor/plugins/searchable_by/README +55 -0
  155. data/vendor/plugins/searchable_by/Rakefile +23 -0
  156. data/vendor/plugins/searchable_by/init.rb +2 -0
  157. data/vendor/plugins/searchable_by/install.rb +1 -0
  158. data/vendor/plugins/searchable_by/lib/searchable_by.rb +137 -0
  159. data/vendor/plugins/searchable_by/tasks/searchable_by_tasks.rake +4 -0
  160. data/vendor/plugins/searchable_by/test/boot.rb +21 -0
  161. data/vendor/plugins/searchable_by/test/database.yml +22 -0
  162. data/vendor/plugins/searchable_by/test/fixtures/companies.yml +10 -0
  163. data/vendor/plugins/searchable_by/test/fixtures/company.rb +5 -0
  164. data/vendor/plugins/searchable_by/test/fixtures/employee.rb +5 -0
  165. data/vendor/plugins/searchable_by/test/fixtures/employees.yml +28 -0
  166. data/vendor/plugins/searchable_by/test/fixtures/schema.rb +18 -0
  167. data/vendor/plugins/searchable_by/test/helper.rb +12 -0
  168. data/vendor/plugins/searchable_by/test/lib/activerecord_test_case.rb +43 -0
  169. data/vendor/plugins/searchable_by/test/lib/activerecord_test_connector.rb +75 -0
  170. data/vendor/plugins/searchable_by/test/lib/load_fixtures.rb +9 -0
  171. data/vendor/plugins/searchable_by/test/searchable_by_test.rb +73 -0
  172. data/vendor/plugins/searchable_by/uninstall.rb +1 -0
  173. metadata +606 -0
@@ -0,0 +1,10 @@
1
+ <div class="span-8">
2
+ <h4><%= link_to event.name_and_file_count, event_path(event.id) %></h4>
3
+ <p><%=h event.event_type %></p>
4
+ <% if event.attendees.count > 0 %>
5
+ <p><%= "#{event.attendees.count} attendees" %></p>
6
+ <% end %>
7
+ <p>from <%=h event.start_on.strftime "%a, %b %d %Y (%I:%M%p)" %></p>
8
+ <p>until <%=h event.end_on.strftime "%a, %b %d %Y (%I:%M%p)" %></p>
9
+ <p><%=h event.description[0..60] %></p>
10
+ </div>
@@ -0,0 +1,26 @@
1
+ <p>
2
+ <strong><%= event_details.name %></strong><br/>
3
+ <em><%= event_details.event_type %></em>
4
+ </p>
5
+
6
+ <p>
7
+ <strong>When:</strong>
8
+ <%= event_details.start_on %>
9
+ <% if event_details.end_on %>
10
+ - <%= event_details.end_on %>
11
+ <% end %>
12
+ </p>
13
+
14
+ <% unless event_details.location.blank? %>
15
+ <p>
16
+ <strong>Where:</strong><br/>
17
+ <%= textilize_without_paragraph event_details.location %>
18
+ </p>
19
+ <% end %>
20
+
21
+ <% unless event_details.description.blank? %>
22
+ <p>
23
+ <strong>Description/Other Details:</strong>
24
+ <%= textilize_without_paragraph event_details.description %>
25
+ </p>
26
+ <% end %>
@@ -0,0 +1,36 @@
1
+ <% submission_path = @event.new_record? ? events_path : event_path(@event) %>
2
+ <div style="width: 550px;">
3
+ <%= semantic_form_for(@event, :url => submission_path) do |form| %>
4
+ <%= form.inputs do %>
5
+ <%= form.input :name, :hint => "the name of the event" %>
6
+ <%= form.input :event_type, :hint => "conference, meeting, training, etc" %>
7
+ <%= form.input :start_on, :required => false, :label => "Starting date of event", :as => :string,
8
+ :input_html => { :value => @event.start_on.to_s } %>
9
+ <%= form.input :end_on, :required => false, :label => "Ending date of event", :as => :string,
10
+ :input_html => { :value => @event.end_on.to_s } %>
11
+ <%= form.input :location, :required => false, :label => 'Location' %>
12
+ <%= form.input :description, :required => false, :label => 'Description' %>
13
+ <% unless @event.new_record? %>
14
+ <%= form.input :notes, :required => false, :label => 'Notes' %>
15
+ <% end %>
16
+ <% end %>
17
+
18
+ <%= form.submit %>
19
+ <% end %>
20
+
21
+ </div>
22
+
23
+
24
+ <% content_for :javascript do %>
25
+ <script type="text/javascript">
26
+ $(document).ready(function() {
27
+ $('#event_event_type').attach(SelectPopper, <%= "#{Event.existing_event_types.to_json}".html_safe %>);
28
+
29
+ $('form.formtastic fieldset ol li.text textarea').attach(TextareaExpander, 40, 300);
30
+
31
+ $('#event_start_on').datepicker();
32
+ $('#event_end_on').datepicker();
33
+ });
34
+ </script>
35
+
36
+ <% end %>
@@ -0,0 +1,29 @@
1
+ <h1>Adding Attendees/Participants to Event: <%= @event.name %></h1>
2
+
3
+ <%= form_tag add_attendees_event_path(@event) do %>
4
+ <table class="nice_table">
5
+ <tr>
6
+ <th>Name</th>
7
+ <th>Info</th>
8
+ <th></th>
9
+ </tr>
10
+
11
+ <% @participants.group_by(&:class).each do |type, participants| %>
12
+ <tr>
13
+ <td colspan="3"><strong><%= type.to_s.titleize %></strong></td>
14
+ </tr>
15
+ <% participants.each do |participant| %>
16
+ <tr>
17
+ <td><%= participant.name %></td>
18
+ <td><%= participant.info %></td>
19
+ <td><%= check_box_tag "#{type.to_s.downcase}_ids[]", participant.id %></td>
20
+ </tr>
21
+ <% end %>
22
+ <% end %>
23
+ <tr>
24
+ <td colspan="3" style="text-align:right">
25
+ <%= submit_tag "add selected participants to this event" %>
26
+ </td>
27
+ </tr>
28
+ </table>
29
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <h1>Editing Event</h1>
2
+
3
+ <%= render :partial => "form" %>
@@ -0,0 +1,41 @@
1
+ <h1>Events</h1>
2
+
3
+ <p><em>mouse over an event to preview; click on an event for full details</em></p>
4
+
5
+ <div id="calendar_now" class="calendars"></div>
6
+ <div id="calendar_one_month" class="calendars"></div>
7
+ <div id="calendar_two_months" class="calendars"></div>
8
+
9
+ <div style="clear:both"></div>
10
+ <div id="event_quick_description" style="display:none"></div>
11
+
12
+ <% content_for :javascript do %>
13
+ <script type="text/javascript">
14
+ $(document).ready(function()
15
+ {
16
+ $(".nice_table").tablesorter( { widgets: ['zebra'], headers: { 3:{sorter: false}, 4:{sorter: false}, 5:{sorter: false}} });
17
+
18
+ $('#calendar_now').fullCalendar({
19
+ editable: false, events: '<%= events_path %>', height: 300, aspectRatio: 1.2,
20
+ buttonText: { today:null, prev:null, next: null }, eventMouseover: updateEventDescription
21
+ });
22
+
23
+ $('#calendar_one_month').fullCalendar({
24
+ editable: false, events: '<%= events_path %>', height: 300, aspectRatio: 1.2,
25
+ buttonText: { today:null, prev:null, next: null }, eventMouseover: updateEventDescription
26
+ });
27
+
28
+ $('#calendar_two_months').fullCalendar({
29
+ editable: false, events: '<%= events_path %>', height: 300, aspectRatio: 1.2,
30
+ buttonText: { today:null }, eventMouseover: updateEventDescription,
31
+ month: $('#calendar_one_month').fullCalendar('getDate').getMonth() + 1,
32
+ viewDisplay: function(view) {
33
+ $('#calendar_now').fullCalendar('gotoDate', $('#calendar_two_months').fullCalendar('getDate').getFullYear(), $('#calendar_two_months').fullCalendar('getDate').getMonth() - 2);
34
+ $('#calendar_one_month').fullCalendar('gotoDate', $('#calendar_two_months').fullCalendar('getDate').getFullYear(), $('#calendar_two_months').fullCalendar('getDate').getMonth() - 1);
35
+ }
36
+ });
37
+ }
38
+ );
39
+
40
+ </script>
41
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <h1>New Event</h1>
2
+
3
+ <%= render :partial => "form" %>
@@ -0,0 +1,11 @@
1
+ <div class="span-16">
2
+ <h1>Search Results</h1>
3
+
4
+ <% unless @events.empty? %>
5
+ <%= render :partial => 'event', :collection => @events %>
6
+ <% else %>
7
+ <p>Sorry no events could be located, try broadening your search terms or using partial words.</p>
8
+ <% end %>
9
+ </div>
10
+
11
+ <%= render :partial => 'sidebar' %>
@@ -0,0 +1,30 @@
1
+ <div class="span-10">
2
+ <h1>Event</h1>
3
+
4
+ <%= render :partial => 'event_details', :object => @event %>
5
+
6
+ <h3>Attendees/Participants</h3>
7
+
8
+ <% if @event.attendees.empty? %>
9
+ <p><em>No attendees for this event.</em></p>
10
+ <% else %>
11
+
12
+ form stub
13
+
14
+ <% @event.participants.group_by(&:class).map do |type, participants| %>
15
+ <h4><%= link_to(pluralize(participants.size, type.to_s), engine_path(type)) %></h4>
16
+ <ol>
17
+ <% participants.each do |participant| %>
18
+ <% name_attr = participant.attribute_names.detect{|m_attr| m_attr =~ /name/} %>
19
+ <% if participant.respond_to?(:name) %>
20
+ <li><%= link_to(participant.send(name_attr), engine_path(participant)) %></li>
21
+ <% elsif name_attr %>
22
+ <li><%= link_to(participant.name, engine_path(participant)) %></li>
23
+ <% end %>
24
+ <% end %>
25
+ </ol>
26
+ <% end %>
27
+
28
+ form stub end
29
+ <% end %>
30
+ </div>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5
+ <!-- <link rel="icon" type="image/png" href="/images/favorite.png"/> -->
6
+ <title>Event Calendar</title>
7
+
8
+ <%= stylesheet_link_tag "blueprint/screen", :media => "screen, projection" %>
9
+ <%= stylesheet_link_tag "blueprint/print", :media => "print" %>
10
+
11
+ <!--[if lt IE 8]>
12
+ <%= stylesheet_link_tag "blueprint/ie", :media => "screen, projection" %>
13
+ <![endif]-->
14
+
15
+ <%= stylesheet_link_tag 'error_messages', 'formtastic', 'formtastic_changes',
16
+ 'fullcalendar', 'fullcalendar_changes', 'text_and_colors' %>
17
+
18
+ <%= javascript_include_tag event_calendar_javascript_includes %>
19
+ <%= yield :javascript %>
20
+ <%= csrf_meta_tag %>
21
+ </head>
22
+ <body>
23
+ <div class="container">
24
+ <div class="top-banner span-24 last">
25
+ <div class="header span-14">
26
+ <h1>Event Calendar</h1>
27
+ </div>
28
+ </div>
29
+
30
+ <div class="base_content span-20">
31
+ <%= render_flash %>
32
+ <div class="inner_content">
33
+ <%= yield %>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="span-4 last">
38
+ <div id="main_menu">
39
+ <%= render_event_main_menu %>
40
+ </div>
41
+
42
+ <div class="sidebar">
43
+ <%= render_event_navigation(@event) %>
44
+ </div>
45
+
46
+ </div>
47
+ </div>
48
+ </body>
49
+ </html>
@@ -0,0 +1,42 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ # If you have a Gemfile, require the gems listed there, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
8
+
9
+ module EventCalendar
10
+ class Application < Rails::Application
11
+ # Settings in config/environments/* take precedence over those specified here.
12
+ # Application configuration should go into files in config/initializers
13
+ # -- all .rb files in that directory are automatically loaded.
14
+
15
+ # Custom directories with classes and modules you want to be autoloadable.
16
+ # config.autoload_paths += %W(#{config.root}/extras)
17
+
18
+ # Only load the plugins named here, in the order given (default is alphabetical).
19
+ # :all can be used as a placeholder for all plugins not explicitly named.
20
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
21
+
22
+ # Activate observers that should always be running.
23
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
24
+
25
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27
+ # config.time_zone = 'Central Time (US & Canada)'
28
+
29
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
+ # config.i18n.default_locale = :de
32
+
33
+ # JavaScript files you want as :defaults (application.js is always included).
34
+ config.action_view.javascript_expansions[:defaults] = %w()
35
+
36
+ # Configure the default encoding used in templates for Ruby 1.9.
37
+ config.encoding = "utf-8"
38
+
39
+ # Configure sensitive parameters which will be filtered from the log file.
40
+ config.filter_parameters += [:password]
41
+ end
42
+ end
@@ -0,0 +1,10 @@
1
+ default:
2
+ path: public/stylesheets/blueprint
3
+ plugins:
4
+ - buttons
5
+ - events
6
+ - fancy-type
7
+ - link-icons
8
+ - pagination
9
+ - tacs-base
10
+
data/config/boot.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ gemfile = File.expand_path('../../Gemfile', __FILE__)
5
+ begin
6
+ ENV['BUNDLE_GEMFILE'] = gemfile
7
+ require 'bundler'
8
+ Bundler.setup
9
+ rescue Bundler::GemNotFound => e
10
+ STDERR.puts e.message
11
+ STDERR.puts "Try running `bundle install`."
12
+ exit!
13
+ end if File.exist?(gemfile)
@@ -0,0 +1,8 @@
1
+ <%
2
+ rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
+ rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
+ std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip"
5
+ %>
6
+ default: <%= std_opts %> features
7
+ wip: --tags @wip:3 --wip features
8
+ rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test: &test
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ EventCalendar::Application.initialize!
@@ -0,0 +1,26 @@
1
+ EventCalendar::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the webserver when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_view.debug_rjs = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Don't care if the mailer can't send
18
+ config.action_mailer.raise_delivery_errors = false
19
+
20
+ # Print deprecation notices to the Rails logger
21
+ config.active_support.deprecation = :log
22
+
23
+ # Only use best-standards-support built into browsers
24
+ config.action_dispatch.best_standards_support = :builtin
25
+ end
26
+
@@ -0,0 +1,49 @@
1
+ EventCalendar::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The production environment is meant for finished, "live" apps.
5
+ # Code is not reloaded between requests
6
+ config.cache_classes = true
7
+
8
+ # Full error reports are disabled and caching is turned on
9
+ config.consider_all_requests_local = false
10
+ config.action_controller.perform_caching = true
11
+
12
+ # Specifies the header that your server uses for sending files
13
+ config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
+
15
+ # For nginx:
16
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
+
18
+ # If you have no front-end server that supports something like X-Sendfile,
19
+ # just comment this out and Rails will serve the files
20
+
21
+ # See everything in the log (default is :info)
22
+ # config.log_level = :debug
23
+
24
+ # Use a different logger for distributed setups
25
+ # config.logger = SyslogLogger.new
26
+
27
+ # Use a different cache store in production
28
+ # config.cache_store = :mem_cache_store
29
+
30
+ # Disable Rails's static asset server
31
+ # In production, Apache or nginx will already do this
32
+ config.serve_static_assets = false
33
+
34
+ # Enable serving of images, stylesheets, and javascripts from an asset server
35
+ # config.action_controller.asset_host = "http://assets.example.com"
36
+
37
+ # Disable delivery errors, bad email addresses will be ignored
38
+ # config.action_mailer.raise_delivery_errors = false
39
+
40
+ # Enable threaded mode
41
+ # config.threadsafe!
42
+
43
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
+ # the I18n.default_locale when a translation can not be found)
45
+ config.i18n.fallbacks = true
46
+
47
+ # Send deprecation notices to registered listeners
48
+ config.active_support.deprecation = :notify
49
+ end