devise_invitable 0.5.1 → 0.5.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.
Potentially problematic release.
This version of devise_invitable might be problematic. Click here for more details.
@@ -2,9 +2,18 @@ require 'generators/devise/views_generator'
|
|
2
2
|
|
3
3
|
module DeviseInvitable
|
4
4
|
module Generators
|
5
|
-
class 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
|
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:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sergio Cambra
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-04 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -63,21 +63,14 @@ dependencies:
|
|
63
63
|
requirement: &id003 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
hash: 25
|
69
|
-
segments:
|
70
|
-
- 1
|
71
|
-
- 3
|
72
|
-
- 1
|
73
|
-
version: 1.3.1
|
74
|
-
- - <
|
66
|
+
- - ~>
|
75
67
|
- !ruby/object:Gem::Version
|
76
68
|
hash: 5
|
77
69
|
segments:
|
78
70
|
- 1
|
79
|
-
-
|
80
|
-
|
71
|
+
- 4
|
72
|
+
- 1
|
73
|
+
version: 1.4.1
|
81
74
|
type: :runtime
|
82
75
|
version_requirements: *id003
|
83
76
|
description: It adds support for send invitations by email (it requires to be authenticated) and accept the invitation by setting a password.
|