devise_invitable 0.1.4 → 0.2.0

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/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.authors = ["Sergio Cambra"]
13
13
  gem.add_development_dependency 'mocha'
14
14
  gem.add_development_dependency 'webrat'
15
- gem.add_dependency 'devise', '~> 0.7.2'
15
+ gem.add_dependency 'devise', '~> 0.8.0'
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -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.4"
8
+ s.version = "0.2.0"
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-23}
12
+ s.date = %q{2010-01-08}
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 = [
@@ -59,6 +59,7 @@ Gem::Specification.new do |s|
59
59
  "test/rails_app/config/environments/production.rb",
60
60
  "test/rails_app/config/environments/test.rb",
61
61
  "test/rails_app/config/initializers/backtrace_silencers.rb",
62
+ "test/rails_app/config/initializers/devise.rb",
62
63
  "test/rails_app/config/initializers/inflections.rb",
63
64
  "test/rails_app/config/initializers/new_rails_defaults.rb",
64
65
  "test/rails_app/config/initializers/session_store.rb",
@@ -94,6 +95,7 @@ Gem::Specification.new do |s|
94
95
  "test/rails_app/config/initializers/inflections.rb",
95
96
  "test/rails_app/config/initializers/new_rails_defaults.rb",
96
97
  "test/rails_app/config/initializers/session_store.rb",
98
+ "test/rails_app/config/initializers/devise.rb",
97
99
  "test/rails_app/config/routes.rb",
98
100
  "test/rails_app/vendor/plugins/devise_invitable/init.rb",
99
101
  "test/routes_test.rb",
@@ -107,16 +109,16 @@ Gem::Specification.new do |s|
107
109
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
108
110
  s.add_development_dependency(%q<mocha>, [">= 0"])
109
111
  s.add_development_dependency(%q<webrat>, [">= 0"])
110
- s.add_runtime_dependency(%q<devise>, ["~> 0.7.2"])
112
+ s.add_runtime_dependency(%q<devise>, ["~> 0.8.0"])
111
113
  else
112
114
  s.add_dependency(%q<mocha>, [">= 0"])
113
115
  s.add_dependency(%q<webrat>, [">= 0"])
114
- s.add_dependency(%q<devise>, ["~> 0.7.2"])
116
+ s.add_dependency(%q<devise>, ["~> 0.8.0"])
115
117
  end
116
118
  else
117
119
  s.add_dependency(%q<mocha>, [">= 0"])
118
120
  s.add_dependency(%q<webrat>, [">= 0"])
119
- s.add_dependency(%q<devise>, ["~> 0.7.2"])
121
+ s.add_dependency(%q<devise>, ["~> 0.8.0"])
120
122
  end
121
123
  end
122
124
 
@@ -4,7 +4,7 @@ class InvitationMailTest < ActionMailer::TestCase
4
4
 
5
5
  def setup
6
6
  setup_mailer
7
- DeviseMailer.sender = 'test@example.com'
7
+ Devise.mailer_sender = 'test@example.com'
8
8
  end
9
9
 
10
10
  def user
@@ -1,4 +1,4 @@
1
1
  class User < ActiveRecord::Base
2
- devise :all
2
+ devise :authenticatable, :confirmable, :recoverable, :rememberable, :validatable
3
3
  attr_accessible :username, :email, :password, :password_confirmation
4
4
  end
@@ -0,0 +1,76 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth. The first
2
+ # four configuration values can also be set straight in your models.
3
+ Devise.setup do |config|
4
+ # Configure Devise modules used by default. You should always set this value
5
+ # because if Devise adds a new strategy, it won't be added to your application
6
+ # by default, unless you configure it here.
7
+ #
8
+ # Remember that Devise includes other modules on its own (like :activatable
9
+ # and :timeoutable) which are not included here and also plugins. So be sure
10
+ # to check the docs for a complete set.
11
+ config.all = [:authenticatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable]
12
+
13
+ # Invoke `rake secret` and use the printed value to setup a pepper to generate
14
+ # the encrypted password. By default no pepper is used.
15
+ # config.pepper = "rake secret output"
16
+
17
+ # Configure how many times you want the password is reencrypted. Default is 10.
18
+ # config.stretches = 10
19
+
20
+ # Define which will be the encryption algorithm. Supported algorithms are :sha1
21
+ # (default) and :sha512. Devise also supports encryptors from others authentication
22
+ # frameworks as :clearance_sha1, :authlogic_sha512 (then you should set stretches
23
+ # above to 20 for default behavior) and :restful_authentication_sha1 (then you
24
+ # should set stretches to 10, and copy REST_AUTH_SITE_KEY to pepper)
25
+ # config.encryptor = :sha1
26
+
27
+ # Configure which keys are used when authenticating an user. By default is
28
+ # just :email. You can configure it to use [:username, :subdomain], so for
29
+ # authenticating an user, both parameters are required. Remember that those
30
+ # parameters are used only when authenticating and not when retrieving from
31
+ # session. If you need permissions, you should implement that in a before filter.
32
+ # config.authentication_keys = [ :email ]
33
+
34
+ # The time you want give to your user to confirm his account. During this time
35
+ # he will be able to access your application without confirming. Default is nil.
36
+ # config.confirm_within = 2.days
37
+
38
+ # The time the user will be remembered without asking for credentials again.
39
+ # config.remember_for = 2.weeks
40
+
41
+ # The time you want to timeout the user session without activity. After this
42
+ # time the user will be asked for credentials again.
43
+ # config.timeout_in = 10.minutes
44
+
45
+ # Configure the e-mail address which will be shown in DeviseMailer.
46
+ # config.mailer_sender = "foo.bar@yourapp.com"
47
+
48
+ # Load and configure the ORM. Supports :active_record, :data_mapper and :mongo_mapper.
49
+ # require 'devise/orm/mongo_mapper'
50
+ # config.orm = :mongo_mapper
51
+
52
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
53
+ # "sessions/users/new". It's turned off by default because it's slower if you
54
+ # are using only default views.
55
+ # config.scoped_views = true
56
+
57
+ # If you want to use other strategies, that are not (yet) supported by Devise,
58
+ # you can configure them inside the config.warden block. The example below
59
+ # allows you to setup OAuth, using http://github.com/roman/warden_oauth
60
+ #
61
+ # config.warden do |manager|
62
+ # manager.oauth(:twitter) do |twitter|
63
+ # twitter.consumer_secret = <YOUR CONSUMER SECRET>
64
+ # twitter.consumer_key = <YOUR CONSUMER KEY>
65
+ # twitter.options :site => 'http://twitter.com'
66
+ # end
67
+ # manager.default_strategies.unshift :twitter_oauth
68
+ # end
69
+
70
+ # Configure default_url_options if you are using dynamic segments in :path_prefix
71
+ # for devise_for.
72
+ #
73
+ # config.default_url_options do
74
+ # { :locale => I18n.locale }
75
+ # end
76
+ end
@@ -31,7 +31,7 @@ ActiveRecord::Schema.define(:version => 1) do
31
31
  end
32
32
  end
33
33
  class User
34
- devise :authenticatable, :invitable
34
+ devise :invitable
35
35
  end
36
36
  ActionController::Routing::Routes.draw do |map|
37
37
  map.devise_for :users
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.4
4
+ version: 0.2.0
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-23 00:00:00 +01:00
12
+ date: 2010-01-08 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 0.7.2
43
+ version: 0.8.0
44
44
  version:
45
45
  description: It adds support for send invitations by email (it requires to be authenticated) and accept the invitation setting the password
46
46
  email: sergio@entrecables.com
@@ -94,6 +94,7 @@ files:
94
94
  - test/rails_app/config/environments/production.rb
95
95
  - test/rails_app/config/environments/test.rb
96
96
  - test/rails_app/config/initializers/backtrace_silencers.rb
97
+ - test/rails_app/config/initializers/devise.rb
97
98
  - test/rails_app/config/initializers/inflections.rb
98
99
  - test/rails_app/config/initializers/new_rails_defaults.rb
99
100
  - test/rails_app/config/initializers/session_store.rb
@@ -151,6 +152,7 @@ test_files:
151
152
  - test/rails_app/config/initializers/inflections.rb
152
153
  - test/rails_app/config/initializers/new_rails_defaults.rb
153
154
  - test/rails_app/config/initializers/session_store.rb
155
+ - test/rails_app/config/initializers/devise.rb
154
156
  - test/rails_app/config/routes.rb
155
157
  - test/rails_app/vendor/plugins/devise_invitable/init.rb
156
158
  - test/routes_test.rb