fullcalendar_engine 1.0.0 → 1.0.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.
@@ -38,7 +38,7 @@ module FullcalendarEngine
38
38
  end
39
39
 
40
40
  def recurring_period(period)
41
- Event::REPEATS.key(period).to_s.downcase
41
+ Event::REPEATS.key(period.titleize).to_s.downcase
42
42
  end
43
43
 
44
44
  private
@@ -4,7 +4,7 @@
4
4
 
5
5
  <%= content_tag :script do %>
6
6
  full_calendar_options = <%= FullcalendarEngine::Configuration.to_json.html_safe %>
7
- app_path = full_calendar_options["mount_path"]
7
+ app_path = "<%= FullcalendarEngine::Configuration["mount_path"] %>"
8
8
  <% end %>
9
9
 
10
10
  <div>
@@ -1,4 +1,5 @@
1
- config = File.exists?('config/fullcalendar.yml') ? YAML.load_file("config/fullcalendar.yml") || {} : {}
1
+ FULLCALENDAR_FILE_PATH = Rails.root.join('config', 'fullcalendar.yml')
2
+ config = File.exists?(FULLCALENDAR_FILE_PATH) ? YAML.load_file(FULLCALENDAR_FILE_PATH) || {} : {}
2
3
  FullcalendarEngine::Configuration = {
3
4
  'editable' => true,
4
5
  'header' => {
@@ -1,3 +1,3 @@
1
1
  module FullcalendarEngine
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullcalendar_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: