acts_as_event_owner 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_event_owner}
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danny Burkes"]
12
- s.date = %q{2010-12-12}
12
+ s.date = %q{2010-12-27}
13
13
  s.description = %q{Simple calendar events for any ActiveRecord model}
14
14
  s.email = %q{dburkes@netable.com}
15
15
  s.extra_rdoc_files = [
@@ -116,7 +116,8 @@ module ActsAsEventOwner
116
116
 
117
117
  EventOccurrence.find_or_create_by_owner_id_and_owner_type_and_event_specification_id_and_start_at_and_end_at({
118
118
  :owner_id => self.owner_id, :owner_type => self.owner_type, :event_specification_id => self.id,
119
- :start_at => occurrence.start_time, :end_at => occurrence.finish_time}.merge(additional_columns).merge(attribute_overrides.stringify_keys))
119
+ :description => occurrence.description, :start_at => occurrence.start_time,
120
+ :end_at => occurrence.finish_time}.merge(additional_columns).merge(attribute_overrides.stringify_keys))
120
121
  end
121
122
  end
122
123
 
@@ -125,7 +126,7 @@ module ActsAsEventOwner
125
126
  spec.generate_events(options)
126
127
  }
127
128
  end
128
-
129
+
129
130
  def repeat
130
131
  self.attributes["repeat"].try(:to_sym)
131
132
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsEventOwner
2
- VERSION = "1.1.1" unless defined? ActsAsEventOwner::VERSION
2
+ VERSION = "1.1.2" unless defined? ActsAsEventOwner::VERSION
3
3
  end
@@ -237,6 +237,11 @@ describe ActsAsEventOwner::EventSpecification do
237
237
  }.should change(EventOccurrence, :count).by(1)
238
238
  end
239
239
 
240
+ it "copies base columns from event_specifications to event occurences" do
241
+ @spec.generate_events
242
+ @spec.event_occurrences.first.description.should == @spec.description
243
+ end
244
+
240
245
  it "copies added columns from event_specifications to event_occurrences" do
241
246
  @spec.generate_events
242
247
  @spec.event_occurrences.first.added_string.should == @spec.added_string
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 1
9
- version: 1.1.1
8
+ - 2
9
+ version: 1.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Danny Burkes
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-12 00:00:00 -08:00
17
+ date: 2010-12-27 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency