has_schedule 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.1.0
data/has_schedule.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{has_schedule}
8
- s.version = "1.0.1"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Schlesinger"]
data/lib/has_schedule.rb CHANGED
@@ -10,7 +10,7 @@ module HasSchedule
10
10
  attr_writer :schedule
11
11
 
12
12
  alias_method_chain :reload, :schedule
13
- alias_method_chain :save, :schedule
13
+ before_save :save_with_schedule
14
14
  end
15
15
  end
16
16
 
@@ -22,7 +22,6 @@ module HasSchedule
22
22
 
23
23
  def save_with_schedule
24
24
  self.schedule_yaml = @schedule.to_yaml unless @schedule.nil?
25
- save_without_schedule
26
25
  end
27
26
 
28
27
  def schedule
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_schedule
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 0
9
8
  - 1
10
- version: 1.0.1
9
+ - 0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Schlesinger