Skip to content

Commit

Permalink
Revert "upgrade devise; devise_invitable"
Browse files Browse the repository at this point in the history
This reverts commit 0f56ee7.
  • Loading branch information
danielgrippi committed Dec 6, 2011
1 parent 0f56ee7 commit d0f58e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ gem 'thin', '~> 1.3.1', :require => false

# authentication

gem 'devise', '~> 1.5.0'
gem 'devise_invitable', '~> 0.6.0'
gem 'devise', '~> 1.3.1'
gem 'devise_invitable', '0.5.0'
gem 'jwt', "0.1.3"
gem 'oauth2-provider', '0.0.16'

Expand Down
22 changes: 11 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ GEM
addressable (2.2.4)
archive-tar-minitar (0.5.2)
arel (2.0.10)
bcrypt-ruby (3.0.1)
bcrypt-ruby (2.1.4)
builder (2.1.2)
bunny (0.7.8)
capistrano (2.5.19)
Expand Down Expand Up @@ -145,13 +145,13 @@ GEM
culerity (0.2.15)
daemons (1.1.4)
database_cleaner (0.7.0)
devise (1.5.2)
bcrypt-ruby (~> 3.0)
devise (1.3.4)
bcrypt-ruby (~> 2.1.2)
orm_adapter (~> 0.0.3)
warden (~> 1.1)
devise_invitable (0.6.0)
devise (>= 1.4.6, < 1.6)
rails (>= 3.0.0, < 3.2)
warden (~> 1.0.3)
devise_invitable (0.5.0)
devise (~> 1.3.1)
rails (>= 3.0.0, <= 3.2)
diff-lcs (1.1.3)
em-synchrony (0.2.0)
eventmachine (>= 0.12.9)
Expand Down Expand Up @@ -286,7 +286,7 @@ GEM
omniauth-oauth (~> 1.0)
open4 (1.3.0)
orm_adapter (0.0.5)
parallel (0.5.10)
parallel (0.5.9)
parallel_tests (0.6.11)
parallel
polyglot (0.3.3)
Expand Down Expand Up @@ -399,7 +399,7 @@ GEM
uuidtools (2.1.2)
vegas (0.1.8)
rack (>= 1.0.0)
warden (1.1.0)
warden (1.0.6)
rack (>= 1.0)
webmock (1.6.2)
addressable (>= 2.2.2)
Expand Down Expand Up @@ -429,8 +429,8 @@ DEPENDENCIES
cucumber-api-steps (= 0.6)
cucumber-rails (= 0.3.2)
database_cleaner (= 0.7.0)
devise (~> 1.5.0)
devise_invitable (~> 0.6.0)
devise (~> 1.3.1)
devise_invitable (= 0.5.0)
diaspora-client!
em-synchrony
em-websocket
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def create
emails = params[:user][:email].to_s.gsub(/\s/, '').split(/, */)
#NOTE should we try and find users by email here? probs
aspect = current_user.aspects.find(aspect_id)

language = params[:user][:language]

invites = Invitation.batch_invite(emails, :message => message, :sender => current_user, :aspect => aspect, :service => 'email', :language => language)
Expand Down
3 changes: 1 addition & 2 deletions spec/models/invitation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
invite = Invitation.create(:sender => alice, :aspect => alice.aspects.first, :service => 'facebook', :identifier => bob.services.first.uid)
lambda {
invite.send!
#}.should_not change(User, :count)
}.should raise_error /ActiveRecord::ReadOnlyRecord/
}.should_not change(User, :count)
end
end

Expand Down

0 comments on commit d0f58e1

Please sign in to comment.