refinerycms-authentication 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 240da4d27a713a4b948f356018480a9da60606e7
|
4
|
+
data.tar.gz: 43891d48f2ab2b1e45aeb98dbed2394f794a186c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 57643506ed99f7b5e933b47ec4bc9a36aacf2acf4145b1b85c0a121c88cb38214b4574f327f030ff8e2fb88408efcff8bf2dba280b88a9d36469ca7b86a2b6fe
|
7
|
+
data.tar.gz: 9e07f93f3dc9c1017c37609852bf7fc7beb490da7dace0c219ef46cbf8c6de377c78423d07042882254c5e76f1fd5ee240911d60c8335db723b69a1bf8fabfae
|
data/app/models/refinery/user.rb
CHANGED
@@ -57,10 +57,7 @@ module Refinery
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def can_edit?(user_to_edit = self)
|
60
|
-
user_to_edit.persisted? && (
|
61
|
-
user_to_edit == self ||
|
62
|
-
self.has_role?(:superuser)
|
63
|
-
)
|
60
|
+
user_to_edit.persisted? && (user_to_edit == self || self.has_role?(:superuser))
|
64
61
|
end
|
65
62
|
|
66
63
|
def add_role(title)
|
data/config/locales/sv.yml
CHANGED
@@ -19,7 +19,7 @@ sv:
|
|
19
19
|
create_new_user: Lägg till ny användare
|
20
20
|
user:
|
21
21
|
email_user: Skicka e-post till denna användare
|
22
|
-
preview: '(%{who})
|
22
|
+
preview: '(%{who}) lades till %{created_at}'
|
23
23
|
sessions:
|
24
24
|
new:
|
25
25
|
hello_please_sign_in: Hej! Vänligen logga in.
|
@@ -38,7 +38,7 @@ sv:
|
|
38
38
|
blank_email: Du fyllde inte i någon e-postadress.
|
39
39
|
email_not_associated_with_account_html: "Tyvärr, '%{email}' finns inte med i systemet.<br />Är du säker på att du fyllde i rätt e-postadress?"
|
40
40
|
email_reset_sent: Ett e-post har skickats till dig med instruktioner om hur du återställer ditt lösenord.
|
41
|
-
password_encryption: Du måste
|
41
|
+
password_encryption: Du måste sätta ett nytt lösenord. Detta på grund av att krypteringmetoden som Refinery använder sig av har bytts ut mot en bättre och säkrare kryptering.
|
42
42
|
reset:
|
43
43
|
code_invalid: "Tyvärr, men din återställningskod har är ogiltlig eller har utgått. Om du har problem, pröva att kopiera den URL som du mottagit på din e-post, klistra sedan in i webbläsaren. Eller så börjar du om från början."
|
44
44
|
successful: "Återställde lösenordet för '%{email}'"
|
@@ -2,8 +2,13 @@ module Refinery
|
|
2
2
|
class AuthenticationGenerator < Rails::Generators::Base
|
3
3
|
source_root File.expand_path("../templates", __FILE__)
|
4
4
|
|
5
|
+
def rake_db
|
6
|
+
rake "refinery_authentication:install:migrations"
|
7
|
+
end
|
8
|
+
|
5
9
|
def generate_authentication_initializer
|
6
|
-
template "config/initializers/refinery/authentication.rb.erb",
|
10
|
+
template "config/initializers/refinery/authentication.rb.erb",
|
11
|
+
File.join(destination_root, "config", "initializers", "refinery", "authentication.rb")
|
7
12
|
end
|
8
13
|
end
|
9
14
|
end
|
data/license.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2005-
|
3
|
+
Copyright (c) 2005-2013 [Resolve Digital](http://www.resolvedigital.com)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -21,6 +21,6 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
22
22
|
|
23
23
|
s.add_dependency 'refinerycms-core', version
|
24
|
-
s.add_dependency 'devise', '~> 2.0.
|
24
|
+
s.add_dependency 'devise', '~> 2.0.5'
|
25
25
|
s.add_dependency 'orm_adapter', '~> 0.0.7'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.10
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Philip Arndt
|
@@ -11,44 +10,39 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date:
|
13
|
+
date: 2013-03-14 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: refinerycms-core
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
19
|
- - '='
|
22
20
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.
|
21
|
+
version: 2.0.10
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
26
|
- - '='
|
30
27
|
- !ruby/object:Gem::Version
|
31
|
-
version: 2.0.
|
28
|
+
version: 2.0.10
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: devise
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
33
|
- - ~>
|
38
34
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.0.
|
35
|
+
version: 2.0.5
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
40
|
- - ~>
|
46
41
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.0.
|
42
|
+
version: 2.0.5
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: orm_adapter
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
47
|
- - ~>
|
54
48
|
- !ruby/object:Gem::Version
|
@@ -56,7 +50,6 @@ dependencies:
|
|
56
50
|
type: :runtime
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
54
|
- - ~>
|
62
55
|
- !ruby/object:Gem::Version
|
@@ -143,33 +136,26 @@ files:
|
|
143
136
|
homepage: http://refinerycms.com
|
144
137
|
licenses:
|
145
138
|
- MIT
|
139
|
+
metadata: {}
|
146
140
|
post_install_message:
|
147
141
|
rdoc_options: []
|
148
142
|
require_paths:
|
149
143
|
- lib
|
150
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
145
|
requirements:
|
153
|
-
- -
|
146
|
+
- - '>='
|
154
147
|
- !ruby/object:Gem::Version
|
155
148
|
version: '0'
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
hash: 4361839645522871107
|
159
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
-
none: false
|
161
150
|
requirements:
|
162
|
-
- -
|
151
|
+
- - '>='
|
163
152
|
- !ruby/object:Gem::Version
|
164
153
|
version: '0'
|
165
|
-
segments:
|
166
|
-
- 0
|
167
|
-
hash: 4361839645522871107
|
168
154
|
requirements: []
|
169
155
|
rubyforge_project: refinerycms
|
170
|
-
rubygems_version:
|
156
|
+
rubygems_version: 2.0.3
|
171
157
|
signing_key:
|
172
|
-
specification_version:
|
158
|
+
specification_version: 4
|
173
159
|
summary: Authentication extension for Refinery CMS
|
174
160
|
test_files:
|
175
161
|
- spec/controllers/refinery/admin/users_controller_spec.rb
|