social_stream-events 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,26 @@
1
+ class EventsGroupTitleAndDescriptionInActivityObject < ActiveRecord::Migration
2
+ def up
3
+ ao_ts = ActivityObject.record_timestamps
4
+ ActivityObject.record_timestamps = false
5
+
6
+ # Fix 'events' table
7
+ e_ts = Event.record_timestamps
8
+ Event.record_timestamps = false
9
+
10
+ Event.all.each do |e|
11
+ e.activity_object.title = e.read_attribute(:title)
12
+ e.save!
13
+ end
14
+ change_table :events do |t|
15
+ t.remove :title
16
+ end
17
+ Event.reset_column_information
18
+ Event.record_timestamps = e_ts
19
+
20
+ ActivityObject.record_timestamps = ao_ts
21
+ end
22
+
23
+ def down
24
+ raise ActiveRecord::IrreversibleMigration # Due to trans-gem oddities
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Events
3
- VERSION = "0.7.1".freeze
3
+ VERSION = "0.8.0".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 0.15.2')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.16.0')
16
16
  s.add_runtime_dependency('rails-scheduler', '~> 0.0.6')
17
17
  s.add_runtime_dependency('coffee-rails', '>= 3.1.0')
18
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-08 00:00:00.000000000Z
13
+ date: 2012-02-16 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
17
- requirement: &76139600 !ruby/object:Gem::Requirement
17
+ requirement: &76692230 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.15.2
22
+ version: 0.16.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *76139600
25
+ version_requirements: *76692230
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rails-scheduler
28
- requirement: &76139350 !ruby/object:Gem::Requirement
28
+ requirement: &76691870 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.0.6
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *76139350
36
+ version_requirements: *76691870
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-rails
39
- requirement: &76139100 !ruby/object:Gem::Requirement
39
+ requirement: &76691490 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 3.1.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *76139100
47
+ version_requirements: *76691490
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: sqlite3-ruby
50
- requirement: &76138900 !ruby/object:Gem::Requirement
50
+ requirement: &76691260 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *76138900
58
+ version_requirements: *76691260
59
59
  description: ! 'Social Stream is a Ruby on Rails engine providing your application
60
60
  with social networking features and activity streams.
61
61
 
@@ -99,6 +99,7 @@ files:
99
99
  - db/migrate/20111120104349_create_rooms.rb
100
100
  - db/migrate/20111204155637_add_scheduler.rb
101
101
  - db/migrate/20111218203314_change_scheduler.rb
102
+ - db/migrate/20120208143756_events_group_title_and_description_in_activity_object.rb
102
103
  - db/migrate/20120208144948_add_events_foreign_key.rb
103
104
  - lib/generators/social_stream/events/install_generator.rb
104
105
  - lib/social_stream-events.rb