has_schedule 1.0.1 → 1.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.
- data/VERSION +1 -1
- data/has_schedule.gemspec +1 -1
- data/lib/has_schedule.rb +1 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/has_schedule.gemspec
CHANGED
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
|
-
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Schlesinger
|