devise_invitable 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -41,9 +41,4 @@ class InvitationsController < ApplicationController
41
41
  render_with_scope :edit
42
42
  end
43
43
  end
44
-
45
- protected
46
- def authenticate_resource!
47
- authenticate!(resource_name)
48
- end
49
44
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{devise_invitable}
8
- s.version = "0.1.1"
8
+ s.version = "0.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 = ["Sergio Cambra"]
12
- s.date = %q{2009-12-11}
12
+ s.date = %q{2009-12-12}
13
13
  s.description = %q{It adds support for send invitations by email (it requires to be authenticated) and accept the invitation setting the password}
14
14
  s.email = %q{sergio@entrecables.com}
15
15
  s.extra_rdoc_files = [
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "app/views/invitations/new.html.erb",
30
30
  "devise_invitable.gemspec",
31
31
  "init.rb",
32
+ "lib/devise/controllers/filters.rb",
32
33
  "lib/devise/controllers/url_helpers.rb",
33
34
  "lib/devise/models/invitable.rb",
34
35
  "lib/devise_invitable.rb",
@@ -72,31 +73,31 @@ Gem::Specification.new do |s|
72
73
  s.rubygems_version = %q{1.3.5}
73
74
  s.summary = %q{An invitation strategy for devise}
74
75
  s.test_files = [
75
- "test/integration/invitable_test.rb",
76
+ "test/model_tests_helper.rb",
76
77
  "test/integration_tests_helper.rb",
78
+ "test/models_test.rb",
77
79
  "test/mailers/invitation_test.rb",
78
- "test/model_tests_helper.rb",
80
+ "test/routes_test.rb",
81
+ "test/integration/invitable_test.rb",
79
82
  "test/models/invitable_test.rb",
80
- "test/models_test.rb",
81
- "test/rails_app/app/controllers/admins_controller.rb",
83
+ "test/test_helper.rb",
82
84
  "test/rails_app/app/controllers/application_controller.rb",
85
+ "test/rails_app/app/controllers/admins_controller.rb",
83
86
  "test/rails_app/app/controllers/home_controller.rb",
84
87
  "test/rails_app/app/controllers/users_controller.rb",
85
- "test/rails_app/app/helpers/application_helper.rb",
86
88
  "test/rails_app/app/models/user.rb",
87
- "test/rails_app/config/boot.rb",
88
- "test/rails_app/config/environment.rb",
89
- "test/rails_app/config/environments/development.rb",
90
- "test/rails_app/config/environments/production.rb",
91
- "test/rails_app/config/environments/test.rb",
89
+ "test/rails_app/app/helpers/application_helper.rb",
90
+ "test/rails_app/config/routes.rb",
92
91
  "test/rails_app/config/initializers/backtrace_silencers.rb",
93
- "test/rails_app/config/initializers/inflections.rb",
94
92
  "test/rails_app/config/initializers/new_rails_defaults.rb",
95
93
  "test/rails_app/config/initializers/session_store.rb",
96
- "test/rails_app/config/routes.rb",
97
- "test/rails_app/vendor/plugins/devise_invitable/init.rb",
98
- "test/routes_test.rb",
99
- "test/test_helper.rb"
94
+ "test/rails_app/config/initializers/inflections.rb",
95
+ "test/rails_app/config/environments/test.rb",
96
+ "test/rails_app/config/environments/development.rb",
97
+ "test/rails_app/config/environments/production.rb",
98
+ "test/rails_app/config/environment.rb",
99
+ "test/rails_app/config/boot.rb",
100
+ "test/rails_app/vendor/plugins/devise_invitable/init.rb"
100
101
  ]
101
102
 
102
103
  if s.respond_to? :specification_version then
@@ -0,0 +1,6 @@
1
+ Devise::Controllers::Filters.module_eval do
2
+ protected
3
+ def authenticate_resource!
4
+ authenticate!(resource_name)
5
+ end
6
+ end
data/test/test_helper.rb CHANGED
@@ -6,6 +6,7 @@ require 'mocha'
6
6
  require 'webrat'
7
7
  require File.join(File.dirname(__FILE__), '..', 'lib', 'devise', 'models', 'invitable')
8
8
  require File.join(File.dirname(__FILE__), '..', 'lib', 'devise', 'controllers', 'url_helpers')
9
+ require File.join(File.dirname(__FILE__), '..', 'lib', 'devise', 'controllers', 'filters')
9
10
  ActionView::Base.send :include, Devise::Controllers::UrlHelpers
10
11
 
11
12
  path = File.join(File.dirname(__FILE__), '..', 'app', 'views')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_invitable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-11 00:00:00 +01:00
12
+ date: 2009-12-12 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -64,6 +64,7 @@ files:
64
64
  - app/views/invitations/new.html.erb
65
65
  - devise_invitable.gemspec
66
66
  - init.rb
67
+ - lib/devise/controllers/filters.rb
67
68
  - lib/devise/controllers/url_helpers.rb
68
69
  - lib/devise/models/invitable.rb
69
70
  - lib/devise_invitable.rb
@@ -129,28 +130,28 @@ signing_key:
129
130
  specification_version: 3
130
131
  summary: An invitation strategy for devise
131
132
  test_files:
132
- - test/integration/invitable_test.rb
133
+ - test/model_tests_helper.rb
133
134
  - test/integration_tests_helper.rb
135
+ - test/models_test.rb
134
136
  - test/mailers/invitation_test.rb
135
- - test/model_tests_helper.rb
137
+ - test/routes_test.rb
138
+ - test/integration/invitable_test.rb
136
139
  - test/models/invitable_test.rb
137
- - test/models_test.rb
138
- - test/rails_app/app/controllers/admins_controller.rb
140
+ - test/test_helper.rb
139
141
  - test/rails_app/app/controllers/application_controller.rb
142
+ - test/rails_app/app/controllers/admins_controller.rb
140
143
  - test/rails_app/app/controllers/home_controller.rb
141
144
  - test/rails_app/app/controllers/users_controller.rb
142
- - test/rails_app/app/helpers/application_helper.rb
143
145
  - test/rails_app/app/models/user.rb
144
- - test/rails_app/config/boot.rb
145
- - test/rails_app/config/environment.rb
146
- - test/rails_app/config/environments/development.rb
147
- - test/rails_app/config/environments/production.rb
148
- - test/rails_app/config/environments/test.rb
146
+ - test/rails_app/app/helpers/application_helper.rb
147
+ - test/rails_app/config/routes.rb
149
148
  - test/rails_app/config/initializers/backtrace_silencers.rb
150
- - test/rails_app/config/initializers/inflections.rb
151
149
  - test/rails_app/config/initializers/new_rails_defaults.rb
152
150
  - test/rails_app/config/initializers/session_store.rb
153
- - test/rails_app/config/routes.rb
151
+ - test/rails_app/config/initializers/inflections.rb
152
+ - test/rails_app/config/environments/test.rb
153
+ - test/rails_app/config/environments/development.rb
154
+ - test/rails_app/config/environments/production.rb
155
+ - test/rails_app/config/environment.rb
156
+ - test/rails_app/config/boot.rb
154
157
  - test/rails_app/vendor/plugins/devise_invitable/init.rb
155
- - test/routes_test.rb
156
- - test/test_helper.rb