social_connections 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,7 +1,13 @@
1
1
  SocialConnections
2
2
  =================
3
3
 
4
- Introduction goes here.
4
+ Enables
5
+
6
+ * Social connections between people and things: list of friends, things you like, stuff you recommend.
7
+ * Activities on those things which are recorded for later processing
8
+ * Digest mechanism to digest those activities, e.g. for daily digest emails.
9
+
10
+ This gem is work in progress and my playground, and currently my playground, don't use it!
5
11
 
6
12
 
7
13
  Example
@@ -22,4 +28,4 @@ Run specs in ./spec:
22
28
  rspec spec
23
29
 
24
30
 
25
- Copyright (c) 2011 [name of plugin creator], released under the MIT license
31
+ Copyright (c) 2011 Chris Oloff, released under the MIT license
@@ -1,3 +1,3 @@
1
1
  module SocialConnections
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -3,6 +3,13 @@
3
3
  require 'social_connections/acts_as_connectable'
4
4
  require 'social_connections/social_aggregator'
5
5
 
6
+ class SocialConnectionsTasks < Rails::Railtie
7
+ rake_tasks do
8
+ puts "defining rake migration task for social_connections..."
9
+ Dir[File.join(File.dirname(__FILE__),'tasks/*.rake')].each { |f| load f }
10
+ end
11
+ end
12
+
6
13
  %w{ models mailers }.each do |dir|
7
14
  path = File.join(File.dirname(__FILE__), 'app', dir)
8
15
  $LOAD_PATH << path
@@ -10,3 +17,5 @@ require 'social_connections/social_aggregator'
10
17
  ActiveSupport::Dependencies.autoload_once_paths.delete(path)
11
18
  end
12
19
 
20
+ path = File.join(File.dirname(__FILE__), 'tasks')
21
+ ActiveSupport::Dependencies.autoload_paths << path
@@ -7,7 +7,8 @@ namespace :db do
7
7
  desc description
8
8
  task :social_connections => :environment do
9
9
  ActiveRecord::Migration.verbose = true
10
- ActiveRecord::Migrator.migrate("vendor/plugins/social_connections/lib/db/migrate/", ENV['VERSION'] ? ENV['VERSION'].to_i : nil)
10
+ # Dir[File.join(File.dirname(__FILE__),'tasks/*.rake')].each { |f| load f }
11
+ ActiveRecord::Migrator.migrate(File.join(File.dirname(__FILE__), '../db/migrate/'), ENV['VERSION'] ? ENV['VERSION'].to_i : nil)
11
12
  Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
12
13
  end
13
14
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: social_connections
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-24 00:00:00 +02:00
13
+ date: 2011-06-25 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies: []
16
16