devise_invitable 0.3.4 → 0.6.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.
Files changed (63) hide show
  1. data/README.rdoc +124 -43
  2. data/app/controllers/devise/invitations_controller.rb +36 -9
  3. data/app/views/devise/invitations/new.html.erb +1 -1
  4. data/config/locales/en.yml +5 -3
  5. data/lib/devise_invitable/controllers/helpers.rb +1 -6
  6. data/lib/devise_invitable/inviter.rb +39 -0
  7. data/lib/devise_invitable/mailer.rb +4 -3
  8. data/lib/devise_invitable/model.rb +99 -41
  9. data/lib/devise_invitable/rails.rb +5 -2
  10. data/lib/devise_invitable/routes.rb +8 -5
  11. data/lib/devise_invitable/schema.rb +29 -2
  12. data/lib/devise_invitable/version.rb +3 -0
  13. data/lib/devise_invitable.rb +48 -6
  14. data/lib/generators/active_record/templates/migration.rb +15 -7
  15. data/lib/generators/devise_invitable/devise_invitable_generator.rb +4 -0
  16. data/lib/generators/devise_invitable/install_generator.rb +21 -2
  17. data/lib/generators/devise_invitable/views_generator.rb +11 -2
  18. data/lib/generators/mongoid/devise_invitable_generator.rb +8 -0
  19. metadata +63 -143
  20. data/.document +0 -5
  21. data/.gitignore +0 -22
  22. data/Gemfile +0 -3
  23. data/Gemfile.lock +0 -108
  24. data/Rakefile +0 -55
  25. data/VERSION +0 -1
  26. data/devise_invitable.gemspec +0 -146
  27. data/test/generators_test.rb +0 -45
  28. data/test/integration/invitable_test.rb +0 -109
  29. data/test/integration_tests_helper.rb +0 -58
  30. data/test/mailers/invitation_test.rb +0 -62
  31. data/test/model_tests_helper.rb +0 -41
  32. data/test/models/invitable_test.rb +0 -188
  33. data/test/models_test.rb +0 -31
  34. data/test/rails_app/app/controllers/admins_controller.rb +0 -6
  35. data/test/rails_app/app/controllers/application_controller.rb +0 -3
  36. data/test/rails_app/app/controllers/home_controller.rb +0 -4
  37. data/test/rails_app/app/controllers/users_controller.rb +0 -12
  38. data/test/rails_app/app/helpers/application_helper.rb +0 -2
  39. data/test/rails_app/app/models/octopussy.rb +0 -11
  40. data/test/rails_app/app/models/user.rb +0 -4
  41. data/test/rails_app/app/views/home/index.html.erb +0 -0
  42. data/test/rails_app/app/views/layouts/application.html.erb +0 -15
  43. data/test/rails_app/app/views/users/invitations/new.html.erb +0 -15
  44. data/test/rails_app/config/application.rb +0 -46
  45. data/test/rails_app/config/boot.rb +0 -13
  46. data/test/rails_app/config/database.yml +0 -22
  47. data/test/rails_app/config/environment.rb +0 -5
  48. data/test/rails_app/config/environments/development.rb +0 -26
  49. data/test/rails_app/config/environments/production.rb +0 -49
  50. data/test/rails_app/config/environments/test.rb +0 -35
  51. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -7
  52. data/test/rails_app/config/initializers/devise.rb +0 -144
  53. data/test/rails_app/config/initializers/inflections.rb +0 -10
  54. data/test/rails_app/config/initializers/mime_types.rb +0 -5
  55. data/test/rails_app/config/initializers/secret_token.rb +0 -7
  56. data/test/rails_app/config/initializers/session_store.rb +0 -8
  57. data/test/rails_app/config/locales/en.yml +0 -5
  58. data/test/rails_app/config/routes.rb +0 -4
  59. data/test/rails_app/config.ru +0 -4
  60. data/test/rails_app/script/rails +0 -6
  61. data/test/routes_test.rb +0 -20
  62. data/test/test_helper.rb +0 -30
  63. /data/app/views/devise/mailer/{invitation.html.erb → invitation_instructions.html.erb} +0 -0
@@ -2,9 +2,12 @@ module DeviseInvitable
2
2
  class Engine < ::Rails::Engine
3
3
 
4
4
  ActiveSupport.on_load(:action_controller) { include DeviseInvitable::Controllers::UrlHelpers }
5
- ActiveSupport.on_load(:action_view) { include DeviseInvitable::Controllers::UrlHelpers }
5
+ ActiveSupport.on_load(:action_view) { include DeviseInvitable::Controllers::UrlHelpers }
6
6
 
7
- config.after_initialize do
7
+ # We use to_prepare instead of after_initialize here because Devise is a Rails engine; its
8
+ # mailer is reloaded like the rest of the user's app. Got to make sure that our mailer methods
9
+ # are included each time Devise::Mailer is (re)loaded.
10
+ config.to_prepare do
8
11
  require 'devise/mailer'
9
12
  Devise::Mailer.send :include, DeviseInvitable::Mailer
10
13
  end
@@ -1,10 +1,13 @@
1
1
  module ActionDispatch::Routing
2
2
  class Mapper
3
- protected
4
- def devise_invitation(mapping, controllers)
5
- resource :invitation, :only => [:new, :create, :update], :path => mapping.path_names[:invitation], :controller => controllers[:invitations] do
6
- get :edit, :path => mapping.path_names[:accept], :as => :accept
7
- end
3
+
4
+ protected
5
+ def devise_invitation(mapping, controllers)
6
+ resource :invitation, :only => [:new, :create, :update],
7
+ :path => mapping.path_names[:invitation], :controller => controllers[:invitations] do
8
+ get :edit, :path => mapping.path_names[:accept], :as => :accept
8
9
  end
10
+ end
11
+
9
12
  end
10
13
  end
@@ -1,9 +1,36 @@
1
1
  module DeviseInvitable
2
2
  module Schema
3
- # Creates invitation_token and invitation_sent_at.
3
+ # Add invitation_token and invitation_sent_at columns in the resource's database table.
4
+ #
5
+ # Examples
6
+ #
7
+ # # For a new resource migration:
8
+ # create_table :the_resources do
9
+ # t.database_authenticatable :null => false # you need at least this
10
+ # t.invitable
11
+ # ...
12
+ # end
13
+ # add_index :the_resources, :invitation_token # for invitable
14
+ #
15
+ # # or if the resource's table already exists, define a migration and put this in:
16
+ # change_table :the_resources do |t|
17
+ # t.string :invitation_token, :limit => 60
18
+ # t.datetime :invitation_sent_at
19
+ # t.datetime :invitation_accepted_at
20
+ # t.index :invitation_token # for invitable
21
+ # end
22
+ #
23
+ # # And allow encrypted_password to be null:
24
+ # change_column :the_resources, :encrypted_password, :string, :null => true
25
+ # # the following line is only if you use Devise's encryptable module!
26
+ # change_column :the_resources, :password_salt, :string, :null => true
4
27
  def invitable
5
- apply_devise_schema :invitation_token, String, :limit => 20
28
+ apply_devise_schema :invitation_token, String, :limit => 60
6
29
  apply_devise_schema :invitation_sent_at, DateTime
30
+ apply_devise_schema :invitation_accepted_at, DateTime
31
+ apply_devise_schema :invitation_limit, Integer
32
+ apply_devise_schema :invited_by_id, Integer
33
+ apply_devise_schema :invited_by_type, String
7
34
  end
8
35
  end
9
36
  end
@@ -0,0 +1,3 @@
1
+ module DeviseInvitable
2
+ VERSION = '0.6.0'
3
+ end
@@ -1,16 +1,58 @@
1
1
  require 'devise'
2
2
 
3
- module Devise
4
- # Time interval where the invitation token is valid.
5
- mattr_accessor :invite_for
6
- @@invite_for = 0
3
+ module DeviseInvitable
4
+ autoload :Inviter, 'devise_invitable/inviter'
7
5
  end
8
6
 
9
- Devise.add_module :invitable, :controller => :invitations, :model => 'devise_invitable/model', :route => :invitation
10
-
11
7
  require 'devise_invitable/mailer'
12
8
  require 'devise_invitable/routes'
13
9
  require 'devise_invitable/schema'
14
10
  require 'devise_invitable/controllers/url_helpers'
15
11
  require 'devise_invitable/controllers/helpers'
16
12
  require 'devise_invitable/rails'
13
+
14
+ module Devise
15
+ # Public: Validity period of the invitation token (default: 0). If
16
+ # invite_for is 0 or nil, the invitation will never expire.
17
+ # Set invite_for in the Devise configuration file (in config/initializers/devise.rb).
18
+ #
19
+ # config.invite_for = 2.weeks # => The invitation token will be valid 2 weeks
20
+ mattr_accessor :invite_for
21
+ @@invite_for = 0
22
+
23
+ # Public: Flag that force a record to be valid before being actually invited
24
+ # (default: false).
25
+ #
26
+ # Examples (in config/initializers/devise.rb)
27
+ #
28
+ # config.validate_on_invite = true
29
+ mattr_accessor :validate_on_invite
30
+ @@validate_on_invite = false
31
+
32
+ # Public: number of invitations the user is allowed to send
33
+ #
34
+ # Examples (in config/initializers/devise.rb)
35
+ #
36
+ # config.invitation_limit = nil
37
+ mattr_accessor :invitation_limit
38
+ @@invitation_limit = nil
39
+
40
+ # Public: The key to be used to check existing users when sending an invitation
41
+ #
42
+ # Examples (in config/initializers/devise.rb)
43
+ #
44
+ # config.invite_key = :email
45
+ mattr_accessor :invite_key
46
+ @@invite_key = :email
47
+
48
+ # Public: Resend invitation if user with invited status is invited again
49
+ # (default: true)
50
+ #
51
+ # Example (in config/initializers/devise.rb)
52
+ #
53
+ # config.resend_invitation = false
54
+ mattr_accessor :resend_invitation
55
+ @@resend_invitation = true
56
+ end
57
+
58
+ Devise.add_module :invitable, :controller => :invitations, :model => 'devise_invitable/model', :route => :invitation
@@ -1,18 +1,26 @@
1
1
  class DeviseInvitableAddTo<%= table_name.camelize %> < ActiveRecord::Migration
2
2
  def self.up
3
3
  change_table :<%= table_name %> do |t|
4
- t.string :invitation_token, :limit => 20
5
- t.datetime :invitation_sent_at
6
- t.index :invitation_token # for invitable
4
+ t.string :invitation_token, :limit => 60
5
+ t.datetime :invitation_sent_at
6
+ t.datetime :invitation_accepted_at
7
+ t.integer :invitation_limit
8
+ t.references :invited_by, :polymorphic => true
9
+ t.index :invitation_token # for invitable
10
+ t.index :invited_by_id
7
11
  end
8
12
 
9
13
  # And allow null encrypted_password and password_salt:
10
- change_column :<%= table_name %>, :encrypted_password, :string, :null => true
11
- change_column :<%= table_name %>, :password_salt, :string, :null => true
14
+ change_column_null :<%= table_name %>, :encrypted_password, true
15
+ <% if class_name.constantize.columns_hash['password_salt'] -%>
16
+ change_column_null :<%= table_name %>, :password_salt, true
17
+ <% end -%>
12
18
  end
13
19
 
14
20
  def self.down
15
- remove_column :<%= table_name %>, :invitation_sent_at
16
- remove_column :<%= table_name %>, :invitation_token
21
+ change_table :<%= table_name %> do |t|
22
+ t.remove_references :invited_by, :polymorphic => true
23
+ t.remove :invitation_limit, :invitation_sent_at, :invitation_accepted_at, :invitation_token
24
+ end
17
25
  end
18
26
  end
@@ -5,6 +5,10 @@ module DeviseInvitable
5
5
 
6
6
  desc "Add :invitable directive in the given model. Also generate migration for ActiveRecord"
7
7
 
8
+ # def devise_generate_model
9
+ # invoke "devise", [name]
10
+ # end
11
+
8
12
  def inject_devise_invitable_content
9
13
  path = File.join("app", "models", "#{file_path}.rb")
10
14
  inject_into_file(path, "invitable, :", :after => "devise :") if File.exists?(path)
@@ -4,6 +4,10 @@ module DeviseInvitable
4
4
  source_root File.expand_path("../../templates", __FILE__)
5
5
  desc "Add DeviseInvitable config variables to the Devise initializer and copy DeviseInvitable locale files to your application."
6
6
 
7
+ # def devise_install
8
+ # invoke "devise:install"
9
+ # end
10
+
7
11
  def add_config_options_to_initializer
8
12
  devise_initializer_path = "config/initializers/devise.rb"
9
13
  if File.exist?(devise_initializer_path)
@@ -15,10 +19,25 @@ module DeviseInvitable
15
19
  inject_into_file(devise_initializer_path, :before => " # ==> Configuration for :confirmable\n") do
16
20
  <<-CONTENT
17
21
  # ==> Configuration for :invitable
18
- # Time interval where the invitation token is valid (default: 0).
19
- # If invite_for is 0 or nil, the invitation will never expire.
22
+ # The period the generated invitation token is valid, after
23
+ # this period, the invited resource won't be able to accept the invitation.
24
+ # When invite_for is 0 (the default), the invitation won't expire.
20
25
  # config.invite_for = 2.weeks
21
26
 
27
+ # Number of invitations users can send.
28
+ # If invitation_limit is nil, users can send unlimited invitations.
29
+ # If invitation_limit is 0, users can't send invitations.
30
+ # If invitation_limit n > 0, users can send n invitations.
31
+ # Default: nil
32
+ # config.invitation_limit = 5
33
+
34
+ # The key to be used to check existing users when sending an invitation
35
+ # config.invite_key = :email
36
+
37
+ # Flag that force a record to be valid before being actually invited
38
+ # Default: false
39
+ # config.validate_on_invite = true
40
+
22
41
  CONTENT
23
42
  end
24
43
  end
@@ -2,9 +2,18 @@ require 'generators/devise/views_generator'
2
2
 
3
3
  module DeviseInvitable
4
4
  module Generators
5
- class ViewsGenerator < Devise::Generators::ViewsGenerator
6
- source_root File.expand_path("../../../../app/views", __FILE__)
5
+ class ViewsGenerator < Rails::Generators::Base
7
6
  desc 'Copies all DeviseInvitable views to your application.'
7
+
8
+ argument :scope, :required => false, :default => nil,
9
+ :desc => "The scope to copy views to"
10
+
11
+ include ::Devise::Generators::ViewPathTemplates
12
+ source_root File.expand_path("../../../../app/views/devise", __FILE__)
13
+ def copy_views
14
+ view_directory :invitations
15
+ view_directory :mailer
16
+ end
8
17
  end
9
18
  end
10
19
  end
@@ -0,0 +1,8 @@
1
+ require 'generators/devise/orm_helpers'
2
+
3
+ module Mongoid
4
+ module Generators
5
+ class DeviseInvitableGenerator < Rails::Generators::NamedBase
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_invitable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
4
+ hash: 7
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 4
10
- version: 0.3.4
8
+ - 6
9
+ - 0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Cambra
@@ -15,48 +15,31 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-02 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-11-15 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: mocha
21
+ name: bundler
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
- - - ">="
26
+ - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 43
28
+ hash: 25
30
29
  segments:
30
+ - 1
31
31
  - 0
32
- - 9
33
- - 8
34
- version: 0.9.8
32
+ - 7
33
+ version: 1.0.7
35
34
  type: :development
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
38
- name: capybara
37
+ name: rails
39
38
  prerelease: false
40
39
  requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 1
46
- segments:
47
- - 0
48
- - 3
49
- - 9
50
- version: 0.3.9
51
- type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: rails
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
43
  - !ruby/object:Gem::Version
61
44
  hash: 7
62
45
  segments:
@@ -64,117 +47,78 @@ dependencies:
64
47
  - 0
65
48
  - 0
66
49
  version: 3.0.0
67
- type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: sqlite3-ruby
71
- prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
50
+ - - <
76
51
  - !ruby/object:Gem::Version
77
52
  hash: 3
78
53
  segments:
79
- - 0
80
- version: "0"
81
- type: :development
82
- version_requirements: *id004
54
+ - 3
55
+ - 2
56
+ version: "3.2"
57
+ type: :runtime
58
+ version_requirements: *id002
83
59
  - !ruby/object:Gem::Dependency
84
60
  name: devise
85
61
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
62
+ requirement: &id003 !ruby/object:Gem::Requirement
87
63
  none: false
88
64
  requirements:
89
- - - ~>
65
+ - - ">="
90
66
  - !ruby/object:Gem::Version
91
- hash: 19
67
+ hash: 11
92
68
  segments:
93
69
  - 1
70
+ - 4
71
+ - 6
72
+ version: 1.4.6
73
+ - - <
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
94
77
  - 1
95
- - 0
96
- version: 1.1.0
78
+ - 6
79
+ version: "1.6"
97
80
  type: :runtime
98
- version_requirements: *id005
99
- description: It adds support for send invitations by email (it requires to be authenticated) and accept the invitation setting the password
100
- email: sergio@entrecables.com
81
+ version_requirements: *id003
82
+ description: It adds support for send invitations by email (it requires to be authenticated) and accept the invitation by setting a password.
83
+ email:
84
+ - sergio@entrecables.com
101
85
  executables: []
102
86
 
103
87
  extensions: []
104
88
 
105
- extra_rdoc_files:
106
- - LICENSE
107
- - README.rdoc
89
+ extra_rdoc_files: []
90
+
108
91
  files:
109
- - .document
110
- - .gitignore
111
- - Gemfile
112
- - Gemfile.lock
113
- - LICENSE
114
- - README.rdoc
115
- - Rakefile
116
- - VERSION
117
92
  - app/controllers/devise/invitations_controller.rb
118
93
  - app/views/devise/invitations/edit.html.erb
119
94
  - app/views/devise/invitations/new.html.erb
120
- - app/views/devise/mailer/invitation.html.erb
95
+ - app/views/devise/mailer/invitation_instructions.html.erb
121
96
  - config/locales/en.yml
122
- - devise_invitable.gemspec
123
97
  - lib/devise_invitable.rb
124
- - lib/devise_invitable/controllers/helpers.rb
125
- - lib/devise_invitable/controllers/url_helpers.rb
126
98
  - lib/devise_invitable/mailer.rb
127
99
  - lib/devise_invitable/model.rb
128
100
  - lib/devise_invitable/rails.rb
129
101
  - lib/devise_invitable/routes.rb
130
102
  - lib/devise_invitable/schema.rb
103
+ - lib/devise_invitable/controllers/helpers.rb
104
+ - lib/devise_invitable/controllers/url_helpers.rb
105
+ - lib/devise_invitable/version.rb
106
+ - lib/devise_invitable/inviter.rb
131
107
  - lib/generators/active_record/devise_invitable_generator.rb
132
108
  - lib/generators/active_record/templates/migration.rb
109
+ - lib/generators/devise_invitable/views_generator.rb
133
110
  - lib/generators/devise_invitable/devise_invitable_generator.rb
134
111
  - lib/generators/devise_invitable/install_generator.rb
135
- - lib/generators/devise_invitable/views_generator.rb
136
- - test/generators_test.rb
137
- - test/integration/invitable_test.rb
138
- - test/integration_tests_helper.rb
139
- - test/mailers/invitation_test.rb
140
- - test/model_tests_helper.rb
141
- - test/models/invitable_test.rb
142
- - test/models_test.rb
143
- - test/rails_app/app/controllers/admins_controller.rb
144
- - test/rails_app/app/controllers/application_controller.rb
145
- - test/rails_app/app/controllers/home_controller.rb
146
- - test/rails_app/app/controllers/users_controller.rb
147
- - test/rails_app/app/helpers/application_helper.rb
148
- - test/rails_app/app/models/octopussy.rb
149
- - test/rails_app/app/models/user.rb
150
- - test/rails_app/app/views/home/index.html.erb
151
- - test/rails_app/app/views/layouts/application.html.erb
152
- - test/rails_app/app/views/users/invitations/new.html.erb
153
- - test/rails_app/config.ru
154
- - test/rails_app/config/application.rb
155
- - test/rails_app/config/boot.rb
156
- - test/rails_app/config/database.yml
157
- - test/rails_app/config/environment.rb
158
- - test/rails_app/config/environments/development.rb
159
- - test/rails_app/config/environments/production.rb
160
- - test/rails_app/config/environments/test.rb
161
- - test/rails_app/config/initializers/backtrace_silencers.rb
162
- - test/rails_app/config/initializers/devise.rb
163
- - test/rails_app/config/initializers/inflections.rb
164
- - test/rails_app/config/initializers/mime_types.rb
165
- - test/rails_app/config/initializers/secret_token.rb
166
- - test/rails_app/config/initializers/session_store.rb
167
- - test/rails_app/config/locales/en.yml
168
- - test/rails_app/config/routes.rb
169
- - test/rails_app/script/rails
170
- - test/routes_test.rb
171
- - test/test_helper.rb
172
- has_rdoc: true
173
- homepage: http://github.com/scambra/devise_invitable
112
+ - lib/generators/mongoid/devise_invitable_generator.rb
113
+ - LICENSE
114
+ - README.rdoc
115
+ homepage: https://github.com/scambra/devise_invitable
174
116
  licenses: []
175
117
 
176
118
  post_install_message:
177
119
  rdoc_options:
120
+ - --main
121
+ - README.rdoc
178
122
  - --charset=UTF-8
179
123
  require_paths:
180
124
  - lib
@@ -183,53 +127,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
127
  requirements:
184
128
  - - ">="
185
129
  - !ruby/object:Gem::Version
186
- hash: 3
130
+ hash: 59
187
131
  segments:
188
- - 0
189
- version: "0"
132
+ - 1
133
+ - 8
134
+ - 6
135
+ version: 1.8.6
190
136
  required_rubygems_version: !ruby/object:Gem::Requirement
191
137
  none: false
192
138
  requirements:
193
139
  - - ">="
194
140
  - !ruby/object:Gem::Version
195
- hash: 3
141
+ hash: 23
196
142
  segments:
197
- - 0
198
- version: "0"
143
+ - 1
144
+ - 3
145
+ - 6
146
+ version: 1.3.6
199
147
  requirements: []
200
148
 
201
149
  rubyforge_project:
202
- rubygems_version: 1.3.7
150
+ rubygems_version: 1.8.10
203
151
  signing_key:
204
152
  specification_version: 3
205
- summary: An invitation strategy for devise
206
- test_files:
207
- - test/generators_test.rb
208
- - test/test_helper.rb
209
- - test/integration/invitable_test.rb
210
- - test/routes_test.rb
211
- - test/rails_app/app/helpers/application_helper.rb
212
- - test/rails_app/app/models/octopussy.rb
213
- - test/rails_app/app/models/user.rb
214
- - test/rails_app/app/controllers/admins_controller.rb
215
- - test/rails_app/app/controllers/application_controller.rb
216
- - test/rails_app/app/controllers/home_controller.rb
217
- - test/rails_app/app/controllers/users_controller.rb
218
- - test/rails_app/config/initializers/devise.rb
219
- - test/rails_app/config/initializers/inflections.rb
220
- - test/rails_app/config/initializers/mime_types.rb
221
- - test/rails_app/config/initializers/secret_token.rb
222
- - test/rails_app/config/initializers/session_store.rb
223
- - test/rails_app/config/initializers/backtrace_silencers.rb
224
- - test/rails_app/config/environment.rb
225
- - test/rails_app/config/environments/production.rb
226
- - test/rails_app/config/environments/test.rb
227
- - test/rails_app/config/environments/development.rb
228
- - test/rails_app/config/routes.rb
229
- - test/rails_app/config/application.rb
230
- - test/rails_app/config/boot.rb
231
- - test/integration_tests_helper.rb
232
- - test/model_tests_helper.rb
233
- - test/models_test.rb
234
- - test/mailers/invitation_test.rb
235
- - test/models/invitable_test.rb
153
+ summary: An invitation strategy for Devise
154
+ test_files: []
155
+
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- test/rails_app/log
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source :rubygems
2
-
3
- gemspec