updated devise added a devise_invitable fork and performed migration
This commit is contained in:
parent
ab41a5f24a
commit
8bc857cf4d
4 changed files with 23 additions and 15 deletions
4
Gemfile
4
Gemfile
|
|
@ -11,8 +11,8 @@ gem 'nokogiri', '1.4.3.1'
|
||||||
gem "fog"
|
gem "fog"
|
||||||
|
|
||||||
#Security
|
#Security
|
||||||
gem 'devise', '1.1.3'
|
gem 'devise', '1.2.rc'
|
||||||
gem 'devise_invitable','0.3.5'
|
gem 'devise_invitable', :git => 'git://github.com/zhitomirskiyi/devise_invitable.git'
|
||||||
|
|
||||||
#Authentication
|
#Authentication
|
||||||
gem 'omniauth', '0.1.6'
|
gem 'omniauth', '0.1.6'
|
||||||
|
|
|
||||||
22
Gemfile.lock
22
Gemfile.lock
|
|
@ -44,6 +44,14 @@ GIT
|
||||||
carrierwave (0.5.0)
|
carrierwave (0.5.0)
|
||||||
activesupport (~> 3.0)
|
activesupport (~> 3.0)
|
||||||
|
|
||||||
|
GIT
|
||||||
|
remote: git://github.com/zhitomirskiyi/devise_invitable.git
|
||||||
|
revision: a52f9638f900c1af77855ec357a0c861fbb12e83
|
||||||
|
specs:
|
||||||
|
devise_invitable (0.4.rc)
|
||||||
|
devise (~> 1.2.rc)
|
||||||
|
rails (~> 3.0.0)
|
||||||
|
|
||||||
PATH
|
PATH
|
||||||
remote: vendor/gems/jasmine
|
remote: vendor/gems/jasmine
|
||||||
specs:
|
specs:
|
||||||
|
|
@ -137,11 +145,10 @@ GEM
|
||||||
culerity (0.2.14)
|
culerity (0.2.14)
|
||||||
daemons (1.1.0)
|
daemons (1.1.0)
|
||||||
database_cleaner (0.6.0)
|
database_cleaner (0.6.0)
|
||||||
devise (1.1.3)
|
devise (1.2.rc)
|
||||||
bcrypt-ruby (~> 2.1.2)
|
bcrypt-ruby (~> 2.1.2)
|
||||||
warden (~> 0.10.7)
|
orm_adapter (~> 0.0.2)
|
||||||
devise_invitable (0.3.5)
|
warden (~> 1.0.2)
|
||||||
devise (~> 1.1.0)
|
|
||||||
diff-lcs (1.1.2)
|
diff-lcs (1.1.2)
|
||||||
erubis (2.6.6)
|
erubis (2.6.6)
|
||||||
abstract (>= 1.0.0)
|
abstract (>= 1.0.0)
|
||||||
|
|
@ -257,6 +264,7 @@ GEM
|
||||||
oa-enterprise (= 0.1.6)
|
oa-enterprise (= 0.1.6)
|
||||||
oa-oauth (= 0.1.6)
|
oa-oauth (= 0.1.6)
|
||||||
oa-openid (= 0.1.6)
|
oa-openid (= 0.1.6)
|
||||||
|
orm_adapter (0.0.4)
|
||||||
polyglot (0.3.1)
|
polyglot (0.3.1)
|
||||||
pyu-ruby-sasl (0.0.3.2)
|
pyu-ruby-sasl (0.0.3.2)
|
||||||
rack (1.2.1)
|
rack (1.2.1)
|
||||||
|
|
@ -343,7 +351,7 @@ GEM
|
||||||
uuidtools (2.1.1)
|
uuidtools (2.1.1)
|
||||||
vegas (0.1.8)
|
vegas (0.1.8)
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
warden (0.10.7)
|
warden (1.0.3)
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
webmock (1.6.2)
|
webmock (1.6.2)
|
||||||
addressable (>= 2.2.2)
|
addressable (>= 2.2.2)
|
||||||
|
|
@ -366,8 +374,8 @@ DEPENDENCIES
|
||||||
cloudfiles (= 1.4.10)
|
cloudfiles (= 1.4.10)
|
||||||
cucumber-rails (= 0.3.2)
|
cucumber-rails (= 0.3.2)
|
||||||
database_cleaner (= 0.6.0)
|
database_cleaner (= 0.6.0)
|
||||||
devise (= 1.1.3)
|
devise (= 1.2.rc)
|
||||||
devise_invitable (= 0.3.5)
|
devise_invitable!
|
||||||
em-websocket!
|
em-websocket!
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
fastercsv (= 1.5.4)
|
fastercsv (= 1.5.4)
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class Invitation < ActiveRecord::Base
|
||||||
opts[:from].save!
|
opts[:from].save!
|
||||||
invitee.reload
|
invitee.reload
|
||||||
end
|
end
|
||||||
invitee.invite!
|
invitee.invite!(:email => (opts[:service] == 'email'))
|
||||||
Rails.logger.info("event=invitation_sent to=#{opts[:identifier]} #{"inviter=#{opts[:from].diaspora_handle}" if opts[:from]}")
|
Rails.logger.info("event=invitation_sent to=#{opts[:identifier]} #{"inviter=#{opts[:from].diaspora_handle}" if opts[:from]}")
|
||||||
invitee
|
invitee
|
||||||
end
|
end
|
||||||
|
|
|
||||||
10
db/schema.rb
10
db/schema.rb
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20110125190034) do
|
ActiveRecord::Schema.define(:version => 20110126015407) do
|
||||||
|
|
||||||
create_table "aspect_memberships", :force => true do |t|
|
create_table "aspect_memberships", :force => true do |t|
|
||||||
t.integer "aspect_id"
|
t.integer "aspect_id"
|
||||||
|
|
@ -273,8 +273,7 @@ ActiveRecord::Schema.define(:version => 20110125190034) do
|
||||||
t.string "language"
|
t.string "language"
|
||||||
t.string "email", :default => "", :null => false
|
t.string "email", :default => "", :null => false
|
||||||
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
||||||
t.string "password_salt", :default => "", :null => false
|
t.string "invitation_token", :limit => 60
|
||||||
t.string "invitation_token", :limit => 20
|
|
||||||
t.datetime "invitation_sent_at"
|
t.datetime "invitation_sent_at"
|
||||||
t.string "reset_password_token"
|
t.string "reset_password_token"
|
||||||
t.string "remember_token"
|
t.string "remember_token"
|
||||||
|
|
@ -434,8 +433,7 @@ ActiveRecord::Schema.define(:version => 20110125190034) do
|
||||||
t.string "language"
|
t.string "language"
|
||||||
t.string "email", :default => "", :null => false
|
t.string "email", :default => "", :null => false
|
||||||
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
||||||
t.string "password_salt", :default => "", :null => false
|
t.string "invitation_token", :limit => 60
|
||||||
t.string "invitation_token", :limit => 20
|
|
||||||
t.datetime "invitation_sent_at"
|
t.datetime "invitation_sent_at"
|
||||||
t.string "reset_password_token"
|
t.string "reset_password_token"
|
||||||
t.string "remember_token"
|
t.string "remember_token"
|
||||||
|
|
@ -448,6 +446,8 @@ ActiveRecord::Schema.define(:version => 20110125190034) do
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.string "mongo_id"
|
t.string "mongo_id"
|
||||||
|
t.string "invitation_service"
|
||||||
|
t.string "invitation_identifier"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue