muck-users 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -1
- data/VERSION +1 -1
- data/app/helpers/muck_users_helper.rb +4 -4
- data/muck-users.gemspec +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -105,7 +105,8 @@ Route to the site home page:
|
|
105
105
|
root :to => "default#index"
|
106
106
|
|
107
107
|
Route to a public user page (this could also go to home etc. if needed)
|
108
|
-
|
108
|
+
|
109
|
+
match '/public_user/:id', :to => 'profiles#show', :as => :public_user
|
109
110
|
|
110
111
|
This is the path that a user will be redirected to if they attempt to access another user's dashboard page.
|
111
112
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.2
|
@@ -51,11 +51,11 @@ module MuckUsersHelper
|
|
51
51
|
|
52
52
|
# Generates a new random access code. If provided_by is provided then the provided_by user
|
53
53
|
# will be attached to the access code as the providing user.
|
54
|
-
def random_access_code(provided_by)
|
55
|
-
access_code = AccessCode.new(:expires_at =>
|
54
|
+
def random_access_code(provided_by, use_limit = 1, unlimited = false, expires_at = 1.year.since)
|
55
|
+
access_code = AccessCode.new(:expires_at => expires_at)
|
56
56
|
access_code.provided_by = provided_by
|
57
|
-
access_code.unlimited =
|
58
|
-
access_code.use_limit =
|
57
|
+
access_code.unlimited = unlimited
|
58
|
+
access_code.use_limit = use_limit
|
59
59
|
access_code.uses = 0
|
60
60
|
access_code.code = AccessCode.random_code
|
61
61
|
access_code.save!
|
data/muck-users.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-users}
|
8
|
-
s.version = "3.2.
|
8
|
+
s.version = "3.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2011-04-
|
12
|
+
s.date = %q{2011-04-25}
|
13
13
|
s.description = %q{Easily add user signup, login and other features to your application}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-users
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 3.2.
|
9
|
+
- 2
|
10
|
+
version: 3.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-04-
|
19
|
+
date: 2011-04-25 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|