devise_invitable 0.3.4 → 0.5.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 (61) hide show
  1. data/README.rdoc +72 -42
  2. data/app/controllers/devise/invitations_controller.rb +31 -9
  3. data/config/locales/en.yml +5 -3
  4. data/lib/devise_invitable/controllers/helpers.rb +1 -6
  5. data/lib/devise_invitable/inviter.rb +35 -0
  6. data/lib/devise_invitable/mailer.rb +8 -2
  7. data/lib/devise_invitable/model.rb +68 -40
  8. data/lib/devise_invitable/rails.rb +5 -2
  9. data/lib/devise_invitable/routes.rb +8 -5
  10. data/lib/devise_invitable/schema.rb +27 -2
  11. data/lib/devise_invitable/version.rb +3 -0
  12. data/lib/devise_invitable.rb +39 -6
  13. data/lib/generators/active_record/templates/migration.rb +14 -7
  14. data/lib/generators/devise_invitable/devise_invitable_generator.rb +4 -0
  15. data/lib/generators/devise_invitable/install_generator.rb +21 -2
  16. data/lib/generators/mongoid/devise_invitable_generator.rb +8 -0
  17. metadata +55 -140
  18. data/.document +0 -5
  19. data/.gitignore +0 -22
  20. data/Gemfile +0 -3
  21. data/Gemfile.lock +0 -108
  22. data/Rakefile +0 -55
  23. data/VERSION +0 -1
  24. data/devise_invitable.gemspec +0 -146
  25. data/test/generators_test.rb +0 -45
  26. data/test/integration/invitable_test.rb +0 -109
  27. data/test/integration_tests_helper.rb +0 -58
  28. data/test/mailers/invitation_test.rb +0 -62
  29. data/test/model_tests_helper.rb +0 -41
  30. data/test/models/invitable_test.rb +0 -188
  31. data/test/models_test.rb +0 -31
  32. data/test/rails_app/app/controllers/admins_controller.rb +0 -6
  33. data/test/rails_app/app/controllers/application_controller.rb +0 -3
  34. data/test/rails_app/app/controllers/home_controller.rb +0 -4
  35. data/test/rails_app/app/controllers/users_controller.rb +0 -12
  36. data/test/rails_app/app/helpers/application_helper.rb +0 -2
  37. data/test/rails_app/app/models/octopussy.rb +0 -11
  38. data/test/rails_app/app/models/user.rb +0 -4
  39. data/test/rails_app/app/views/home/index.html.erb +0 -0
  40. data/test/rails_app/app/views/layouts/application.html.erb +0 -15
  41. data/test/rails_app/app/views/users/invitations/new.html.erb +0 -15
  42. data/test/rails_app/config/application.rb +0 -46
  43. data/test/rails_app/config/boot.rb +0 -13
  44. data/test/rails_app/config/database.yml +0 -22
  45. data/test/rails_app/config/environment.rb +0 -5
  46. data/test/rails_app/config/environments/development.rb +0 -26
  47. data/test/rails_app/config/environments/production.rb +0 -49
  48. data/test/rails_app/config/environments/test.rb +0 -35
  49. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -7
  50. data/test/rails_app/config/initializers/devise.rb +0 -144
  51. data/test/rails_app/config/initializers/inflections.rb +0 -10
  52. data/test/rails_app/config/initializers/mime_types.rb +0 -5
  53. data/test/rails_app/config/initializers/secret_token.rb +0 -7
  54. data/test/rails_app/config/initializers/session_store.rb +0 -8
  55. data/test/rails_app/config/locales/en.yml +0 -5
  56. data/test/rails_app/config/routes.rb +0 -4
  57. data/test/rails_app/config.ru +0 -4
  58. data/test/rails_app/script/rails +0 -6
  59. data/test/routes_test.rb +0 -20
  60. data/test/test_helper.rb +0 -30
  61. /data/app/views/devise/mailer/{invitation.html.erb → invitation_instructions.html.erb} +0 -0
@@ -1,16 +1,49 @@
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
+ end
48
+
49
+ Devise.add_module :invitable, :controller => :invitations, :model => 'devise_invitable/model', :route => :invitation
@@ -1,18 +1,25 @@
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.integer :invitation_limit
7
+ t.references :invited_by, :polymorphic => true
8
+ t.index :invitation_token # for invitable
9
+ t.index :invited_by_id
7
10
  end
8
11
 
9
12
  # 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
13
+ change_column_null :<%= table_name %>, :encrypted_password, true
14
+ <% if class_name.constantize.columns_hash['password_salt'] -%>
15
+ change_column_null :<%= table_name %>, :password_salt, true
16
+ <% end -%>
12
17
  end
13
18
 
14
19
  def self.down
15
- remove_column :<%= table_name %>, :invitation_sent_at
16
- remove_column :<%= table_name %>, :invitation_token
20
+ change_table :<%= table_name %> do |t|
21
+ t.remove_references :invited_by, :polymorphic => true
22
+ t.remove :invitation_limit, :invitation_sent_at, :invitation_token
23
+ end
17
24
  end
18
25
  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
@@ -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: 11
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 4
10
- version: 0.3.4
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Cambra
@@ -15,48 +15,32 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-02 00:00:00 +02:00
18
+ date: 2011-05-09 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: mocha
22
+ name: bundler
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 43
29
+ hash: 25
30
30
  segments:
31
+ - 1
31
32
  - 0
32
- - 9
33
- - 8
34
- version: 0.9.8
33
+ - 7
34
+ version: 1.0.7
35
35
  type: :development
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: capybara
38
+ name: rails
39
39
  prerelease: false
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ">="
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
44
  - !ruby/object:Gem::Version
61
45
  hash: 7
62
46
  segments:
@@ -64,117 +48,72 @@ dependencies:
64
48
  - 0
65
49
  - 0
66
50
  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
- - - ">="
51
+ - - <=
76
52
  - !ruby/object:Gem::Version
77
53
  hash: 3
78
54
  segments:
79
- - 0
80
- version: "0"
81
- type: :development
82
- version_requirements: *id004
55
+ - 3
56
+ - 2
57
+ version: "3.2"
58
+ type: :runtime
59
+ version_requirements: *id002
83
60
  - !ruby/object:Gem::Dependency
84
61
  name: devise
85
62
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
63
+ requirement: &id003 !ruby/object:Gem::Requirement
87
64
  none: false
88
65
  requirements:
89
66
  - - ~>
90
67
  - !ruby/object:Gem::Version
91
- hash: 19
68
+ hash: 25
92
69
  segments:
93
70
  - 1
71
+ - 3
94
72
  - 1
95
- - 0
96
- version: 1.1.0
73
+ version: 1.3.1
97
74
  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
75
+ version_requirements: *id003
76
+ description: It adds support for send invitations by email (it requires to be authenticated) and accept the invitation by setting a password.
77
+ email:
78
+ - sergio@entrecables.com
101
79
  executables: []
102
80
 
103
81
  extensions: []
104
82
 
105
- extra_rdoc_files:
106
- - LICENSE
107
- - README.rdoc
83
+ extra_rdoc_files: []
84
+
108
85
  files:
109
- - .document
110
- - .gitignore
111
- - Gemfile
112
- - Gemfile.lock
113
- - LICENSE
114
- - README.rdoc
115
- - Rakefile
116
- - VERSION
117
86
  - app/controllers/devise/invitations_controller.rb
118
87
  - app/views/devise/invitations/edit.html.erb
119
88
  - app/views/devise/invitations/new.html.erb
120
- - app/views/devise/mailer/invitation.html.erb
89
+ - app/views/devise/mailer/invitation_instructions.html.erb
121
90
  - config/locales/en.yml
122
- - devise_invitable.gemspec
123
91
  - lib/devise_invitable.rb
124
- - lib/devise_invitable/controllers/helpers.rb
125
- - lib/devise_invitable/controllers/url_helpers.rb
126
92
  - lib/devise_invitable/mailer.rb
127
93
  - lib/devise_invitable/model.rb
128
94
  - lib/devise_invitable/rails.rb
129
95
  - lib/devise_invitable/routes.rb
130
96
  - lib/devise_invitable/schema.rb
97
+ - lib/devise_invitable/controllers/helpers.rb
98
+ - lib/devise_invitable/controllers/url_helpers.rb
99
+ - lib/devise_invitable/version.rb
100
+ - lib/devise_invitable/inviter.rb
131
101
  - lib/generators/active_record/devise_invitable_generator.rb
132
102
  - lib/generators/active_record/templates/migration.rb
103
+ - lib/generators/devise_invitable/views_generator.rb
133
104
  - lib/generators/devise_invitable/devise_invitable_generator.rb
134
105
  - 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
106
+ - lib/generators/mongoid/devise_invitable_generator.rb
107
+ - LICENSE
108
+ - README.rdoc
172
109
  has_rdoc: true
173
- homepage: http://github.com/scambra/devise_invitable
110
+ homepage: https://github.com/scambra/devise_invitable
174
111
  licenses: []
175
112
 
176
113
  post_install_message:
177
114
  rdoc_options:
115
+ - --main
116
+ - README.rdoc
178
117
  - --charset=UTF-8
179
118
  require_paths:
180
119
  - lib
@@ -183,53 +122,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
122
  requirements:
184
123
  - - ">="
185
124
  - !ruby/object:Gem::Version
186
- hash: 3
125
+ hash: 59
187
126
  segments:
188
- - 0
189
- version: "0"
127
+ - 1
128
+ - 8
129
+ - 6
130
+ version: 1.8.6
190
131
  required_rubygems_version: !ruby/object:Gem::Requirement
191
132
  none: false
192
133
  requirements:
193
134
  - - ">="
194
135
  - !ruby/object:Gem::Version
195
- hash: 3
136
+ hash: 23
196
137
  segments:
197
- - 0
198
- version: "0"
138
+ - 1
139
+ - 3
140
+ - 6
141
+ version: 1.3.6
199
142
  requirements: []
200
143
 
201
144
  rubyforge_project:
202
- rubygems_version: 1.3.7
145
+ rubygems_version: 1.5.2
203
146
  signing_key:
204
147
  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
148
+ summary: An invitation strategy for Devise
149
+ test_files: []
150
+
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
data/Gemfile.lock DELETED
@@ -1,108 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- devise_invitable (0.3.2)
5
- devise (~> 1.1.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- abstract (1.0.0)
11
- actionmailer (3.0.0)
12
- actionpack (= 3.0.0)
13
- mail (~> 2.2.5)
14
- actionpack (3.0.0)
15
- activemodel (= 3.0.0)
16
- activesupport (= 3.0.0)
17
- builder (~> 2.1.2)
18
- erubis (~> 2.6.6)
19
- i18n (~> 0.4.1)
20
- rack (~> 1.2.1)
21
- rack-mount (~> 0.6.12)
22
- rack-test (~> 0.5.4)
23
- tzinfo (~> 0.3.23)
24
- activemodel (3.0.0)
25
- activesupport (= 3.0.0)
26
- builder (~> 2.1.2)
27
- i18n (~> 0.4.1)
28
- activerecord (3.0.0)
29
- activemodel (= 3.0.0)
30
- activesupport (= 3.0.0)
31
- arel (~> 1.0.0)
32
- tzinfo (~> 0.3.23)
33
- activeresource (3.0.0)
34
- activemodel (= 3.0.0)
35
- activesupport (= 3.0.0)
36
- activesupport (3.0.0)
37
- arel (1.0.1)
38
- activesupport (~> 3.0.0)
39
- bcrypt-ruby (2.1.2)
40
- builder (2.1.2)
41
- capybara (0.3.9)
42
- culerity (>= 0.2.4)
43
- mime-types (>= 1.16)
44
- nokogiri (>= 1.3.3)
45
- rack (>= 1.0.0)
46
- rack-test (>= 0.5.4)
47
- selenium-webdriver (>= 0.0.3)
48
- culerity (0.2.12)
49
- devise (1.1.2)
50
- bcrypt-ruby (~> 2.1.2)
51
- warden (~> 0.10.7)
52
- erubis (2.6.6)
53
- abstract (>= 1.0.0)
54
- ffi (0.6.3)
55
- rake (>= 0.8.7)
56
- i18n (0.4.1)
57
- json_pure (1.4.6)
58
- mail (2.2.6)
59
- activesupport (>= 2.3.6)
60
- mime-types
61
- treetop (>= 1.4.5)
62
- mime-types (1.16)
63
- mocha (0.9.8)
64
- rake
65
- nokogiri (1.4.3.1)
66
- polyglot (0.3.1)
67
- rack (1.2.1)
68
- rack-mount (0.6.13)
69
- rack (>= 1.0.0)
70
- rack-test (0.5.4)
71
- rack (>= 1.0)
72
- rails (3.0.0)
73
- actionmailer (= 3.0.0)
74
- actionpack (= 3.0.0)
75
- activerecord (= 3.0.0)
76
- activeresource (= 3.0.0)
77
- activesupport (= 3.0.0)
78
- bundler (~> 1.0.0)
79
- railties (= 3.0.0)
80
- railties (3.0.0)
81
- actionpack (= 3.0.0)
82
- activesupport (= 3.0.0)
83
- rake (>= 0.8.4)
84
- thor (~> 0.14.0)
85
- rake (0.8.7)
86
- rubyzip (0.9.4)
87
- selenium-webdriver (0.0.28)
88
- ffi (>= 0.6.1)
89
- json_pure
90
- rubyzip
91
- sqlite3-ruby (1.3.1)
92
- thor (0.14.0)
93
- treetop (1.4.8)
94
- polyglot (>= 0.3.1)
95
- tzinfo (0.3.23)
96
- warden (0.10.7)
97
- rack (>= 1.0.0)
98
-
99
- PLATFORMS
100
- ruby
101
-
102
- DEPENDENCIES
103
- capybara (>= 0.3.9)
104
- devise (~> 1.1.0)
105
- devise_invitable!
106
- mocha (>= 0.9.8)
107
- rails (~> 3.0.0)
108
- sqlite3-ruby
data/Rakefile DELETED
@@ -1,55 +0,0 @@
1
- require 'rake'
2
-
3
- begin
4
- require 'jeweler'
5
- Jeweler::Tasks.new do |gem|
6
- gem.name = "devise_invitable"
7
- gem.summary = %Q{An invitation strategy for devise}
8
- gem.description = %Q{It adds support for send invitations by email (it requires to be authenticated) and accept the invitation setting the password}
9
- gem.email = "sergio@entrecables.com"
10
- gem.homepage = "http://github.com/scambra/devise_invitable"
11
- gem.authors = ["Sergio Cambra"]
12
- gem.add_development_dependency 'mocha', '>= 0.9.8'
13
- gem.add_development_dependency 'capybara', '>= 0.3.9'
14
- gem.add_development_dependency 'rails', '~> 3.0.0'
15
- gem.add_development_dependency 'sqlite3-ruby'
16
- gem.add_dependency 'devise', '~> 1.1.0'
17
- end
18
- Jeweler::GemcutterTasks.new
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
21
- end
22
-
23
- require 'rake/testtask'
24
- Rake::TestTask.new(:test) do |test|
25
- test.libs << 'lib' << 'test'
26
- test.pattern = 'test/**/*_test.rb'
27
- test.verbose = true
28
- end
29
-
30
- begin
31
- require 'rcov/rcovtask'
32
- Rcov::RcovTask.new do |test|
33
- test.libs << 'test'
34
- test.pattern = 'test/**/test_*.rb'
35
- test.verbose = true
36
- end
37
- rescue LoadError
38
- task :rcov do
39
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
40
- end
41
- end
42
-
43
- task :test => :check_dependencies
44
-
45
- task :default => :test
46
-
47
- require 'rake/rdoctask'
48
- Rake::RDocTask.new do |rdoc|
49
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
-
51
- rdoc.rdoc_dir = 'rdoc'
52
- rdoc.title = "devise_invitable #{version}"
53
- rdoc.rdoc_files.include('README*')
54
- rdoc.rdoc_files.include('lib/**/*.rb')
55
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.3.4